Skip to contentSkip to conversation

accel/amdxdna: Switch to always use chained command

PATCH In review Lizhi Hou 3 participants 3 messages Feb 6

Subsystems (2)
lore
Share & tools
lore

Lizhi Hou

author maintainer
#0 lore raw

PATCH 1/1 accel/amdxdna: Switch to always use chained command

Preempt commands are only supported when submitted as chained commands. To ensure preempt support works consistently, always submit commands in chained command format.

Set force_cmdlist to true so that single commands are filled using the chained command layout, enabling correct handling of preempt commands.

Fixes 3a0ff7b98af4 ("accel/amdxdna: Support preemption requests")
---
 drivers/accel/amdxdna/aie2_ctx.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/accel/amdxdna/aie2_ctx.c +2 -2
index 37d05f2e986f..6378a0bc7b6e 100644
@@ -23,9 +23,9 @@
 #include "amdxdna_pci_drv.h"
 #include "amdxdna_pm.h"
 
-static bool force_cmdlist;
+static bool force_cmdlist = true;
 module_param(force_cmdlist, bool, 0600);
-MODULE_PARM_DESC(force_cmdlist, "Force use command list (Default false)");
+MODULE_PARM_DESC(force_cmdlist, "Force use command list (Default true)");
 
 #define HWCTX_MAX_TIMEOUT	60000 /* milliseconds */
 
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 19 lines · Lizhi Hou

Preempt commands are only supported when submitted as chained commands. To ensure preempt support works consistently, always submit commands in chained command format.

Set force_cmdlist to true so that single commands are filled using the chained command layout, enabling correct handling of preempt commands.

Fixes 3a0ff7b98af4 ("accel/amdxdna: Support preemption requests")
---
 drivers/accel/amdxdna/aie2_ctx.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/accel/amdxdna/aie2_ctx.c +0 -0
index 37d05f2e986f..6378a0bc7b6e 100644
@@ -23,9 +23,9 @@
 #include "amdxdna_pci_drv.h"

drivers/accel/amdxdna/aie2_ctx.c line 31

Quoted 10 lines
drivers/accel/amdxdna/aie2_ctx.c +2 -2
 #include "amdxdna_pm.h"
 
-static bool force_cmdlist;
+static bool force_cmdlist = true;
 module_param(force_cmdlist, bool, 0600);
-MODULE_PARM_DESC(force_cmdlist, "Force use command list (Default false)");
+MODULE_PARM_DESC(force_cmdlist, "Force use command list (Default true)");
 
 #define HWCTX_MAX_TIMEOUT	60000 /* milliseconds */
 
Reviewed-by Mario Limonciello (AMD) on v1 1/1
#2 lore raw
In reply to Lizhi Hou
Quoted 19 lines · Lizhi Hou

Preempt commands are only supported when submitted as chained commands. To ensure preempt support works consistently, always submit commands in chained command format.

Set force_cmdlist to true so that single commands are filled using the chained command layout, enabling correct handling of preempt commands.

Fixes 3a0ff7b98af4 ("accel/amdxdna: Support preemption requests")
---
  drivers/accel/amdxdna/aie2_ctx.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
drivers/accel/amdxdna/aie2_ctx.c +0 -0
index 37d05f2e986f..6378a0bc7b6e 100644
@@ -23,9 +23,9 @@
  #include "amdxdna_pci_drv.h"

drivers/accel/amdxdna/aie2_ctx.c line 31

Quoted 10 lines
drivers/accel/amdxdna/aie2_ctx.c +2 -2
  #include "amdxdna_pm.h"
 
-static bool force_cmdlist;
+static bool force_cmdlist = true;
  module_param(force_cmdlist, bool, 0600);
-MODULE_PARM_DESC(force_cmdlist, "Force use command list (Default false)");
+MODULE_PARM_DESC(force_cmdlist, "Force use command list (Default true)");
 
  #define HWCTX_MAX_TIMEOUT	60000 /* milliseconds */