From patchwork Thu Jul 15 06:51:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 477403 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp1408906jao; Wed, 14 Jul 2021 23:52:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxl9b2tGPjoSwdyyWvmEvU4uU3A2XtvhetvJhyuUUl58mFIXyIYCs6V+QEHcV5CqHapUa7A X-Received: by 2002:a17:906:bcd8:: with SMTP id lw24mr3536155ejb.228.1626331975231; Wed, 14 Jul 2021 23:52:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626331975; cv=none; d=google.com; s=arc-20160816; b=ao6EdtU/ATuJnN3znKulC/58hkQc75ITKGicATkLYjx3VjxL/wuQmVVyYxxLRGxSEV MZT8VbeWxkYhRZGNv2z3rpU4mE8t9gCzIjFtmgLZmodxjcXD3Tjf3NjBQbmOeEmEUxyR gZu0XW1frjDhgAXui8pzhs6cUnu81i64pO9lKTD5pOsTPSNK6NQt9aTxOfPpYop6b8Gh JY4DOivD2jtQs9WYSGbdTIqcdxpnVbYH79Kz64XDP0JmpM3GjzWa9CV1GHCZpWYSkNUJ EkrXwXjmJDijzHtcZpaht8QbRc8DdRKHyFNFJDN/VybMbrAZ7O9bFcXvUWPQjMr0ZSw8 bjoQ== 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=iuyf11vRSHt82DtaH0n3aJn8OCKtPC2KyJo0/GPkCuo=; b=XRCdGEfLvJWn01/Y/JSheT+D7+BAfPuUju6eDlvHE/egW2szAzlpIVyGgKt6WPHVl2 Ju3ry4JYw0RNOQL0SwyIMy+t4emCxC92SyLpgBzMjQc9Di7j3bP4yG1CW87bpp5xTNQ5 RVkH6/sNPw10+cM+utmrwRCaUBXB2X6PKZpJkXt1yLvGW90BsuEUW0r9jNezoSMCBIDG NtPqdLxL8vuvpo7n/u6cVUtVj8RwWiZoTqgbelf6DxnuKLsM5Gy/2OGV5USeZ6/K41Qt 4fUgWOhCzCFD201WD/WwsGIr8e2Xhk8nfShItJwdo1roeS0bbkRgDY3nA/xtZvgSgjwp dSlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JAR8u0I6; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hd12si5850879ejc.121.2021.07.14.23.52.52; Wed, 14 Jul 2021 23:52:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JAR8u0I6; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S238904AbhGOGzo (ORCPT + 17 others); Thu, 15 Jul 2021 02:55:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:58006 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239114AbhGOGzn (ORCPT ); Thu, 15 Jul 2021 02:55:43 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 839CB61380; Thu, 15 Jul 2021 06:52:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1626331970; bh=bCxEk+MSo9wujPwvoctDXKBvPOMJR+fDgZGHLTgZliA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JAR8u0I6PYix53OhysU4g/dwkST+Tq4JYtiutIRlgVc4ilqNolMW3X+dr2gIExya5 shb4eAQr29HREq+qj+UuvlYY99eih965xB1V0MXHJ/OYoLCS5mmjNPqhhan7roqHZs ytNvI9mH0LO/tFAJNsMjHlOcIho7HL6/cBUd9wnwXfFJMoQYwh5Mkjf6hVMXhH6kKI pTvQ3LVtlDcFBGqV5UCOTvyut43PfjqY728U/yfFRrnqbMED0hUEVOZWoRtaPmzI/p neiGEfK/Ng3h2vn/N6Vlr8TC+uJpa990jySKzXOy6Trqm8hL8+3Fpo0Up6xBiia6Cq uxTI2BBbCnlEA== 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 05/11] drm/msm/disp/dpu1: Add DSC for SDM845 to hw_catalog Date: Thu, 15 Jul 2021 12:21:57 +0530 Message-Id: <20210715065203.709914-6-vkoul@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210715065203.709914-1-vkoul@kernel.org> References: <20210715065203.709914-1-vkoul@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This add SDM845 DSC blocks into hw_catalog Signed-off-by: Vinod Koul --- Changes since RFC: - use BIT values from MASK .../gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 22 +++++++++++++++++++ 1 file changed, 22 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 b569030a0847..b45a08303c99 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c @@ -40,6 +40,8 @@ #define PINGPONG_SDM845_MASK BIT(DPU_PINGPONG_DITHER) +#define DSC_SDM845_MASK BIT(1) + #define PINGPONG_SDM845_SPLIT_MASK \ (PINGPONG_SDM845_MASK | BIT(DPU_PINGPONG_TE2)) @@ -751,6 +753,24 @@ static const struct dpu_pingpong_cfg sc7280_pp[] = { PP_BLK("pingpong_2", PINGPONG_2, 0x6b000, 0, sc7280_pp_sblk), PP_BLK("pingpong_3", PINGPONG_3, 0x6c000, 0, sc7280_pp_sblk), }; + +/************************************************************* + * DSC sub blocks config + *************************************************************/ +#define DSC_BLK(_name, _id, _base) \ + {\ + .name = _name, .id = _id, \ + .base = _base, .len = 0x140, \ + .features = DSC_SDM845_MASK, \ + } + +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 *************************************************************/ @@ -1053,6 +1073,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),