On Sat, Oct 22, 2011 at 12:41:41PM -0500, Chris Bennett wrote:
> I get ddb almost right away.
> pchb0 at pci0 dev0 function0 "Intel 82443BX AGP" rev 0x03
> intelagp0 at pchb0 panic: kernal diagnostic assertion "(reg & 0x3) == 0" 
> failed:
> file "../../../../arch/i386/pci/pci_machdep.c" line 452
> stopped at Debugger +0x4: popl %ebp
> 
> PID PPID PGRP UID S Flags wait Command
> * 0 -1 0 7 0x200  swapper

Can you try this:

Cheers,

-0-

Index: dev/pci/agp_intel.c
===================================================================
RCS file: /cvs/src/sys/dev/pci/agp_intel.c,v
retrieving revision 1.18
diff -u -p -r1.18 agp_intel.c
--- dev/pci/agp_intel.c 7 Aug 2010 20:47:24 -0000       1.18
+++ dev/pci/agp_intel.c 22 Oct 2011 19:27:56 -0000
@@ -260,7 +260,11 @@ agp_intel_attach(struct device *parent, 
                break;
 
        default:
-               pci_conf_write(pa->pa_pc, pa->pa_tag, AGP_INTEL_ERRSTS, 0x70);
+               reg = pci_conf_read(isc->isc_pc, isc->isc_tag,
+                   AGP_INTEL_ERRCMD);
+               reg |= 0x700; /* Ack ERRSTS bits 8-10*/
+               pci_conf_write(isc->isc_pc, isc->isc_tag,
+                   AGP_INTEL_ERRCMD, reg);
        }
        
        isc->agpdev = (struct agp_softc *)agp_attach_bus(pa, &agp_intel_methods,
@@ -319,6 +323,7 @@ agp_intel_save(struct agp_intel_softc *i
 void
 agp_intel_restore(struct agp_intel_softc *isc)
 {
+       pcireg_t        tmp;
        /*
         * reset size now just in case, if it worked before then sanity
         * checking will not fail
@@ -374,8 +379,11 @@ agp_intel_restore(struct agp_intel_softc
                    AGP_INTEL_I8XX_ERRSTS, 0x00ff);
                break;
        default:
+               tmp = pci_conf_read(isc->isc_pc, isc->isc_tag,
+                   AGP_INTEL_ERRCMD);
+               tmp |= 0x700; /* Ack ERRSTS bits 8-10*/
                pci_conf_write(isc->isc_pc, isc->isc_tag,
-                   AGP_INTEL_ERRSTS, 0x70);
+                   AGP_INTEL_ERRCMD, tmp);
                break;
        }
 }
Index: dev/pci/agpreg.h
===================================================================
RCS file: /cvs/src/sys/dev/pci/agpreg.h,v
retrieving revision 1.14
diff -u -p -r1.14 agpreg.h
--- dev/pci/agpreg.h    16 Oct 2011 01:11:31 -0000      1.14
+++ dev/pci/agpreg.h    22 Oct 2011 19:27:56 -0000
@@ -52,10 +52,6 @@
 /*
  * Config offsets for Intel AGP chipsets.
  */
-/* i845/855PM */
-#define        AGP_I845_AGPMISC                0x51
-#define AGPMISC_AAGN                   (1U << 1)  /* Aperture AccessEN */
-
 /* i840/850/850E */
 #define AGP_I840_MCHCFG                        0x50
 #define MCHCFG_AAGN                    (1U << 9)  /* Aperture AccessEN */
@@ -70,7 +66,9 @@
 #define        AGP_INTEL_I8XX_ERRSTS           0xc8
 
 /* Common register */
-#define        AGP_INTEL_ERRSTS                0x91    /* Not i8XX */
+#define        AGP_INTEL_ERRCMD                0x90    /* Not i8XX, 8 bits
+                                                * ERRSTS is at + 1 and is 16
+                                                */
 #define AGP_INTEL_AGPCMD               0xa8
 #define AGPCMD_SBA                     (1U << 9)
 #define AGPCMD_AGPEN                   (1U << 8)
