OSDN Git Service

drm/qxl: fix qxl can't use in arm64
authorCong Liu <liucong2@kylinos.cn>
Thu, 24 Mar 2022 10:49:28 +0000 (18:49 +0800)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 25 Mar 2022 11:28:28 +0000 (12:28 +0100)
commit59ab4ee012f0166873ae15d235b2450f21dcb5e7
tree6b047c5e99c5aebb683f5559f3bbbcac29199add
parentec3cbb30893be248d180dd748ee9148d408a99d1
drm/qxl: fix qxl can't use in arm64

qxl use ioremap to map ram_header and rom, in the arm64 implementation,
the device is mapped as DEVICE_nGnRE, it can not support unaligned
access. and qxl is a virtual device, it can be treated more like RAM
than actual MMIO registers. use ioremap_wc() replace it.

Signed-off-by: Cong Liu <liucong2@kylinos.cn>
Acked-by: Christian König <christian.koenig@amd.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20220324104928.2959545-1-liucong2@kylinos.cn
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
drivers/gpu/drm/qxl/qxl_kms.c
drivers/gpu/drm/qxl/qxl_ttm.c