]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: use mappable size for fb kickout
authorBen Widawsky <ben@bwidawsk.net>
Sat, 25 May 2013 19:26:36 +0000 (12:26 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 31 May 2013 18:53:56 +0000 (20:53 +0200)
commit4b107398e7a2aeaefd4299ba4cc67d65f7447911
tree1ad5384b430c6f532592b18f4188738826817562
parent7dcd2fd2474a8b514fe67ae6837ff3df2879d2c7
drm/i915: use mappable size for fb kickout

The GTT start is either 0 in the KMS case, or some value which is set
only after the init IOCTL in the UMS case. In both cases, we don't have
this information until after we've tried to kick out the firmware fb.

This patch should have no functional change since we kzalloc the GTT
struct anyway. It only clarifies the situation for people who end up
having to look at that code.

This weirdness was introduced in:

commit f568b5910008d2efb9dfefac259118f76b4ce20c
Author: Ben Widawsky <ben@bwidawsk.net>
Date:   Thu Jan 17 12:45:17 2013 -0800

    drm/i915: Remove use of gtt_mappable_entries

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_dma.c