NetBSD Problem Report #49254

From prlw1@cam.ac.uk  Sat Oct  4 12:54:13 2014
Return-Path: <prlw1@cam.ac.uk>
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" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 9AAFDA6551
	for <gnats-bugs@gnats.NetBSD.org>; Sat,  4 Oct 2014 12:54:13 +0000 (UTC)
Message-Id: <20141004125402.GA6275@quantz>
Date: Sat, 4 Oct 2014 13:54:02 +0100
From: Patrick Welche <prlw1@cam.ac.uk>
To: gnats-bugs@NetBSD.org
Subject: drmkms on pineview (intel)

>Number:         49254
>Category:       kern
>Synopsis:       drmkms on pineview (intel)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    riastradh
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Oct 04 12:55:00 +0000 2014
>Closed-Date:    Tue Oct 07 09:16:14 +0000 2014
>Last-Modified:  Sun Dec 07 21:45:00 +0000 2014
>Originator:     Patrick Welche
>Release:        NetBSD 7.99.1
>Organization:
>Environment:
NetBSD-7.99.1/amd64
>Description:
Trying out drmkms intel on a "desktop"

cpu0: "Intel(R) Atom(TM) CPU D525   @ 1.80GHz"
Vendor Name: Intel (0x8086)
Device Name: Pineview Integrated Graphics Device (0xa001)

which has a VGA and a DVI socket. The DVI socket is connected to a
monitor detected by another ivy bridge desktop as doing

intelfb0: framebuffer at 0xffff80008a8a1000, size 1680x1050, depth 32, stride 6720

but when connected to the pineview, only manages

intelfb0: framebuffer at 0xffff800024b7b000, size 1024x768, depth 32, stride 4096

xdm does work and terminal switching works.

(There is an oddity when using a serial console in that keypresses
don't make it into xdm's login screen - just like when you have a
getty running on the same screen as X - but logging into xdm works
fine with a consdev pc at the pxeboot prompt)

/var/run/dmesg.boot (truncated after DRM debug, and without acpiverbose bits):


Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 7.99.1 (DRMKMS) #25: Sat Oct  4 12:35:37 BST 2014
	prlw1@quantz:/usr/src/sys/arch/amd64/compile/DRMKMS
total memory = 2037 MB
avail memory = 1959 MB
No module info at boot
kern.module.path=/stand/amd64/7.99.1/modules
timecounter: Timecounters tick every 10.000 msec
timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
SMBIOS rev. 2.6 @ 0xfbf50 (49 entries)
None BIPV10-IAT (1.0)
mainbus0 (root)
ACPI: RSDP 0xf9a20 000014 (v00 ACPIAM)
ACPI: RSDT 0x7f5b0000 00003C (v01 041212 RSDT1848 20120412 MSFT 00000097)
ACPI: FACP 0x7f5b0200 000084 (v01 041212 FACP1848 20120412 MSFT 00000097)
ACPI: DSDT 0x7f5b0440 004F75 (v01  1AAAA 1AAAA000 00000000 INTL 20051117)
ACPI: FACS 0x7f5be000 000040
ACPI: APIC 0x7f5b0390 00006C (v01 041212 APIC1848 20120412 MSFT 00000097)
ACPI: MCFG 0x7f5b0400 00003C (v01 041212 OEMMCFG  20120412 MSFT 00000097)
ACPI: OEMB 0x7f5be040 000082 (v01 041212 OEMB1848 20120412 MSFT 00000097)
ACPI: HPET 0x7f5ba440 000038 (v01 041212 OEMHPET  20120412 MSFT 00000097)
ACPI: GSCI 0x7f5be0d0 002024 (v01 041212 GMCHSCI  20120412 MSFT 00000097)
ACPI: All ACPI Tables successfully acquired
cpu0 at mainbus0 apid 0cpu0: 16 page colors
cpu0: calibrating local timer
cpu0: apic clock running at 199 MHz
timecounter: Timecounter "lapic" frequency 199604489 Hz quality -100
: Intel(R) Atom(TM) CPU D525   @ 1.80GHz, id 0x106ca
cpu0: PAT enabled
cpu1 at mainbus0 apid 2cpu1: 2 page colors
x86_ipi_init: ESR 00000040
: Intel(R) Atom(TM) CPU D525   @ 1.80GHz, id 0x106ca
cpu1: PAT enabled
cpu2 at mainbus0 apid 1cpu2: 2 page colors
: Intel(R) Atom(TM) CPU D525   @ 1.80GHz, id 0x106ca
cpu2: PAT enabled
cpu3 at mainbus0 apid 3cpu3: 2 page colors
: Intel(R) Atom(TM) CPU D525   @ 1.80GHz, id 0x106ca
cpu3: PAT enabled
ioapic0 at mainbus0 apid 4: pa 0xfec00000, version 0x20, 24 pins
ioapic0: misconfigured as apic 1
ioapic0: remapped to apic 4
acpi0 at mainbus0: Intel ACPICA 20131218
acpi0: X/RSDT: OemId <041212,RSDT1848,20120412>, AslId <MSFT,00000097>
acpi0: SCI interrupting at int 9
acpi0: fixed power button present
timecounter: Timecounter "ACPI-Fast" frequency 3579545 Hz quality 1000
acpi0: ACPI-Fast 24-bit timer
hpet0 at acpi0: high precision event timer (mem 0xfed00000-0xfed00400)
timecounter: Timecounter "hpet0" frequency 14318180 Hz quality 2000
MCH (PNP0C01) [System Board] at acpi0 not configured
attimer1 at acpi0 (TMR, PNP0100): io 0x40-0x43 irq 0
pckbc1 at acpi0 (PS2K, PNP0303) (kbd port): io 0x60,0x64 irq 1
pcppi1 at acpi0 (SPKR, PNP0800): io 0x61
midi0 at pcppi1: PC speaker
sysbeep0 at pcppi1
FDC (PNP0700) [PC standard floppy disk controller] at acpi0 not configured
SIOR (PNP0C02) [Motherboard Register Resources] at acpi0 not configured
RMSC (PNP0C02) [Motherboard Register Resources] at acpi0 not configured
OMSC (PNP0C02) [Motherboard Register Resources] at acpi0 not configured
UAR1 (PNP0501) [16550A-compatible COM port] at acpi0 not configured
UAR2 (PNP0501) [16550A-compatible COM port] at acpi0 not configured
LPTE (PNP0400) [Standard LPT printer port] at acpi0 not configured
PCIE (PNP0C02) [Motherboard Register Resources] at acpi0 not configured
RMEM (PNP0C01) [System Board] at acpi0 not configured
acpibut0 at acpi0 (PWRB, PNP0C0C-170): ACPI Power Button
acpitz0 at acpi0 (THRM)
acpitz0: polling interval 30.0 seconds
acpitz0: levels: critical 127.0 C, passive cooling
ACPI: Enabled 3 GPEs in block 00 to 1F
ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S2_] (20131218/hwxface-646)
ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S3_] (20131218/hwxface-646)
acpi0: [MADT] LAPIC          : CPU ID 1, LAPIC ID 0, FLAGS 0x01
...
        THRM  [13] [] <acpitz0>
