]> git.baikalelectronics.ru Git - kernel.git/commit
drm/qxl: use separate offset spaces for the two slots / ttm memory types.
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 18 Jan 2019 12:20:03 +0000 (13:20 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 28 Jan 2019 13:24:52 +0000 (14:24 +0100)
commitd0ec0b5130183e7cdf6eff675af4acc6b77782b0
tree99c96aca85a3bd187f3a77a0bd16ccbc67386526
parentfb467b4b5693c194bb6d34716a2fef10549e7dea
drm/qxl: use separate offset spaces for the two slots / ttm memory types.

Without that ttm offsets are not unique, they can refer to objects
in both VRAM and PRIV memory (aka main and surfaces slot).

One of those "why things didn't blow up without this" moments.
Probably offset conflicts are rare enough by pure luck.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Noralf Trønnes <noralf@tronnes.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20190118122020.27596-7-kraxel@redhat.com
drivers/gpu/drm/qxl/qxl_drv.h
drivers/gpu/drm/qxl/qxl_kms.c
drivers/gpu/drm/qxl/qxl_ttm.c