]> 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)
commitc3cda823994bc1916aa0af24fdfd642db4b697df
tree99c96aca85a3bd187f3a77a0bd16ccbc67386526
parent6109fd02523deee01db37db2fd85a796227964fa
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