7366da4390
Fix other warnings
...
Most were harmless, but the change to ACCESS_ONCE from volatile
cast is probably useful.
Expanding macro, we basically went from:
m = (volatile struct sdma_vl_map *)dd->sdma_map;
to
m = *(volatile struct sdma_vl_map **)&(dd->sdma_map);
i.e. the explicit lookup is at a different level.
2018-06-13 00:31:35 +09:00
b875b5186f
spinlock: make increment compatible with XPPSL Linux (v3.10)
2018-06-13 00:31:29 +09:00
64e2639adc
* The relevant files have been modified in order to compile with McKernel.
...
Conflicts:
kernel/Makefile.build.in
2018-06-13 00:31:29 +09:00
8a1d756cb1
Added private_data structure in process
...
Conflicts:
executer/user/mcexec.c
kernel/include/process.h
kernel/process.c
2018-06-13 00:31:28 +09:00
205747594b
Exclude areas not assigned to Mckernel from direct map of all phys. memory
...
It's enabled by adding -s to mcreboot.sh.
Cherry-pick of the following commit:
commit b5c13ce51a5a4926c2cf11c817cd0d369ac4402d
Author: Katsuya Horigome <katsuya.horigome.rj@ps.hitachi-solutions.com >
Date: Mon Nov 20 09:40:41 2017 +0900
Include measures to prevent memory destruction on Linux side (This is rebase commit for merging to development+hfi)
2018-06-13 00:31:27 +09:00
48515970a0
ihk_mc_get_processor_id(): return -1 for non-McKernel CPUs
...
Cherry-pick of c45641e97add9fde467844d9272f2626cf4317de
2018-06-13 00:31:27 +09:00
b888f31b30
Map LWK TEXT to the end of Linux modules section (0xFFFFFFFFFE800000)
...
Cherry-pick of b9827b25883a9622058cb78006e705f09eaf9a84
2018-06-13 00:31:27 +09:00
7982008b5b
virt_to_phys(): fix debug messages
...
Cherry-pick of 46eb3b73dac75b28ead62476f017ad0f29ec4b0a
2018-06-13 00:31:26 +09:00
f658173269
init_normal_area(): fix mapping start physical address
...
Cherry-pick of 2d3006818473af50c38a3d0e33595b4e74588004
2018-06-13 00:31:26 +09:00
ca7edf1df8
mem: make McKernel kernel heap virtual addresses Linux compatible
...
Cherry-pick of e5334c646d2dc6fb11d419918d8139a0de583fde
2018-06-13 00:31:26 +09:00
9a5f3ad4e6
mem: map Linux kernel virtual addresses properly
...
Cherry-pick of 5f37e846c3d70e5d5c0baea5b8eb8ceee3411c88
2018-06-13 00:31:26 +09:00
cfbab0ee82
move McKernel out of Linux kernel virtual
...
Cherry-pick of 88a8277f17da62d349b4340b66d37482344db649
2018-06-13 00:31:26 +09:00
249bda4aef
fileobj: use MCS locks for per-file page hash
2018-05-14 17:46:52 +09:00
90a34f54c9
mcreboot.sh,mcstop+release.sh: Disable irqbalance_mck forcefully
2018-04-26 15:06:53 +09:00
d5190990f5
mcreboot.sh,mcstop+release.sh: rm -rf /tmp/mcreboot when it's done
2018-03-27 23:25:44 +09:00
82822b1f16
mcreboot.sh: Fix error cases
...
(1) Restart irqbalance when error occurs after it's stopped
(2) Restore /proc/irq/*/smp_affinity when error occurs after
they're modified
2018-03-27 22:20:25 +09:00
7f02889f76
mcreboot.sh,mcstop+release.sh: Save /proc/irq/*/smp_affinity to /tmp/mcreboot
2018-03-27 22:01:55 +09:00
ce3af4734a
fix: dual hold_thread() in do_kill()
2018-03-19 11:12:50 +09:00
fe42481d6f
Add allow_oversubscribe kernel argument
...
It's not allowed in the default setting.
Execute mcreboot.sh with -O option to allow it.
refs #1072
2018-03-10 13:08:38 +09:00
65667709a8
Fix thread status race-condition caused by hold_thread() in do_kill() and terminate()
...
Conflicts:
arch/x86_64/kernel/syscall.c
kernel/syscall.c
2018-03-09 17:53:17 +09:00
3b277b2354
uti: Fix dead-lock of calling terminate() from terminate()
...
Conflicts:
arch/x86_64/kernel/syscall.c
kernel/syscall.c
2018-03-09 17:38:55 +09:00
06b1b4f8ab
Fix deadlock on thread->times_update in getrusage()
...
Set thread->in_kernel properly on exiting interrupt handler when entering
it from kernel mode.
Conflicts:
arch/x86_64/kernel/cpu.c
kernel/mem.c
2018-03-09 17:26:31 +09:00
a224bf648a
fix: Bug for getrusage return incorrect ru_maxrss
...
refs #1032
2018-03-07 13:09:24 +09:00
140f813d77
fix: differences in behavior of sigaction between Linux and Mckernel
2018-03-01 09:44:44 +09:00
523a066245
sigaction: support for SA_RESETHAND on x86_64
...
refs #1031
2018-02-22 11:55:32 +09:00
228f8f8533
Wait for LWK to run at shutdown.
...
refs #898
refs #928
2018-02-06 10:40:12 +09:00
559fc9746c
signal: check_signal must be called after check_need_resched.
2018-01-28 13:38:51 +09:00
86efc86945
save_syscall_return_value(): separate from check_signal() and call from syscall() (for ARM64)
2018-01-26 14:43:18 +09:00
722ae0e7d5
ARM64 arch_clone_thread(): eliminate extra save_fp_regs()
2018-01-26 13:51:38 +09:00
f55f01cc11
signal: If the thread receiving the signal is not current, the signal is not processed.
2018-01-25 22:27:34 +09:00
1fa398cfab
do_kill: fix to initialization leakage
2018-01-24 23:11:18 +09:00
d4459cf9f3
Add check to confirm IHK and McKernel with the same version are used
2018-01-24 00:20:57 +09:00
4bb65494e9
signal: When the process receives a termination signal, it first terminates mcexec.
...
refs #863
refs #870
2018-01-23 14:40:38 +09:00
2f2b3cdc6f
signal: interrupt_syscall is called by the core executing the thread that recieved the signal.
...
refs #999
2018-01-23 14:31:04 +09:00
d209c00a30
part of Issue#994
...
mcexec: open syscall moves to arch_dep
do_fork: don't use __NR_fork. use __NR_clone
vfork: moves to arch_dep
2017-12-26 10:30:33 +09:00
9a5d5feb9c
time(): Split into architecture dependent functions
...
This fixes the bug reported as POSTK_ARCH_DEP_13 and POSTK_DEBUG_ARCH_DEP_13.
2017-12-23 11:36:52 +09:00
0cda763f95
fix /proc/*/pagemap
...
refs #387
2017-12-25 16:08:51 +09:00
589504dc33
mcreboot: -h to indicate halting CPU in idle threads (e.g., in futex_wait())
2017-12-18 11:22:15 +09:00
bf2f38051b
mcreboot-smp: offline/online MCDRAM in one go
2017-12-06 14:41:25 +09:00
c9fa445f54
Merge branch 'development' of pccluster.org:mckernel into development
2017-11-22 10:53:33 +09:00
d273a2f58b
add strace bundled test cases
2017-11-22 10:52:30 +09:00
66f44e77af
mcstop+release.sh: Allow ihkmond to flush kmsg buffer
2017-11-20 18:28:48 +09:00
2f0089dfb9
mcstop+release: use ihkconfig release mem all
2017-11-20 17:06:01 +09:00
2af6d5115a
fix: depending arch futex_atomic_op_inuser() (a part of ARCH_DEP_8)
2017-11-20 16:42:47 +09:00
6c33e236d7
mcreboot: Fix umask for /proc and /sys files
2017-10-27 04:57:44 +09:00
0ecf31d896
modify:User space memory access(arm64)
2017-10-24 10:29:11 +09:00
08a625cc0d
modify:User space memory access
...
perf_event_open,futex,process_vm_readv,process_vm_writev,move_pages
2017-10-23 20:27:56 +09:00
12840601e1
support PERF_TYPE_{HARDWARE|HW_CACHE} in perf_event_open
...
refs #829
2017-10-20 23:10:20 +09:00
2ae6883a8b
mcreboot.sh, mcstop+release.sh: Fix retry loop of shutdown
2017-10-19 01:54:46 +09:00
5b6d0a887c
Add ARM64 arch_rusage header
2017-10-18 09:23:08 +09:00