NetBSD Problem Report #49707

From www@NetBSD.org  Sun Mar  1 01:31:21 2015
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 0BD44A650D
	for <gnats-bugs@gnats.NetBSD.org>; Sun,  1 Mar 2015 01:31:21 +0000 (UTC)
Message-Id: <20150301013117.148A4A6551@mollari.NetBSD.org>
Date: Sun,  1 Mar 2015 01:31:17 +0000 (UTC)
From: jdbaker@mylinuxisp.com
Reply-To: jdbaker@consolidated.net
To: gnats-bugs@NetBSD.org
Subject: i386 i915drmkms on 82845G/GL panic with Xorg intel driver
X-Send-Pr-Version: www-1.0

>Number:         49707
>Notify-List:    jdbaker@consolidated.net
>Category:       kern
>Synopsis:       i386 i915drmkms on 82845G/GL panic with Xorg intel driver
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    riastradh
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Mar 01 01:35:00 +0000 2015
>Closed-Date:    Fri May 01 05:42:03 +0000 2020
>Last-Modified:  Fri May 01 05:42:03 +0000 2020
>Originator:     John D. Baker
>Release:        NetBSD/i386-7.99.5
>Organization:
>Environment:
NetBSD gx260a 7.99.5 NetBSD 7.99.5 (GENERIC) #4: Sat Feb 28 13:46:11 CST 2015  sysop@skuld.technoskunk.fur:/d0/build/current/obj/i386/sys/arch/i386/compile/GENERIC i386

>Description:
Dell Optiplex GX260 built-in video via i82845G/GL attaches i915drmkms
and intelfb drivers.  Framebuffer console works.  Xorg with "wsfb"
driver works.

Xorg with "intel" driver (in "xorg.conf" or autodetected) panics and
reboots machine near instantly.  The "NoAccel" option has no effect.

"dmesg" and "var/log/messages" excerpts (machine is diskless/NFS root).

[...]
Dell Computer Corporation OptiPlex GX260               
[...]
pchb0 at pci0 dev 0 function 0: Intel 82845G/GL DRAM Controller / Host-Hub I/F Bridge (rev. 0x01)
agp0 at pchb0: i830-family chipset
agp0: detected 8060k stolen memory
agp0: aperture at 0xf0000000, size 0x8000000
i915drmkms0 at pci0 dev 2 function 0: Intel 82845G/GL Integrated Graphics Device (rev. 0x01)
pci_mem_find: void region
pci_mem_find: void region
pci_mem_find: void region
pci_mem_find: void region
pci_mem_find: void region
i915drmkms0: map 2 failed
pci_mem_find: void region
i915drmkms0: map 3 failed
pci_mem_find: void region
i915drmkms0: map 4 failed
pci_mem_find: void region
i915drmkms0: map 5 failed
DRM debug in drm_minor_register: 
DRM debug in drm_minor_register: new minor assigned 64
DRM debug in drm_minor_register: 
DRM debug in drm_minor_register: 
DRM debug in drm_minor_register: new minor assigned 0
DRM debug in i915_dump_device_info: i915 device info: gen=2, pciid=0x2562 flags=has_overlay,overlay_needs_physical,pci_mem_find: void region
pci_mem_find: void region
pci_mem_find: void region
pci_mem_find: void region
pci_mem_find: void region
pci_mem_find: void region
pci_mem_find: void region
pci_mem_find: void region
pci_mem_find: void region
pci_mem_find: void region
pci_mem_find: void region
DRM debug in intel_detect_pch: No PCH found.
drm: Memory usable by graphics device = 128M
DRM debug in i915_gem_gtt_init: GMADR size = 128M
DRM debug in i915_gem_gtt_init: GTT stolen size = 7M
DRM debug in i915_gem_gtt_init: ppgtt mode: 0
DRM debug in intel_opregion_setup: graphic opregion physical addr: 0x0
DRM debug in intel_opregion_setup: ACPI OpRegion not supported!
drm: Supports vblank timestamp caching Rev 2 (21.10.2013).
drm: Driver supports precise vblank timestamp query.
DRM debug in init_vbt_defaults: Set default to SSC at 66667 kHz
pci_mem_find: void region
DRM debug in parse_general_features: BDB_GENERAL_FEATURES int_tv_support 1 int_crt_support 0 lvds_use_ssc 0 lvds_ssc_freq 48000 display_clock_mode 0 fdi_rx_polarity_inverted 0
DRM debug in parse_general_definitions: crt_ddc_bus_pin: 2
DRM debug in parse_sdvo_device_mapping: different child size is found. Invalid.
DRM debug in parse_device_mapping: different child size is found. Invalid.
DRM debug in parse_mipi: No MIPI BDB foundDRM debug in intel_display_power_get: enabling always-on
DRM debug in drm_irq_install: irq=268963849
i915drmkms0: interrupting at ioapic0 pin 16 (i915)
DRM debug in intel_modeset_init: 1 display pipe available.
DRM debug in intel_modeset_init: pipe A sprite A init failed: -19
DRM debug in intel_gmbus_force_bit: enabling bit-banging on i915 gmbus dpb. force bit now 1
DRM debug in intel_gmbus_force_bit: disabling bit-banging on i915 gmbus dpb. force bit now 0
DRM debug in intel_gmbus_force_bit: enabling bit-banging on i915 gmbus dpb. force bit now 1
DRM debug in intel_gmbus_force_bit: disabling bit-banging on i915 gmbus dpb. force bit now 0
DRM debug in intel_gmbus_force_bit: enabling bit-banging on i915 gmbus dpb. force bit now 1
DRM debug in intel_gmbus_force_bit: disabling bit-banging on i915 gmbus dpb. force bit now 0
DRM debug in intel_gmbus_force_bit: enabling bit-banging on i915 gmbus ssc. force bit now 1
DRM debug in intel_gmbus_force_bit: disabling bit-banging on i915 gmbus ssc. force bit now 0
DRM debug in intel_gmbus_force_bit: enabling bit-banging on i915 gmbus dpb. force bit now 1
DRM debug in tfp410_init: tfp410 not detected got VID FFFFFFFF: from i915 gmbus dpb Slave 56.
DRM debug in intel_gmbus_force_bit: disabling bit-banging on i915 gmbus dpb. force bit now 0
DRM debug in intel_gmbus_force_bit: enabling bit-banging on i915 gmbus dpb. force bit now 1
DRM debug in intel_gmbus_force_bit: disabling bit-banging on i915 gmbus dpb. force bit now 0
DRM debug in intel_gmbus_force_bit: enabling bit-banging on i915 gmbus dpb. force bit now 1
DRM debug in intel_gmbus_force_bit: disabling bit-banging on i915 gmbus dpb. force bit now 0
DRM debug in intel_modeset_readout_hw_state: [CRTC:5] hw state readout: enabled
DRM debug in intel_modeset_readout_hw_state: [ENCODER:7:DAC-7] hw state readout: enabled, pipe A
DRM debug in intel_modeset_readout_hw_state: [CONNECTOR:6:VGA-1] hw state readout: enabled
DRM debug in intel_dump_pipe_config: [CRTC:5][setup_hw_state] config for pipe A
DRM debug in intel_dump_pipe_config: cpu_transcoder: A
DRM debug in intel_dump_pipe_config: pipe bpp: 0, dithering: 0
DRM debug in intel_dump_pipe_config: fdi/pch: 0, lanes: 0, gmch_m: 0, gmch_n: 0, link_m: 0, link_n: 0, tu: 0
DRM debug in intel_dump_pipe_config: dp: 0, gmch_m: 0, gmch_n: 0, link_m: 0, link_n: 0, tu: 0
DRM debug in intel_dump_pipe_config: requested mode:
DRM debug in drm_mode_debug_printmodeline: Modeline 0:"" 0 0 640 0 0 0 480 0 0 0 0x0 0x0
DRM debug in intel_dump_pipe_config: adjusted mode:
DRM debug in drm_mode_debug_printmodeline: Modeline 0:"" 0 0 0 0 0 0 0 0 0 0 0x0 0xa
DRM debug in intel_dump_crtc_timings: crtc timings: 25154 640 656 752 800 480 490 492 525, type: 0x0 flags: 0xa
DRM debug in intel_dump_pipe_config: port clock: 25154
DRM debug in intel_dump_pipe_config: pipe src size: 640x480
DRM debug in intel_dump_pipe_config: gmch pfit: control: 0x00000000, ratios: 0x00000000, lvds border: 0x00000000
DRM debug in intel_dump_pipe_config: pch pfit: pos: 0x00000000, size: 0x00000000, disabled
DRM debug in intel_dump_pipe_config: ips: 0
DRM debug in intel_dump_pipe_config: double wide: 0
DRM debug in intel_connector_check_state: [CONNECTOR:6:VGA-1]
DRM debug in check_encoder_state: [ENCODER:7:DAC-7]
DRM debug in check_crtc_state: [CRTC:5]
DRM debug in i9xx_get_plane_config: pipe/plane 0/0 with fb: size=640x480@8, offset=0, pitch 640, size 0x4b000
DRM debug in i915_gem_setup_global_gtt: clearing unused GTT space: [0, 7fff000]
DRM debug in i915_gem_context_init: fake context support initialized
drm: initialized overlay support
DRM debug in drm_helper_probe_single_connector_modes: [CONNECTOR:6:VGA-1]
DRM debug in intel_crt_detect: [CONNECTOR:6:VGA-1] force=1
DRM debug in gmbus_xfer: GMBUS [i915 gmbus vga] NAK for addr: 0050 r(1)
DRM debug in drm_do_probe_ddc_edid: drm: skipping non-existent adapter i915 gmbus vga
DRM debug in intel_crt_get_edid: CRT GMBUS EDID read failed, retry using GPIO bit-banging
DRM debug in intel_gmbus_force_bit: enabling bit-banging on i915 gmbus vga. force bit now 1
DRM debug in intel_gmbus_force_bit: disabling bit-banging on i915 gmbus vga. force bit now 0
DRM debug in intel_crt_detect_ddc: CRT not detected via DDC:0x50 [no valid EDID found]
DRM debug in intel_get_load_detect_pipe: [CONNECTOR:6:VGA-1], [ENCODER:7:DAC-7]
DRM debug in intel_crt_detect_ddc: CRT detected via DDC:0x50 [EDID]
DRM debug in intel_release_load_detect_pipe: [CONNECTOR:6:VGA-1], [ENCODER:7:DAC-7]
DRM debug in drm_edid_to_eld: ELD: no CEA Extension found
DRM debug in drm_mode_debug_printmodeline: Modeline 30:"1024x768i" 0 44900 1024 1032 1208 1264 768 768 776 817 0x40 0x15
DRM debug in drm_mode_prune_invalid: Not using 1024x768i mode 7
DRM debug in drm_helper_probe_single_connector_modes: [CONNECTOR:6:VGA-1] probed modes :
DRM debug in drm_mode_debug_printmodeline: Modeline 18:"1280x1024" 60 108000 1280 1328 1440 1688 1024 1025 1028 1066 0x40 0x5
DRM debug in drm_mode_debug_printmodeline: Modeline 17:"1280x960" 60 108000 1280 1376 1488 1800 960 961 964 1000 0x40 0x5
DRM debug in drm_mode_debug_printmodeline: Modeline 16:"1152x864" 75 108000 1152 1216 1344 1600 864 865 868 900 0x40 0x5
DRM debug in drm_mode_debug_printmodeline: Modeline 15:"1024x768" 85 94500 1024 1072 1168 1376 768 769 772 808 0x40 0x5
DRM debug in drm_mode_debug_printmodeline: Modeline 27:"1024x768" 75 78800 1024 1040 1136 1312 768 769 772 800 0x40 0x5
DRM debug in drm_mode_debug_printmodeline: Modeline 28:"1024x768" 70 75000 1024 1048 1184 1328 768 771 777 806 0x40 0xa
DRM debug in drm_mode_debug_printmodeline: Modeline 29:"1024x768" 60 65000 1024 1048 1184 1344 768 771 777 806 0x40 0xa
DRM debug in drm_mode_debug_printmodeline: Modeline 14:"800x600" 85 56250 800 832 896 1048 600 601 604 631 0x40 0x5
DRM debug in drm_mode_debug_printmodeline: Modeline 31:"800x600" 75 49500 800 816 896 1056 600 601 604 625 0x40 0x5
DRM debug in drm_mode_debug_printmodeline: Modeline 32:"800x600" 72 50000 800 856 976 1040 600 637 643 666 0x40 0x5
DRM debug in drm_mode_debug_printmodeline: Modeline 19:"800x600" 60 40000 800 840 968 1056 600 601 605 628 0x40 0x5
DRM debug in drm_mode_debug_printmodeline: Modeline 20:"800x600" 56 36000 800 824 896 1024 600 601 603 625 0x40 0x5
DRM debug in drm_mode_debug_printmodeline: Modeline 13:"640x480" 85 36000 640 696 752 832 480 481 484 509 0x40 0xa
DRM debug in drm_mode_debug_printmodeline: Modeline 21:"640x480" 75 31500 640 656 720 840 480 481 484 500 0x40 0xa
DRM debug in drm_mode_debug_printmodeline: Modeline 22:"640x480" 73 31500 640 664 704 832 480 489 491 520 0x40 0xa
DRM debug in drm_mode_debug_printmodeline: Modeline 23:"640x480" 67 30240 640 704 768 864 480 483 486 525 0x40 0xa
DRM debug in drm_mode_debug_printmodeline: Modeline 24:"640x480" 60 25200 640 656 752 800 480 490 492 525 0x40 0xa
DRM debug in drm_mode_debug_printmodeline: Modeline 25:"720x400" 88 35500 720 738 846 900 400 421 423 449 0x40 0xa
DRM debug in drm_mode_debug_printmodeline: Modeline 12:"720x400" 85 35500 720 756 828 936 400 401 404 446 0x40 0x6
DRM debug in drm_mode_debug_printmodeline: Modeline 26:"720x400" 70 28320 720 738 846 900 400 412 414 449 0x40 0x6
DRM debug in drm_mode_debug_printmodeline: Modeline 11:"640x400" 85 31500 640 672 736 832 400 401 404 445 0x40 0x6
DRM debug in drm_mode_debug_printmodeline: Modeline 10:"640x350" 85 31500 640 672 736 832 350 382 385 445 0x40 0x9
DRM debug in drm_mode_debug_printmodeline: Modeline 9:"640x350" 70 25180 640 656 752 800 350 387 389 449 0x40 0x9
DRM debug in drm_setup_crtcs: 
DRM debug in drm_enable_connectors: connector 6 enabled? yes
DRM debug in intel_fb_initial_config: looking for cmdline mode on connector 6
DRM debug in intel_fb_initial_config: looking for preferred mode on connector 6
DRM debug in intel_fb_initial_config: using first mode listed on connector VGA-1
DRM debug in intel_fb_initial_config: connector VGA-1 on crtc 5: 1280x1024
DRM debug in drm_setup_crtcs: desired mode 1280x1024 set on crtc 5
DRM debug in intelfb_create: no BIOS fb, allocating a new one
DRM debug in drm_framebuffer_reference: FB ID: 33
intelfb0 at i915drmkms0
intelfb0: WARNING: power management not supported
DRM debug in intelfb_create: allocated 1280x1024 fb: 0x00060000, bo 0xc3a80c00
i915drmkms0: info: registered panic notifier
intelfb0: framebuffer at 0xdb667000, size 1280x1024, depth 32, stride 5120
DRM debug in intel_crtc_cursor_set: cursor off
DRM debug in intel_crtc_set_config: [CRTC:5] [FB:33] #connectors=1 (x y) (0 0)
DRM debug in intel_set_config_compute_mode_changes: inactive crtc, full mode set
DRM debug in intel_set_config_compute_mode_changes: modes are different, full mode set
DRM debug in drm_mode_debug_printmodeline: Modeline 0:"" 0 0 0 0 0 0 0 0 0 0 0x0 0x0
DRM debug in drm_mode_debug_printmodeline: Modeline 30:"1280x1024" 60 108000 1280 1328 1440 1688 1024 1025 1028 1066 0x40 0x5
DRM debug in intel_set_config_compute_mode_changes: computed changes for [CRTC:5], mode_changed=1, fb_changed=0
DRM debug in intel_modeset_stage_output_state: [CONNECTOR:6:VGA-1] to [CRTC:5]
DRM debug in intel_modeset_affected_pipes: set mode pipe masks: modeset: 1, prepare: 1, disable: 0
DRM debug in connected_sink_compute_bpp: [CONNECTOR:6:VGA-1] checking for sink bpp constrains
DRM debug in intel_modeset_pipe_config: plane bpp: 24, pipe bpp: 24, dithering: 0
DRM debug in intel_dump_pipe_config: [CRTC:5][modeset] config for pipe A
DRM debug in intel_dump_pipe_config: cpu_transcoder: A
DRM debug in intel_dump_pipe_config: pipe bpp: 24, dithering: 0
DRM debug in intel_dump_pipe_config: fdi/pch: 0, lanes: 0, gmch_m: 0, gmch_n: 0, link_m: 0, link_n: 0, tu: 0
DRM debug in intel_dump_pipe_config: dp: 0, gmch_m: 0, gmch_n: 0, link_m: 0, link_n: 0, tu: 0
DRM debug in intel_dump_pipe_config: requested mode:
DRM debug in drm_mode_debug_printmodeline: Modeline 0:"1280x1024" 60 108000 1280 1328 1440 1688 1024 1025 1028 1066 0x40 0x5
DRM debug in intel_dump_pipe_config: adjusted mode:
DRM debug in drm_mode_debug_printmodeline: Modeline 0:"1280x1024" 60 108000 1280 1328 1440 1688 1024 1025 1028 1066 0x40 0x5
DRM debug in intel_dump_crtc_timings: crtc timings: 108000 1280 1328 1440 1688 1024 1025 1028 1066, type: 0x40 flags: 0x5
DRM debug in intel_dump_pipe_config: port clock: 108000
DRM debug in intel_dump_pipe_config: pipe src size: 1280x1024
DRM debug in intel_dump_pipe_config: gmch pfit: control: 0x00000000, ratios: 0x00000000, lvds border: 0x00000000
DRM debug in intel_dump_pipe_config: pch pfit: pos: 0x00000000, size: 0x00000000, disabled
DRM debug in intel_dump_pipe_config: ips: 0
DRM debug in intel_dump_pipe_config: double wide: 0
DRM debug in drm_calc_vbltimestamp_from_scanoutpos: crtc 0: Noop due to uninitialized mode.
DRM debug in drm_calc_timestamping_constants: crtc 5: hwmode: htotal 1688, vtotal 1066, vdisplay 1024
DRM debug in drm_calc_timestamping_constants: crtc 5: clock 108000 kHz framedur 16661185 linedur 15629, pixeldur 9
DRM debug in drm_vblank_get: enabling vblank on crtc 0, ret: -22
DRM debug in i9xx_update_primary_plane: Writing base 00060000 00000000 0 0 5120
DRM debug in intel_crtc_mode_set: [ENCODER:7:DAC-7] set [MODE:0:1280x1024]
DRM debug in i845_get_fifo_size: FIFO size - (0x0000005f) A: 23
DRM debug in intel_calculate_wm: FIFO entries required for mode: 68
DRM debug in intel_calculate_wm: FIFO watermark level: -47
DRM debug in i845_update_wm: Setting FIFO watermarks - A: 1
DRM debug in intel_connector_check_state: [CONNECTOR:6:VGA-1]
DRM debug in check_encoder_state: [ENCODER:7:DAC-7]
DRM debug in check_crtc_state: [CRTC:5]
DRM debug in drm_framebuffer_reference: FB ID: 33
wsdisplay0 at intelfb0 kbdmux 1: console (default, vt100 emulation), using wskbd0
wsmux1: connecting to wsdisplay0
[...]
[startx]
Feb 28 18:14:31 gx260a sysop: starting X11
Feb 28 18:14:32 gx260a /netbsd: DRM debug in i915_gem_open: 
Feb 28 18:14:32 gx260a /netbsd: DRM debug in intel_crtc_cursor_set: cursor off
Feb 28 18:14:32 gx260a /netbsd: DRM debug in intel_crtc_set_config: [CRTC:5] [FB:33] #connectors=1 (x y) (0 0)
Feb 28 18:14:32 gx260a /netbsd: DRM debug in intel_set_config_compute_mode_changes: computed changes for [CRTC:5], mode_changed=0, fb_changed=0
Feb 28 18:14:32 gx260a /netbsd: DRM debug in intel_modeset_stage_output_state: [CONNECTOR:6:VGA-1] to [CRTC:5]
Feb 28 18:14:32 gx260a /netbsd: DRM debug in drm_framebuffer_reference: FB ID: 33
Feb 28 18:14:32 gx260a /netbsd: DRM debug in drm_framebuffer_unreference: FB ID: 33
Feb 28 18:14:32 gx260a /netbsd: DRM debug in i915_gem_open: 
Feb 28 18:14:32 gx260a /netbsd: DRM debug in drm_mode_getresources: CRTC[1] CONNECTORS[1] ENCODERS[1]
Feb 28 18:14:32 gx260a /netbsd: DRM debug in intel_crtc_cursor_set: cursor off
Feb 28 18:14:32 gx260a /netbsd: DRM debug in intel_crtc_set_config: [CRTC:5] [FB:33] #connectors=1 (x y) (0 0)
Feb 28 18:14:32 gx260a /netbsd: DRM debug in intel_set_config_compute_mode_changes: computed changes for [CRTC:5], mode_changed=0, fb_changed=0
Feb 28 18:14:32 gx260a /netbsd: DRM debug in intel_modeset_stage_output_state: [CONNECTOR:6:VGA-1] to [CRTC:5]
[panic/reboot]


