Bug 93978 - [APL] testdisplay returns fail and error when testing MIPI color depth
Summary: [APL] testdisplay returns fail and error when testing MIPI color depth
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: highest normal
Assignee: Mika Kahola
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-03 09:06 UTC by cprigent
Modified: 2017-07-24 22:43 UTC (History)
5 users (show)

See Also:
i915 platform: BXT
i915 features: display/DSI


Attachments
dmesg (525.65 KB, text/plain)
2016-02-03 09:06 UTC, cprigent
no flags Details
dmesg_mipi.log (207.90 KB, text/plain)
2016-04-07 21:09 UTC, Humberto Israel Perez Rodriguez
no flags Details
serial_output.log (8.75 KB, text/plain)
2016-04-07 21:09 UTC, Humberto Israel Perez Rodriguez
no flags Details

Description cprigent 2016-02-03 09:06:39 UTC
Created attachment 121483 [details]
dmesg

BXT-P : APL RVP 1A FAB1
BXT SOC : A0
Processor : Intel (R) Genuinen processor
CPU QDF QKG2

Software
BIOS : APLK_IFWI_X64_R_2016_02_4_00 (119.10)
KSC : 1.06
Kernel 4.4.0 from https://github.com/mkahola/drm-intel-mika

APL-BXT-CNL MIPI AUO Non touch Panel

Steps:
------
1. Execute command: testdisplay -d 18
2. Execute command: testdisplay -d 24

Actual result:
--------------
1. Test is fail, command returns:
(testdisplay:1019) WARNING: no hotplug support on this platform
(testdisplay:1019) igt-fb-CRITICAL: Test assertion failure function igt_bpp_depth_to_drm_format, file igt_fb.c:1101:
(testdisplay:1019) igt-fb-CRITICAL: Failed assertion: 0
(testdisplay:1019) igt-fb-CRITICAL: can't find drm format with bpp=32, depth=18
Test (null) failed.
**** DEBUG ****
(testdisplay:1019) igt-core-DEBUG: Test requirement passed: !igt_run_in_simulation()
(testdisplay:1019) INFO: using depth 18
(testdisplay:1019) drmtest-DEBUG: Test requirement passed: fd >= 0
(testdisplay:1019) igt-kms-DEBUG: VT: graphics mode set (mode was 0x0)
(testdisplay:1019) WARNING: no hotplug support on this platform
(testdisplay:1019) igt-fb-CRITICAL: Test assertion failure function igt_bpp_depth_to_drm_format, file igt_fb.c:1101:
(testdisplay:1019) igt-fb-CRITICAL: Failed assertion: 0
(testdisplay:1019) igt-fb-CRITICAL: can't find drm format with bpp=32, depth=18
****  END  ****
Stack trace:
  #0 [__igt_fail_assert+0x101]
  #1 [igt_bpp_depth_to_drm_format+0x7a]
  #2 [update_display+0x225]
  #3 [main+0x6d0]
  #4 [__libc_start_main+0xf0]
  #5 [_start+0x29]
  #6 [<unknown>+0x29]
FAIL (-1.000s)

2. Test is Pass but screen indicates invalid

