diff mbox

powerpc/fsl-booke: Get coherent bit from PTE

Message ID 1268800916-14247-1-git-send-email-galak@kernel.crashing.org (mailing list archive)
State Accepted, archived
Commit 9d296cfa69b3d4abc9d556986d544f0727988eed
Headers show

Commit Message

Kumar Gala March 17, 2010, 4:41 a.m. UTC
We shouldn't be always setting 'M' in the TLB entry since its reasonable
for somethings to be mapped non-coherent.  The PTE should have 'M' set
properly.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
---
 arch/powerpc/kernel/head_fsl_booke.S |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

Comments

Micha Nelissen March 18, 2010, 7:02 a.m. UTC | #1
Kumar Gala wrote:
> We shouldn't be always setting 'M' in the TLB entry since its reasonable
> for somethings to be mapped non-coherent.  The PTE should have 'M' set
> properly.

properly = not at all? AFAICS the patch only removes the setting of the 
bit; so where is that 'M' bit set then?

Micha
Kumar Gala March 18, 2010, 7:08 a.m. UTC | #2
On Mar 18, 2010, at 2:02 AM, Micha Nelissen wrote:

> Kumar Gala wrote:
>> We shouldn't be always setting 'M' in the TLB entry since its reasonable
>> for somethings to be mapped non-coherent.  The PTE should have 'M' set
>> properly.
> 
> properly = not at all? AFAICS the patch only removes the setting of the bit; so where is that 'M' bit set then?
> 
> Micha

Its set via things like the _PAGE_BASE define in arch/powerpc/include/asm/pte-common.h

- k
diff mbox

Patch

diff --git a/arch/powerpc/kernel/head_fsl_booke.S b/arch/powerpc/kernel/head_fsl_booke.S
index 25793bb..a7cf493 100644
--- a/arch/powerpc/kernel/head_fsl_booke.S
+++ b/arch/powerpc/kernel/head_fsl_booke.S
@@ -747,9 +747,6 @@  finish_tlb_load:
 #else
 	rlwimi	r12, r11, 26, 27, 31	/* extract WIMGE from pte */
 #endif
-#ifdef CONFIG_SMP
-	ori	r12, r12, MAS2_M
-#endif
 	mtspr	SPRN_MAS2, r12
 
 #ifdef CONFIG_PTE_64BIT