Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Apr 2014 05:38:57 +0300
From:      Konstantin Belousov <kostikbel@gmail.com>
To:        Sergey Matveychuk <sem@FreeBSD.org>
Cc:        freebsd-stable@freebsd.org, John Baldwin <jhb@freebsd.org>
Subject:   Re: Fwd: panic after upgrade to 10
Message-ID:  <20140420023857.GJ4016@kib.kiev.ua>
In-Reply-To: <530E3D85.8060906@FreeBSD.org>
References:  <5308B98C.6070807@semmy.ru> <5308BD0A.2050506@FreeBSD.org> <201402261124.01275.jhb@freebsd.org> <530E3D85.8060906@FreeBSD.org>

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

--80KdhljSN0pKc7w4
Content-Type: text/plain; charset=koi8-r
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Feb 26, 2014 at 11:16:21PM +0400, Sergey Matveychuk wrote:
> Yes, no panic now.
> For some reason agp0 is Intel 82855GM host to AGP bridge and agp1 is VGA=
=20
> controller itself.
>=20
> I've attached dmesg and pciconf output.
>=20
> Please, note, i've filled kern/187015 for this problem.
>=20
> 26.02.2014 20:24, John Baldwin =D0=C9=DB=C5=D4:
> > On Saturday, February 22, 2014 10:06:50 am Sergey Matveychuk wrote:
> >> Hi.
> >>
> >> I've tried to upgrade my home router to FreeBSD 10-STABLE from 8.x. And
> >> got this panic: https://www.dropbox.com/s/fxsily501x50vtw/A8eRRRJKbYM.=
jpg
> >>
> >> panic: make_dev_credv: bad si_name (error=3D17, si_name=3Dagpgart)
> >>
> >> How it could be fixed or how work around to boot?
> >
> > I think the problem is there can only be one /dev/agpgart and this trie=
d to
> > create two.  Odd that you would have two agp devices though.
> >
> > Try this patch which should fix the panic, but then capture a dmesg and
> > 'pciconf -lcb' output.
> >
> > Index: sys/dev/agp.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
> > --- agp.c	(revision 262488)
> > +++ agp.c	(working copy)
> > @@ -212,6 +212,7 @@ int
> >   agp_generic_attach(device_t dev)
> >   {
> >   	struct agp_softc *sc =3D device_get_softc(dev);
> > +	struct cdev *cdev;
> >   	int i;
> >   	u_int memsize;
> >
> > @@ -256,10 +257,11 @@ agp_generic_attach(device_t dev)
> >   	TAILQ_INIT(&sc->as_memory);
> >   	sc->as_nextid =3D 1;
> >
> > -	sc->as_devnode =3D make_dev(&agp_cdevsw,
> > -	    0, UID_ROOT, GID_WHEEL, 0600, "agpgart");
> > -	sc->as_devnode->si_drv1 =3D dev;
> > -
> > +	if (make_dev_p(MAKEDEV_CHECKNAME, &cdev, &agp_cdevsw, NULL, UID_ROOT,
> > +	    GID_WHEEL, 0600, "agpgart") =3D=3D 0) {
> > +		cdev->si_drv1 =3D dev;
> > +		sc->as_devnode =3D cdev;
> > +	}
> >   	return 0;
> >   }
> >
> > @@ -268,7 +270,8 @@ agp_free_cdev(device_t dev)
> >   {
> >   	struct agp_softc *sc =3D device_get_softc(dev);
> >
> > -	destroy_dev(sc->as_devnode);
> > +	if (sc->as_devnode !=3D NULL)
> > +		destroy_dev(sc->as_devnode);
> >   }
> >
> >   void
> >
> >

> ACPI BIOS Error (bug): A valid RSDP was not found (20130823/tbxfroot-223)
> Copyright (c) 1992-2014 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 10.0-STABLE #1 r262330M: Wed Feb 26 23:05:09 MSK 2014
>     root@router.home.semmy.ru:/usr/obj/usr/src/sys/GENERIC i386
> FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610
> CPU: Intel(R) Celeron(R) M processor         1.50GHz (1499.86-MHz 686-cla=
ss CPU)
>   Origin =3D "GenuineIntel"  Id =3D 0x6d8  Family =3D 0x6  Model =3D 0xd =
 Stepping =3D 8
>   Features=3D0xafe9fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,=
PGE,MCA,CMOV,PAT,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,TM,PBE>
> real memory  =3D 1039073280 (990 MB)
> avail memory =3D 995766272 (949 MB)
> MPTable: <OEM00000 PROD00000000>
> Event timer "LAPIC" quality 400
> ioapic0: Assuming intbase of 0
> ioapic0 <Version 2.0> irqs 0-23 on motherboard
> kbd1 at kbdmux0
> random: <Software, Yarrow> initialized
> ACPI BIOS Error (bug): A valid RSDP was not found (20130823/tbxfroot-223)
> ACPI: Table initialisation failed: AE_NOT_FOUND
> ACPI: Try disabling either ACPI or apic support.
> pcib0: <MPTable Host-PCI bridge> pcibus 0 on motherboard
> pci0: <PCI bus> on pcib0
> agp0: <Intel 82855GM host to AGP bridge> on hostb0
> pci0: <base peripheral> at device 0.1 (no driver attached)
> pci0: <base peripheral> at device 0.3 (no driver attached)
> pcib1: <PCI-PCI bridge> at device 1.0 on pci0
> pci1: <PCI bus> on pcib1
> vgapci0: <VGA-compatible display> port 0xe900-0xe907 mem 0xe0000000-0xe7f=
fffff,0xec200000-0xec27ffff irq 16 at device 2.0 on pci0
> agp1: <Intel 8285xM (85xGM GMCH) SVGA controller> on vgapci0
> agp1: aperture size is 128M, detected 32636k stolen memory
> vgapci0: Boot video device
> vgapci1: <VGA-compatible display> at device 2.1 on pci0
> uhci0: <Intel 82801DB (ICH4) USB controller USB-A> port 0xeb00-0xeb1f irq=
 16 at device 29.0 on pci0
> usbus0 on uhci0
> uhci1: <Intel 82801DB (ICH4) USB controller USB-B> port 0xed00-0xed1f irq=
 19 at device 29.1 on pci0
> usbus1 on uhci1
> uhci2: <Intel 82801DB (ICH4) USB controller USB-C> port 0xe800-0xe81f irq=
 18 at device 29.2 on pci0
