Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1641896 > unrolled thread

[PATCH] drm/vc4: Mark the device as active when enabling runtime PM.

Started byEric Anholt <eric@anholt.net>
First post2017-05-15 19:20 +0200
Last post2017-05-15 19:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] drm/vc4: Mark the device as active when enabling runtime PM. Eric Anholt <eric@anholt.net> - 2017-05-15 19:20 +0200

#1641896 — [PATCH] drm/vc4: Mark the device as active when enabling runtime PM.

FromEric Anholt <eric@anholt.net>
Date2017-05-15 19:20 +0200
Subject[PATCH] drm/vc4: Mark the device as active when enabling runtime PM.
Message-ID<tHrP4-2Cq-11@gated-at.bofh.it>
Failing to do so meant that we got a resume() callback on first use of
the device, so we would leak the bin BO that we allocated during
probe.

Signed-off-by: Eric Anholt <eric@anholt.net>
Fixes: 553c942f8b2c ("drm/vc4: Allow using more than 256MB of CMA memory.")
---
 drivers/gpu/drm/vc4/vc4_v3d.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/vc4/vc4_v3d.c b/drivers/gpu/drm/vc4/vc4_v3d.c
index e3d5c59dbd4a..825a8462a63b 100644
--- a/drivers/gpu/drm/vc4/vc4_v3d.c
+++ b/drivers/gpu/drm/vc4/vc4_v3d.c
@@ -403,6 +403,7 @@ static int vc4_v3d_bind(struct device *dev, struct device *master, void *data)
 		return ret;
 	}
 
+	pm_runtime_set_active(dev);
 	pm_runtime_use_autosuspend(dev);
 	pm_runtime_set_autosuspend_delay(dev, 40); /* a little over 2 frames. */
 	pm_runtime_enable(dev);
-- 
2.11.0

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web