aboutsummaryrefslogtreecommitdiff
path: root/drivers/mfd/glamo/glamo-cmdq.c
AgeCommit message (Collapse)Author
2009-11-15Add interrupt-driven waitqueue for better GPU synchronisationThomas White
Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-11-08Fix some CmdQ nonsense (?)Thomas White
Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-11-08Tidy up and fix burst submissionThomas White
Fixing a stupid mistake in the process... Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-10-22Add burst commandsThomas White
This adds kernel support for sending burst commands to the hardware. Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-08-22Zero VRAM before passing to userspaceThomas White
Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-08-20Initial buffer wait/IRQ stuffThomas White
IRQ stuff brought across from earlier work by Andreas. Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-08-19Move glamo_ioctl_gem_wait_rendering() to glamo-cmdq.cThomas White
Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-08-19Formatting fussinessThomas White
2009-08-18Remove CmdQ wrap-around printkThomas White
This works - no need for the message any more. Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-08-06Tidy up, and remove debugThomas White
Tidy up a few lines, and remove debug lines which would slow us down. Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-08-06Put the mutex functions the right way roundThomas White
Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-07-15Tidy upThomas White
This just alters some formatting and removes old code. Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-07-15Merge branch 'drm-kms' into drm-trackingThomas White
Conflicts: drivers/mfd/glamo/glamo-cmdq.c drivers/mfd/glamo/glamo-cmdq.h drivers/mfd/glamo/glamo-drm-drv.c drivers/mfd/glamo/glamo-drm-private.h Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-07-02Initial suspend/resumeThomas White
Doesn't work yet... Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-06-18Revert "Front buffer kludge"Thomas White
That wasn't the right way to go about this. And it didn't compile. This reverts commit d8e4b9ff4dc8bf57e53fa174f977c8fb00ec4e90. Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-06-11Front buffer kludgeThomas White
This makes the GEM "info" ioctl produce an object handle which can be used to refer to the front buffer (i.e. screen pixmap) in Xorg or otherwise. This is unfortunately necessary since this memory is allocated in the kernel by the framebuffer driver, and is not available to DRM until we move to KMS. Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-06-08Glamo: Bugfix for wraparound in queueAndreas Pokorny
The rest_size was treated like the count of words instead of bytes. This code also switches to memcpy_toio. Signed-off-by: Andreas Pokorny <andreas.pokorny@gmail.com>
2009-06-08Glamo:Removing IRQ ExperimentsAndreas Pokorny
Removed the isr and everything interrupt related. IRQ is not needed for basic operation on the glamo cmdq. This code directly updates the write pointer of the queue without any waits. Signed-off-by: Andreas Pokorny <andreas.pokorny@gmail.com>
2009-06-05more trial and errorAndreas Pokorny
2009-06-05removed setting the CMDQ IRQ in the clear register - indents cleaned upAndreas Pokorny
2009-06-05Adding Glamo CMDQ IRQAndreas Pokorny
The code is still not functional, only the first set of commands get executed. Signed-off-by: Andreas Pokorny <andreas.pokorny@gmail.com>
2009-06-03Adding IRQ to DRM CMDQ - not workingAndreas Pokorny
2009-06-03Glamo DRM: Adding a Semaphore and SpinlockAndreas Pokorny
This is the first step towards the irq based update of the write pointer. With this revision the previous wait, and direct update is deactivated. Signed-off-by: Andreas Pokorny <andreas.pokorny@gmail.com>
2009-06-02Reorganise memory map (again)Thomas White
This reuinites the "framebuffer" and "work" VRAM areas. With KMS, both roles will be done by one pool of memory. Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-05-06Buffer relocation stuffThomas White
This allows command sequences to make use of buffer objects by providing their GEM handles. It also reorganises the code a bit, and adds a lot of missing security stuff. Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-05-02Fix and/or remove debugThomas White
This removes a lot of debugging. We can't afford to splurge out a page of printk()s on every command submission. Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-05-02Reorder startup of enginesThomas White
This just moves the engine enabling calls around a bit. Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-05-02Debugging stuffThomas White
This adds [glamo-drm] before the debugging messages. Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-04-29Command queue fixesThomas White
This still doesn't quite work... Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-04-28Allow command queue timeoutThomas White
This allows glamo_cmdq_wait() to timeout. We will probably need to substitute this for something better later on, but for the time being I wanted to avoid a deadlock if the command queue never cleared. Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-04-28Copyright noticeThomas White
This fixes the licence text at the top of glamo-cmdq.c, noting that code from Xorg has been incorporated. Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-04-27Kernel handling of command queueThomas White
This adds handling of Glamo's ring buffer at the kernel level, to be accessed via ioctl DRM_GLAMO_CMDBUF. Signed-off-by: Thomas White <taw@bitwiz.org.uk>