On 04/03/13 09:08, Stuart Henderson wrote:
> moving this to tech@ - original message with dmesg is at
> http://marc.info/?l=openbsd-misc&m=136498447228598&w=2 - summary:
> asus P8H77-M, intel 7 series chipset, "Intel HD Graphics 3000"
> running i386 or amd64, fails during boot with recent kernels unless
> inteldrm disabled.
> [ snip ]
>
> The most useful thing if it's possible (short of getting a system to
> a developer working in this area), would probably be to get a serial
> console on the machine and capture a boot log with "option DRMDEBUG"
> in kernel config. Though maybe someone on tech@ will have an idea of
> something else to try.
I've attached the boot log from a kernel compiled with both "option DRMDEBUG"
and Mark Kettenis patch.
booting hd0a:bsd.dbg2: 6107292+1771500+1021568+0+638720
[80+550488+367351]=0xdfa3a0
entry point at 0x10001e0 [7205c766, 34000004, 24448b12, 1978a304]
[ using 918688 bytes of bsd ELF symbol table ]
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
Copyright (c) 1995-2013 OpenBSD. All rights reserved. http://www.OpenBSD.org
OpenBSD 5.3-current (GENERIC.MP) #6: Thu Apr 4 08:54:28 EDT 2013
[email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 16818126848 (16039MB)
avail mem = 16362627072 (15604MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xeba40 (112 entries)
bios0: vendor American Megatrends Inc. version "1002" date 02/04/2013
bios0: ASUSTeK COMPUTER INC. P8Q77-M
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC FPDT MCFG HPET SSDT SSDT SSDT BGRT DMAR ASF!
acpi0: wakeup devices PS2K(S4) PS2M(S4) UAR1(S4) P0P1(S4) PXSX(S4) RP01(S4)
PXSX(S4) RP02(S4) PXSX(S4) RP03(S4) PXSX(S4) RP04(S4) PXSX(S4) RP05(S4)
PXSX(S4) RP06(S4) PXSX(S4) RP07(S4) PXSX(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) i7-3770 CPU @ 3.40GHz, 3400.51 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,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,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
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz, 3400.03 MHz
cpu1:
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,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS
cpu1: 256KB 64b/line 8-way L2 cache
cpu2 at mainbus0: apid 4 (application processor)
cpu2: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz, 3400.03 MHz
cpu2:
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,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS
cpu2: 256KB 64b/line 8-way L2 cache
cpu3 at mainbus0: apid 6 (application processor)
cpu3: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz, 3400.03 MHz
cpu3:
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,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS
cpu3: 256KB 64b/line 8-way L2 cache
cpu4 at mainbus0: apid 1 (application processor)
cpu4: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz, 3400.03 MHz
cpu4:
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,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS
cpu4: 256KB 64b/line 8-way L2 cache
cpu5 at mainbus0: apid 3 (application processor)
cpu5: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz, 3400.03 MHz
cpu5:
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,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS
cpu5: 256KB 64b/line 8-way L2 cache
cpu6 at mainbus0: apid 5 (application processor)
cpu6: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz, 3400.03 MHz
cpu6:
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,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS
cpu6: 256KB 64b/line 8-way L2 cache
cpu7 at mainbus0: apid 7 (application processor)
cpu7: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz, 3400.03 MHz
cpu7:
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,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS
cpu7: 256KB 64b/line 8-way L2 cache
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 3 (P0P1)
acpiprt2 at acpi0: bus 2 (RP01)
acpiprt3 at acpi0: bus -1 (RP02)
acpiprt4 at acpi0: bus -1 (RP03)
acpiprt5 at acpi0: bus -1 (RP04)
acpiprt6 at acpi0: bus -1 (RP05)
acpiprt7 at acpi0: bus -1 (RP06)
acpiprt8 at acpi0: bus -1 (RP07)
acpiprt9 at acpi0: bus -1 (RP08)
acpiprt10 at acpi0: bus 1 (PEG0)
acpiprt11 at acpi0: bus -1 (PEG1)
acpiprt12 at acpi0: bus -1 (PEG2)
acpiprt13 at acpi0: bus -1 (PEG3)
acpiec0 at acpi0: Failed to read resource settings
acpicpu0 at acpi0: C3, C2, C1, PSS
acpicpu1 at acpi0: C3, C2, C1, PSS
acpicpu2 at acpi0: C3, C2, C1, PSS
acpicpu3 at acpi0: C3, C2, C1, PSS
acpicpu4 at acpi0: C3, C2, C1, PSS
acpicpu5 at acpi0: C3, C2, C1, PSS
acpicpu6 at acpi0: C3, C2, C1, PSS
acpicpu7 at acpi0: C3, C2, C1, PSS
acpipwrres0 at acpi0: FN00
acpipwrres1 at acpi0: FN01
acpipwrres2 at acpi0: FN02
acpipwrres3 at acpi0: FN03
acpipwrres4 at acpi0: FN04
acpitz0 at acpi0: critical temperature is 106 degC
acpitz1 at acpi0: critical temperature is 106 degC
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
ppb0 at pci0 dev 1 function 0 "Intel Xeon E3-1200v2 PCIE" rev 0x09: msi
pci1 at ppb0 bus 1
vendor "ATI", unknown product 0x683d (class display subclass VGA, rev 0x00) at
pci1 dev 0 function 0 not configured
azalia0 at pci1 dev 0 function 1 vendor "ATI", unknown product 0xaab0 rev 0x00:
msi
azalia0: no supported codecs
vga1 at pci0 dev 2 function 0 "Intel HD Graphics 4000" rev 0x09
intagp0 at vga1: detected 262140k stolen memory
agp0 at intagp0: aperture at 0xd0000000, size 0x10000000
inteldrm0 at vga1
drm0 at inteldrm0[drm:pid0:drm_agp_init] agp_available = 1
[drm:pid0:drm_ctxbitmap_next] drm_ctxbitmap_next bit : 0
[drm:pid0:drm_ctxbitmap_init] drm_ctxbitmap_init : 0
[drm:pid0:intel_detect_pch] Found PatherPoint PCH
inteldrm0: apic 2 int 16
[drm:pid0:drm_vblank_init] Supports vblank timestamp caching Rev 1 (10.10.2010).
[drm:pid0:drm_vblank_init] Driver supports precise vblank timestamp query.
[drm:pid0:intel_opregion_setup] graphic opregion physical addr: 0xbcc81018
[drm:pid0:intel_opregion_setup] SWSCI supported
[drm:pid0:init_vbt_defaults] Set default to SSC at 100MHz
[drm:pid0:intel_parse_bios] Using VBT from OpRegion: $VBT SNB/IVB-DESKTOPd
[drm:pid0:parse_general_features] BDB_GENERAL_FEATURES int_tv_support 0
int_crt_support 1 lvds_use_ssc 0 lvds_ssc_freq 120 display_clock_mode 0
[drm:pid0:parse_general_definitions] crt_ddc_bus_pin: 2
[drm:pid0:parse_lfp_panel_data] Found panel mode in BIOS VBT tables:
[drm:pid0:drm_mode_debug_printmodeline] Modeline 0:"1024x768" 0 65000 1024 1048
1184 1344 768 771 777 806 0x8 0xa
[drm:pid0:parse_lfp_panel_data] VBT initial LVDS value 300
[drm:pid0:parse_sdvo_panel_data] Found SDVO panel mode in BIOS VBT tables:
[drm:pid0:drm_mode_debug_printmodeline] Modeline 0:"1600x1200" 0 162000 1600
1664 1856 2160 1200 1201 1204 1250 0x8 0xa
[drm:pid0:parse_sdvo_device_mapping] No SDVO device info is found in VBT
[drm:pid0:intel_modeset_init] todo set fb base
[drm:pid0:intel_modeset_init] 3 display pipes available.
[drm:pid0:intel_lvds_init] LVDS is not present in VBT
[drm:pid0:intel_dp_i2c_init] i2c_init DPDDC-C
[drm:pid0:intel_dp_aux_ch] dp_aux_ch timeout status 0x5145003f
[drm:pid0:intel_dp_i2c_aux_ch] aux_ch failed -60
[drm:pid0:intel_dp_aux_ch] dp_aux_ch timeout status 0x5145003f
[drm:pid0:intel_dp_i2c_aux_ch] aux_ch failed -60
[drm:pid0:intel_dp_i2c_init] i2c_init DPDDC-D
[drm:pid0:intel_dp_aux_ch] dp_aux_ch timeout status 0x5145003f
[drm:pid0:intel_dp_i2c_aux_ch] aux_ch failed -60
[drm:pid0:intel_dp_aux_ch] dp_aux_ch timeout status 0x5145003f
[drm:pid0:intel_dp_i2c_aux_ch] aux_ch failed -60
[drm:pid0:ironlake_init_pch_refclk] has_panel 0 has_lvds 0 has_pch_edp 0
has_cpu_edp 0 has_ck505 0
[drm:pid0:ironlake_init_pch_refclk] Disabling SSC entirely
extent_create: extent `agpgtt', start 0xdffff000, end 0xdfffefff
panic: extent_create: end < start
Stopped at Debugger+0x5: leave
Debugger() at Debugger+0x5
panic() at panic+0xe4
extent_create() at extent_create+0x36b
sg_dmatag_init() at sg_dmatag_init+0x70
agp_bus_dma_init() at agp_bus_dma_init+0x75
i915_gem_init() at i915_gem_init+0x67
i915_load_modeset_init() at i915_load_modeset_init+0x4f
inteldrm_attach() at inteldrm_attach+0x7c4
config_attach() at config_attach+0x1d4
vga_pci_attach() at vga_pci_attach+0xe3
end trace frame: 0xffffffff81e00bd0, count: 0
RUN AT LEAST 'trace' AND 'ps' AND INCLUDE OUTPUT WHEN REPORTING THIS PANIC!
IF RUNNING SMP, USE 'mach ddbcpu <#>' AND 'trace' ON OTHER PROCESSORS, TOO.
DO NOT EVEN BOTHER REPORTING THIS WITHOUT INCLUDING THAT INFORMATION!
ddb{0}> set $lines 0
ddb{0}> trace
Debugger() at Debugger+0x5
panic() at panic+0xe4
extent_create() at extent_create+0x36b
sg_dmatag_init() at sg_dmatag_init+0x70
agp_bus_dma_init() at agp_bus_dma_init+0x75
i915_gem_init() at i915_gem_init+0x67
i915_load_modeset_init() at i915_load_modeset_init+0x4f
inteldrm_attach() at inteldrm_attach+0x7c4
config_attach() at config_attach+0x1d4
vga_pci_attach() at vga_pci_attach+0xe3
config_attach() at config_attach+0x1d4
pci_probe_device() at pci_probe_device+0x3e2
pci_enumerate_bus() at pci_enumerate_bus+0xe9
config_attach() at config_attach+0x1d4
mainbus_attach() at mainbus_attach+0x168
config_attach() at config_attach+0x1d4
cpu_configure() at cpu_configure+0x17
main() at main+0x3f5
end trace frame: 0x0, count: -18
ddb{0}> ps
PID PPID PGRP UID S FLAGS WAIT COMMAND
* 0 -1 0 0 7 0x200 swapper
ddb{0}> show registers
ds 0x6e6d acpi_pdirpa+0x2965
es 0x790
fs 0
gs 0
rdi 0x1
rsi 0x286
rbp 0xffffffff81e00780 end+0xe6880
rbx 0xffffffff81776e6d addrmask+0x1aad
rdx 0xffffffff8179dc0f _length_code+0xb2f
rcx 0
rax 0x1
r8 0xffffffff81e006a0 end+0xe67a0
r9 0
r10 0xffffffff
r11 0xffffffff8110ca70 comcnputc
r12 0x100
r13 0xffffffff81e00790 end+0xe6890
r14 0xffffffff8184a458 amas_devices+0x7b8
r15 0xffff8000001da500
rip 0xffffffff813b1825 Debugger+0x5
cs 0x8
rflags 0x202
rsp 0xffffffff81e00780 end+0xe6880
ss 0x10
Debugger+0x5: leave
ddb{0}> boot reboot
rebooting...
>> OpenBSD/amd64 BOOT 3.20
boot>