Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/dist/drm/radeon apply a patch from rjs...



details:   https://anonhg.NetBSD.org/src/rev/54e2c0e9498e
branches:  trunk
changeset: 335385:54e2c0e9498e
user:      mrg <mrg%NetBSD.org@localhost>
date:      Mon Jan 05 06:28:34 2015 +0000

description:
apply a patch from rjs@, which is necessary for radeondrmkms on i386:

set DRM_FILE_PAGE_OFFSET to 0xa0000000UL for 32 bit platforms.

diffstat:

 sys/external/bsd/drm2/dist/drm/radeon/radeon_ttm.c |  4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diffs (15 lines):

diff -r 4c1d7bff01ec -r 54e2c0e9498e sys/external/bsd/drm2/dist/drm/radeon/radeon_ttm.c
--- a/sys/external/bsd/drm2/dist/drm/radeon/radeon_ttm.c        Mon Jan 05 05:35:18 2015 +0000
+++ b/sys/external/bsd/drm2/dist/drm/radeon/radeon_ttm.c        Mon Jan 05 06:28:34 2015 +0000
@@ -50,7 +50,11 @@
 #include <drm/bus_dma_hacks.h>
 #endif
 
+#ifdef _LP64
 #define DRM_FILE_PAGE_OFFSET (0x100000000ULL >> PAGE_SHIFT)
+#else
+#define DRM_FILE_PAGE_OFFSET (0xa0000000UL >> PAGE_SHIFT)
+#endif
 
 static int radeon_ttm_debugfs_init(struct radeon_device *rdev);
 static void radeon_ttm_debugfs_fini(struct radeon_device *rdev);



Home | Main Index | Thread Index | Old Index