pckbd0 at pckbc1 (kbd slot)
pckbc1: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pmsprobe: reset error 5
attimer1: attached to pcppi1
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0: Intel Pineview Host Bridge (rev. 0x02)
agp0 at pchb0: i915-family chipset
agp0: detected 7932k stolen memory
agp0: BAR size 100000 mismatches detected GTT size 40000; trusting BAR
agp0: aperture at 0xd0000000, size 0x10000000
i915drmkms0 at pci0 dev 2 function 0: Intel Pineview Integrated Graphics Device (rev. 0x02)
pci_mem_find: void region
pci_mem_find: void region
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=3, pciid=0xa001 flags=is_mobile,is_g33,need_gfx_hws,is_pineview,has_hotplug,has_overlay,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
pci_mem_find: void region
DRM debug in intel_detect_pch: No PCH found.
drm: Memory usable by graphics device = 1024M
DRM debug in i915_gem_gtt_init: GMADR size = 256M
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: 0x7f5be0f4
DRM debug in intel_opregion_setup: Public ACPI methods supported
DRM debug in intel_opregion_setup: SWSCI supported
DRM debug in intel_opregion_setup: ASLE 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 100000 kHz
DRM debug in intel_parse_bios: Using VBT from OpRegion: $VBT PINEVIEW       d
DRM debug in parse_general_features: BDB_GENERAL_FEATURES int_tv_support 0 int_crt_support 1 lvds_use_ssc 0 lvds_ssc_freq 100000 display_clock_mode 0 fdi_rx_polarity_inverted 0
DRM debug in parse_general_definitions: crt_ddc_bus_pin: 2
DRM debug in parse_lfp_panel_data: Found panel mode in BIOS VBT tables:
DRM debug in drm_mode_debug_printmodeline: Modeline 0:"1024x768" 0 65000 1024 1048 1184 1344 768 771 777 806 0x8 0xa
DRM debug in parse_lfp_panel_data: VBT initial LVDS value 40000300
DRM debug in parse_lfp_backlight: VBT backlight PWM modulation frequency 200 Hz, active high, min brightness 0, level 0
DRM debug in parse_sdvo_panel_data: Found SDVO panel mode in BIOS VBT tables:
DRM debug in drm_mode_debug_printmodeline: Modeline 0:"1600x1200" 0 162000 1600 1664 1856 2160 1200 1201 1204 1250 0x8 0xa
DRM debug in parse_sdvo_device_mapping: No SDVO device info is found in VBT
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=268701706
i915drmkms0: interrupting at ioapic0 pin 16 (i915)
DRM debug in intel_modeset_init: 2 display pipes available.
DRM debug in intel_modeset_init: pipe A sprite A init failed: -19
DRM debug in intel_modeset_init: pipe B sprite B init failed: -19
drm: GMBUS [i915 gmbus panel] timed out, falling back to bit banging on pin 3
DRM debug in intel_lvds_init: using mode from VBT: DRM debug in drm_mode_debug_printmodeline: Modeline 0:"1024x768" 0 65000 1024 1048 1184 1344 768 771 777 806 0x8 0xa
DRM debug in intel_lvds_init: detected single-link lvds configuration
DRM debug in intel_panel_setup_backlight: backlight initialized, enabled, brightness 26015/26015, sysfs interface not registered
DRM debug in intel_modeset_readout_hw_state: [CRTC:5] hw state readout: disabled
DRM debug in intel_modeset_readout_hw_state: [CRTC:7] hw state readout: enabled
DRM debug in intel_modeset_readout_hw_state: [ENCODER:9:LVDS-9] hw state readout: enabled, pipe B
DRM debug in intel_modeset_readout_hw_state: [ENCODER:13:DAC-13] hw state readout: enabled, pipe B
DRM debug in intel_modeset_readout_hw_state: [CONNECTOR:8:LVDS-1] hw state readout: enabled
DRM debug in intel_modeset_readout_hw_state: [CONNECTOR:12: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 0 0 0 0 0 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 0x0
DRM debug in intel_dump_crtc_timings: crtc timings: 0 0 0 0 0 0 0 0 0, type: 0x0 flags: 0x0
DRM debug in intel_dump_pipe_config: port clock: 0
DRM debug in intel_dump_pipe_config: pipe src size: 0x0
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_dump_pipe_config: [CRTC:7][setup_hw_state] config for pipe B
DRM debug in intel_dump_pipe_config: cpu_transcoder: B
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 400 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: 65143 1024 1048 1184 1344 768 771 777 806, type: 0x0 flags: 0xa
DRM debug in intel_dump_pipe_config: port clock: 65143
DRM debug in intel_dump_pipe_config: pipe src size: 640x400
DRM debug in intel_dump_pipe_config: gmch pfit: control: 0x80006668, 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:8:LVDS-1]
DRM debug in intel_connector_check_state: [CONNECTOR:12:VGA-1]
DRM debug in check_encoder_state: [ENCODER:9:LVDS-9]
DRM debug in check_encoder_state: [ENCODER:13:DAC-13]
DRM debug in check_crtc_state: [CRTC:5]
DRM debug in check_crtc_state: [CRTC:7]
DRM debug in i9xx_get_plane_config: pipe/plane 1/1 with fb: size=640x400@16, offset=0, pitch 1280, size 0x7d000
DRM debug in i915_gem_setup_global_gtt: clearing unused GTT space: [0, 3ffff000]
DRM debug in i915_gem_context_init: fake context support initialized
DRM debug in init_status_page: render ring hws offset: 0x00001000
drm: initialized overlay support
DRM debug in drm_helper_probe_single_connector_modes: [CONNECTOR:8:LVDS-1]
DRM debug in intel_lvds_detect: [CONNECTOR:8:LVDS-1]
DRM debug in drm_helper_probe_single_connector_modes: [CONNECTOR:8:LVDS-1] probed modes :
DRM debug in drm_mode_debug_printmodeline: Modeline 14:"1024x768" 60 65000 1024 1048 1184 1344 768 771 777 806 0x8 0xa
DRM debug in drm_helper_probe_single_connector_modes: [CONNECTOR:12:VGA-1]
DRM debug in intel_crt_detect: [CONNECTOR:12:VGA-1] force=1
DRM debug in intel_crt_detect: CRT detected via hotplug
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 drm_helper_probe_single_connector_modes: [CONNECTOR:12:VGA-1] probed modes :
DRM debug in drm_mode_debug_printmodeline: Modeline 19:"1024x768" 60 65000 1024 1048 1184 1344 768 771 777 806 0x40 0xa
DRM debug in drm_mode_debug_printmodeline: Modeline 17:"800x600" 60 40000 800 840 968 1056 600 601 605 628 0x40 0x5
DRM debug in drm_mode_debug_printmodeline: Modeline 16:"800x600" 56 36000 800 824 896 1024 600 601 603 625 0x40 0x5
DRM debug in drm_mode_debug_printmodeline: Modeline 18:"848x480" 60 33750 848 864 976 1088 480 486 494 517 0x40 0x5
DRM debug in drm_mode_debug_printmodeline: Modeline 15:"640x480" 60 25175 640 656 752 800 480 489 492 525 0x40 0xa
DRM debug in drm_setup_crtcs: 
DRM debug in drm_enable_connectors: connector 8 enabled? yes
DRM debug in drm_enable_connectors: connector 12 enabled? yes
DRM debug in intel_fb_initial_config: looking for cmdline mode on connector 8
DRM debug in intel_fb_initial_config: looking for preferred mode on connector 8
DRM debug in intel_fb_initial_config: connector LVDS-1 on crtc 7: 1024x768
DRM debug in intel_fb_initial_config: fallback: cloned configuration
DRM debug in intel_fb_initial_config: Not using firmware configuration
DRM debug in drm_target_preferred: looking for cmdline mode on connector 8
DRM debug in drm_target_preferred: looking for preferred mode on connector 8
DRM debug in drm_target_preferred: found mode 1024x768
DRM debug in drm_target_preferred: looking for cmdline mode on connector 12
DRM debug in drm_target_preferred: looking for preferred mode on connector 12
DRM debug in drm_target_preferred: found mode 1024x768
DRM debug in drm_setup_crtcs: picking CRTCs for 4096x4096 config
DRM debug in drm_setup_crtcs: desired mode 1024x768 set on crtc 7
DRM debug in drm_setup_crtcs: desired mode 1024x768 set on crtc 5
DRM debug in intelfb_create: no BIOS fb, allocating a new one
DRM debug in drm_framebuffer_reference: FB ID: 22
intelfb0 at i915drmkms0
intelfb0: WARNING: power management not supported
DRM debug in intelfb_create: allocated 1024x768 fb: 0x00030000, bo 0xfffffe8043ae48c0
i915drmkms0: info: registered panic notifier
intelfb0: framebuffer at 0xffff800024b83000, size 1024x768, depth 32, stride 4096
DRM debug in intel_crtc_cursor_set: cursor off
DRM debug in intel_crtc_set_config: [CRTC:5] [FB:22] #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 21:"1024x768" 60 65000 1024 1048 1184 1344 768 771 777 806 0x40 0xa
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:8:LVDS-1] to [CRTC:7]
DRM debug in intel_modeset_stage_output_state: [CONNECTOR:12:VGA-1] to [CRTC:5]
DRM debug in intel_modeset_stage_output_state: crtc changed, full mode switch
DRM debug in intel_modeset_stage_output_state: crtc enabled, full mode switch
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:12: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:"1024x768" 60 65000 1024 1048 1184 1344 768 771 777 806 0x40 0xa
DRM debug in intel_dump_pipe_config: adjusted mode:
DRM debug in drm_mode_debug_printmodeline: Modeline 0:"1024x768" 60 65000 1024 1048 1184 1344 768 771 777 806 0x40 0xa
DRM debug in intel_dump_crtc_timings: crtc timings: 65000 1024 1048 1184 1344 768 771 777 806, type: 0x40 flags: 0xa
DRM debug in intel_dump_pipe_config: port clock: 65000
DRM debug in intel_dump_pipe_config: pipe src size: 1024x768
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_timestamping_constants: crtc 5: hwmode: htotal 1344, vtotal 806, vdisplay 768
DRM debug in drm_calc_timestamping_constants: crtc 5: clock 65000 kHz framedur 16665600 linedur 20676, pixeldur 15
DRM debug in drm_vblank_get: enabling vblank on crtc 0, ret: -22
DRM debug in i9xx_update_primary_plane: Writing base 00030000 00000000 0 0 4096
DRM debug in intel_crtc_mode_set: [ENCODER:13:DAC-13] set [MODE:0:1024x768]
DRM debug in intel_calculate_wm: FIFO entries required for mode: 24
DRM debug in intel_calculate_wm: FIFO watermark level: 478
DRM debug in pineview_update_wm: DSPFW1 register is ef030f0f
DRM debug in intel_calculate_wm: FIFO entries required for mode: 26
DRM debug in intel_calculate_wm: FIFO watermark level: 481
DRM debug in intel_calculate_wm: FIFO entries required for mode: 146
DRM debug in intel_calculate_wm: FIFO watermark level: 356
DRM debug in intel_calculate_wm: FIFO entries required for mode: 148
DRM debug in intel_calculate_wm: FIFO watermark level: 359
DRM debug in pineview_update_wm: DSPFW3 register is 3f3f0164
DRM debug in pineview_update_wm: Self-refresh is enabled
DRM debug in intel_connector_check_state: [CONNECTOR:8:LVDS-1]
DRM debug in intel_connector_check_state: [CONNECTOR:12:VGA-1]
DRM debug in check_encoder_state: [ENCODER:9:LVDS-9]
DRM debug in check_encoder_state: [ENCODER:13:DAC-13]
DRM debug in check_crtc_state: [CRTC:5]
DRM debug in check_crtc_state: [CRTC:7]
DRM debug in drm_framebuffer_reference: FB ID: 22
DRM debug in intel_crtc_cursor_set: cursor off
DRM debug in intel_crtc_set_config: [CRTC:7] [FB:22] #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 20:"1024x768" 60 65000 1024 1048 1184 1344 768 771 777 806 0x8 0xa
DRM debug in intel_set_config_compute_mode_changes: computed changes for [CRTC:7], mode_changed=1, fb_changed=0
DRM debug in intel_modeset_stage_output_state: [CONNECTOR:8:LVDS-1] to [CRTC:7]
DRM debug in intel_modeset_stage_output_state: [CONNECTOR:12:VGA-1] to [CRTC:5]
DRM debug in intel_modeset_affected_pipes: set mode pipe masks: modeset: 2, prepare: 2, disable: 0
DRM debug in connected_sink_compute_bpp: [CONNECTOR:8:LVDS-1] checking for sink bpp constrains
DRM debug in intel_lvds_compute_config: forcing display bpp (was 24) to LVDS (18)
DRM debug in intel_modeset_pipe_config: plane bpp: 24, pipe bpp: 18, dithering: 1
DRM debug in intel_dump_pipe_config: [CRTC:7][modeset] config for pipe B
DRM debug in intel_dump_pipe_config: cpu_transcoder: B
DRM debug in intel_dump_pipe_config: pipe bpp: 18, dithering: 1
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:"1024x768" 60 65000 1024 1048 1184 1344 768 771 777 806 0x8 0xa
DRM debug in intel_dump_pipe_config: adjusted mode:
DRM debug in drm_mode_debug_printmodeline: Modeline 0:"1024x768" 0 65000 1024 1048 1184 1344 768 771 777 806 0x8 0xa
DRM debug in intel_dump_crtc_timings: crtc timings: 65000 1024 1048 1184 1344 768 771 777 806, type: 0x8 flags: 0xa
DRM debug in intel_dump_pipe_config: port clock: 65000
DRM debug in intel_dump_pipe_config: pipe src size: 1024x768
DRM debug in intel_dump_pipe_config: gmch pfit: control: 0x00000008, 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_panel_actually_set_backlight: set backlight PWM = 0
DRM debug in drm_calc_vbltimestamp_from_scanoutpos: crtc 1: Noop due to uninitialized mode.
DRM debug in i9xx_pfit_disable: disabling pfit, current: 0x80006668
DRM debug in intel_calculate_wm: FIFO entries required for mode: 24
DRM debug in intel_calculate_wm: FIFO watermark level: 478
DRM debug in pineview_update_wm: DSPFW1 register is ef030f0f
DRM debug in intel_calculate_wm: FIFO entries required for mode: 26
DRM debug in intel_calculate_wm: FIFO watermark level: 481
DRM debug in intel_calculate_wm: FIFO entries required for mode: 146
DRM debug in intel_calculate_wm: FIFO watermark level: 356
DRM debug in intel_calculate_wm: FIFO entries required for mode: 148
DRM debug in intel_calculate_wm: FIFO watermark level: 359
DRM debug in pineview_update_wm: DSPFW3 register is 7f3f0164
DRM debug in pineview_update_wm: Self-refresh is enabled
DRM debug in drm_calc_timestamping_constants: crtc 7: hwmode: htotal 1344, vtotal 806, vdisplay 768
DRM debug in drm_calc_timestamping_constants: crtc 7: clock 65000 kHz framedur 16665600 linedur 20676, pixeldur 15
DRM debug in drm_vblank_get: enabling vblank on crtc 1, ret: -22
DRM debug in i9xx_update_primary_plane: Writing base 00030000 00000000 0 0 4096
DRM debug in intel_crtc_mode_set: [ENCODER:9:LVDS-9] set [MODE:0:1024x768]
DRM debug in pineview_update_wm: Self-refresh is disabled
DRM debug in intel_panel_enable_backlight: pipe B
DRM debug in intel_panel_actually_set_backlight: set backlight PWM = 26015
DRM debug in intel_connector_check_state: [CONNECTOR:8:LVDS-1]
DRM debug in intel_connector_check_state: [CONNECTOR:12:VGA-1]
DRM debug in check_encoder_state: [ENCODER:9:LVDS-9]
DRM debug in check_encoder_state: [ENCODER:13:DAC-13]
DRM debug in check_crtc_state: [CRTC:5]
DRM debug in check_crtc_state: [CRTC:7]
DRM debug in drm_framebuffer_reference: FB ID: 22
DRM debug in drm_framebuffer_unreference: FB ID: 22
DRM debug in drm_framebuffer_reference: FB ID: 22
wsdisplay0 at intelfb0 kbdmux 1: console (default, vt100 emulation), using wskbd0
wsmux1: connecting to wsdisplay0
Intel Pineview Integrated Graphics Device (miscellaneous display, revision 0x02) at pci0 dev 2 function 1 not configured


