drm/ttm/tests: Set DMA mask in KUnit device
authorKarolina Stolarek <karolina.stolarek@intel.com>
Wed, 12 Jun 2024 12:02:57 +0000 (14:02 +0200)
committerArunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com>
Mon, 24 Jun 2024 10:31:13 +0000 (16:01 +0530)
commitdc50165601f5c24b3121defca60d267a980e8dbb
tree5e3351f9cd9e5a1773139b8017f727cfca159df9
parentd0745846a37a3a37400aa721df6e4279e75dc582
drm/ttm/tests: Set DMA mask in KUnit device

In commit d393acce7b3f ("drm/tests: Switch to kunit devices"),
DRM test helpers migrated away from using a dummy platform driver
in favour of KUnit device. This means that DMA masks for the device
are not set but are required by ttm_pool_alloc tests.

Set the DMA mask for coherent mappings to unblock testing.

Signed-off-by: Karolina Stolarek <karolina.stolarek@intel.com>
Reviewed-by: Nirmoy Das <nirmoy.das@intel.com>
Signed-off-by: Arunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/dbd83b01bc835d922c070ad1c5bd9023e631e6c4.1718192625.git.karolina.stolarek@intel.com
drivers/gpu/drm/ttm/tests/ttm_kunit_helpers.c