linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: 2.6.5 Sensors & USB problems
@ 2004-04-07 14:56 Jean Delvare
  2004-04-17 22:07 ` Ian Morgan
  0 siblings, 1 reply; 8+ messages in thread
From: Jean Delvare @ 2004-04-07 14:56 UTC (permalink / raw)
  To: Ben Castricum; +Cc: linux-kernel

Hi Ben,

> 2.6.5-rc1 -> sensors broke (ERROR: Can't get <sensor> data!)

Your sensors problem will be resolved as soon as you switch to the just
released lm_sensors 2.8.6.

-- 
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: 2.6.5 Sensors & USB problems
  2004-04-07 14:56 2.6.5 Sensors & USB problems Jean Delvare
@ 2004-04-17 22:07 ` Ian Morgan
  2004-04-17 23:49   ` Ian Morgan
  2004-04-18  5:32   ` Jean Delvare
  0 siblings, 2 replies; 8+ messages in thread
From: Ian Morgan @ 2004-04-17 22:07 UTC (permalink / raw)
  To: Jean Delvare; +Cc: Ben Castricum, linux-kernel

On Wed, 7 Apr 2004, Jean Delvare wrote:

> Hi Ben,
> 
> > 2.6.5-rc1 -> sensors broke (ERROR: Can't get <sensor> data!)
> 
> Your sensors problem will be resolved as soon as you switch to the just
> released lm_sensors 2.8.6.

I use the same w83781d and i2c_i801 drivers on my Asus P4PE box, and they
too went belly up with 2.6.5. However, I HAVE tried lm_sensors 2.8.6 and
that made no difference. They're just user-space tools that don't touch the
kernel any more in 2.6.x (right?).

The problem I am seeing now in 2.6.5 is that after loading the w83781d
module, nothing shows up in /sys or /proc, as though the module had not
loaded but lsmod says it is loaded.

In 2.6.4, my sensors showed up hare:
/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/* (w83781d)
/sys/devices/pci0000:00/0000:00:1f.3/i2c-1/1-0050/* (eeprom)

Now in 2.6.5, with both eeprom and w83781d modules loaded, I only get the
eeprom, and the w83781d is nowhere to be found:
/sys/devices/pci0000:00/0000:00:1f.3/i2c-1/1-0050/* (eeprom)

# find /sys/bus/i2c/drivers/
/sys/bus/i2c/drivers/
/sys/bus/i2c/drivers/w83781d
/sys/bus/i2c/drivers/eeprom
/sys/bus/i2c/drivers/eeprom/1-0050
/sys/bus/i2c/drivers/dev_driver
/sys/bus/i2c/drivers/i2c_adapter

This certainly shows that the driver is loaded, but has not found/registered
any devices?

Regards,
Ian Morgan

-- 
-------------------------------------------------------------------
 Ian E. Morgan          Vice President & C.O.O.       Webcon, Inc.
 imorgan at webcon dot ca        PGP: #2DA40D07      www.webcon.ca
    *  Customized Linux network solutions for your business  *
-------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: 2.6.5 Sensors & USB problems
  2004-04-17 22:07 ` Ian Morgan
@ 2004-04-17 23:49   ` Ian Morgan
  2004-04-18  5:51     ` Jean Delvare
  2004-04-18  5:32   ` Jean Delvare
  1 sibling, 1 reply; 8+ messages in thread
From: Ian Morgan @ 2004-04-17 23:49 UTC (permalink / raw)
  To: Jean Delvare; +Cc: Ben Castricum, linux-kernel

Yeah, bad form to reply to one's self, but someone may appreciate this info:

Seems that the w83781d driver no longer detects whatever the sensor chip on
the P4PE is, but I see there is now a new driver called asb100 which does
work. An old conflicting lm_sensors install was breaking the sensors-detect
script, but once resolved it nicely detected the asb100.

Can anyone explain, however, why my i2c bus showed up as number 0 under
linux <= 2.6.4, and now always as number 1 under linux 2.6.5? The is no
number 0 any more.

Regards,
Ian Morgan

-- 
-------------------------------------------------------------------
 Ian E. Morgan          Vice President & C.O.O.       Webcon, Inc.
 imorgan at webcon dot ca        PGP: #2DA40D07      www.webcon.ca
    *  Customized Linux network solutions for your business  *
-------------------------------------------------------------------


On Sat, 17 Apr 2004, Ian Morgan wrote:

> On Wed, 7 Apr 2004, Jean Delvare wrote:
> 
> > Hi Ben,
> > 
> > > 2.6.5-rc1 -> sensors broke (ERROR: Can't get <sensor> data!)
> > 
> > Your sensors problem will be resolved as soon as you switch to the just
> > released lm_sensors 2.8.6.
> 
> I use the same w83781d and i2c_i801 drivers on my Asus P4PE box, and they
> too went belly up with 2.6.5. However, I HAVE tried lm_sensors 2.8.6 and
> that made no difference. They're just user-space tools that don't touch the
> kernel any more in 2.6.x (right?).
> 
> The problem I am seeing now in 2.6.5 is that after loading the w83781d
> module, nothing shows up in /sys or /proc, as though the module had not
> loaded but lsmod says it is loaded.
> 
> In 2.6.4, my sensors showed up hare:
> /sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/* (w83781d)
> /sys/devices/pci0000:00/0000:00:1f.3/i2c-0/1-0050/* (eeprom)
> 
> Now in 2.6.5, with both eeprom and w83781d modules loaded, I only get the
> eeprom, and the w83781d is nowhere to be found:
> /sys/devices/pci0000:00/0000:00:1f.3/i2c-1/1-0050/* (eeprom)
> 
> # find /sys/bus/i2c/drivers/
> /sys/bus/i2c/drivers/
> /sys/bus/i2c/drivers/w83781d
> /sys/bus/i2c/drivers/eeprom
> /sys/bus/i2c/drivers/eeprom/1-0050
> /sys/bus/i2c/drivers/dev_driver
> /sys/bus/i2c/drivers/i2c_adapter
> 
> This certainly shows that the driver is loaded, but has not found/registered
> any devices?
> 
> Regards,
> Ian Morgan
> 
> -- 
> -------------------------------------------------------------------
>  Ian E. Morgan          Vice President & C.O.O.       Webcon, Inc.
>  imorgan at webcon dot ca        PGP: #2DA40D07      www.webcon.ca
>     *  Customized Linux network solutions for your business  *
> -------------------------------------------------------------------
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
> 
> 


Regards,
Ian Morgan

-- 
-------------------------------------------------------------------
 Ian E. Morgan          Vice President & C.O.O.       Webcon, Inc.
 imorgan at webcon dot ca        PGP: #2DA40D07      www.webcon.ca
    *  Customized Linux network solutions for your business  *
-------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: 2.6.5 Sensors & USB problems
  2004-04-17 22:07 ` Ian Morgan
  2004-04-17 23:49   ` Ian Morgan
@ 2004-04-18  5:32   ` Jean Delvare
  1 sibling, 0 replies; 8+ messages in thread
From: Jean Delvare @ 2004-04-18  5:32 UTC (permalink / raw)
  To: Ian Morgan; +Cc: helpdeskie, linux-kernel

> > > 2.6.5-rc1 -> sensors broke (ERROR: Can't get <sensor> data!)
> > 
> > Your sensors problem will be resolved as soon as you switch to the
> > just released lm_sensors 2.8.6.
> 
> I use the same w83781d and i2c_i801 drivers on my Asus P4PE box, and
> they too went belly up with 2.6.5. However, I HAVE tried lm_sensors
> 2.8.6 and that made no difference. They're just user-space tools that
> don't touch the kernel any more in 2.6.x (right?).
> 
> The problem I am seeing now in 2.6.5 is that after loading the w83781d
> module, nothing shows up in /sys or /proc, as though the module had
> not loaded but lsmod says it is loaded.
> 
> In 2.6.4, my sensors showed up hare:
> /sys/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002d/* (w83781d)
> /sys/devices/pci0000:00/0000:00:1f.3/i2c-1/1-0050/* (eeprom)
> 
> Now in 2.6.5, with both eeprom and w83781d modules loaded, I only get
> the eeprom, and the w83781d is nowhere to be found:
> /sys/devices/pci0000:00/0000:00:1f.3/i2c-1/1-0050/* (eeprom)

This is a different problem, and I agree that upgrading user-space tools
couldn't help in you case. Ben had his chip correctly detected but the
interface exported by the kernel was not known to the (not up-to-date)
user-space tools. In you case this is the kernel driver not supporting
your hardware anymore, that's different.

See my answer to your second post for details about your case.

-- 
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: 2.6.5 Sensors & USB problems
  2004-04-17 23:49   ` Ian Morgan
@ 2004-04-18  5:51     ` Jean Delvare
  2004-05-04 20:37       ` Greg KH
  0 siblings, 1 reply; 8+ messages in thread
From: Jean Delvare @ 2004-04-18  5:51 UTC (permalink / raw)
  To: Ian Morgan; +Cc: helpdeskie, linux-kernel, Greg KH

> Seems that the w83781d driver no longer detects whatever the sensor
> chip on the P4PE is, but I see there is now a new driver called asb100
> which does work. An old conflicting lm_sensors install was breaking
> the sensors-detect script, but once resolved it nicely detected the
> asb100.

The hardware monitoring chip on the P4PE is an Asus ASB100 "Bach". It
used to be somewhat supported by the w83781d driver (see as an
"as99127f" kind) but then a new, dedicated driver was developed by Mark
M. Hoffman, which works better. For this reason, support was dropped
from the w83781d, which explains why it suddenly stopped working.

I agree that this should have been advertised a little more, and I am
adding information about this on our 2.6 kernel dedicated page at the
moment.

> Can anyone explain, however, why my i2c bus showed up as number 0
> under linux <= 2.6.4, and now always as number 1 under linux 2.6.5?
> The is no number 0 any more.

The bus number allocation scheme is such that once a number has been
used once (since the machine last booted) it will not be used again.
This is admittedly not ideal and should be fixed. I suspect that the fix
isn't trivial because the current structures would make the new scheme
have a poor algorithmic complexity (O(2) maybe), but I haven't checked
yet. Greg, can you confirm?

This isn't critical (unless you cycle your i2c adapter drivers a great
number of times, but nodoby does this) which is why no attempt has been
made to fix it yet. Anyone with a nice fix is welcome however ;)

Thanks.

-- 
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: 2.6.5 Sensors & USB problems
  2004-04-18  5:51     ` Jean Delvare
@ 2004-05-04 20:37       ` Greg KH
  2004-05-06 17:41         ` Jean Delvare
  0 siblings, 1 reply; 8+ messages in thread
From: Greg KH @ 2004-05-04 20:37 UTC (permalink / raw)
  To: Jean Delvare; +Cc: Ian Morgan, helpdeskie, linux-kernel

On Sun, Apr 18, 2004 at 07:51:40AM +0200, Jean Delvare wrote:
> > Can anyone explain, however, why my i2c bus showed up as number 0
> > under linux <= 2.6.4, and now always as number 1 under linux 2.6.5?
> > The is no number 0 any more.
> 
> The bus number allocation scheme is such that once a number has been
> used once (since the machine last booted) it will not be used again.
> This is admittedly not ideal and should be fixed. I suspect that the fix
> isn't trivial because the current structures would make the new scheme
> have a poor algorithmic complexity (O(2) maybe), but I haven't checked
> yet. Greg, can you confirm?

It's not due to the complexity, it's just due to the fact that I haven't
gotten around to doing it yet :)

Patches to fix this are gladly welcome if the current situation really
bothers people.  No userspace tools should have a problem with the way
things are right now.  If they do have problems, please let me know.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: 2.6.5 Sensors & USB problems
  2004-05-04 20:37       ` Greg KH
@ 2004-05-06 17:41         ` Jean Delvare
  0 siblings, 0 replies; 8+ messages in thread
From: Jean Delvare @ 2004-05-06 17:41 UTC (permalink / raw)
  To: Greg KH; +Cc: imorgan, helpdeskie, linux-kernel

> It's not due to the complexity, it's just due to the fact that I
> haven't gotten around to doing it yet :)

OK, I should have stopped guessing and have taken a look to the code
instead.

> Patches to fix this are gladly welcome if the current situation really
> bothers people.  No userspace tools should have a problem with the way
> things are right now.  If they do have problems, please let me know.

You're right, there is no problem, at least no in "production"
environments. The only place where it is somewhat confusing (for
newcomers at least) is when probing the busses in the first time, or for
developers testing bus drivers (but those know what is happening).

At any rate, it is definitely better now than when device and
corresponding adapter could have different numbers. Of course it would
be better if device numbers were reused, but I'm not annoyed enough to
take a look right now either ;)

-- 
Jean Delvare
http://khali.linux-fr.org/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* 2.6.5 Sensors & USB problems
@ 2004-04-06 16:18 Ben Castricum
  0 siblings, 0 replies; 8+ messages in thread
From: Ben Castricum @ 2004-04-06 16:18 UTC (permalink / raw)
  To: linux-kernel

Running the latest kernel has caused some problems for me since 2.6.4 up to
the current 2.6.5. I recompiled all interim releases and made a little
report of the troubles I run into. All kernels are compiled with gcc version
2.95.3 20010315 (release).

2.6.4 -> everything ok
2.6.5-rc1 -> sensors broke (ERROR: Can't get <sensor> data!)
2.6.5-rc2 -> USB broke (kernel NULL pointer dereference in khubd)
2.6.5-rc3 -> networking broke (real weird stuff)
2.6.5-final -> networking fixed again!

I am real glad that networking was fixed again, but this still leaves me
with the broken sensors and a non-functional USB Modem. This all happens on
a Asus-MEW main board with a Intel Celeron (Mendocino).


The sensor module I use are w83781d and i2c_i801 and sensor reports in the
first 2 lines

as99127f-i2c-0-2d
Adapter: SMBus I801 adapter at e800

Since 2.6.5-rc1 sensors reports "Can't get data!" for all sensors while all
modules are loaded normally.


For USB (already reported earlier on lkml) I get these message on startup
with 2.6.4:

drivers/usb/core/usb.c: registered new driver usbfs
drivers/usb/core/usb.c: registered new driver hub
USB Universal Host Controller Interface driver v2.2
uhci_hcd 0000:00:1f.2: UHCI Host Controller
PCI: Setting latency timer of device 0000:00:1f.2 to 64
uhci_hcd 0000:00:1f.2: irq 9, io base 0000a400
uhci_hcd 0000:00:1f.2: new USB bus registered, assigned bus number 1
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
drivers/usb/core/usb.c: registered new driver cdc_acm
drivers/usb/class/cdc-acm.c: v0.23:USB Abstract Control Model driver for USB
modems and ISDN adapters
hw_random hardware driver 1.0.0 loaded
usb 1-2: new full speed USB device using address 2
cdc_acm 1-2:1.0: ttyACM0: USB ACM device<6>8139too Fast Ethernet driver
0.9.27

and with 2.6.5-rc2 and up:

drivers/usb/core/usb.c: registered new driver usbfs
drivers/usb/core/usb.c: registered new driver hub
USB Universal Host Controller Interface driver v2.2
uhci_hcd 0000:00:1f.2: Intel Corp. 82801AA USB
PCI: Setting latency timer of device 0000:00:1f.2 to 64
uhci_hcd 0000:00:1f.2: irq 9, io base 0000a400
uhci_hcd 0000:00:1f.2: new USB bus registered, assigned bus number 1
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
drivers/usb/core/usb.c: registered new driver cdc_acm
drivers/usb/class/cdc-acm.c: v0.23:USB Abstract Control Model driver for USB
modems and ISDN adapters
hw_random hardware driver 1.0.0 loaded
usb 1-2: new full speed USB device using address 2
Unable to handle kernel NULL pointer dereference at virtual address 00000005
 printing eip:
c8860954
*pde = 00000000
Oops: 0000 [#1]
PREEMPT
CPU:    0
EIP:    0060:[<c8860954>]    Not tainted
EFLAGS: 00010246   (2.6.5-rc2)
EIP is at acm_probe+0x9c/0x51c [cdc_acm]
eax: c7ab3cc0   ebx: 00000000   ecx: c7da0ac0   edx: 00000000
esi: c76ccd6c   edi: 00000004   ebp: c7ab3dc0   esp: c7b41e3c
ds: 007b   es: 007b   ss: 0068
Process khubd (pid: 37, threadinfo=c7b40000 task=c7b43760)
Stack: c8861d40 ffffffed c7ab3dd4 c7ab3dc0 c7a03580 c02908f0 00000000
00000001
       c029a3cc c0173a7c c7a03580 c029a3e0 c7ab3cc0 c76ccd60 c769ac00
c888d049
       c7ab3dc0 c8861c80 ffffffed c8861d40 c7ab3dd4 c769acd0 c8861d20
c01d06f1
Call Trace:
 [<c0173a7c>] sysfs_add_file+0x5c/0x7c
 [<c888d049>] usb_probe_interface+0x41/0x5c [usbcore]
 [<c01d06f1>] bus_match+0x31/0x54
 [<c01d076a>] device_attach+0x56/0x8c
 [<c01d08e8>] bus_add_device+0x50/0x88
 [<c01cfa48>] device_add+0x88/0x118
 [<c01cfae9>] device_register+0x11/0x18
 [<c8892653>] usb_set_configuration+0x1bb/0x1f4 [usbcore]
 [<c888dd93>] usb_new_device+0x2d3/0x370 [usbcore]
 [<c0117330>] printk+0x12c/0x154
 [<c888f3c6>] hub_port_connect_change+0x1ce/0x254 [usbcore]
 [<c888f57d>] hub_events+0x131/0x2dc [usbcore]
 [<c888f755>] hub_thread+0x2d/0xe4 [usbcore]
 [<c888f728>] hub_thread+0x0/0xe4 [usbcore]
 [<c0113abc>] default_wake_function+0x0/0x1c
 [<c0104e75>] kernel_thread_helper+0x5/0xc

Code: 80 7a 05 0a 0f 85 52 04 00 00 80 7a 04 01 0f 86 48 04 00 00
 <6>8139too Fast Ethernet driver 0.9.27

as a bit if extra info, "lspci -v" gives me

root@gateway:~# lspci -v
00:00.0 Host bridge: Intel Corp. 82810 DC-100 GMCH [Graphics Memory
Controller Hub] (rev 02)
        Subsystem: Asustek Computer, Inc.: Unknown device 8011
        Flags: bus master, fast devsel, latency 0

00:01.0 VGA compatible controller: Intel Corp. 82810 DC-100 CGC [Chipset
Graphics Controller] (rev 02) (prog-if 00 [VGA])
        Subsystem: Asustek Computer, Inc.: Unknown device 8011
        Flags: bus master, 66Mhz, medium devsel, latency 0, IRQ 12
        Memory at e6000000 (32-bit, prefetchable) [size=32M]
        Memory at e5000000 (32-bit, non-prefetchable) [size=512K]
        Capabilities: [dc] Power Management version 1

00:1e.0 PCI bridge: Intel Corp. 82801AA PCI Bridge (rev 01) (prog-if 00
[Normal decode])
        Flags: bus master, fast devsel, latency 0
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=32
        I/O behind bridge: 0000b000-0000dfff
        Memory behind bridge: e4000000-e4ffffff
        Prefetchable memory behind bridge: e5800000-e5ffffff

00:1f.0 ISA bridge: Intel Corp. 82801AA ISA Bridge (LPC) (rev 01)
        Flags: bus master, medium devsel, latency 0

00:1f.1 IDE interface: Intel Corp. 82801AA IDE (rev 01) (prog-if 80
[Master])
        Flags: bus master, medium devsel, latency 0
        I/O ports at a800 [size=16]

00:1f.2 USB Controller: Intel Corp. 82801AA USB (rev 01) (prog-if 00 [UHCI])
        Flags: bus master, medium devsel, latency 0, IRQ 9
        I/O ports at a400 [size=32]

00:1f.3 SMBus: Intel Corp. 82801AA SMBus (rev 01)
        Flags: medium devsel, IRQ 9
        I/O ports at e800 [size=16]

00:1f.5 Multimedia audio controller: Intel Corp. 82801AA AC'97 Audio (rev
01)
        Subsystem: Analog Devices: Unknown device 1043
        Flags: bus master, medium devsel, latency 0, IRQ 9
        I/O ports at e000 [size=256]
        I/O ports at e100 [size=64]

01:08.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C
(rev 10)
        Subsystem: Realtek Semiconductor Co., Ltd. RT8139
        Flags: bus master, medium devsel, latency 64, IRQ 12
        I/O ports at d800 [size=256]
        Memory at e4800000 (32-bit, non-prefetchable) [size=256]
        Capabilities: [50] Power Management version 2

01:09.0 Multimedia video controller: Brooktree Corporation Bt848 Video
Capture (rev 12)
        Flags: bus master, medium devsel, latency 64, IRQ 9
        Memory at e5800000 (32-bit, prefetchable) [disabled] [size=4K]

01:0a.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C
(rev 10)
        Subsystem: Realtek Semiconductor Co., Ltd. RT8139
        Flags: bus master, medium devsel, latency 64, IRQ 11
        I/O ports at d400 [size=256]
        Memory at e4000000 (32-bit, non-prefetchable) [size=256]
        Capabilities: [50] Power Management version 2

01:0b.0 Multimedia audio controller: Creative Labs SB Live! EMU10k1 (rev 07)
        Subsystem: Creative Labs SBLive! Player 5.1
        Flags: bus master, medium devsel, latency 64, IRQ 9
        I/O ports at d000 [disabled] [size=32]
        Capabilities: [dc] Power Management version 1

01:0b.1 Input device controller: Creative Labs SB Live! MIDI/Game Port (rev
07)
        Subsystem: Creative Labs Gameport Joystick
        Flags: bus master, medium devsel, latency 64
        I/O ports at b800 [disabled] [size=8]
        Capabilities: [dc] Power Management version 1

I am happy to supply more information or do tests if needed.

Kind regards,
Ben Castricum


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2004-05-06 17:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-07 14:56 2.6.5 Sensors & USB problems Jean Delvare
2004-04-17 22:07 ` Ian Morgan
2004-04-17 23:49   ` Ian Morgan
2004-04-18  5:51     ` Jean Delvare
2004-05-04 20:37       ` Greg KH
2004-05-06 17:41         ` Jean Delvare
2004-04-18  5:32   ` Jean Delvare
  -- strict thread matches above, loose matches on Subject: below --
2004-04-06 16:18 Ben Castricum

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).