> usbus2 on uhci2
> ehci0: <Intel 82801DB/L/M (ICH4) USB 2.0 controller> mem 0xec280000-0xec2=
803ff irq 23 at device 29.7 on pci0
> usbus3: EHCI version 1.0
> usbus3 on ehci0
> pcib2: <MPTable PCI-PCI bridge> at device 30.0 on pci0
> pci2: <PCI bus> on pcib2
> em0: <Intel(R) PRO/1000 Legacy Network Connection 1.0.6> port 0xd000-0xd0=
3f mem 0xec000000-0xec01ffff,0xec020000-0xec03ffff irq 16 at device 0.0 on =
pci2
> em0: Ethernet address: 00:30:18:4a:4d:f0
> em1: <Intel(R) PRO/1000 Legacy Network Connection 1.0.6> port 0xd100-0xd1=
3f mem 0xec040000-0xec05ffff,0xec060000-0xec07ffff irq 17 at device 1.0 on =
pci2
> em1: Ethernet address: 00:30:18:4a:4d:f1
> em2: <Intel(R) PRO/1000 Legacy Network Connection 1.0.6> port 0xd200-0xd2=
3f mem 0xec080000-0xec09ffff,0xec0a0000-0xec0bffff irq 18 at device 2.0 on =
pci2
> em2: Ethernet address: 00:30:18:4a:4d:f2
> em3: <Intel(R) PRO/1000 Legacy Network Connection 1.0.6> port 0xd300-0xd3=
3f mem 0xec0c0000-0xec0dffff,0xec0e0000-0xec0fffff irq 19 at device 3.0 on =
pci2
> em3: Ethernet address: 00:30:18:4a:4d:f3
> isab0: <PCI-ISA bridge> at device 31.0 on pci0
> isa0: <ISA bus> on isab0
> atapci0: <Intel ICH4 UDMA100 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x1=
77,0x376,0xf000-0xf00f at device 31.1 on pci0
> ata0: <ATA channel> at channel 0 on atapci0
> ata1: <ATA channel> at channel 1 on atapci0
> pci0: <serial bus, SMBus> at device 31.3 (no driver attached)
> pcm0: <Intel ICH4 (82801DB)> port 0xe000-0xe0ff,0xec00-0xec3f mem 0xec281=
000-0xec2811ff,0xec282000-0xec2820ff irq 17 at device 31.5 on pci0
> pcm0: primary codec not ready!
> pcm0: <VIA Technologies VIA1612A AC97 Codec>
> cpu0 on motherboard
> p4tcc0: <CPU Frequency Thermal Control> on cpu0
> pmtimer0 on isa0
> attimer0: <AT timer> at port 0x40-0x43 irq 0 pnpid PNP0100 on isa0
> Timecounter "i8254" frequency 1193182 Hz quality 0
> Event timer "i8254" frequency 1193182 Hz quality 100
> atrtc0: <AT realtime clock> at port 0x70-0x71 irq 8 pnpid PNP0b00 on isa0
> Event timer "RTC" frequency 32768 Hz quality 0
> atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 irq 1 pnpid PNP0=
303 on isa0
> atkbd0: <AT Keyboard> irq 1 on atkbdc0
> kbd0 at atkbd0
> atkbd0: [GIANT-LOCKED]
> unknown: <PNP0c01> can't assign resources (memory)
> uart0: <16550 or compatible> at port 0x3f8-0x3ff irq 4 flags 0x10 pnpid P=
NP0501 on isa0
> sc0: <System console> at flags 0x100 on isa0
> sc0: VGA <16 virtual consoles, flags=3D0x300>
> vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
> ppc0: parallel port not found.
> unknown: <PNP0c01> can't assign resources (memory)
> (null) can't assign resources (port)
> Timecounters tick every 1.000 msec
> random: unblocking device.
> usbus0: 12Mbps Full Speed USB v1.0
> usbus1: 12Mbps Full Speed USB v1.0
> usbus2: 12Mbps Full Speed USB v1.0
> usbus3: 480Mbps High Speed USB v2.0
> ugen1.1: <Intel> at usbus1
> uhub0: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus1
> ugen0.1: <Intel> at usbus0
> uhub1: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
> ugen3.1: <Intel> at usbus3
> uhub2: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus3
> ugen2.1: <Intel> at usbus2
> uhub3: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus2
> ada0 at ata1 bus 0 scbus1 target 0 lun 0
> ada0: <SSDSA2SH032G1GN INTEL 045C8621> ATA-7 SATA 2.x device
> ada0: Serial Number CVEM840200YV032HGN
> ada0: 100.000MB/s transfers (UDMA5, PIO 8192bytes)
> ada0: 30517MB (62500000 512 byte sectors: 16H 63S/T 16383C)
> ada0: Previously was known as ad2
> Netvsc initializing... Timecounter "TSC" frequency 1499861315 Hz quality =
800
> Root mount waiting for: usbus3 usbus2 usbus1 usbus0
> uhub0: 2 ports with 2 removable, self powered
> uhub1: 2 ports with 2 removable, self powered
> uhub3: 2 ports with 2 removable, self powered
> Root mount waiting for: usbus3
> Root mount waiting for: usbus3
> uhub2: 6 ports with 6 removable, self powered
> Trying to mount root from ufs:/dev/ada0p2 [rw,noatime]...
> ugen0.2: <American Power Conversion> at usbus0

