Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp621855ybz; Wed, 15 Apr 2020 15:19:01 -0700 (PDT) X-Google-Smtp-Source: APiQypI+TpU7y60VYZvk9Fg8BkR451Xc9Qohe0bgmIwJxBPhtrucNrvmipDMTPUPHSOJyOxec44S X-Received: by 2002:a17:906:6014:: with SMTP id o20mr7144504ejj.357.1586989140883; Wed, 15 Apr 2020 15:19:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586989140; cv=none; d=google.com; s=arc-20160816; b=tfCh/UxNKAXbgoHgVSsG7TPGyAlhfdNAiy4RHsC9QxdXZ+5JLWoOrisb5nvXkdVxkW QuK/XNcDWbLiq3k0StfM86N/PbDRvBZP5abT5Z4ZNcXiWjodAOokA0k7bBtWN1+ZMGAs bj807WxuuACLX7hxKbN6QFiqcIYURSUk4mXQog7SBkwS0dG28WvXIHUP2Z9rj6AFmphD uKIpYT9DBzQ2eMTX8NSdZd/LlrGGCl9BQBRi4ozv2ugzNYNW4jCg/skLfQWo/p5YehBx xrrrNRcHxwPLz7JBG45x/ha8muflWJjDfkZXVVGALKrJfW5q5swbd71IwTmImA6mrXFE pm9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :organization:in-reply-to:subject:cc:to:from:ironport-sdr :ironport-sdr; bh=vin3lG1dlBXqfNYom+KyLOATkwm0fTNIU4jXeQWZTGQ=; b=jQvjG5AekGonPgy41bO7KaSLiuwqM6wCXxuvi2xgP7UBogEe/gArKOv2B+O0gFNuO+ 3SmMWkmKaG5UqOvTn2/Vde5LNpTpU9XIGSi55LHNjGg3qBQl39s3cckERfDd8gMEo5hh Mu/frdV+ASTUC2+wuRg7y1kIfgVns9v+pUJdCr+r5iYBCu5msY1wKS/lgztwudKzQl5c WKICBDbdGPIwQZi2OxCIFjbx3Q5ueaNVzmQk/1tjwWeGNbhVXq8sQjPUx8OYlFttHw3f VSMqf0oiyiNnRTZyzJoAkQFtMIgdkRY8unRDu6l9RS/I8ljHnJ/GZO/csxUcVSAwnugG EG2w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d89si12299785edd.216.2020.04.15.15.18.37; Wed, 15 Apr 2020 15:19:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2393694AbgDOHdf (ORCPT + 99 others); Wed, 15 Apr 2020 03:33:35 -0400 Received: from mga04.intel.com ([192.55.52.120]:58295 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728645AbgDOHdd (ORCPT ); Wed, 15 Apr 2020 03:33:33 -0400 IronPort-SDR: lVP2RT5KaAmS44dHVnXEKnLRERFlQ7yrrGG7AinkYXFRbnoPBsgkADVLEb/MM8XN4Mly+8R41f gnM4OKcazi3A== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Apr 2020 00:33:32 -0700 IronPort-SDR: 9LZ/+cGlJal2nOD6KrYU8t20P/pQz48b1fG4ws+BB68kWPKKEZGu8jsE4yebXpEkxDTLpQ0Kon FTvkvZc4Ea4A== X-IronPort-AV: E=Sophos;i="5.72,386,1580803200"; d="scan'208";a="427347028" Received: from ssolodk-mobl1.ccr.corp.intel.com (HELO localhost) ([10.252.48.37]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Apr 2020 00:33:28 -0700 From: Jani Nikula To: Yussuf Khalil , Daniel Vetter Cc: Simon Ser , David Airlie , "dri-devel\@lists.freedesktop.org" , "linux-kernel\@vger.kernel.org" , Thomas Zimmermann Subject: Re: [PATCH 5/5] drm/i915: Replace "Broadcast RGB" with "RGB quantization range" property In-Reply-To: <2cfe44c96818515939050ad19e9c248e50519be2.camel@pp3345.net> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <20200413214024.46500-1-dev@pp3345.net> <20200413214024.46500-6-dev@pp3345.net> <87ftd6mi3e.fsf@intel.com> <87d08amhy5.fsf@intel.com> <20200414123404.GT3456981@phenom.ffwll.local> <2cfe44c96818515939050ad19e9c248e50519be2.camel@pp3345.net> Date: Wed, 15 Apr 2020 10:33:25 +0300 Message-ID: <87r1wp5hkq.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 14 Apr 2020, Yussuf Khalil wrote: > On Tue, 2020-04-14 at 14:34 +0200, Daniel Vetter wrote: >> On Tue, Apr 14, 2020 at 02:21:06PM +0300, Jani Nikula wrote: >> > On Tue, 14 Apr 2020, Jani Nikula >> > wrote: >> > > On Mon, 13 Apr 2020, Simon Ser wrote: >> > > > On Monday, April 13, 2020 11:40 PM, Yussuf Khalil < >> > > > dev@pp3345.net> wrote: >> > > > >> > > > > DRM now has a globally available "RGB quantization range" >> > > > > connector >> > > > > property. i915's "Broadcast RGB" that fulfils the same >> > > > > purpose is now >> > > > > considered deprecated, so drop it in favor of the DRM >> > > > > property. >> > > > >> > > > For a UAPI point-of-view, I'm not sure this is fine. Some user- >> > > > space >> > > > might depend on this property, dropping it would break such >> > > > user-space. >> > > >> > > Agreed. >> > > >> > > > Can we make this property deprecated but still keep it for >> > > > backwards >> > > > compatibility? >> > > >> > > Would be nice to make the i915 specific property an "alias" for >> > > the new >> > > property, however I'm not sure how you'd make that happen. >> > > Otherwise >> > > juggling between the two properties is going to be a nightmare. >> > >> > Ah, the obvious easy choice is to use the property and enum names >> > already being used by i915 and gma500, and you have no problem. >> > Perhaps >> > they're not the names you'd like, but then looking at the total >> > lack of >> > consistency across property naming makes them fit right in. ;) >> >> Yeah if we don't have contradictory usage across drivers when >> modernizing >> these properties, then let's just stick with the names already there. >> It's >> not pretty, but works better since more userspace/internet howtos >> know how >> to use this stuff. >> -Daniel > > Note that i915's "Broadcast RGB" isn't the same as gma500's: i915 has an > "Automatic" option, whereas gma500 does not. Adding "Automatic" option that just defaults to "Full" in gma500 does not break existing userspace, but allows for extending it to do more clever things later. > Also, radeon has a property called > "output_csc" that fulfills a similar purpose. Looking at the code, though, it > seems that radeon does not adhere to the standard correctly (or I am missing > something). > > An alternative would be to leave the existing driver-specific properties and > change them to be pseudo-aliases for the "RGB quantization range" property. > This can be done by letting the drivers read from and write to the new property > when user-space tries to read or modify the driver's property. This way we could > retain full backwards compatibility for all drivers equally. > > What do you think? I'm obviously biased and predisposed to avoid adding extra complexity to i915 when it's not necessary. We'd have *two* connector properties for the same thing until the end of time, even if one is an alias for the other. BR, Jani. -- Jani Nikula, Intel Open Source Graphics Center