diff options
| author | Philipp Zabel <[email protected]> | 2024-07-03 10:50:10 +0200 |
|---|---|---|
| committer | Philipp Zabel <[email protected]> | 2024-07-03 10:50:10 +0200 |
| commit | 197c22b65ea6a70eb377760282e7a634c3a812ab (patch) | |
| tree | 37f34004b49e2081abb9eb4751e4b3d5c8a34e42 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
| parent | fd88137bfbb83bee678abef840dcafa13262f5ca (diff) | |
| parent | 1cb7d29157603561af4c38535e936850ceb99f0f (diff) | |
Merge tag 'regulator-hw-enable-helper' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator into reset/next
regulator: Add helper to allow enable/disable in interrupt context
Add a helper function that enables exclusive consumers to bypass locking
and do an enable/disable from within interrupt context.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Philipp Zabel <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c index 67c234bcf89f..3adaa4670103 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c @@ -108,6 +108,7 @@ int amdgpu_gem_object_create(struct amdgpu_device *adev, unsigned long size, memset(&bp, 0, sizeof(bp)); *obj = NULL; + flags |= AMDGPU_GEM_CREATE_VRAM_WIPE_ON_RELEASE; bp.size = size; bp.byte_align = alignment; |