>How-To-Repeat:
	<code/input/activities to reproduce the problem (multiple lines)>
>Fix:
	<how to correct or work around the problem, if known (multiple lines)>

>Release-Note:

>Audit-Trail:
From: Patrick Welche <prlw1@cam.ac.uk>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/49254: drmkms on pineview (intel)
Date: Sat, 4 Oct 2014 14:21:57 +0100

 If instead of using the DVI connection, I connect to the same monitor but
 via VGA, the correct resolution is found:

 intelfb0: framebuffer at 0xffff800024b83000, size 1680x1050, depth 32, stride 6720

 X still uses the low resolution. Worry about DVI vs VGA first, and X later?

 Diff of kernel output  - DVI above + VGA now:


 @@ -285,17 +384,30 @@
  DRM debug in drm_helper_probe_single_connector_modes: [CONNECTOR:12:VGA-1]
  DRM debug in intel_crt_detect: [CONNECTOR:12:VGA-1] force=1
  DRM debug in intel_crt_detect: CRT detected via hotplug
 -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 drm_edid_to_eld: ELD: no CEA Extension found
  DRM debug in drm_helper_probe_single_connector_modes: [CONNECTOR:12:VGA-1] probed modes :
 -DRM debug in drm_mode_debug_printmodeline: Modeline 19:"1024x768" 60 65000 1024 1048 1184 1344 768 771 777 806 0x40 0xa
 -DRM debug in drm_mode_debug_printmodeline: Modeline 17:"800x600" 60 40000 800 840 968 1056 600 601 605 628 0x40 0x5
 -DRM debug in drm_mode_debug_printmodeline: Modeline 16:"800x600" 56 36000 800 824 896 1024 600 601 603 625 0x40 0x5
 -DRM debug in drm_mode_debug_printmodeline: Modeline 18:"848x480" 60 33750 848 864 976 1088 480 486 494 517 0x40 0x5
 -DRM debug in drm_mode_debug_printmodeline: Modeline 15:"640x480" 60 25175 640 656 752 800 480 489 492 525 0x40 0xa
 +DRM debug in drm_mode_debug_printmodeline: Modeline 16:"1680x1050" 60 146000 1680 1784 1960 2240 1050 1053 1059 1089 0x48 0x9
 +DRM debug in drm_mode_debug_printmodeline: Modeline 23:"1600x1200" 75 202500 1600 1664 1856 2160 1200 1201 1204 1250 0x40 0x5
 +DRM debug in drm_mode_debug_printmodeline: Modeline 21:"1600x1200" 60 162000 1600 1664 1856 2160 1200 1201 1204 1250 0x40 0x5
 +DRM debug in drm_mode_debug_printmodeline: Modeline 22:"1680x1050" 75 187000 1680 1800 1976 2272 1050 1053 1059 1099 0x40 0x6
 +DRM debug in drm_mode_debug_printmodeline: Modeline 31:"1280x1024" 75 135000 1280 1296 1440 1688 1024 1025 1028 1066 0x40 0x5
 +DRM debug in drm_mode_debug_printmodeline: Modeline 20:"1280x1024" 60 108000 1280 1328 1440 1688 1024 1025 1028 1066 0x40 0x5
 +DRM debug in drm_mode_debug_printmodeline: Modeline 19:"1280x960" 60 108000 1280 1376 1488 1800 960 961 964 1000 0x40 0x5
 +DRM debug in drm_mode_debug_printmodeline: Modeline 18:"1152x864" 75 108000 1152 1216 1344 1600 864 865 868 900 0x40 0x5
 +DRM debug in drm_mode_debug_printmodeline: Modeline 17:"1152x864" 70 96728 1152 1224 1344 1536 864 865 868 900 0x0 0x6
 +DRM debug in drm_mode_debug_printmodeline: Modeline 32:"1024x768" 75 78800 1024 1040 1136 1312 768 769 772 800 0x40 0x5
 +DRM debug in drm_mode_debug_printmodeline: Modeline 33:"1024x768" 70 75000 1024 1048 1184 1328 768 771 777 806 0x40 0xa
 +DRM debug in drm_mode_debug_printmodeline: Modeline 34:"1024x768" 60 65000 1024 1048 1184 1344 768 771 777 806 0x40 0xa
 +DRM debug in drm_mode_debug_printmodeline: Modeline 35:"832x624" 75 57284 832 864 928 1152 624 625 628 667 0x40 0xa
 +DRM debug in drm_mode_debug_printmodeline: Modeline 36:"800x600" 75 49500 800 816 896 1056 600 601 604 625 0x40 0x5
 +DRM debug in drm_mode_debug_printmodeline: Modeline 37:"800x600" 72 50000 800 856 976 1040 600 637 643 666 0x40 0x5
 +DRM debug in drm_mode_debug_printmodeline: Modeline 24:"800x600" 60 40000 800 840 968 1056 600 601 605 628 0x40 0x5
 +DRM debug in drm_mode_debug_printmodeline: Modeline 25:"800x600" 56 36000 800 824 896 1024 600 601 603 625 0x40 0x5
 +DRM debug in drm_mode_debug_printmodeline: Modeline 26:"640x480" 75 31500 640 656 720 840 480 481 484 500 0x40 0xa
 +DRM debug in drm_mode_debug_printmodeline: Modeline 27:"640x480" 73 31500 640 664 704 832 480 489 491 520 0x40 0xa
 +DRM debug in drm_mode_debug_printmodeline: Modeline 28:"640x480" 67 30240 640 704 768 864 480 483 486 525 0x40 0xa
 +DRM debug in drm_mode_debug_printmodeline: Modeline 29:"640x480" 60 25200 640 656 752 800 480 490 492 525 0x40 0xa
 +DRM debug in drm_mode_debug_printmodeline: Modeline 30:"720x400" 70 28320 720 738 846 900 400 412 414 449 0x40 0x6
  DRM debug in drm_setup_crtcs: 
  DRM debug in drm_enable_connectors: connector 8 enabled? yes
  DRM debug in drm_enable_connectors: connector 12 enabled? yes
 @@ -309,23 +421,23 @@
  DRM debug in drm_target_preferred: found mode 1024x768
  DRM debug in drm_target_preferred: looking for cmdline mode on connector 12
  DRM debug in drm_target_preferred: looking for preferred mode on connector 12
 -DRM debug in drm_target_preferred: found mode 1024x768
 +DRM debug in drm_target_preferred: found mode 1680x1050
  DRM debug in drm_setup_crtcs: picking CRTCs for 4096x4096 config
  DRM debug in drm_setup_crtcs: desired mode 1024x768 set on crtc 7
 -DRM debug in drm_setup_crtcs: desired mode 1024x768 set on crtc 5
 +DRM debug in drm_setup_crtcs: desired mode 1680x1050 set on crtc 5
  DRM debug in intelfb_create: no BIOS fb, allocating a new one
 -DRM debug in drm_framebuffer_reference: FB ID: 22
 +DRM debug in drm_framebuffer_reference: FB ID: 40
  intelfb0 at i915drmkms0
  intelfb0: WARNING: power management not supported
 -DRM debug in intelfb_create: allocated 1024x768 fb: 0x00030000, bo 0xfffffe8043ae48c0
 +DRM debug in intelfb_create: allocated 1680x1050 fb: 0x00030000, bo 0xfffffe8043ae48c0
  i915drmkms0: info: registered panic notifier
 -intelfb0: framebuffer at 0xffff800024b83000, size 1024x768, depth 32, stride 4096
 +intelfb0: framebuffer at 0xffff800024b83000, size 1680x1050, depth 32, stride 6720
  DRM debug in intel_crtc_cursor_set: cursor off
 -DRM debug in intel_crtc_set_config: [CRTC:5] [FB:22] #connectors=1 (x y) (0 0)
 +DRM debug in intel_crtc_set_config: [CRTC:5] [FB:40] #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 21:"1024x768" 60 65000 1024 1048 1184 1344 768 771 777 806 0x40 0xa
 +DRM debug in drm_mode_debug_printmodeline: Modeline 39:"1680x1050" 60 146000 1680 1784 1960 2240 1050 1053 1059 1089 0x48 0x9
  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:8:LVDS-1] to [CRTC:7]
  DRM debug in intel_modeset_stage_output_state: [CONNECTOR:12:VGA-1] to [CRTC:5]
 @@ -340,31 +452,31 @@
  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:"1024x768" 60 65000 1024 1048 1184 1344 768 771 777 806 0x40 0xa
 +DRM debug in drm_mode_debug_printmodeline: Modeline 0:"1680x1050" 60 146000 1680 1784 1960 2240 1050 1053 1059 1089 0x48 0x9
  DRM debug in intel_dump_pipe_config: adjusted mode:
 -DRM debug in drm_mode_debug_printmodeline: Modeline 0:"1024x768" 60 65000 1024 1048 1184 1344 768 771 777 806 0x40 0xa
 -DRM debug in intel_dump_crtc_timings: crtc timings: 65000 1024 1048 1184 1344 768 771 777 806, type: 0x40 flags: 0xa
 -DRM debug in intel_dump_pipe_config: port clock: 65000
 -DRM debug in intel_dump_pipe_config: pipe src size: 1024x768
 +DRM debug in drm_mode_debug_printmodeline: Modeline 0:"1680x1050" 60 146000 1680 1784 1960 2240 1050 1053 1059 1089 0x48 0x9
 +DRM debug in intel_dump_crtc_timings: crtc timings: 146000 1680 1784 1960 2240 1050 1053 1059 1089, type: 0x48 flags: 0x9
 +DRM debug in intel_dump_pipe_config: port clock: 146000
 +DRM debug in intel_dump_pipe_config: pipe src size: 1680x1050
  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_timestamping_constants: crtc 5: hwmode: htotal 1344, vtotal 806, vdisplay 768
 -DRM debug in drm_calc_timestamping_constants: crtc 5: clock 65000 kHz framedur 16665600 linedur 20676, pixeldur 15
 +DRM debug in drm_calc_timestamping_constants: crtc 5: hwmode: htotal 2240, vtotal 1089, vdisplay 1050
 +DRM debug in drm_calc_timestamping_constants: crtc 5: clock 146000 kHz framedur 16707945 linedur 15342, pixeldur 6
  DRM debug in drm_vblank_get: enabling vblank on crtc 0, ret: -22
 -DRM debug in i9xx_update_primary_plane: Writing base 00030000 00000000 0 0 4096
 -DRM debug in intel_crtc_mode_set: [ENCODER:13:DAC-13] set [MODE:0:1024x768]
 -DRM debug in intel_calculate_wm: FIFO entries required for mode: 24
 -DRM debug in intel_calculate_wm: FIFO watermark level: 478
 -DRM debug in pineview_update_wm: DSPFW1 register is ef030f0f
 -DRM debug in intel_calculate_wm: FIFO entries required for mode: 26
 -DRM debug in intel_calculate_wm: FIFO watermark level: 481
 -DRM debug in intel_calculate_wm: FIFO entries required for mode: 146
 -DRM debug in intel_calculate_wm: FIFO watermark level: 356
 -DRM debug in intel_calculate_wm: FIFO entries required for mode: 148
 -DRM debug in intel_calculate_wm: FIFO watermark level: 359
 -DRM debug in pineview_update_wm: DSPFW3 register is 3f3f0164
 +DRM debug in i9xx_update_primary_plane: Writing base 00030000 00000000 0 0 6720
 +DRM debug in intel_crtc_mode_set: [ENCODER:13:DAC-13] set [MODE:0:1680x1050]
 +DRM debug in intel_calculate_wm: FIFO entries required for mode: 54
 +DRM debug in intel_calculate_wm: FIFO watermark level: 448
 +DRM debug in pineview_update_wm: DSPFW1 register is e0030f0f
 +DRM debug in intel_calculate_wm: FIFO entries required for mode: 58
 +DRM debug in intel_calculate_wm: FIFO watermark level: 449
 +DRM debug in intel_calculate_wm: FIFO entries required for mode: 328
 +DRM debug in intel_calculate_wm: FIFO watermark level: 174
 +DRM debug in intel_calculate_wm: FIFO entries required for mode: 332
 +DRM debug in intel_calculate_wm: FIFO watermark level: 175
 +DRM debug in pineview_update_wm: DSPFW3 register is 3f3f00ae
  DRM debug in pineview_update_wm: Self-refresh is enabled
  DRM debug in intel_connector_check_state: [CONNECTOR:8:LVDS-1]
  DRM debug in intel_connector_check_state: [CONNECTOR:12:VGA-1]
 @@ -372,13 +484,13 @@
  DRM debug in check_encoder_state: [ENCODER:13:DAC-13]
  DRM debug in check_crtc_state: [CRTC:5]
  DRM debug in check_crtc_state: [CRTC:7]
 -DRM debug in drm_framebuffer_reference: FB ID: 22
 +DRM debug in drm_framebuffer_reference: FB ID: 40
  DRM debug in intel_crtc_cursor_set: cursor off
 -DRM debug in intel_crtc_set_config: [CRTC:7] [FB:22] #connectors=1 (x y) (0 0)
 +DRM debug in intel_crtc_set_config: [CRTC:7] [FB:40] #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 20:"1024x768" 60 65000 1024 1048 1184 1344 768 771 777 806 0x8 0xa
 +DRM debug in drm_mode_debug_printmodeline: Modeline 38:"1024x768" 60 65000 1024 1048 1184 1344 768 771 777 806 0x8 0xa
  DRM debug in intel_set_config_compute_mode_changes: computed changes for [CRTC:7], mode_changed=1, fb_changed=0
  DRM debug in intel_modeset_stage_output_state: [CONNECTOR:8:LVDS-1] to [CRTC:7]
  DRM debug in intel_modeset_stage_output_state: [CONNECTOR:12:VGA-1] to [CRTC:5]
 @@ -405,21 +517,21 @@
  DRM debug in intel_panel_actually_set_backlight: set backlight PWM = 0
  DRM debug in drm_calc_vbltimestamp_from_scanoutpos: crtc 1: Noop due to uninitialized mode.
  DRM debug in i9xx_pfit_disable: disabling pfit, current: 0x80006668
 -DRM debug in intel_calculate_wm: FIFO entries required for mode: 24
 -DRM debug in intel_calculate_wm: FIFO watermark level: 478
 -DRM debug in pineview_update_wm: DSPFW1 register is ef030f0f
 -DRM debug in intel_calculate_wm: FIFO entries required for mode: 26
 -DRM debug in intel_calculate_wm: FIFO watermark level: 481
 -DRM debug in intel_calculate_wm: FIFO entries required for mode: 146
 -DRM debug in intel_calculate_wm: FIFO watermark level: 356
 -DRM debug in intel_calculate_wm: FIFO entries required for mode: 148
 -DRM debug in intel_calculate_wm: FIFO watermark level: 359
 -DRM debug in pineview_update_wm: DSPFW3 register is 7f3f0164
 +DRM debug in intel_calculate_wm: FIFO entries required for mode: 54
 +DRM debug in intel_calculate_wm: FIFO watermark level: 448
 +DRM debug in pineview_update_wm: DSPFW1 register is e0030f0f
 +DRM debug in intel_calculate_wm: FIFO entries required for mode: 58
 +DRM debug in intel_calculate_wm: FIFO watermark level: 449
 +DRM debug in intel_calculate_wm: FIFO entries required for mode: 328
 +DRM debug in intel_calculate_wm: FIFO watermark level: 174
 +DRM debug in intel_calculate_wm: FIFO entries required for mode: 332
 +DRM debug in intel_calculate_wm: FIFO watermark level: 175
 +DRM debug in pineview_update_wm: DSPFW3 register is 7f3f00ae
  DRM debug in pineview_update_wm: Self-refresh is enabled
  DRM debug in drm_calc_timestamping_constants: crtc 7: hwmode: htotal 1344, vtotal 806, vdisplay 768
  DRM debug in drm_calc_timestamping_constants: crtc 7: clock 65000 kHz framedur 16665600 linedur 20676, pixeldur 15
  DRM debug in drm_vblank_get: enabling vblank on crtc 1, ret: -22
 -DRM debug in i9xx_update_primary_plane: Writing base 00030000 00000000 0 0 4096
 +DRM debug in i9xx_update_primary_plane: Writing base 00030000 00000000 0 0 6720
  DRM debug in intel_crtc_mode_set: [ENCODER:9:LVDS-9] set [MODE:0:1024x768]
  DRM debug in pineview_update_wm: Self-refresh is disabled
  DRM debug in intel_panel_enable_backlight: pipe B
 @@ -430,15 +542,253 @@
  DRM debug in check_encoder_state: [ENCODER:13:DAC-13]
  DRM debug in check_crtc_state: [CRTC:5]
  DRM debug in check_crtc_state: [CRTC:7]
 -DRM debug in drm_framebuffer_reference: FB ID: 22
 -DRM debug in drm_framebuffer_unreference: FB ID: 22
 -DRM debug in drm_framebuffer_reference: FB ID: 22
 +DRM debug in drm_framebuffer_reference: FB ID: 40
 +DRM debug in drm_framebuffer_unreference: FB ID: 40
 +DRM debug in drm_framebuffer_reference: FB ID: 40
  wsdisplay0 at intelfb0 kbdmux 1: console (default, vt100 emulation), using wskbd0
  wsmux1: connecting to wsdisplay0
  Intel Pineview Integrated Graphics Device (miscellaneous display, revision 0x02) at pci0 dev 2 function 1 not configured

