git: drm: Fix Linux/DragonFly PAGE_MASK confusion

Francois Tigeot ftigeot at crater.dragonflybsd.org
Sun Feb 17 00:24:46 PST 2019


commit d653c72734cf5be86d3cd2b4208c1e4ec68ade00
Author: François Tigeot <ftigeot at wolfpond.org>
Date:   Sun Feb 17 09:06:17 2019 +0100

    drm: Fix Linux/DragonFly PAGE_MASK confusion
    
    * Both Linux and the DragonFly kernel use a PAGE_MASK constant,
      which is unfortunately defined differently in each one
    
    * Define a LINUX_PAGE_MASK macro and use it when applicable in the
      drm code to fix this confusion
    
    * One or two drm/radeon bugs were possibly caught during the process
    
    * This commit based on a patch by tuxillo
    
    Spotted-by: tuxillo
    Fixes: https://bugs.dragonflybsd.org/issues/3171

Summary of changes:
 sys/dev/drm/drm_bufs.c                 | 2 +-
 sys/dev/drm/i915/i915_gem.c            | 2 +-
 sys/dev/drm/i915/i915_gem_execbuffer.c | 4 ++--
 sys/dev/drm/i915/i915_gem_gtt.c        | 6 ++----
 sys/dev/drm/i915/i915_gem_gtt.h        | 3 +++
 sys/dev/drm/i915/i915_gpu_error.c      | 2 +-
 sys/dev/drm/include/asm/page.h         | 4 +++-
 sys/dev/drm/radeon/radeon_ttm.c        | 2 +-
 sys/dev/drm/radeon/radeon_vm.c         | 2 +-
 9 files changed, 15 insertions(+), 12 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d653c72734cf5be86d3cd2b4208c1e4ec68ade00


-- 
DragonFly BSD source repository



More information about the Commits mailing list