Received: by 2002:a05:7412:7c14:b0:fa:6e18:a558 with SMTP id ii20csp388981rdb; Mon, 22 Jan 2024 07:20:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IFeYrZqo8MHJDuwgHzE0OtzhhUyXEO7JJ3A2vZmci4TIABPdduRF6sIcdV4zAaJpe5mNLEs X-Received: by 2002:a05:620a:2622:b0:783:90ef:594e with SMTP id z34-20020a05620a262200b0078390ef594emr6466655qko.53.1705936838417; Mon, 22 Jan 2024 07:20:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705936838; cv=pass; d=google.com; s=arc-20160816; b=KYxAMmA/DWvxwl9+pNV3NFen+gk19guWMb0TLS91AI8z569oTPcZr2PE20ZrFUdpWz bN5Sg/ft/ZFtWEON6535NJPehWxjhUnzoaPPH+rwlvZE2Su3V2Ow4GrT0b8mvfKDUZPT 9HzFgdUGhku+zfnFGAiq0Iw4JQinxXjd1N8WTUQx8NjizTKeYN2L1e3IRi2h53lsd5cf jgwTvUUW+e7VNfsOZE6am3lZix2jyghdh79CTRsqC94GWnXbpIzdXs41KMbl0n9AHpUW YZLaFBj1lHswTamUrK3gRnFAPDgyVaLGn6/a2kBot80hdHgwp2UdRibRUwf+MhchJvZ/ xseQ== 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=ejTCuiaNkRXpNqixJsg0kr1AUxo72SYu4hDOaNjn0s4=; fh=4JHPpG5nuEJrCBAeed1mttzKLBw2uGEK6U7p0eTmzfA=; b=C87oNTNlgTb3cocSftVsLnMEYZTSAkve4Wk6GLLb4N3NnZYauoRopMfDEqeLl+NQwx hkcFcqE8fZpIiCziuD+dMspetDpBxDppqV7qnu+FJ0VpLid0FoO79DRzt3wPxguklkVH WTursPNEXl6moqfFJhwNqLAp2KXpyeiJoXF583U4UUlVU13Vwz75JVVLLH0B8dQGehBD Y+KsIiqUQVlNN9/QkU/jmrLzBzW5f5RoaMPWYUBIKg/k2yLKjDjDOJeGIqd++obqgXDO dPn8dHAYWtM1qWs/gnjE1hHr4NSwnmIEhH8xpvzFPq41Z/f2Zv61grqSm1hkOjSaW+OW 3q1g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=j6L+hq2j; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-33274-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33274-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id j14-20020a05620a000e00b0078310999c92si5610925qki.587.2024.01.22.07.20.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 07:20:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-33274-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=j6L+hq2j; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-33274-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33274-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 72B311C22DCB for ; Mon, 22 Jan 2024 15:20:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9FECD405C1; Mon, 22 Jan 2024 14:59:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="j6L+hq2j" 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 BBC2A59162; Mon, 22 Jan 2024 14:59:26 +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=1705935566; cv=none; b=ScdVWDdfPSGkCsVTtFhIDXeSZfEns+DgGM+TcBpanFOBJ/IGjo2Jl/P8Ofy0SmYUPJkBoQPOlifVeTDSpdrKyLBtQmtApa9Nu17mXFOrCy7Tp4S1bWSqOG5ge4siX8JY2BohwOU5bw1dcUdoquJ8ZyDoAz9qdtQNuri4h2wwe8I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705935566; c=relaxed/simple; bh=SzDlK78GFfznTK3Ky4AKYOL0qWgChy+mJ2ab472f5Ao=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=fnpcvl6X4mXuKTRSzwCWYingqrWpYy7za0oRQwSXRIsxyRnMQ+canBTQ04niX+gcEZVqCAAjmMy2dTGqC/RN8EXqAmzM8tD5XzhgG16qEMFqvB+ozQOc3zx/tKmPEDdVIE2vW3QAMYiGYUgCQXnc0exJMlRmMnS82bF2iIBn3Bg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=j6L+hq2j; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E354AC43390; Mon, 22 Jan 2024 14:59:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705935566; bh=SzDlK78GFfznTK3Ky4AKYOL0qWgChy+mJ2ab472f5Ao=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=j6L+hq2jpW5ydaMwmtNIKK6E2rTaHHuqoZm7Lgl33etdSTvKKYZgs5kxxpISfRCv5 SG4pkJ8KUtQlphXbgeiMf3w+TggSSj1ddyiRjeB1d9mhrOCR+BzU5aAGd67ut9Ol01 1O/W+LqzczUwdBxV53vaCsqiEk7oUdamDLm8SYFKwrB1AeNHAIlXFRNCjqIK2y9cQm /wkpHAT9uymcp0Y/sKdU+jsQ/poFOW8SOcrMx0iDP5VFN2SaaTCsTTN1QS7auqy+Je 0wo5ebbPVxXcLWRPYPqVfklb2thcqRDVRauPA8M+OUhd72bVcRT/ofwZuZOdQdsi3A tctOakWi6o5WQ== 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 54/88] drm/msm/dpu: enable writeback on SM8450 Date: Mon, 22 Jan 2024 09:51:27 -0500 Message-ID: <20240122145608.990137-54-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 eaa647cdbf2e357b4a14903f2f1e47ed9c4f8df3 ] 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/570187/ Link: https://lore.kernel.org/r/20231203002743.1291956-4-dmitry.baryshkov@linaro.org Signed-off-by: Sasha Levin --- .../drm/msm/disp/dpu1/catalog/dpu_8_1_sm8450.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_1_sm8450.h b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_1_sm8450.h index 7742f52be859..562de67103bb 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_1_sm8450.h +++ b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_1_sm8450.h @@ -32,6 +32,7 @@ static const struct dpu_mdp_cfg sm8450_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 }, }, }; @@ -316,6 +317,21 @@ static const struct dpu_dsc_cfg sm8450_dsc[] = { }, }; +static const struct dpu_wb_cfg sm8450_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 sm8450_intf[] = { { .name = "intf_0", .id = INTF_0, @@ -411,6 +427,8 @@ const struct dpu_mdss_cfg dpu_sm8450_cfg = { .dsc = sm8450_dsc, .merge_3d_count = ARRAY_SIZE(sm8450_merge_3d), .merge_3d = sm8450_merge_3d, + .wb_count = ARRAY_SIZE(sm8450_wb), + .wb = sm8450_wb, .intf_count = ARRAY_SIZE(sm8450_intf), .intf = sm8450_intf, .vbif_count = ARRAY_SIZE(sdm845_vbif), -- 2.43.0