[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-stable
Subject:    Re: Fwd: panic after upgrade to 10
From:       Konstantin Belousov <kostikbel () gmail ! com>
Date:       2014-04-20 2:38:57
Message-ID: 20140420023857.GJ4016 () kib ! kiev ! ua
[Download RAW message or body]


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 
> controller itself.
> 
> I've attached dmesg and pciconf output.
> 
> Please, note, i've filled kern/187015 for this problem.
> 
> 26.02.2014 20:24, John Baldwin пишет:
> > 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=17, si_name=agpgart)
> > > 
> > > 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 tried 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
> > ===================================================================
> > --- agp.c	(revision 262488)
> > +++ agp.c	(working copy)
> > @@ -212,6 +212,7 @@ int
> > agp_generic_attach(device_t dev)
> > {
> > 	struct agp_softc *sc = 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 = 1;
> > 
> > -	sc->as_devnode = make_dev(&agp_cdevsw,
> > -	    0, UID_ROOT, GID_WHEEL, 0600, "agpgart");
> > -	sc->as_devnode->si_drv1 = dev;
> > -
> > +	if (make_dev_p(MAKEDEV_CHECKNAME, &cdev, &agp_cdevsw, NULL, UID_ROOT,
> > +	    GID_WHEEL, 0600, "agpgart") == 0) {
> > +		cdev->si_drv1 = dev;
> > +		sc->as_devnode = cdev;
> > +	}
> > 	return 0;
> > }
> > 
> > @@ -268,7 +270,8 @@ agp_free_cdev(device_t dev)
> > {
> > 	struct agp_softc *sc = device_get_softc(dev);
> > 
> > -	destroy_dev(sc->as_devnode);
> > +	if (sc->as_devnode != 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-class CPU)
> Origin = "GenuineIntel"  Id = 0x6d8  Family = 0x6  Model = 0xd  Stepping = 8
> Features=0xafe9fbff<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  = 1039073280 (990 MB)
> avail memory = 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-0xe7ffffff,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-0xec2803ff 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-0xd03f 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-0xd13f 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-0xd23f 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-0xd33f 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-0x177,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 \
>                 0xec281000-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 PNP0303 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 PNP0501 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
> 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=0x060000 card=0x35808086 chip=0x35808086 rev=0x02 hdr=0x00
> bar   [10] = type Prefetchable Memory, range 32, base 0xe8000000, size 67108864, \
> enabled cap 09[40] = vendor (length 5) Intel cap 0 version 1
> cap 02[a0] = AGP 4x 2x 1x SBA disabled
> none0@pci0:0:0:1:	class=0x088000 card=0x35848086 chip=0x35848086 rev=0x02 hdr=0x00
> none1@pci0:0:0:3:	class=0x088000 card=0x35858086 chip=0x35858086 rev=0x02 hdr=0x00
> pcib1@pci0:0:1:0:	class=0x060400 card=0x00000000 chip=0x35818086 rev=0x02 hdr=0x01
> vgapci0@pci0:0:2:0:	class=0x030000 card=0x35828086 chip=0x35828086 rev=0x02 \
> hdr=0x00 bar   [10] = type Prefetchable Memory, range 32, base 0xe0000000, size \
> 134217728, enabled bar   [14] = type Memory, range 32, base 0xec200000, size \
> 524288, enabled bar   [18] = type I/O Port, range 32, base 0xe900, size 8, enabled
> cap 01[d0] = powerspec 1  supports D0 D1 D3  current D0
> vgapci1@pci0:0:2:1:	class=0x038000 card=0x35828086 chip=0x35828086 rev=0x02 \
> hdr=0x00 bar   [10] = type Prefetchable Memory, range 32, base 0, size 134217728, \
> disabled bar   [14] = type Memory, range 32, base 0, size 524288, disabled
> cap 01[d0] = powerspec 1  supports D0 D1 D3  current D0
> uhci0@pci0:0:29:0:	class=0x0c0300 card=0x24c28086 chip=0x24c28086 rev=0x02 hdr=0x00
> bar   [20] = type I/O Port, range 32, base 0xeb00, size 32, enabled
> uhci1@pci0:0:29:1:	class=0x0c0300 card=0x24c28086 chip=0x24c48086 rev=0x02 hdr=0x00
> bar   [20] = type I/O Port, range 32, base 0xed00, size 32, enabled
> uhci2@pci0:0:29:2:	class=0x0c0300 card=0x24c28086 chip=0x24c78086 rev=0x02 hdr=0x00
> bar   [20] = type I/O Port, range 32, base 0xe800, size 32, enabled
> ehci0@pci0:0:29:7:	class=0x0c0320 card=0x24cd8086 chip=0x24cd8086 rev=0x02 hdr=0x00
> bar   [10] = type Memory, range 32, base 0xec280000, size 1024, enabled
> cap 01[50] = powerspec 2  supports D0 D3  current D0
> pcib2@pci0:0:30:0:	class=0x060400 card=0x00000000 chip=0x244e8086 rev=0x82 hdr=0x01
> isab0@pci0:0:31:0:	class=0x060100 card=0x00000000 chip=0x24c08086 rev=0x02 hdr=0x00
> atapci0@pci0:0:31:1:	class=0x01018a card=0x24c28086 chip=0x24cb8086 rev=0x02 \
> hdr=0x00 bar   [20] = type I/O Port, range 32, base 0xf000, size 16, enabled
> bar   [24] = type Memory, range 32, base 0, size 1024, enabled
> none2@pci0:0:31:3:	class=0x0c0500 card=0x24c28086 chip=0x24c38086 rev=0x02 hdr=0x00
> bar   [20] = type I/O Port, range 32, base 0x500, size 32, enabled
> pcm0@pci0:0:31:5:	class=0x040100 card=0x41615649 chip=0x24c58086 rev=0x02 hdr=0x00
> bar   [10] = type I/O Port, range 32, base 0xe000, size 256, enabled
> bar   [14] = type I/O Port, range 32, base 0xec00, size 64, enabled
> bar   [18] = type Memory, range 32, base 0xec281000, size 512, enabled
> bar   [1c] = type Memory, range 32, base 0xec282000, size 256, enabled
> cap 01[50] = powerspec 2  supports D0 D3  current D0
> em0@pci0:2:0:0:	class=0x020000 card=0x10768086 chip=0x10768086 rev=0x05 hdr=0x00
> bar   [10] = type Memory, range 32, base 0xec000000, size 131072, enabled
> bar   [14] = type Memory, range 32, base 0xec020000, size 131072, enabled
> bar   [18] = type I/O Port, range 32, base 0xd000, size 64, enabled
> cap 01[dc] = powerspec 2  supports D0 D3  current D0
> cap 07[e4] = PCI-X supports 2048 burst read, 1 split transaction
> em1@pci0:2:1:0:	class=0x020000 card=0x10768086 chip=0x10768086 rev=0x05 hdr=0x00
> bar   [10] = type Memory, range 32, base 0xec040000, size 131072, enabled
> bar   [14] = type Memory, range 32, base 0xec060000, size 131072, enabled
> bar   [18] = type I/O Port, range 32, base 0xd100, size 64, enabled
> cap 01[dc] = powerspec 2  supports D0 D3  current D0
> cap 07[e4] = PCI-X supports 2048 burst read, 1 split transaction
> em2@pci0:2:2:0:	class=0x020000 card=0x10768086 chip=0x10768086 rev=0x05 hdr=0x00
> bar   [10] = type Memory, range 32, base 0xec080000, size 131072, enabled
> bar   [14] = type Memory, range 32, base 0xec0a0000, size 131072, enabled
> bar   [18] = type I/O Port, range 32, base 0xd200, size 64, enabled
> cap 01[dc] = powerspec 2  supports D0 D3  current D0
> cap 07[e4] = PCI-X supports 2048 burst read, 1 split transaction
> em3@pci0:2:3:0:	class=0x020000 card=0x10768086 chip=0x10768086 rev=0x05 hdr=0x00
> bar   [10] = type Memory, range 32, base 0xec0c0000, size 131072, enabled
> bar   [14] = type Memory, range 32, base 0xec0e0000, size 131072, enabled
> bar   [18] = type I/O Port, range 32, base 0xd300, size 64, enabled
> cap 01[dc] = powerspec 2  supports D0 D3  current D0
> cap 07[e4] = 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=	agp
 SRCS=	agp.c agp_if.c
 .if ${MACHINE_CPUARCH} == "i386"
-SRCS+=	agp_i810.c agp_intel.c agp_via.c agp_sis.c agp_ali.c agp_amd.c \
+SRCS+=	agp_i810.c agp_via.c agp_sis.c agp_ali.c agp_amd.c \
 	agp_nvidia.c agp_ati.c
 .endif
 .if ${MACHINE} == "i386"


[Attachment #3 (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic