From 9f02769a2eddde008158c96efa39d7edb6512578 Mon Sep 17 00:00:00 2001
From: raghusha-xlnx <raghusha@xilinx.com>
Date: Thu, 8 Jun 2023 16:40:38 +0530
Subject: [PATCH] Linux Driver v2023.1.3 patch: Updated dma-ctl app to append q
 params during queue start.

---
 QDMA/linux-kernel/RELEASE                  | 6 +++++-
 QDMA/linux-kernel/apps/dma-ctl/cmd_parse.c | 2 +-
 QDMA/linux-kernel/apps/dma-ctl/version.h   | 2 +-
 3 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/QDMA/linux-kernel/RELEASE b/QDMA/linux-kernel/RELEASE
index d9900a4..51278da 100755
--- a/QDMA/linux-kernel/RELEASE
+++ b/QDMA/linux-kernel/RELEASE
@@ -1,4 +1,4 @@
-RELEASE: 2023.1.2
+RELEASE: 2023.1.3
 =================
 
 This release is validated
@@ -140,6 +140,10 @@ CPM5
 ----------------
 - Added support for Fedora37 & CentOS9 distros.
 
+2023.1.3 Updates
+----------------
+- dma-ctl application is updated to append q params during queue start.
+
 KNOWN ISSUES:
 =============
 - Observed MMAP failure for applications when device is binded QDMA Linux driver on Fedora37. Fix will be availbale in upcoming release.
diff --git a/QDMA/linux-kernel/apps/dma-ctl/cmd_parse.c b/QDMA/linux-kernel/apps/dma-ctl/cmd_parse.c
index 7dcbf63..18ecd7b 100755
--- a/QDMA/linux-kernel/apps/dma-ctl/cmd_parse.c
+++ b/QDMA/linux-kernel/apps/dma-ctl/cmd_parse.c
@@ -1115,7 +1115,7 @@ static int parse_q_cmd(int argc, char *argv[], int i, struct xcmd_info *xcmd)
 
 	args_valid = validate_qcmd(xcmd->op, qparm);
 
-	qparm->sflags = f_arg_set;
+	qparm->sflags |= f_arg_set;
 	return (args_valid == 0) ? i : args_valid;
 }
 
diff --git a/QDMA/linux-kernel/apps/dma-ctl/version.h b/QDMA/linux-kernel/apps/dma-ctl/version.h
index 63858ce..447858d 100755
--- a/QDMA/linux-kernel/apps/dma-ctl/version.h
+++ b/QDMA/linux-kernel/apps/dma-ctl/version.h
@@ -13,7 +13,7 @@
 #define __DMA_CTL_VERSION_H
 
 #define PROGNAME "dma-ctl"
-#define VERSION "2023.1.2"
+#define VERSION "2023.1.3"
 #define COPYRIGHT "Copyright (c) 2022-2023 Advanced Micro Devices Inc."
 
 #endif
-- 
GitLab