]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Fix the offset issue for the stolen GEM objects
authorAkash Goel <akash.goel@intel.com>
Mon, 13 Jan 2014 10:54:45 +0000 (16:24 +0530)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 28 Jan 2014 08:04:42 +0000 (09:04 +0100)
commit3d9e818081023a317e6ba1163bdf90c6ea31b371
tree96dc3e564fb4547c04d8457312c313860121d4de
parent5edec15ba50d7d35bc37c9014e547c0c1def74ff
drm/i915: Fix the offset issue for the stolen GEM objects

The 'offset' field of the 'scatterlist' structure was wrongly
programmed with the offset value from the base of stolen area,
whereas this field indicates the offset from where the interested
data starts within the first PAGE pointed to by 'scattterlist'
structure. As a result when a new GEM object allocated from stolen
area is mapped to GTT, it could lead to an overwrite of GTT entries
as the page count calculation will go wrong, refer the function
'sg_page_count'.

v2: Modified the commit message. (Chris)

Signed-off-by: Akash Goel <akash.goel@intel.com>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Cc: stable@vger.kernel.org
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=71908
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=69104
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_stolen.c