From: "Nautiyal, Ankit K" Subject: Re: [PATCH v3 4/8] drm: Add DRM client cap for aspect-ratio Date: Fri, 19 Jan 2018 11:14:59 +0530 Message-ID: References: <1515738096-16892-1-git-send-email-ankit.k.nautiyal@intel.com> <1515738096-16892-5-git-send-email-ankit.k.nautiyal@intel.com> <97bdff37-6073-f1af-822d-40cff479212f@linux.intel.com> <20180118160430.GZ10981@intel.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1069581532==" Return-path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by gabe.freedesktop.org (Postfix) with ESMTPS id 88FDA6E011 for ; Fri, 19 Jan 2018 05:45:02 +0000 (UTC) In-Reply-To: <20180118160430.GZ10981@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: =?UTF-8?B?VmlsbGUgU3lyasOkbMOk?= Cc: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org This is a multi-part message in MIME format. --===============1069581532== Content-Type: multipart/alternative; boundary="------------20C8D9BA0CE44ACEC95EEF92" This is a multi-part message in MIME format. --------------20C8D9BA0CE44ACEC95EEF92 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit On 1/18/2018 9:34 PM, Ville Syrjälä wrote: > On Thu, Jan 18, 2018 at 09:11:19PM +0530, ankit.k.nautiyal@intel.com wrote: >> Hi Marteen, >> >> Thanks for the review comments. Please find my comments in-line. >> >> >> On Thursday 18 January 2018 03:46 PM, Maarten Lankhorst wrote: >>> Op 12-01-18 om 07:21 schreef Nautiyal, Ankit K: >>>> From: Ankit Nautiyal >>>> >>>> A new drm client cap is required to enable user-space to advertise >>>> if it supports modes with aspect-ratio. Based on this cap value, the >>>> kernel will take a call on exposing the aspect ratio information in >>>> modes or not. >>>> >>>> This patch adds the client cap for aspect-ratio. >>>> >>>> Cc: Ville Syrjala >>>> Cc: Shashank Sharma >>>> Signed-off-by: Ankit Nautiyal >>> What's missing from the commit message is why this needs to be a flag that userspace needs to enable, >>> instead of something that only counts as an informative query. >>> >>> I gathered from danvet that blindly exposing things breaks existing userspace, so could that information be added to the commit? >> Agreed. This information indeed brings out the real reason for the patch. >> Will add the details in the commit message in the next patch-set. >> >>> Also missing IGT tests, would be nice we at least get some verification things work as expected. >> Currently this is being tested with the corresponding userspace changes >> in weston compositor, but a simple IGT on the same lines of kms_3d >> can be prepared. > A separate test to check that the different aspect ratio modes are > correctly enumerated, and filtered out when the cap is not set seems > like a good idea. > > As for actaully testing different aspect ratio modes, maybe just > intergrate that into testdisplay? Alright. Will modify the testdisplay to have a "test_aspect_ratio_modes", which will just set the aspect ratio modes from the connector modelist, to verify the basic functionality. kms_aspect_ratio to do detailed testing will be taken later. --------------20C8D9BA0CE44ACEC95EEF92 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 8bit



On 1/18/2018 9:34 PM, Ville Syrjälä wrote:
On Thu, Jan 18, 2018 at 09:11:19PM +0530, ankit.k.nautiyal@intel.com wrote:
Hi Marteen,

Thanks for the review comments. Please find my comments in-line.


On Thursday 18 January 2018 03:46 PM, Maarten Lankhorst wrote:
Op 12-01-18 om 07:21 schreef Nautiyal, Ankit K:
From: Ankit Nautiyal <ankit.k.nautiyal@intel.com>

A new drm client cap is required to enable user-space to advertise
if it supports modes with aspect-ratio. Based on this cap value, the
kernel will take a call on exposing the aspect ratio information in
modes or not.

This patch adds the client cap for aspect-ratio.

Cc: Ville Syrjala <ville.syrjala@linux.intel.com>
Cc: Shashank Sharma <shashank.sharma@intel.com>
Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
What's missing from the commit message is why this needs to be a flag that userspace needs to enable,
instead of something that only counts as an informative query.

I gathered from danvet that blindly exposing things breaks existing userspace, so could that information be added to the commit?
Agreed. This information indeed brings out the real reason for the patch.
Will add the details in the commit message in the next patch-set.

Also missing IGT tests, would be nice we at least get some verification things work as expected.
Currently this is being tested with the corresponding userspace changes 
in weston compositor, but a simple IGT on the same lines of kms_3d
can be prepared.
A separate test to check that the different aspect ratio modes are
correctly enumerated, and filtered out when the cap is not set seems
like a good idea.

As for actaully testing different aspect ratio modes, maybe just
intergrate that into testdisplay?
Alright. Will modify the testdisplay to have a "test_aspect_ratio_modes", which will just set the aspect ratio modes from the
connector modelist, to verify the basic functionality.
kms_aspect_ratio to do detailed testing will be taken later. 


    

--------------20C8D9BA0CE44ACEC95EEF92-- --===============1069581532== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1069581532==--