Re: [PATCH V7 3/5] arm64: mm: add PROT_DEVICE_nGnRnE and PROT_NORMAL_WT

From: Will Deacon
Date: Fri Jul 24 2015 - 12:27:03 EST


On Fri, Jul 24, 2015 at 05:15:00PM +0100, Catalin Marinas wrote:
> On Tue, Jul 21, 2015 at 10:59:18PM +0100, Jonathan (Zhixiong) Zhang wrote:
> > *
> > * n = AttrIndx[2:0]
> > * n MAIR
> > @@ -303,12 +303,14 @@ ENTRY(__cpu_setup)
> > * DEVICE_GRE 010 00001100
> > * NORMAL_NC 011 01000100
> > * NORMAL 100 11111111
> > + * NORMAL_WT 101 10111011
>
> I don't think the write allocation hint makes much sense for WT memory
> (though it shouldn't cause issues either). Just use 10101010.

The EFI spec actually specifies the 1011 1011 encoding, so I think we should
follow that.

Will
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/