NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/38700
The following reply was made to PR kern/38700; it has been noted by GNATS.
From: Onno van der Linden <o.vd.linden%quicknet.nl@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: kern/38700
Date: Wed, 8 Jul 2009 16:00:49 +0200
> error: [drm:pid20667:drm_addmap] *ERROR* offset/size not page aligned:
> 0x0/0x4800
Diff below fixes mgadrm for me on my Matrox G550.
Onno
*** /usr/src/sys/external/bsd/drm/dist/bsd-core/drmP.h.orig Tue Jul 7
21:37:47 2009
--- /usr/src/sys/external/bsd/drm/dist/bsd-core/drmP.h Tue Jul 7 21:37:56
2009
***************
*** 290,296 ****
#elif defined(__NetBSD__)
! #define PAGE_ALIGN(addr) ALIGN(addr)
#define DRM_SUSER(p) (kauth_cred_getsvuid((p)->p_cred) == 0)
#define DRM_AGP_FIND_DEVICE() agp_find_device(0)
#define DRM_MTRR_WC MTRR_TYPE_WC
--- 290,296 ----
#elif defined(__NetBSD__)
! #define PAGE_ALIGN(addr) round_page(addr)
#define DRM_SUSER(p) (kauth_cred_getsvuid((p)->p_cred) == 0)
#define DRM_AGP_FIND_DEVICE() agp_find_device(0)
#define DRM_MTRR_WC MTRR_TYPE_WC
Home |
Main Index |
Thread Index |
Old Index