Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Feb 2004 06:50:20 -0800 (PST)
From:      Bruce Evans <bde@zeta.org.au>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/60226: ichsmb driver doesn't detects SMB bus on Asus P4B533/P4PE motherboards
Message-ID:  <200402101450.i1AEoKIb077106@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/60226; it has been noted by GNATS.

From: Bruce Evans <bde@zeta.org.au>
To: Alexander Zagrebin <alexz@visp.ru>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: kern/60226: ichsmb driver doesn't detects SMB bus on Asus
 P4B533/P4PE motherboards
Date: Wed, 11 Feb 2004 01:44:56 +1100 (EST)

 On Tue, 10 Feb 2004, Alexander Zagrebin wrote:
 
 >  I successfully applied this patch to RELENG_5_2,
 >  but there was the compile error at fixup_pci.c.
 >  The problem was solved after adding line "#include <dev/pci/fixup_pci.h>" to
 >  it.
 >  With new kernel SMBus was detected and seems to be working.
 >  But, smbus got irq4 and i lost my sio0. :(
 >
 >  ...
 >  Feb  9 20:59:12 bsd kernel: [-] pmccfg: 49
 >  Feb  9 20:59:12 bsd kernel: Enabled Intel 801SMBus
 >  Feb  9 20:59:12 bsd kernel: pci_cfgintr: 0:31 INTA BIOS irq 9
 >  Feb  9 20:59:12 bsd kernel: pci_cfgintr: 0:31 INTB BIOS irq 9
 >  ...
 >  Feb  9 20:59:12 bsd kernel: ichsmb0: <Intel 82801DC (ICH4) SMBus controller>
 >  port 0xe800-0xe81f at device 31.3 on pci0
 >  Feb  9 20:59:12 bsd kernel: pci_cfgintr: 0:31 INTB routed to irq 4
 >                                                ^^^^^^^^^^^^^^^^^^^^
 
 sio0 on irq4 should still work.
 
 >  Feb  9 20:59:12 bsd kernel: smbus0: <System Management Bus> on ichsmb0
 >  Feb  9 20:59:12 bsd kernel: smb0: <SMBus generic I/O> on smbus0
 >  ...
 >  Feb  9 20:59:12 bsd kernel: sio0: configured irq 4 not in bitmap of probed
 >  irqs 0
 >                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 >  ^^^^^
 
 This message can be ignored if you know that irq 4 is correct.  Old versions
 used to fail here, but that is not quite right because it is possible for
 the irq to work despite the test for it failing here.
 
 >  Feb  9 20:59:12 bsd kernel: sio0: port may not be enabled
 
 This message is just a normally-usless hint about why the previous message
 was printed.
 
 >  Feb  9 20:59:12 bsd kernel: sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on
 >  isa0
 
 Since you didn't get the message "sio0: unable to activate interrupt in fast
 mode - using normal mode", sio0 has apparently been attached first and
 subsequent attachment of ichsmb should fail because sio has set up the
 interrupt in fast mode so it is unavailable in the normal mode that ichsmb
 wants.  If it actually succeeds, then there is a bug in the interrupt
 attachment (larger than the unimplemented details that prevent changing
 the sio interrupt's mode after attach time), and the bug could easily
 break delivery of interrupts too.  Things should work better if ichsmb
 is attached first.  I don't know how to force this except by making sio
 a module.
 
 Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200402101450.i1AEoKIb077106>