aboutsummaryrefslogtreecommitdiff
path: root/drivers/mfd/glamo/glamo-buffer.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-09Fix oops in GEM object allocationThomas White
If the allocation of a new GEM object failed due to there being no available VRAM, then glamo_gem_object_alloc() would bail out, calling drm_gem_object_unreference() in the process. glamodrm_gem_free_object() would then proceed to try to give back the memory which was unsuccessfully allocated. This obviously doesn't work, and resulted in an oops. To fix it, check that the VRAM block handle is non-NULL before freeing it. Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-09-10Fix sanitisationThomas White
Muppetry... Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-09-09Sanitise size and alignment of GEM objectsThomas White
Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-08-22Release mapping resources when deleting a GEM objectThomas White
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-16Unlock mutex on unsuccessful mmapThomas White
Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-08-16FormattingThomas White
Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-08-16Remove unused snippetThomas White
Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-08-11Update licence boilerplateThomas White
Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-08-04Copyright and debugThomas White
Update the copyright notice to include proper BSD credit for the memory mapping in glamo-buffer.c. Also removes some superfluous debug messages. Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-07-30Implement glamo_ioctl_gem_mmap(), properly this timeThomas White
Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-06-24Muppetry and comments, and other small thingsThomas White
Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-06-18More KMS plumbingThomas White
Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-05-22Implement glamo_ioctl_gem_mmapThomas White
This implements the ioctl used for mapping GEM objects into memory. This needs a unit test in glamo-dri-tests, but for the time being appears to make X.org less segfaulty. Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-05-05Patch up the memory managementThomas White
This fixes things which were broken after the previous commit. VRAM allocation now appears to work. Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-05-04Add (untested) memory managementThomas White
This implements the GEM 'create' ioctl. Signed-off-by: Thomas White <taw@bitwiz.org.uk>
2009-05-03Create glamo-buffer.cThomas White
This just creates a new file for the memory management stuff. Signed-off-by: Thomas White <taw@bitwiz.org.uk>