[PATCH 7/9] drm/gma500: use gem get/put page helpers
Patrik Jakobsson
patrik.r.jakobsson at gmail.com
Tue Oct 8 22:22:52 CEST 2013
On Tue, Oct 8, 2013 at 10:19 PM, Rob Clark <robdclark at gmail.com> wrote:
> On Tue, Oct 8, 2013 at 3:57 PM, Guillaume CLÉMENT <gclement at baobob.org> wrote:
>> On Wed, Aug 07, 2013 at 01:41:25PM -0400, Rob Clark wrote:
>>> Signed-off-by: Rob Clark <robdclark at gmail.com>
>>> ---
>>> drivers/gpu/drm/gma500/gtt.c | 38 ++++++--------------------------------
>>> 1 file changed, 6 insertions(+), 32 deletions(-)
>>> [ snip ]
>>
>> This is quite late to report, but I've just begun testing 3.12, and this
>> patch makes my screen garbled when using the modesetting xorg driver.
>>
>> So far it looks like the buffer that the xorg driver gets is
>> not the one that is actually mapped by the kernel.
>>
>> I'm currently trying to know what exactly causes the problem, but I don't
>> know anything about the internals here...
>>
>
> could you try this small patch.. I think I missed something w/ my
> original patch (sorry, no hw to test on here):
>
> ----------
> diff --git a/drivers/gpu/drm/gma500/gtt.c b/drivers/gpu/drm/gma500/gtt.c
> index 92babac..2db731f 100644
> --- a/drivers/gpu/drm/gma500/gtt.c
> +++ b/drivers/gpu/drm/gma500/gtt.c
> @@ -204,6 +204,7 @@ static int psb_gtt_attach_pages(struct gtt_range *gt)
> if (IS_ERR(pages))
> return PTR_ERR(pages);
>
> + gt->npage = gt->gem.size / PAGE_SIZE;
> gt->pages = pages;
>
> return 0;
> ----------
>
Rob, if this works, can you please make sure it goes into Dave's tree.
I'm currently travelling and I'll be away for at least one week.
Thanks
Patrik
More information about the dri-devel
mailing list