From patchwork Thu Jan 16 07:26:04 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Nie X-Patchwork-Id: 13941371 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 88E46C02180 for ; Thu, 16 Jan 2025 07:28:46 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 07B2910E8E0; Thu, 16 Jan 2025 07:28:46 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="BOu25DpI"; dkim-atps=neutral Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1BCBC10E8E0 for ; Thu, 16 Jan 2025 07:28:44 +0000 (UTC) Received: by mail-pl1-f180.google.com with SMTP id d9443c01a7336-2161eb95317so9380505ad.1 for ; Wed, 15 Jan 2025 23:28:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737012464; x=1737617264; darn=lists.freedesktop.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=Cu15j2NJTtLjV9+MVFGzHMBk+ND2a5wSao3sFlDFfjM=; b=BOu25DpIJ5q5FSZyWazRLblo+x0E8DAPTbEdae2WC+VodGIMIbu/zR2e+GhqJFZW69 rit+GfwcIlMCqORSh8ZTFIlseNctbsstv7wVLtIBEFTJ1nGAB2kLGCvl2ebFO85a3OrG IFGT3DG/iqFnXzZoIDRtliLE3c9GAaEnBz3Z9ScU4ouMUbIFLW2CR5KhVRV8tE/ODBd9 Om9wfC4B5Sx6XyzdGa0Os4qn02BjnRq2zEJJI5E5YNnD63u7fjyKrGv1qR5YBC0Exyo7 TmowElfxQEw2CEUyWcl8Bd2YrqE/5s+CtevmvaC1Exy2qrOn6VPBHiGxFd/PhsqbV42j O7EQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737012464; x=1737617264; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Cu15j2NJTtLjV9+MVFGzHMBk+ND2a5wSao3sFlDFfjM=; b=Y7cX39Wu3vd6LwOK0BN08NFNNkcRyKV5Si/vWI9T6BCdbO5Qsn3kHcxOSoEaaarPiY yCecKdnkddO9hrN8Fqn53t+FonHby8hH7FP7UAz21s6gtc/1Esj6/ktuZ0mnVNJ1LcIa Ilt18QEPE32qEc3AQwyNwq1LLA2/p+FmlwuK3R3jgTkuVDTNEEqLA5XmMd2bKp/SyO7K DKJZhNN15BUJvws//eTc0A39Bc9UJ9XH5SDHDFuVSGIWxNz1SC4h9azTS8WssodbI6j6 FFp4dPzWnMCpyDxCUKtzEg/2Z2TJ85kP9hG+nr8wx2PEzUf87IhnYfyHzuj4bHRCwnSS Avyg== X-Forwarded-Encrypted: i=1; AJvYcCUnKDMIzVbx1eRitSS0TK9cVDgJopPiMqwiWim2LcbPn6HFbYc14RkpSJnq0RhvGo09skogyU9W3MY=@lists.freedesktop.org X-Gm-Message-State: AOJu0YwzA7vQmGy/htN7uFBlBFb+XRpRcA1vUpEFcAeJZ7SFTRPUMhfk NLY1yhFabzmJITSWU9f6II0oEZfuM3VNMHQcO3FRuW2XkgQd0ddBhYLc2CJvdvU= X-Gm-Gg: ASbGncsX0Koj8NtK/w8P6VnGsJiEdDqriLHQ40q2pm2lqAsV7zmd0IO7qv0uKNr580r BoT7FhVUJhYLW+RW52cOgT6Euu24mTkqzpdFxSn5kKOHHbf2g679FXihGu+RispDOFJOniJzVjh e9idTFZZeITN4LW21HasPcA3FBEOvwlUbijG8Bvt/Y2iwOcNF6ALbdYCULI6YBx9YOzCRkioUxe aC0P8E8xIUg1LdfiP4iXq6t4a8PqncK0KVzEIOchFjplzWFRQhA1w== X-Google-Smtp-Source: AGHT+IFm84hxYMVEr0+ywyZZl87XBL/i+rgyjayVVPS3fcbervFdbTiM7rDGmDOi8kZxi6bOUnUopw== X-Received: by 2002:a05:6a21:2c15:b0:1e0:9cc2:84b1 with SMTP id adf61e73a8af0-1e88d09e13emr58284163637.30.1737012463853; Wed, 15 Jan 2025 23:27:43 -0800 (PST) Received: from [127.0.1.1] ([112.65.12.217]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72d4059485bsm10164583b3a.83.2025.01.15.23.27.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jan 2025 23:27:43 -0800 (PST) From: Jun Nie Date: Thu, 16 Jan 2025 15:26:04 +0800 Subject: [PATCH v4 15/16] drm/msm/dpu: Disable SSPP multi-rect mode for every pair MIME-Version: 1.0 Message-Id: <20250116-sm8650-v6-13-hmd-deckard-mdss-quad-upstream-33-v4-15-74749c6eba33@linaro.org> References: <20250116-sm8650-v6-13-hmd-deckard-mdss-quad-upstream-33-v4-0-74749c6eba33@linaro.org> In-Reply-To: <20250116-sm8650-v6-13-hmd-deckard-mdss-quad-upstream-33-v4-0-74749c6eba33@linaro.org> To: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , Marijn Suijten , David Airlie , Simona Vetter Cc: linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, Jun Nie X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1737012353; l=1058; i=jun.nie@linaro.org; s=20240403; h=from:subject:message-id; bh=a64yZUVbmjveaxw7MvfAQcSIf9K7WyhFoHvJmze3ZhI=; b=LoRxm2CbOnuyS1YwLYTxXBpcl8r2bdQkUNXgYvF+hft9P5kfaGuNni01PeJrfTD4ZqL9BRGpw br3iGNDQUQeBxgmEr7nhgvZ5pnPUIL5foVNY1SR8XTgMkoKii2K+cWc X-Developer-Key: i=jun.nie@linaro.org; a=ed25519; pk=MNiBt/faLPvo+iJoP1hodyY2x6ozVXL8QMptmsKg3cc= 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" Currently, 2 pipes are supported at most. It is enough to check id to know which pipe is in multi-rect mode and disable it. Multiple pairs are used and need to check multirect_index to decide what pipes are in multi-rect mode to disable them. Signed-off-by: Jun Nie --- drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c index d96f4405a4c26..d2e0fcfbc30cd 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c @@ -1480,7 +1480,7 @@ static void _dpu_plane_atomic_disable(struct drm_plane *plane) * clear multirect for the right pipe so that the SSPP * can be further reused in the solo mode */ - if (pipe->sspp && i == 1) { + if (pipe->sspp && pipe->multirect_index == DPU_SSPP_RECT_1) { pipe->multirect_index = DPU_SSPP_RECT_SOLO; pipe->multirect_mode = DPU_SSPP_MULTIRECT_NONE;