Build error: MSM DRM (original) (raw)
Rob Clark robdclark at gmail.com
Mon Feb 24 04:24:17 PST 2014
- Previous message: Build error: MSM DRM
- Next message: [Bug 75432] New: fedora rawhide, since linux 3.14, dota2 main menu runs at 2 fps
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Mon, Feb 24, 2014 at 6:15 AM, Russell King - ARM Linux <linux at arm.linux.org.uk> wrote:
Automated build testing of allmodconfig discovered this error in the MSM DRM driver:
_drivers/gpu/drm/msm/hdmi/hdmi.o:(.rodata+0x10): multiple definition of `modofdevicetable' drivers/gpu/drm/msm/adreno/a3xxgpu.o:(.rodata+0x4dc): first defined here It appears that this will happen whenever the MSM DRM driver is built as a module. It's unclear what the correct fix is - since making it a "bool" will make it unusable if the rest of DRM is configured modular, and it's not trivial to split these files.
fwiw, I was hoping https://lkml.org/lkml/2014/1/27/340 would get merged, as that should also fix this build error (same in tilcdc).. but making it a bool instead of tristate is probably ok for a short term solution.
Since this is yet another multiple-device monstrosity pretending to look like a single device (though slightly saner than other stuff, but still ultimately unsafe - nothing guarantees for instance that hdmipdev remains valid) the right solution to this would be to convert the thing to use the component infrastructure included in v3.14-rc, which then allows the MSM driver to be multiple stand alone modules.
haven't had a chance to look at the component infrastructure stuff yet, but this was my plan. It is the better long term solution.
BR, -R
This is clearly what the driver needs if it's actually made up from multiple drivers.
While there's no examples of how to do this in mainline yet, two examples of such converted drivers have been posted on LAKML and elsewhere - which are the imx-drm and armada-drm drivers. -- FTTC broadband for 0.8mile line: now at 9.7Mbps down 460kbps up... slowly improving, and getting towards what was expected from it.
dri-devel mailing list dri-devel at lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel
- Previous message: Build error: MSM DRM
- Next message: [Bug 75432] New: fedora rawhide, since linux 3.14, dota2 main menu runs at 2 fps
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]