* [PATCH] drm/gma500: Fix Medfield for drm_framebuffer move
@ 2018-05-21 14:24 Daniel Stone
2018-05-22 9:19 ` Thierry Reding
0 siblings, 1 reply; 4+ messages in thread
From: Daniel Stone @ 2018-05-21 14:24 UTC (permalink / raw)
To: dri-devel; +Cc: Thierry Reding
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.
Signed-off-by: Daniel Stone <daniels@collabora.com>
Reported-by: kbuild test robot <lkp@intel.com>
Fixes: bc61c97502e2 ("drm/gma500: Move GEM BO to drm_framebuffer")
Cc: Thierry Reding <treding@nvidia.com>
Cc: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
---
drivers/gpu/drm/gma500/mdfld_intel_display.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/gma500/mdfld_intel_display.c b/drivers/gpu/drm/gma500/mdfld_intel_display.c
index 5c066448be5b..881d613cc2e5 100644
--- a/drivers/gpu/drm/gma500/mdfld_intel_display.c
+++ b/drivers/gpu/drm/gma500/mdfld_intel_display.c
@@ -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]);
--
2.17.0
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] drm/gma500: Fix Medfield for drm_framebuffer move
2018-05-21 14:24 [PATCH] drm/gma500: Fix Medfield for drm_framebuffer move Daniel Stone
@ 2018-05-22 9:19 ` Thierry Reding
2018-05-22 9:24 ` Daniel Stone
0 siblings, 1 reply; 4+ messages in thread
From: Thierry Reding @ 2018-05-22 9:19 UTC (permalink / raw)
To: Daniel Stone; +Cc: Thierry Reding, dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 968 bytes --]
On Mon, May 21, 2018 at 03:24:49PM +0100, Daniel Stone wrote:
> 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.
>
> Signed-off-by: Daniel Stone <daniels@collabora.com>
> Reported-by: kbuild test robot <lkp@intel.com>
> Fixes: bc61c97502e2 ("drm/gma500: Move GEM BO to drm_framebuffer")
> Cc: Thierry Reding <treding@nvidia.com>
> Cc: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
> ---
> 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:
Reviewed-by: Thierry Reding <treding@nvidia.com>
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] drm/gma500: Fix Medfield for drm_framebuffer move
2018-05-22 9:19 ` Thierry Reding
@ 2018-05-22 9:24 ` Daniel Stone
2018-05-22 9:31 ` Thierry Reding
0 siblings, 1 reply; 4+ messages in thread
From: Daniel Stone @ 2018-05-22 9:24 UTC (permalink / raw)
To: Thierry Reding; +Cc: Thierry Reding, dri-devel
On 22 May 2018 at 10:19, Thierry Reding <thierry.reding@gmail.com> wrote:
> On Mon, May 21, 2018 at 03:24:49PM +0100, Daniel Stone wrote:
>> 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
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] drm/gma500: Fix Medfield for drm_framebuffer move
2018-05-22 9:24 ` Daniel Stone
@ 2018-05-22 9:31 ` Thierry Reding
0 siblings, 0 replies; 4+ messages in thread
From: Thierry Reding @ 2018-05-22 9:31 UTC (permalink / raw)
To: Daniel Stone; +Cc: Thierry Reding, dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 858 bytes --]
On Tue, May 22, 2018 at 10:24:18AM +0100, Daniel Stone wrote:
> On 22 May 2018 at 10:19, Thierry Reding <thierry.reding@gmail.com> wrote:
> > On Mon, May 21, 2018 at 03:24:49PM +0100, Daniel Stone wrote:
> >> 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.
Excellent, thanks!
Thierry
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-05-22 9:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-21 14:24 [PATCH] drm/gma500: Fix Medfield for drm_framebuffer move Daniel Stone
2018-05-22 9:19 ` Thierry Reding
2018-05-22 9:24 ` Daniel Stone
2018-05-22 9:31 ` Thierry Reding
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.