Revert "MIPS: BCM47XX: Enable 74K Core ExternalSync for PCIe erratum"
Subsystems (2)
Rafał Miłecki
maintainerPATCH 1/1 Revert "MIPS: BCM47XX: Enable 74K Core ExternalSync for PCIe erratum"
From: Rafał Miłecki <[email protected]>
This reverts commit 2a027b47dba6b77ab8c8e47b589ae9bbc5ac6175.
Enabling ExternalSync caused a regression for BCM4718A1 (used e.g. in Netgear E3000 and ASUS RT-N16): it simply hangs during PCIe initialization. It's likely that BCM4717A1 is also affected.
I didn't notice that earlier as the only BCM47XX devices with PCIe I own are:
1) BCM4706 with 2 x 14e4:4331
2) BCM4706 with 14e4:4360 and 14e4:4331
it appears that BCM4706 is unaffected.
While BCM5300X-ES300-RDS.pdf seems to document that erratum and its workarounds (according to quotes provided by Tokunori) it seems not even Broadcom follows them.
According to the provided info Broadcom should define CONF7_ES in their SDK's mipsinc.h and implement workaround in the si_mips_init(). Checking both didn't reveal such code. It *could* mean Broadcom also had some problems with the given workaround.
---
This has been reported by Michael as OpenWrt bug at:
https://bugs.openwrt.org/index.php?do=details&task_id=1688
--- arch/mips/bcm47xx/setup.c | 6 ------ arch/mips/include/asm/mipsregs.h | 3 --- 2 files changed, 9 deletions(-)
arch/mips/bcm47xx/setup.c +0 -6
@@ -212,12 +212,6 @@ static int __init bcm47xx_cpu_fixes(void)*/ if (bcm47xx_bus.bcma.bus.chipinfo.id ==BCMA_CHIP_ID_BCM4706 ) cpu_wait =NULL ; - -/* -* BCM47XX Erratum "R10: PCIe Transactions Periodically Fail" -* Enable ExternalSync for sync instruction to take effect -*/ -set_c0_config7 (MIPS_CONF7_ES );break ;#endif }
arch/mips/include/asm/mipsregs.h +0 -3
@@ -681,8 +681,6 @@#define MIPS_CONF7_WII (_ULCAST_(1) << 31)#define MIPS_CONF7_RPS (_ULCAST_(1) << 2) -/* ExternalSync */ -#define MIPS_CONF7_ES (_ULCAST_(1) << 8)#define MIPS_CONF7_IAR (_ULCAST_(1) << 10)#define MIPS_CONF7_AR (_ULCAST_(1) << 16)
@@ -2767,7 +2765,6 @@ __BUILD_SET_C0(status) __BUILD_SET_C0(cause) __BUILD_SET_C0(config) __BUILD_SET_C0(config5) -__BUILD_SET_C0(config7) __BUILD_SET_C0(intcontrol) __BUILD_SET_C0(intctl) __BUILD_SET_C0(srsmap)
Signature · 1 line
2.13.7
Hi Rafał,
Quoted 31 lines · Rafał Miłecki
From: Rafał Miłecki <[email protected]>
This reverts commit
2a027b47dba6b77ab8c8e47b589ae9bbc5ac6175.Enabling ExternalSync caused a regression for BCM4718A1 (used e.g. in Netgear E3000 and ASUS RT-N16): it simply hangs during PCIe initialization. It's likely that BCM4717A1 is also affected.
I didn't notice that earlier as the only BCM47XX devices with PCIe I own are:
1) BCM4706 with 2 x 14e4:4331
2) BCM4706 with 14e4:4360 and 14e4:4331
it appears that BCM4706 is unaffected.While BCM5300X-ES300-RDS.pdf seems to document that erratum and its workarounds (according to quotes provided by Tokunori) it seems not even Broadcom follows them.
According to the provided info Broadcom should define
CONF7_ESin their SDK'smipsinc.hand implement workaround in thesi_mips_init(). Checking both didn't reveal such code. It *could* mean Broadcom also had some problems with the given workaround.Reported-by Michael Marley <[email protected]>Cc Tokunori Ikegami <[email protected]>Cc Paul Burton <[email protected]>Cc Hauke Mehrtens <[email protected]>Cc Chris Packham <[email protected]>Cc James Hogan <[email protected]>Signed-off-by Rafał Miłecki <[email protected]>
Quoted 7 lines
---
This has been reported by Michael as OpenWrt bug at:
https://bugs.openwrt.org/index.php?do=details&task_id=1688--- arch/mips/bcm47xx/setup.c | 6 ------ arch/mips/include/asm/mipsregs.h | 3 --- 2 files changed, 9 deletions(-)
Thanks - I've applied this to mips-fixes, and will send to Linus before v4.18 final so this regression shouldn't appear in a stable kernel.
Tokunori - if this breaks your system then we'll need to look at applying the workaround more selectively.
Paul
Quoted 42 lines · Paul Burton
Hi Rafał,
Quoted 31 lines · Rafał Miłecki
From: Rafał Miłecki <[email protected]>
This reverts commit
2a027b47dba6b77ab8c8e47b589ae9bbc5ac6175.Enabling ExternalSync caused a regression for BCM4718A1 (used e.g. in Netgear E3000 and ASUS RT-N16): it simply hangs during PCIe initialization. It's likely that BCM4717A1 is also affected.
I didn't notice that earlier as the only BCM47XX devices with PCIe I own are:
1) BCM4706 with 2 x 14e4:4331
2) BCM4706 with 14e4:4360 and 14e4:4331
it appears that BCM4706 is unaffected.While BCM5300X-ES300-RDS.pdf seems to document that erratum and its workarounds (according to quotes provided by Tokunori) it seems not even Broadcom follows them.
According to the provided info Broadcom should define
CONF7_ESin their SDK'smipsinc.hand implement workaround in thesi_mips_init(). Checking both didn't reveal such code. It *could* mean Broadcom also had some problems with the given workaround.Reported-by Michael Marley <[email protected]>Cc Tokunori Ikegami <[email protected]>Cc Paul Burton <[email protected]>Cc Hauke Mehrtens <[email protected]>Cc Chris Packham <[email protected]>Cc James Hogan <[email protected]>Signed-off-by Rafał Miłecki <[email protected]>Quoted 7 lines
---
This has been reported by Michael as OpenWrt bug at:
https://bugs.openwrt.org/index.php?do=details&task_id=1688--- arch/mips/bcm47xx/setup.c | 6 ------ arch/mips/include/asm/mipsregs.h | 3 --- 2 files changed, 9 deletions(-)
Quoted 5 lines
Thanks - I've applied this to mips-fixes, and will send to Linus before v4.18 final so this regression shouldn't appear in a stable kernel.
Tokunori - if this breaks your system then we'll need to look at applying the workaround more selectively.
I wonder if the Erratum really is specific to the 5300X SoC (which isn't supported in upstream Linux). It's a little hard to get any useful information out of Broadcom, especially for an older chip.
Hi,
I am very sorry for the problem caused by my patch.
And very sorry for too late to reply to the mail since I have just noticed this revert today... (The mail was automatically saved into a folder to filter mails unintentionally...) Also Thank you so much for your fix by reverting the patch.
Quoted 2 lines
Tokunori - if this breaks your system then we'll need to look at applying the workaround more selectively.
Thank you so much.
Noted it.
At this moment it is not broken on our system but if needed I will do it.
Regards,
Ikegami
Quoted 58 lines
-----Original Message-----
From: Paul Burton [mailto:[email protected]]
Sent: Saturday, July 28, 2018 2:13 AM
To: Rafał Miłecki; IKEGAMI Tokunori
Cc: James Hogan; Ralf Baechle; Michael Marley; PACKHAM Chris; Hauke Mehrtens; [email protected]; Rafał Miłecki
Subject: Re: [PATCH] Revert "MIPS: BCM47XX: Enable 74K Core ExternalSync for PCIe erratum"Hi Rafał,
Quoted 31 lines · Rafał Miłecki
From: Rafał Miłecki <[email protected]>
This reverts commit
2a027b47dba6b77ab8c8e47b589ae9bbc5ac6175.Enabling ExternalSync caused a regression for BCM4718A1 (used e.g. in Netgear E3000 and ASUS RT-N16): it simply hangs during PCIe initialization. It's likely that BCM4717A1 is also affected.
I didn't notice that earlier as the only BCM47XX devices with PCIe I own are:
1) BCM4706 with 2 x 14e4:4331
2) BCM4706 with 14e4:4360 and 14e4:4331
it appears that BCM4706 is unaffected.While BCM5300X-ES300-RDS.pdf seems to document that erratum and its workarounds (according to quotes provided by Tokunori) it seems not even Broadcom follows them.
According to the provided info Broadcom should define
CONF7_ESin their SDK'smipsinc.hand implement workaround in thesi_mips_init(). Checking both didn't reveal such code. It *could* mean Broadcom also had some problems with the given workaround.Reported-by Michael Marley <[email protected]>Cc Tokunori Ikegami <[email protected]>Cc Paul Burton <[email protected]>Cc Hauke Mehrtens <[email protected]>Cc Chris Packham <[email protected]>Cc James Hogan <[email protected]>Signed-off-by Rafał Miłecki <[email protected]>Quoted 7 lines
---
This has been reported by Michael as OpenWrt bug at:
https://bugs.openwrt.org/index.php?do=details&task_id=1688--- arch/mips/bcm47xx/setup.c | 6 ------ arch/mips/include/asm/mipsregs.h | 3 --- 2 files changed, 9 deletions(-)Thanks - I've applied this to mips-fixes, and will send to Linus before v4.18 final so this regression shouldn't appear in a stable kernel.
Tokunori - if this breaks your system then we'll need to look at applying the workaround more selectively.
Paul