Expected results
-----------------
Tests are Pass
Comment 1 Jani Nikula 2016-03-22 08:19:34 UTC
Please try current drm-intel-nightly, some relevant patches were just merged yesterday.
Comment 2 Jani Nikula 2016-03-22 08:56:41 UTC
(In reply to Jani Nikula from comment #1)
> Please try current drm-intel-nightly, some relevant patches were just merged
> yesterday.

I mean drm-intel-nightly plus http://patchwork.freedesktop.org/patch/msgid/1455715086-25682-1-git-send-email-jani.nikula@intel.com
Comment 3 Jani Nikula 2016-03-29 10:19:02 UTC
(In reply to Jani Nikula from comment #2)
> (In reply to Jani Nikula from comment #1)
> > Please try current drm-intel-nightly, some relevant patches were just merged
> > yesterday.
> 
> I mean drm-intel-nightly plus
> http://patchwork.freedesktop.org/patch/msgid/1455715086-25682-1-git-send-
> email-jani.nikula@intel.com

That's been merged too. Please try current nightly.
Comment 4 cprigent 2016-04-07 09:53:00 UTC
Hi Humberto,
Please confirm that it is fixed with fresh kernel from nightly.
Thnaks.
Comment 5 Humberto Israel Perez Rodriguez 2016-04-07 18:50:05 UTC
(In reply to Jani Nikula from comment #2)
> (In reply to Jani Nikula from comment #1)
> > Please try current drm-intel-nightly, some relevant patches were just merged
> > yesterday.
> 
> I mean drm-intel-nightly plus
> http://patchwork.freedesktop.org/patch/msgid/1455715086-25682-1-git-send-
> email-jani.nikula@intel.com

Hi Jani :

with this commit the DUT does not boot iwth MIPI panel.

i've tried as well with latest drm-intel-nightly commits, to be specific please see the below information regarding the commits that i tried, but this commits does not boot to ubuntu with MIPI panel, so i was wondering if i need a specific commit for MIPI panel on nightly tree ?

commit 6b0bf94b75318abeab4c95fbf0507bc54d8959be
Author: Jani Nikula <jani.nikula@intel.com>
Date: Thu Apr 7 11:30:21 2016 +0300
drm-intel-nightly: 2016y-04m-07d-08h-29m-47s UTC integration manifest

commit 72a18a7b81a4d12966eaf1c362c89a88ce6e5f54
Author: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Date: Thu Apr 7 14:51:46 2016 +0300
drm-intel-nightly: 2016y-04m-07d-11h-51m-13s UTC integration manifest

commit 851708c7e97537ed618fadbe5d342eaf8fa5146d
Author: Jani Nikula <jani.nikula@intel.com>
Date: Thu Apr 7 16:56:31 2016 +0300
drm-intel-nightly: 2016y-04m-07d-13h-56m-00s UTC integration manifest


the last functional kernel on MIPI is:

commit 509569d0624432712cc9b1438a01d9afeedb866b
Author: Ramalingam C <ramalingam.c@intel.com>
Date: Wed Mar 30 19:23:18 2016 +0530

drm/i915/BXT: Get pipe conf from the port registers

At BXT DSI, PIPE registers are inactive. So we can't get the
PIPE's mode parameters from them. The possible option is
retriving them from the PORT registers.
The required changes are added for BXT in intel_dsi_get_config
(encoder->get_config).
v2: Addressed the Jani's comments
removed the redundant call to encoder>get_config
-read bpp from port register
removed retrival of src_size from encoder>get_config
Signed-off-by: Ramalingam C <ramalingam.c@intel.com>
Signed-off-by: Uma Shankar <uma.shankar@intel.com>

branch : master
Tree : drm-intel-mika
Comment 6 Humberto Israel Perez Rodriguez 2016-04-07 21:08:41 UTC
attached dmesg_mipi.log and serial_output.log
Comment 7 Humberto Israel Perez Rodriguez 2016-04-07 21:09:00 UTC
Created attachment 122799 [details]
dmesg_mipi.log
Comment 8 Humberto Israel Perez Rodriguez 2016-04-07 21:09:14 UTC
Created attachment 122800 [details]
serial_output.log
Comment 9 Luis Botello 2016-04-19 17:08:28 UTC
System is not booting up with the following configuration:

Hardware Configuration
===========================================
Platform: BXT - P (APL)
CPU : CPU family   Other
CPU information:   06/5c
Motherboard model  Apollo Lake
Motherboard type    NOTEBOOK Hand Held
Motherboard manufacturer Intel Corp.

Software Configuration
================================================
Linux distribution: Ubuntu 15.10 64 bits
Kernel: drm-intel-nightly 4.6.0-rc3_d9131d6 from http://cgit.freedesktop.org/drm-intel/
commit d9131d62d18ba94fb3ca019f1156c22b5f4ce23c
Author: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Date:   Fri Apr 15 14:54:26 2016 +0100
drm-intel-nightly: 2016y-04m-15d-13h-53m-44s UTC integration manifestdrm: tag libdrm-2.4.66-33-gf884af9
      libdrm 2.4.67-25 cc9a53f from git://git.freedesktop.org/git/mesa/drm
mesa 11.1.2 7bcd827 from git://git.freedesktop.org/git/mesa/mesa
cairo 1.15.2 db8a7f1 from git://git.freedesktop.org/git/cairo
xorg/xserver 1.18.0-274 8437955 from git://git.freedesktop.org/git/xorg/xserver
xf86-video-intel 2.99.917-634 81029be from git://git.freedesktop.org/git/xorg/driver/xf86-video-intel
vaapi/libva 1.7.0-1 2339d10 from git://git.freedesktop.org/git/vaapi/libva
vaapi/intel-driver 1.7.0-8 2c1bec0 from git://git.freedesktop.org/git/vaapi/intel-driver
intel-gpu-tool 1.14 7bd2ac6 from http://anongit.freedesktop.org/git/xorg/app/intel-gpu-tools.git
rendercheck master 44032a7 from http://anongit.freedesktop.org/git/xorg/app/rendercheck.git
Comment 10 yann 2016-04-29 10:54:39 UTC
Milestone feature blocker so increasing priority
Comment 11 Jani Nikula 2016-06-07 06:17:22 UTC
testdisplay -d 24 works fine on a 24 bpp panel.


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.