diff options
| author | 2025-04-14 11:23:43 +0100 | |
|---|---|---|
| committer | 2025-04-14 11:23:43 +0100 | |
| commit | 1749125091cd0834632ac295caa65f8c57628be6 (patch) | |
| tree | c82bc06c4e335e250fdb41f4fcdc53619242b380 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | ASoC: soc-pcm: Fix hw_params() and DAPM widget sequence (diff) | |
| parent | firmware: cs_dsp: tests: Depend on FW_CS_DSP rather then enabling it (diff) | |
| download | wireguard-linux-1749125091cd0834632ac295caa65f8c57628be6.tar.xz wireguard-linux-1749125091cd0834632ac295caa65f8c57628be6.zip | |
Fix up building KUnit tests for Cirrus Logic modules
Merge series from Richard Fitzgerald <rf@opensource.cirrus.com>:
This series fixes the KConfig for cs_dsp and cs-amp-lib tests so that
CONFIG_KUNIT_ALL_TESTS doesn't cause them to add modules to the build.
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c index 80cd6f5273db..0b9987781f76 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c @@ -163,8 +163,8 @@ void amdgpu_bo_placement_from_domain(struct amdgpu_bo *abo, u32 domain) * When GTT is just an alternative to VRAM make sure that we * only use it as fallback and still try to fill up VRAM first. */ - if (domain & abo->preferred_domains & AMDGPU_GEM_DOMAIN_VRAM && - !(adev->flags & AMD_IS_APU)) + if (abo->tbo.resource && !(adev->flags & AMD_IS_APU) && + domain & abo->preferred_domains & AMDGPU_GEM_DOMAIN_VRAM) places[c].flags |= TTM_PL_FLAG_FALLBACK; c++; } |
