From patchwork Sat Apr 20 02:33:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13636906 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 55D74C4345F for ; Sat, 20 Apr 2024 02:33:14 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C3D2010F0B3; Sat, 20 Apr 2024 02:33:10 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="i4uXnUe3"; dkim-atps=neutral Received: from mail-lj1-f169.google.com (mail-lj1-f169.google.com [209.85.208.169]) by gabe.freedesktop.org (Postfix) with ESMTPS id 06E3D10E077 for ; Sat, 20 Apr 2024 02:33:05 +0000 (UTC) Received: by mail-lj1-f169.google.com with SMTP id 38308e7fff4ca-2dd2bd8b1a6so327951fa.3 for ; Fri, 19 Apr 2024 19:33:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713580384; x=1714185184; 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=ns3D7U89w4Ga44opBEB2b5k+fkMy5ilMmgKD+0mYkkQ=; b=i4uXnUe3aoI4oEk7akG+SsHtYpilBUzneuCXsLgdIVixFfAQ9lyhFhJCg8XYVdHbNr c80vZKBr+N69t/eJxY181Wt5b85MTVZd4/x1bXRDt/qAOXO1ZipQ/BGQoXH3xqOVuECD CJgY+PM8cI7Jafuo8GuHykhPZLoIJerT/gI+OS3xH3MDS1KzeA35RQ0rJrbEWYiOsQMG J/ZePHoqMdKHofD6e9d3JteFJV6cWXkIgiY5YTfUBbYAjYY15eUcQhUGMub4vQwHCqQ9 ZAZV7wLUkTlBBOsmqaQ3W8dfYUAC9wHQHisMWCTKGzMvhlGNEYhM5PFga9rd20l0pg1E ShnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713580384; x=1714185184; 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=ns3D7U89w4Ga44opBEB2b5k+fkMy5ilMmgKD+0mYkkQ=; b=ZnaG19EkNJFEwBLD0jLAqQBRHBFCfx6TWrDxVSbXNlZezI63GHTS8W/ZUyoUMgNIdE ba/iSyC7heVjCdJNYbBqpU+2Bh4DJqBrHEQEgUOPYqpwzLAtuDYXrjKAOtSZc6qr5OXD 2Nmm3IMnKXnaMOFYrcbYUfm9tiNNaxLcIlGFXC2aUAdsn/SDzT611j81cCaqz+1FORRC z8rtHrZK64MB7Fo/pMKsgmRNUS/m9hNzbwBKGTRZI1BhzBPkJCWPUTWVgStecOY5dqAr 0+LuWCXLPzDvkDj4vJHXkheUowM+zVWLt3rmODhAO1H87eN2rXYHQdpKJnbfeQmlx0Aj dp/Q== X-Forwarded-Encrypted: i=1; AJvYcCVGwZlP5u+ZI9yeJU1WFNff0NFM4Sj2U50uRcs9kQOu0cpyR3DEJ/BITUY9dVEDteE/Imo5yUEaWEqCd1zzcXwWJfwV5abPufkZmLmPud2I X-Gm-Message-State: AOJu0YzVA5XftUJoKYent5fUwHZ35N/cnCXLT9wGPx7ZPtgP6BECVtUX uLiwiA5tsAaI2GzpGyB2lVd1hX6Pu75XQAxBUXB2/BMGCuiWomnR1GhWVib+WJw= X-Google-Smtp-Source: AGHT+IG3I4ixwxPsmaplHRUzztsZvIFLMMDzdAjALXBbvS+/rMtUD4mjeAfYPtC43oL1zExWhd7xEQ== X-Received: by 2002:a2e:7011:0:b0:2d8:a98d:19b with SMTP id l17-20020a2e7011000000b002d8a98d019bmr2455649ljc.21.1713580384053; Fri, 19 Apr 2024 19:33:04 -0700 (PDT) Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id 20-20020a05651c009400b002d87e936833sm836843ljq.125.2024.04.19.19.33.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 19:33:03 -0700 (PDT) From: Dmitry Baryshkov Date: Sat, 20 Apr 2024 05:33:01 +0300 Subject: [PATCH 1/3] drm/msm: don't clean up priv->kms prematurely MIME-Version: 1.0 Message-Id: <20240420-mdp4-fixes-v1-1-96a70f64fa85@linaro.org> References: <20240420-mdp4-fixes-v1-0-96a70f64fa85@linaro.org> In-Reply-To: <20240420-mdp4-fixes-v1-0-96a70f64fa85@linaro.org> To: Rob Clark , Abhinav Kumar , Sean Paul , Marijn Suijten , David Airlie , Daniel Vetter Cc: linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, Dmitry Baryshkov X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=847; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=yIKy5VG5u8KAYmiLe9XQJJZeBeuGfwXNunL1nP2gaBc=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBmIyleJlJ2DCp/R/B/8g1KjRr9UcYKM48kdCVTr 3+p2/cKymOJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZiMpXgAKCRCLPIo+Aiko 1alaCACxlDsy/3INrV/gtG7PKl+wld/wdpLUyEmZkvoUlGPMCid2wrFBqyPbG02h6AMEmtNva5h LdNtwFdCTwbfK7dOQCG2RhZnESNeoQCd5w3Ioj/BEb63A3kKe7wHS6lb5kmoLc2FQkTkngB/Qaz bwhkqam0inth6CygsfsvHNbID7yXl9MPnJLH8bZru3RJ44oLjews07I8EZl+lSfKTOZTQ88Kk9L uhNoeLdOpHJUNDBTWDGUbd6qnI5OeLgn55eG5geOUoX6suqS+EZWGdjiuxwaG3t5qM3fRL/JB/3 8apENvOKLPMX3V9IIdj0pH2OvA0aivLxPBJRZwVs2CIMCFgS 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" MSM display drivers provide kms structure allocated during probe(). Don't clean up priv->kms field in case of an error. Otherwise probe functions might fail after KMS probe deferral. Fixes: a2ab5d5bb6b1 ("drm/msm: allow passing struct msm_kms to msm_drv_probe()") Signed-off-by: Dmitry Baryshkov Reviewed-by: Abhinav Kumar --- drivers/gpu/drm/msm/msm_kms.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/msm/msm_kms.c b/drivers/gpu/drm/msm/msm_kms.c index af6a6fcb1173..6749f0fbca96 100644 --- a/drivers/gpu/drm/msm/msm_kms.c +++ b/drivers/gpu/drm/msm/msm_kms.c @@ -244,7 +244,6 @@ int msm_drm_kms_init(struct device *dev, const struct drm_driver *drv) ret = priv->kms_init(ddev); if (ret) { DRM_DEV_ERROR(dev, "failed to load kms\n"); - priv->kms = NULL; return ret; } From patchwork Sat Apr 20 02:33:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13636905 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 9DD10C071FD for ; Sat, 20 Apr 2024 02:33:12 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 73C4710F0AE; Sat, 20 Apr 2024 02:33:10 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="E1BYiWNc"; dkim-atps=neutral Received: from mail-lj1-f173.google.com (mail-lj1-f173.google.com [209.85.208.173]) by gabe.freedesktop.org (Postfix) with ESMTPS id C57E210F057 for ; Sat, 20 Apr 2024 02:33:06 +0000 (UTC) Received: by mail-lj1-f173.google.com with SMTP id 38308e7fff4ca-2da01cb187cso45985771fa.0 for ; Fri, 19 Apr 2024 19:33:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713580385; x=1714185185; 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=qDk5fHKqnh3Ymuh3Yv85wCMuAKGtkk4BBfWgOawHww4=; b=E1BYiWNcvJz2AoZ/c2UOQpd3YVoi9K2cJbFw01Q/ll8fG1BJ4UzuACJgEhe5rFRWs4 ZvjyyTB3tmzvTgR7ChDnZOzKCYRDAqDdPqy+iTIAs6HpizsEshZuNUIIzbomcDaUP25a XmBPRKVtelEahTXAC0w5TqeIL1jMf5SUuerP4D0f64zu6zywqJESXA8iVmW6E9+/rPCQ l7b4OKkLSr/DfBhnAnLfxJLmY0K/V8jwDFgNiHK68bIwh6+NktLF+n1kTBVP5kzOy7cM QAE4dM+C0MjDecLl8MhnD4UwpAedsmqwxulAELrhys5Atp9sTsnGkduIExDBMsixeI2A fbBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713580385; x=1714185185; 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=qDk5fHKqnh3Ymuh3Yv85wCMuAKGtkk4BBfWgOawHww4=; b=APNw2ahLmg9I2ilbNYlAsCGq7iAveqG9xKjGFICGAKeDRhJ+s0ni6Ah1/1yVsJ/1Nk aGDjzx5hiZxEfxgCgPOxp7vs7au0nH/exxy5uxwRPI56vMZ5tKy720+mq/QDSL5PyIXR vKr9eSS4Swbb5e60bmg2a5fUwagr0WBxnxqjz9FOrajpjkIGTo3dCFcXGsazyCGKFjZH 4gPfRzQRT2E6g5Slzd8P6eHKH6ezsEiRjk0eLMJZGKX1Am1VQBaAFmLACUvMdjGv3iLQ Q8oWeaFElyvqBNsyt9pDadYIuuMsPLxoCdGxs7dL6ySZaAycPO72tyrmPA0rY1TCiijz xwwA== X-Forwarded-Encrypted: i=1; AJvYcCXQgA8wnDGMVaH4loFLGjqP7QMVbQseUbKrAmEsAAs6MMkByfbiP9OUjaWlJzJvii7rbislHUIu1pJ5mI9ToQal+Asce/XeFoHxL0I3Ii3C X-Gm-Message-State: AOJu0YxFK2ZEzdrFZ0OtcZ76dC48kNFKd/p1bUhP/l+zWbyaeW7jHW9H 4uT868w9S0w11iKsehU/jpA+LT7+27aokv84grNKgy9LXDzAxiDTJKGNeWXud2o= X-Google-Smtp-Source: AGHT+IGFYxHPEv2nSz87/BQG1vu5Ypasi44ZiSz0Hd7YZdpw3Mv7a1b7WxKcr9RE6G9H+Hjktfr6oQ== X-Received: by 2002:a2e:b0f8:0:b0:2d4:6a34:97bf with SMTP id h24-20020a2eb0f8000000b002d46a3497bfmr2467906ljl.49.1713580384898; Fri, 19 Apr 2024 19:33:04 -0700 (PDT) Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id 20-20020a05651c009400b002d87e936833sm836843ljq.125.2024.04.19.19.33.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 19:33:04 -0700 (PDT) From: Dmitry Baryshkov Date: Sat, 20 Apr 2024 05:33:02 +0300 Subject: [PATCH 2/3] drm/msm/mdp4: don't destroy mdp4_kms in mdp4_kms_init error path MIME-Version: 1.0 Message-Id: <20240420-mdp4-fixes-v1-2-96a70f64fa85@linaro.org> References: <20240420-mdp4-fixes-v1-0-96a70f64fa85@linaro.org> In-Reply-To: <20240420-mdp4-fixes-v1-0-96a70f64fa85@linaro.org> To: Rob Clark , Abhinav Kumar , Sean Paul , Marijn Suijten , David Airlie , Daniel Vetter Cc: linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, Dmitry Baryshkov X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3569; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=GQzVVYo33W2Hu30tmAXW3x/XysFC6yW9pZ62iPoS2M8=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBmIyleU+XAbOqMszZPcfnbC9pF4dSLOlWp+Ro35 4c0yo6gjzCJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZiMpXgAKCRCLPIo+Aiko 1cWhCACZKliWZcXp6bbxQIhR8oxBlqI4DLHnHBVhq6OGdyyjnViPn5pQU9Q4fK12Q6KNcX9mBdz EgvXq3S8n2+eBQB7talFGSVCorXGTfgcd0HnpnrzidpOyP08gJ7FLEOTvVHvIBoMHtcGcYwOhMM W0IfSH0gYVQp/C/SVFt2SOdiB+RsH9n3HhrFoy4DXbnklviFLSyKlnSm9jJTqD+CpnhZfxP9J2R W2RXl5oRc7pyT0y2BkkX+eVWc7pO8MZf7sTczYMI3+b3MbcTIBYUL4VCMRWP86xVoEriWWwJ5Sg zEFC+g6BtQrPpwvvZKVQ5EHSF7/w/l5r5B4D05AcWtuR9nX0 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" Since commit 3c74682637e6 ("drm/msm/mdp4: move resource allocation to the _probe function") the mdp4_kms data is allocated during probe. It is an error to destroy it during mdp4_kms_init(), as the data is still referenced by the drivers's data and can be used later in case of probe deferral. Fixes: 3c74682637e6 ("drm/msm/mdp4: move resource allocation to the _probe function") Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c | 28 +++++++++------------------- 1 file changed, 9 insertions(+), 19 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c b/drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c index 4ba1cb74ad76..4c5f72b7e0e5 100644 --- a/drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c +++ b/drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c @@ -392,7 +392,7 @@ static int mdp4_kms_init(struct drm_device *dev) ret = mdp_kms_init(&mdp4_kms->base, &kms_funcs); if (ret) { DRM_DEV_ERROR(dev->dev, "failed to init kms\n"); - goto fail; + return ret; } kms = priv->kms; @@ -403,7 +403,7 @@ static int mdp4_kms_init(struct drm_device *dev) ret = regulator_enable(mdp4_kms->vdd); if (ret) { DRM_DEV_ERROR(dev->dev, "failed to enable regulator vdd: %d\n", ret); - goto fail; + return ret; } } @@ -414,8 +414,7 @@ static int mdp4_kms_init(struct drm_device *dev) if (major != 4) { DRM_DEV_ERROR(dev->dev, "unexpected MDP version: v%d.%d\n", major, minor); - ret = -ENXIO; - goto fail; + return -ENXIO; } mdp4_kms->rev = minor; @@ -423,8 +422,7 @@ static int mdp4_kms_init(struct drm_device *dev) if (mdp4_kms->rev >= 2) { if (!mdp4_kms->lut_clk) { DRM_DEV_ERROR(dev->dev, "failed to get lut_clk\n"); - ret = -ENODEV; - goto fail; + return -ENODEV; } clk_set_rate(mdp4_kms->lut_clk, max_clk); } @@ -445,8 +443,7 @@ static int mdp4_kms_init(struct drm_device *dev) mmu = msm_iommu_new(&pdev->dev, 0); if (IS_ERR(mmu)) { - ret = PTR_ERR(mmu); - goto fail; + return PTR_ERR(mmu); } else if (!mmu) { DRM_DEV_INFO(dev->dev, "no iommu, fallback to phys " "contig buffers for scanout\n"); @@ -458,8 +455,7 @@ static int mdp4_kms_init(struct drm_device *dev) if (IS_ERR(aspace)) { if (!IS_ERR(mmu)) mmu->funcs->destroy(mmu); - ret = PTR_ERR(aspace); - goto fail; + return PTR_ERR(aspace); } kms->aspace = aspace; @@ -468,7 +464,7 @@ static int mdp4_kms_init(struct drm_device *dev) ret = modeset_init(mdp4_kms); if (ret) { DRM_DEV_ERROR(dev->dev, "modeset_init failed: %d\n", ret); - goto fail; + return ret; } mdp4_kms->blank_cursor_bo = msm_gem_new(dev, SZ_16K, MSM_BO_WC | MSM_BO_SCANOUT); @@ -476,14 +472,14 @@ static int mdp4_kms_init(struct drm_device *dev) ret = PTR_ERR(mdp4_kms->blank_cursor_bo); DRM_DEV_ERROR(dev->dev, "could not allocate blank-cursor bo: %d\n", ret); mdp4_kms->blank_cursor_bo = NULL; - goto fail; + return ret; } ret = msm_gem_get_and_pin_iova(mdp4_kms->blank_cursor_bo, kms->aspace, &mdp4_kms->blank_cursor_iova); if (ret) { DRM_DEV_ERROR(dev->dev, "could not pin blank-cursor bo: %d\n", ret); - goto fail; + return ret; } dev->mode_config.min_width = 0; @@ -492,12 +488,6 @@ static int mdp4_kms_init(struct drm_device *dev) dev->mode_config.max_height = 2048; return 0; - -fail: - if (kms) - mdp4_destroy(kms); - - return ret; } static const struct dev_pm_ops mdp4_pm_ops = { From patchwork Sat Apr 20 02:33:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13636904 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 0BAEFC4345F for ; Sat, 20 Apr 2024 02:33:11 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 24ED110F076; Sat, 20 Apr 2024 02:33:10 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="IZ1CNFAj"; dkim-atps=neutral Received: from mail-lj1-f176.google.com (mail-lj1-f176.google.com [209.85.208.176]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7029E10E4DA for ; Sat, 20 Apr 2024 02:33:07 +0000 (UTC) Received: by mail-lj1-f176.google.com with SMTP id 38308e7fff4ca-2dcbcfe117dso18430301fa.1 for ; Fri, 19 Apr 2024 19:33:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713580385; x=1714185185; 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=qJj0NVpNzcIA0CNg6WrohgI0V5laf6VHve5Qp9ZoIKY=; b=IZ1CNFAjCGGD/FPgrl3pEUHho6B/2VH2fuHVQW2KyslvMAqGHADWGLhbKNkBbwwbB6 2uafkgBU3yxMHFB1XapXcFTMrx9omiCSW64r5Nv/HBAJ9InuC66JECNwml8j+vh6VDJF B1FoGX09/dbIP/fZGC5rP4jbPltGHiEEH2tGeVeOMXxKH+Z0LybpHZIwWlRzP0VQlszg GmOhEDWnyWdd+IApkTQFcGDD+UQVB3Wn1QEJVi9Jql+khsLBnyZOLEbryFQ1yz/xw1Gp L/Vg+nGVCo9vHk1+tmTNtc0v8vD+w+2p72punRurotcE+aPjavFF5HA7tAT+Pkm/ncfa vMzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713580385; x=1714185185; 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=qJj0NVpNzcIA0CNg6WrohgI0V5laf6VHve5Qp9ZoIKY=; b=ZEVpK3BmG/ZGovojBgOtoVcrUZt583yJHeKkFnhqfQ8ckZLEURTfywRC+1mTA+5Pxt qv7FhQoNEkoEhSMxgpHWxV1sRpBFe+KsJAIhBKlHfxFQv6k8c3/sQFEix2Dk0Nd/fTmi N8bTLnqY+ccKP2tLXUAqLNUYNwoeZNXj2qMR1X40ZzKqShp07d5xfipr6/yDpv95SnSE DIn/jCteU8fbnrUlAB1XzGOPmpWKY5g+/noAuTkWaaGn+N2qkjXzlSPcnpNbpDMJD53h gopbyg2V9q0bA8UtjiFcY8Y8jqrAv9NsUC/74gIQ29xQTTl1KySgH1OcJHdHG8kpR1yz Jsxw== X-Forwarded-Encrypted: i=1; AJvYcCUAE3nD1aFQOp4oyJvHoUZu2xG9iPhWFeFIOIyVjNJbi9wybzfYoI4+qC/0M6t1niXbmHfAL+As000/byq76NZdPu5Xsz6frPfrbtOnSFWt X-Gm-Message-State: AOJu0Yw9xTZxTHX/WEkvqkZU/qUvtH8ZF2wsVy9IQN66vfuw2GgGzt9h Mmq7fwROXOjzI6ry2HwaNTEg23rMQ06KLzELYPZgySoG5e6hUD4WlBezXQjROXM= X-Google-Smtp-Source: AGHT+IFNtmgoAN9iJrlmraQgNVX1ijFC+HQJZ6EhK8prwLKNP2A9W//3plzTMOlbigeGs8o7w/FVXg== X-Received: by 2002:a2e:97d7:0:b0:2d8:63a2:50d2 with SMTP id m23-20020a2e97d7000000b002d863a250d2mr2556913ljj.6.1713580385656; Fri, 19 Apr 2024 19:33:05 -0700 (PDT) Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id 20-20020a05651c009400b002d87e936833sm836843ljq.125.2024.04.19.19.33.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 19:33:05 -0700 (PDT) From: Dmitry Baryshkov Date: Sat, 20 Apr 2024 05:33:03 +0300 Subject: [PATCH 3/3] drm/msm/mdp4: correct LCDC regulator name MIME-Version: 1.0 Message-Id: <20240420-mdp4-fixes-v1-3-96a70f64fa85@linaro.org> References: <20240420-mdp4-fixes-v1-0-96a70f64fa85@linaro.org> In-Reply-To: <20240420-mdp4-fixes-v1-0-96a70f64fa85@linaro.org> To: Rob Clark , Abhinav Kumar , Sean Paul , Marijn Suijten , David Airlie , Daniel Vetter Cc: linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, Dmitry Baryshkov X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1032; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=htOhpHZqfkaNIIMsarbteDzLLXhNLKYXxH4xJldHcHM=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBmIyleo14FB77/xwSYYxgiMneE+ot1fDNFIjmne V8/xay4OceJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZiMpXgAKCRCLPIo+Aiko 1fkIB/9jw5evFcz1CLYKLKgH5q4mGwLaIQyHv/tH6iRQFvR6xMI6/TmOexRXBFy+v6+vCaahyro Iv9NkjDwMYQsIX59E8SAk6R4rAS9yvbzer0Sk3SUgRPP5qWlmqYq35vvCBWGJ6zO6iTZh9A96Bf /+pD3nlkklNK3V9dh1BS8FNZ4FJ3shL1uSN6vlLuOjZmC9vqNmo7K39oyK2nr4S3/1tdLvHYuwM dTV7eE59SkZxB6YFs8blC+vWpbpF5QCitSCjuUOs3HRnGJDL+A0pwBJ+BFmhN2lkfBuVZJkY8Ts VdLU9Igta71TP8G2gE7I/OMx4WhznIJ4nIuLOqcj+8Shq+wt 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" Correct c&p error from the conversion of LCDC regulators to the bulk API. Fixes: 54f1fbcb47d4 ("drm/msm/mdp4: use bulk regulators API for LCDC encoder") Signed-off-by: Dmitry Baryshkov Reviewed-by: Abhinav Kumar --- drivers/gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c b/drivers/gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c index 576995ddce37..8bbc7fb881d5 100644 --- a/drivers/gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c +++ b/drivers/gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c @@ -389,7 +389,7 @@ struct drm_encoder *mdp4_lcdc_encoder_init(struct drm_device *dev, /* TODO: different regulators in other cases? */ mdp4_lcdc_encoder->regs[0].supply = "lvds-vccs-3p3v"; - mdp4_lcdc_encoder->regs[1].supply = "lvds-vccs-3p3v"; + mdp4_lcdc_encoder->regs[1].supply = "lvds-pll-vdda"; mdp4_lcdc_encoder->regs[2].supply = "lvds-vdda"; ret = devm_regulator_bulk_get(dev->dev,