If the console is on the serial port, i915drmkms disables the video
(VGA) output.  Starting X then doesn't panic the machine, but instead
spins forever looking for an active output.

NetBSD 7.99.5 (GENERIC) #4: Sat Feb 28 13:46:11 CST 2015
        sysop@skuld.technoskunk.fur:/d0/build/current/obj/i386/sys/arch/i386/compile/GENERIC
[...]
Dell Computer Corporation OptiPlex GX260               
[...]
pchb0 at pci0 dev 0 function 0: Intel 82845G/GL DRAM Controller / Host-Hub I/F Bridge (rev. 0x01)
agp0 at pchb0: i830-family chipset
agp0: detected 8060k stolen memory
agp0: aperture at 0xf0000000, size 0x8000000
i915drmkms0 at pci0 dev 2 function 0: Intel 82845G/GL Integrated Graphics Device (rev. 0x01)
pci_mem_find: void region
pci_mem_find: void region
pci_mem_find: void region
pci_mem_find: void region
pci_mem_find: void region
i915drmkms0: map 2 failed
pci_mem_find: void region
i915drmkms0: map 3 failed
pci_mem_find: void region
i915drmkms0: map 4 failed
pci_mem_find: void region
i915drmkms0: map 5 failed
DRM debug in drm_minor_register: 
DRM debug in drm_minor_register: new minor assigned 64
DRM debug in drm_minor_register:                      
DRM debug in drm_minor_register: 
DRM debug in drm_minor_register: new minor assigned 0
DRM debug in i915_dump_device_info: i915 device info: gen=2, pciid=0x2562 flags=has_overlay,overlay_needs_physical,pci_mem_find: void region
pci_mem_find: void region                                   
pci_mem_find: void region
pci_mem_find: void region
pci_mem_find: void region
pci_mem_find: void region
pci_mem_find: void region
pci_mem_find: void region
pci_mem_find: void region
pci_mem_find: void region
pci_mem_find: void region
DRM debug in intel_detect_pch: No PCH found.
drm: Memory usable by graphics device = 128M
DRM debug in i915_gem_gtt_init: GMADR size = 128M
DRM debug in i915_gem_gtt_init: GTT stolen size = 7M
DRM debug in i915_gem_gtt_init: ppgtt mode: 0       
DRM debug in intel_opregion_setup: graphic opregion physical addr: 0x0
DRM debug in intel_opregion_setup: ACPI OpRegion not supported!       
drm: Supports vblank timestamp caching Rev 2 (21.10.2013).     
drm: Driver supports precise vblank timestamp query.      
DRM debug in init_vbt_defaults: Set default to SSC at 66667 kHz
pci_mem_find: void region                                      
DRM debug in parse_general_features: BDB_GENERAL_FEATURES int_tv_support 1 int_crt_support 0 lvds_use_ssc 0 lvds_ssc_freq 48000 display_clock_mode 0 fdi_rx_polarity_inverted 0
DRM debug in parse_general_definitions: crt_ddc_bus_pin: 2
DRM debug in parse_sdvo_device_mapping: different child size is found. Invalid.
DRM debug in parse_device_mapping: different child size is found. Invalid.     
DRM debug in parse_mipi: No MIPI BDB foundDRM debug in intel_display_power_get: enabling always-on
DRM debug in drm_irq_install: irq=268963849
i915drmkms0: interrupting at ioapic0 pin 16 (i915)
DRM debug in intel_modeset_init: 1 display pipe available.
DRM debug in intel_modeset_init: pipe A sprite A init failed: -19
DRM debug in intel_gmbus_force_bit: enabling bit-banging on i915 gmbus dpb. force bit now 1
DRM debug in intel_gmbus_force_bit: disabling bit-banging on i915 gmbus dpb. force bit now 0
DRM debug in intel_gmbus_force_bit: enabling bit-banging on i915 gmbus dpb. force bit now 1
DRM debug in intel_gmbus_force_bit: disabling bit-banging on i915 gmbus dpb. force bit now 0
DRM debug in intel_gmbus_force_bit: enabling bit-banging on i915 gmbus dpb. force bit now 1
DRM debug in intel_gmbus_force_bit: disabling bit-banging on i915 gmbus dpb. force bit now 0
DRM debug in intel_gmbus_force_bit: enabling bit-banging on i915 gmbus ssc. force bit now 1
DRM debug in intel_gmbus_force_bit: disabling bit-banging on i915 gmbus ssc. force bit now 0
DRM debug in intel_gmbus_force_bit: enabling bit-banging on i915 gmbus dpb. force bit now 1
DRM debug in tfp410_init: tfp410 not detected got VID FFFFFFFF: from i915 gmbus dpb Slave 56.
DRM debug in intel_gmbus_force_bit: disabling bit-banging on i915 gmbus dpb. force bit now 0
DRM debug in intel_gmbus_force_bit: enabling bit-banging on i915 gmbus dpb. force bit now 1
DRM debug in intel_gmbus_force_bit: disabling bit-banging on i915 gmbus dpb. force bit now 0
DRM debug in intel_gmbus_force_bit: enabling bit-banging on i915 gmbus dpb. force bit now 1
DRM debug in intel_gmbus_force_bit: disabling bit-banging on i915 gmbus dpb. force bit now 0
DRM debug in intel_modeset_readout_hw_state: [CRTC:5] hw state readout: enabled
DRM debug in intel_modeset_readout_hw_state: [ENCODER:7:DAC-7] hw state readout: enabled, pipe A
DRM debug in intel_modeset_readout_hw_state: [CONNECTOR:6:VGA-1] hw state readout: enabled
DRM debug in intel_dump_pipe_config: [CRTC:5][setup_hw_state] config for pipe A
DRM debug in intel_dump_pipe_config: cpu_transcoder: A                         
DRM debug in intel_dump_pipe_config: pipe bpp: 0, dithering: 0
DRM debug in intel_dump_pipe_config: fdi/pch: 0, lanes: 0, gmch_m: 0, gmch_n: 0, link_m: 0, link_n: 0, tu: 0
DRM debug in intel_dump_pipe_config: dp: 0, gmch_m: 0, gmch_n: 0, link_m: 0, link_n: 0, tu: 0
DRM debug in intel_dump_pipe_config: requested mode:
DRM debug in drm_mode_debug_printmodeline: Modeline 0:"" 0 0 640 0 0 0 480 0 0 0 0x0 0x0
DRM debug in intel_dump_pipe_config: adjusted mode:
DRM debug in drm_mode_debug_printmodeline: Modeline 0:"" 0 0 0 0 0 0 0 0 0 0 0x0 0xa
DRM debug in intel_dump_crtc_timings: crtc timings: 25154 640 656 752 800 480 490 492 525, type: 0x0 flags: 0xa
DRM debug in intel_dump_pipe_config: port clock: 25154
DRM debug in intel_dump_pipe_config: pipe src size: 640x480
DRM debug in intel_dump_pipe_config: gmch pfit: control: 0x00000000, ratios: 0x00000000, lvds border: 0x00000000
DRM debug in intel_dump_pipe_config: pch pfit: pos: 0x00000000, size: 0x00000000, disabled
DRM debug in intel_dump_pipe_config: ips: 0
DRM debug in intel_dump_pipe_config: double wide: 0
DRM debug in intel_connector_check_state: [CONNECTOR:6:VGA-1]
DRM debug in check_encoder_state: [ENCODER:7:DAC-7]          
DRM debug in check_crtc_state: [CRTC:5]            
DRM debug in i9xx_get_plane_config: pipe/plane 0/0 with fb: size=640x480@8, offset=0, pitch 640, size 0x4b000
DRM debug in i915_gem_setup_global_gtt: clearing unused GTT space: [0, 7fff000]
DRM debug in i915_gem_context_init: fake context support initialized           
drm: initialized overlay support                                    
DRM debug in drm_helper_probe_single_connector_modes: [CONNECTOR:6:VGA-1]
DRM debug in intel_crt_detect: [CONNECTOR:6:VGA-1] force=1               
DRM debug in intel_crt_detect_ddc: CRT detected via DDC:0x50 [EDID]
DRM debug in drm_edid_to_eld: ELD: no CEA Extension found          
DRM debug in drm_mode_debug_printmodeline: Modeline 30:"1024x768i" 0 44900 1024 1032 1208 1264 768 768 776 817 0x40 0x15
DRM debug in drm_mode_prune_invalid: Not using 1024x768i mode 7
DRM debug in drm_helper_probe_single_connector_modes: [CONNECTOR:6:VGA-1] probed modes :
DRM debug in drm_mode_debug_printmodeline: Modeline 18:"1280x1024" 60 108000 1280 1328 1440 1688 1024 1025 1028 1066 0x40 0x5
DRM debug in drm_mode_debug_printmodeline: Modeline 17:"1280x960" 60 108000 1280 1376 1488 1800 960 961 964 1000 0x40 0x5
DRM debug in drm_mode_debug_printmodeline: Modeline 16:"1152x864" 75 108000 1152 1216 1344 1600 864 865 868 900 0x40 0x5
DRM debug in drm_mode_debug_printmodeline: Modeline 15:"1024x768" 85 94500 1024 1072 1168 1376 768 769 772 808 0x40 0x5
DRM debug in drm_mode_debug_printmodeline: Modeline 27:"1024x768" 75 78800 1024 1040 1136 1312 768 769 772 800 0x40 0x5
DRM debug in drm_mode_debug_printmodeline: Modeline 28:"1024x768" 70 75000 1024 1048 1184 1328 768 771 777 806 0x40 0xa
DRM debug in drm_mode_debug_printmodeline: Modeline 29:"1024x768" 60 65000 1024 1048 1184 1344 768 771 777 806 0x40 0xa
DRM debug in drm_mode_debug_printmodeline: Modeline 14:"800x600" 85 56250 800 832 896 1048 600 601 604 631 0x40 0x5
DRM debug in drm_mode_debug_printmodeline: Modeline 31:"800x600" 75 49500 800 816 896 1056 600 601 604 625 0x40 0x5
DRM debug in drm_mode_debug_printmodeline: Modeline 32:"800x600" 72 50000 800 856 976 1040 600 637 643 666 0x40 0x5
DRM debug in drm_mode_debug_printmodeline: Modeline 19:"800x600" 60 40000 800 840 968 1056 600 601 605 628 0x40 0x5
DRM debug in drm_mode_debug_printmodeline: Modeline 20:"800x600" 56 36000 800 824 896 1024 600 601 603 625 0x40 0x5
DRM debug in drm_mode_debug_printmodeline: Modeline 13:"640x480" 85 36000 640 696 752 832 480 481 484 509 0x40 0xa
DRM debug in drm_mode_debug_printmodeline: Modeline 21:"640x480" 75 31500 640 656 720 840 480 481 484 500 0x40 0xa
DRM debug in drm_mode_debug_printmodeline: Modeline 22:"640x480" 73 31500 640 664 704 832 480 489 491 520 0x40 0xa
DRM debug in drm_mode_debug_printmodeline: Modeline 23:"640x480" 67 30240 640 704 768 864 480 483 486 525 0x40 0xa
DRM debug in drm_mode_debug_printmodeline: Modeline 24:"640x480" 60 25200 640 656 752 800 480 490 492 525 0x40 0xa
DRM debug in drm_mode_debug_printmodeline: Modeline 25:"720x400" 88 35500 720 738 846 900 400 421 423 449 0x40 0xa
DRM debug in drm_mode_debug_printmodeline: Modeline 12:"720x400" 85 35500 720 756 828 936 400 401 404 446 0x40 0x6
DRM debug in drm_mode_debug_printmodeline: Modeline 26:"720x400" 70 28320 720 738 846 900 400 412 414 449 0x40 0x6
DRM debug in drm_mode_debug_printmodeline: Modeline 11:"640x400" 85 31500 640 672 736 832 400 401 404 445 0x40 0x6
DRM debug in drm_mode_debug_printmodeline: Modeline 10:"640x350" 85 31500 640 672 736 832 350 382 385 445 0x40 0x9
DRM debug in drm_mode_debug_printmodeline: Modeline 9:"640x350" 70 25180 640 656 752 800 350 387 389 449 0x40 0x9
DRM debug in drm_setup_crtcs:    
DRM debug in drm_enable_connectors: connector 6 enabled? yes
DRM debug in intel_fb_initial_config: looking for cmdline mode on connector 6
DRM debug in intel_fb_initial_config: looking for preferred mode on connector 6
DRM debug in intel_fb_initial_config: using first mode listed on connector VGA-1
DRM debug in intel_fb_initial_config: connector VGA-1 on crtc 5: 1280x1024     
DRM debug in drm_setup_crtcs: desired mode 1280x1024 set on crtc 5        
DRM debug in intelfb_create: no BIOS fb, allocating a new one     
DRM debug in drm_framebuffer_reference: FB ID: 33            
intelfb0 at i915drmkms0                          
intelfb0: WARNING: power management not supported
DRM debug in intelfb_create: allocated 1280x1024 fb: 0x00060000, bo 0xc3a80c00
i915drmkms0: info: registered panic notifier                                  
intelfb0: framebuffer at 0xdb667000, size 1280x1024, depth 32, stride 5120
DRM debug in intel_crtc_cursor_set: cursor off                            
DRM debug in intel_crtc_set_config: [CRTC:5] [FB:33] #connectors=1 (x y) (0 0)
DRM debug in intel_set_config_compute_mode_changes: inactive crtc, full mode set
DRM debug in intel_set_config_compute_mode_changes: modes are different, full mode set
DRM debug in drm_mode_debug_printmodeline: Modeline 0:"" 0 0 0 0 0 0 0 0 0 0 0x0 0x0
DRM debug in drm_mode_debug_printmodeline: Modeline 30:"1280x1024" 60 108000 1280 1328 1440 1688 1024 1025 1028 1066 0x40 0x5
DRM debug in intel_set_config_compute_mode_changes: computed changes for [CRTC:5], mode_changed=1, fb_changed=0
DRM debug in intel_modeset_stage_output_state: [CONNECTOR:6:VGA-1] to [CRTC:5]
DRM debug in intel_modeset_affected_pipes: set mode pipe masks: modeset: 1, prepare: 1, disable: 0
DRM debug in connected_sink_compute_bpp: [CONNECTOR:6:VGA-1] checking for sink bpp constrains
DRM debug in intel_modeset_pipe_config: plane bpp: 24, pipe bpp: 24, dithering: 0
DRM debug in intel_dump_pipe_config: [CRTC:5][modeset] config for pipe A
DRM debug in intel_dump_pipe_config: cpu_transcoder: A                  
DRM debug in intel_dump_pipe_config: pipe bpp: 24, dithering: 0
DRM debug in intel_dump_pipe_config: fdi/pch: 0, lanes: 0, gmch_m: 0, gmch_n: 0, link_m: 0, link_n: 0, tu: 0
DRM debug in intel_dump_pipe_config: dp: 0, gmch_m: 0, gmch_n: 0, link_m: 0, link_n: 0, tu: 0
DRM debug in intel_dump_pipe_config: requested mode:
DRM debug in drm_mode_debug_printmodeline: Modeline 0:"1280x1024" 60 108000 1280 1328 1440 1688 1024 1025 1028 1066 0x40 0x5
DRM debug in intel_dump_pipe_config: adjusted mode:
DRM debug in drm_mode_debug_printmodeline: Modeline 0:"1280x1024" 60 108000 1280 1328 1440 1688 1024 1025 1028 1066 0x40 0x5
DRM debug in intel_dump_crtc_timings: crtc timings: 108000 1280 1328 1440 1688 1024 1025 1028 1066, type: 0x40 flags: 0x5
DRM debug in intel_dump_pipe_config: port clock: 108000
DRM debug in intel_dump_pipe_config: pipe src size: 1280x1024
DRM debug in intel_dump_pipe_config: gmch pfit: control: 0x00000000, ratios: 0x00000000, lvds border: 0x00000000
DRM debug in intel_dump_pipe_config: pch pfit: pos: 0x00000000, size: 0x00000000, disabled
DRM debug in intel_dump_pipe_config: ips: 0
DRM debug in intel_dump_pipe_config: double wide: 0
DRM debug in drm_calc_vbltimestamp_from_scanoutpos: crtc 0: Noop due to uninitialized mode.
DRM debug in drm_calc_timestamping_constants: crtc 5: hwmode: htotal 1688, vtotal 1066, vdisplay 1024
DRM debug in drm_calc_timestamping_constants: crtc 5: clock 108000 kHz framedur 16661185 linedur 15629, pixeldur 9
DRM debug in drm_vblank_get: enabling vblank on crtc 0, ret: -22
DRM debug in i9xx_update_primary_plane: Writing base 00060000 00000000 0 0 5120
DRM debug in intel_crtc_mode_set: [ENCODER:7:DAC-7] set [MODE:0:1280x1024]     
DRM debug in i845_get_fifo_size: FIFO size - (0x0000005f) A: 23           
DRM debug in intel_calculate_wm: FIFO entries required for mode: 68
DRM debug in intel_calculate_wm: FIFO watermark level: -47         
DRM debug in i845_update_wm: Setting FIFO watermarks - A: 1
DRM debug in intel_wait_for_vblank: vblank wait timed out  
DRM debug in intel_wait_for_vblank: vblank wait timed out
DRM debug in intel_connector_check_state: [CONNECTOR:6:VGA-1]
DRM debug in check_encoder_state: [ENCODER:7:DAC-7]          
DRM debug in check_crtc_state: [CRTC:5]            
DRM debug in drm_framebuffer_reference: FB ID: 33
wsdisplay0 at intelfb0 kbdmux 1                  
wsmux1: connecting to wsdisplay0
wskbd0: connecting to wsdisplay0
[...]
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com0: console                                              
vga0 at isa0 port 0x3b0-0x3df iomem 0xa0000-0xbffff
wsdisplay1 at vga0 kbdmux 1                        
wsmux1: connecting to wsdisplay1
vga0: WARNING: power management not supported
[...]
[startx]
DRM debug in i915_gem_open: 
DRM debug in intel_crtc_cursor_set: cursor off
DRM debug in intel_crtc_set_config: [CRTC:5] [FB:33] #connectors=1 (x y) (0 0)
DRM debug in intel_set_config_compute_mode_changes: computed changes for [CRTC:5], mode_changed=0, fb_changed=0
DRM debug in intel_modeset_stage_output_state: [CONNECTOR:6:VGA-1] to [CRTC:5]
DRM debug in drm_framebuffer_reference: FB ID: 33                             
DRM debug in drm_framebuffer_unreference: FB ID: 33
DRM debug in i915_gem_open:                        
DRM debug in drm_mode_getresources: CRTC[1] CONNECTORS[1] ENCODERS[1]
DRM debug in intel_crtc_cursor_set: cursor off                       
DRM debug in intel_crtc_set_config: [CRTC:5] [FB:33] #connectors=1 (x y) (0 0)
DRM debug in intel_set_config_compute_mode_changes: computed changes for [CRTC:5], mode_changed=0, fb_changed=0
DRM debug in intel_modeset_stage_output_state: [CONNECTOR:6:VGA-1] to [CRTC:5]
DRM debug in drm_framebuffer_reference: FB ID: 33                             
DRM debug in drm_framebuffer_unreference: FB ID: 33
DRM debug in i915_gem_open:                        
DRM debug in intel_crtc_cursor_set: cursor off
DRM debug in intel_crtc_set_config: [CRTC:5] [FB:33] #connectors=1 (x y) (0 0)
DRM debug in intel_set_config_compute_mode_changes: computed changes for [CRTC:5], mode_changed=0, fb_changed=0
DRM debug in intel_modeset_stage_output_state: [CONNECTOR:6:VGA-1] to [CRTC:5]
DRM debug in drm_framebuffer_reference: FB ID: 33                             
DRM debug in drm_framebuffer_unreference: FB ID: 33
DRM debug in i915_gem_open:                        
DRM debug in drm_mode_getresources: CRTC[1] CONNECTORS[1] ENCODERS[1]
DRM debug in drm_mode_getresources: CRTC[1] CONNECTORS[1] ENCODERS[1]
DRM debug in drm_mode_getresources: CRTC[1] CONNECTORS[1] ENCODERS[1]
DRM debug in drm_mode_getconnector: [CONNECTOR:6:?]                  
DRM debug in drm_helper_probe_single_connector_modes: [CONNECTOR:6:VGA-1]
DRM debug in intel_crt_detect: [CONNECTOR:6:VGA-1] force=1               
DRM debug in gmbus_xfer: GMBUS [i915 gmbus vga] NAK for addr: 0050 r(1)
DRM debug in drm_do_probe_ddc_edid: drm: skipping non-existent adapter i915 gmbus vga
DRM debug in intel_crt_get_edid: CRT GMBUS EDID read failed, retry using GPIO bit-banging
DRM debug in intel_gmbus_force_bit: enabling bit-banging on i915 gmbus vga. force bit now 1
DRM debug in intel_gmbus_force_bit: disabling bit-banging on i915 gmbus vga. force bit now 0
DRM debug in intel_crt_detect_ddc: CRT not detected via DDC:0x50 [no valid EDID found]
DRM debug in intel_get_load_detect_pipe: [CONNECTOR:6:VGA-1], [ENCODER:7:DAC-7]
DRM debug in gmbus_xfer: GMBUS [i915 gmbus vga] NAK for addr: 0050 r(1)        
DRM debug in drm_do_probe_ddc_edid: drm: skipping non-existent adapter i915 gmbus vga
DRM debug in intel_crt_get_edid: CRT GMBUS EDID read failed, retry using GPIO bit-banging
DRM debug in intel_gmbus_force_bit: enabling bit-banging on i915 gmbus vga. force bit now 1
DRM debug in intel_gmbus_force_bit: disabling bit-banging on i915 gmbus vga. force bit now 0
DRM debug in intel_crt_detect_ddc: CRT not detected via DDC:0x50 [no valid EDID found]
DRM debug in intel_crt_load_detect: starting load-detect on CRT
[spins here]
[BREAK sent]
fatal breakpoint trap in supervisor mode                      
trap type 1 code 0 eip c02a4044 cs 8 eflags 200202 cr2 dc673000 ilevel 8 esp dad2ef6c
curlwp 0xc3dfd540 pid 168 lid 1 lowest kstack 0xdc7402c0
Stopped in pid 168.1 (Xorg) at  netbsd:breakpoint+0x4:  popl    %ebp
db{0}> bt                                                           
breakpoint(c1012000,3f8,5,c10128c0,7,c10b94a0,c3bf78c8,c3bf7840,c3ac8000,c3e0edc
6) at netbsd:breakpoint+0x4                                                    
comintr(c3bf7788,dc742ca8,0,0,0,0,0,0,0,0) at netbsd:comintr+0x552
--- switch to interrupt stack ---                                 
Xintr_ioapic_edge11() at netbsd:Xintr_ioapic_edge11+0xb5
--- interrupt ---                                       
bus_space_read_4(c3580000,70000,0,1,1,401,0,42903ff,60010,0) at netbsd:bus_space
_read_4+0x13                                                                   
intel_crt_detect(c36b094c,1,6,c108db40,c02e2764,c3561140,6,dc742db4,c0c4f840,c35
6100c) at netbsd:intel_crt_detect+0x98c                                        
drm_helper_probe_single_connector_modes(c36b094c,800,800,c02fab7b,c36b094c,c3561
13c,c4d1df10,c4d1df10,1,2) at netbsd:drm_helper_probe_single_connector_modes+0x2
9b                                                                             
drm_mode_getconnector(c356100c,dc742eb0,c4d1df10,105,c453131c,1000,dc742f68,c04c
64a7,c451f3c0,dc742f3c) at netbsd:drm_mode_getconnector+0x333                  
drm_ioctl(c451f3c0,c04c64a7,dc742eb0,c420e8e0,c420e7e0,c420ea40,0,0,4c,0) at net
bsd:drm_ioctl+0x100                                                            
sys_ioctl(c3dfd540,dc742f68,dc742f60,bb307000,0,c1069ea8,dc742f68,0,0,a) at netb
sd:sys_ioctl+0x198                                                             
syscall() at netbsd:syscall+0x83
--- syscall (number 54) ---     
bb77af77:                  
db{0}> sh reg
ds          dad20010
es          c1000010    cfdata+0x3770
fs          c06a0030    sched_dequeue+0xdd
gs          10                            
edi         c3ac7066
esi         1       
ebp         dad2ef2c
ebx         c3bf7788
edx         100     
ecx         0  
eax         7f
eip         c02a4044    breakpoint+0x4
cs          8                         
eflags      200202
esp         dad2ef2c
ss          10      
netbsd:breakpoint+0x4:  popl    %ebp
db{0}>


