Bug 10357

Summary: w83781d module is not working
Product: Drivers Reporter: Alexander Kaltsas (alexkaltsas)
Component: Hardware MonitoringAssignee: Jean Delvare (jdelvare)
Status: RESOLVED CODE_FIX    
Severity: normal CC: bunk, mhoffman
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 2.6.24.3 Subsystem:
Regression: Yes Bisected commit-id:
Attachments: Fix resource conflict between w83781d and pnp

Description Alexander Kaltsas 2008-03-29 08:58:50 UTC
Latest working kernel version: 2.6.22

Earliest failing kernel version: 2.6.24

Distribution: Arch Linux

Hardware Environment: Pentium III processor @ 900 Mhz, 512 Mbytes RAM, QDI Advance  9 motherboard with VIA chipset.

00:00.0 Host bridge: VIA Technologies, Inc. VT82C693A/694x [Apollo PRO133x] (rev 44)
00:01.0 PCI bridge: VIA Technologies, Inc. VT82C598/694x [Apollo MVP3/Pro133x AGP]
00:07.0 ISA bridge: VIA Technologies, Inc. VT82C596 ISA [Mobile South] (rev 23)
00:07.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 10)
00:07.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 11)
00:07.3 Host bridge: VIA Technologies, Inc. VT82C596 Power Management (rev 30)
 
Software Environment: Arch Linux installation fully updated.

Problem Description: Loading (modprobe) w83781d module doesn't do anything. dmesg doesn't shows anything. Normally (in older kernel version) it would "say" something like w83781d: Found a w83782 chip at ISA... etc. Lm sensors can't work properly. They can't detect the module although it shows up no lsmod.   

Steps to reproduce: Try to modprobe w83781d module at a compatible chipset. Try it on any chipset. It would at least produce a kernel message shown at dmesg saying no compatible device found or something.
Comment 1 Jean Delvare 2008-03-29 09:27:25 UTC
Please provide the contents of /proc/ioports on the failing kernel, and if possible on the latest working kernel as well for comparison.

I suspect that this is the same problem as:
http://www.lm-sensors.org/ticket/2306
Comment 2 Alexander Kaltsas 2008-03-29 10:22:49 UTC
The patch you mentioned works fine. Please include it to the next kernel release. For the record:

The failing kernel ioports

0000-001f : dma1
0020-0021 : pic1
0040-0043 : timer0
0050-0053 : timer1
0060-006f : keyboard
0070-0073 : rtc0
0080-008f : dma page reg
00a0-00a1 : pic2
00c0-00df : dma2
00f0-00ff : fpu
0170-0177 : 0000:00:07.1
0170-0177 : ide1
01f0-01f7 : 0000:00:07.1
01f0-01f7 : ide0
0213-0213 : ISAPnP
0220-022f : 3c509 PnP
0294-0297 : pnp 00:02
02f8-02ff : serial
0376-0376 : 0000:00:07.1
0376-0376 : ide1
0378-037a : parport0
03c0-03df : vesafb
03f0-03f1 : pnp 00:02
03f2-03f5 : floppy
03f6-03f6 : 0000:00:07.1
03f6-03f6 : ide0
03f7-03f7 : floppy DIR
03f8-03ff : lirc_serial
04d0-04d1 : pnp 00:02
0a79-0a79 : isapnp write
0cf8-0cff : PCI conf1
4000-4003 : ACPI PM1a_EVT_BLK
4008-400b : ACPI PM_TMR
4010-4015 : ACPI CPU throttle
4020-4023 : ACPI GPE0_BLK
40f0-40f1 : ACPI PM1a_CNT_BLK
d000-dfff : PCI Bus #01
e000-e00f : 0000:00:07.1
e000-e007 : ide0
e008-e00f : ide1
e400-e41f : 0000:00:07.2
e400-e41f : uhci_hcd
e800-e83f : 0000:00:0c.0
e800-e83f : Ensoniq AudioPCI



The working kernel ioports

0000-001f : dma1
0020-0021 : pic1
0040-0043 : timer0
0050-0053 : timer1
0060-006f : keyboard
0070-0073 : rtc0
0080-008f : dma page reg
00a0-00a1 : pic2
00c0-00df : dma2
00f0-00ff : fpu
0170-0177 : 0000:00:07.1
0170-0177 : ide1
01f0-01f7 : 0000:00:07.1
01f0-01f7 : ide0
0213-0213 : ISAPnP
0220-022f : 3c509 PnP
0290-0298 : w83781d
0290-0297 : w83781d
02f8-02ff : serial
0376-0376 : 0000:00:07.1
0376-0376 : ide1
0378-037a : parport0
03c0-03df : vesafb
03f2-03f5 : floppy
03f6-03f6 : 0000:00:07.1
03f6-03f6 : ide0
03f7-03f7 : floppy DIR
0a79-0a79 : isapnp write
0cf8-0cff : PCI conf1
4000-4003 : ACPI PM1a_EVT_BLK
4008-400b : ACPI PM_TMR
4010-4015 : ACPI CPU throttle
4020-4023 : ACPI GPE0_BLK
40f0-40f1 : ACPI PM1a_CNT_BLK
5000-5007 : vt596_smbus
d000-dfff : PCI Bus #01
e000-e00f : 0000:00:07.1
e000-e007 : ide0
e008-e00f : ide1
e400-e41f : 0000:00:07.2
e400-e41f : uhci_hcd
e800-e83f : 0000:00:0c.0
e800-e83f : Ensoniq AudioPCI
Comment 3 Jean Delvare 2008-03-29 11:22:31 UTC
Created attachment 15506 [details]
Fix resource conflict between w83781d and pnp

I'm attaching the patch for reference. Mark should push it to Linus soon now.
Comment 4 Alexander Kaltsas 2008-03-29 13:22:10 UTC
Ok, thanks you very much.
Comment 6 Jean Delvare 2008-04-05 00:34:44 UTC
The fix is not in 2.6.24.y yet, so reopening.
Comment 7 Alexander Kaltsas 2008-04-05 06:33:21 UTC
I hope that it will be added to the kernel soon.
Comment 8 Jean Delvare 2008-04-05 07:05:09 UTC
I sent the patch to the stable kernel team already, but I think Greg Kroah-Hartman was on vacation this week, so it will probably take some more days before the patch is accepted and kernel 2.6.24.5 is released.
Comment 9 Jean Delvare 2008-04-19 02:45:50 UTC
Fixed in 2.6.24.5.