CS5536 Spurious Interrupt Problem on Loongson2
Quoted 2 lines · Tom Li
I meant the already-identified and fixed reboot/shutdown problem, not the CS3356 spurious interrupt problem.
Aha.
Quoted 3 lines
To be honest, I don't understand why the libata driver can even be a problem at all. To add some background information, I started using the libata driver since 2014, and to this day, I NEVER encountered any problem with it.
I have had occasional IRQ 14 issues over the years, but they were not common, and they'd hit while using the system. After 4.20, they seem to deterministically hit very early during boot-up.
Quoted 2 lines
Therefore, I'm suspicious that this problem is related to a specific
firmware/hardware revision
That's possible. Another possibility is that it is related with the hard drive models connected to the controller. What suggested this to me was the quirks code in the old, non-libata driver, that recognized specific hard drive models, one of which matches the drive I have on my yeeloong.
$ hdparm -i /dev/sda [...] Model=FUJITSU MHZ2160BH G2, FwRev=00000009, SerialNo=[...]
Quoted 1 line
$ cat /proc/cmdline
I don't have the PMON or EC versions in /proc/cmdline. machtype is the same.
'vers' in the pmon text prompt responds: PMON2000 2.1 (Bonito) #291
Quoted 1 line
$ cat /proc/interrupts
Differences (running 4.19) are IRQ 5, and USBs on 11 (XT) and 39 (bonito).
Quoted 1 line
(
P.S: Interrupt 10, sci, is the platform driver I'm developing, just ignore it)
Err, should I be worried that I have that too?
Signature · 4 lines
Alexandre Oliva, freedom fighter https://FSFLA.org/blogs/lxo Be the change, be Free! FSF Latin America board member GNU Toolchain Engineer Free Software Evangelist Hay que enGNUrecerse, pero sin perder la terGNUra jamás-GNUChe
Quoted 2 lines · Aaro Koskinen
Mini-PC does not have any EC. PMON is:
Version: PMON2000 2.1 (Bonito) #121: Mon Jan 5 14:19:11 CST 2009.
Quoted 2 lines · Alexandre Oliva
I don't have the PMON or EC versions in
/proc/cmdline. machtype is the same. 'vers' in the pmon text prompt responds: PMON2000 2.1 (Bonito) #291
Okay, so the problem is presented on both Yeeloong laptops and MiniPCs, and it seems both you are running some old PMON versions. The new PMON should report the PMON and/or EC versions versions in /proc/cmdline.
The version I'm using is
Quoted 1 line
PMON: PMON2000 2.1 (Bonito) #7: 2010-08-31 01:26:26 (LM8089-1.4.9a)
I'll attempt to reproduce and investigate the problem after finishing the initial pushes of Yeeloong platform drivers.
However, there are some difficulties.
* I don't have the MiniPC. Loongson 2F hardware is now completely unsupported, and almost impossible to purchase one.
* Early PMON source was not released under a version-control system, and now it's difficult to find both the source code and the binary for those earlier versions.
* PMON upgrading is notoriously unreliable, unless the binary image is completely tested by someone with the identical setup, the result is likely a bricked machine. I don't recommend you to upgrade the firmware, unless you've got the on-field support of hardware hackers with soldering equipment and a EEPROM programmer.
I'll try asking online if anyone still has the old hardware lying around, and check the corpse of those dead and buried threads posted on the Chinese fourm ten years ago, to see if there's still some binary images.
Thanks,
Tom Li
Quoted 3 lines · Tom Li
Quoted 2 lines · Aaro Koskinen
Mini-PC does not have any EC. PMON is:
Version: PMON2000 2.1 (Bonito) #121: Mon Jan 5 14:19:11 CST 2009.
Check "env" variables in PMON shell. There night be some information such as version or build date.
Quoted 8 lines · Alexandre Oliva
Quoted 2 lines
I don't have the PMON or EC versions in
/proc/cmdline. machtype is the same. 'vers' in the pmon text prompt responds: PMON2000 2.1 (Bonito) #291Okay, so the problem is presented on both Yeeloong laptops and MiniPCs, and it seems both you are running some old PMON versions. The new PMON should report the PMON and/or EC versions versions in
/proc/cmdline.The version I'm using is
Quoted 8 lines
Quoted 1 line
PMON: PMON2000 2.1 (Bonito) #7: 2010-08-31 01:26:26 (LM8089-1.4.9a)
I'll attempt to reproduce and investigate the problem after finishing the initial pushes of Yeeloong platform drivers.
However, there are some difficulties.
* I don't have the MiniPC. Loongson 2F hardware is now completely unsupported, and almost impossible to purchase one.
I have a Lemote Fuloong mini-pc, I can help with testing if you need.
The latest PMON of MiniPC is https://mirrors.ustc.edu.cn/loongson/install/pmon-LM60xx-1.3.6a.bin
Tested on my Fuloong 6003.
Quoted 3 lines
* Early PMON source was not released under a version-control system, and now it's difficult to find both the source code and the binary for those earlier versions.
That's the earliest PMON source I can find.
Quoted 5 lines
* PMON upgrading is notoriously unreliable, unless the binary image is completely tested by someone with the identical setup, the result is likely a bricked machine. I don't recommend you to upgrade the firmware, unless you've got the on-field support of hardware hackers with soldering equipment and a EEPROM programmer.
PMON is stored on a LPC Bus flash, for most models, the chip is placed on a solt so we can replace it easily. Purchase some extra chip should be enough.
Quoted 4 lines
I'll try asking online if anyone still has the old hardware lying around, and check the corpse of those dead and buried threads posted on the Chinese fourm ten years ago, to see if there's still some binary images.
You can call Liu Shiwei <[email protected]> for help, he is familiar with these old Loongson-2F hardware.
Quoted 3 lines
Thanks,
Tom Li
Signature · 2 lines
-- Jiaxun Yang
Hi,
Quoted 7 lines · Jiaxun Yang
Quoted 3 lines · Tom Li
Quoted 2 lines · Aaro Koskinen
Mini-PC does not have any EC. PMON is:
Version: PMON2000 2.1 (Bonito) #121: Mon Jan 5 14:19:11 CST 2009.Check "env" variables in PMON shell. There night be some information such as version or build date.
It has:
Version = LM6004-1.3.2
BuildTime = "Jan 5 2009 14:18:56"
A.
Quoted 2 lines · Jiaxun Yang
Check "env" variables in PMON shell. There night be some information such as version or build date.
Ah, yes, thanks.
EC PQ1D28, PMON LM8089-1.4.5 built on Aug 10, 2009.
Signature · 4 lines
Alexandre Oliva, freedom fighter https://FSFLA.org/blogs/lxo Be the change, be Free! FSF Latin America board member GNU Toolchain Engineer Free Software Evangelist Hay que enGNUrecerse, pero sin perder la terGNUra jamás-GNUChe