I'll have to see about attaching a local disk for swap to try and
capture a crash dump when the console is on video.

>How-To-Repeat:
On i386 (amd64?) machine equipped with i82845G/GL (other i830-series?)
video hardware boot -current and attempt to start Xorg with either
no "xorg.conf" or one which specifies the "intel" driver.

>Fix:

>Release-Note:

>Audit-Trail:
From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/49707: i386 i915drmkms on 82845G/GL panic with Xorg intel
 driver
Date: Sun, 1 Mar 2015 17:50:39 -0600 (CST)

 After attaching a local disk, I started xorg with console on video.
 It panicked and successfully wrote a crash dump (and sucessfully recovered
 it on the next boot.

 Not sure if it's particularly helpful, but here it is:

 $ crash -M netbsd.0.core -N netbsd.0 
 Crash version 7.99.5, image version 7.99.5.
 System panicked: trap
 Backtrace from time of crash is available.
 crash> bt
 _KERNEL_OPT_NARCNET(0,104,c0712f66,8,c0ddec59,0,104,c0e7ceef,dc790ae8,dc790acc) a
 t 0
 saved_mii_get_descr.4247(104,0,c0e7ceef,dc790ae8,c3e017e0,6,dc790b74,dc790adc,c0
 97761a,c0e7ceef) at dc790ae8
 vpanic(c0e7ceef,dc790ae8,dc790b68,c09d5f9a,c0e7ceef,dc790b74,dc790b74,1,dc78e2c0
 ,13246) at vpanic+0x131
 snprintf(c0e7ceef,dc790b74,dc790b74,1,dc78e2c0,13246,54,0,c3a81a00,c3c63000) at s
 nprintf
 trap_tss() at trap_tss
 --- trap via task gate ---
 _KERNEL_OPT_BEEP_ONHALT_COUNT+0x4:
 crash> sh reg
 ds          0
 es          0
 fs          0
 gs          0
 edi         0
 esi         0
 ebp         dc790aa8
 ebx         0
 edx         0
 ecx         0
 eax         0
 eip         0
 cs          0
 eflags      0
 esp         dc790a80
 ss          0
 crash: kvm_read(0x0, 1): invalid translation (invalid PTE)
 0:
 crash>

 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/49707: i386 i915drmkms on 82845G/GL panic with Xorg intel
 driver
Date: Tue, 7 Apr 2015 21:52:22 -0500 (CDT)

 I was briefly able to run the Xserver with the intel driver in 7.99.9.

 The machine had been running with the "wsfb" driver for several hours
 displaying the 'xdm' greeter widget (IIRC, "wsfb" used to be able to do
 DPMS screen blanking, but lately it cannot and the screen stays on all
 the time--not good for a CRT and probably not good for LCD either).  (I
 cannot turn the monitor off due to kern/49398.)

 To see if changes since my last post to this PR made any difference I
 logged in, logged out again, then stopped 'xdm' (and the Xserver) by
 pressing "Ctrl-R" three times at the login widget (why it insists on
 performing "finish-field" instead of terminating immediately I don't
 know).

 The display didn't revert to wscons screen 0 automatically, so I switched
 manually with "Ctrl-Alt-F1".  I moved the "/etc/X11/xorg.conf" file that
 specified the "wsfb" driver aside and started X manually:

   $ X -retro &

 It took a while and I was expecting the machine to reboot like it usually
 does, but after a few more seconds, the X display appeared!  With the
 foresight to push the server in the background, I was able to switch
 back to the original terminal and start a few clients and it worked
 quite nicely.

 Figuring that running with "wsfb" first might have caused some
 initialization to occur that was missed starting the intel driver, I
 stopped everything and rebooted the machine.

 Alas, I am unable to repeat this event.  I've tried staring the X server
 with the "wsfb" driver and then restarting without any config (autodetect
 intel driver), but doing so panics and reboots the machine as it has
 in the past.

 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/49707: i386 i915drmkms on 82845G/GL panic with Xorg intel
 driver
Date: Mon, 3 Aug 2015 12:05:25 -0500 (CDT)

 I was briefly able to run the Xserver with the intel driver in 7.99.20.

 I noted with interest the following commit:

   http://mail-index.netbsd.org/source-changes/2015/08/01/msg067839.html

 and the similarity of "kern/49875" to this one.

 Following an update, I ran:

   $ X &

 The machine switched virtual consoles and the "X" cursor appeared very
 quickly.  With the foresight to push the server in the background, I
 was able to switch back to the original terminal and start 'xterm'
 and it worked quite nicely, although cursor movement seemed to leave
 the bottom scan line behind for a second or so.

 When I stopped 'xterm' and its window closed, the root window behind it
 showed the classic "root weave" pattern as if "-retro" had been used.
 Staring a new 'xterm' and then 'twm', the weave pattern appeared in
 any region the terminal window vacated.

 Not thinking more of it, I stopped everything and re-launched X with

   $ startx -- -retro &

 which started the X server (with root weave retro pattern) followed by
 the clients started by my '.xinitrc' file (urxvt and fvwm2 plus
 accessories).  I stopped and started everything several times.  It seemed
 to work very well.

 Then I rebooted the machine.  I have not been able to start the X server
 since.  It switches wscons terminals but the display never appears.
 Switching back to the terminal from which it was started reveals:

   Bus error.

 The "Xorg.0.log" file:

 [    65.636] 
 X.Org X Server 1.10.6
 Release Date: 2011-07-08
 [    65.637] X Protocol Version 11, Revision 0
 [    65.637] Build Operating System: NetBSD/i386  - 
 [    65.637] Current Operating System: NetBSD gx260a 7.99.20 NetBSD 7.99.20 (GX260A) #7: Mon Aug  3 09:05:15 CDT 2015  sysop@verthandi.technoskunk.fur:/d0/build/current/obj/i386/sys/arch/i386/compile/GX260A i386
 [    65.671] Build Date: 01 August 2011  01:01:00AM
 [    65.671]  
 [    65.671] Current version of pixman: 0.32.6
 [    65.671] 	Before reporting problems, check http://wiki.X.Org
 	to make sure that you have the latest version.
 [    65.671] Markers: (--) probed, (**) from config file, (==) default setting,
 	(++) from command line, (!!) notice, (II) informational,
 	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
 [    65.672] (==) Log file: "/var/log/Xorg.0.log", Time: Mon Aug  3 11:35:27 2015
 [    65.697] (==) Using config file: "/etc/X11/xorg.conf"
 [    65.701] (==) No Layout section.  Using the first Screen section.
 [    65.701] (==) No screen section available. Using defaults.
 [    65.701] (**) |-->Screen "Default Screen Section" (0)
 [    65.701] (**) |   |-->Monitor "<default monitor>"
 [    65.703] (==) No monitor specified for screen "Default Screen Section".
 	Using a default monitor configuration.
 [    65.703] (**) Option "NoTrapSignals" "True"
 [    65.705] (==) Not automatically adding devices
 [    65.705] (==) Not automatically enabling devices
 [    65.717] (==) FontPath set to:
 	/usr/X11R7/lib/X11/fonts/misc/,
 	/usr/X11R7/lib/X11/fonts/TTF/,
 	/usr/X11R7/lib/X11/fonts/Type1/,
 	/usr/X11R7/lib/X11/fonts/75dpi/,
 	/usr/X11R7/lib/X11/fonts/100dpi/
 [    65.717] (==) ModulePath set to "/usr/X11R7/lib/modules"
 [    65.717] (==) |-->Input Device "<default pointer>"
 [    65.717] (==) |-->Input Device "<default keyboard>"
 [    65.717] (==) No Layout section. Using the default mouse configuration.
 [    65.717] (==) No Layout section. Using the default keyboard configuration.
 [    65.719] (II) Loader magic: 0x82726e0
 [    65.719] (II) Module ABI versions:
 [    65.719] 	X.Org ANSI C Emulation: 0.4
 [    65.719] 	X.Org Video Driver: 10.0
 [    65.719] 	X.Org XInput driver : 12.2
 [    65.719] 	X.Org Server Extension : 5.0
 [    65.737] (--) PCI:*(0:0:2:0) 8086:2562:1028:0126 rev 1, Mem @ 0xf0000000/134217728, 0xff680000/524288
 [    65.737] (II) LoadModule: "extmod"
 [    66.073] (II) Loading /usr/X11R7/lib/modules/extensions/libextmod.so
 [    66.081] (II) Module extmod: vendor="X.Org Foundation"
 [    66.081] 	compiled for 1.10.6, module version = 1.0.0
 [    66.081] 	Module class: X.Org Server Extension
 [    66.081] 	ABI class: X.Org Server Extension, version 5.0
 [    66.081] (II) Loading extension MIT-SCREEN-SAVER
 [    66.081] (II) Loading extension XFree86-VidModeExtension
 [    66.081] (II) Loading extension XFree86-DGA
 [    66.083] (II) Loading extension DPMS
 [    66.083] (II) Loading extension XVideo
 [    66.083] (II) Loading extension XVideo-MotionCompensation
 [    66.083] (II) Loading extension X-Resource
 [    66.083] (II) LoadModule: "dbe"
 [    66.094] (II) Loading /usr/X11R7/lib/modules/extensions/libdbe.so
 [    66.100] (II) Module dbe: vendor="X.Org Foundation"
 [    66.100] 	compiled for 1.10.6, module version = 1.0.0
 [    66.100] 	Module class: X.Org Server Extension
 [    66.100] 	ABI class: X.Org Server Extension, version 5.0
 [    66.100] (II) Loading extension DOUBLE-BUFFER
 [    66.100] (II) LoadModule: "glx"
 [    66.112] (II) Loading /usr/X11R7/lib/modules/extensions/libglx.so
 [    66.120] (II) Module glx: vendor="X.Org Foundation"
 [    66.121] 	compiled for 1.10.6, module version = 1.0.0
 [    66.121] 	ABI class: X.Org Server Extension, version 5.0
 [    66.123] (==) AIGLX enabled
 [    66.123] (II) Loading extension GLX
 [    66.123] (II) LoadModule: "record"
 [    66.141] (II) Loading /usr/X11R7/lib/modules/extensions/librecord.so
 [    66.146] (II) Module record: vendor="X.Org Foundation"
 [    66.146] 	compiled for 1.10.6, module version = 1.13.0
 [    66.146] 	Module class: X.Org Server Extension
 [    66.146] 	ABI class: X.Org Server Extension, version 5.0
 [    66.146] (II) Loading extension RECORD
 [    66.146] (II) LoadModule: "dri"
 [    66.158] (II) Loading /usr/X11R7/lib/modules/extensions/libdri.so
 [    66.165] (II) Module dri: vendor="X.Org Foundation"
 [    66.167] 	compiled for 1.10.6, module version = 1.0.0
 [    66.167] 	ABI class: X.Org Server Extension, version 5.0
 [    66.169] (II) Loading extension XFree86-DRI
 [    66.169] (II) LoadModule: "dri2"
 [    66.181] (II) Loading /usr/X11R7/lib/modules/extensions/libdri2.so
 [    66.186] (II) Module dri2: vendor="X.Org Foundation"
 [    66.186] 	compiled for 1.10.6, module version = 1.2.0
 [    66.186] 	ABI class: X.Org Server Extension, version 5.0
 [    66.188] (II) Loading extension DRI2
 [    66.190] (==) Matched intel as autoconfigured driver 0
 [    66.190] (==) Matched vesa as autoconfigured driver 1
 [    66.190] (==) Assigned the driver to the xf86ConfigLayout
 [    66.190] (II) LoadModule: "intel"
 [    66.197] (II) Loading /usr/X11R7/lib/modules/drivers/intel_drv.so
 [    66.221] (II) Module intel: vendor="X.Org Foundation"
 [    66.221] 	compiled for 1.10.6, module version = 2.99.917
 [    66.221] 	Module class: X.Org Video Driver
 [    66.221] 	ABI class: X.Org Video Driver, version 10.0
 [    66.224] (II) LoadModule: "vesa"
 [    66.232] (II) Loading /usr/X11R7/lib/modules/drivers/vesa_drv.so
 [    66.237] (II) Module vesa: vendor="X.Org Foundation"
 [    66.237] 	compiled for 1.10.6, module version = 2.3.4
 [    66.237] 	Module class: X.Org Video Driver
 [    66.237] 	ABI class: X.Org Video Driver, version 10.0
 [    66.237] (II) LoadModule: "mouse"
 [    66.244] (II) Loading /usr/X11R7/lib/modules/drivers/mouse_drv.so
 [    66.251] (II) Module mouse: vendor="X.Org Foundation"
 [    66.252] 	compiled for 1.10.6, module version = 1.9.1
 [    66.252] 	Module class: X.Org XInput Driver
 [    66.252] 	ABI class: X.Org XInput driver, version 12.2
 [    66.252] (II) LoadModule: "kbd"
 [    66.259] (II) Loading /usr/X11R7/lib/modules/drivers/kbd_drv.so
 [    66.264] (II) Module kbd: vendor="X.Org Foundation"
 [    66.264] 	compiled for 1.10.6, module version = 1.8.1
 [    66.264] 	Module class: X.Org XInput Driver
 [    66.264] 	ABI class: X.Org XInput driver, version 12.2
 [    66.264] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
 	i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
 	915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
 	Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
 	GM45, 4 Series, G45/G43, Q45/Q43, G41, B43
 [    66.265] (II) intel: Driver for Intel(R) HD Graphics: 2000-6000
 [    66.265] (II) intel: Driver for Intel(R) Iris(TM) Graphics: 5100, 6100
 [    66.265] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics: 5200, 6200, P6300
 [    66.265] (II) VESA: driver for VESA chipsets: vesa
 [    66.267] (--) Using wscons driver on /dev/ttyE4 in pcvt compatibility mode (version 3.32)
 [    66.267] (--) using VT number 5
 [    66.280] drmOpenDevice: node name is /dev/dri/card0
 [    66.284] drmOpenDevice: open result is 10, (OK)
 [    66.284] drmOpenByBusid: Searching for BusID pci:0000:00:02.0
 [    66.284] drmOpenDevice: node name is /dev/dri/card0
 [    66.287] drmOpenDevice: open result is 10, (OK)
 [    66.287] drmOpenByBusid: drmOpenMinor returns 10
 [    66.287] drmOpenByBusid: drmGetBusid reports pci:0000:00:02.0
 [    66.287] drmOpenDevice: node name is /dev/dri/card0
 [    66.290] drmOpenDevice: open result is 10, (OK)
 [    66.290] drmOpenByBusid: Searching for BusID pci:0000:00:02.0
 [    66.290] drmOpenDevice: node name is /dev/dri/card0
 [    66.293] drmOpenDevice: open result is 10, (OK)
 [    66.293] drmOpenByBusid: drmOpenMinor returns 10
 [    66.293] drmOpenByBusid: drmGetBusid reports pci:0000:00:02.0
 [    66.293] (II) Loading /usr/X11R7/lib/modules/drivers/intel_drv.so
 [    66.296] (II) intel(0): Using Kernel Mode Setting driver: i915, version 1.6.0 20080730
 [    66.298] (WW) Falling back to old probe method for vesa
 [    66.298] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
 [    66.303] (--) intel(0): Integrated Graphics Chipset: Intel(R) 845G
 [    66.303] (--) intel(0): CPU: x86, sse2
 [    66.303] (II) intel(0): Creating default Display subsection in Screen section
 	"Default Screen Section" for depth/fbbpp 24/32
 [    66.303] (==) intel(0): Depth 24, (--) framebuffer bpp 32
 [    66.303] (==) intel(0): RGB weight 888
 [    66.303] (==) intel(0): Default visual is TrueColor
 [    66.305] (WW) intel(0): Unable to reserve memory for GPU, disabling acceleration.
 [    66.313] (II) intel(0): Output VGA1 has no monitor section
 [    66.315] (II) intel(0): Enabled output VGA1
 [    66.316] (--) intel(0): Using a maximum size of 64x64 for hardware cursors
 [    66.316] (II) intel(0): Output VIRTUAL1 has no monitor section
 [    66.316] (II) intel(0): Enabled output VIRTUAL1
 [    66.316] (--) intel(0): Output VGA1 using initial mode 1280x1024 on pipe 0
 [    66.316] (==) intel(0): TearFree disabled
 [    66.316] (==) intel(0): DPI set to (96, 96)
 [    66.316] (II) Loading sub module "dri2"
 [    66.316] (II) LoadModule: "dri2"
 [    66.328] (II) Loading /usr/X11R7/lib/modules/extensions/libdri2.so
 [    66.329] (II) Module dri2: vendor="X.Org Foundation"
 [    66.329] 	compiled for 1.10.6, module version = 1.2.0
 [    66.329] 	ABI class: X.Org Server Extension, version 5.0
 [    66.329] (II) UnloadModule: "vesa"
 [    66.329] (II) Unloading vesa
 [    66.329] (==) Depth 24 pixmap format is 32 bpp
 [    66.342] (II) intel(0): SNA initialized with disabled backend
 [    66.343] (==) intel(0): Backing store disabled
 [    66.343] (==) intel(0): Silken mouse enabled
 [    66.350] (II) intel(0): HW Cursor enabled
 [    66.350] (II) intel(0): RandR 1.2 enabled, ignore the following RandR disabled message.
 [    66.353] (==) intel(0): DPMS enabled
 [    66.357] (II) intel(0): Textured video not supported on this hardware
 [    66.357] (WW) intel(0): loading DRI2 whilst the GPU is wedged.
 [    66.366] (II) intel(0): [DRI2] Setup complete
 [    66.366] (II) intel(0): [DRI2]   DRI driver: i915
 [    66.366] (II) intel(0): [DRI2]   VDPAU driver: i915
 [    66.366] (II) intel(0): direct rendering: DRI2 enabled
 [    66.366] (--) RandR disabled
 [    66.366] (II) Initializing built-in extension Generic Event Extension
 [    66.367] (II) Initializing built-in extension SHAPE
 [    66.367] (II) Initializing built-in extension MIT-SHM
 [    66.367] (II) Initializing built-in extension XInputExtension
 [    66.367] (II) Initializing built-in extension XTEST
 [    66.367] (II) Initializing built-in extension BIG-REQUESTS
 [    66.367] (II) Initializing built-in extension SYNC
 [    66.367] (II) Initializing built-in extension XKEYBOARD
 [    66.367] (II) Initializing built-in extension XC-MISC
 [    66.367] (II) Initializing built-in extension SECURITY
 [    66.367] (II) Initializing built-in extension XINERAMA
 [    66.367] (II) Initializing built-in extension XFIXES
 [    66.367] (II) Initializing built-in extension XFree86-Bigfont
 [    66.367] (II) Initializing built-in extension RENDER
 [    66.367] (II) Initializing built-in extension RANDR
 [    66.367] (II) Initializing built-in extension COMPOSITE
 [    66.367] (II) Initializing built-in extension DAMAGE
 [    66.602] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
 [    66.602] (II) AIGLX: enabled GLX_INTEL_swap_event
 [    66.602] (II) AIGLX: enabled GLX_SGI_swap_control and GLX_MESA_swap_control
 [    66.602] (II) AIGLX: GLX_EXT_texture_from_pixmap backed by buffer objects
 [    66.604] (II) AIGLX: Loaded and initialized /usr/X11R7/lib/modules/dri/i915_dri.so
 [    66.604] (II) GLX: Initialized DRI2 GL provider for screen 0
 ------------
 File ends here.

 The result is the same after rebooting several times.  Starting with
 the "wsfb" driver first has no effect.

 So, an improvement:  Starting X with the "intel" driver no-longer panics
 the machine, but is unlikely to produce a working display.

 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/49707: i386 i915drmkms on 82845G/GL panic with Xorg intel
 driver
Date: Mon, 24 Aug 2015 21:35:18 -0500 (CDT)

 On Mon, 3 Aug 2015, John D. Baker wrote:

 > Then I rebooted the machine.  I have not been able to start the X server
 > since.  It switches wscons terminals but the display never appears.
 > Switching back to the terminal from which it was started reveals:
 > 
 >   Bus error.

 Starting X under 'gdb' reveals:

 (gdb) run
 Starting program: /usr/X11R7/bin/X 

 X.Org X Server 1.10.6
 Release Date: 2011-07-08
 X Protocol Version 11, Revision 0
 Build Operating System: NetBSD/i386  - 
 Current Operating System: NetBSD gx260a 7.99.20 NetBSD 7.99.20 (GX260A) #9: Sat Aug 15 01:08:07 CDT 2015  sysop@verthandi.technoskunk.fur:/d0/build/current/obj/i386/sys/arch/i386/compile/GX260A i386
 Build Date: 01 August 2011  01:01:00AM

 Current version of pixman: 0.32.6
         Before reporting problems, check http://wiki.X.Org
         to make sure that you have the latest version.
 Markers: (--) probed, (**) from config file, (==) default setting,
         (++) from command line, (!!) notice, (II) informational,
         (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
 (==) Log file: "/var/log/Xorg.0.log", Time: Mon Aug 24 21:08:35 2015
 (==) Using config file: "/etc/X11/xorg.conf"

 Program received signal SIGBUS, Bus error.
 [Switching to LWP 1]
 0xbb29eab0 in ?? () from /usr/X11R7/lib/modules/drivers/intel_drv.so
 (gdb) bt
 #0  0xbb29eab0 in ?? () from /usr/X11R7/lib/modules/drivers/intel_drv.so
 #1  0xbb29f9ea in kgem_create_2d ()
    from /usr/X11R7/lib/modules/drivers/intel_drv.so
 #2  0xbb2147c3 in ?? () from /usr/X11R7/lib/modules/drivers/intel_drv.so
 #3  0xbb225bb7 in sna_pixmap_move_to_gpu ()
    from /usr/X11R7/lib/modules/drivers/intel_drv.so
 #4  0xbb1f36a1 in ?? () from /usr/X11R7/lib/modules/drivers/intel_drv.so
 #5  0x080ddaad in ?? ()
 #6  0x081ec7d4 in main ()

 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

Responsible-Changed-From-To: kern-bug-people->riastradh
Responsible-Changed-By: riastradh@NetBSD.org
Responsible-Changed-When: Mon, 07 Sep 2015 02:30:33 +0000
Responsible-Changed-Why:
mine


State-Changed-From-To: open->feedback
State-Changed-By: riastradh@NetBSD.org
State-Changed-When: Tue, 13 Oct 2015 01:20:59 +0000
State-Changed-Why:
feedback requested


From: Taylor R Campbell <riastradh@NetBSD.org>
To: gnats-bugs@NetBSD.org, gnats-admin@NetBSD.org, netbsd-bugs@NetBSD.org
Cc: 
Subject: Re: kern/49707: i386 i915drmkms on 82845G/GL panic with Xorg intel driver
Date: Tue, 13 Oct 2015 01:20:27 +0000

 Any chance you could run X with debugging symbols?

From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/49707 (i386 i915drmkms on 82845G/GL panic with Xorg intel
 driver)
Date: Mon, 12 Oct 2015 20:40:53 -0500 (CDT)

 On Tue, 13 Oct 2015, riastradh@NetBSD.org wrote:

 > Synopsis: i386 i915drmkms on 82845G/GL panic with Xorg intel driver
 > 
 > State-Changed-Why:
 > feedback requested

 As noted in:

   http://mail-index.netbsd.org/netbsd-bugs/2015/08/03/msg041913.html

 and subsequent postings, starting X no-longer panics the machine but
 instead causes the X server to crash with Bus Error.  It has been observed
 to work on rare occasions, but it seems pure chance that it does.  When
 it does, it does so repeatably but following a reboot it will once again
 crash with Bus Error.

 I noticed some recent commits to i915drm and related items.  I am in
 the process of updating and building and will post the results soon.

 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/49707: i386 i915drmkms on 82845G/GL panic with Xorg intel
 driver
Date: Mon, 12 Oct 2015 20:57:00 -0500 (CDT)

 On Tue, 13 Oct 2015, Taylor R Campbell wrote:

 >  Any chance you could run X with debugging symbols?

 That would be "-V MKDEBUG=yes", correct?  Symbol table information
 collected in the resulting "/usr/libdata/xdebug.tgz", correct?

 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

From: Taylor R Campbell <riastradh@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc: gnats-admin@netbsd.org, netbsd-bugs@netbsd.org, jdbaker@mylinuxisp.com
Subject: Re: kern/49707: i386 i915drmkms on 82845G/GL panic with Xorg intel
	driver
Date: Tue, 13 Oct 2015 02:30:30 +0000

    Date: Mon, 12 Oct 2015 20:57:00 -0500 (CDT)
    From: "John D. Baker" <jdbaker@mylinuxisp.com>

    On Tue, 13 Oct 2015, Taylor R Campbell wrote:

    >  Any chance you could run X with debugging symbols?

    That would be "-V MKDEBUG=yes", correct?  Symbol table information
    collected in the resulting "/usr/libdata/xdebug.tgz", correct?

 `-V MKDEBUG=yes' for build.sh is correct.  The symbol table
 information is stored under /usr/libdata/debug, which is distributed
 in the xdebug.tgz set.

From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/49707: i386 i915drmkms on 82845G/GL panic with Xorg intel
 driver
Date: Mon, 12 Oct 2015 23:51:50 -0500 (CDT)

 On Tue, 13 Oct 2015, Taylor R Campbell wrote:

 >  Any chance you could run X with debugging symbols?

 I rebuilt with MKDEBUG=yes (and MKDEBUG_LIB=yes, just in case).  I presume
 I would issue something like:

   # gdb -s /usr/libdata/debug/usr/X11R7/bin/Xorg.debug -e /usr/X11R7/bin/Xorg

 In any event, I tried that, and 'gdb' claimed there were no debugging
 symbols found.  Running X still ends in Bus Error and the output is the
 same as my previous post on the matter.

 I suppose I need to do a non-update build if I've not built with
 MKDEBUG=yes before?  I'm doing that now.  It will take some time.

 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

From: matthew green <mrg@eterna.com.au>
To: gnats-bugs@NetBSD.org
Cc: riastradh@NetBSD.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org,
    jdbaker@mylinuxisp.com
Subject: re: kern/49707: i386 i915drmkms on 82845G/GL panic with Xorg intel driver
Date: Tue, 13 Oct 2015 17:55:41 +1100

 >  I rebuilt with MKDEBUG=3Dyes (and MKDEBUG_LIB=3Dyes, just in case).  I =
 presume
 >  I would issue something like:
 >  =

 >    # gdb -s /usr/libdata/debug/usr/X11R7/bin/Xorg.debug -e /usr/X11R7/bi=
 n/Xorg

 you shouldn't need to specify the debug info file directly, it should
 be referenced such that GDB will find it.

 >  In any event, I tried that, and 'gdb' claimed there were no debugging
 >  symbols found.  Running X still ends in Bus Error and the output is the
 >  same as my previous post on the matter.
 >  =

 >  I suppose I need to do a non-update build if I've not built with
 >  MKDEBUG=3Dyes before?  I'm doing that now.  It will take some time.

 another method is to set "DBG=3D-g -O2" in mk.conf or environment when
 building (without MKDEBUG).  this leaves full debugging info in the
 normal binaries..

 i don't know what's wrong that it isn't working yet, but either try
 using gdb normally, or, try building with DBG as above.


 .mrg.

From: Taylor R Campbell <riastradh@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc: gnats-admin@netbsd.org, netbsd-bugs@netbsd.org, jdbaker@mylinuxisp.com
Subject: Re: kern/49707: i386 i915drmkms on 82845G/GL panic with Xorg intel driver
Date: Tue, 13 Oct 2015 12:06:27 +0000

    Date: Mon, 12 Oct 2015 23:51:50 -0500 (CDT)
    From: "John D. Baker" <jdbaker@mylinuxisp.com>

    I suppose I need to do a non-update build if I've not built with
    MKDEBUG=yes before?  I'm doing that now.  It will take some time.

 Yes, more or less.  It's sufficient to delete the objdirs for Xorg and
 any of its libraries, but easier to rebuild everything.

From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/49707: i386 i915drmkms on 82845G/GL panic with Xorg intel
 driver
Date: Tue, 13 Oct 2015 14:40:15 -0500 (CDT)

 On Tue, 13 Oct 2015, Taylor R Campbell wrote:

 >  Any chance you could run X with debugging symbols?

 The non-update build did the trick.  'gdb' session as follows:

 [...]
 Reading symbols from X...Reading symbols from /usr/libdata/debug//usr/X11R7/bin/Xorg.debug...done.
 done.
 (gdb) run
 Starting program: /usr/X11R7/bin/X 

 X.Org X Server 1.10.6
 Release Date: 2011-07-08
 X Protocol Version 11, Revision 0
 Build Operating System: NetBSD/i386  - 
 Current Operating System: NetBSD gx260a 7.99.21 NetBSD 7.99.21 (GX260A) #31: Tue Oct 13 11:44:39 CDT 2015  sysop@skuld.technoskunk.fur:/d0/build/current/obj/i386/sys/arch/i386/compile/GX260A i386
 Build Date: 01 August 2011  01:01:00AM

 Current version of pixman: 0.32.6
         Before reporting problems, check http://wiki.X.Org
         to make sure that you have the latest version.
 Markers: (--) probed, (**) from config file, (==) default setting,
         (++) from command line, (!!) notice, (II) informational,
         (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
 (==) Log file: "/var/log/Xorg.0.log", Time: Tue Oct 13 14:32:43 2015
 (==) Using config file: "/etc/X11/xorg.conf"

 Program received signal SIGBUS, Bus error.
 [Switching to LWP 1]
 0xbb297ab0 in __kgem_bo_make_scanout (kgem=kgem@entry=0xbb353000, 
     bo=bo@entry=0xba927470, width=width@entry=1280, height=height@entry=1024)
     at /x/current/src/../xsrc/external/mit/xf86-video-intel/dist/src/sna/kgem.c:4799
 4799                            *(uint32_t *)bo->map__gtt = 0;
 (gdb) bt
 #0  0xbb297ab0 in __kgem_bo_make_scanout (kgem=kgem@entry=0xbb353000, 
     bo=bo@entry=0xba927470, width=width@entry=1280, height=height@entry=1024)
     at /x/current/src/../xsrc/external/mit/xf86-video-intel/dist/src/sna/kgem.c:4799
 #1  0xbb2989ea in kgem_create_2d (kgem=kgem@entry=0xbb353000, width=1280, 
     height=1024, bpp=32, tiling=1, flags=530, flags@entry=16)
     at /x/current/src/../xsrc/external/mit/xf86-video-intel/dist/src/sna/kgem.c:5448
 #2  0xbb20d7c3 in sna_pixmap_alloc_gpu (sna=sna@entry=0xbb353000, 
     pixmap=pixmap@entry=0xbb311560, flags=16, priv=<optimized out>)
     at /x/current/src/../xsrc/external/mit/xf86-video-intel/dist/src/sna/sna_accel.c:1636
 #3  0xbb21ebb7 in sna_pixmap_move_to_gpu (pixmap=pixmap@entry=0xbb311560, 
     flags=flags@entry=322)
     at /x/current/src/../xsrc/external/mit/xf86-video-intel/dist/src/sna/sna_accel.c:4211
 #4  0xbb1ec6a1 in sna_pixmap_force_to_gpu (flags=258, pixmap=0xbb311560)
     at /x/current/src/../xsrc/external/mit/xf86-video-intel/dist/src/sna/sna.h:722
 #5  sna_create_screen_resources (screen=0xbb316240)
     at /x/current/src/../xsrc/external/mit/xf86-video-intel/dist/src/sna/sna_driver.c:256
 #6  0x080ddaad in ?? ()
 #7  0x081ec7d4 in main ()
 (gdb) 

 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/49707: i386 i915drmkms on 82845G/GL panic with Xorg intel
 driver
Date: Sun, 31 Jan 2016 02:47:11 -0600 (CST)

 I had occasion to try modular/pkgsrc Xorg.  It behaves the same: Bus error.
 Although I built the server with the "debug" option, it doesn't sseem
 to have any debugging symbols.  The backtrace from 'gdb' seems to be
 otherwise consistent with the "native" Xorg.

 # gdb X
 GNU gdb (GDB) 7.9.1
 Copyright (C) 2015 Free Software Foundation, Inc.
 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
 This is free software: you are free to change and redistribute it.
 There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
 and "show warranty" for details.
 This GDB was configured as "i486--netbsdelf".
 Type "show configuration" for configuration details.
 For bug reporting instructions, please see:
 <http://www.gnu.org/software/gdb/bugs/>.
 Find the GDB manual and other documentation resources online at:
 <http://www.gnu.org/software/gdb/documentation/>.
 For help, type "help".
 Type "apropos word" to search for commands related to "word"...
 Reading symbols from X...(no debugging symbols found)...done.
 (gdb) run
 Starting program: /usr/pkg/bin/X 
 InitConnectionLimits: MaxClients = 256

 X.Org X Server 1.17.4
 Release Date: 2015-10-28
 X Protocol Version 11, Revision 0
 Build Operating System: NetBSD-7.99.26-i386 The NetBSD Foundation
 Current Operating System: NetBSD gx260a 7.99.26 NetBSD 7.99.26 (GX260A) #28: Sat Jan 30 16:35:34 CST 2016  sysop@x3650.technoskunk.fur:/r0/build/nbsd-tst/obj/i386/sys/arch/i386/compile/GX260A i386
 Build Date: 30 January 2016  10:50:27PM

 Current version of pixman: 0.32.8
         Before reporting problems, check http://wiki.x.org
         to make sure that you have the latest version.
 Markers: (--) probed, (**) from config file, (==) default setting,
         (++) from command line, (!!) notice, (II) informational,
         (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
 (==) Log file: "/var/log/Xorg.0.log", Time: Sun Jan 31 02:29:15 2016
 Converted `%D/X11/%X' to `/usr/pkg/share/X11/xorg.conf.d'
 Converted `/etc/X11/%X' to `/etc/X11/xorg.conf.d'
 Converted `%C/X11/%X' to `/usr/pkg/etc/X11/xorg.conf.d'
 Converted `/etc/X11/%X' to `/etc/X11/xorg.conf'
 (==) Using config file: "/etc/X11/xorg.conf"
 (==) Using system config directory "/usr/pkg/share/X11/xorg.conf.d"
 LoaderOpen(/usr/pkg/lib/xorg/modules/extensions/libglx.so)
 LoaderOpen(/usr/pkg/lib/xorg/modules/drivers/intel_drv.so)
 LoaderOpen(/usr/pkg/lib/xorg/modules/drivers/fbdev_drv.so)
 LoaderOpen(/usr/pkg/lib/xorg/modules/drivers/vesa_drv.so)
 LoaderOpen(/usr/pkg/lib/xorg/modules/input/mouse_drv.so)
 LoaderOpen(/usr/pkg/lib/xorg/modules/input/kbd_drv.so)
 intel: card at 0:2:0 is claimed by a Device section
 LoaderOpen(/usr/pkg/lib/xorg/modules/libfbdevhw.so)
 xf86RegisterRootWindowProperty(0, 69, 19, 32, 1, 0xbb70b108)
 new property filled
 creating xf86RegisteredPropertiesTable[] size 1
 xf86RegisteredPropertiesTable 0xbb713f40
 xf86RegisteredPropertiesTable[0] 0x0
 xf86RegisterRootWindowProperty succeeded
 xf86RegisterRootWindowProperty(0, 70, 19, 32, 1, 0x824e778)
 new property filled
 xf86RegisteredPropertiesTable 0xbb713f40
 xf86RegisteredPropertiesTable[0] 0xbb713f20
 xf86RegisterRootWindowProperty succeeded
 InitOutput - xf86Screens[0]->pScreen = 0xbb76c000
 xf86Screens[0]->pScreen->CreateWindow = 0xbb322620
 Sync Extension 3.1
 XFree86VidModeExtensionInit
 warning: Temporarily disabling breakpoints for unloaded shared library "/usr/pkg/lib/libLLVM/libLLVM-3.7.so"

 Program received signal SIGBUS, Bus error.
 [Switching to LWP 1]
 0xbb31a7b0 in __kgem_bo_make_scanout ()
    from /usr/pkg/lib/xorg/modules/drivers/intel_drv.so
 (gdb) bt
 #0  0xbb31a7b0 in __kgem_bo_make_scanout ()
    from /usr/pkg/lib/xorg/modules/drivers/intel_drv.so
 #1  0xbb31b6ea in kgem_create_2d ()
    from /usr/pkg/lib/xorg/modules/drivers/intel_drv.so
 #2  0xbb323d94 in sna_pixmap_alloc_gpu.isra ()
    from /usr/pkg/lib/xorg/modules/drivers/intel_drv.so
 #3  0xbb335537 in sna_pixmap_move_to_gpu ()
    from /usr/pkg/lib/xorg/modules/drivers/intel_drv.so
 #4  0xbb3661c1 in sna_create_screen_resources ()
    from /usr/pkg/lib/xorg/modules/drivers/intel_drv.so
 #5  0x080e4d3e in ?? ()
 #6  0x08079c29 in ?? ()
 #7  0x081d7a76 in ?? ()
 #8  0x08064da4 in _start ()
 (gdb) 

 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: riastradh@NetBSD.org
Subject: Re: kern/49707: i386 i915drmkms on 82845G/GL panic with Xorg intel
 driver
Date: Sun, 31 Jan 2016 05:46:25 -0600 (CST)

 On Sun, 31 Jan 2016, John D. Baker wrote:

 > I had occasion to try modular/pkgsrc Xorg.  It behaves the same: Bus
 > error.  Although I built the server with the "debug" option, it doesn't
 > sseem to have any debugging symbols.  The backtrace from 'gdb' seems
 > to be otherwise consistent with the "native" Xorg.

 I rebuilt "modular-xorg-server" and "xf86-video-intel" with:

   CFLAGS+=	-g -O2

 I didn't get any more debugging symbols, but the resulting Xserver
 doesn't crash.  An initial trial under 'gdb' seemed not to produce a
 working display.  The screen was blank (the wscons cursor was not visible)
 but there was no X cursor.  Attempting to switch virtual terminals
 appeared not to work.  It reported receiving "SIGUSR1".

 Later, running 'X' normally, with the "-retro" option displayed the
 "root weave" pattern, and opening 'xterm -display :0' worked.

 So, Heisenbug?

 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: riastradh@NetBSD.org
Subject: Re: kern/49707: i386 i915drmkms on 82845G/GL panic with Xorg intel
 driver
Date: Sun, 31 Jan 2016 05:56:14 -0600 (CST)

 On Sun, 31 Jan 2016, John D. Baker wrote:

 >  I didn't get any more debugging symbols, but the resulting Xserver
 >  doesn't crash.  An initial trial under 'gdb' seemed not to produce a
 >  working display.  The screen was blank (the wscons cursor was not visible)
 >  but there was no X cursor.  Attempting to switch virtual terminals
 >  appeared not to work.  It reported receiving "SIGUSR1".
 >  
 >  Later, running 'X' normally, with the "-retro" option displayed the
 >  "root weave" pattern, and opening 'xterm -display :0' worked.

 Nevermind.  It was one of those rare flukes where it sponaneously started
 working.  After rebooting the machine, it crashes with Bus Error the
 same as before.  There's a little more debug information, but not much:

 (gdb) bt
 #0  0xbb31a7b0 in __kgem_bo_make_scanout (kgem=kgem@entry=0xbb787000, 
     bo=bo@entry=0xbb1c54e0, width=width@entry=1280, height=height@entry=1024)
     at kgem.c:4799
 #1  0xbb31b6ea in kgem_create_2d (kgem=kgem@entry=0xbb787000, width=1280, 
     height=1024, bpp=32, tiling=1, flags=530, flags@entry=16) at kgem.c:5448
 #2  0xbb323d94 in sna_pixmap_alloc_gpu (sna=sna@entry=0xbb787000, 
     pixmap=pixmap@entry=0xbb780740, flags=16, priv=<optimized out>)
     at sna_accel.c:1636
 #3  0xbb335537 in sna_pixmap_move_to_gpu (pixmap=pixmap@entry=0xbb780740, 
     flags=flags@entry=322) at sna_accel.c:4211
 #4  0xbb3661c1 in sna_pixmap_force_to_gpu (flags=258, pixmap=0xbb780740)
     at sna.h:722
 #5  sna_create_screen_resources (screen=0xbb76c000) at sna_driver.c:256
 #6  0x080e4d3e in ?? ()
 #7  0x08079c29 in ?? ()
 #8  0x081d7a76 in ?? ()
 #9  0x08064da4 in _start ()


 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

