fa6db686b4
Corrected spin_lock_irqsave() spin_unlock_irqrestore() definitions
...
Conflicts:
kernel/include/hfi1/ihk_hfi1_common.h
2018-06-13 00:31:30 +09:00
74a636a612
Updated structs to use completion{} and wait_queue_head_t{} and added struct size checkes in hfi1_aio_write()
2018-06-13 00:31:30 +09:00
1c4a6568e6
Updated sdma.h (fixed struct sdma_engine size)
2018-06-13 00:31:30 +09:00
7d2e2f93b0
HFI1: map piobase and rcvarray_wc
2018-06-13 00:31:30 +09:00
7005110697
Updated and confirmed struct iowait{} and struct hfi1_user_sdma_pkt_q {}
...
Conflicts:
kernel/include/hfi1/ihk_hfi1_common.h
2018-06-13 00:31:30 +09:00
c4ca4ae3ab
Updated struct hfi1_devdata and confirmed its size
2018-06-13 00:31:30 +09:00
b024a486b9
Updated hfi1_filedata {} and confirmed its size against the original on Linux
...
Conflicts:
kernel/include/hfi1/hfi.h
2018-06-13 00:31:30 +09:00
fe4c461f2f
Updated kcalloc/kmalloc calls and enabled sdma_select_user_engine dependencies
...
Conflicts:
kernel/include/hfi1/ihk_hfi1_common.h
2018-06-13 00:31:29 +09:00
b60a980088
hfi1_user_sdma_process_request(): map HFI1 kregbase
2018-06-13 00:31:29 +09:00
ec66229063
HFI1: adjust sdma_select_user_engine()
...
Conflicts:
kernel/user_sdma.c
2018-06-13 00:31:29 +09:00
5cf884ef41
Updated TODO tags and struct hfi1_user_sdma_pkt_q
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
14b360e867
* Added the original files of the driver as a basis for comparison
...
Conflicts:
kernel/include/hfi1/sdma.h
kernel/sdma.c
kernel/user_sdma.c
2018-06-13 00:31:29 +09:00
4a0e389953
HFI1: comments to keep in mind
...
Conflicts:
kernel/include/hfi1/sdma.h
kernel/sdma.c
kernel/user_sdma.c
2018-06-13 00:31:28 +09:00
34363c2b68
close(): clear fd_priv_table
2018-06-13 00:31:28 +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
e36abe57e7
open(): check on private_data for /dev/hfi
2018-06-13 00:31:28 +09:00
b2c8cc50dc
open(): record private_data
...
Conflicts:
kernel/syscall.c
2018-06-13 00:31:28 +09:00
b9b4a4fe36
search_free_space(): manage region->map_end internally
...
Cherry-pick of 87f72548a232a1626f2ca103da7f1ce62d139359
Conflicts:
kernel/syscall.c
2018-06-13 00:31:28 +09:00
60ac94cbb9
process/vm/access_ok: fix edge checks.
...
Add check for start/end being larger than the range we're checking.
Fix corner case where the access_check() was done on last vm range, and
we would be looking beyond last element (null deref)
2018-06-13 00:31:28 +09:00
42bbf5f2a4
process/vm: implement access_ok()
2018-06-13 00:31:27 +09:00
e29a40331d
partitioned execution: pass process rank to LWK
...
Cherry-pick of d2d134d5e6a4b16a34d55d31b14614a2a91ecf47
Conflicts:
kernel/include/process.h
2018-06-13 00:31:27 +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
aed099fbcb
kmalloc_header: use signed integer for target CPU id
...
Cherry-pick of bdb2d4d8fa94f9c0268cdfdb21af1a2a5c2bcae5
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
cfbab0ee82
move McKernel out of Linux kernel virtual
...
Cherry-pick of 88a8277f17da62d349b4340b66d37482344db649
2018-06-13 00:31:26 +09:00
c50e7c1029
prepare_process_ranges_args_envs(): fix saving cmdline
2018-06-07 07:17:21 +09:00
5f4dbb2c71
mprotect: Fix early exit condition on page table attribute
2018-06-06 01:39:44 +09:00
511555c8cb
fix: /proc/<PID>/maps outputs a unnecessary NULL character
2018-05-30 16:38:28 +09:00
81699345cc
mprotect: do not set page table writable for cow pages
...
Change-Id: If8b0bb56e7dae59aa9dc3d745a4cc4e43bf4bf9a
2018-05-30 13:29:55 +09:00
130751ff66
fileobj: avoid memory leak in path recording
2018-05-14 17:46:52 +09:00
f3d18eb9de
fileobj/devobj: record path name (originally by Takagi-san)
2018-05-14 17:46:52 +09:00
249bda4aef
fileobj: use MCS locks for per-file page hash
2018-05-14 17:46:52 +09:00
c52f7a5b49
syscall wait4: add _WALL (POSTK_DEBUG_ARCH_DEP_44)
...
Needed by strace -f
2018-05-11 09:22:54 +09:00
a7f645f7df
terminate(): fix update_lock and threads_lock order to avoid deadlock
2018-03-25 08:29:53 +09:00
73731d2a0d
ihk_mc_map/unmap_virtual(): do proper TLB invalidation
2018-03-24 07:58:08 +09:00
8d5f95de04
schedule: Add comment on #1029
...
refs #1029
2018-03-12 17:11:20 +09:00
7bef1f5117
Remove debug-print from do_syscall()
2018-03-12 02:07:12 +09:00
fab0641813
prepare_process_ranges_args_envs(): fix generating saved_cmdline to avoid PF in strlen()
2018-03-19 13:56:04 +09:00
c107d1fdf9
fix: Bug for measuring rss in fork()
...
refs: #1032
2018-03-15 14:29:16 +09:00
bc89a51e00
fix: getrusage's u|stime race-condition caused by release_thread() and getrusage()
2018-03-15 14:26:39 +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
8c2e20c3aa
uti: Fix uti thread on the McKernel side blocks others in do_syscall()
...
It could block other threads on the same CPU in do_syscall() since it busy-waits after woken up
because it's not allowed to sleep again.
2018-03-09 18:02:45 +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
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
b7a7281195
fix: Bug for getrusage often return incorrect ru_stime
...
refs #1034
2018-03-07 13:11:37 +09:00
b77732fb4f
fix: Bug for getrusage(RUSAGE_CHILDREN) return parent info (POSTK_DEBUG_TEMP_FIX_72)
...
refs #1033
2018-03-07 13:10:45 +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
7ad6f9595c
fix: bug for ptrace_attach self pid
2018-03-01 09:37:12 +09:00