From: Nicolas Joly <njoly@pasteur.fr>
To: gnats-bugs@NetBSD.org
Cc: kern-bug-people@netbsd.org, gnats-admin@netbsd.org,
	netbsd-bugs@netbsd.org
Subject: Re: kern/49254: drmkms on pineview (intel)
Date: Sat, 4 Oct 2014 16:27:27 +0200

 On Sat, Oct 04, 2014 at 12:55:00PM +0000, Patrick Welche wrote:
 > >Number:         49254
 > >Category:       kern
 > >Synopsis:       drmkms on pineview (intel)
 > >Confidential:   no
 > >Severity:       non-critical
 > >Priority:       medium
 > >Responsible:    kern-bug-people
 > >State:          open
 > >Class:          sw-bug
 > >Submitter-Id:   net
 > >Arrival-Date:   Sat Oct 04 12:55:00 +0000 2014
 > >Originator:     Patrick Welche
 > >Release:        NetBSD 7.99.1
 > >Organization:
 > >Environment:
 > NetBSD-7.99.1/amd64
 > >Description:
 > Trying out drmkms intel on a "desktop"
 > 
 > cpu0: "Intel(R) Atom(TM) CPU D525   @ 1.80GHz"
 > Vendor Name: Intel (0x8086)
 > Device Name: Pineview Integrated Graphics Device (0xa001)
 > 
 > which has a VGA and a DVI socket. The DVI socket is connected to a
 > monitor detected by another ivy bridge desktop as doing
 > 
 > intelfb0: framebuffer at 0xffff80008a8a1000, size 1680x1050, depth 32, stride 6720
 > 
 > but when connected to the pineview, only manages
 > 
 > intelfb0: framebuffer at 0xffff800024b7b000, size 1024x768, depth 32, stride 4096
 > 
 > xdm does work and terminal switching works.

 I do see a similar problem on a DELL Optioplex 780, even without
 DRMKMS. Where X previously worked just fine in 1680x1050 mode, it now
 only start with 1024x768 resolution.

 NetBSD 7.99.1 (LYNCHE) #0: Fri Oct  3 14:13:42 CEST 2014
         njoly@lynche.sis.pasteur.fr:/local/src/NetBSD/obj.amd64/sys/arch/amd64/compile/LYNCHE
 [...]
 agp0 at pchb0: G4X-family chipset
 agp0: detected 32252k stolen memory
 agp0: aperture at 0xe0000000, size 0x10000000
 [...]
 i915drm0 at vga0: Intel Q45/Q43
 i915drm0: AGP at 0xe0000000 256MB
 i915drm0: Initialized i915 1.6.0 20080730
 Intel 82Q45 Integrated Graphics Device (miscellaneous display,revision 0x03) at pci0 dev 2 function 1 not configured
 [...]

 -- 
 Nicolas Joly

 Biology IT Center
 Institut Pasteur, Paris.

