Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1284647pxj; Fri, 4 Jun 2021 10:20:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdStGwq0laYi6tjQBAgaTHcCix1VS+CPBws+ms6cZSKC0SzOqTnQllfG3eSiBQjwhEi8c0 X-Received: by 2002:a05:6402:3c1:: with SMTP id t1mr5924480edw.270.1622827220410; Fri, 04 Jun 2021 10:20:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622827220; cv=none; d=google.com; s=arc-20160816; b=uA/eczzAnYdSTeNaacA/yx0CW/q+doluNrcQpZRkQ+Ve1LD/uniLuj7WRMGG0FEHBP qiP+afVC2iGOzM2eBWd/zEhOXSJDlbddv1/wHHb3Si8TslQWtEWxgAsH0QmWXfauVLZI zXhLTKfwfbT3pVSu4rR7ZmgiSru2Z+k7WwSC4l7YLZoV8g2fEf0ZA6dRIfF+bS3W47ey Dl+ppM7aqZgw560qQxPXlVT8oBvtNbnIR0BUJCW0jVKBKHbyYiNUnX+wTX3s9rDkcKFk qrwra//GK7tEMAvu0ZoahD2KU9hVuVMQ5PTAcRzCY6D44RymsKzpOQZ1DquO7TVZA0e3 Qn/Q== 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=KuLzVvIs5Mp6c47jwzvC9D7aNa7ytC1bQXGFKNj8ZmI=; b=M7XRYMZvk+iSK3WtYjuAIN1tA8ielCMbDWPocOdhf/poyOvJL+FITQiTbP1AL3puGl ZjE1VVzK8f2zrta0eiUFm7nmeQk/dOxKWHowHOKMtMEItJmvdB3fDaNKLyRP1r4DfF2w S2uyDLai7Ob67veJy7iLkY9bGBq1z+ysj47O9a77fGyq5bfBLm9wwYfvtTzC2uUYYub5 p/vkfCmSt7q9ZfQGQ1CDBMyaV4vvYWtCM1QJiZ5YKw1zBkPts4w8ZSqtGVPPDwy5PBKk MssBo6n0yvvDHUme7bOTt5xDPzsatifhaEJLpxsaKokh5FAmzZqtMqc+AHRUmUGcgsgI eC3w== 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 b23si5552120edv.199.2021.06.04.10.19.57; Fri, 04 Jun 2021 10:20:20 -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 S230286AbhFDRT2 (ORCPT + 99 others); Fri, 4 Jun 2021 13:19:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230149AbhFDRTZ (ORCPT ); Fri, 4 Jun 2021 13:19:25 -0400 Received: from srv6.fidu.org (srv6.fidu.org [IPv6:2a01:4f8:231:de0::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02C9CC061767 for ; Fri, 4 Jun 2021 10:17:38 -0700 (PDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by srv6.fidu.org (Postfix) with ESMTP id 8CC95C800C8; Fri, 4 Jun 2021 19:17:35 +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 Ms01pTyamUKB; Fri, 4 Jun 2021 19:17:35 +0200 (CEST) Received: from wsembach-tuxedo.fritz.box (p200300E37f2e2a0038b625C68b541A92.dip0.t-ipconnect.de [IPv6:2003:e3:7f2e:2a00:38b6:25c6:8b54:1a92]) (Authenticated sender: wse@tuxedocomputers.com) by srv6.fidu.org (Postfix) with ESMTPA id ABC54C800C5; Fri, 4 Jun 2021 19:17:34 +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/4] Add "activ bpc" drm property and use it in AMD and Intel driver Date: Fri, 4 Jun 2021 19:17:19 +0200 Message-Id: <20210604171723.10276-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 Since the first read-only property is now implemented for amdgpu and i915 I wanted to collect some feedback, since the other two read-only properties will be quite similar, I hope. I have already commited the first patch in this series independently as it fixes a function already in use. The actuall update of the values is implemented in patch three and four in the atomic_commit_tail() function of amdgpu and i915 respectifly. It does 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. Let me know if you know a better place to put the update than attomic_commit_tail().