> hostb0@pci0:0:0:0:	class=3D0x060000 card=3D0x35808086 chip=3D0x35808086 r=
ev=3D0x02 hdr=3D0x00
>     bar   [10] =3D type Prefetchable Memory, range 32, base 0xe8000000, s=
ize 67108864, enabled
>     cap 09[40] =3D vendor (length 5) Intel cap 0 version 1
>     cap 02[a0] =3D AGP 4x 2x 1x SBA disabled
> none0@pci0:0:0:1:	class=3D0x088000 card=3D0x35848086 chip=3D0x35848086 re=
v=3D0x02 hdr=3D0x00
> none1@pci0:0:0:3:	class=3D0x088000 card=3D0x35858086 chip=3D0x35858086 re=
v=3D0x02 hdr=3D0x00
> pcib1@pci0:0:1:0:	class=3D0x060400 card=3D0x00000000 chip=3D0x35818086 re=
v=3D0x02 hdr=3D0x01
> vgapci0@pci0:0:2:0:	class=3D0x030000 card=3D0x35828086 chip=3D0x35828086 =
rev=3D0x02 hdr=3D0x00
>     bar   [10] =3D type Prefetchable Memory, range 32, base 0xe0000000, s=
ize 134217728, enabled
>     bar   [14] =3D type Memory, range 32, base 0xec200000, size 524288, e=
nabled
>     bar   [18] =3D type I/O Port, range 32, base 0xe900, size 8, enabled
>     cap 01[d0] =3D powerspec 1  supports D0 D1 D3  current D0
> vgapci1@pci0:0:2:1:	class=3D0x038000 card=3D0x35828086 chip=3D0x35828086 =
rev=3D0x02 hdr=3D0x00
>     bar   [10] =3D type Prefetchable Memory, range 32, base 0, size 13421=
7728, disabled
>     bar   [14] =3D type Memory, range 32, base 0, size 524288, disabled
>     cap 01[d0] =3D powerspec 1  supports D0 D1 D3  current D0
> uhci0@pci0:0:29:0:	class=3D0x0c0300 card=3D0x24c28086 chip=3D0x24c28086 r=
ev=3D0x02 hdr=3D0x00
>     bar   [20] =3D type I/O Port, range 32, base 0xeb00, size 32, enabled
> uhci1@pci0:0:29:1:	class=3D0x0c0300 card=3D0x24c28086 chip=3D0x24c48086 r=
ev=3D0x02 hdr=3D0x00
>     bar   [20] =3D type I/O Port, range 32, base 0xed00, size 32, enabled
> uhci2@pci0:0:29:2:	class=3D0x0c0300 card=3D0x24c28086 chip=3D0x24c78086 r=
ev=3D0x02 hdr=3D0x00
>     bar   [20] =3D type I/O Port, range 32, base 0xe800, size 32, enabled
> ehci0@pci0:0:29:7:	class=3D0x0c0320 card=3D0x24cd8086 chip=3D0x24cd8086 r=
ev=3D0x02 hdr=3D0x00
>     bar   [10] =3D type Memory, range 32, base 0xec280000, size 1024, ena=
bled
>     cap 01[50] =3D powerspec 2  supports D0 D3  current D0
> pcib2@pci0:0:30:0:	class=3D0x060400 card=3D0x00000000 chip=3D0x244e8086 r=
ev=3D0x82 hdr=3D0x01
> isab0@pci0:0:31:0:	class=3D0x060100 card=3D0x00000000 chip=3D0x24c08086 r=
ev=3D0x02 hdr=3D0x00
> atapci0@pci0:0:31:1:	class=3D0x01018a card=3D0x24c28086 chip=3D0x24cb8086=
 rev=3D0x02 hdr=3D0x00
