drm/radeon: Ignore RADEON_GEM_GTT_WC on 32-bit x86
Subsystems (2)
PATCH 1/1 drm/radeon: Ignore RADEON_GEM_GTT_WC on 32-bit x86
From: Michel Dänzer <[email protected]>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=84627
--- drivers/gpu/drm/radeon/radeon_object.c | 7 +++++++ 1 file changed, 7 insertions(+)
drivers/gpu/drm/radeon/radeon_object.c +7 -0
@@ -233,6 +233,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);
Signature · 6 lines
2.1.3 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
Alex Deucher
AppliedQuoted 4 lines · Michel Dänzer
From: Michel Dänzer <[email protected]>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=84627
Signed-off-by Michel Dänzer <[email protected]>
Applied to my -fixes tree.
Thanks,
Alex
Quoted 25 lines
--- drivers/gpu/drm/radeon/radeon_object.c | 7 +++++++ 1 file changed, 7 insertions(+)drivers/gpu/drm/radeon/radeon_object.c +7
-1@@ -233,6 +233,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); --2.1.3
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Dave Airlie
maintainerQuoted 7 lines · Alex Deucher
Quoted 4 lines · Michel Dänzer
From: Michel Dänzer <[email protected]>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=84627
Signed-off-by Michel Dänzer <[email protected]>Applied to my -fixes tree.
Btw while I'm okay to merge this as a workaround, I'd really like to know if someone cares enough to fix it.
Because there is no reason WC mappings should be broken on 32-bit, and its quite likely they are broken on 64-bit too just more subtly.
Dave.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 7 lines · Dave Airlie
Quoted 6 lines · Alex Deucher
Quoted 4 lines · Michel Dänzer
From: Michel Dänzer <[email protected]>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=84627
Signed-off-by Michel Dänzer <[email protected]>
Quoted 7 lines
Quoted 1 line
Applied to my -fixes tree.
Btw while I'm okay to merge this as a workaround, I'd really like to know if someone cares enough to fix it.
Because there is no reason WC mappings should be broken on 32-bit, and its quite likely they are broken on 64-bit too just more subtly.
It would definitely be nice to get to the bottom of this, but I'm not sure where to dig next. Given that basically the same 64-bit kernel seems to fail when built on a 32-bit host but works fine when built on a 64-bit host, I suspect it might be something from the host toolchain / build environment leaking into the resulting binaries somehow.
Signature · 6 lines
Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel