Regression since 3.8: a DMA cache change break rtl8187 USB wireless on Loongson

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



According to Bug #54391[0], the rtl8187 USB wireless card on
YeeLoong 8089D laptop / Loongson platform is broken since Linux 3.8.0.

The driver cause a kernel panic when receiving frames.
Many users' on Loongson-dev mailing confirmed the issue is 100% reproduced.

After a git bisect, I confirmed
a16dad7763420a3b46cff1e703a9070827796cfc (MIPS: Fix potencial corruption)
Caused the issue. After reverted the commit, the wireless is working again
even in the latest 3.12 kernel.

But rtl8187 driver doesn't use DMA directly.

After discuss with Stanislaw Gruszka, it maybe caused by:

- USB host controller driver misusing the DMA API
- A Loongson hardware-related issue, some alignment instructions
should be added back

YeeLoong 8089D uses a AMD CS5536 controller

> 00:0e.4 USB controller: Advanced Micro Devices, Inc. [AMD] CS5536 [Geode companion] OHC (rev 02)
> 00:0e.5 USB controller: Advanced Micro Devices, Inc. [AMD] CS5536 [Geode companion] EHC (rev 02)

And they use PCI abstraction provide by ohci-pci and ehci-pci.


More information is avaliable here:

[0]: https://bugzilla.kernel.org/show_bug.cgi?id=54391

Thanks,

Tom Li.


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux