drm/ttm: allocate dummy_read_page without DMA32 on fail
authorYangyu Chen <cyy@cyyself.name>
Tue, 16 Jan 2024 18:50:34 +0000 (02:50 +0800)
committerChristian König <christian.koenig@amd.com>
Wed, 17 Jan 2024 08:25:56 +0000 (09:25 +0100)
commit0a8c1feed387f8460b8b65fc46fb3608afa7512e
tree6e193cdec1ec7c0408c5e0e1cd52614d2e253f50
parent3fc6c76a8d208d3955c9e64b382d0ff370bc61fc
drm/ttm: allocate dummy_read_page without DMA32 on fail

Some platforms may not have any memory in ZONE_DMA32 and use IOMMU to allow
32-bit-DMA-only device to work. Forcing GFP_DMA32 on dummy_read_page will
fail on such platforms. Retry after fail will get this works on such
platforms.

Signed-off-by: Yangyu Chen <cyy@cyyself.name>
Link: https://patchwork.freedesktop.org/patch/msgid/tencent_8637383EE0A2C7CC870036AAF01909B26A0A@qq.com
Signed-off-by: Christian König <christian.koenig@amd.com>
drivers/gpu/drm/ttm/ttm_device.c