drm/i915: kick firmware fbs even when i915 fbdev is disabled
Subsystems (2)
PATCH 1/1 drm/i915: kick firmware fbs even when i915 fbdev is disabled
Otherwise we don't kick out firmware framebuffers like vesafb and efifb when CONFIG_DRM_I915_FBDEV=n but CONFIG_FB=y.
There's still the pesky issue with vgacon which we should somehow replace with the dummy console at least. We have a similar issue at module un/reload, since vgacon state is terminally botched after i915.ko has loaded in modeset mode. But this gets us a step further at least.
--- drivers/gpu/drm/i915/i915_dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/i915_dma.c +1 -1
@@ -1413,7 +1413,7 @@ void i915_master_destroy(struct drm_device *dev, struct drm_master *master) master->driver_priv =NULL ; } -#ifdef CONFIG_DRM_I915_FBDEV +#if defined(CONFIG_FB )static void i915_kick_out_firmware_fb (struct drm_i915_private *dev_priv) {struct apertures_struct *ap;
Signature · 1 line
1.8.4.3
Jani Nikula
maintainerQuoted 21 lines · Daniel Vetter
Otherwise we don't kick out firmware framebuffers like vesafb and efifb when
CONFIG_DRM_I915_FBDEV=nbutCONFIG_FB=y.There's still the pesky issue with vgacon which we should somehow replace with the dummy console at least. We have a similar issue at module un/reload, since vgacon state is terminally botched after i915.ko has loaded in modeset mode. But this gets us a step further at least.
Reported-by Chris Wilson <[email protected]>Cc Chris Wilson <[email protected]>Signed-off-by Daniel Vetter <[email protected]>--- drivers/gpu/drm/i915/i915_dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/i915/i915_dma.c +0
-0
drivers/gpu/drm/i915/i915_dma.c void i915_master_destroy(struct drm_device *dev, struct drm_master *master) · line 1416
Quoted 5 lines
drivers/gpu/drm/i915/i915_dma.c +1
-1@@ -1413,7 +1413,7 @@ void i915_master_destroy(struct drm_device *dev, struct drm_master *master) master->driver_priv =NULL ; } -#ifdef CONFIG_DRM_I915_FBDEV +#if defined(CONFIG_FB )
#if IS_ENABLED(CONFIG_FB)
if you want this to work for CONFIG_FB=m too.
BR,
Jani.
Quoted 10 lines
drivers/gpu/drm/i915/i915_dma.c +0
-0static void i915_kick_out_firmware_fb (struct drm_i915_private *dev_priv) {struct apertures_struct *ap;Signature · 6 lines
1.8.4.3 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 1 line
Jani Nikula, Intel Open Source Technology Center
PATCH 1/1 drm/i915: kick firmware fbs even when i915 fbdev is disabled
Otherwise we don't kick out firmware framebuffers like vesafb and efifb when CONFIG_DRM_I915_FBDEV=n but CONFIG_FB=y.
There's still the pesky issue with vgacon which we should somehow replace with the dummy console at least. We have a similar issue at module un/reload, since vgacon state is terminally botched after i915.ko has loaded in modeset mode. But this gets us a step further at least.
v2: Use IS_ENABLED - I always get this wrong for tristates. Spotted by Jani.
--- drivers/gpu/drm/i915/i915_dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/i915_dma.c +1 -1
@@ -1413,7 +1413,7 @@ void i915_master_destroy(struct drm_device *dev, struct drm_master *master) master->driver_priv =NULL ; } -#ifdef CONFIG_DRM_I915_FBDEV +#if IS_ENABLED (CONFIG_FB )static void i915_kick_out_firmware_fb (struct drm_i915_private *dev_priv) {struct apertures_struct *ap;
Signature · 1 line
1.8.4.3
Quoted 12 lines · Daniel Vetter
Otherwise we don't kick out firmware framebuffers like vesafb and efifb when
CONFIG_DRM_I915_FBDEV=nbutCONFIG_FB=y.There's still the pesky issue with vgacon which we should somehow replace with the dummy console at least. We have a similar issue at module un/reload, since vgacon state is terminally botched after i915.ko has loaded in modeset mode. But this gets us a step further at least.
v2: Use
IS_ENABLED- I always get this wrong for tristates. Spotted by Jani.
Quoted 24 lines
Reported-by Chris Wilson <[email protected]>Cc Chris Wilson <[email protected]>Cc Jani Nikula <[email protected]>Signed-off-by Daniel Vetter <[email protected]>--- drivers/gpu/drm/i915/i915_dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/i915/i915_dma.c +1
-1@@ -1413,7 +1413,7 @@ void i915_master_destroy(struct drm_device *dev, struct drm_master *master) master->driver_priv =NULL ; } -#ifdef CONFIG_DRM_I915_FBDEV +#if IS_ENABLED (CONFIG_FB )static void i915_kick_out_firmware_fb (struct drm_i915_private *dev_priv) {struct apertures_struct *ap;Signature · 1 line
1.8.4.3
Signature · 1 line
Jani Nikula, Intel Open Source Technology Center