kgsl-sysfs.txt 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. This document lists details for the device specific sysfs attributes
  2. created by the KGSL GPU driver.
  3. - /sys/devices/platform/kgsl/vmalloc
  4. The total amount of vmalloc()ed memory currently allocated by the driver
  5. (in bytes)
  6. - /sys/devices/platform/kgsl/vmalloc_max
  7. The maximum amount of vmalloc()ed memory allocated at any one
  8. time by the driver since the system was booted (in bytes)
  9. - /sys/devices/platform/kgsl/coherent
  10. The total amount of coherent DMA memory currently allocated by the driver
  11. (in bytes)
  12. - /sys/devices/platform/kgsl/coherent_max
  13. The maximum amount of coherent DMA memory allocated at any one
  14. time by the driver since the system was booted (in bytes)
  15. - /sys/devices/platform/kgsl/histogram
  16. A histogram of the sizes of vmalloc allocations by the driver
  17. since the system was booted. The allocations are grouped by the order
  18. of the allocation size in pages. For example, order 0 are 1 page
  19. allocations, order 1 are 2 page allocations, order 2 are 4 page allocations,
  20. and so forth, up to order 16 (32768) pages.
  21. - /sys/devices/platform/kgsl/proc
  22. This directory contains individual entries for each active rendering
  23. process. Rendering instances are created for each unique process that
  24. opens the GPU devices, and are named for the id of the creating process.
  25. In the driver, memory allocations are owned by the process that allocates
  26. them, and outstanding memory is garbage collected when the process closes
  27. the device.
  28. - /sys/devices/platform/kgsl/proc/NN/vmalloc
  29. The total amount of vmalloc memory currently allocated by the process
  30. (in bytes)
  31. - /sys/devices/platform/kgsl/proc/NN/vmalloc_max
  32. The maximum amount of vmalloc memory allocated at any one
  33. time by the process since it was created (in bytes)
  34. - /sys/devices/platform/kgsl/proc/NN/exmem
  35. The total amount of external memory devices currently mapped by the process
  36. (in bytes). This includes PMEM, ASHMEM and external memory pointers from
  37. userspace.
  38. - /sys/devices/platform/kgsl/proc/NN/exmem_max
  39. The maximum amount of external memory devices allocated at any one
  40. time by the process since it was created (in bytes). This includes PMEM,
  41. ASHMEM and external memory pointers from userspace.
  42. - /sys/devices/platform/kgsl/proc/NN/flushes
  43. The total number of cache flushes performed by this process since it
  44. was created.
  45. - /sys/devices/platform/kgsl/pagetables
  46. This directory contains individual entries for each active pagetable.
  47. There will always be a global pagetable with ID 0. If per-process
  48. pagetables are not enabled, pagetable ID 0 will also be the default
  49. pagetable for all processes. If per-process pagetables are enabled,
  50. there will be an entry for each pagetable, named after the ID of the
  51. process that created it.
  52. - /sys/devices/platform/kgsl/pagetables/NN/entries
  53. The number of concurrent entries mapped in the GPU MMU.
  54. - /sys/devices/platform/kgsl/pagetables/NN/mapped
  55. The number of bytes currently mapped in the GPU MMU.
  56. - /sys/devices/platform/kgsl/pagetables/NN/va_range
  57. The virtual address size of the MMU pagetable (in bytes).
  58. - /sys/devices/platform/kgsl/pagetables/NN/max_mapped
  59. The maximum number of bytes concurrently mapped in the GPU MMU since
  60. the pagetable was created.
  61. - /sys/devices/platform/kgsl/pagetables/NN/max_entries
  62. The maximum number of entries concurrently mapped in the GPU MMU since
  63. the pagetable was created.
  64. - /sys/devices/platform/kgsl/msm_kgsl/
  65. Each individual GPU device (2D or 3D) will have its own device node in
  66. this directory. All platforms will have kgsl-3d0 (3D device), some
  67. devices may have 1 2D device (kgsl-2d0) and others might add a second 2D
  68. device (kgsl-2d1).
  69. - /sys/devices/platform/kgsl/msm_kgsl/kgsl-XXX/pwrnap
  70. Controls the system ability to nap (lightly sleep between frames). 1
  71. indicates napping is enabled, 0 indicates it is disabled. Write a 1 or
  72. a 0 to the file to control napping.
  73. - /sys/devices/platform/kgsl/msm_kgsl/kgsl-XXX/gpuclk
  74. Shows the last active requested speed of the GPU clock in HZ, does not
  75. actually measure the current clock rate. Write a clock speed to the file
  76. corresponding to a supported platform power level to change to that power
  77. level. The bandwidth vote will also be adjusted.