From: mlelstv@serpens.de (Michael van Elst)
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: kern/49707: i386 i915drmkms on 82845G/GL panic with Xorg intel driver
Date: Sun, 31 Jan 2016 12:51:40 +0000 (UTC)

 jdbaker@mylinuxisp.com ("John D. Baker") writes:

 > Nevermind.  It was one of those rare flukes where it sponaneously started
 > working.  After rebooting the machine, it crashes with Bus Error the
 > same as before.

 How do you start X after a reboot?

 If that's from xdm run from the rc scripts. Does the crash happen
 when you start it later, even with '/etc/rc.d/xdm onestart' ?

 -- 
 -- 
                                 Michael van Elst
 Internet: mlelstv@serpens.de
                                 "A potential Snark may lurk in every tree."

From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: riastradh@NetBSD.org
Subject: Re: kern/49707: i386 i915drmkms on 82845G/GL panic with Xorg intel
 driver
Date: Sun, 31 Jan 2016 07:44:03 -0600 (CST)

 On Sun, 31 Jan 2016, Michael van Elst wrote:

 >  jdbaker@mylinuxisp.com ("John D. Baker") writes:
 >  
 >  > Nevermind.  It was one of those rare flukes where it sponaneously started
 >  > working.  After rebooting the machine, it crashes with Bus Error the
 >  > same as before.
 >  
 >  How do you start X after a reboot?

 On this machine, starting the X server is completely manual since it's
 pointless to do otherwise until the cause of the crashing can be fixed.

 So, most commonly:

   $ X -retro &

 or, if I'm feeling hopeful:

   $ startx -- -retro &

 or, for debugging, via SSH:

   $ sudo gdb X
   (gdb) run


 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/49707: i386 i915drmkms on 82845G/GL panic with Xorg intel
 driver
