summaryrefslogtreecommitdiff
path: root/src/armada_drm.c
AgeCommit message (Collapse)Author
2014-09-13src: fix failure to enter VTRussell King
If EnterVT fails, we end up segfaulting the server, because we have marked the vtSema true when this isn't the case - we try to LeaveVT twice, once for the fatal error (which causes a segfault) and once more as a result of the segfault. Ensure that we reset this flag when EnterVT fails to avoid this error. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2014-08-14src: use xf86ScreenToScrn(pScreen)Russell King
Use xf86ScreenToScrn(pScreen) rather than directly converting via xf86Screens. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2014-08-14src: avoid passing the Armada buffer manager for non-Armada hardwareRussell King
Avoid passing the Armada buffer manager into the acceleration backend when we are not using the Armada-DRM kernel driver. The Armada buffer manager relies on some private IOCTLs which are not implemented by other driveres. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2014-07-23Add support for imx-drmRussell King
Add support for attaching to the imx-drm kernel module, thus allowing the driver to be used on iMX hardware as well. It should be noted that the libGAL backend does not support iMX, and so should be manually disabled in the Xorg config file. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2013-12-23Fix segfault on X shutdown.Russell King
Freeing the vivante-held information on the screen pixmap after the vivante acceleration backend leads to a segfault in the GALCORE libraries. Avoid this by ensuring that this is done before the backend is shutdown. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2013-12-04Convert Armada DRM CRTC into a set of library functionsRussell King
Convert much more of the Armada DRM driver to be a set of library Armada independent DRM functions. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2013-12-04compat-api stuff addedSergey Bolshakov
Signed-off-by: Sergey Bolshakov <sbolshakov@altlinux.org> Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2013-12-04Only call vivante_free_pixmap() if we are running acceleratedRussell King
Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2013-10-30Move the drm fd into our crtc structureRussell King
Moving the DRM fd into the crtc structure removes a dependency between the Armada DRM specific parts and our CRTC handling. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2013-10-30Avoid passing 'drm' to armada_bo_alloc_framebuffer()Russell King
armada_bo_alloc_framebuffer() can get at the drm structure itself very trivially, it doesn't need to have it passed in. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2013-10-30Clean up drmc->drm->fdRussell King
In various places, we only dereference drmc->drm once. There's no point in assigning this to a separate variable just for one access. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2013-10-30Separate out connector/output handingRussell King
There is nothing specific about the connector/output handing in the Armada DRM driver, so move it to a separate file and make it independent of the Armada DRM structures. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2013-10-29Move cursor maximum width/height to private crtc info structureRussell King
Rather than having this hard-coded everywhere, move it into the struct so we can later make this configurable - especially as we support 64x32 or 32x64 cursors. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2013-10-29Wrap udev structures up in its own structureRussell King
Separate out all the udev information into its own structure. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2013-10-29Fix initial mode settingRussell King
Avoid setting virtualX/virtualY to the maximum screen size; this avoids allocating the maximum size of frame buffer upon initial configuration, possibly leading to OOM. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2013-10-29Fix capability check bugRussell King
We should be passing the desired capability to be checked to drmGetCap() rather than a fixed value. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2013-06-30Probe for hardware cursor supportRussell King
Not all Armada devices support hardware cursor, so probe for the kernel supporting this feature before telling the X server that it can use it. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2013-06-30Default to no bus idRussell King
This allows the X server to find any armada-drm interface, rather than using a fixed bus-id. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2013-06-16CRTC updatesRussell King
Use armada_crtc() to access the private information, and add a 'num' field to the CRTC to identify the CRTC index. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
2013-06-16Add remainder of the dmabuf changesRussell King
Signed-off-by: Russell King <rmk_cubox@arm.linux.org.uk>
2013-06-14Initial checkin of Marvell Armada xorg driverRussell King
Signed-off-by: Russell King <rmk_cubox@arm.linux.org.uk>