>Synopsis:      Ivy Bridge + 1 GB shared GPU disables intagp, panics inteldrm
>Category:      kernel amd64
>Environment:
        System      : OpenBSD 5.2
        Details     : OpenBSD 5.2-current (GENERIC) #0: Sat Dec  1 16:59:33 EST 
2012
                         
[email protected]:/usr/src/sys/arch/amd64/compile/GENERIC

        Architecture: OpenBSD.amd64
        Machine     : amd64
>Description:
        On my Ivy Bridge i5-3570k based system, using the latest snapshots, the 
kernel panics if I set my integrated intel GPU to share 1 GB of memory. I have 
a trivial patch to get intagp to handle this case. I came up with it by 
repeating the structure already found in the code. The system boots fine 
afterwards, and I was able to start X11 earlier in the day, multiple times, 
without any crashes or hangs. The following message appeared numerous times in 
the console when running X11: "intagp: binding into stolen memory! (0x____)" 
[NB _ is a placeholder].  
Unfortunately, I am not having any success starting X11 with 1 GB shared memory 
in the evening. I scaled my shared memory usage down to 128 MB to file this 
report.
>How-To-Repeat:
>Fix:
Index: agp_i810.c
===================================================================
RCS file: /cvs/src/sys/dev/pci/agp_i810.c,v
retrieving revision 1.71
diff -r1.71 agp_i810.c
564a565,567
>               case AGP_INTEL_SNB_GMCH_GMS_STOLEN_1024M:
>                       isc->stolen = (1048576 - stolen) * 1024 / 4096;
>                       break;
Index: agpreg.h
===================================================================
RCS file: /cvs/src/sys/dev/pci/agpreg.h,v
retrieving revision 1.15
diff -r1.15 agpreg.h
297a298
> #define AGP_INTEL_SNB_GMCH_GMS_STOLEN_1024M   (0x11 << 3)


