From patchwork Tue Nov 16 06:22:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 519179 Delivered-To: patch@linaro.org Received: by 2002:ac0:c605:0:0:0:0:0 with SMTP id p5csp6710410imj; Mon, 15 Nov 2021 22:23:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJzOUXJMjA+D+U0arbxPyq9nmKVuQWqjhkPZDXTuHej7aCzFnzya5+p/kv5ubB4ITmaJR4H5 X-Received: by 2002:a63:7d01:: with SMTP id y1mr3308103pgc.343.1637043817279; Mon, 15 Nov 2021 22:23:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1637043817; cv=none; d=google.com; s=arc-20160816; b=p9fy5n9wuQBS+eSQyZ59PvlIbugYIfz7fj5OVtMtQlC6dqkUTYAH//SizKyIecmC3L qd2nyupd7RGP66qvrfLLUTCqXx0jWdZNDEcGs/ETTQYt2WLfdjb2koZM/5wJg+Y2YERS 5hkLl9xXrrQ6WXyIXJogeT4WHmxzOcQMu3DMlU2DRkM2nUQESm0uRvHS8LRY72LHisI+ 291b6lEUg69FxTCRCwWHbdBCPWECFNqOZ7R3EXzZYHNP7n7vmNgdhLYiIGBW3i0n6EGd eOEBeccuAryHk7a97t/L5XHKewNnUojDzHgfXam90pRa/G+lyhH4ngigV1yAYHO/sdZH jzJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature:delivered-to; bh=0NNk+IqeejCy1dyUsdzNNDMSRq+VJIHVGWrxZoM1iXM=; b=hQZvezaBzAG/xfGTtx+QZt/sY5U328KbKgJZZ3gkR03nRBda3lBe1QCAwb04GygTwh TqC1k1Y9ZGobf9wnX6/yz2QxjKcqz+3cl+mVKP+zhdOCpngz7kXKXyq0aE1zHv04kX53 lO2NJNDaCBEfIUEDf8iwxuJ7co9yo0Yjg3y6EREJ/9YgzOZtvvs0QmgahdADLcAGgwdE 0wOni+S1f5FU6YMAkZ6GXbHSmxxqwGT9MYN3xxoWrfECOr/lxiPU3VX+JiqpTmbJ4StP jDYNoW28C191y8zfQcDSoXMqksXnlbspki2TcwidK4JhZ+Smq/oGkWDzmqDY/BaC6KCs Wr2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kernel.org header.s=k20201202 header.b=JhXSbOYx; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id i4si14502985plb.244.2021.11.15.22.23.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Nov 2021 22:23:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=fail header.i=@kernel.org header.s=k20201202 header.b=JhXSbOYx; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8B0276EA19; Tue, 16 Nov 2021 06:23:35 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by gabe.freedesktop.org (Postfix) with ESMTPS id AA2556EA19; Tue, 16 Nov 2021 06:23:33 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 0974661A79; Tue, 16 Nov 2021 06:23:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1637043813; bh=+Q35wlrJhS3ekzEcoZnges6CzmvNvy+xiOTKkLMooOo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JhXSbOYx3vcjTJAPf1WdNFzd2QwCvyh+5BAonxLHMZ1faM7TJNtDqp0JA6JvseQC1 2CxzaYymCrEqj61A9EXYWJ8B4a0ma9QnKX+JStOF5T3wopd8kyLXBx/T4P2hGsR9i2 IoDDL0acwnNLnIlpdd5NPHSLMYqDWZ8W4/wneh4CnJXqFU+eJZrIu4PehhYo129crf OfzmxQJhAam8ZxzUwSLddm/FM84LPQ31ZjtKMNxpeXjejDj5/gW7JldIyqlOy2OU+B 6cM646KXWfq5iCK1vbhNtLnaq+54BE9J5FB3p7gsrJXfCIqfYBookVCHeJX4W0Ad74 5PrMlPwRuReDg== From: Vinod Koul To: Rob Clark Subject: [PATCH v3 04/13] drm/msm/disp/dpu1: Add DSC for SDM845 to hw_catalog Date: Tue, 16 Nov 2021 11:52:47 +0530 Message-Id: <20211116062256.2417186-5-vkoul@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211116062256.2417186-1-vkoul@kernel.org> References: <20211116062256.2417186-1-vkoul@kernel.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jonathan Marek , Jeffrey Hugo , David Airlie , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Abhinav Kumar , Bjorn Andersson , Vinod Koul , dri-devel@lists.freedesktop.org, Dmitry Baryshkov , freedreno@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This adds SDM845 DSC blocks into hw_catalog Reviewed-by: Dmitry Baryshkov Signed-off-by: Vinod Koul --- .../gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c index ce6f32a919e5..c773bbe57b6b 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c @@ -821,6 +821,24 @@ static const struct dpu_pingpong_cfg sc7280_pp[] = { PP_BLK("pingpong_2", PINGPONG_2, 0x6b000, 0, sc7280_pp_sblk, -1, -1), PP_BLK("pingpong_3", PINGPONG_3, 0x6c000, 0, sc7280_pp_sblk, -1, -1), }; + +/************************************************************* + * DSC sub blocks config + *************************************************************/ +#define DSC_BLK(_name, _id, _base) \ + {\ + .name = _name, .id = _id, \ + .base = _base, .len = 0x140, \ + .features = 0, \ + } + +static struct dpu_dsc_cfg sdm845_dsc[] = { + DSC_BLK("dsc_0", DSC_0, 0x80000), + DSC_BLK("dsc_1", DSC_1, 0x80400), + DSC_BLK("dsc_2", DSC_2, 0x80800), + DSC_BLK("dsc_3", DSC_3, 0x80c00), +}; + /************************************************************* * INTF sub blocks config *************************************************************/ @@ -1124,6 +1142,8 @@ static void sdm845_cfg_init(struct dpu_mdss_cfg *dpu_cfg) .mixer = sdm845_lm, .pingpong_count = ARRAY_SIZE(sdm845_pp), .pingpong = sdm845_pp, + .dsc_count = ARRAY_SIZE(sdm845_dsc), + .dsc = sdm845_dsc, .intf_count = ARRAY_SIZE(sdm845_intf), .intf = sdm845_intf, .vbif_count = ARRAY_SIZE(sdm845_vbif),