>     bar   [20] =3D type I/O Port, range 32, base 0xf000, size 16, enabled
>     bar   [24] =3D type Memory, range 32, base 0, size 1024, enabled
> none2@pci0:0:31:3:	class=3D0x0c0500 card=3D0x24c28086 chip=3D0x24c38086 r=
ev=3D0x02 hdr=3D0x00
>     bar   [20] =3D type I/O Port, range 32, base 0x500, size 32, enabled
> pcm0@pci0:0:31:5:	class=3D0x040100 card=3D0x41615649 chip=3D0x24c58086 re=
v=3D0x02 hdr=3D0x00
>     bar   [10] =3D type I/O Port, range 32, base 0xe000, size 256, enabled
>     bar   [14] =3D type I/O Port, range 32, base 0xec00, size 64, enabled
>     bar   [18] =3D type Memory, range 32, base 0xec281000, size 512, enab=
led
>     bar   [1c] =3D type Memory, range 32, base 0xec282000, size 256, enab=
led
>     cap 01[50] =3D powerspec 2  supports D0 D3  current D0
> em0@pci0:2:0:0:	class=3D0x020000 card=3D0x10768086 chip=3D0x10768086 rev=
=3D0x05 hdr=3D0x00
>     bar   [10] =3D type Memory, range 32, base 0xec000000, size 131072, e=
nabled
>     bar   [14] =3D type Memory, range 32, base 0xec020000, size 131072, e=
nabled
>     bar   [18] =3D type I/O Port, range 32, base 0xd000, size 64, enabled
>     cap 01[dc] =3D powerspec 2  supports D0 D3  current D0
>     cap 07[e4] =3D PCI-X supports 2048 burst read, 1 split transaction
> em1@pci0:2:1:0:	class=3D0x020000 card=3D0x10768086 chip=3D0x10768086 rev=
=3D0x05 hdr=3D0x00
>     bar   [10] =3D type Memory, range 32, base 0xec040000, size 131072, e=
nabled
>     bar   [14] =3D type Memory, range 32, base 0xec060000, size 131072, e=
nabled
>     bar   [18] =3D type I/O Port, range 32, base 0xd100, size 64, enabled
>     cap 01[dc] =3D powerspec 2  supports D0 D3  current D0
>     cap 07[e4] =3D PCI-X supports 2048 burst read, 1 split transaction
> em2@pci0:2:2:0:	class=3D0x020000 card=3D0x10768086 chip=3D0x10768086 rev=
=3D0x05 hdr=3D0x00
>     bar   [10] =3D type Memory, range 32, base 0xec080000, size 131072, e=
nabled
>     bar   [14] =3D type Memory, range 32, base 0xec0a0000, size 131072, e=
nabled
>     bar   [18] =3D type I/O Port, range 32, base 0xd200, size 64, enabled
>     cap 01[dc] =3D powerspec 2  supports D0 D3  current D0
>     cap 07[e4] =3D PCI-X supports 2048 burst read, 1 split transaction
> em3@pci0:2:3:0:	class=3D0x020000 card=3D0x10768086 chip=3D0x10768086 rev=
=3D0x05 hdr=3D0x00
>     bar   [10] =3D type Memory, range 32, base 0xec0c0000, size 131072, e=
nabled
>     bar   [14] =3D type Memory, range 32, base 0xec0e0000, size 131072, e=
nabled
>     bar   [18] =3D type I/O Port, range 32, base 0xd300, size 64, enabled
>     cap 01[dc] =3D powerspec 2  supports D0 D3  current D0
>     cap 07[e4] =3D PCI-X supports 2048 burst read, 1 split transaction

Reviving the old thread.

This seems to be my bug.  Please try this.

