Re: [PATCH v2] armv8: always use current exception level for TCR_ELx access

2022-06-17 Thread Tom Rini
On Tue, Jun 14, 2022 at 12:11:10AM +0100, Andre Przywara wrote: > Currently get_tcr() takes an "el" parameter, to select the proper > version of the TCR_ELx system register. > This is problematic in case of the Apple M1, since it runs with > HCR_EL2.E2H fixed to 1, so TCR_EL2 is actually using the

Re: [PATCH v2] armv8: always use current exception level for TCR_ELx access

2022-06-14 Thread Mark Kettenis
> From: Andre Przywara > Date: Tue, 14 Jun 2022 00:11:10 +0100 > > Currently get_tcr() takes an "el" parameter, to select the proper > version of the TCR_ELx system register. > This is problematic in case of the Apple M1, since it runs with > HCR_EL2.E2H fixed to 1, so TCR_EL2 is actually using t

[PATCH v2] armv8: always use current exception level for TCR_ELx access

2022-06-13 Thread Andre Przywara
Currently get_tcr() takes an "el" parameter, to select the proper version of the TCR_ELx system register. This is problematic in case of the Apple M1, since it runs with HCR_EL2.E2H fixed to 1, so TCR_EL2 is actually using the TCR_EL1 layout, and we get the wrong version. For U-Boot's purposes the