public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* IEGD to xf86-video-intel
@ 2014-01-14 22:52 Dragoș Carp
  2014-01-16  9:03 ` Jani Nikula
  2014-01-16  9:44 ` [PATCH] drm/i915: Get LVDS preferred mode from SDVO output timings if there's nothing else ville.syrjala
  0 siblings, 2 replies; 12+ messages in thread
From: Dragoș Carp @ 2014-01-14 22:52 UTC (permalink / raw)
  To: intel-gfx


[-- Attachment #1.1: Type: text/plain, Size: 3554 bytes --]

Hi all,

I'm trying to update an old linux board Advantech PCM-9361 (Intel Atom
N270+ 945GSE+ ICH7M) Linux 2.6.32 + IEGD to the newest opensuse 13.1: Linux
3.11.6 + xf86-video-intel 2.99.906.

The IEGD driver has some settings (Port Attributes) that cannot be set in
xf86-video-intel.
Is it possible to set them with the intel_reg_write utility? Are there any
reference documents describing the IEGD Port attributes?

Below is the xorg.conf with the iegd settings. The interesting lines are
"Attr/26" "18" for ports 2 and 4: the TFT panels are 18bbp color depth (the
panels don't provide any EDID info).
With the new configuration the colors on LVDS2 panel are wrong (probably
set to 24bbp) and LVDS1 panel is black although xrandr shows it as active.

Any ideas?

Regards,
Dragos Carp


Section "Device"
    Identifier "Intel_IEGD-0"
    Driver     "iegd"
    VendorName "Intel(R) DEG"
    BoardName  "Embedded Graphics"
    BusID      "0:2:0"
    Screen      0
    Option     "PcfVersion"            "1792"
    Option     "ConfigId"              "1"
    Option     "ALL/1/name"                   "test4"
    Option     "PortDrivers"     "sdvo lvds"
    Option     "ALL/1/General/PortOrder"      "24000"
    Option     "ALL/1/General/DisplayConfig"  "2"
    Option     "ALL/1/General/DisplayDetect"  "0"
    Option     "ALL/1/Port/4/General/name"                   "lvds"
    Option     "ALL/1/Port/4/General/EdidAvail"      "0"
    Option     "ALL/1/Port/4/General/EdidNotAvail"   "4"
    Option     "ALL/1/Port/4/General/Rotation"       "0"
    Option     "ALL/1/Port/4/General/Edid"           "0"
    Option     "ALL/1/Port/4/Attr/26"                "18"
    Option     "ALL/1/Port/4/Attr/27"                "1"
    Option     "ALL/1/Port/4/Attr/43"                "7"
    Option     "ALL/1/Port/4/Attr/49"                "0"
    Option     "ALL/1/Port/4/Dtd/1/PixelClock"       "148500"
    Option     "ALL/1/Port/4/Dtd/1/HorzActive"       "1920"
    Option     "ALL/1/Port/4/Dtd/1/HorzSync"         "55"
    Option     "ALL/1/Port/4/Dtd/1/HorzSyncPulse"    "88"
    Option     "ALL/1/Port/4/Dtd/1/HorzBlank"        "280"
    Option     "ALL/1/Port/4/Dtd/1/VertActive"       "1080"
    Option     "ALL/1/Port/4/Dtd/1/VertSync"         "3"
    Option     "ALL/1/Port/4/Dtd/1/VertSyncPulse"    "5"
    Option     "ALL/1/Port/4/Dtd/1/VertBlank"        "45"
    Option     "ALL/1/Port/4/Dtd/1/Flags"            "0x8020000"
    Option     "ALL/1/Port/2/General/name"                   "sdvo"
    Option     "ALL/1/Port/2/General/EdidAvail"      "0"
    Option     "ALL/1/Port/2/General/EdidNotAvail"   "4"
    Option     "ALL/1/Port/2/General/Rotation"       "0"
    Option     "ALL/1/Port/2/General/Edid"           "0"
    Option     "ALL/1/Port/2/Attr/26"                "18"
    Option     "ALL/1/Port/2/Attr/27"                "1"
    Option     "ALL/1/Port/2/Attr/43"                "7"
    Option     "ALL/1/Port/2/Attr/49"                "0"
    Option     "ALL/1/Port/2/Dtd/1/PixelClock"       "148500"
    Option     "ALL/1/Port/2/Dtd/1/HorzActive"       "1920"
    Option     "ALL/1/Port/2/Dtd/1/HorzSync"         "55"
    Option     "ALL/1/Port/2/Dtd/1/HorzSyncPulse"    "88"
    Option     "ALL/1/Port/2/Dtd/1/HorzBlank"        "280"
    Option     "ALL/1/Port/2/Dtd/1/VertActive"       "1080"
    Option     "ALL/1/Port/2/Dtd/1/VertSync"         "3"
    Option     "ALL/1/Port/2/Dtd/1/VertSyncPulse"    "5"
    Option     "ALL/1/Port/2/Dtd/1/VertBlank"        "45"
    Option     "ALL/1/Port/2/Dtd/1/Flags"            "0x8020000"
EndSection

[-- Attachment #1.2: Type: text/html, Size: 5467 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 12+ messages in thread
* IEGD to xf86-video-intel
@ 2014-01-15  9:31 Dragoș Carp
  0 siblings, 0 replies; 12+ messages in thread
From: Dragoș Carp @ 2014-01-15  9:31 UTC (permalink / raw)
  To: intel-gfx


[-- Attachment #1.1: Type: text/plain, Size: 3557 bytes --]

Hi all,

I'm trying to update an old linux board Advantech PCM-9361 (Intel Atom
N270+ 945GSE+ ICH7M) Linux 2.6.32 + IEGD to the newest opensuse 13.1: Linux
3.11.6 + xf86-video-intel 2.99.906.

The IEGD driver has some settings (Port Attributes) that cannot be set in
xf86-video-intel.

Is it possible to set them with the intel_reg_write utility? Are there any
reference documents describing the IEGD Port attributes?

Below is the xorg.conf with the iegd settings. The interesting lines are
"Attr/26" "18" for ports 2 and 4: the TFT panels are 18bbp color depth (the
panels don't provide any EDID info).

With the new configuration the colors on LVDS2 panel are wrong (probably
set to 24bbp) and LVDS1 panel is black although xrandr shows it as active.

Any ideas?

Regards,

Dragos Carp

Section "Device"
    Identifier "Intel_IEGD-0"
    Driver     "iegd"
    VendorName "Intel(R) DEG"
    BoardName  "Embedded Graphics"
    BusID      "0:2:0"
    Screen      0
    Option     "PcfVersion"            "1792"
    Option     "ConfigId"              "1"
    Option     "ALL/1/name"                   "test4"
    Option     "PortDrivers"     "sdvo lvds"
    Option     "ALL/1/General/PortOrder"      "24000"
    Option     "ALL/1/General/DisplayConfig"  "2"
    Option     "ALL/1/General/DisplayDetect"  "0"
    Option     "ALL/1/Port/4/General/name"                   "lvds"
    Option     "ALL/1/Port/4/General/EdidAvail"      "0"

    Option     "ALL/1/Port/4/General/EdidNotAvail"   "4"
    Option     "ALL/1/Port/4/General/Rotation"       "0"
    Option     "ALL/1/Port/4/General/Edid"           "0"
    Option     "ALL/1/Port/4/Attr/26"                "18"
    Option     "ALL/1/Port/4/Attr/27"                "1"
    Option     "ALL/1/Port/4/Attr/43"                "7"
    Option     "ALL/1/Port/4/Attr/49"                "0"
    Option     "ALL/1/Port/4/Dtd/1/PixelClock"       "148500"
    Option     "ALL/1/Port/4/Dtd/1/HorzActive"       "1920"
    Option     "ALL/1/Port/4/Dtd/1/HorzSync"         "55"
    Option     "ALL/1/Port/4/Dtd/1/HorzSyncPulse"    "88"
    Option     "ALL/1/Port/4/Dtd/1/HorzBlank"        "280"
    Option     "ALL/1/Port/4/Dtd/1/VertActive"       "1080"
    Option     "ALL/1/Port/4/Dtd/1/VertSync"         "3"
    Option     "ALL/1/Port/4/Dtd/1/VertSyncPulse"    "5"
    Option     "ALL/1/Port/4/Dtd/1/VertBlank"        "45"
    Option     "ALL/1/Port/4/Dtd/1/Flags"            "0x8020000"
    Option     "ALL/1/Port/2/General/name"                   "sdvo"
    Option     "ALL/1/Port/2/General/EdidAvail"      "0"
    Option     "ALL/1/Port/2/General/EdidNotAvail"   "4"
    Option     "ALL/1/Port/2/General/Rotation"       "0"
    Option     "ALL/1/Port/2/General/Edid"           "0"
    Option     "ALL/1/Port/2/Attr/26"                "18"
    Option     "ALL/1/Port/2/Attr/27"                "1"
    Option     "ALL/1/Port/2/Attr/43"                "7"
    Option     "ALL/1/Port/2/Attr/49"                "0"
    Option     "ALL/1/Port/2/Dtd/1/PixelClock"       "148500"
    Option     "ALL/1/Port/2/Dtd/1/HorzActive"       "1920"
    Option     "ALL/1/Port/2/Dtd/1/HorzSync"         "55"
    Option     "ALL/1/Port/2/Dtd/1/HorzSyncPulse"    "88"
    Option     "ALL/1/Port/2/Dtd/1/HorzBlank"        "280"
    Option     "ALL/1/Port/2/Dtd/1/VertActive"       "1080"
    Option     "ALL/1/Port/2/Dtd/1/VertSync"         "3"
    Option     "ALL/1/Port/2/Dtd/1/VertSyncPulse"    "5"
    Option     "ALL/1/Port/2/Dtd/1/VertBlank"        "45"
    Option     "ALL/1/Port/2/Dtd/1/Flags"            "0x8020000"
EndSection

[-- Attachment #1.2: Type: text/html, Size: 5416 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: IEGD to xf86-video-intel
@ 2014-01-15 20:49 Dragoș Carp
  0 siblings, 0 replies; 12+ messages in thread
From: Dragoș Carp @ 2014-01-15 20:49 UTC (permalink / raw)
  To: intel-gfx

I noticed that when LVDS1 output is activated (xrand --output LVDS1
--auto) the i915 driver crashes with the backtrace (drm.debug=0xe)
bellow:

Is this a bug in i915 driver?

Thanks,
Dragos


[ 3101.097541] [drm:i915_irq_handler], pipe B underrun
[ 3101.102081] [drm:intel_release_load_detect_pipe],
[CONNECTOR:13:SVIDEO-1], [ENCODER:14:TV-14]
[ 3101.102104] [drm:intel_modeset_affected_pipes], set mode pipe
masks: modeset: 0, prepare: 0, disable: 1
[ 3101.105596] [drm:i915_irq_handler], pipe B underrun
[ 3101.107135] [drm:i915_irq_handler], pipe B underrun
[ 3101.142310] [drm:i915_irq_handler], pipe B underrun
[ 3101.145100] [drm:i9xx_get_fifo_size], FIFO size - (0x00001d9c) A: 28
[ 3101.145110] [drm:intel_calculate_wm], FIFO entries required for mode: 47
[ 3101.145115] [drm:intel_calculate_wm], FIFO watermark level: -21
[ 3101.145120] [drm:i9xx_get_fifo_size], FIFO size - (0x00001d9c) B: 31
[ 3101.145126] [drm:i9xx_update_wm], FIFO watermarks - A: 1, B: 29
[ 3101.145131] [drm:i9xx_update_wm], self-refresh entries: 120
[ 3101.145136] [drm:i9xx_update_wm], Setting FIFO watermarks - A: 1,
B: 29, C: 2, SR 7
[ 3101.145142] [drm:i9xx_update_wm], memory self refresh enabled
[ 3101.145155] [drm:intel_connector_check_state], [CONNECTOR:5:LVDS-1]
[ 3101.145164] [drm:intel_sdvo_debug_write], SDVOB: W: 04
           (SDVO_CMD_GET_ACTIVE_OUTPUTS)
[ 3101.147883] [drm:intel_sdvo_read_response], SDVOB: R: (Success) 00 00
[ 3101.150814] [drm:check_encoder_state], [ENCODER:6:LVDS-6]
[ 3101.150823] [drm:check_encoder_state], [ENCODER:10:DAC-10]
[ 3101.150830] [drm:check_encoder_state], [ENCODER:11:LVDS-11]
[ 3101.150838] [drm:intel_sdvo_debug_write], SDVOB: W: 04
           (SDVO_CMD_GET_ACTIVE_OUTPUTS)
[ 3101.152554] [drm:intel_sdvo_read_response], SDVOB: R: (Success)
[ 3101.153812] [drm:i915_irq_handler],
[ 3101.153818] pipe B underrun
[ 3101.154564]  00
[ 3101.154715] [drm:i915_irq_handler],
[ 3101.154724] pipe B underrun
[ 3101.155640]  00
[ 3101.155651] [drm:check_encoder_state], [ENCODER:14:TV-14]
[ 3101.155659] [drm:check_crtc_state], [CRTC:3]
[ 3101.155670] [drm:check_crtc_state], [CRTC:4]
[ 3101.155687] [drm:intel_pipe_config_compare] *ERROR* mismatch in
adjusted_mode.flags (expected 1, found 0)
[ 3101.155690] ------------[ cut here ]------------
[ 3101.155759] WARNING: CPU: 0 PID: 1456 at
/home/abuild/rpmbuild/BUILD/kernel-desktop-3.11.6/linux-3.11/drivers/gpu/drm/i915/intel_display.c:8292
check_crtc_state+0x588/0xb10 [i915]()
[ 3101.155764] pipe state doesn't match!
[ 3101.155768] Modules linked in: snd_hda_codec_realtek snd_hda_intel
snd_hda_codec snd_hwdep snd_pcm iTCO_wdt iTCO_vendor_support ppdev
snd_seq snd_timer snd_seq_device snd coretemp pcspkr serio_raw
i2c_i801 lpc_ich mfd_core r8169 mii soundcore snd_page_alloc
parport_pc parport acpi_cpufreq mperf sg dm_mod autofs4 i915
drm_kms_helper drm i2c_algo_bit video fan thermal button processor
thermal_sys scsi_dh_emc scsi_dh_alua scsi_dh_rdac scsi_dh_hp_sw
scsi_dh ata_generic ata_piix
[ 3101.155907] CPU: 0 PID: 1456 Comm: X Tainted: G        W 3.11.6-4-desktop #1
[ 3101.155915] Hardware name: PhoenixAward 945GSE/945GSE, BIOS 6.00 PG
10/20/2009
[ 3101.155923]  00000009 c071feab f6667970 c024394e f7d44887 f6667988
000005b0 f7d3bd5c
[ 3101.155947]  00002064 f7cf6918 f7cf6918 f6585000 f658564c 00000001
f65292c8 c02439a3
[ 3101.155970]  00000009 f6667970 f7d44887 f6667988 f7cf6918 f7d3bd5c
00002064 f7d44887
[ 3101.155995] Call Trace:
[ 3101.156082]  [<c0205139>] try_stack_unwind+0x179/0x190
[ 3101.156122]  [<c0203f17>] dump_trace+0x47/0xf0
[ 3101.156151]  [<c020518f>] show_trace_log_lvl+0x3f/0x50
[ 3101.156170]  [<c0204010>] show_stack_log_lvl+0x50/0xd0
[ 3101.156191]  [<c02051df>] show_stack+0x1f/0x40
[ 3101.156215]  [<c071feab>] dump_stack+0x48/0x76
[ 3101.156238]  [<c024394e>] warn_slowpath_common+0x7e/0xa0
[ 3101.156260]  [<c02439a3>] warn_slowpath_fmt+0x33/0x40
[ 3101.156334]  [<f7cf6918>] check_crtc_state+0x588/0xb10 [i915]
[ 3101.156638]  [<f7d00d14>] intel_modeset_check_state+0x294/0x770 [i915]
[ 3101.156956]  [<f7d0125a>] intel_set_mode+0x2a/0x40 [i915]
[ 3101.157337]  [<f7d0132d>] intel_release_load_detect_pipe+0xbd/0xf0 [i915]
[ 3101.157670]  [<f7d2104e>] intel_tv_detect+0x2ae/0x450 [i915]
[ 3101.158157]  [<f7b252d8>]
drm_helper_probe_single_connector_modes+0x1b8/0x350 [drm_kms_helper]
[ 3101.158228]  [<f7bd1896>] drm_mode_getconnector+0x306/0x350 [drm]
[ 3101.158416]  [<f7bc4b9e>] drm_ioctl+0x3fe/0x4a0 [drm]
[ 3101.158455]  [<c0368c7b>] do_vfs_ioctl+0x30b/0x520
[ 3101.158505]  [<c0368ef0>] SyS_ioctl+0x60/0x80
[ 3101.158523]  [<c072c1fd>] sysenter_do_call+0x12/0x28
[ 3101.158573]  [<b76e4424>] 0xb76e4423
[ 3101.158580] ---[ end trace 6861a3fb91c82238 ]---
[ 3101.158589] [drm:intel_dump_pipe_config], [CRTC:4][hw state] config
for pipe B
[ 3101.158593] [drm:intel_dump_pipe_config], cpu_transcoder: B
[ 3101.158598] [drm:intel_dump_pipe_config], pipe bpp: 0, dithering: 0
[ 3101.158605] [drm:intel_dump_pipe_config], fdi/pch: 0, lanes: 0,
gmch_m: 0, gmch_n: 0, link_m: 0, link_n: 0, tu: 0
[ 3101.158609] [drm:intel_dump_pipe_config], requested mode:
[ 3101.158620] [drm:drm_mode_debug_printmodeline], Modeline 0:"" 0 0
1920 0 0 0 1080 0 0 0 0x0 0x0
[ 3101.158623] [drm:intel_dump_pipe_config], adjusted mode:
[ 3101.158632] [drm:drm_mode_debug_printmodeline], Modeline 0:"" 0 0 0
0 0 0 0 0 0 0 0x0 0xa
[ 3101.158640] [drm:intel_dump_pipe_config], gmch pfit: control:
0x80000448, ratios: 0xe000e000, lvds border: 0x00008000
[ 3101.158645] [drm:intel_dump_pipe_config], pch pfit: pos:
0x00000000, size: 0x00000000
[ 3101.158649] [drm:intel_dump_pipe_config], ips: 0
[ 3101.158655] [drm:intel_dump_pipe_config], [CRTC:4][sw state] config
for pipe B
[ 3101.158659] [drm:intel_dump_pipe_config], cpu_transcoder: B
[ 3101.158664] [drm:intel_dump_pipe_config], pipe bpp: 18, dithering: 1
[ 3101.158671] [drm:intel_dump_pipe_config], fdi/pch: 0, lanes: 0,
gmch_m: 0, gmch_n: 0, link_m: 0, link_n: 0, tu: 0
[ 3101.158675] [drm:intel_dump_pipe_config], requested mode:
[ 3101.158687] [drm:drm_mode_debug_printmodeline], Modeline 0:"" 0
148500 1920 1975 2063 2200 1080 1083 1088 1125 0x0 0x5
[ 3101.158691] [drm:intel_dump_pipe_config], adjusted mode:
[ 3101.158702] [drm:drm_mode_debug_printmodeline], Modeline 0:"" 0
65000 1024 1048 1184 1344 768 771 777 806 0x0 0x5
[ 3101.158709] [drm:intel_dump_pipe_config], gmch pfit: control:
0x80000448, ratios: 0xe001e000, lvds border: 0x00008000
[ 3101.158714] [drm:intel_dump_pipe_config], pch pfit: pos:
0x00000000, size: 0x00000000
[ 3101.158718] [drm:intel_dump_pipe_config], ips: 0
[ 3101.158729] [drm:drm_helper_probe_single_connector_modes],
[CONNECTOR:13:SVIDEO-1] disconnected
[ 3101.164570] [drm:intel_panel_get_backlight], get backlight PWM = 15625
[ 3101.164651] [drm:intel_panel_get_max_backlight], max backlight PWM = 15625
[ 3101.164660] [drm:intel_panel_actually_set_backlight], set backlight PWM = 0
[ 3101.164766] [drm:drm_mode_setcrtc], [CRTC:4]
[ 3101.164776] [drm:intel_crtc_set_config], [CRTC:4] [NOFB]
[ 3101.164788] [drm:intel_modeset_stage_output_state],
[CONNECTOR:5:LVDS-1] to [NOCRTC]
[ 3101.164795] [drm:intel_modeset_stage_output_state], encoder
changed, full mode switch
[ 3101.164802] [drm:intel_modeset_stage_output_state], crtc changed,
full mode switch
[ 3101.164812] [drm:intel_modeset_affected_pipes], set mode pipe
masks: modeset: 0, prepare: 0, disable: 2
[ 3101.164823] [drm:intel_panel_actually_set_backlight], set backlight PWM = 0
[ 3101.223259] [drm:i915_irq_handler], pipe B underrun
[ 3101.239679] [drm:i915_irq_handler], pipe B underrun
[ 3101.269557] [drm:i915_irq_handler], pipe B underrun
[ 3101.293641] [drm:i915_irq_handler], pipe B underrun
[ 3101.408006] [drm:i915_irq_handler], pipe B underrun
[ 3101.451079] [drm:i9xx_pfit_disable], disabling pfit, current: 0x80000448
[ 3101.451093] [drm:i9xx_get_fifo_size], FIFO size - (0x00001d9c) A: 28
[ 3101.451100] [drm:i9xx_get_fifo_size], FIFO size - (0x00001d9c) B: 31
[ 3101.451105] [drm:i9xx_update_wm], FIFO watermarks - A: 26, B: 29
[ 3101.451110] [drm:i9xx_update_wm], Setting FIFO watermarks - A: 26,
B: 29, C: 2, SR 1
[ 3101.451116] [drm:i9xx_update_wm], memory self refresh disabled
[ 3101.451132] [drm:intel_sdvo_debug_write], SDVOB: W: 04
           (SDVO_CMD_GET_ACTIVE_OUTPUTS)
[ 3101.452803] [drm:intel_sdvo_read_response], SDVOB: R: (Success) 00 00
[ 3101.455698] [drm:check_encoder_state], [ENCODER:6:LVDS-6]
[ 3101.455706] [drm:check_encoder_state], [ENCODER:10:DAC-10]
[ 3101.455712] [drm:check_encoder_state], [ENCODER:11:LVDS-11]
[ 3101.455719] [drm:intel_sdvo_debug_write], SDVOB: W: 04
           (SDVO_CMD_GET_ACTIVE_OUTPUTS)
[ 3101.457421] [drm:intel_sdvo_read_response], SDVOB: R: (Success) 00 00
[ 3101.460305] [drm:check_encoder_state], [ENCODER:14:TV-14]
[ 3101.460313] [drm:check_crtc_state], [CRTC:3]
[ 3101.460319] [drm:check_crtc_state], [CRTC:4]
[ 3101.463615] [drm:i915_irq_handler], pipe B underrun

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2014-01-16 14:37 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-14 22:52 IEGD to xf86-video-intel Dragoș Carp
2014-01-16  9:03 ` Jani Nikula
2014-01-16 12:41   ` Dragos Carp
2014-01-16 13:07     ` Jani Nikula
2014-01-16 14:37       ` Dragos Carp
2014-01-16 13:28     ` Ville Syrjälä
2014-01-16 14:00       ` Daniel Vetter
2014-01-16 14:11         ` Ville Syrjälä
2014-01-16 14:34           ` Daniel Vetter
2014-01-16  9:44 ` [PATCH] drm/i915: Get LVDS preferred mode from SDVO output timings if there's nothing else ville.syrjala
  -- strict thread matches above, loose matches on Subject: below --
2014-01-15  9:31 IEGD to xf86-video-intel Dragoș Carp
2014-01-15 20:49 Dragoș Carp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox