Skip to contentSkip to conversation

drm/gma500: Fix Medfield for drm_framebuffer move

PATCH In review Daniel Stone 3 participants 4 messages May 21, 2018 – May 22, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/gma500: Fix Medfield for drm_framebuffer move

bc61c97502e2 moved the gtt_range structure, from being in psb_framebuffer and embedding the GEM object, to being placed in the drm_framebuffer with the gtt_range being derived from the GEM object.

The conversion missed out the Medfield subdriver, which was not being built in the default drm-misc config. Do the trivial fixup here.

Fixes bc61c97502e2 ("drm/gma500: Move GEM BO to drm_framebuffer")
Cc Thierry Reding <[email protected]>
Cc Patrik Jakobsson <[email protected]>
---
 drivers/gpu/drm/gma500/mdfld_intel_display.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/gma500/mdfld_intel_display.c +1 -1
index 5c066448be5b..881d613cc2e5 100644
@@ -196,7 +196,7 @@ static int mdfld__intel_pipe_set_base(struct drm_crtc *crtc, int x, int y,
 	if (!gma_power_begin(dev, true))
 		return 0;
 
-	start = psbfb->gtt->offset;
+	start = to_gtt_range(fb->obj[0])->offset;
 	offset = y * fb->pitches[0] + x * fb->format->cpp[0];
 
 	REG_WRITE(map->stride, fb->pitches[0]);
Signature · 6 lines
2.17.0

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Daniel Stone

bc61c97502e2 moved the gtt_range structure, from being in psb_framebuffer and embedding the GEM object, to being placed in the drm_framebuffer with the gtt_range being derived from the GEM object.

The conversion missed out the Medfield subdriver, which was not being built in the default drm-misc config. Do the trivial fixup here.

Quoted 8 lines
Fixes bc61c97502e2 ("drm/gma500: Move GEM BO to drm_framebuffer")
Cc Thierry Reding <[email protected]>
Cc Patrik Jakobsson <[email protected]>
---
 drivers/gpu/drm/gma500/mdfld_intel_display.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Can you send a patch to enable the Medfield subdriver in the drm-misc default configuration?

This patch:

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
Quoted 10 lines · Thierry Reding
Quoted 6 lines · Daniel Stone

bc61c97502e2 moved the gtt_range structure, from being in psb_framebuffer and embedding the GEM object, to being placed in the drm_framebuffer with the gtt_range being derived from the GEM object.

The conversion missed out the Medfield subdriver, which was not being built in the default drm-misc config. Do the trivial fixup here.

Can you send a patch to enable the Medfield subdriver in the drm-misc default configuration?

Thanks Thierry! I went one better, and the drm-misc x86 default config does now build Medfield by default; I pushed that yesterday.

Cheers,
Daniel
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
Quoted 6 lines · Daniel Stone
Quoted 5 lines · Thierry Reding
Quoted 4 lines · Daniel Stone

bc61c97502e2 moved the gtt_range structure, from being in psb_framebuffer and embedding the GEM object, to being placed in the drm_framebuffer with the gtt_range being derived from the GEM object.

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

The conversion missed out the Medfield subdriver, which was not being built in the default drm-misc config. Do the trivial fixup here.

Can you send a patch to enable the Medfield subdriver in the drm-misc default configuration?

Thanks Thierry! I went one better, and the drm-misc x86 default config does now build Medfield by default; I pushed that yesterday.

Excellent, thanks!

Thierry

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel