android_kernel_xiaomi_sm8350/arch
Brent Casavant e08e6c5213 [IA64] hooks to wait for mmio writes to drain when migrating processes
On SN2, MMIO writes which are issued from separate processors are not
guaranteed to arrive in any particular order at the IO hardware.  When
performing such writes from the kernel this is not a problem, as a
kernel thread will not migrate to another CPU during execution, and
mmiowb() calls can guarantee write ordering when control of the IO
resource is allowed to move between threads.

However, when MMIO writes can be performed from user space (e.g. DRM)
there are no such guarantees and mechanisms, as the process may
context-switch at any time, and may migrate to a different CPU as part
of the switch.  For such programs/hardware to operate correctly, it is
required that the MMIO writes from the old CPU be accepted by the IO
hardware before subsequent writes from the new CPU can be issued.

The following patch implements this behavior on SN2 by waiting for a
Shub register to indicate that these writes have been accepted.  This
is placed in the context switch-in path, and only performs the wait
when the newly scheduled task changes CPUs.

Signed-off-by: Prarit Bhargava <prarit@sgi.com>
Signed-off-by: Brent Casavant <bcasavan@sgi.com>
2006-01-26 15:55:52 -08:00
..
alpha [PATCH] vfs: *at functions: core 2006-01-18 19:20:29 -08:00
arm Merge master.kernel.org:/home/rmk/linux-2.6-arm 2006-01-18 15:18:53 -08:00
arm26 [PATCH] arm26: s/task_threas_info/task_thread_info/ 2006-01-16 23:15:27 -08:00
cris [PATCH] cris: task_thread_info() 2006-01-12 09:08:58 -08:00
frv [PATCH] Handle TIF_RESTORE_SIGMASK for FRV 2006-01-18 19:20:29 -08:00
h8300 [PATCH] h8300: task_stack_page() 2006-01-12 09:08:55 -08:00
i386 [PATCH] EDAC: core EDAC support code 2006-01-18 19:20:31 -08:00
ia64 [IA64] hooks to wait for mmio writes to drain when migrating processes 2006-01-26 15:55:52 -08:00
m32r [PATCH] m32r: task_pt_regs(), task_stack_page(), task_thread_info() 2006-01-12 09:08:54 -08:00
m68k [PATCH] m68k: console code in head.S needs framebuffer support built in 2006-01-12 09:09:06 -08:00
m68knommu [PATCH] m68knommu: task_stack_page() 2006-01-12 09:08:55 -08:00
mips [PATCH] mips: add pm_power_off 2006-01-16 23:15:26 -08:00
parisc [PATCH] e1000: Added disable packet split capability 2006-01-18 16:17:57 -05:00
powerpc [PATCH] TIF_RESTORE_SIGMASK support for arch/powerpc 2006-01-18 19:20:30 -08:00
ppc [PATCH] e1000: Added disable packet split capability 2006-01-18 16:17:57 -05:00
s390 [PATCH] s390: cputime misaccounting 2006-01-14 18:27:09 -08:00
sh [PATCH] sh: Move CPU subtype configuration to its own Kconfig 2006-01-16 23:15:28 -08:00
sh64 [PATCH] sh64: task_stack_page() 2006-01-12 09:08:57 -08:00
sparc [SPARC]: Add support for *at(), ppoll, and pselect syscalls. 2006-01-19 02:42:49 -08:00
sparc64 [SPARC64]: Use compat_sys_futimesat in 32-bit syscall table. 2006-01-20 01:49:15 -08:00
um [PATCH] uml: use generic sys_rt_sigsuspend 2006-01-18 19:20:30 -08:00
v850 [PATCH] v850: task_stack_page(), task_pt_regs() 2006-01-12 09:08:54 -08:00
x86_64 [PATCH] vfs: *at functions: x86_64 2006-01-18 19:20:29 -08:00
xtensa [PATCH] xtensa: task_pt_regs(), task_stack_page() 2006-01-12 09:08:54 -08:00