From patchwork Thu Oct 7 07:08:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 515443 Delivered-To: patch@linaro.org Received: by 2002:ac0:b5cc:0:0:0:0:0 with SMTP id x12csp1022476ime; Thu, 7 Oct 2021 00:09:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz69nAdAOmrr65hnrfEdIGCjpoAAodbQKqTT+m8UHb47cn2o91ZI3wBcQItLvS13huuF9kF X-Received: by 2002:a62:6544:0:b0:44b:508b:d05c with SMTP id z65-20020a626544000000b0044b508bd05cmr2769797pfb.56.1633590580748; Thu, 07 Oct 2021 00:09:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633590580; cv=none; d=google.com; s=arc-20160816; b=Oo7Tv9PNnT8oDvb7WCaDZ7EH8pVItmuRJJ3GEFK5ZQ6dc9GsGCdAYqypy4NwiGcXtz WTCUSgwnpgZzW1a7OiyllsPPp1wCLqURVMm9WeESmnX72EPvkwm4Il8Mi5gdxCj8G+gF uXITQorpDziRSjKeQ6UZkUsud3c1N6P2zJgQuR6iOo6ioKVkh2xBHzRShZg2jiDfvdcM F/CGKLLIfLNDhkLj5uUR9uNDacMEHVBqPSr4A9eCiT0xNkSSvw6V//4LvGN4vT5chGeo YuEAhbTNKJrI3BCNdllgxkQnkOLs5a4i89J5D/lJu+PUvf2tXqezxqSeIfTQkUgsgEj7 K61w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to: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:cc:to :from:dkim-signature:delivered-to; bh=8fFv3cDDr3IOC/Mi+ZuqymG1eCWjJjzQAAGKY+yQh+I=; b=xYM2YMIUfEGd4q6GiXjSjoLOleH6QgLjKgbT4M73NSuwEUbMscs8CoAdwxQDfU/mrp y4VzuXGm0ifd+oIW7aQ/xBXpEoaeXNEGtwfdzwC2mND7QX2FKJG7R0r9fKy2+Iypfr4j rsvFiwp0CXU4NjThXjUKKMFPoLTZe50C6SD2bxGyaU4t4TxyJZD8z+Fub3Ajuqhc5BeC oGqnBd2L3zo44wOMW3obbYyBxPzZnWJOgGZBf4jFGCBoVY45CnHy3BTrLiXrNtW4H52g pqh5AlroWNC5jaydpecFuGXzwtuTlvaNXzs0VOCu7ao6cJPOJTNNiT6aHTRUZeJN7djz T0Ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pvAmOxBm; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id v7si7126620pjr.31.2021.10.07.00.09.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Oct 2021 00:09:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pvAmOxBm; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=pass (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 863546F39B; Thu, 7 Oct 2021 07:09:39 +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 557F36F390; Thu, 7 Oct 2021 07:09:38 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id B67D061245; Thu, 7 Oct 2021 07:09:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1633590578; bh=m4MG3JUKZaEpihiTK4ohtEPBq/Kd8aC3z6C3bWARnvo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pvAmOxBmlUzoEFMJetW4pLUCs47vJ/3Zdx7FSIPA70bAMTfKwVuEOICqFxqRgSUON xG8SSU81CWz8D7cCXAlMvZPbvMiapMfkA5zMcUN4PRgVltoQeF5X3dPZ3VlQhDsqHm drok0fm5H7BN3DRhTpxRvJ9rTIizQtYAEtnDMVE/utp5CuCK6LLXtfKrhkwchZuPeS lLTCcQWodu0gNGKWKGwR//g69qewVg/GZip2RG4qU558DJt01KMvRYWkHUs1KdroWQ 83G6kzwj6sI7KYgRVdZhScWxUSqaosz+pscBs5BEwe5DERGGKQkXF5e35dfZMGgmaw cz3MMDCTs6fRg== 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 , Jeffrey Hugo , Sumit Semwal , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org Subject: [PATCH v2 05/11] drm/msm/disp/dpu1: Add DSC for SDM845 to hw_catalog Date: Thu, 7 Oct 2021 12:38:54 +0530 Message-Id: <20211007070900.456044-6-vkoul@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211007070900.456044-1-vkoul@kernel.org> References: <20211007070900.456044-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: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This adds SDM845 DSC blocks into hw_catalog Signed-off-by: Vinod Koul Reviewed-by: Dmitry Baryshkov --- Changes since v1: - Remove DSC_SDM845_MASK and use 0 as feature mask .../gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) -- 2.31.1 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 b131fd376192..6423a2fe6698 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 *************************************************************/ @@ -1130,6 +1148,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),