From patchwork Fri Feb 28 04:14:12 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13995659 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 BC5F2C19776 for ; Fri, 28 Feb 2025 04:14:40 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 393BF10EBED; Fri, 28 Feb 2025 04:14:40 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="dZLxY13O"; dkim-atps=neutral Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) by gabe.freedesktop.org (Postfix) with ESMTPS id A156110EBF7 for ; Fri, 28 Feb 2025 04:14:31 +0000 (UTC) Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-548878c6a5aso1737760e87.3 for ; Thu, 27 Feb 2025 20:14:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1740716070; x=1741320870; 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=k3kLn8+jQchoUvHapCVtAnDT2HhczV+P/3nKNxhd/mI=; b=dZLxY13O/hZRYzE6UMONL1yRaqf5CLmGbInOj4Y6R2w7luIHqDJJxlOKILzBP0Me/s VHUwhRpBpxid2DGN4OHewqyxxmQD5bQwxrH065XtMiV5qsaN20Zf1IdpUMXt7rdEDjvE d2UW/F1NiSwWXR/EKKOciRgoJoV/rlDNsEjXm+P1frzeUDz/f3mmbua/C28kK7GL+NSZ SsHx5K1jP7LXutR0hMud1wg50CPlnMP+MA5gY8sSOLVDRgNGmNfUVbKDhRJSw9VWDer6 OtzoD3VwGrsiPfJXhcxI/hsbXOng0WFcD5TnWbSOJkQV4Pbz/gfslFjRBUY6GMS/7OCk wrXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740716070; x=1741320870; 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=k3kLn8+jQchoUvHapCVtAnDT2HhczV+P/3nKNxhd/mI=; b=N+EVwCk1EMnpzsuIPSR4kfTmozUQfkb5PNK5hVl+UI0HtNlkHTP+00UbiWYOIbcoL+ FWUR9wvktFtmR33vs7OSDwr058f1l6oDJ16bIkM/krKsm3bhud+TnU5BD5KkSZSzHpX5 dmHm+7a0VBftgURw5vrAfAh1nKYG5Hxnu3rmdfCQUAryrVoeAJsvgzLjv1IzixG4XwPd F9HQqri8eynJJu7axhTOCGew6Ly+3Gin2CxO3Iy5JoFCtKvkesB0zRtZ/0XZtn3Gji+M okCJShpW8KIWZGmC+hF+wYBwJ/OIlopNpY4e1ANAC1Eo2YoKroYlHijyJBs3PTlS/Vfy D4xQ== X-Forwarded-Encrypted: i=1; AJvYcCViiz0Rg27hrwuADZI4s7ARauZvUcLY/opa11l+KnWSzmnruQh6JD4QF628NCztsWQ0HD60RDYHVwE=@lists.freedesktop.org X-Gm-Message-State: AOJu0YxERsbOLbjzoluuMk1BDA7LgmF2u71RYh8yElcVyQxLMlQjL1fy bK0ArTj3hQir5BauS8ShqXPuKrQIowPRJf9mF9ro435KQ2qlt39y8N91GzWY5Xkj3kFz5urecxM hVGI= X-Gm-Gg: ASbGncsmD5D1h6gn8Q8MoFqoE0qNvRaE/Ru5ailyGIMpDrhLuBw8atMwV9tp4WDOfMm lpx1b9QLy/ooeCAvobRQMGOpwgcIuPwBq9imAtfgz8L3eaYyTpW9/+WqGy1OctYfgCoUFgiy+tT DNYI17ytzOnqEISLpZZwj1LcATx8t2TxQXZ8g5AyvjnMOnJHQCEna3yoE6Aw4S0T1NL8lBhTluh Cil/dRLDU5tYvYc0WQo2c8l2KlsrED2Iz0BAr6V0zWrPlVk5qmwrzF2kFouKE2ZgmT1awClxM5g BMJERxbWHflGek5f4SBxDmdG9aG76MO5Eg== X-Google-Smtp-Source: AGHT+IFDSc3I2mqP5qdXMpIRdHJvwKMmhG7fxY3oSiaLL4XJ56Lr0lDFiJk8seHX0EAq0LMWQw0Tdw== X-Received: by 2002:a05:6512:693:b0:546:2a27:ec35 with SMTP id 2adb3069b0e04-5494c37d6dcmr634988e87.37.1740716069990; Thu, 27 Feb 2025 20:14:29 -0800 (PST) Received: from umbar.lan ([192.130.178.90]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-549441262b9sm361101e87.0.2025.02.27.20.14.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Feb 2025 20:14:28 -0800 (PST) From: Dmitry Baryshkov Date: Fri, 28 Feb 2025 06:14:12 +0200 Subject: [PATCH v2 8/8] drm/msm/dpu: drop now-unused condition for has_legacy_ctls MIME-Version: 1.0 Message-Id: <20250228-dpu-active-ctl-v2-8-9a9df2ee5193@linaro.org> References: <20250228-dpu-active-ctl-v2-0-9a9df2ee5193@linaro.org> In-Reply-To: <20250228-dpu-active-ctl-v2-0-9a9df2ee5193@linaro.org> To: Rob Clark , Abhinav Kumar , 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 X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1163; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=gbAmmg7YrMzJ9XNxwCPOatERTxM1Dbe3+ajpkL6KPO8=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBnwTgPgCbq+XDOYj4H5rvYaOVt6Lx/s7AaC8vhi DkF7csW16yJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZ8E4DwAKCRCLPIo+Aiko 1arGB/9gEroWlk0T+tDjWT0IrtdxlhHsIIkLIlfrjs+HlEfUh1WEodAZTwZ9DWE07tG3DNCmZpn c3YEYkngaozD/ybdEE51nsh1lEdop/cJhejr/tusiBpBB3fvZ0M1nfUxsKfVut+XDfA+VaIqbQm sGNHgulMZGb1AX+2QY8LAxfVbV4MXZLt4GSmh5ZJhFqPxRHP3LqNh/yAoGYdYQoi6P4981GJwh6 ZZG3Vq65duMphoVG53KKXxs87SPOdjM68WYAVpfclLHF4DyCHtBoPlUPxPKMpDurxwKVphZSete e7/Ks+NJ6bjmi2liXy02qC0fUERYj/Dr8KMxiyyrWS4tvvUe X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A 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" Now as we have dropped the DPU_CTL_SPLIT_DISPLAY from DPU >= 5.0 configuration, drop the rm->has_legacy_ctl condition which short-cutted the check for those platforms. Suggested-by: Marijn Suijten Signed-off-by: Dmitry Baryshkov Reviewed-by: Marijn Suijten --- Note, it is imposible to reoder commits in any other sensible way. The DPU_CTL_SPLIT_DISPLAY can not be dropped before the patch that enables single-CTL support. --- drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c index 4dbc9bc7eb4f151f83055220665ee5fd238ae7ba..2557effe639b5360bc948a49b0cccdb59ee35dab 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c @@ -410,8 +410,7 @@ static int _dpu_rm_reserve_ctls( DPU_DEBUG("ctl %d caps 0x%lX\n", j + CTL_0, features); - if (rm->has_legacy_ctls && - needs_split_display != has_split_display) + if (needs_split_display != has_split_display) continue; ctl_idx[i] = j;