Skip to contentSkip to conversation

CS5536 Spurious Interrupt Problem on Loongson2

DISCUSSION Tom Li 2 participants 2 messages Feb 22, 2019 MIPS

lore
Share & tools
lore

Tom Li

author
#0 lore raw

Hi all,

During the discussion of Loongson/Yeeloong driver mainlining, both Alexandre Oliva and Aaro Koskinen reported the their Loongson machine is being bombarded by spurious interrupt from CS5536 when using the libata driver. Continue replying the original thread is off-topic and difficult to follow, so here I start a new thread for this problem.

Quoted 7 lines · Alexandre Oliva

Tom, why do you say bisecting this is impossible? I realize you wrote you did so for 24 hours non-stop, but... I'm curious as to what obstacles you ran into. It's such a reproducible problem for me that I can't see how bisecting it might be difficult.

Or were by any chance you talking about the reboot/shutdown problem then?

I meant the already-identified and fixed reboot/shutdown problem, not the CS3356 spurious interrupt problem.

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. And not only me, I had a personal project - a prebuilt kernel for Yeeloong laptops, and at least three different users had tried it. In addition, Jiaxun Yang also who did some independent work - none of these people have reported any problem similar to this one.

Therefore, I'm suspicious that this problem is related to a specific firmware/ hardware revision, or a probabilistic issue. PMON/EC version may be the first thing we need to confirm.

My system is,

$ cat /proc/cmdline
PMON_VER=LM8089-1.4.9a EC_VER=PQ1D28 machtype=lemote-yeeloong-2f-8.9inches
$ cat /proc/interrupts 
           CPU0       
  1:         11    XT-PIC   1  i8042
  2:          0    XT-PIC   2  cascade
  8:          0    XT-PIC   8  rtc0
  9:          0    XT-PIC   9  snd_cs5535audio
 10:          0    XT-PIC  10  sci
 12:         87    XT-PIC  12  i8042
 14:       6418    XT-PIC  14  pata_cs5536
 18:          0      MIPS   2  cascade
 22:          0      MIPS   6  cascade
 23:     148498      MIPS   7  timer
 37:        296  bonito_irq      eth0
ERR:          0

Interrupts have no problem at all.

(P.S: Interrupt 10, sci, is the platform driver I'm developing, just ignore it)

Thus, I don't see any CS5536 interrupt problem when using the libata driver. My first question is, what are your EC/PMON versions? can you report back?

Thanks,
Tom Li

#1 lore raw

Hi,

Quoted 2 lines · Tom Li

Continue replying the original thread is off-topic and difficult to follow, so here I start a new thread for this problem.

The proper thread is here:
https://lore.kernel.org/linux-mips/[email protected]/#r

Quoted 8 lines

Therefore, I'm suspicious that this problem is related to a specific firmware/ hardware revision, or a probabilistic issue. PMON/EC version may be the first thing we need to confirm.

My system is,

$ cat /proc/cmdline
PMON_VER=LM8089-1.4.9a EC_VER=PQ1D28 machtype=lemote-yeeloong-2f-8.9inches

Mini-PC does not have any EC. PMON is:
Version: PMON2000 2.1 (Bonito) #121: Mon Jan 5 14:19:11 CST 2009.

But firmware upgrade is not an option for me.

Quoted 1 line

Interrupts have no problem at all.

You should check "/proc/irq/14/spurious". Anyway, it well may be that some machines work fine.

A.