Date: Thu, 10 Mar 2016 18:48:27 -0600 (CST)

 As of 10 March with sources from around 201603100400Z, the behavior
 with pkgsrc Xorg (pkgsrc-2015Q4) is the same as previously posted.

 Likewise, the results of "native" Xorg are the same as the time
 previously posted (13 Oct 2015).

 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

Responsible-Changed-From-To: riastradh->open
Responsible-Changed-By: dholland@NetBSD.org
Responsible-Changed-When: Fri, 30 Sep 2016 07:45:52 +0000
Responsible-Changed-Why:
there have been several rounds of feedback


Responsible-Changed-From-To: open->riastradh
Responsible-Changed-By: maya@NetBSD.org
Responsible-Changed-When: Fri, 30 Sep 2016 07:47:22 +0000
Responsible-Changed-Why:
wrong field


State-Changed-From-To: feedback->open
State-Changed-By: maya@NetBSD.org
State-Changed-When: Fri, 30 Sep 2016 07:47:22 +0000
State-Changed-Why:
wrong field


From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/49707: i386 i915drmkms on 82845G/GL panic with Xorg intel
 driver
Date: Tue, 18 Oct 2016 17:52:15 -0500 (CDT)

 Now that many updates have been made to the xsrc tree--particularly
 Xorg xserver 1.18.4, I decided to see what impact it had on this PR.

 With sources of about 201610181318Z:

 NetBSD gx260a 7.99.39 NetBSD 7.99.39 (GX260A) #0: Tue Oct 18 13:17:59 CDT 2016  sysop@dpe2850b.technoskunk.fur:/d0/build/current/obj/i386/sys/arch/i386/compile/GX260A i386

 Starting X incurs a bus error the same as before:

 $ X

 X.Org X Server 1.18.4
 Release Date: 2016-07-19
 X Protocol Version 11, Revision 0
 Build Operating System: NetBSD/i386  - 
 Current Operating System: NetBSD gx260a 7.99.39 NetBSD 7.99.39 (GX260A) #0: Tue Oct 18 13:17:59 CDT 2016  sysop@dpe2850b.technoskunk.fur:/d0/build/current/obj/i386/sys/arch/i386/compile/GX260A i386
 Build Date: 14 August 2016  01:29:29AM

 Current version of pixman: 0.32.6
         Before reporting problems, check http://wiki.X.Org
         to make sure that you have the latest version.
 Markers: (--) probed, (**) from config file, (==) default setting,
         (++) from command line, (!!) notice, (II) informational,
         (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
 (==) Log file: "/var/log/Xorg.0.log", Time: Tue Oct 18 17:32:01 2016
 (==) Using config file: "/etc/X11/xorg.conf"
 Bus error 


 Running under 'gdb':

 Program received signal SIGBUS, Bus error.
 [Switching to LWP 1]
 0xaac9c3b1 in __kgem_bo_make_scanout (kgem=0xaad9f000, bo=0xaaaa9550, 
     width=1280, height=1024)
     at /x/current/src/../xsrc/external/mit/xf86-video-intel/dist/src/sna/kgem.c:4799
 4799                            *(uint32_t *)bo->map__gtt = 0;
 (gdb) bt
 #0  0xaac9c3b1 in __kgem_bo_make_scanout (kgem=0xaad9f000, bo=0xaaaa9550, 
     width=1280, height=1024)
     at /x/current/src/../xsrc/external/mit/xf86-video-intel/dist/src/sna/kgem.c:4799
 #1  0xaac9d93b in kgem_create_2d (kgem=0xaad9f000, width=1280, height=1024, 
     bpp=32, tiling=1, flags=530)
     at /x/current/src/../xsrc/external/mit/xf86-video-intel/dist/src/sna/kgem.c:5448
 #2  0xaabf6a42 in sna_pixmap_alloc_gpu (sna=0xaad9f000, pixmap=0xaad806a0, 
     priv=0xaadf9e40, flags=16)
     at /x/current/src/../xsrc/external/mit/xf86-video-intel/dist/src/sna/sna_accel.c:1636
 #3  0xaabfba4d in sna_pixmap_move_to_gpu (pixmap=0xaad806a0, flags=322)
     at /x/current/src/../xsrc/external/mit/xf86-video-intel/dist/src/sna/sna_accel.c:4211
 #4  0xaabca09b in sna_pixmap_force_to_gpu (pixmap=0xaad806a0, flags=258)
     at /x/current/src/../xsrc/external/mit/xf86-video-intel/dist/src/sna/sna.h:722
 #5  0xaabca8e3 in sna_create_screen_resources (screen=0xaad20400)
     at /x/current/src/../xsrc/external/mit/xf86-video-intel/dist/src/sna/sna_driver.c:256
 #6  0x00d7018b in xf86CrtcCreateScreenResources (screen=0xaad20400)
     at /x/current/src/../xsrc/external/mit/xorg-server/dist/hw/xfree86/modes/xf86Crtc.c:716
 #7  0x00c94088 in dix_main (argc=1, argv=0xbfb84048, envp=0xbfb84050)
     at /x/current/src/../xsrc/external/mit/xorg-server/dist/dix/main.c:225
 #8  0x00c93d05 in main (argc=1, argv=0xbfb84048, envp=0xbfb84050)
     at /x/current/src/../xsrc/external/mit/xorg-server/dist/dix/stubmain.c:34


 So, it appears there is no change.

 Also, perhaps this PR should be re-categorized from "kern" to "xsrc".
 The original problem of panicking upon starting the X server with the
 "intel" driver seems no-longer to occur.  Instead, we get bus error.
 as noted above and previously.

 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

