Received: by 2002:a05:7412:7c14:b0:fa:6e18:a558 with SMTP id ii20csp392512rdb; Mon, 22 Jan 2024 07:26:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IEBwxU7Jow0/1h4BoyZ2xEBumtpZu2mk92wABrG8cRriHliPe9EpnltFLtw7+iSe3yV/nCO X-Received: by 2002:aa7:c54d:0:b0:55a:e44f:bd86 with SMTP id s13-20020aa7c54d000000b0055ae44fbd86mr20874edr.12.1705937198380; Mon, 22 Jan 2024 07:26:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705937198; cv=pass; d=google.com; s=arc-20160816; b=H250XcUcVa5/7Ml577elFIy9ymsiCI6oTrWH7i+L1RJaEDvZzB7KTLMhQtInkXfvm/ GKug2tjCQaK/dq/UUEvqFe/B7MZwp5f0msGjBrfFnDHGCIviX0l+b7k4pWWsTE4Clh5k YtguRYGHTvxwIvq3d8pc4Pq3QeB+Mb67HZCq3vRlhO6Sr9FTonDS8z2/HNYyeX69D1BR 0x0vdg8ncD8u4TkuoLr/RnZcl7Cqkk73gEurk8cwfIMLVdrk97jXXEIjcHjUWzk1qjsN +V7XAZ1bHqauCcQyCtMKr8T8chaFsvYBZflWAhApwl4BUAMl/0eeTnlG5tbP6pAEJTPS 3Pgw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=vK4Y+J+xhfmjQGsLw1x8xWxzPPeAWQXyq37cVBAmgV0=; fh=4JHPpG5nuEJrCBAeed1mttzKLBw2uGEK6U7p0eTmzfA=; b=LvQxo8rwgMQECLtTnFoemBVWZfdWJ9agYeTmdFGBVTDaP0KhO5N4zrpCahyMaYNeD1 TfRTJvqBFTkn8lFKhPWgj0nvW8PSv3LIpLw0HHddR8XTCgdHCh75EfYRiBBcVsy8FmyN 2McNlQ54yNFBN9AR23Ef1gWVFkcUTeFibTB1d8LUi3ghzmst4xJZSwy2/MPQo+tZJ+Jv Sb4sa6VdsqQnk7ad+0kjXjrTGwpOnK9SjFDtl7qDUqXAoOo5qSGyByy4s72HRksxjt6i vzPn41Iu1ZRJIvpJ/OCW21LTOdGY2EfuJ7XI0LNqGmMRo5ofs16OUWqqCPS38QEUpZ3m ERAg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sYtpFUz0; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-33273-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33273-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id w4-20020aa7d284000000b0055a1e7baedbsi4399443edq.579.2024.01.22.07.26.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 07:26:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-33273-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sYtpFUz0; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-33273-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33273-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id BA2ED1F29269 for ; Mon, 22 Jan 2024 15:20:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8DE245916E; Mon, 22 Jan 2024 14:59:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="sYtpFUz0" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1352A3FE56; Mon, 22 Jan 2024 14:59:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705935560; cv=none; b=eWX3iG+kdBB9bZ+SRkdVpPNWg85hiPf/HuFyz6KLul1Kzs6HRYCLZKqEntFII0Ie94aFT1BaxGAbWknBJVx8HcerZ3KrhbCvEb26TNcn7Wi+Fu5fbK56J+OHIbTKR2SpAkhd/TVRRyzbI1TdMDc2sxqx5q4CA9ZPXn2YLqc1JN4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705935560; c=relaxed/simple; bh=bjtOOpefTp5sMPdP53mkM7HVpWo7eE9Q4KD1ni8vOhA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=GWvufBqOgP0WgJx5KfVKRvOp2+lsDUzY9Fla194n8hSjlspkJ7R2TU4xroa2seSi121DiOYDrA8/7C6QM2N+a53JX2j2G4lGOUYW8Sde6X6S/d4hOrEs6I/XK4F+0nW9zEeV5sJZ1Ol+gaoz6HPNccwatmNckmRXMlmMldLDlLA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=sYtpFUz0; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 52AD4C43330; Mon, 22 Jan 2024 14:59:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705935559; bh=bjtOOpefTp5sMPdP53mkM7HVpWo7eE9Q4KD1ni8vOhA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sYtpFUz0MeeJxKgiirjEMAzvrBDcJCCPYwuFA5wuf6KWnGSLjzVOEdM+kiptuOgmj ByOVrb6VlE0GM1KWmX56rku20YDb334V7TImRdAI0IY/Zur5/VJBJWqTwN80Ta7s5k OuXbNj8sGlmAzM1bUlPyyuqIzaPHqL9T7FolERZ1RYVWe0PM6TMkhyAWrAupim4qFw mdE/EBpCUqiVtEXAOqQwkdrm9oFJJFEB4HEv6HR8QBGg6LvcmrULdWsUm5x0hrYJIN ei0KgfE4w6wXNkMIBw+HwDS1DL5LLl/mnmCu1QYOHZxA1UnjJmLBHHj0A2YV80FVYY M7RQJIoPuUAcQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Dmitry Baryshkov , Abhinav Kumar , Sasha Levin , robdclark@gmail.com, airlied@gmail.com, daniel@ffwll.ch, marijn.suijten@somainline.org, konrad.dybcio@linaro.org, linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org Subject: [PATCH AUTOSEL 6.7 53/88] drm/msm/dpu: enable writeback on SM8350 Date: Mon, 22 Jan 2024 09:51:26 -0500 Message-ID: <20240122145608.990137-53-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240122145608.990137-1-sashal@kernel.org> References: <20240122145608.990137-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.7.1 Content-Transfer-Encoding: 8bit From: Dmitry Baryshkov [ Upstream commit c2949a49dfe960e952400029e14751dceff79d38 ] Enable WB2 hardware block, enabling writeback support on this platform. Signed-off-by: Dmitry Baryshkov Reviewed-by: Abhinav Kumar Patchwork: https://patchwork.freedesktop.org/patch/570188/ Link: https://lore.kernel.org/r/20231203002743.1291956-3-dmitry.baryshkov@linaro.org Signed-off-by: Sasha Levin --- .../drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h index 1709ba57f384..022b0408c24d 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h +++ b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h @@ -31,6 +31,7 @@ static const struct dpu_mdp_cfg sm8350_mdp = { [DPU_CLK_CTRL_DMA1] = { .reg_off = 0x2b4, .bit_off = 8 }, [DPU_CLK_CTRL_DMA2] = { .reg_off = 0x2bc, .bit_off = 8 }, [DPU_CLK_CTRL_DMA3] = { .reg_off = 0x2c4, .bit_off = 8 }, + [DPU_CLK_CTRL_WB2] = { .reg_off = 0x2bc, .bit_off = 16 }, [DPU_CLK_CTRL_REG_DMA] = { .reg_off = 0x2bc, .bit_off = 20 }, }, }; @@ -298,6 +299,21 @@ static const struct dpu_dsc_cfg sm8350_dsc[] = { }, }; +static const struct dpu_wb_cfg sm8350_wb[] = { + { + .name = "wb_2", .id = WB_2, + .base = 0x65000, .len = 0x2c8, + .features = WB_SM8250_MASK, + .format_list = wb2_formats, + .num_formats = ARRAY_SIZE(wb2_formats), + .clk_ctrl = DPU_CLK_CTRL_WB2, + .xin_id = 6, + .vbif_idx = VBIF_RT, + .maxlinewidth = 4096, + .intr_wb_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 4), + }, +}; + static const struct dpu_intf_cfg sm8350_intf[] = { { .name = "intf_0", .id = INTF_0, @@ -393,6 +409,8 @@ const struct dpu_mdss_cfg dpu_sm8350_cfg = { .dsc = sm8350_dsc, .merge_3d_count = ARRAY_SIZE(sm8350_merge_3d), .merge_3d = sm8350_merge_3d, + .wb_count = ARRAY_SIZE(sm8350_wb), + .wb = sm8350_wb, .intf_count = ARRAY_SIZE(sm8350_intf), .intf = sm8350_intf, .vbif_count = ARRAY_SIZE(sdm845_vbif), -- 2.43.0