dmesg:
OpenBSD 5.2-current (GENERIC) #0: Sat Dec  1 16:59:33 EST 2012
    [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC
real mem = 16991432704 (16204MB)
avail mem = 16516657152 (15751MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xee7f0 (28 entries)
bios0: vendor American Megatrends Inc. version "P2.50" date 10/31/2012
bios0: ASRock Z77 Extreme4
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC FPDT MCFG SSDT AAFT HPET SSDT SSDT SSDT BGRT
acpi0: wakeup devices CIR_(S3) PS2K(S4) PS2M(S4) UAR1(S4) P0P1(S4) USB1(S3) 
USB2(S3) USB3(S3) USB4(S3) USB5(S3) USB6(S3) USB7(S3) RP01(S4) RP02(S4) 
RP03(S4) RP04(S4) RP05(S4) BR40(S4) RP06(S4) RP07(S4) RP08(S4) PEGP(S4) 
PEG0(S4) PEG1(S4) PEG2(S4) PEG3(S4) GLAN(S4) EHC1(S4) EHC2(S4) XHC_(S4) HDEF(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz, 3400.56 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: apic clock running at 100MHz
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 24 pins
acpimcfg0 at acpi0 addr 0xf8000000, bus 0-63
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (P0P1)
acpiprt2 at acpi0: bus 1 (RP01)
acpiprt3 at acpi0: bus -1 (RP02)
acpiprt4 at acpi0: bus -1 (RP03)
acpiprt5 at acpi0: bus 2 (RP04)
acpiprt6 at acpi0: bus 3 (RP05)
acpiprt7 at acpi0: bus 4 (RP06)
acpiprt8 at acpi0: bus 5 (BR40)
acpiprt9 at acpi0: bus -1 (RP07)
acpiprt10 at acpi0: bus 6 (RP08)
acpiprt11 at acpi0: bus -1 (PEG0)
acpiprt12 at acpi0: bus -1 (PEG1)
acpiprt13 at acpi0: bus -1 (PEG2)
acpiprt14 at acpi0: bus -1 (PEG3)
acpiec0 at acpi0: Failed to read resource settings
acpicpu0 at acpi0: C3, C2, C1, PSS
acpibat0 at acpi0: BAT0 not present
acpibat1 at acpi0: BAT1 not present
acpibat2 at acpi0: BAT2 not present
acpibtn0 at acpi0: PWRB
acpibtn1 at acpi0: LID0
acpivideo0 at acpi0: GFX0
acpivout0 at acpivideo0: DD02
cpu0: Enhanced SpeedStep 3400 MHz: speeds: 3401, 3400, 3300, 3100, 3000, 2900, 
2800, 2600, 2500, 2400, 2200, 2100, 2000, 1900, 1700, 1600 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Xeon E3-1200v2 Host" rev 0x09
vga1 at pci0 dev 2 function 0 "Intel HD Graphics 4000" rev 0x09
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
intagp0 at vga1
agp0 at intagp0: aperture at 0xe0000000, size 0x10000000
inteldrm0 at vga1: apic 2 int 16
drm0 at inteldrm0
"Intel 7 Series xHCI" rev 0x04 at pci0 dev 20 function 0 not configured
"Intel 7 Series MEI" rev 0x04 at pci0 dev 22 function 0 not configured
ehci0 at pci0 dev 26 function 0 "Intel 7 Series USB" rev 0x04: apic 2 int 16
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 "Intel 7 Series HD Audio" rev 0x04: msi
azalia0: codecs: Realtek/0x0899, Intel/0x2806, using Realtek/0x0899
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 7 Series PCIE" rev 0xc4: msi
pci1 at ppb0 bus 1
ppb1 at pci0 dev 28 function 3 "Intel 7 Series PCIE" rev 0xc4: msi
pci2 at ppb1 bus 2
ahci0 at pci2 dev 0 function 0 vendor "ASMedia", unknown product 0x0612 rev 
0x01: msi, AHCI 1.2
scsibus0 at ahci0: 32 targets
ppb2 at pci0 dev 28 function 4 "Intel 7 Series PCIE" rev 0xc4: msi
pci3 at ppb2 bus 3
bge0 at pci3 dev 0 function 0 "Broadcom BCM57781" rev 0x10, unknown BCM57765 
(0x57785100): apic 2 int 16, address bc:5f:f4:68:71:58
brgphy0 at bge0 phy 1: BCM57765 10/100/1000baseT PHY, rev. 4
ppb3 at pci0 dev 28 function 5 "Intel 7 Series PCIE" rev 0xc4: msi
pci4 at ppb3 bus 4
ppb4 at pci4 dev 0 function 0 "ASMedia ASM1083/1085 PCIE-PCI" rev 0x03
pci5 at ppb4 bus 5
ppb5 at pci0 dev 28 function 7 "Intel 7 Series PCIE" rev 0xc4: msi
pci6 at ppb5 bus 6
"ASMedia ASM1042 xHCI" rev 0x00 at pci6 dev 0 function 0 not configured
ehci1 at pci0 dev 29 function 0 "Intel 7 Series USB" rev 0x04: apic 2 int 23
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr 1
pcib0 at pci0 dev 31 function 0 "Intel Z77 LPC" rev 0x04
ahci1 at pci0 dev 31 function 2 "Intel 7 Series AHCI" rev 0x04: msi, AHCI 1.3
scsibus1 at ahci1: 32 targets
sd0 at scsibus1 targ 2 lun 0: <ATA, WDC WD2500JS-60N, 10.0> SCSI3 0/direct 
fixed t10.ATA_WDC_WD2500JS-60NCB1_WD-WCANKE990974
sd0: 238475MB, 512 bytes/sector, 488397168 sectors
sd1 at scsibus1 targ 3 lun 0: <ATA, ST3500630AS, 3.AF> SCSI3 0/direct fixed 
t10.ATA_ST3500630AS_6QG2JQA1
sd1: 476940MB, 512 bytes/sector, 976773168 sectors
ichiic0 at pci0 dev 31 function 3 "Intel 7 Series SMBus" rev 0x04: apic 2 int 18
iic0 at ichiic0
spdmem0 at iic0 addr 0x50: 4GB DDR3 SDRAM PC3-10600
spdmem1 at iic0 addr 0x51: 4GB DDR3 SDRAM PC3-10600
spdmem2 at iic0 addr 0x52: 4GB DDR3 SDRAM PC3-10600
spdmem3 at iic0 addr 0x53: 4GB DDR3 SDRAM PC3-10600
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
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
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
wbsio0 at isa0 port 0x2e/2: NCT6776F rev 0x33
lm1 at wbsio0 port 0x290/8: NCT6776F
mtrr: Pentium Pro MTRR support
ehci_sync_hc: tsleep() = 35
ehci_sync_hc: tsleep() = 35
ehci_sync_hc: tsleep() = 35
ehci_sync_hc: tsleep() = 35
ehci_sync_hc: tsleep() = 35
ehci_sync_hc: tsleep() = 35
ehci_sync_hc: tsleep() = 35
ehci_sync_hc: tsleep() = 35
uhub0: device problem, disabling port 1
uhub2 at uhub1 port 1 "Intel Rate Matching Hub" rev 2.00/0.00 addr 2
uhidev0 at uhub2 port 8 configuration 1 interface 0 "Logitech USB Receiver" rev 
2.00/2.00 addr 3
uhidev0: iclass 3/1
ums0 at uhidev0: 16 buttons, Z dir
wsmouse0 at ums0 mux 0
uhidev1 at uhub2 port 8 configuration 1 interface 1 "Logitech USB Receiver" rev 
2.00/2.00 addr 3
uhidev1: iclass 3/0, 17 report ids
uhid0 at uhidev1 reportid 3: input=4, output=0, feature=0
uhid1 at uhidev1 reportid 16: input=6, output=6, feature=0
uhid2 at uhidev1 reportid 17: input=19, output=19, feature=0
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root on sd0a (009e1a9c1b293a8a.a) swap on sd0b dump on sd0b
WARNING: / was not properly unmounted

usbdevs:
Controller /dev/usb0:
addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), 
Intel(0x8086), rev 1.00
 port 1 powered
 port 2 powered
Controller /dev/usb1:
addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), 
Intel(0x8086), rev 1.00
 port 1 addr 2: high speed, self powered, config 1, Rate Matching Hub(0x0024), 
Intel(0x8087), rev 0.00
  port 1 powered
  port 2 powered
  port 3 powered
  port 4 powered
  port 5 powered
  port 6 powered
  port 7 powered
  port 8 addr 3: full speed, power 98 mA, config 1, USB Receiver(0xc525), 
Logitech(0x046d), rev 2.00
 port 2 powered

Reply via email to