Commit 280a5ba2 authored by Michael Neuling's avatar Michael Neuling Committed by Benjamin Herrenschmidt

powerpc/pseries: Improve stream generation comments in copypage/user

No code changes, just documenting what's happening a little better.
Signed-off-by: default avatarMichael Neuling <mikey@neuling.org>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent a515348f
...@@ -28,13 +28,14 @@ _GLOBAL(copypage_power7) ...@@ -28,13 +28,14 @@ _GLOBAL(copypage_power7)
* aligned we don't need to clear the bottom 7 bits of either * aligned we don't need to clear the bottom 7 bits of either
* address. * address.
*/ */
ori r9,r3,1 /* stream=1 */ ori r9,r3,1 /* stream=1 => to */
#ifdef CONFIG_PPC_64K_PAGES #ifdef CONFIG_PPC_64K_PAGES
lis r7,0x0E01 /* depth=7, units=512 */ lis r7,0x0E01 /* depth=7
* units/cachelines=512 */
#else #else
lis r7,0x0E00 /* depth=7 */ lis r7,0x0E00 /* depth=7 */
ori r7,r7,0x1000 /* units=32 */ ori r7,r7,0x1000 /* units/cachelines=32 */
#endif #endif
ori r10,r7,1 /* stream=1 */ ori r10,r7,1 /* stream=1 */
...@@ -43,12 +44,14 @@ _GLOBAL(copypage_power7) ...@@ -43,12 +44,14 @@ _GLOBAL(copypage_power7)
.machine push .machine push
.machine "power4" .machine "power4"
dcbt r0,r4,0b01000 /* setup read stream 0 */
dcbt r0,r7,0b01010 dcbt r0,r4,0b01000 /* addr from */
dcbtst r0,r9,0b01000 dcbt r0,r7,0b01010 /* length and depth from */
dcbtst r0,r10,0b01010 /* setup write stream 1 */
dcbtst r0,r9,0b01000 /* addr to */
dcbtst r0,r10,0b01010 /* length and depth to */
eieio eieio
dcbt r0,r8,0b01010 /* GO */ dcbt r0,r8,0b01010 /* all streams GO */
.machine pop .machine pop
#ifdef CONFIG_ALTIVEC #ifdef CONFIG_ALTIVEC
......
...@@ -318,12 +318,14 @@ err1; stb r0,0(r3) ...@@ -318,12 +318,14 @@ err1; stb r0,0(r3)
.machine push .machine push
.machine "power4" .machine "power4"
dcbt r0,r6,0b01000 /* setup read stream 0 */
dcbt r0,r7,0b01010 dcbt r0,r6,0b01000 /* addr from */
dcbtst r0,r9,0b01000 dcbt r0,r7,0b01010 /* length and depth from */
dcbtst r0,r10,0b01010 /* setup write stream 1 */
dcbtst r0,r9,0b01000 /* addr to */
dcbtst r0,r10,0b01010 /* length and depth to */
eieio eieio
dcbt r0,r8,0b01010 /* GO */ dcbt r0,r8,0b01010 /* all streams GO */
.machine pop .machine pop
beq cr1,.Lunwind_stack_nonvmx_copy beq cr1,.Lunwind_stack_nonvmx_copy
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment