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: 790729 Received: from mail-lj1-f179.google.com (mail-lj1-f179.google.com [209.85.208.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 180CB5CBD for ; Sat, 20 Apr 2024 02:33:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.179 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713580387; cv=none; b=q9UGJboU8Msonz33u6X/0q2IYcJvCijCYaWx8D1PWbhAHJeIt+iP1ExxkHKJwGytWS9il0tbZHO+M1OZO04KdJXcMswtk/d/jnXjbcMWyUXqI8aIwjagyuQ/+t+kU4HxVMMDZ365mxJxvUYef/6+SMXOgyvFzVv1qyfgsAi0WTE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713580387; c=relaxed/simple; bh=yIKy5VG5u8KAYmiLe9XQJJZeBeuGfwXNunL1nP2gaBc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=WlLqVjlBFi8ucPYHBPQilQondDOkxfTtX3bg1o4lbncGFunu/qGLOvakcc7EIFAM4qd2wDnln1AwhSIeFbi44QytQj2fgGiKfh64Ms1p7cmQFs79H/qFBPny0WvQ0cB2j4v870CUckt++q1qOwD4yXEicTrF0HhxRpDW8vp4OQM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=XxOH/Ju4; arc=none smtp.client-ip=209.85.208.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="XxOH/Ju4" Received: by mail-lj1-f179.google.com with SMTP id 38308e7fff4ca-2dac77cdf43so34713801fa.2 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=vger.kernel.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=XxOH/Ju41fczsM1Y28er86d7O70UGojILww0okr0SDLh5bn2gRSqRCOi3IFyHMUQmJ KXrKR5nxSkdoVOsx/uO4Fk4MMgmS11mKwAtCCfoi12cwggpZ6dzXCGnUNK5MTBv/V02R d8WcGxVXPL0VE9tDa6zWXe6b3b2j6gWp0XJDaWkDUQGzfp0VZ48Cz3tcl1olLHefOeV7 J832N81iqjODdr4W/Z7x1UiVMx13STlKqOv3YzUMLFX533jaajGnwxff2D3Lp4VACA86 0cM/X5XUZhGqFZYp5b6lZ4X15o/zxXcoIJWLC2z+k1N4Ir/43L1guDJbS77tfY7VLDRw 0Eyw== 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=gmDUUQPYtacyW1IRs6Ed5yOHpj/t51rPJ5PXwD7zor5eatN+BvuyYbCvNQoZmM18UL asOgMN8zlvDJ+4Js75VcvjUORDNRwrPLVL/NwgT0CDbngu5q8QGcIeZG2IkXA7m8ae7V xu5yTjD5mg2eNJ7Rs93avmXEKf+4wq26J2tELlckhcXWBoTynHrBgAu3E7wm3Zt6Fs7i 1iKlJlHxvBthOiMQomFZ8zv6457Oas5wqfozSClRjt/WFdR6CpGzctpipqGv6je88uIv 4kGghpDu8T2FJKb3of4NGJIHWdl1YTBgtFFgrGy7ASUGLPQMmMQqUuGqWhSgxO8qBddA lhjA== X-Gm-Message-State: AOJu0YyQ8urHwpj8h2Ab/XT1VjprwNU8fyVuY40ZH+khI6yQsM7twSFj AkA2N3gK3s9N4LYt+zQxvbt152nqX2v3ALSQ0p8hxxQnQO2Hft8lGjdzh2fOgrR0UlOSCAWI4TW s 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 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 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 --- 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: 790549 Received: from mail-lj1-f177.google.com (mail-lj1-f177.google.com [209.85.208.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C90CF621 for ; Sat, 20 Apr 2024 02:33:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.177 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713580388; cv=none; b=kDQluuQdHk6aIT9x0vRYFG7fAj9ifA+ByTx/cZD5jN3BoYf53RwVi9qWqRGpjooUvFeX/0aO+cLJEz38LRVenE52z7mzk/w26icSLbvUutlUjPsiJoif0ft9gGlAtCJ/a9a+HSkHlIw3OQ8zLj9gpC1B9+ySPxDVd4XVaCCgClE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713580388; c=relaxed/simple; bh=GQzVVYo33W2Hu30tmAXW3x/XysFC6yW9pZ62iPoS2M8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=UgFZeGVqSP+TdjCcDQ59Bo1/nuFiDX+9LnBJa87YHD76Cr3PRUo+ejr0RXKgjI/iCeWi+DBmHLDRGWLVl+jfcQgmCEluhuVNvw7hFx8taq72QyRR3cnaf4ttP3IkFkMRDQg3qikvRBm6FfxvTU4SlMzI1N2GB57DAPpEGYR3JDU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=iwiyeFI+; arc=none smtp.client-ip=209.85.208.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="iwiyeFI+" Received: by mail-lj1-f177.google.com with SMTP id 38308e7fff4ca-2da01cb187cso45985801fa.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=vger.kernel.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=iwiyeFI+3+PFF665iWwyQzoZcU05ykctkrLqzfYwGf6EgsMGI/v9c1qWyUpJF/7NTO BsiNzpmhkUP5cwfkAK9kcmC/D3bVZVhDh/oRtGqa0yuBhB2FPpek1eGChDX4dTrI8mzJ E8IEyc0DB7QwX7ikpii2+TJVV3hJf3ytubIw9ePY60oaLVCDezBX9EV7NDQToPCY51zA otlDtlWewru8RY3BgOTZCpgVMiHmwmT+//DVPfyuovSDsYdpOHTGraaTwdlZaM/OLmiX phBSe9OITWiycrHYRQVqh3yONFV9zvESuegca43MEAlnYuZ37GPXZHqIbw5jptL3Ssnd pB+g== 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=m3rbfKTf5h5SeQusUNso2g+SyT6B4b6vnTn3b3UJHR7DVuYI1G5s8o0ul0tzAHbwRd Kp+pv9Ia5jnnmYnq9kWS6J0KtaoZiYLDIK6s8zL0oKFjSGVjiqosTwbc7AxyN90J2r/n u0gVCfRBuJzxde9BVc4F1iS0dWuSzD4etbOnKAGcwAL3KJMxtNYfR6z35YFxXGVXcxdQ 1xVQJhb1CGvXuNPg6sd/9wSCRAOzjoxx6ZlMpeD/cUziJZfbdGyzRaOR0kuXNqoGWXXb V/+6AGVOx1Wih3mAGNsyvmKzEliH/lHlLLEhr6kP7VJxxmZbb4arA1Djb0xZN806Ooew EFXg== X-Gm-Message-State: AOJu0YymZVb+Nv4jAlYnjGf/I440p+/lvzwEbgXDN7Q72U56lhHbH78l LlAuiPIkCXMTkurn19u3XJ7q4beUeFDa/o6kCAuM9FqJuk81sDQqn3XJrrl/labCAPvdzEsk7c3 V 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 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 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: 790728 Received: from mail-lj1-f179.google.com (mail-lj1-f179.google.com [209.85.208.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8136B6FB0 for ; Sat, 20 Apr 2024 02:33:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.179 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713580389; cv=none; b=Q0nVxcGtOCtnzYMajWIoopMCqTDjkFBWvyyVg+CKqeT7ScJog7scbs/7kYH5ZCdlvWG9MCGiAnvrjJI/XSDwPhUafVWUYpXL8u8+QtmLiwB+T3hlKysbHzi0L+ZoVZScGM3ZzHnEy0HjoAi9WKab4zLrX+U/iqAZtgx8jjsF3uQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713580389; c=relaxed/simple; bh=htOhpHZqfkaNIIMsarbteDzLLXhNLKYXxH4xJldHcHM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=PFuN71B6BjjYptLe/iTVPs1WyF2d4qP92RmzcLSzWc623QR07VwTPXLyMTxjEIaZp+jscmzXZ+6LLDOY2+/1G1+vLs1JFiZ/lgOqAIRrXWobjNuRO8cUYCTTuyxqnjSQ3zoeZXmXWsMM9YByOzo6lgLunt6KyF/OPctVV1dNwME= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=xgAwDREW; arc=none smtp.client-ip=209.85.208.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="xgAwDREW" Received: by mail-lj1-f179.google.com with SMTP id 38308e7fff4ca-2da88833109so34496771fa.0 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=vger.kernel.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=xgAwDREWNiD/8rcJlSV6wy6FpTAQnJF/NNWIKoSa8I5a6THamxDXturEq/iS4Ur+Mk IrJ4uhXst9FpX1PBrvrtT/+RwLmSNeTf31oOCKoC35NUNa54kHanlYPOaNlZtEFNsky2 t0XYKOKRswRXBpO6Vwg7G1QTkE/MZyNWQaXHH3jVP1mxg2svvYj8L1+nICOdboP6SGkW bVkZBkAZgLgLh0k3tl6e+EHmd0LqfC0ku6yDyKp3eRLQ2Kfj+ODdZHNz7exudptujpmO h46BFteaYIC46rAaoPdXy+E1Nsfa+du/5SE92i/u/q0a4mReZPgwdexivMKaBaHl1miC +btQ== 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=oi1Z+foZyR+/gwLMpLLJTmPLVEfF6bizWkiJ+OD0RbNUYCr6myeCSCKr8SF1ZP7fv9 nop7sYdtB9hiJm9Kc0UK9yIQpcmSXN/9iGg6aKB7Nog867zSuUnXO6ZD39ZWG5+7sEA2 8T9fWynL46Zw553AFPLolI2WLHI7W3wVh2+j6x1nwsT12atGgCLMPLfPlhoqg1lK0St4 3DDjpTM9ifLQWg0aM8CGGydkCTkWU2p5m4+FNWY0EM7So6+5yOkzX3PVBMbpKF9jHP8w Sm8QojdkKVIN5s8pH33Xc5UQ3wVyrnwFXft/n2gMyIjqvWXpnvCLbzVCfMdPDsM1CScE sxDw== X-Gm-Message-State: AOJu0YxctlDspfyTyN8zeDkXB+cJZsh5AWTDisfPHtT7aH/JhEvW4Mdl CI2DYyrvzQM4vOpXc4FSMKMKSfS4vq5cBw38H//r0Bkj20GH8tQFTiiVGbH77n01BPuErLsRhpm O 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 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 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 --- 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,