diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2014-11-27 18:00:54 +0900 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-12-16 09:37:07 -0800 |
commit | 3555e19377e6b9a4cb75863273ba92b9dfcf8331 (patch) | |
tree | 4ecf24be84b96223333b6eb454b6f83f454e39b8 /drivers/gpu | |
parent | 294db70c579c2880d0ceb7a3938b6853aaf62ccb (diff) | |
download | lwn-3555e19377e6b9a4cb75863273ba92b9dfcf8331.tar.gz lwn-3555e19377e6b9a4cb75863273ba92b9dfcf8331.zip |
drm/radeon: Ignore RADEON_GEM_GTT_WC on 32-bit x86
commit a08b588e4199e4200d26027ffcdf3ab2fa906412 upstream.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=84627
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_object.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_object.c b/drivers/gpu/drm/radeon/radeon_object.c index 480c87d8edc5..835f402a9faf 100644 --- a/drivers/gpu/drm/radeon/radeon_object.c +++ b/drivers/gpu/drm/radeon/radeon_object.c @@ -187,6 +187,13 @@ int radeon_bo_create(struct radeon_device *rdev, if (!(rdev->flags & RADEON_IS_PCIE)) bo->flags &= ~(RADEON_GEM_GTT_WC | RADEON_GEM_GTT_UC); +#ifdef CONFIG_X86_32 + /* XXX: Write-combined CPU mappings of GTT seem broken on 32-bit + * See https://bugs.freedesktop.org/show_bug.cgi?id=84627 + */ + bo->flags &= ~RADEON_GEM_GTT_WC; +#endif + radeon_ttm_placement_from_domain(bo, domain); /* Kernel allocation are uninterruptible */ down_read(&rdev->pm.mclk_lock); |