From: matthew green <mrg@eterna.com.au>
To: gnats-bugs@NetBSD.org
Cc: riastradh@NetBSD.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org,
    jdbaker@mylinuxisp.com
Subject: re: kern/49707: i386 i915drmkms on 82845G/GL panic with Xorg intel driver
Date: Wed, 19 Oct 2016 16:17:48 +1100

 >  Program received signal SIGBUS, Bus error.
 >  [Switching to LWP 1]
 >  0xaac9c3b1 in __kgem_bo_make_scanout (kgem=3D0xaad9f000, bo=3D0xaaaa955=
 0, =

 >      width=3D1280, height=3D1024)
 >      at /x/current/src/../xsrc/external/mit/xf86-video-intel/dist/src/sn=
 a/kgem.c:4799
 >  4799                            *(uint32_t *)bo->map__gtt =3D 0;
 >  (gdb) bt

 can you try "p *bo" here?  also "p bo->map__gtt".

 thanks.


 .mrg.

From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: re: kern/49707: i386 i915drmkms on 82845G/GL panic with Xorg intel
 driver
Date: Wed, 19 Oct 2016 16:24:20 -0500 (CDT)

 On Wed, 19 Oct 2016, matthew green wrote:

 > >  0xaac9c3b1 in __kgem_bo_make_scanout (kgem=0xaad9f000, bo=0xaaaa9550, 
 > >      width=1280, height=1024)
 > >      at /x/current/src/../xsrc/external/mit/xf86-video-intel/dist/src/sna/kgem.c:4799
 > >  4799                            *(uint32_t *)bo->map__gtt = 0;
 > >  (gdb) bt
 > 
 > can you try "p *bo" here?  also "p bo->map__gtt".

 (gdb) p *bo
 $1 = {rq = 0x0, exec = 0x0, proxy = 0x0, list = {next = 0xb65a955c, 
     prev = 0xb65a955c}, request = {next = 0xb65a9564, prev = 0xb65a9564}, 
   vma = {next = 0xb65a956c, prev = 0xb65a956c}, map__cpu = 0x0, 
   map__gtt = 0xb562a000, map__wc = 0x0, binding = {next = 0x0, format = 0, 
     offset = 0}, presumed_offset = 0, unique_id = 266, refcnt = 1, 
   handle = 26, target_handle = 4294967295, delta = 0, active_scanout = 0, 
   size = {pages = {count = 2048, bucket = 11}, bytes = 1476397056}, 
   pitch = 8192, tiling = 1, reusable = 1, gpu_dirty = 0, gtt_dirty = 0, 
   domain = 1, needs_flush = 0, snoop = 0, io = 0, flush = 0, scanout = 1, 
   prime = 0, purged = 0}

 (gdb) p bo->map__gtt
 $2 = (void *) 0xb562a000

 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

