Message ID | 20230801115854.150346-1-angelogioacchino.delregno@collabora.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:918b:0:b0:3e4:2afc:c1 with SMTP id s11csp2645330vqg; Tue, 1 Aug 2023 05:52:56 -0700 (PDT) X-Google-Smtp-Source: APBJJlGLY3QqCb+QtognDqDPcfcQM8u9RY1EJzu5vft6mg1ZDT1zVIyKNrONiShNY+hLlCYxBFDl X-Received: by 2002:a17:906:3144:b0:99b:5085:42a2 with SMTP id e4-20020a170906314400b0099b508542a2mr2242977eje.40.1690894376155; Tue, 01 Aug 2023 05:52:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690894376; cv=none; d=google.com; s=arc-20160816; b=nc7tOSzKT9cKoRk4GGr+wHPYHe+Wt3Jy3m3/HR8nXD3uaOf6h5ZHJSknSQlYd8AdFF IMVbJfX9D/aQNEkGKXC2jfR2xJV4sKWHjvbh2sUbVZg4qBOSQXao6DA1A5/08HhZDNZY 8vJVQR+ab4Z6jq1V/EEUKOjsOr3cSF/AzmF5wHOsm6xEWdW/zaJSfysyqS3ul2KuY12M ICyPQe4hMBCD11flmVD0GfVjFBjXX4EUN34KFO5moALbdwyi3c7SG5ee/ifPgPT+EbFh dUqOs4VSRDxOH/Pu1gFddz7mrMXzRQ9chowJguFIETSjY84M2vcn4oSu793zhvBDdmv/ qj5Q== 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:cc:to:from:dkim-signature; bh=F0RZaaGVmbxo0cjrWB+dmfxXI1NyZ6ppCkwfpiIb5E4=; fh=9Aon3jQEVE1p+dS8p5fghxMOlPjmNOu/O0E5mCMmCJg=; b=eDiBi0hX0vw/I+FxehcGOVQ95GEySum36R4jmabbqq1pIjuIeoep5/duiSG9n6LKt1 XB8t2IQZ63BiISwUnM+WUzgEdkZ4rqvQ1wYad5yqAKZ6ro9/26oMzavYIXt8knQFkoRB RP7trq1lK201fkPUubwC+cXiX4XJRjYzh3Xxy5oQIRbZFC2OURkjHHYVkZmde0+pEbFz EzfEAmdPA4ocTOhpxsrCmbCA//cayDbkPc/DwSQMgMf2KBZrETiCRGkrihkGZG90FeLV 7MbB+ReA1v392RPinIvqVOvrF1fvRvVeBNoxPu/rlGHJruG/iJ8+2zcnUvzlFcUk33Ms bheA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=JjiQY2Ze; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id se9-20020a170906ce4900b00993860a6d39si3545090ejb.355.2023.08.01.05.52.31; Tue, 01 Aug 2023 05:52:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=JjiQY2Ze; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232986AbjHAL7F (ORCPT <rfc822;maxi.paulin@gmail.com> + 99 others); Tue, 1 Aug 2023 07:59:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231991AbjHAL7E (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 1 Aug 2023 07:59:04 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8313B1724 for <linux-kernel@vger.kernel.org>; Tue, 1 Aug 2023 04:59:02 -0700 (PDT) Received: from IcarusMOD.eternityproject.eu (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 419876607122; Tue, 1 Aug 2023 12:59:00 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1690891140; bh=6nRpryUSnCQbnSIS+tUVuXNifLBrdhdrUTUseIS7BLE=; h=From:To:Cc:Subject:Date:From; b=JjiQY2Zeuf2Emtf1o4B3cbKqoul0QtZL02hEEgt0Vr7bCCwbM29PqdWoFOmjvlJjp T3ZDtLNwQqYeWEDPPSLJ125laciW12V9sxpP+e42hZQmcB3dvbse2iA0RR5q+ZV0wi Sk55T4HOoQoBR0KG1mLq9zQTXyFmEMK8NBoAHpzVqsbkizEaIt1DVstMEOq8UdMERO +aJSp6l5/U6fGZZOcCrHpsOMqxZdPMzTK71S0vWR/YPkCnCvmnP9uYMrY/hzbUGbAE MAYWD/40brKMYQ5a9jjrSNhjddcCaTtIt8pVf0HXzngJYveYzmW2WccvWRiCUihl9J CiXLXtOts/Gqg== From: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> To: chunkuang.hu@kernel.org Cc: p.zabel@pengutronix.de, airlied@gmail.com, daniel@ffwll.ch, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, wenst@chromium.org, kernel@collabora.com, ehristev@collabora.com Subject: [PATCH v8 00/13] MediaTek DDP GAMMA - 12-bit LUT support Date: Tue, 1 Aug 2023 13:58:41 +0200 Message-ID: <20230801115854.150346-1-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773031261359148845 X-GMAIL-MSGID: 1773031261359148845 |
Series |
MediaTek DDP GAMMA - 12-bit LUT support
|
|
Message
AngeloGioacchino Del Regno
Aug. 1, 2023, 11:58 a.m. UTC
Changes in v8: - Changed lut_size to be a mtk_disp_gamma_set_common() function parameter to pass lut size from AAL Changes in v7: - Added check for NULL dev for AAL-gamma case - Added get_lut_size callback for AAL-gamma - Added comment to clarify SoC 10/12 bits support and old vs new register layout as suggested by Alexandre M. Changes in v6: - Fixed smatch warning in patch 11/11, ref.: https://lore.kernel.org/all/202306101458.lRXHEE0Z-lkp@intel.com/ Changes in v5: - Removed incorrect comment on default LUT size and bits - Removed useless check for num_lut_banks - Added comment about CMDQ implementation on patch 5 - Evaluated passing lut size/bits from AAL, idea discarded as the implementation would be rather tricky while bringing no benefits. Changes in v4: - Fixed assignment typo appeared in v3 Changes in v3: - Fixed issues due to variables renaming during cleanup (oops) - This is actually the right series, since v2 was taken from the wrong kernel tree.... :-) Changes in v2: - Added explicit inclusion of linux/bitfield.h in patch [06/11] This series adds support for GAMMA IP requiring and/or supporting a 12-bits LUT using a slightly different register layout and programming sequence for multiple LUT banks: this IP version is currently found on a number of SoCs, not only including the Chromebook/IoT oriented Kompanio 1200/1380 MT8195/MT8195T, but also Smartphone chips such as the Dimensity 9200 (MT6985) and others. This series was tested on MT8195, MT8192, MT8173, MT6795: * MT6795, MT8192, MT8173: No regression, works fine. * MT8195: Color correction is finally working! AngeloGioacchino Del Regno (12): drm/mediatek: gamma: Reduce indentation in mtk_gamma_set_common() drm/mediatek: gamma: Support SoC specific LUT size drm/mediatek: gamma: Improve and simplify HW LUT calculation drm/mediatek: gamma: Enable the Gamma LUT table only after programming drm/mediatek: gamma: Use bitfield macros drm/mediatek: gamma: Support specifying number of bits per LUT component drm/mediatek: gamma: Support multi-bank gamma LUT drm/mediatek: gamma: Add support for 12-bit LUT and MT8195 drm/mediatek: gamma: Make sure relay mode is disabled drm/mediatek: gamma: Program gamma LUT type for descending or rising drm/mediatek: mtk_disp_aal: Rewrite kerneldoc for struct mtk_disp_aal drm/mediatek: mtk_disp_gamma: Add kerneldoc for struct mtk_disp_gamma Jason-JH.Lin (1): drm/mediatek: gamma: Adjust mtk_drm_gamma_set_common parameters drivers/gpu/drm/mediatek/mtk_disp_aal.c | 27 ++- drivers/gpu/drm/mediatek/mtk_disp_drv.h | 5 +- drivers/gpu/drm/mediatek/mtk_disp_gamma.c | 214 +++++++++++++++++--- drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 8 +- drivers/gpu/drm/mediatek/mtk_drm_crtc.h | 1 - drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 2 + drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h | 9 + 7 files changed, 224 insertions(+), 42 deletions(-)