Bug 40011 - [SNB/IVB]testdisplay can't work with 32 bits depth of scanout buffer
Summary: [SNB/IVB]testdisplay can't work with 32 bits depth of scanout buffer
Status: CLOSED NOTABUG
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: XOrg git
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Chris Wilson
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-11 06:34 UTC by Hai
Modified: 2017-11-28 15:18 UTC (History)
3 users (show)

See Also:
i915 platform: IVB, SNB
i915 features:


Attachments

Description Hai 2011-08-11 06:34:20 UTC
Environment:
CPU:SNB
OS:Fedora 13 (32 bits)
Monitor: VGA
Kernel:    (drm-intel-next) 07b7ddd9b7f17a567e3ac2b33a4dffcb2a4524e0
====================================
Description:when I use testdisplay to test 32 bits depth with drm-intel-next branch, the application fails to set the mode. It's OK with drm-intel-fixes branch(9c54c0dd948d715ccfd79e97d852f80eeb53254a).

====================================
Reproduce step:
./testdisplay -d 32

====================================
Output
using depth 32
  1920x1200 60 1920 1968 2000 2080 1200 1203 1209 1235 0x9 0x48 154000
failed to set mode (1920x1200@60Hz): Invalid argument

====================================
dmesg log
[drm:drm_mode_getconnector], [CONNECTOR:5:?]
[drm:drm_mode_addfb], [FB:28]
[drm:drm_mode_setcrtc], [CRTC:3]
[drm:drm_mode_setcrtc], [CONNECTOR:5:VGA-1]
[drm:drm_crtc_helper_set_config], 
[drm:drm_crtc_helper_set_config], [CRTC:3] [FB:28] #connectors=1 (x y) (0 0)
[drm:drm_crtc_helper_set_config], [CONNECTOR:5:VGA-1] to [CRTC:3]
[drm:drm_crtc_helper_set_config], attempting to set mode from userspace
[drm:drm_mode_debug_printmodeline], Modeline 32:"1920x1200" 60 154000 1920 1968 2000 2080 1200 1203 1209 1235 0x48 0x9
[drm:drm_crtc_helper_set_mode], [CRTC:3]
[drm:intel_choose_pipe_bpp_dither], setting pipe bpc to 8 (max display bpc -1)
[drm:ironlake_crtc_mode_set], Mode for pipe A:
[drm:drm_mode_debug_printmodeline], Modeline 32:"1920x1200" 60 154000 1920 1968 2000 2080 1200 1203 1209 1235 0x48 0x9
[drm:intel_wait_for_vblank], vblank wait timed out
[drm:intel_pipe_set_base] *ERROR* failed to update base address
[drm:sandybridge_update_wm], FIFO watermarks For pipe A - plane 9, cursor: 6
[drm:ironlake_check_srwm], watermark 1: display plane 17, fbc lines 3, cursor 6
[drm:ironlake_check_srwm], watermark 2: display plane 22, fbc lines 3, cursor 6
[drm:ironlake_check_srwm], watermark 3: display plane 108, fbc lines 3, cursor 6
[drm:drm_crtc_helper_set_config] *ERROR* failed to set mode on [CRTC:3]
[drm:drm_mode_getconnector], [CONNECTOR:8:?]
[drm:drm_helper_probe_single_connector_modes], [CONNECTOR:8:HDMI-A-1]
[drm:drm_helper_probe_single_connector_modes], [CONNECTOR:8:HDMI-A-1] disconnected
[drm:drm_mode_getconnector], [CONNECTOR:8:?]
[drm:drm_helper_probe_single_connector_modes], [CONNECTOR:8:HDMI-A-1]
[drm:drm_helper_probe_single_connector_modes], [CONNECTOR:8:HDMI-A-1] disconnected
[drm:drm_mode_getconnector], [CONNECTOR:11:?]
[drm:drm_helper_probe_single_connector_modes], [CONNECTOR:11:DP-1]
[drm:intel_dp_aux_ch], dp_aux_ch timeout status 0x5143003e
[drm:intel_dp_aux_ch], dp_aux_ch timeout status 0x5143003e
[drm:intel_dp_aux_ch], dp_aux_ch timeout status 0x5143003e
[drm:intel_dp_detect], DPCD: 0000000000000000
[drm:drm_helper_probe_single_connector_modes], [CONNECTOR:11:DP-1] disconnected
[drm:drm_mode_getconnector], [CONNECTOR:11:?]
[drm:drm_helper_probe_single_connector_modes], [CONNECTOR:11:DP-1]
[drm:intel_dp_aux_ch], dp_aux_ch timeout status 0x5143003e
[drm:intel_dp_aux_ch], dp_aux_ch timeout status 0x5143003e
[drm:intel_dp_aux_ch], dp_aux_ch timeout status 0x5143003e
[drm:intel_dp_detect], DPCD: 0000000000000000
[drm:drm_helper_probe_single_connector_modes], [CONNECTOR:11:DP-1] disconnected
[drm:drm_crtc_helper_set_config], 
[drm:drm_crtc_helper_set_config], [CRTC:3] [FB:27] #connectors=1 (x y) (0 0)
[drm:drm_crtc_helper_set_config], [CONNECTOR:5:VGA-1] to [CRTC:3]
[drm:drm_crtc_helper_set_config], 
[drm:drm_crtc_helper_set_config], [CRTC:4] [NOFB]
[drm:drm_crtc_helper_set_config], [CONNECTOR:5:VGA-1] to [CRTC:3]
[drm:intel_ironlake_crt_detect_hotplug], ironlake hotplug adpa=0x3f40008, result 1
[drm:intel_crt_detect], CRT detected via hotplug
[drm:output_poll_execute], [CONNECTOR:5:VGA-1] status updated from 1 to 1
[drm:output_poll_execute], [CONNECTOR:8:HDMI-A-1] status updated from 2 to 2
[drm:intel_dp_aux_ch], dp_aux_ch timeout status 0x5143003e
[drm:intel_dp_aux_ch], dp_aux_ch timeout status 0x5143003e
[drm:intel_dp_aux_ch], dp_aux_ch timeout status 0x5143003e
[drm:intel_dp_detect], DPCD: 0000000000000000
[drm:output_poll_execute], [CONNECTOR:11:DP-1] status updated from 2 to 2
Comment 1 Hai 2011-08-13 07:44:09 UTC
commiit 3d208bef113657e27f8731921454d6da408b76c5 is the first bad commit. I have sent a patch for this bug.
Comment 2 Hai 2011-08-15 17:59:42 UTC
no hardware support for depth 32 output
Comment 3 Hector Velazquez 2017-11-28 15:18:16 UTC
Like future reference: 
This test has the same result on IVB QA

$sudo -E ./testdisplay -d 32

with this config:

IGT-Version: 1.20-g4c57ff4 (x86_64) (Linux: 4.14.0-drm-tip-ww47-commit-f710441+ x86_64)

Component: drm
    tag: libdrm-2.4.83-56-g18ffe48
    commit: 18ffe485cdfa41d48b6f2d3080cb990d28c27d57

Component: cairo
    tag: 1.15.8-57-g17e2abc
    commit: 17e2abc992b012ac3dceb2f66fba17d312ae6d77

Component: intel-gpu-tools
    tag: intel-gpu-tools-1.20-117-gf8f6db9
    commit: f8f6db9ced0061229018fa658cf1c80c56464686

Component: piglit
    tag: piglit-v1
    commit: 2ada920d5702aa86853066559e7f941f8f5f37f2


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.