Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4794667pxj; Wed, 9 Jun 2021 01:54:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2wBXULnmBQi5q3Q7mt1nwTY1eOs4NyCTgWy/mGec7Ki6UfaWJM7Nvk5ghxRqF4wjmlJsf X-Received: by 2002:a17:906:b104:: with SMTP id u4mr27356087ejy.211.1623228843253; Wed, 09 Jun 2021 01:54:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623228843; cv=none; d=google.com; s=arc-20160816; b=kQAIpFu8w2ELOjoXNFp3DOF/kDRJFY1y89swVTTBXCMH/bmO7kWgKPhXT/RSoMmPew qT3UwpF06rEsKT5wrgkCkeEYy+Rf6BMCa/4as8HRJsqd81s50UVhQfogiN0+sO7ZQ2qs QYjUzRK6CDIQ/72nnvEsFC+j849629b6xWjx8Fapntm+DvwiPVKojlKtJTrSm5BP1+TS G9raKIDnZqlrt7cn+OrtMPhwaHw0eCc+8DdRLZ0dSj8bR8C5Jp0GTYIbI9ypy3meQbhQ SXLVcz9/SBTqrrPkdunlJ9D840s6JW6vAbL2X8oZ2Z+IVn3HM9MA441/2nRTWa1mvhxD aLHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:to:from; bh=jfCUHcf55UuWKj/YPJyEMiuMyZQ4nBhWqwf76LCp3Us=; b=k8ryVV7SeFjd+Mjwc98BSRviv6iP3xSNnyHLro9p23pCjAkhlwWLIltxGV6NLE+feD ptzqXak/M6poR4ubmhTkaYcEEGY3nDjVZi8qz32q0OuAVu26zgpGC3VrZikJOCuYwagg 3iw6/92S7ZSQs5uQ70rBeDEheRGFi9en/T3pEdIVCDxft55c6wmFnV+pQtXWpmWbfJmb s8FoD/w1vuLd2SO7Aw5h2+f63opfZwMWzw/txKLyvHHZDm47vajhugeDALyHd5jXrMok K+pQvIDIaXucYAXMjx0yxUBKZmwoyTGPLMnLLXtq0qAkNhtXxLK/X4PmrqPHH4vhFqBL P3tw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ch5si1939333edb.455.2021.06.09.01.53.40; Wed, 09 Jun 2021 01:54:03 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233802AbhFHRpX (ORCPT + 99 others); Tue, 8 Jun 2021 13:45:23 -0400 Received: from srv6.fidu.org ([159.69.62.71]:56084 "EHLO srv6.fidu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233081AbhFHRpW (ORCPT ); Tue, 8 Jun 2021 13:45:22 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by srv6.fidu.org (Postfix) with ESMTP id 7F84FC800DD; Tue, 8 Jun 2021 19:43:26 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at srv6.fidu.org Received: from srv6.fidu.org ([127.0.0.1]) by localhost (srv6.fidu.org [127.0.0.1]) (amavisd-new, port 10026) with LMTP id SRbOlgtfnunT; Tue, 8 Jun 2021 19:43:26 +0200 (CEST) Received: from wsembach-tuxedo.fritz.box (p200300E37f4F60006a44b0068bFE089d.dip0.t-ipconnect.de [IPv6:2003:e3:7f4f:6000:6a44:b006:8bfe:89d]) (Authenticated sender: wse@tuxedocomputers.com) by srv6.fidu.org (Postfix) with ESMTPA id 7DE2BC800C1; Tue, 8 Jun 2021 19:43:25 +0200 (CEST) From: Werner Sembach To: harry.wentland@amd.com, sunpeng.li@amd.com, alexander.deucher@amd.com, christian.koenig@amd.com, airlied@linux.ie, daniel@ffwll.ch, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, jani.nikula@linux.intel.com, joonas.lahtinen@linux.intel.com, rodrigo.vivi@intel.com, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, intel-gfx@lists.freedesktop.org Subject: [PATCH 0/7] Add "activ bpc" and "active color format" drm property Date: Tue, 8 Jun 2021 19:43:13 +0200 Message-Id: <20210608174320.37429-1-wse@tuxedocomputers.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I started work on my proposal for better color handling in Linux display drivers: https://lkml.org/lkml/2021/5/12/764 In this 2nd revision the first two read-only properties are now implemented for amdgpu and i915. I post it here to collect collect some additional feedback, if someone sees an improvement opportunity. I have already commited the first patch in this series independently as it fixes a function already in use. Some of the feedback from the first post is already implemented. The actual update of the values is implemented in patch three and four and six and seven in the atomic_commit_tail() function of amdgpu and atomic_commit() function of i915 respectively. They do get updated more often than needed with the current approach, but without harm since just the same value is written again. A check if the update is required would be the same amount of computation.