diff --git a/sys/conf/files.amd64 b/sys/conf/files.amd64
index f78f1c8..8bffc2c 100644
--- a/sys/conf/files.amd64
+++ b/sys/conf/files.amd64
@@ -144,7 +144,6 @@ dev/acpica/acpi_if.m		standard
 dev/acpi_support/acpi_wmi_if.m	standard
 dev/agp/agp_amd64.c		optional	agp
 dev/agp/agp_i810.c		optional	agp
-dev/agp/agp_intel.c		optional	agp
 dev/agp/agp_via.c		optional	agp
 dev/amdsbwd/amdsbwd.c		optional	amdsbwd
 dev/amdtemp/amdtemp.c		optional	amdtemp
diff --git a/sys/conf/files.i386 b/sys/conf/files.i386
index 30c224a..8274bbe 100644
--- a/sys/conf/files.i386
+++ b/sys/conf/files.i386
@@ -130,7 +130,6 @@ dev/agp/agp_amd.c		optional agp
 dev/agp/agp_amd64.c		optional agp
 dev/agp/agp_ati.c		optional agp
 dev/agp/agp_i810.c		optional agp
-dev/agp/agp_intel.c		optional agp
 dev/agp/agp_nvidia.c		optional agp
 dev/agp/agp_sis.c		optional agp
 dev/agp/agp_via.c		optional agp
diff --git a/sys/modules/agp/Makefile b/sys/modules/agp/Makefile
index 9502a68..7793c45 100644
--- a/sys/modules/agp/Makefile
+++ b/sys/modules/agp/Makefile
@@ -5,7 +5,7 @@
 KMOD=3D	agp
 SRCS=3D	agp.c agp_if.c
 .if ${MACHINE_CPUARCH} =3D=3D "i386"
-SRCS+=3D	agp_i810.c agp_intel.c agp_via.c agp_sis.c agp_ali.c agp_amd.c \
+SRCS+=3D	agp_i810.c agp_via.c agp_sis.c agp_ali.c agp_amd.c \
 	agp_nvidia.c agp_ati.c
 .endif
 .if ${MACHINE} =3D=3D "i386"

--80KdhljSN0pKc7w4
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (FreeBSD)

iQIcBAEBAgAGBQJTUzNAAAoJEJDCuSvBvK1B5t0QAINIoNdWD60lC6B7cf+bzhqS
pW4zCJavbOamb1bVMHeSCxRsPxEPE+jvyNoOjeG/pi8/0r4GBzNXrbE2yEEIBQNb
zLuXUxr/Ehyst7ffr+NiaqwEJQxgNWXGduckqubdx8zh6q2WQvThk/vfQF3tWe7E
V4lWI0b6GSZCtrYFWpcf1wwNENJEg6c6ADqzi+Byi7X78ad0vnvJMddTaLBqrMm6
u7s9H7hL/lFNWJQcBQcIf00pPkN7i2F6w1EoECbCs61PyQiq2699hiv4i4VLUUbz
P0rfqDMPfUn/dZQ3qUos+/kDI+wAdpWj/ZZLh6DdZIOk59Ers0OixrdMLErIqBch
OY1yWpRVk3MlAdG5wcA6mkZwB4TXyc3WPkGhoMMauxQZgdnKN0HQPPUXI1ByGWdi
Zd3bdiviE3rzOuh1BWK67uv7x2X/aB31u8WRZSsPNwavGLUc+XqbNDVFrNbVQCpm
qL3amKAr8cYMXQU50SrcNwe4n/6FD5UUnGfZjg9J8e7Lzl5C/tERr+8amXhryAw5
IY3eSAc2UhhmXcYA3GQHqPAb6y9uUexeXxMEbgU2hn1oWllZU174KLBxr3hD+tb/
UC1jwZKh54amC3In6TtTHL9K96siSgdLUTRe9g1vQdm+aCixUh/4FTVGNLg5z2Fj
ljIu9K5upI+4l9D1BiR/
=45Zw
-----END PGP SIGNATURE-----

--80KdhljSN0pKc7w4--



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