Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2738605pxb; Thu, 10 Feb 2022 04:37:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJxGWcGTgYDE3iKivS76l9ovgXAGPkhn1n4PwFGJCuQ3/J3tMPgn8WtQpZj/c6MReHUl2g+k X-Received: by 2002:a05:6a00:b83:: with SMTP id g3mr7285154pfj.58.1644496677160; Thu, 10 Feb 2022 04:37:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644496677; cv=none; d=google.com; s=arc-20160816; b=QaouL25kOCvw+aYal/yXiEoYbOHLhIzxBxnDMXS+0yfPvGdDMOtG/6CJSDw36Yk800 Rd3M2LGfOyVUjQCrBPde+0sZ0t8bm3s9BpGEd93CMifxTjAv6ANXnN8YbcLsmYGX1gOh ydp3JayfKGPkzJS6STXFhJk6HrEQ6gW416RdJoNSJvmlkkQaT1hnRQ/PUNAYE9ADeARe I0wtmjKj8AOq3a5ddQ5cwPoTOARP1FndJbnHTfPunhk5JrBdsQNemYGYxpU8oxzKhXCl huIq5ikyMj+p2z8g1U43JN2DAlDoNYCUYLyHDL7spsQEUUJ7QxeCC8donG+IOWjQvuHK MDOA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=uNVogj8GYNCLzxKefurOdmsz+gJdaK1mAXoJLhdtclk=; b=zs7qxESE1DpkANyrC03D2/bFGrVYT6Px3UUKD+763tq4eVAVjour2JAX0K1CzeZhK0 SfO4n+zqDoibf5XfaZwslE7IATtgm49mO67l/Bq+y8DQf+fNDj+myU1PzmQkXVOoNXN1 LCn0w5gxPrsfsazGFw0ZsY4I7rsZD/w0j3aOO0D1SQitqm0J0bwzDeTt7iXqjUQMX8RT Fc9pWtWw+SuUZTvi3zFn8u+aPNpb9nupKG2sKlWKpyOwjSAGGJwIyeZdQfmlJ0UGisM1 ZdkgRCvqy+dYRGgplacpTFnyPDeoD3jhhE8jjuGBQG3UQl4cJj15nUK6JCHYgbQF1biW DMVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cZHX5+uH; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y1si2963836pfn.366.2022.02.10.04.37.39; Thu, 10 Feb 2022 04:37:57 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=cZHX5+uH; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239850AbiBJKfD (ORCPT + 99 others); Thu, 10 Feb 2022 05:35:03 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:46962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239766AbiBJKey (ORCPT ); Thu, 10 Feb 2022 05:34:54 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 673B6FDC; Thu, 10 Feb 2022 02:34:55 -0800 (PST) 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 03A3161B95; Thu, 10 Feb 2022 10:34:55 +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 Cc: linux-arm-msm@vger.kernel.org, Bjorn Andersson , Vinod Koul , David Airlie , Daniel Vetter , Jonathan Marek , Dmitry Baryshkov , Abhinav Kumar , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org 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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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: X-Mailing-List: linux-kernel@vger.kernel.org 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 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), -- 2.31.1