Subject: Re: Patch of latest ACPI CA(20021022) for NetBSD-current
To: Masanori Kanaoka <kanaoka@ann.hi-ho.ne.jp>
From: Olaf Seibert <rhialto@polderland.nl>
List: port-i386
Date: 11/17/2002 16:57:12
On Fri 08 Nov 2002 at 01:05:00 +0900, Masanori Kanaoka wrote:
> http://www.ann.hi-ho.ne.jp/~kanaoka/acpica-20021102.diff.gz

I found this file as acpica-20021101.diff.gz, but that's ok.

I tried it on my laptop. With 1.6 it has several small problems: the
CardBus gets no irq (mswindows thinks it is 9, so I hacked that in, but
then I have no cardbus cards to try it), and apm does not know the
battery level. Also the cpu fan runs all the time so I suspect there is
no attempt at power-saving being done. Therefore I wanted to try if ACPI
does all that better.

With unpatched acpi, I know the battery level (it is reported every
minute) but power-off does not work. The irq problem is unchanged.

With the patches, some more irq problems occur. ("pci_intr_map: no
mapping for pin...") This is the same with the first and the second set
of patches.

Here is the dmesg output: I hope it gives you some useful information.

rebooting...
NetBSD 1.6K (LOELAPPIE-CURRENT) #2: Sun Nov 17 16:32:32 CET 2002
    rhialto@loelappie.falu.nl:/home/rhialto/LOELAPPIE-CURRENT
total memory = 479 MB
avail memory = 441 MB
using 6144 buffers containing 24652 KB of memory
BIOS32 rev. 0 found at 0xfdb30
PCI BIOS rev. 2.1 found at 0xfdb51
pcibios: config mechanism [1][x], special cycles [x][x], last bus 1
PCI IRQ Routing Table rev. 1.0 found at 0xf80e0, size 112 bytes (5 entries)
PCI Interrupt Router at 000:17:0 (VIA Technologies VT8231 IDE Controller)
pci_intr_fixup: no compatible PCI ICU found: ICU vendor 0x1106 product 0x8231
------------------------------------------
  device vendor product pin PIRQ IRQ stage
------------------------------------------
000:08:0 0x1217 0x6972   A  0x02   -  0    WARNING: missing IRQ
000:16:0 0x1106 0x3044   A  0x03   -  0   
000:17:2 0x1106 0x3038   D  0x05   -  0   
000:17:3 0x1106 0x3038   D  0x05   -  0   
000:17:5 0x1106 0x3058   C  0x03   -  0   
000:17:6 0x1106 0x3068   C  0x03   -  0   
000:18:0 0x1106 0x3065   A  0x01   -  0   
------------------------------------------
PCI fixup examining 1106:305
PCI fixup examining 1106:8305
PCI fixup examining 5333:8d02
PCI bridge 0: primary 0, secondary 1, subordinate 1
PCI fixup examining 1217:6972
PCI bridge 1: primary 0, secondary 2, subordinate 2
PCI fixup examining 1106:3044
PCI fixup examining 1106:8231
PCI fixup examining 1106:571
PCI fixup examining 1106:3038
PCI fixup examining 1106:3038
PCI fixup examining 1106:8235
PCI fixup examining 1106:3058
PCI fixup examining 1106:3068
PCI fixup examining 1106:3065
PCI bus #2 is the last bus
[System BIOS Setting]-----------------------
  device vendor product
  register space address    size
--------------------------------------------
000:00:0 0x1106 0x0305 
	10h mem  0xe0000000 0x04000000
		[OK]
000:01:0 0x1106 0x8305 
		[OK]
000:08:0 0x1217 0x6972 
	10h mem  0x00000000 0x00001000
		[NG]
000:16:0 0x1106 0x3044 
	10h mem  0xdffff800 0x00000800
	14h port 0x0000ec00 0x00000080
		[OK]
000:17:0 0x1106 0x8231 
		[OK]
000:17:1 0x1106 0x0571 
	20h port 0x0000fc00 0x00000010
		[OK]
000:17:2 0x1106 0x3038 
	20h port 0x0000d400 0x00000020
		[OK]
000:17:3 0x1106 0x3038 
	20h port 0x0000d800 0x00000020
		[OK]
000:17:4 0x1106 0x8235 
		[OK]
000:17:5 0x1106 0x3058 
	10h port 0x0000e400 0x00000100
	14h port 0x0000e000 0x00000004
	18h port 0x0000dc00 0x00000004
		[OK]
000:17:6 0x1106 0x3068 
	10h port 0x0000e800 0x00000100
		[OK]
000:18:0 0x1106 0x3065 
	10h port 0x0000d000 0x00000100
	14h mem  0xdffff700 0x00000100
		[OK]
001:00:0 0x5333 0x8d02 
	10h mem  0xdfe80000 0x00080000
	14h mem  0xd0000000 0x08000000
		[OK]
--------------------------[  1 devices bogus]
 Physical memory end: 0x1dfec000
 PCI memory mapped I/O space start: 0x1e000000
[PCIBIOS fixup stage]-----------------------
  device vendor product
  register space address    size
--------------------------------------------
000:00:0 0x1106 0x0305 
	10h mem  0xe0000000 0x04000000
		[OK]
000:01:0 0x1106 0x8305 
		[OK]
000:08:0 0x1217 0x6972 
	10h mem  0x1e000000 0x00001000
		[OK]
000:16:0 0x1106 0x3044 
	10h mem  0xdffff800 0x00000800
	14h port 0x0000ec00 0x00000080
		[OK]
000:17:0 0x1106 0x8231 
		[OK]
000:17:1 0x1106 0x0571 
	20h port 0x0000fc00 0x00000010
		[OK]
000:17:2 0x1106 0x3038 
	20h port 0x0000d400 0x00000020
		[OK]
000:17:3 0x1106 0x3038 
	20h port 0x0000d800 0x00000020
		[OK]
000:17:4 0x1106 0x8235 
		[OK]
000:17:5 0x1106 0x3058 
	10h port 0x0000e400 0x00000100
	14h port 0x0000e000 0x00000004
	18h port 0x0000dc00 0x00000004
		[OK]
000:17:6 0x1106 0x3068 
	10h port 0x0000e800 0x00000100
		[OK]
000:18:0 0x1106 0x3065 
	10h port 0x0000d000 0x00000100
	14h mem  0xdffff700 0x00000100
		[OK]
001:00:0 0x5333 0x8d02 
	10h mem  0xdfe80000 0x00080000
	14h mem  0xd0000000 0x08000000
		[OK]
--------------------------[  0 devices bogus]
mainbus0 (root)
cpu0 at mainbus0: (uniprocessor)
cpu0: AMD Athlon XP 1900+ (686-class), 1599.70 MHz
cpu0: features 383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR>
cpu0: features 383f9ff<PGE,MCA,CMOV,FGPAT,PSE36,MMX>
cpu0: features 383f9ff<FXSR,SSE>
cpu0: I-cache 64 KB 64b/line 2-way, D-cache 64 KB 64b/line 2-way
cpu0: L2 cache 256 KB 64b/line 16-way
cpu0: ITLB 16 4 KB entries fully associative, 8 4 MB entries fully associative
cpu0: DTLB 32 4 KB entries fully associative, 8 4 MB entries 4-way
cpu0: 8 page colors
acpi0 at mainbus0
    ACPI-0628: *** Info: GPE Block0 defined as GPE0 to GPE15
acpi0: SCI interrupting at irq 9
acpi0: fixed-feature power button present
acpibut0 at acpi0: ACPI Power Button
PNP0A03 at acpi0 not configured
PNP0C02 at acpi0 not configured
PNP0000 at acpi0 not configured
PNP0200 at acpi0 not configured
PNP0100 at acpi0 not configured
PNP0B00 at acpi0 not configured
PNP0800 at acpi0 not configured
PNP0C04 at acpi0 not configured
PNP0F03 at acpi0 not configured
PNP0303 at acpi0 not configured
PNP0700 at acpi0 not configured
PNP0501 at acpi0 not configured
VIA3058 at acpi0 not configured
PNP0401 at acpi0 not configured
acpiec0 at acpi0: ACPI Embedded Controller
acpiec0: io 0x62,0x66
acpibat0 at acpi0: ACPI Battery
acpibat0: OEM 4 341C1 00002
acpibat0: Design 4.000Wh, Predicted 4.081Wh Warn 0.204Wh Low 0.120Wh
acpibat0: idle: 16.906V cap 4.081Wh (102%) rate 0.000W
acpiacad0 at acpi0: ACPI AC Adapter
acpiacad0: AC adapter connected
PNP0C0F at acpi0 not configured
PNP0C0F at acpi0 not configured
PNP0C0F at acpi0 not configured
acpilid0 at acpi0: ACPI Lid Switch
acpibut1 at acpi0: ACPI Sleep Button
PNP0C0B at acpi0 not configured
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: VIA Technologies VT8363 KT133 System Controller (rev. 0x80)
agp0 at pchb0: aperture at 0xe0000000, size 0x10000000
ppb0 at pci0 dev 1 function 0: VIA Technologies VT8363 KT133 PCI to AGP Bridge (rev. 0x00)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga0 at pci1 dev 0 function 0: S3 product 0x8d02 (rev. 0x01)
wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
cbb0 at pci0 dev 8 function 0: O2 Micro Inc OZ6912/OZ6972 PCI-Cardbus Bridge (rev. 0x00)
cbb0: unconfigured interrupt hacked to 9	<- this is my hack
fwohci0 at pci0 dev 16 function 0: VIA Technologies VT3606 OHCI IEEE 1394 Controller (rev. 0x46)
pci_intr_map: no mapping for pin A (line=00)
fwohci0: couldn't map interrupt
pcib0 at pci0 dev 17 function 0
pcib0: VIA Technologies VT8231 IDE Controller (rev. 0x10)
pciide0 at pci0 dev 17 function 1: VIA Technologies VT8231 ATA100 controller
pciide0: bus-master DMA support present
pciide0: primary channel configured to compatibility mode
wd0 at pciide0 channel 0 drive 0: <TOSHIBA MK4018GAS>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 38154 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 78140160 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
pciide0: primary channel interrupting at irq 14
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA data transfers)
pciide0: secondary channel configured to compatibility mode
atapibus0 at pciide0 channel 1: 2 targets
cd0 at atapibus0 drive 0: <Samsung CD-RW/DVD-ROM SN-324B, , U101> cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2
pciide0: secondary channel interrupting at irq 15
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
uhci0 at pci0 dev 17 function 2: VIA Technologies VT83C572 USB Controller (rev. 0x1e)
pci_intr_map: no mapping for pin D (line=00)
uhci0: couldn't map interrupt
uhci1 at pci0 dev 17 function 3: VIA Technologies VT83C572 USB Controller (rev. 0x1e)
pci_intr_map: no mapping for pin D (line=00)
uhci1: couldn't map interrupt
VIA Technologies product 0x8235 (miscellaneous bridge, revision 0x10) at pci0 dev 17 function 4 not configured
auvia0 at pci0 dev 17 function 5: VIA VT82C686A AC'97 Audio (rev 0x40)
pci_intr_map: no mapping for pin C (line=00)
: couldn't map interrupt
VIA Technologies VT82C686A MC-97 Modem Controller (miscellaneous communications, revision 0x20) at pci0 dev 17 function 6 not configured
vr0 at pci0 dev 18 function 0: VIA VT6102 (Rhine II) 10/100 Ethernet
pci_intr_map: no mapping for pin A (line=00)
vr0: couldn't map interrupt
cbb0: interrupting at irq 9
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 2 device 0
pcmcia0 at cardslot0
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
lpt0 at isa0 port 0x378-0x37b irq 7
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
spkr0 at pcppi0
sysbeep0 at pcppi0
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
biomask ef6d netmask ef6d ttymask ffef
IPsec: Initialized Security Association Processing.
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs

>  Masanori Kanaoka     kanaoka@ann.hi-ho.ne.jp

Regards,
-Olaf.
-- 
___ Olaf 'Rhialto' Seibert      -- The evil eye is caused by the black
\X/ rhialto/at/xs4all.nl        -- tongue - Tom Poes, "Het boze oog", 4456.