Changeset View
Standalone View
sys/dev/drm2/drm_os_freebsd.h
Show First 20 Lines • Show All 148 Lines • ▼ Show 20 Lines | *(volatile u_int16_t *)(((vm_offset_t)(map)->handle) + \ | ||||
(vm_offset_t)(offset)) = htole16(val) | (vm_offset_t)(offset)) = htole16(val) | ||||
#define DRM_WRITE32(map, offset, val) \ | #define DRM_WRITE32(map, offset, val) \ | ||||
*(volatile u_int32_t *)(((vm_offset_t)(map)->handle) + \ | *(volatile u_int32_t *)(((vm_offset_t)(map)->handle) + \ | ||||
(vm_offset_t)(offset)) = htole32(val) | (vm_offset_t)(offset)) = htole32(val) | ||||
#define DRM_WRITE64(map, offset, val) \ | #define DRM_WRITE64(map, offset, val) \ | ||||
*(volatile u_int64_t *)(((vm_offset_t)(map)->handle) + \ | *(volatile u_int64_t *)(((vm_offset_t)(map)->handle) + \ | ||||
(vm_offset_t)(offset)) = htole64(val) | (vm_offset_t)(offset)) = htole64(val) | ||||
#ifdef __LP64__ | |||||
kbowling: This is fine for now but this is a rare and true Small Matter Of Programming to fix outside of… | |||||
Done Inline ActionsI'm afraid that I don't follow what you are suggesting here... imp: I'm afraid that I don't follow what you are suggesting here...
| |||||
Not Done Inline Actionsmeaning I think we can have i386 on equal footing via ports changes. LP64 is an accidental heuristic It may need to explode to #if arm, powerpc, and i386 if we dont finish in time? I think this would only be a string change here so it may be able to happen late in the release cycle if so? kbowling: meaning I think we can have i386 on equal footing via ports changes. LP64 is an accidental… | |||||
Not Done Inline ActionsNo. It's the right heuristic now. drm-stable-mod supports only 64-bit platforms. And that will not change. This notice isn't used for the non-module drivers in the tree. After 12.0 goes out, we are removing all module builds, the intel driver and the radeon driver. We'll almost certainly move dev/drm2 to arm/dev/drm2 due to the difficulties at the current time with sharing (though there's much discussions about how arm might share, it's still not a done deal as far as a path forward as there's a lot of work there and no funding at the moment). Once we're there, it won't matter if thisis one way or another as I'll likely remove this code after the move. And for drm (not drm2) it won't matter at all: those will all be gone completely, barring issues with the port arising (the port is quite new, less than a week, so it is prudent to have a fallback plan until it's proven). imp: No. It's the right heuristic now.
drm-stable-mod supports only 64-bit platforms. And that will… | |||||
Not Done Inline Actionshttps://gist.github.com/strejda/c98e513c2ec1d2e23005bb66a7bc6399 suggests that it's quite hard to cope with the drm-next stuff, and maybe all drm due to the drm pager issue. If we take drm2 arm-only, then that could be fixed w/o harming other arch (because they would use something else). imp: https://gist.github.com/strejda/c98e513c2ec1d2e23005bb66a7bc6399 suggests that it's quite hard… | |||||
#define DRM_PORT "graphics/drm-stable-kmod" | |||||
#else | |||||
#define DRM_PORT "graphics/drm-legacy-kmod" | |||||
#endif | |||||
#define DRM_OBSOLETE(dev) \ | |||||
do { \ | |||||
device_printf(dev, "=======================================================\n"); \ | |||||
device_printf(dev, "This code is obsolete abondonware. Install the " DRM_PORT " pkg\n"); \ | |||||
Done Inline ActionsSame typo juan.molina_club.fr: Same typo | |||||
device_printf(dev, "=======================================================\n"); \ | |||||
gone_in_dev(dev, 13, "drm2 drivers"); \ | |||||
} while (0) | |||||
/* DRM_READMEMORYBARRIER() prevents reordering of reads. | /* DRM_READMEMORYBARRIER() prevents reordering of reads. | ||||
* DRM_WRITEMEMORYBARRIER() prevents reordering of writes. | * DRM_WRITEMEMORYBARRIER() prevents reordering of writes. | ||||
* DRM_MEMORYBARRIER() prevents reordering of reads and writes. | * DRM_MEMORYBARRIER() prevents reordering of reads and writes. | ||||
*/ | */ | ||||
#define DRM_READMEMORYBARRIER() rmb() | #define DRM_READMEMORYBARRIER() rmb() | ||||
#define DRM_WRITEMEMORYBARRIER() wmb() | #define DRM_WRITEMEMORYBARRIER() wmb() | ||||
#define DRM_MEMORYBARRIER() mb() | #define DRM_MEMORYBARRIER() mb() | ||||
#define smp_rmb() rmb() | #define smp_rmb() rmb() | ||||
▲ Show 20 Lines • Show All 540 Lines • Show Last 20 Lines |
This is fine for now but this is a rare and true Small Matter Of Programming to fix outside of src to unifdef this.