dmaengine: qcom_hidma: allow ACPI/DT parameters to be overridden
Subsystems (3)
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.
Signed-off-by Sinan Kaya <[email protected]>
--- 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
@@ -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
Vinod Koul
AppliedQuoted 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