qcom_hidma_mgmt.txt 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. Qualcomm Technologies HIDMA Management interface
  2. Qualcomm Technologies HIDMA is a high speed DMA device. It only supports
  3. memcpy and memset capabilities. It has been designed for virtualized
  4. environments.
  5. Each HIDMA HW instance consists of multiple DMA channels. These channels
  6. share the same bandwidth. The bandwidth utilization can be parititioned
  7. among channels based on the priority and weight assignments.
  8. There are only two priority levels and 15 weigh assignments possible.
  9. Other parameters here determine how much of the system bus this HIDMA
  10. instance can use like maximum read/write request and and number of bytes to
  11. read/write in a single burst.
  12. Main node required properties:
  13. - compatible: "qcom,hidma-mgmt-1.0";
  14. - reg: Address range for DMA device
  15. - dma-channels: Number of channels supported by this DMA controller.
  16. - max-write-burst-bytes: Maximum write burst in bytes that HIDMA can
  17. occupy the bus for in a single transaction. A memcpy requested is
  18. fragmented to multiples of this amount. This parameter is used while
  19. writing into destination memory. Setting this value incorrectly can
  20. starve other peripherals in the system.
  21. - max-read-burst-bytes: Maximum read burst in bytes that HIDMA can
  22. occupy the bus for in a single transaction. A memcpy request is
  23. fragmented to multiples of this amount. This parameter is used while
  24. reading the source memory. Setting this value incorrectly can starve
  25. other peripherals in the system.
  26. - max-write-transactions: This value is how many times a write burst is
  27. applied back to back while writing to the destination before yielding
  28. the bus.
  29. - max-read-transactions: This value is how many times a read burst is
  30. applied back to back while reading the source before yielding the bus.
  31. - channel-reset-timeout-cycles: Channel reset timeout in cycles for this SOC.
  32. Once a reset is applied to the HW, HW starts a timer for reset operation
  33. to confirm. If reset is not completed within this time, HW reports reset
  34. failure.
  35. Sub-nodes:
  36. HIDMA has one or more DMA channels that are used to move data from one
  37. memory location to another.
  38. When the OS is not in control of the management interface (i.e. it's a guest),
  39. the channel nodes appear on their own, not under a management node.
  40. Required properties:
  41. - compatible: must contain "qcom,hidma-1.0"
  42. - reg: Addresses for the transfer and event channel
  43. - interrupts: Should contain the event interrupt
  44. - desc-count: Number of asynchronous requests this channel can handle
  45. - iommus: required a iommu node
  46. Example:
  47. Hypervisor OS configuration:
  48. hidma-mgmt@f9984000 = {
  49. compatible = "qcom,hidma-mgmt-1.0";
  50. reg = <0xf9984000 0x15000>;
  51. dma-channels = <6>;
  52. max-write-burst-bytes = <1024>;
  53. max-read-burst-bytes = <1024>;
  54. max-write-transactions = <31>;
  55. max-read-transactions = <31>;
  56. channel-reset-timeout-cycles = <0x500>;
  57. hidma_24: dma-controller@0x5c050000 {
  58. compatible = "qcom,hidma-1.0";
  59. reg = <0 0x5c050000 0x0 0x1000>,
  60. <0 0x5c0b0000 0x0 0x1000>;
  61. interrupts = <0 389 0>;
  62. desc-count = <10>;
  63. iommus = <&system_mmu>;
  64. };
  65. };
  66. Guest OS configuration:
  67. hidma_24: dma-controller@0x5c050000 {
  68. compatible = "qcom,hidma-1.0";
  69. reg = <0 0x5c050000 0x0 0x1000>,
  70. <0 0x5c0b0000 0x0 0x1000>;
  71. interrupts = <0 389 0>;
  72. desc-count = <10>;
  73. iommus = <&system_mmu>;
  74. };