Responsible-Changed-From-To: kern-bug-people->riastradh
Responsible-Changed-By: riastradh@NetBSD.org
Responsible-Changed-When: Sat, 04 Oct 2014 15:44:27 +0000
Responsible-Changed-Why:
mine


From: Patrick Welche <prlw1@cam.ac.uk>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/49254: drmkms on pineview (intel)
Date: Tue, 7 Oct 2014 10:07:08 +0100

 It turns out that this is a hardware limitation! Roughly the DVI socket
 is limited to 1024x768, so the kernel probe is correct!

State-Changed-From-To: open->closed
State-Changed-By: prlw1@NetBSD.org
State-Changed-When: Tue, 07 Oct 2014 09:16:14 +0000
State-Changed-Why:
notabug - hardware limitation


From: David Laight <david@l8s.co.uk>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/49254: drmkms on pineview (intel)
Date: Sun, 7 Dec 2014 21:59:30 +0000

 On Tue, Oct 07, 2014 at 09:10:04AM +0000, Patrick Welche wrote:
 > Subject: Re: kern/49254: drmkms on pineview (intel)
 > 
 >  It turns out that this is a hardware limitation! Roughly the DVI socket
 >  is limited to 1024x768, so the kernel probe is correct!

 Seems a strange restriction.
 Does it work at the higher resolution if you ignore what the
 probe returned?

 	David

 -- 
 David Laight: david@l8s.co.uk

>Unformatted:
 4 Oct 2014 source kernel

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.