From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from natklopstock.rzone.de (natklopstock.rzone.de [81.169.145.174]) by ozlabs.org (Postfix) with ESMTP id 125D667BC7 for ; Mon, 2 Oct 2006 19:41:13 +1000 (EST) Date: Mon, 2 Oct 2006 11:38:53 +0200 From: Olaf Hering To: David Woodhouse , Benjamin Herrenschmidt Subject: Re: [PATCH] Use check_legacy_ioport() for ISAPnP Message-ID: <20061002093853.GA13880@aepfle.de> References: <1159341535.3309.108.camel@pmac.infradead.org> <20060927081838.GA5984@aepfle.de> <1159361385.3309.118.camel@pmac.infradead.org> <20060927130525.GA7550@aepfle.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="WIyZ46R2i8wDzkSu" In-Reply-To: <20060927130525.GA7550@aepfle.de> Cc: linuxppc-dev@ozlabs.org, paulus@samba.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , --WIyZ46R2i8wDzkSu Content-Type: text/plain; charset=utf-8 Content-Disposition: inline On Wed, Sep 27, Olaf Hering wrote: > On Wed, Sep 27, David Woodhouse wrote: > > > And did you fix the case of PCI parallel ports? We only want to do the > > check_legacy_ioport() thing for the 'default' built-in ports, not for > > all ports. > > I have to check if my multiport IO card still works, but I'm sure it > will. The new check in parport_pc_init() will prevent the probing of PCI devices. I guess the correct fix would be a sophisticated pmac_check_legacy_ioport() that checks if baseport is available on some PCI device: 0001:10:13.0 Serial controller: Timedia Technology Co Ltd PCI2S550 (Dual 16550 UART) (rev 01) (prog-if 02 [16550]) Subsystem: Timedia Technology Co Ltd Unknown device 5079 Control: I/O+ Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping+ SERR- FastB2B- Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- SERR- 0081) PCI parallel port detected: 1409:7168, I/O at 0x870(0x860) parport0: PC-style at 0x870 [PCSPP,TRISTATE,EPP] lp0: using parport0 (polling). --WIyZ46R2i8wDzkSu Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="date-2.6.18-date-serial.txt" Using PowerMac machine description Total memory = 256MB; using 512kB for hash table (at cff80000) Linux version 2.6.18-date-serial (olaf@pomegranate) (gcc version 4.1.0 (SUSE Linux)) #20 Mon Oct 2 11:30:24 CEST 2006 Found UniNorth memory controller & host bridge @ 0xf8000000 revision: 0x11 Mapped at 0xfdfc0000 Found a Keylargo mac-io controller, rev: 3, mapped at 0xfdf40000 Processor NAP mode on idle enabled. PowerMac motherboard: PowerMac G4 Silver Found UniNorth PCI host bridge at 0x00000000f0000000. Firmware bus number: 0->0 Found UniNorth PCI host bridge at 0x00000000f2000000. Firmware bus number: 0->0 Found UniNorth PCI host bridge at 0x00000000f4000000. Firmware bus number: 0->0 via-pmu: Server Mode is disabled PMU driver v2 initialized for Core99, firmware: 0c nvram: Checking bank 0... nvram: gen0=356, gen1=355 nvram: Active bank is: 0 nvram: OF partition at 0x210 nvram: XP partition at 0x1220 nvram: NR partition at 0x1320 Top of RAM: 0x10000000, Total RAM: 0x10000000 Memory hole size: 0MB On node 0 totalpages: 65536 DMA zone: 65536 pages, LIFO batch:15 Built 1 zonelists. Total pages: 65536 Kernel command line: root=/dev/hda13 quiet sysrq=1 video=aty128fb:1024x768@75 debug video=aty128fb:1024x768@85 mpic: Setting up MPIC " MPIC 1 " version 1.2 at 80040000, max 4 CPUs mpic: ISU size: 64, shift: 6, mask: 3f mpic: Initializing for 64 sources PID hash table entries: 2048 (order: 11, 8192 bytes) GMT Delta read from XPRAM: 120 minutes, DST: on time_init: decrementer frequency = 33.290001 MHz time_init: processor frequency = 466.666665 MHz Console: colour dummy device 80x25 pmac_zilog: i2c-modem detected, id: 1 Dentry cache hash table entries: 32768 (order: 5, 131072 bytes) Inode-cache hash table entries: 16384 (order: 4, 65536 bytes) Memory: 252416k/262144k available (3844k kernel code, 9460k reserved, 368k data, 2205k bss, 156k init) Calibrating delay loop... 66.56 BogoMIPS (lpj=332800) Mount-cache hash table entries: 512 device-tree: Duplicate name in /cpus/PowerPC,G4@0, renamed to "l2-cache#1" PM: Adding info for No Bus:platform NET: Registered protocol family 16 KeyWest i2c @0xf8001003 irq 42 /uni-n@f8000000/i2c@f8001000 channel 0 bus channel 1 bus KeyWest i2c @0x80018000 irq 26 /pci@f2000000/mac-io@17/i2c@18000 channel 0 bus PMU i2c /pci@f2000000/mac-io@17/via-pmu@16000 channel 1 bus channel 2 bus PCI: Probing PCI hardware PM: Adding info for No Bus:pci0000:00 PM: Adding info for pci:0000:00:0b.0 PM: Adding info for pci:0000:00:10.0 PM: Adding info for No Bus:pci0001:10 PM: Adding info for pci:0001:10:0b.0 PM: Adding info for pci:0001:10:12.0 PM: Adding info for pci:0001:10:12.1 PM: Adding info for pci:0001:10:12.2 PM: Adding info for pci:0001:10:12.3 PM: Adding info for pci:0001:10:13.0 PM: Adding info for pci:0001:10:14.0 PM: Adding info for pci:0001:10:17.0 PM: Adding info for pci:0001:10:18.0 PM: Adding info for pci:0001:10:19.0 PM: Adding info for No Bus:pci0002:20 PM: Adding info for pci:0002:20:0b.0 PM: Adding info for pci:0002:20:0e.0 PM: Adding info for pci:0002:20:0f.0 PM: Adding info for platform:i2c-powermac.0 PM: Adding info for platform:i2c-powermac.1 PM: Adding info for platform:i2c-powermac.2 PM: Adding info for platform:i2c-powermac.3 PM: Adding info for platform:i2c-powermac.4 SCSI subsystem initialized usbcore: registered new driver usbfs usbcore: registered new driver hub NET: Registered protocol family 2 IP route cache hash table entries: 2048 (order: 1, 8192 bytes) TCP established hash table entries: 8192 (order: 3, 32768 bytes) TCP bind hash table entries: 4096 (order: 2, 16384 bytes) TCP: Hash tables configured (established 8192 bind 4096) TCP reno registered Initializing Cryptographic API io scheduler noop registered io scheduler anticipatory registered (default) io scheduler deadline registered io scheduler cfq registered PCI: Enabling device 0000:00:10.0 (0086 -> 0087) aty128fb: Invalid ROM signature 1111 should be 0xaa55 aty128fb: BIOS not located, guessing timings. aty128fb: Rage128 PF PRO AGP [chip rev 0x1] 16M 128-bit SDR SGRAM (1:1) Console: switching to colour frame buffer device 128x48 fb0: ATY Rage128 frame buffer device on Rage128 PF PRO AGP lp: driver loaded but no devices found Generic RTC Driver v1.07 Macintosh non-volatile memory driver v1.1 ppdev: user-space parallel port driver pmac_zilog: 0.6 (Benjamin Herrenschmidt ) ttyS0 at MMIO 0x80013020 (irq = 22) is a Z85c30 ESCC - Internal modem ttyS1 at MMIO 0x80013000 (irq = 50) is a Z85c30 ESCC - Serial port parport_default_proc_register(485) parport_pc_init(3377) IN from bad port 3f1 at c01dd058 IN from bad port 3f1 at c01dd07c IN from bad port 3f1 at c01dd0a0 IN from bad port 3f1 at c01dd0dc IN from bad port 3f1 at c01dd100 IN from bad port 3f1 at c01dd124 IN from bad port 371 at c01dd058 IN from bad port 371 at c01dd07c IN from bad port 371 at c01dd0a0 IN from bad port 371 at c01dd0dc IN from bad port 371 at c01dd100 IN from bad port 371 at c01dd124 IN from bad port 2f at c01dd058 IN from bad port 2f at c01dd07c IN from bad port 2f at c01dd0a0 IN from bad port 2f at c01dd0dc IN from bad port 2f at c01dd100 IN from bad port 2f at c01dd124 IN from bad port 4f at c01dd058 IN from bad port 4f at c01dd07c IN from bad port 4f at c01dd0a0 IN from bad port 4f at c01dd0dc IN from bad port 4f at c01dd100 IN from bad port 4f at c01dd124 IN from bad port 3f1 at c01dd058 IN from bad port 3f1 at c01dd07c IN from bad port 3f1 at c01dd0a0 IN from bad port 3f1 at c01dd0dc IN from bad port 3f1 at c01dd100 IN from bad port 3f1 at c01dd124 IN from bad port 252 at c01dceb8 IN from bad port 252 at c01dcee4 IN from bad port 252 at c01dcf08 IN from bad port 252 at c01dcf3c IN from bad port 252 at c01dcf60 IN from bad port 252 at c01dcf84 IN from bad port 252 at c01dceb8 IN from bad port 252 at c01dcee4 IN from bad port 252 at c01dcf08 IN from bad port 252 at c01dcf3c IN from bad port 252 at c01dcf60 IN from bad port 252 at c01dcf84 IN from bad port 3f1 at c01dcc28 IN from bad port 3f1 at c01dcc4c IN from bad port 3f1 at c01dcc70 IN from bad port 3f1 at c01dcc94 IN from bad port 3f1 at c01dccd0 IN from bad port 3f1 at c01dccf4 IN from bad port 3f1 at c01dcd18 IN from bad port 3f1 at c01dcd3c IN from bad port 371 at c01dcc28 IN from bad port 371 at c01dcc4c IN from bad port 371 at c01dcc70 IN from bad port 371 at c01dcc94 IN from bad port 371 at c01dccd0 IN from bad port 371 at c01dccf4 IN from bad port 371 at c01dcd18 IN from bad port 371 at c01dcd3c IN from bad port 3f1 at c01dcc28 IN from bad port 3f1 at c01dcc4c IN from bad port 3f1 at c01dcc70 IN from bad port 3f1 at c01dcc94 IN from bad port 3f1 at c01dccd0 IN from bad port 3f1 at c01dccf4 IN from bad port 3f1 at c01dcd18 IN from bad port 3f1 at c01dcd3c IN from bad port 371 at c01dcc28 IN from bad port 371 at c01dcc4c IN from bad port 371 at c01dcc70 IN from bad port 371 at c01dcc94 IN from bad port 371 at c01dccd0 IN from bad port 371 at c01dccf4 IN from bad port 371 at c01dcd18 IN from bad port 371 at c01dcd3c PCI: Enabling device 0001:10:13.0 (0080 -> 0081) PCI parallel port detected: 1409:7168, I/O at 0x870(0x860) parport0: PC-style at 0x870 [PCSPP,TRISTATE,EPP] lp0: using parport0 (polling). loop: loaded (max 8 devices) sungem.c:v0.98 8/24/03 David S. Miller (davem@redhat.com) PHY ID: 206053, addr: 0 eth0: Sun GEM (PCI) 10/100/1000BaseT Ethernet 00:30:65:f3:4c:ae eth0: Found BCM5401 PHY MacIO PCI driver attached to Keylargo chipset PM: Adding info for macio:0.80000000:mac-io PM: Adding info for macio:0.00040000:interrup PM: Adding info for macio:0.00000050:gpio PM: Adding info for macio:0.00013000:escc PM: Adding info for macio:0.00010000:i2s PM: Adding info for macio:0.00015000:timer PM: Adding info for macio:0.00016000:via-pmu PM: Adding info for macio:0.00018000:i2c PM: Adding info for macio:0.0001f000:ata-4 PM: Adding info for macio:0.00020000:ata-3 PM: Adding info for macio:0.00021000:ata-3 PM: Adding info for macio:0.00013020:ch-a PM: Adding info for macio:0.00013000:ch-b input: Macintosh mouse button emulation as /class/input/input0 apm_emu: APM Emulation 0.5 initialized. Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2 ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx adb: starting probe task... adb: finished probe task... ide0: Found Apple KeyLargo ATA-4 controller, bus ID 2, irq 19 Probing IDE interface ide0... hda: Maxtor 33073H3 B, ATA DISK drive PM: Adding info for No Bus:ide0 hda: Enabling Ultra DMA 4 ide0 at 0xd101e000-0xd101e007,0xd101e160 on irq 19 PM: Adding info for ide:0.0 eth0: Link is up at 100 Mbps, full-duplex. ide1: Found Apple KeyLargo ATA-3 controller, bus ID 0, irq 20 Probing IDE interface ide1... hdc: SONY CD-RW CRX140E, ATAPI CD/DVD-ROM drive PM: Adding info for No Bus:ide1 hdd: IOMEGA ZIP 250 ATAPI, ATAPI FLOPPY drive hdc: Enabling MultiWord DMA 2 ide1 at 0xd1026000-0xd1026007,0xd1026160 on irq 20 PM: Adding info for ide:1.0 PM: Adding info for ide:1.1 ide2: Found Apple KeyLargo ATA-3 controller, bus ID 1, irq 21 Probing IDE interface ide2... hda: max request size: 128KiB hda: 60032448 sectors (30736 MB) w/2048KiB Cache, CHS=59556/16/63, UDMA(66) hda: cache flushes not supported hda: [mac] hda1 hda2 hda3 hda4 hda5 hda6 hda7 hda8 hda9 hda10 hda11 hda12 hda13 hda14 hda15 hdc: ATAPI 32X CD-ROM CD-R/RW drive, 4096kB Cache, (U)DMA Uniform CD-ROM driver Revision: 3.20 mesh: configured for synchronous 5 MB/s ieee1394: Initialized config rom entry `ip1394' PCI: Enabling device 0001:10:12.3 (0090 -> 0093) PM: Adding info for ieee1394:fw-host0 ohci1394: fw-host0: OHCI-1394 1.0 (PCI): IRQ=[52] MMIO=[80084000-800847ff] Max Packet=[2048] IR/IT contexts=[8/8] PM: Adding info for ieee1394:fw-host1 ohci1394: fw-host1: OHCI-1394 1.0 (PCI): IRQ=[40] MMIO=[f5000000-f50007ff] Max Packet=[2048] IR/IT contexts=[8/8] video1394: Installed video1394 module ieee1394: raw1394: /dev/raw1394 device initialized ieee1394: sbp2: Driver forced to serialize I/O (serialize_io=1) ieee1394: sbp2: Try serialize_io=0 for better performance eth1394: eth1: IEEE-1394 IPv4 over 1394 Ethernet (fw-host0) eth1394: eth2: IEEE-1394 IPv4 over 1394 Ethernet (fw-host1) ohci_hcd: 2005 April 22 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI) PCI: Enabling device 0001:10:18.0 (0000 -> 0002) ohci_hcd 0001:10:18.0: OHCI Host Controller ohci_hcd 0001:10:18.0: new USB bus registered, assigned bus number 1 ohci_hcd 0001:10:18.0: irq 27, io mem 0x80083000 PM: Adding info for usb:usb1 PM: Adding info for No Bus:usbdev1.1_ep00 usb usb1: configuration #1 chosen from 1 choice PM: Adding info for usb:1-0:1.0 hub 1-0:1.0: USB hub found hub 1-0:1.0: 2 ports detected PM: Adding info for No Bus:usbdev1.1_ep81 PCI: Enabling device 0001:10:19.0 (0000 -> 0002) ohci_hcd 0001:10:19.0: OHCI Host Controller ohci_hcd 0001:10:19.0: new USB bus registered, assigned bus number 2 ohci_hcd 0001:10:19.0: irq 28, io mem 0x80082000 PM: Adding info for usb:usb2 PM: Adding info for No Bus:usbdev2.1_ep00 usb usb2: configuration #1 chosen from 1 choice PM: Adding info for usb:2-0:1.0 hub 2-0:1.0: USB hub found hub 2-0:1.0: 2 ports detected PM: Adding info for No Bus:usbdev2.1_ep81 usb 1-1: new full speed USB device using ohci_hcd and address 2 PM: Adding info for usb:1-1 PM: Adding info for No Bus:usbdev1.2_ep00 usb 1-1: configuration #1 chosen from 1 choice PM: Adding info for usb:1-1:1.0 hub 1-1:1.0: USB hub found hub 1-1:1.0: 3 ports detected PM: Adding info for No Bus:usbdev1.2_ep81 usb 1-1.1: new low speed USB device using ohci_hcd and address 3 PM: Adding info for ieee1394:0011060000006685 ieee1394: Host added: ID:BUS[0-00:1023] GUID[0011060000006685] PM: Adding info for ieee1394:0011060000006685-0 PM: Adding info for usb:1-1.1 PM: Adding info for No Bus:usbdev1.3_ep00 usb 1-1.1: configuration #1 chosen from 1 choice PM: Adding info for usb:1-1.1:1.0 PM: Adding info for No Bus:usbdev1.3_ep81 usb 1-1.2: new low speed USB device using ohci_hcd and address 4 PM: Adding info for ieee1394:003065fffef34cae ieee1394: Host added: ID:BUS[1-00:1023] GUID[003065fffef34cae] PM: Adding info for ieee1394:003065fffef34cae-0 PM: Adding info for usb:1-1.2 PM: Adding info for No Bus:usbdev1.4_ep00 usb 1-1.2: configuration #1 chosen from 1 choice PM: Adding info for usb:1-1.2:1.0 PM: Adding info for No Bus:usbdev1.4_ep81 input: Alps Electric Apple USB Keyboard as /class/input/input1 input: USB HID v1.00 Keyboard [Alps Electric Apple USB Keyboard] on usb-0001:10:18.0-1.1 input: Logitech Apple Optical USB Mouse as /class/input/input2 input: USB HID v1.10 Mouse [Logitech Apple Optical USB Mouse] on usb-0001:10:18.0-1.2 usbcore: registered new driver usbhid /home/olaf/kernel/olh/mainline-porting/linux-2.6.18/drivers/usb/input/hid-core.c: v2.6:USB HID core driver usbcore: registered new driver appletouch mice: PS/2 mouse device common for all mice PM: Adding info for No Bus:i2c-0 PowerMac i2c bus pmu 2 registered PM: Adding info for No Bus:i2c-1 PowerMac i2c bus pmu 1 registered PM: Adding info for No Bus:i2c-2 PowerMac i2c bus mac-io 0 registered PM: Adding info for No Bus:i2c-3 PowerMac i2c bus uni-n 1 registered PM: Adding info for No Bus:i2c-4 PowerMac i2c bus uni-n 0 registered TCP bic registered NET: Registered protocol family 1 NET: Registered protocol family 17 input: PMU as /class/input/input3 kjournald starting. Commit interval 5 seconds EXT3-fs: mounted filesystem with ordered data mode. VFS: Mounted root (ext3 filesystem) readonly. Freeing unused kernel memory: 156k init Adding 131064k swap on /dev/hda12. Priority:-1 extents:1 across:131064k EXT3 FS on hda13, internal journal kjournald starting. Commit interval 5 seconds EXT3-fs: mounted filesystem with ordered data mode. eth1: Link is up at 100 Mbps, full-duplex. eth1: Pause is enabled (rxfifo: 10240 off: 7168 on: 5632) hub 2-0:1.0: resuming hub 2-0:1.0: resuming 00:0b.0 Host bridge: Apple Computer Inc. UniNorth 1.5 AGP Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- SERR- 00: 6b 10 2d 00 16 00 b0 22 00 00 00 06 08 10 00 00 10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 30: 00 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 00:10.0 VGA compatible controller: ATI Technologies Inc Rage 128 PF/PRO AGP 4x TMDS (prog-if 00 [VGA]) Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping+ SERR- FastB2B- Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- SERR- Capabilities: [5c] Power Management version 2 Flags: PMEClk- DSI- D1+ D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-) Status: D0 PME-Enable- DSel=0 DScale=0 PME- 00: 02 10 46 50 87 00 b0 02 00 00 00 03 08 ff 00 00 10: 08 00 00 94 01 04 00 00 00 00 00 90 00 00 00 00 20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 30: 00 00 00 f1 50 00 00 00 00 00 00 00 30 01 08 00 0001:10:0b.0 Host bridge: Apple Computer Inc. UniNorth 1.5 PCI Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap- 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR-