From patchwork Thu Feb 10 10:34:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 541420 Delivered-To: patch@linaro.org Received: by 2002:ad5:420f:0:0:0:0:0 with SMTP id e15csp2113370imo; Thu, 10 Feb 2022 02:35:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJxBeNb0F+jAvPJBOXQh0nYKokEq/QPzlhJxUSCCCt0ect22b/cDZ4rMpb/o5LN77mo4DRom X-Received: by 2002:a17:902:ab43:: with SMTP id ij3mr6670168plb.102.1644489300027; Thu, 10 Feb 2022 02:35:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644489300; cv=none; d=google.com; s=arc-20160816; b=gsclzlCu7X9cHfnf5MsmO8HC6zHwPhEyc1+3eaSQGJNj6I0Xb06WYkdAQjulBLzA12 8bMDF/FsvxXtZh0TgpYd7z8SsGR4Rv3MOujcEZKIlIl4b+uyBkrT3NIisuIl7QUnttKN RxYhrh1i6nNIs7nbJPRVtKX/PSS6uXPwymfmmk257sQHRks3vhPioV1vGz9OVWJtZ0IK /7bJnKMYtAt/ajAXxHtiLtLgnA3kq42XeDO30883o1Fq8Eltg5sUbTXLjreqUIajsJRr IzqsO7m6UmHK40bW3nJyb64eZs2KT2F5iZMND6Etx5aROHmq7dXtVehjRHdTZKqsge4W vXCw== 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=uNVogj8GYNCLzxKefurOdmsz+gJdaK1mAXoJLhdtclk=; b=Y4ZqIzlmvb8tZEidy6fGU4MxixsrSmAb3Ny/vUprUXxNcnqXivEX9pgXii2IV3aCZM U97Y17mkQ9Rurkm3sfla6Hw098uHoB2oek2FksZYbbqVVauf884W3hmuGpt1OH7V946B 7FjLqYXJqB193ZazYGA3YwKt8wU98T2Pbusph525rC7KEAWekdPBhZaq91FCVpRPO3Y1 XF5f8z2I2N/fCaTJWJ5+SxvEqdLyiHlanZbtIhV3D5+v4GVZuYvv0e5CIjGKvSwt+k84 qT+HXngfVQUMIRfbFxahDzJLcujdWNCo/86AG+O3R7kgwY1UDGCoxAj7hWN0XwM+79lg XIWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kernel.org header.s=k20201202 header.b=cZHX5+uH; 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 g4si18070810pgg.81.2022.02.10.02.34.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Feb 2022 02:35:00 -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=cZHX5+uH; 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 63A5010E7DF; Thu, 10 Feb 2022 10:34:58 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1944910E7DB; Thu, 10 Feb 2022 10:34:55 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9500D61BAC; Thu, 10 Feb 2022 10:34:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DFAC6C340ED; Thu, 10 Feb 2022 10:34:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1644489294; bh=/Jj3Lmsl2bhD8w66aeCtQ+hifD/+nP3PmzaGwSrG6OM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cZHX5+uH9cn6VgwBYSOfyYOfxpmNMpKkwpBs+cmWxRlKGdA9duBgbwr3SNE9dCR3c j5SzCTTUydpooMuq1SKJN5zSaJppj++RTwbx+2iIxooyuEGT1tSevjd0SJuv+4ePy9 illexb9NETHzlIh1JExI1FpRPfr/zS61mdLBjnnDKLo6OBLBjDJ3s8NsyXONPA4mnB PuMqINSalFyofWdlsxnwRcirr4QPa4nOY1/A8v6BMcBlVFGfngGRHyG9mbK+W27mGh YmiTlPVm9aNF6XJtnumhlXUnfZ1eOmbo8A16chTKOq8m/ACQqibalHptWNA+zVbAz5 uakNeivSfxotA== From: Vinod Koul To: Rob Clark Subject: [REPOST PATCH v4 05/13] drm/msm/disp/dpu1: Add DSC for SDM845 to hw_catalog Date: Thu, 10 Feb 2022 16:04:15 +0530 Message-Id: <20220210103423.271016-6-vkoul@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220210103423.271016-1-vkoul@kernel.org> References: <20220210103423.271016-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 , 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 Reviewed-by: Abhinav Kumar --- .../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 aa75991903a6..9c09cf318dfb 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),