Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Dec 2008 23:16:28 +0100
From:      Roman Divacky <rdivacky@freebsd.org>
To:        John Baldwin <jhb@freebsd.org>
Cc:        freebsd-current@freebsd.org
Subject:   Re: atrtc0: Warnings about mappings of I/O and interrupt
Message-ID:  <20081211221628.GA12494@freebsd.org>
In-Reply-To: <200812041745.14587.jhb@freebsd.org>
References:  <20081120171325.GA53026@freebsd.org> <200812041424.13298.jhb@freebsd.org> <20081204220438.GA17059@freebsd.org> <200812041745.14587.jhb@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--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 Real Time Clock> 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<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>
  Features2=0x2001<SSE3,CX16>
  AMD Features=0xea500800<SYSCALL,NX,MMX+,FFXSR,RDTSCP,LM,3DNow!+,3DNow!>
  AMD Features2=0x1f<LAHF,CMP,SVM,ExtAPIC,CR8>
  Cores per package: 2
real memory  = 1039007744 (990 MB)
avail memory = 1003794432 (957 MB)
ACPI APIC Table: <Nvidia ASUSACPI>
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
ioapic0: Changing APIC ID to 2
ioapic0 <Version 1.1> irqs 0-23 on motherboard
acpi0: <Nvidia ASUSACPI> 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: <High Precision Event Timer> iomem 0xfefff000-0xfefff3ff on acpi0
Timecounter "HPET" frequency 25000000 Hz quality 900
PORT: 112
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pci0: <memory, RAM> at device 0.0 (no driver attached)
pci0: <memory, RAM> at device 0.1 (no driver attached)
pci0: <memory, RAM> at device 0.2 (no driver attached)
pci0: <memory, RAM> at device 0.3 (no driver attached)
pci0: <memory, RAM> at device 0.4 (no driver attached)
pci0: <memory, RAM> at device 0.5 (no driver attached)
pci0: <memory, RAM> at device 0.6 (no driver attached)
pci0: <memory, RAM> at device 0.7 (no driver attached)
pcib1: <ACPI PCI-PCI bridge> at device 2.0 on pci0
pci1: <ACPI PCI bus> on pcib1
pcib2: <ACPI PCI-PCI bridge> at device 3.0 on pci0
pci2: <ACPI PCI bus> on pcib2
pcib3: <ACPI PCI-PCI bridge> at device 4.0 on pci0
pci3: <ACPI PCI bus> on pcib3
vgapci0: <VGA-compatible display> mem 0xfc000000-0xfcffffff,0xd0000000-0xdfffffff,0xfb000000-0xfbffffff irq 16 at device 5.0 on pci0
nvidia0: <GeForce 6150> on vgapci0
vgapci0: child nvidia0 requested pci_enable_busmaster
vgapci0: child nvidia0 requested pci_enable_io
nvidia0: [GIANT-LOCKED]
nvidia0: [ITHREAD]
pci0: <memory, RAM> at device 9.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 10.0 on pci0
isa0: <ISA bus> on isab0
pci0: <serial bus, SMBus> at device 10.1 (no driver attached)
pci0: <memory, RAM> at device 10.2 (no driver attached)
pci0: <serial bus, USB> at device 11.0 (no driver attached)
pci0: <serial bus, USB> at device 11.1 (no driver attached)
atapci0: <nVidia nForce MCP51 UDMA133 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xf400-0xf40f at device 13.0 on pci0
ata0: <ATA channel 0> on atapci0
ata0: [ITHREAD]
ata1: <ATA channel 1> on atapci0
ata1: [ITHREAD]
atapci1: <nVidia nForce MCP51 SATA300 controller> 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: <ATA channel 0> on atapci1
ata2: [ITHREAD]
ata3: <ATA channel 1> on atapci1
ata3: [ITHREAD]
atapci2: <nVidia nForce MCP51 SATA300 controller> 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: <ATA channel 0> on atapci2
ata4: [ITHREAD]
ata5: <ATA channel 1> on atapci2
ata5: [ITHREAD]
pcib4: <ACPI PCI-PCI bridge> at device 16.0 on pci0
pci4: <ACPI PCI bus> on pcib4
hdac0: <NVidia MCP51 High Definition Audio Controller> mem 0xfe024000-0xfe027fff irq 22 at device 16.1 on pci0
hdac0: HDA Driver Revision: 20081123_0118
hdac0: [ITHREAD]
nfe0: <NVIDIA nForce 430 MCP13 Networking Adapter> port 0xc800-0xc807 mem 0xfe02b000-0xfe02bfff irq 23 at device 20.0 on pci0
miibus0: <MII bus> on nfe0
e1000phy0: <Marvell 88E1116 Gigabit PHY> 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: <Thermal Zone> 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: <AT realtime clock> port 0x70-0x73 on acpi0
PORT: 112
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
atkbd0: [ITHREAD]
psm0: <PS/2 Mouse> 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: <ACPI CPU> on acpi0
powernow0: <PowerNow! K8> on cpu0
cpu1: <ACPI CPU> on acpi0
powernow1: <PowerNow! K8> 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: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
atrtc0: <AT Real Time Clock> 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 <Seagate ST3160023A 3.01> at ata0-master UDMA100
acd0: DVDROM <HL-DT-STDVD-ROM GDR8163B/0L23> 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: <HDA Analog Devices AD1986A PCM #0 Analog> at cad 0 nid 1 on hdac0
pcm1: <HDA Analog Devices AD1986A PCM #1 Analog> at cad 0 nid 1 on hdac0
pcm2: <HDA Analog Devices AD1986A PCM #2 Digital> 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--



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