Re: i386 i915drmkms on i82845G/GL
John D. Baker jdba...@mylinuxisp.com wrote: On Sat, 14 Feb 2015, Ryo ONODERA wrote: My laptop has 8086/0a16, and Option AccelMethod SNA make my native X.org stable. The Dell Optiplex GX260 has: $ pcictl pci0 list -n [...] 000:02:0: 0x25628086 (0x0301) [...] $ pcictl pci0 list [...] 000:02:0: Intel 82845G/GL Integrated Graphics Device (VGA display, revision 0x01) [...] Can you set up a serial console on this ?
latest i386 radeondrmkms trials
Using a netbsd-7 kernel based on DRMKMS, but with pcdisplay and vga0 at isa disabled, I observed the following: With console on serial port, the machine eventually hangs during radeondrmkms initialization. A power-cycle is the only way to regain control (can't BREAK into DDB). Relevant excerpted dmesg captured on serial console: NetBSD 7.0_BETA (SLAB_KMS) #11: Mon Feb 16 17:20:57 CST 2015 sy...@verthandi.technoskunk.fur:/d0/build/netbsd-7/obj/i386/sys/arch/i386/compile/SLAB_KMS total memory = 2047 MB avail memory = 2001 MB [...] acpivga0 at acpi0 (VID): ACPI Display Adapter acpivga0: capabilities: _DOS _DOD acpiout0 at acpivga0 (LCD0, 0x0110): ACPI Display Output Device acpiout0: capabilities: _DDC _DCS _DGS _DSS acpiout1 at acpivga0 (CRT0, 0x0100): ACPI Display Output Device acpiout1: capabilities: _DDC _DCS _DGS _DSS acpiout2 at acpivga0 (TV0, 0x0200): ACPI Display Output Device acpiout2: capabilities: _DDC _DCS _DGS _DSS acpiout3 at acpivga0 (DVI0, 0x0210): ACPI Display Output Device acpiout3: capabilities: _DCS _DGS _DSS acpivga0: connected output devices: acpivga0: 0x0110 (acpiout0): LCD Panel, head 0 acpivga0: 0x0100 (acpiout1): Ext. Monitor, head 0 acpivga0: 0x0200 (acpiout2): TV, head 0 acpivga0: 0x0210 (acpiout3): Unknown Output Device, head 0 [...] pchb0 at pci0 dev 0 function 0: Intel 82845 Host (rev. 0x04) agp0 at pchb0: aperture at 0xe000, size 0x400 ppb0 at pci0 dev 1 function 0: Intel 82845 AGP (rev. 0x04) pci1 at ppb0 bus 1 pci1: i/o space, memory space enabled radeon0 at pci1 dev 0 function 0: ATI Technologies FireGL Mobility 7800 M7 LX (rev. 0x00) radeon0: WARNING: power management not supported [...] pci_mem_find: void region pci_mem_find: void region pci_mem_find: void region pci_mem_find: void region radeon0: map 3 failed pci_mem_find: void region radeon0: map 4 failed pci_mem_find: void region radeon0: 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: initializing kernel modesetting (RV200 0x1002:0x4C58 0x1014:0x0518). drm: register mmio base: 0xd010 drm: register mmio size: 65536 pci_io_find: expected type i/o, found mem DRM debug in radeon_get_bios: COMBIOS detected radeon0: info: GTT: 64M 0xE000 - 0xE3FF radeon0: info: VRAM: 128M 0xE800 - 0xEFFF (64M used) drm: Detected VRAM RAM=80M, BAR=128M drm: RAM width 128bits DDR Zone kernel: Available graphics memory: 801714 kiB drm: radeon: 64M of VRAM memory ready drm: radeon: 64M of GTT memory ready. DRM debug in radeon_pm_print_states: 1 Power State(s) DRM debug in radeon_pm_print_states: State 0: DRM debug in radeon_pm_print_states:DefaultDRM debug in radeon_pm_print_states: 1 Clock Mode(s) DRM debug in radeon_pm_print_states:0 e: 26 m: 183000 v: 0 [hangs here] With console on video, radeondrmkms attaches and works well for text operations. Booting with -x spams the console relatively forever with timing/position calculation messages. (I let it run for 8 hours and it never got around to exec()-ing 'init'.) Same dmesg excerpts for comparison: NetBSD 7.0_BETA (SLAB_KMS) #11: Mon Feb 16 17:20:57 CST 2015 sy...@verthandi.technoskunk.fur:/d0/build/netbsd-7/obj/i386/sys/arch/i386/compile/SLAB_KMS total memory = 2047 MB avail memory = 2001 MB [...] acpivga0 at acpi0 (VID): ACPI Display Adapter acpiout0 at acpivga0 (LCD0, 0x0110): ACPI Display Output Device acpiout1 at acpivga0 (CRT0, 0x0100): ACPI Display Output Device acpiout2 at acpivga0 (TV0, 0x0200): ACPI Display Output Device acpiout3 at acpivga0 (DVI0, 0x0210): ACPI Display Output Device acpivga0: connected output devices: acpivga0: 0x0110 (acpiout0): LCD Panel, head 0 acpivga0: 0x0100 (acpiout1): Ext. Monitor, head 0 acpivga0: 0x0200 (acpiout2): TV, head 0 acpivga0: 0x0210 (acpiout3): Unknown Output Device, head 0 [...] pchb0 at pci0 dev 0 function 0: Intel 82845 Host (rev. 0x04) agp0 at pchb0: aperture at 0xe000, size 0x400 ppb0 at pci0 dev 1 function 0: Intel 82845 AGP (rev. 0x04) pci1 at ppb0 bus 1 pci1: i/o space, memory space enabled radeon0 at pci1 dev 0 function 0: ATI Technologies FireGL Mobility 7800 M7 LX (rev. 0x00) [...] drm: initializing kernel modesetting (RV200 0x1002:0x4C58 0x1014:0x0518). drm: register mmio base: 0xd010 drm: register mmio size: 65536 radeon0: info: GTT: 64M 0xE000 - 0xE3FF radeon0: info: VRAM: 128M 0xE800 - 0xEFFF (64M used) drm: Detected VRAM RAM=80M, BAR=128M drm: RAM width 128bits DDR Zone kernel:
daily CVS update output
Updating src tree: P src/distrib/evbarm/instkernel/sshramdisk/Makefile P src/lib/libpuffs/puffs.3 P src/lib/libpuffs/puffs_framebuf.3 P src/lib/libpuffs/puffs_ops.3 P src/sys/arch/arm/conf/std.arm P src/sys/arch/evbarm/conf/RPI_INSTALL P src/sys/arch/mips/mips/bus_dma.c P src/sys/arch/powerpc/booke/dev/pq3etsec.c P src/sys/arch/powerpc/include/booke/etsecreg.h P src/sys/dev/pci/if_iwm.c P src/sys/dev/pci/if_iwmreg.h P src/sys/dev/pci/if_iwmvar.h P src/sys/external/bsd/drm2/radeon/radeon_pci.c P src/sys/external/bsd/sljit/dist/sljit_src/sljitNativeX86_common.c P src/sys/external/bsd/sljit/dist/test_src/sljitTest.c P src/sys/fs/puffs/puffs_vfsops.c P src/sys/fs/union/union.h P src/sys/fs/union/union_subr.c P src/sys/fs/union/union_vfsops.c Updating xsrc tree: Killing core files: Running the SUP scanner: SUP Scan for current starting at Tue Feb 17 03:06:41 2015 SUP Scan for current completed at Tue Feb 17 03:07:51 2015 SUP Scan for mirror starting at Tue Feb 17 03:07:51 2015 SUP Scan for mirror completed at Tue Feb 17 03:12:39 2015 Updating file list: -rw-rw-r-- 1 srcmastr netbsd 49192966 Feb 17 03:26 ls-lRA.gz
Re: i386 i915drmkms on i82845G/GL
On Tue, 17 Feb 2015, Ryo ONODERA wrote: My dmesg has no agp(4). Is agp(4) required to use i915drmkms(4) like i915drm(4)? Using userconf (boot netbsd -cvx) to disable agp resulted in failure to attach i915drmkms. Subsequently attempting to start X panicked the machine. Since wsdisplay ended up on vga0 at isa (???, not vga1 at pci?), the video console stayed operational. I guess i915drmkms claimed the pci device, but intelfb couldn't attach. Hmm. Maybe disable pcdisplay and vga0 at isa as well and try again? In this instance, I was able to use the serial console to capture the relevant bits: NetBSD/x86 PXE boot, Revision 5.1 (from NetBSD 7.99.1) Memory: 562/2087364 k boot netbsd -cvx [...] NetBSD 7.99.4 (GENERIC) #126: Fri Feb 13 11:06:00 CST 2015 sy...@verthandi.technoskunk.fur:/d0/build/current/obj/i386/sys/arch/i386/compile/GENERIC total memory = 2039 MB avail memory = 1987 MB [...] userconf: configure system autoconfiguration: uc disable agp [424] agp* disabled uc exit Continuing... timecounter: Timecounter i8254 frequency 1193182 Hz quality 100 BIOS32 rev. 0 found at 0xffe90 SMBIOS rev. 2.3 @ 0xf0450 (67 entries) Dell Computer Corporation OptiPlex GX260 [...] pchb0 at pci0 dev 0 function 0: Intel 82845G/GL DRAM Controller / Host-Hub I/F Bridge (rev. 0x01) agp at pchb0 not configured 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 error in i915_gmch_probe: failed to set up gmch i915drmkms0: unable to attach drm: 5 [...] com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo com0: console vga0 at isa0 port 0x3b0-0x3df iomem 0xa-0xb wsdisplay0 at vga0 kbdmux 1 wsmux1: connecting to wsdisplay0 wskbd0: connecting to wsdisplay0 vga0: WARNING: power management not supported [...] $ logger starting X11 ; startx gx260-startx05.log 21 uvm_fault(0xc3e78d44, 0, 2) - 0xe fatal page fault in supervisor mode trap type 6 code 2 eip c0b2ec1a cs 8 eflags 13206 cr2 11 ilevel 8 esp c02f9737 curlwp 0xc3d9e800 pid 168 lid 1 lowest kstack 0xdbc182c0 kernel: supervisor trap page fault, code=0 Stopped in pid 168.1 (Xorg) at netbsd:_atomic_inc_32_nv+0xa: xaddl %eax,0(% edx) db{0} bt _atomic_inc_32_nv(0,c4064c60,c0682143,6,0,1,4,c4064c60,c3d9e800,0) at netbsd:_at omic_inc_32_nv+0xa drm_open(b400,0,3,2000,c3d9e800,c0bcffa0,2000,3,0,b400) at netbsd:drm_open+0x48 cdev_open(b400,0,3,2000,c3d9e800,c0682166,c40631e8,c4064c60,b4,b400) at netbsd:c dev_open+0xce spec_open(dbc1adb4,0,0,c0da3914,c4064c60,3,c4426600,dbc1aea4,dbc1ae80,c0ab1738) a t netbsd:spec_open+0x297 VOP_OPEN(c4064c60,3,c4426600,3,c4064c60,0,c4426600,0,dbc1ae18,c0670abd) at netbs d:VOP_OPEN+0x50 vn_open(dbc1aea4,3,0,dbc1aeb8,0,c4415400,a,0,c4458f68,c4076400) at netbsd:vn_ope n+0x211 do_open(c3d9e800,0,c4458f68,2,0,dbc1af38,0,c4458f68,c3d9e800,dbc1afa8) at netbsd :do_open+0xb5 do_sys_openat(2,0,dbc1af38,c07edac2,dbc1af9c,c0995163,c3d9e800,dbc1af68,dbc1af60 ,79536000) at netbsd:do_sys_openat+0x6f sys_open(c3d9e800,dbc1af68,dbc1af60,79536000,c1008880,c105fbdc,dbc1af68,0,0,bfbf e9b0) at netbsd:sys_open+0x2c syscall() at netbsd:syscall+0x83 --- syscall (number 5) --- bb6deab7: db{0} -- |/\ John D. Baker, KN5UKS NetBSD Darwin/MacOS X |\ /
Re: i386 i915drmkms on i82845G/GL
On Mon, 16 Feb 2015, Robert Swindells wrote: Can you set up a serial console on this ? Many times. On Tue, 10 Feb 2015, John D. Baker wrote: If the console is the serial port, the VGA output is disabled when i915drmkms attaches. Subsequently starting X spins forever looking for an active video output and doesn't panic. Excerpts from dmesg/ddb with said serial console: [...] 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 0xf000, size 0x800 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 7 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 : 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:
Re: i386 i915drmkms on i82845G/GL
On Sat, 14 Feb 2015, Ryo ONODERA wrote: My laptop has 8086/0a16, and Option AccelMethod SNA make my native X.org stable. The Dell Optiplex GX260 has: $ pcictl pci0 list -n [...] 000:02:0: 0x25628086 (0x0301) [...] $ pcictl pci0 list [...] 000:02:0: Intel 82845G/GL Integrated Graphics Device (VGA display, revision 0x01) [...] From dmesg. boot: [...] 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 0xf000, size 0x800 i915drmkms0 at pci0 dev 2 function 0: Intel 82845G/GL Integrated Graphics Device (rev. 0x01) drm: Memory usable by graphics device = 128M drm: Supports vblank timestamp caching Rev 2 (21.10.2013). drm: Driver supports precise vblank timestamp query. i915drmkms0: interrupting at ioapic0 pin 16 (i915) drm: initialized overlay support intelfb0 at i915drmkms0 i915drmkms0: info: registered panic notifier intelfb0: framebuffer at 0xdb66, size 1280x1024, depth 32, stride 5120 wsdisplay0 at intelfb0 kbdmux 1: console (default, vt100 emulation), using wskbd0 wsmux1: connecting to wsdisplay0 [...] Amending my minimal xorg.conf: Section Device Option AccelMethod SNA #Option NoAccel Identifier Card0 Driver intel EndSection made no difference. The machine immediately panicked and rebooted upon starting X.org. (Setting ddb.onpanic=1 is useless since the display is blank.) -- |/\ John D. Baker, KN5UKS NetBSD Darwin/MacOS X |\ / jdbaker[snail]mylinuxisp[flyspeck]comOpenBSDFreeBSD | X No HTML/proprietary data in email. BSD just sits there and works! |/ \ GPGkeyID: D703 4A7E 479F 63F8 D3F4 BD99 9572 8F23 E4AD 1645
Re: i386 i915drmkms on i82845G/GL
Hi, Sadly I have no idea about your kernel panic really... By the way. My dmesg has no agp(4). Is agp(4) required to use i915drmkms(4) like i915drm(4)? It seems that drmkms has no man page yet, and I do not answer the question... From: John D. Baker jdba...@mylinuxisp.com, Date: Mon, 16 Feb 2015 08:56:53 -0600 (CST) On Sat, 14 Feb 2015, Ryo ONODERA wrote: My laptop has 8086/0a16, and Option AccelMethod SNA make my native X.org stable. The Dell Optiplex GX260 has: $ pcictl pci0 list -n [...] 000:02:0: 0x25628086 (0x0301) [...] $ pcictl pci0 list [...] 000:02:0: Intel 82845G/GL Integrated Graphics Device (VGA display, revision 0x01) [...] From dmesg. boot: [...] 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 0xf000, size 0x800 i915drmkms0 at pci0 dev 2 function 0: Intel 82845G/GL Integrated Graphics Device (rev. 0x01) drm: Memory usable by graphics device = 128M drm: Supports vblank timestamp caching Rev 2 (21.10.2013). drm: Driver supports precise vblank timestamp query. i915drmkms0: interrupting at ioapic0 pin 16 (i915) drm: initialized overlay support intelfb0 at i915drmkms0 i915drmkms0: info: registered panic notifier intelfb0: framebuffer at 0xdb66, size 1280x1024, depth 32, stride 5120 wsdisplay0 at intelfb0 kbdmux 1: console (default, vt100 emulation), using wskbd0 wsmux1: connecting to wsdisplay0 [...] Amending my minimal xorg.conf: Section Device Option AccelMethod SNA #Option NoAccel Identifier Card0 Driver intel EndSection made no difference. The machine immediately panicked and rebooted upon starting X.org. (Setting ddb.onpanic=1 is useless since the display is blank.) -- |/\ John D. Baker, KN5UKS NetBSD Darwin/MacOS X |\ / jdbaker[snail]mylinuxisp[flyspeck]comOpenBSDFreeBSD | X No HTML/proprietary data in email. BSD just sits there and works! |/ \ GPGkeyID: D703 4A7E 479F 63F8 D3F4 BD99 9572 8F23 E4AD 1645 -- Ryo ONODERA // ryo...@yk.rim.or.jp PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB FD1B F404 27FA C7D1 15F3