linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] drm/msm: Call msm_init_vram before binding the gpu
@ 2020-12-30 15:29 Iskren Chernev
  2020-12-30 15:29 ` [PATCH 2/2] drm/msm: Add modparam to allow vram carveout Iskren Chernev
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Iskren Chernev @ 2020-12-30 15:29 UTC (permalink / raw)
  To: Rob Clark
  Cc: Akhil P Oommen, Bjorn Andersson, Brian Masney, Daniel Vetter,
	David Airlie, dri-devel, freedreno, Iskren Chernev,
	Jonathan Marek, Jordan Crouse, linux-arm-msm, linux-kernel,
	Sean Paul, Sharat Masetty, Shawn Guo, Wambui Karuga,
	~postmarketos/upstreaming, Craig Tatlor

From: Craig Tatlor <ctatlor97@gmail.com>

vram.size is needed when binding a gpu without an iommu and is defined
in msm_init_vram(), so run that before binding it.

Signed-off-by: Craig Tatlor <ctatlor97@gmail.com>
---
 drivers/gpu/drm/msm/msm_drv.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gpu/drm/msm/msm_drv.c
index 535a0263ceeb4..108c405e03dd9 100644
--- a/drivers/gpu/drm/msm/msm_drv.c
+++ b/drivers/gpu/drm/msm/msm_drv.c
@@ -457,14 +457,14 @@ static int msm_drm_init(struct device *dev, const struct drm_driver *drv)
 
 	drm_mode_config_init(ddev);
 
-	/* Bind all our sub-components: */
-	ret = component_bind_all(dev, ddev);
+	ret = msm_init_vram(ddev);
 	if (ret)
 		goto err_destroy_mdss;
 
-	ret = msm_init_vram(ddev);
+	/* Bind all our sub-components: */
+	ret = component_bind_all(dev, ddev);
 	if (ret)
-		goto err_msm_uninit;
+		goto err_destroy_mdss;
 
 	dma_set_max_seg_size(dev, UINT_MAX);
 

base-commit: d7a03a44a5e93f39ece70ec75d25c6088caa0fdb
prerequisite-patch-id: aba6f684932cab35d98457c21e4ff7a5ac75c753
prerequisite-patch-id: 4884d57df1bd197896b69e115d9002d6c26ae2e2
-- 
2.29.2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-01-03  6:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-30 15:29 [PATCH 1/2] drm/msm: Call msm_init_vram before binding the gpu Iskren Chernev
2020-12-30 15:29 ` [PATCH 2/2] drm/msm: Add modparam to allow vram carveout Iskren Chernev
2020-12-30 22:23 ` [PATCH 1/2] drm/msm: Call msm_init_vram before binding the gpu Brian Masney
2021-01-03  6:09 ` Alexey Minnekhanov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).