mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-12 18:37:07 +00:00
chickens: clear SYS_L2C_ERR_STS
It's unclear why this is necessary, but it fixes some strange crashes Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
parent
c057775ab9
commit
ad93d14ee5
1 changed files with 6 additions and 2 deletions
|
@ -96,6 +96,8 @@
|
|||
#define CYC_OVRD_IRQ_MODE(x) (((unsigned long)x) << 22)
|
||||
#define CYC_OVRD_IRQ_MODE_MASK (3UL << 22)
|
||||
|
||||
#define SYS_L2C_ERR_STS sys_reg(3, 3, 15, 8, 0)
|
||||
|
||||
void init_m1_common(void)
|
||||
{
|
||||
int core = mrs(MPIDR_EL1) & 0xff;
|
||||
|
@ -104,6 +106,9 @@ void init_m1_common(void)
|
|||
msr(s3_4_c15_c5_0, core);
|
||||
msr(s3_4_c15_c1_4, 0x100);
|
||||
sysop("isb");
|
||||
|
||||
// Unknown, seems to fix some crashes
|
||||
msr(SYS_L2C_ERR_STS, 0);
|
||||
}
|
||||
|
||||
void init_m1_icestorm(void)
|
||||
|
@ -167,8 +172,7 @@ void init_m1_firestorm(void)
|
|||
|
||||
// Best bit names...
|
||||
// Maybe: "RF bank and Multipass conflict forward progress widget does not
|
||||
// handle 3+
|
||||
// cycle livelock"
|
||||
// handle 3+ cycle livelock"
|
||||
reg_set(SYS_HID16, HID16_SPAREBIT0 | HID16_SPAREBIT3 | HID16_ENABLE_MPX_PICK_45 |
|
||||
HID16_ENABLE_MP_CYCLONE_7);
|
||||
|
||||
|
|
Loading…
Reference in a new issue