Age | Commit message (Collapse) | Author |
|
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>
|
|
Use xf86ScreenToScrn(pScreen) rather than directly converting via
xf86Screens.
Signed-off-by: Russell King <rmk@arm.linux.org.uk>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
Signed-off-by: Sergey Bolshakov <sbolshakov@altlinux.org>
Signed-off-by: Russell King <rmk@arm.linux.org.uk>
|
|
Signed-off-by: Russell King <rmk@arm.linux.org.uk>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
Separate out all the udev information into its own structure.
Signed-off-by: Russell King <rmk@arm.linux.org.uk>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
Signed-off-by: Russell King <rmk_cubox@arm.linux.org.uk>
|
|
Signed-off-by: Russell King <rmk_cubox@arm.linux.org.uk>
|