Skip to contentSkip to conversation

dmaengine: qcom_hidma: allow ACPI/DT parameters to be overridden

PATCH Applied Sinan Kaya 2 participants 2 messages Jun 22, 2017 – Jun 26, 2017

Subsystems (3)
lore
Share & tools
lore

Sinan Kaya

author
#0 lore raw

PATCH 1/1 dmaengine: qcom_hidma: allow ACPI/DT parameters to be overridden

Parameters like maximum read/write request size and the maximum number of active transactions are currently configured in DT/ACPI.

This patch allows a user to override these to fine tune performance for their application.

---
 drivers/dma/qcom/hidma.c      |  7 +++++--
 drivers/dma/qcom/hidma_mgmt.c | 47 ++++++++++++++++++++++++++++++++++++++++++-
 2 files changed, 51 insertions(+), 3 deletions(-)
drivers/dma/qcom/hidma.c +5 -2
index 5072a7d..84e3699 100644
@@ -1,7 +1,7 @@
 /*
  * Qualcomm Technologies HIDMA DMA engine interface
  *
- * Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2015-2017, The Linux Foundation. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 2 and
@@ -795,8 +795,11 @@ static int hidma_probe(struct platform_device *pdev)
 	device_property_read_u32(&pdev->dev, "desc-count",
 				 &dmadev->nr_descriptors);
 
-	if (!dmadev->nr_descriptors && nr_desc_prm)
+	if (nr_desc_prm) {
+		dev_info(&pdev->dev, "overriding number of descriptors as %d\n",
+			 nr_desc_prm);
 		dmadev->nr_descriptors = nr_desc_prm;
+	}
 
 	if (!dmadev->nr_descriptors)
 		dmadev->nr_descriptors = HIDMA_NR_DEFAULT_DESC;
drivers/dma/qcom/hidma_mgmt.c +46 -1

83 lines not on this page · raw message

Signature · 1 line
1.9.1
Applied
#1 lore raw
Quoted 5 lines · Sinan Kaya

Parameters like maximum read/write request size and the maximum number of active transactions are currently configured in DT/ACPI.

This patch allows a user to override these to fine tune performance for their application.

Applied, thanks

Signature · 1 line
~Vinod