Message ID | 20230727094633.22505-1-angelogioacchino.delregno@collabora.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp987327vqo; Thu, 27 Jul 2023 03:06:40 -0700 (PDT) X-Google-Smtp-Source: APBJJlH7TjnRzAcgQriiaIi/rzgZyxtZHKl1HYc/LzjT+zq4SnGX6mXTdyeB69IuYxbP7WM7aJ+F X-Received: by 2002:a05:6870:8a2a:b0:1b0:25b4:4b77 with SMTP id p42-20020a0568708a2a00b001b025b44b77mr2611651oaq.14.1690452400456; Thu, 27 Jul 2023 03:06:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690452400; cv=none; d=google.com; s=arc-20160816; b=lqbF8T3fvyTJeNHn68B1LK2uFGeSqBP2Ip8t5zraBG+1MePxb2s0L4NULa5wOYAZcf B9NdetOR+FkhjQplpNQQAc7Bo8wkVM9H/0oqT3zt2EohXeR+L9NXrOgKU8Oc80yeAzm7 jzhoW+k03ROQNjhh3MwNX8Lb8OtKjzaQWc7TD5uQYDfQE/hffwmj+2y/yPWXBFjJAqdD EjMMq+O0xXS9/cylnKgJvrUPwQNzBOFdPTmhXSk+y5uXUvm4it8ZiyaoGCj/KxXrAHmb v8WE4T3fPsf3DbGq6mbnAkxGyVm1KM1Buyay9P69ZXc5HEjHwOyGfLH7lYDQJFKoHclM M9Eg== 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=IEHsRtrQm5HmYwF6hPWbEqTUtQqoXTTSmPIU8W6kfGs=; fh=9Aon3jQEVE1p+dS8p5fghxMOlPjmNOu/O0E5mCMmCJg=; b=hr1KIe+NmBO63DReO5TELRICWJmt8IieLhITyENHGs/MjAr77Pt4TV1usMZ7Afrfs2 zYgB+HvxA3wxe4MEdN+vCLkrNoTT6UfXf+n59N8gNBX195CZJVITA1TIcotChjwIAVl7 +n3K4ZcX/2x5mxpcD+UzTHLcH7VldzlwChKBqOq8Tjh7lD9xAbTeY1BxnAk9al6XN7Da Gf3KQSz46tKAL8YvfSvQENDyJoFrkrJ7/GxV4CHNzg14IfO4y0uAtpS/+9M558l8+fEQ p6gdo0qCkdtUUDPKkn6AEg6J2E2R4K1zJICHamKqbEA+0NDaaS5DklsJZkGKpDFV75Mv BWgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=QZuEjo6n; 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 y1-20020a17090a134100b00267fe4a44b7si2720565pjf.176.2023.07.27.03.06.26; Thu, 27 Jul 2023 03:06:40 -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=QZuEjo6n; 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 S231674AbjG0Jqm (ORCPT <rfc822;hanasaki@gmail.com> + 99 others); Thu, 27 Jul 2023 05:46:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229975AbjG0Jql (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 27 Jul 2023 05:46:41 -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 81CB494 for <linux-kernel@vger.kernel.org>; Thu, 27 Jul 2023 02:46:39 -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 91674660702D; Thu, 27 Jul 2023 10:46:37 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1690451198; bh=IH57ZyNRagERKQ5+mMux4tgPKLAjXI0mE3TZqze6Yq4=; h=From:To:Cc:Subject:Date:From; b=QZuEjo6ntXZiJRNm2OP4NKTzNdBA7bLUEWW8uvpCQR+rbQRgDHl5XNxP4dgLHM+JL il/7ORKbFzctrh34rnL+xD9EjQ6yHLajfwsVLIjvymwUs+mymYYpdkY40VyNH9Aq78 iui4Sf562cqO67VDSmdtI/JbvwyOrYwRSj7kves09hkA6V0R4IpHVGk0VFql4kxL2c xTBIlYzRwVUcPlmvINswuTLZ6N7UC4+Ua749RBRj1fMigiRj4gqBQFHkwokXpSGPV9 Zjz3D1bR72SEKEPT1Tk3sG2vlqqNJaF5v+vQt3RyCypaH7hwfWUIz4I/xbQXMyN2e/ /XIjDlBtiHp1w== 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 RESEND v6 00/11] MediaTek DDP GAMMA - 12-bit LUT support Date: Thu, 27 Jul 2023 11:46:22 +0200 Message-ID: <20230727094633.22505-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 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: 1772567816244928960 X-GMAIL-MSGID: 1772567816244928960 |
Series |
MediaTek DDP GAMMA - 12-bit LUT support
|
|
Message
AngeloGioacchino Del Regno
July 27, 2023, 9:46 a.m. UTC
Changes in RESEND-v6: - None. 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 (10): 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 Jason-JH.Lin (1): drm/mediatek: gamma: Adjust mtk_drm_gamma_set_common parameters drivers/gpu/drm/mediatek/mtk_disp_aal.c | 2 +- drivers/gpu/drm/mediatek/mtk_disp_drv.h | 3 +- drivers/gpu/drm/mediatek/mtk_disp_gamma.c | 193 ++++++++++++++++---- drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 4 +- drivers/gpu/drm/mediatek/mtk_drm_crtc.h | 1 - drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 1 + drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h | 9 + 7 files changed, 177 insertions(+), 36 deletions(-)