Trying to run make DRM_MODULES="radeon" on ppc linux, there are two problems:
/home/me/x11/clean/drm/linux-core/drm_vm.c: In function ‘drm_io_prot’:
/home/me/x11/clean/drm/linux-core/drm_vm.c:60: error: ‘map’ undeclared (first
use in this function)
/home/me/x11/clean/drm/linux-core/drm_vm.c:60: error: (Each undeclared
identifier is reported only once
/home/me/x11/clean/drm/linux-core/drm_vm.c:60: error: for each function it
This is just a typo; -> needs to be changed to _. Once this is fixed, the
module compiles, but does not load, as it refers to wbinvd (in
drm_ttm_ipi_handler in drm_ttm.c), which doesn't exist on ppc.
ati_pcigart.c contains the following code:
#if defined(__i386__) || defined(__x86_64__)
When this replaces the unconditional use of wbinvd in drm_ttm.c, the module
loads and direct rendering works (I'm using a ATI Technologies Inc RV350
[Mobility Radeon 9600 M10] in a Powerbook).
This code probably shouldn't be duplicated, but I'm not aware of what coding
standards are used by this project, sorry.
Created attachment 7576 [details] [review]
Fix to the compile and undefined function errors mentioned in the bug report
This is fixed in git now.
I've used the more generic flush_agp_cache() instead of wbinvd() / mb().
It should perform the correct operation on each supported arch.
on Jul 25, 2016 at 04:16:24.
(provided by the Example extension).