Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 6619
b: refs/heads/master
c: 80ac291
h: refs/heads/master
i:
  6617: 2101b32
  6615: 1a9a736
v: v3
  • Loading branch information
Kumar Gala authored and Linus Torvalds committed Sep 1, 2005
1 parent 01ce5d2 commit b8845e4
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8085ce084c0f0144c353963853f81486fc331120
refs/heads/master: 80ac2912f846c01d702774bb6aa7100ec71e88b9
5 changes: 4 additions & 1 deletion trunk/arch/ppc/kernel/cpu_setup_6xx.S
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,11 @@ END_FTR_SECTION_IFSET(CPU_FTR_NO_DPM)
sync
isync

/* Enable L2 HW prefetch
/* Enable L2 HW prefetch, if L2 is enabled
*/
mfspr r3,SPRN_L2CR
andis. r3,r3,L2CR_L2E@h
beqlr
mfspr r3,SPRN_MSSCR0
ori r3,r3,3
sync
Expand Down
31 changes: 30 additions & 1 deletion trunk/arch/ppc/kernel/l2cr.S
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,26 @@ END_FTR_SECTION_IFSET(CPU_FTR_ALTIVEC)
The bit moved on the 7450.....
****/

BEGIN_FTR_SECTION
/* Disable L2 prefetch on some 745x and try to ensure
* L2 prefetch engines are idle. As explained by errata
* text, we can't be sure they are, we just hope very hard
* that well be enough (sic !). At least I noticed Apple
* doesn't even bother doing the dcbf's here...
*/
mfspr r4,SPRN_MSSCR0
rlwinm r4,r4,0,0,29
sync
mtspr SPRN_MSSCR0,r4
sync
isync
lis r4,KERNELBASE@h
dcbf 0,r4
dcbf 0,r4
dcbf 0,r4
dcbf 0,r4
END_FTR_SECTION_IFSET(CPU_FTR_SPEC7450)

/* TODO: use HW flush assist when available */

lis r4,0x0002
Expand Down Expand Up @@ -230,7 +250,16 @@ END_FTR_SECTION_IFSET(CPU_FTR_SPEC7450)
oris r3,r3,0x8000
mtspr SPRN_L2CR,r3
sync


/* Enable L2 HW prefetch on 744x/745x */
BEGIN_FTR_SECTION
mfspr r3,SPRN_MSSCR0
ori r3,r3,3
sync
mtspr SPRN_MSSCR0,r3
sync
isync
END_FTR_SECTION_IFSET(CPU_FTR_SPEC7450)
4:

/* Restore HID0[DPM] to whatever it was before */
Expand Down

0 comments on commit b8845e4

Please sign in to comment.