From: "John D. Baker" <jdbaker@consolidated.net>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/49707: i386 i915drmkms on 82845G/GL panic with Xorg intel
 driver
Date: Thu, 30 Apr 2020 00:40:03 -0500 (CDT)

 After nearly four years, I've finally had opportunity to test the target
 machine of this PR again.  In that time, changes to i915drmkms and/or
 Xorg/intel driver seem to have overcome this problem (9.99.59).  The
 target machine seems to run Xorg without issues, no "xorg.conf" needed.
 If one wants intel XvMC enabled, an "xorg.conf" file will be required.

 The only mention of any acceleration for the device is:

   composite (RENDER acceleration)


 I'll try again after the next build of -current but it looks like this
 PR may finally be closed.

 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]consolidated[flyspeck]net  OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

From: "John D. Baker" <jdbaker@consolidated.net>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/49707: i386 i915drmkms on 82845G/GL panic with Xorg intel
 driver
Date: Fri, 1 May 2020 00:21:01 -0500 (CDT)

 On Thu, 30 Apr 2020, John D. Baker wrote:

 > I'll try again after the next build of -current but it looks like this
 > PR may finally be closed.

 Yes, the i82845 integrated graphics device now works very well with Xorg.
 It even works properly with SNA w/o TearFree (relevant to another PR).

 This PR may be closed.

 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]consolidated[flyspeck]net  OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

State-Changed-From-To: open->closed
State-Changed-By: mrg@NetBSD.org
State-Changed-When: Fri, 01 May 2020 05:42:03 +0000
State-Changed-Why:
submitter reports problem is resolved. thanks!


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.