From owner-freebsd-current@FreeBSD.ORG Thu Dec 11 22:21:26 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 397ED1065675; Thu, 11 Dec 2008 22:21:26 +0000 (UTC) (envelope-from rdivacky@lev.vlakno.cz) Received: from vlakno.cz (77-93-215-190.static.masterinter.net [77.93.215.190]) by mx1.freebsd.org (Postfix) with ESMTP id A12E28FC17; Thu, 11 Dec 2008 22:21:25 +0000 (UTC) (envelope-from rdivacky@lev.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 2DC719CB19A; Thu, 11 Dec 2008 23:16:40 +0100 (CET) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (lev.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 84PrVd3hhdKT; Thu, 11 Dec 2008 23:16:28 +0100 (CET) Received: from lev.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 439A29CB238; Thu, 11 Dec 2008 23:16:28 +0100 (CET) Received: (from rdivacky@localhost) by lev.vlakno.cz (8.14.2/8.14.2/Submit) id mBBMGSnS012718; Thu, 11 Dec 2008 23:16:28 +0100 (CET) (envelope-from rdivacky) Date: Thu, 11 Dec 2008 23:16:28 +0100 From: Roman Divacky To: John Baldwin Message-ID: <20081211221628.GA12494@freebsd.org> References: <20081120171325.GA53026@freebsd.org> <200812041424.13298.jhb@freebsd.org> <20081204220438.GA17059@freebsd.org> <200812041745.14587.jhb@freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="p4qYPpj5QlsIQJ0K" Content-Disposition: inline In-Reply-To: <200812041745.14587.jhb@freebsd.org> User-Agent: Mutt/1.4.2.3i Cc: freebsd-current@freebsd.org Subject: Re: atrtc0: Warnings about mappings of I/O and interrupt X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Dec 2008 22:21:26 -0000 --p4qYPpj5QlsIQJ0K Content-Type: multipart/mixed; boundary="zYM0uCDKw75PZbzx" Content-Disposition: inline --zYM0uCDKw75PZbzx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Dec 04, 2008 at 05:45:14PM -0500, John Baldwin wrote: > On Thursday 04 December 2008 05:04:38 pm Roman Divacky wrote: > > On Thu, Dec 04, 2008 at 02:24:13PM -0500, John Baldwin wrote: > > > On Thursday 20 November 2008 12:13:25 pm Roman Divacky wrote: > > > > hi > > > >=20 > > > > I upgraded from roughly 10 days old -CURRENT to this: > > > >=20 > > > > FreeBSD witten 8.0-CURRENT FreeBSD 8.0-CURRENT #55: Wed Nov 19 23:2= 3:49=20 > CET=20 > > > 2008 > > > > root@witten:/usr/obj/usr/src/sys/MYKERNEL i386 > > > >=20 > > > > and I am getting this at boot: > > > >=20 > > > > atrtc0: at port 0x70 irq 8 on isa0 > > > > atrtc0: Warning: Couldn't map I/O. > > > > atrtc0: Warning: Couldn't map Interrupt. > > > >=20 > > > > the booting itself works fine and I dont see any odd effects. > > >=20 > > > The driver is just a stub anyway. Do you have any atrtc0 hints, and = can=20 > you=20 > > > grab the output for the 'atrtc0' device from 'devinfo -r'? > >=20 > > witten ~# grep atrtc /boot/device.hints > > hint.atrtc.0.at=3D"isa" > > hint.atrtc.0.port=3D"0x70" > > hint.atrtc.0.irq=3D"8" > >=20 > > (but that's the default I believe) > >=20 > > devinfo -r shows "empty" atrtc0 but: > >=20 > > atrtc1 > > Interrupt request lines: > > 8 > > I/O ports: > > 0x70-0x71 > >=20 > > any more info I can provide? >=20 > Hmmmm, that should have worked fine in that atrtc1 should have taken over= =20 > the 'atrtc0' hints. If you don't mind, can you add some debugging printf= s to=20 > acpi_hint_device_unit() (maybe only do them if the 'name' parameter=20 > is "atrtc" to avoid clutter). with the attached patch I am getting the attached dmesg. do you want me to do some other thing? roman --zYM0uCDKw75PZbzx Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="acpi.patch" Content-Transfer-Encoding: quoted-printable Index: acpi.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- acpi.c (revision 185942) +++ acpi.c (working copy) @@ -991,8 +991,12 @@ /* Must have an "at" for acpi or isa. */ resource_string_value(name, unit, "at", &s); if (!(strcmp(s, "acpi0") =3D=3D 0 || strcmp(s, "acpi") =3D=3D 0 || - strcmp(s, "isa0") =3D=3D 0 || strcmp(s, "isa") =3D=3D 0)) + strcmp(s, "isa0") =3D=3D 0 || strcmp(s, "isa") =3D=3D 0)) { + if (strstr(name, "atrtc")) { + printf("AT: %s\n", s); + } continue; + } =20 /* * Check for matching resources. We must have at least one, @@ -1003,24 +1007,36 @@ */ matches =3D 0; if (resource_long_value(name, unit, "port", &value) =3D=3D 0) { + if (strstr(name, "atrtc")) { + printf("PORT: %ld\n", value); + } if (acpi_match_resource_hint(child, SYS_RES_IOPORT, value)) matches++; else continue; } if (resource_long_value(name, unit, "maddr", &value) =3D=3D 0) { + if (strstr(name, "atrtc")) { + printf("MADDR: %ld\n", value); + } if (acpi_match_resource_hint(child, SYS_RES_MEMORY, value)) matches++; else continue; } if (resource_long_value(name, unit, "irq", &value) =3D=3D 0) { + if (strstr(name, "atrtc")) { + printf("IRQ: %ld\n", value); + } if (acpi_match_resource_hint(child, SYS_RES_IRQ, value)) matches++; else continue; } if (resource_long_value(name, unit, "drq", &value) =3D=3D 0) { + if (strstr(name, "atrtc")) { + printf("DRQ: %ld\n", value); + } if (acpi_match_resource_hint(child, SYS_RES_DRQ, value)) matches++; else --zYM0uCDKw75PZbzx Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="dmesg.jhb" Copyright (c) 1992-2008 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 8.0-CURRENT #22: Thu Dec 11 23:11:40 CET 2008 root@witten:/root/freebsd/sys/i386/compile/NEOLOGISM Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 4200+ (2204.61-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x40fb2 Stepping = 2 Features=0x178bfbff Features2=0x2001 AMD Features=0xea500800 AMD Features2=0x1f Cores per package: 2 real memory = 1039007744 (990 MB) avail memory = 1003794432 (957 MB) ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 ioapic0: Changing APIC ID to 2 ioapic0 irqs 0-23 on motherboard acpi0: on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) PORT: 112 PORT: 112 PORT: 112 PORT: 112 acpi0: reservation of 3dee0000, 20000 (3) failed acpi0: reservation of 0, a0000 (3) failed acpi0: reservation of 100000, 3dde0000 (3) failed Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0 acpi_hpet0: iomem 0xfefff000-0xfefff3ff on acpi0 Timecounter "HPET" frequency 25000000 Hz quality 900 PORT: 112 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pci0: at device 0.0 (no driver attached) pci0: at device 0.1 (no driver attached) pci0: at device 0.2 (no driver attached) pci0: at device 0.3 (no driver attached) pci0: at device 0.4 (no driver attached) pci0: at device 0.5 (no driver attached) pci0: at device 0.6 (no driver attached) pci0: at device 0.7 (no driver attached) pcib1: at device 2.0 on pci0 pci1: on pcib1 pcib2: at device 3.0 on pci0 pci2: on pcib2 pcib3: at device 4.0 on pci0 pci3: on pcib3 vgapci0: mem 0xfc000000-0xfcffffff,0xd0000000-0xdfffffff,0xfb000000-0xfbffffff irq 16 at device 5.0 on pci0 nvidia0: on vgapci0 vgapci0: child nvidia0 requested pci_enable_busmaster vgapci0: child nvidia0 requested pci_enable_io nvidia0: [GIANT-LOCKED] nvidia0: [ITHREAD] pci0: at device 9.0 (no driver attached) isab0: at device 10.0 on pci0 isa0: on isab0 pci0: at device 10.1 (no driver attached) pci0: at device 10.2 (no driver attached) pci0: at device 11.0 (no driver attached) pci0: at device 11.1 (no driver attached) atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xf400-0xf40f at device 13.0 on pci0 ata0: on atapci0 ata0: [ITHREAD] ata1: on atapci0 ata1: [ITHREAD] atapci1: port 0x9f0-0x9f7,0xbf0-0xbf3,0x970-0x977,0xb70-0xb73,0xe000-0xe00f mem 0xfe02d000-0xfe02dfff irq 20 at device 14.0 on pci0 atapci1: [ITHREAD] ata2: on atapci1 ata2: [ITHREAD] ata3: on atapci1 ata3: [ITHREAD] atapci2: port 0x9e0-0x9e7,0xbe0-0xbe3,0x960-0x967,0xb60-0xb63,0xcc00-0xcc0f mem 0xfe02c000-0xfe02cfff irq 21 at device 15.0 on pci0 atapci2: [ITHREAD] ata4: on atapci2 ata4: [ITHREAD] ata5: on atapci2 ata5: [ITHREAD] pcib4: at device 16.0 on pci0 pci4: on pcib4 hdac0: mem 0xfe024000-0xfe027fff irq 22 at device 16.1 on pci0 hdac0: HDA Driver Revision: 20081123_0118 hdac0: [ITHREAD] nfe0: port 0xc800-0xc807 mem 0xfe02b000-0xfe02bfff irq 23 at device 20.0 on pci0 miibus0: on nfe0 e1000phy0: PHY 1 on miibus0 e1000phy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX-FDX, auto nfe0: Ethernet address: 00:1b:fc:63:69:d7 nfe0: [FILTER] PORT: 112 PORT: 112 acpi_tz0: on acpi0 PORT: 112 PORT: 112 PORT: 112 PORT: 112 PORT: 112 PORT: 112 PORT: 112 PORT: 112 PORT: 112 PORT: 112 PORT: 112 PORT: 112 PORT: 112 PORT: 112 PORT: 112 PORT: 112 PORT: 112 PORT: 112 PORT: 112 PORT: 112 IRQ: 8 PORT: 112 IRQ: 8 atrtc1: port 0x70-0x73 on acpi0 PORT: 112 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: [ITHREAD] psm0: model IntelliMouse, device ID 3 PORT: 112 PORT: 112 PORT: 112 PORT: 112 PORT: 112 PORT: 112 PORT: 112 PORT: 112 cpu0: on acpi0 powernow0: on cpu0 cpu1: on acpi0 powernow1: on cpu1 PORT: 112 PORT: 112 PORT: 112 PORT: 112 PORT: 112 PORT: 112 PORT: 112 PORT: 112 PORT: 112 PORT: 112 PORT: 112 PORT: 112 PORT: 112 PORT: 112 PORT: 112 PORT: 112 PORT: 112 PORT: 112 PORT: 112 PORT: 112 PORT: 112 PORT: 112 PORT: 112 PORT: 112 PORT: 112 PORT: 112 PORT: 112 PORT: 112 PORT: 112 PORT: 112 pmtimer0 on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 atrtc0: at port 0x70 irq 8 on isa0 atrtc0: Warning: Couldn't map I/O. atrtc0: Warning: Couldn't map Interrupt. Timecounters tick every 1.000 msec ad0: 152627MB at ata0-master UDMA100 acd0: DVDROM at ata1-slave UDMA33 hdac0: HDA Codec #0: Analog Devices AD1986A hdac0: hdac_widget_connection_parse: nid=18 WARNING: zero cnid entnum=4 j=2 index=0 entries=8 found=2 res=0x21002211 pcm0: at cad 0 nid 1 on hdac0 pcm1: at cad 0 nid 1 on hdac0 pcm2: at cad 0 nid 1 on hdac0 SMP: AP CPU #1 Launched! Trying to mount root from ufs:/dev/ad0s1a --zYM0uCDKw75PZbzx-- --p4qYPpj5QlsIQJ0K Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAklBkTwACgkQLVEj6D3CBEzzDACfSszftSOvl0nLA8+53YFPNsT+ NrQAn3+HdcLnSDiTJAm6NUrj8Wd5GvFg =zUUg -----END PGP SIGNATURE----- --p4qYPpj5QlsIQJ0K--