> 
> 
> dmesg
> 
> OpenBSD 4.9-current (GENERIC) #69: Tue May  3 14:59:18 MDT 2011
>     t...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
> cpu0: Intel Pentium III ("GenuineIntel" 686-class) 449 MHz
> cpu0: 
> FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PSE36,MMX,FXSR,SSE
> real mem  = 267821056 (255MB)
> avail mem = 253292544 (241MB)
> mainbus0 at root
> bios0 at mainbus0: AT/286+ BIOS, date 05/28/02, BIOS32 rev. 0 @ 0xffe90, 
> SMBIOS rev. \
> 2.3 @ 0xf6d60 ( 58 entries)
> bios0: vendor Dell Computer Corporation version "A17" date 05/28/2002
> bios0: Dell Computer Corporation Inspiron 3700 x450GT
> apm0 at bios0: Power Management spec V1.2
> apm0: battery life expectancy 95%
> apm0: AC off, battery charge high, estimated 4:15 hours
> acpi at bios0 function 0x0 not configured
> pcibios0 at bios0: rev 2.1 @ 0xf0000/0x10000
> pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfbd20/128 (6 entries)
> pcibios0: PCI Interrupt Router at 000:07:0 ("Intel 82371 ISA and IDE" rev 
> 0x00)
> pcibios0: PCI bus #3 is the last bus
> bios0: ROM list: 0xc0000/0x10000
> cpu0 at mainbus0: (uniprocessor)
> pci0 at mainbus0 bus 0: configuration mode 1 (bios)
> pchb0 at pci0 dev 0 function 0 "Intel 82443BX AGP" rev 0x03
> intelagp0 at pchb0
> agp0 at intelagp0: aperture at 0xf4000000, size 0x4000000
> ppb0 at pci0 dev 1 function 0 "Intel 82443BX AGP" rev 0x03
> pci1 at ppb0 bus 1
> vga1 at pci1 dev 0 function 0 "ATI Mobility 1" rev 0x64
> wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
> wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
> cbb0 at pci0 dev 3 function 0 "TI PCI1225 CardBus" rev 0x01: irq 11
> cbb1 at pci0 dev 3 function 1 "TI PCI1225 CardBus" rev 0x01: irq 11
> piixpcib0 at pci0 dev 7 function 0 "Intel 82371AB PIIX4 ISA" rev 0x02
> pciide0 at pci0 dev 7 function 1 "Intel 82371AB IDE" rev 0x01: DMA, channel 0 
> wired \
> to compatibility , channel 1 wired to compatibility
> wd0 at pciide0 channel 0 drive 0: <IC25T048ATDA05-0>
> wd0 at pciide0 channel 0 drive 0: <IC25T048ATDA05-0>
> wd0: 16-sector PIO, LBA, 45780MB, 93759120 sectors
> wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
> atapiscsi0 at pciide0 channel 1 drive 0
> scsibus0 at atapiscsi0: 2 targets
> cd0 at scsibus0 targ 0 lun 0: <HL-DT-ST, RW/DVD GCC-4240N, D110> ATAPI 
> 5/cdrom \
> removable cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
> uhci0 at pci0 dev 7 function 2 "Intel 82371AB USB" rev 0x01: irq 11
> piixpm0 at pci0 dev 7 function 3 "Intel 82371AB Power" rev 0x02: SMI
> iic0 at piixpm0
> spdmem0 at iic0 addr 0x50: 128MB SDRAM non-parity PC100CL2
> maestro0 at pci0 dev 8 function 0 "ESS Maestro 2E" rev 0x10: irq 5
> ac97: codec id 0x83847609 (SigmaTel STAC9721/23)
> ac97: codec features 18 bit DAC, 18 bit ADC, SigmaTel 3D
> audio0 at maestro0
> cardslot0 at cbb0 slot 0 flags 0
> cardbus0 at cardslot0: bus 2 device 0 cacheline 0x8, lattimer 0x20
> pcmcia0 at cardslot0
> cardslot1 at cbb1 slot 1 flags 0
> cardbus1 at cardslot1: bus 3 device 0 cacheline 0x8, lattimer 0x20
> pcmcia1 at cardslot1
> isa0 at piixpcib0
> isadma0 at isa0
> pckbc0 at isa0 port 0x60/5
> pckbd0 at pckbc0 (kbd slot)
> pckbc0: using irq 1 for kbd slot
> wskbd0 at pckbd0: console keyboard, using wsdisplay0
> pms0 at pckbc0 (aux slot)
> pckbc0: using irq 12 for aux slot
> wsmouse0 at pms0 mux 0
> pcppi0 at isa0 port 0x61
> spkr0 at pcppi0
> lpt0 at isa0 port 0x378/4 irq 7
> npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
> fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
> usb0 at uhci0: USB revision 1.0
> uhub0 at usb0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
> mtrr: Pentium Pro MTRR support
> xl0 at cardbus1 dev 0 function 0 "3Com 3CCFE575CT" rev 0x10: irq 11, address \
> 00:01:02:79:15:bf tqphy0 at xl0 phy 0: 78Q2120 10/100 PHY, rev. 11
> uhub1 at uhub0 port 1 "Genesys Logic USB2.0 Hub" rev 2.00/7.02 addr 2
> uhub2 at uhub1 port 4 "Genesys Logic USB2.0 Hub" rev 2.00/7.02 addr 3
> uhidev0 at uhub2 port 1 configuration 1 interface 0 "Logitech USB Receiver" 
> rev \
>                 1.10/46.00 addr 4
> uhidev0: iclass 3/1
> ums0 at uhidev0: 8 buttons, Z dir
> wsmouse1 at ums0 mux 0
> uhidev1 at uhub2 port 1 configuration 1 interface 1 "Logitech USB Receiver" 
> rev \
>                 1.10/46.00 addr 4
> uhidev1: iclass 3/0, 16 report ids
> uhid0 at uhidev1 reportid 16: input=6, output=6, feature=0
> vscsi0 at root
> scsibus1 at vscsi0: 256 targets
> softraid0 at root
> root on wd0a (1effc3e46946b8f4.a) swap on wd0b dump on wd0b
> uath0 at uhub2 port 4 "Atheros Communications Inc WG111T" rev 2.00/0.01 addr 5
> uath0 detached
> uath0 at uhub2 port 4 "Atheros Communications Inc WG111T" rev 2.00/0.01 addr 5
> uath0: MAC/BBP AR5523, RF AR2112, address 00:14:6c:e6:0d:5b
> 

-- 
Think honk if you're a telepath.

Reply via email to