summaryrefslogtreecommitdiff
path: root/drivers/misc/hwmem
AgeCommit message (Collapse)Author
2011-09-28hwmem: Add peak memory usage in debugfs printsRobert Fekete
When doing cat debugfs/cona/hwmem_allocs you will now see current memory usage, Max amount of hwmem memory used after boot, and size of biggest free block. ST-Ericsson ID: 359308 ST-Ericsson Linux next: NA ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I287b711c8e950cc3370a2cc47672f8aefdd873e4 Signed-off-by: Robert Fekete <robert.fekete@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/31835 Reviewed-by: Maciej SOCHA <maciej.socha@stericsson.com> Reviewed-by: Jimmy RUBIN <jimmy.rubin@stericsson.com> Reviewed-by: Anders BAUER <anders.bauer@stericsson.com> Reviewed-by: Linus WALLEIJ <linus.walleij@stericsson.com>
2011-09-19Lee's chunk to make the kernel compilePhilippe Langlais
Signed-off-by: Lee Jones <lee.jones@linaro.org>
2011-09-19HWMEM: Break out allocatorJohan Mossberg
Break out allocator in order to be able to run it in multiple instances ie support multiple regions. Multiple regions can be used to battle fragmentation by letting clients allocating in a non fragmenting way allocate from their own region. For STE this will probably mean letting camera/video have their own region. A positive side effect is that we can use HWMEM as an allocator for SRAM if we want to. ST-Ericsson ID: 334992 ST-Ericsson FOSS-OUT ID: STETL-FOSS-OUT-10068 Change-Id: I449f2dde8f1ceeb05dd55384dd4070e91997276f Signed-off-by: Johan Mossberg <johan.xx.mossberg@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/20638 Reviewed-by: QATEST Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2011-09-19HWMEM: Alloc kernel vaddrs on bootJohan Mossberg
By allocating all the kernel virtual addresses on boot fragmentation of the vmalloc area can not cause HWMEM allocs to fail. ST-Ericsson ID: 333457 ST-Ericsson FOSS-OUT ID: STETL-FOSS-OUT-10068 Change-Id: I04a8b4a2804df9a9bbad24e4874107f86a1efdb9 Signed-off-by: Johan Mossberg <johan.xx.mossberg@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/19682 Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2011-09-19HWMEM: Reset ref count in clean_allocJohan Mossberg
When hwmem_alloc fails to alloc virtual memory for the kernel mapping it will call clean_alloc with a non-zero ref count. If the ref count is not reset in that case we will leak HWMEM memory. ST-Ericsson ID: 330377 ST-Ericsson FOSS-OUT ID: STETL-FOSS-OUT-10068 Change-Id: I4c203bbd090a119d1e99cc7d294e827ab8a6e9e7 Signed-off-by: Johan Mossberg <johan.xx.mossberg@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/18942 Reviewed-by: QATOOLS Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2011-09-19HWMEM: Update APIPhilippe Langlais
Perform queued hwmem API changes. One commit to ease dependency handling. Depends-On: I13f249cf5f51f9f138171e8d6f59e1d5d2f72de1, I31030bcfda7cf76d15402c2137576da4f3fb2761, I2dc7e6aa5686492550b5164e50c06ed750ac9e16, Ia12bbb9f378c331cfb9b1376dedb3b7b65f56429, Ibc3404df4876971d8b69272c63120e2fe3bb2787 ST-Ericsson ID: AP 327001 ST-Ericsson FOSS-OUT ID: STETL-FOSS-OUT-10068 Change-Id: I9a45ad54a0cc8a5cdb1e3b9038ad50aeacb3f9c3 Signed-off-by: Johan Mossberg <johan.xx.mossberg@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/17518 Reviewed-by: Robert FEKETE <robert.fekete@stericsson.com> Conflicts: drivers/misc/dispdev/dispdev.c
2011-09-19hwmem: Add hardware memory driver to kernelRobert Marklund
This driver provides a way to allocate contiguous system memory which can be used by hardware. Signed-off-by: Robert Marklund <robert.marklund@stericsson.com>