@@ -3094,6 +3094,10 @@ static const char *target_tmf_name(enum tcm_tmreq_table tmf)
case TMR_TARGET_WARM_RESET: return "TARGET_WARM_RESET";
case TMR_TARGET_COLD_RESET: return "TARGET_COLD_RESET";
case TMR_LUN_RESET_PRO: return "LUN_RESET_PRO";
+ case TMR_I_T_NEXUS_RESET: return "I_T_NEXUS_RESET";
+ case TMR_QUERY_TASK: return "QUERY_TASK";
+ case TMR_QUERY_TASK_SET: return "QUERY_TASK_SET";
+ case TMR_QUERY_ASYNC_EVENT: return "QUERY_ASYNC_EVENT";
case TMR_UNKNOWN: break;
}
return "(?)";
@@ -3542,6 +3546,12 @@ static void target_tmr_work(struct work_struct *work)
case TMR_TARGET_COLD_RESET:
tmr->response = TMR_FUNCTION_REJECTED;
break;
+ case TMR_I_T_NEXUS_RESET:
+ case TMR_QUERY_TASK:
+ case TMR_QUERY_TASK_SET:
+ case TMR_QUERY_ASYNC_EVENT:
+ tmr->response = TMR_FUNCTION_REJECTED;
+ break;
default:
pr_err("Unknown TMR function: 0x%02x.\n",
tmr->function);
@@ -211,6 +211,10 @@ enum tcm_tmreq_table {
TMR_LUN_RESET = 5,
TMR_TARGET_WARM_RESET = 6,
TMR_TARGET_COLD_RESET = 7,
+ TMR_I_T_NEXUS_RESET = 8,
+ TMR_QUERY_TASK = 9,
+ TMR_QUERY_TASK_SET = 10,
+ TMR_QUERY_ASYNC_EVENT = 11,
TMR_LUN_RESET_PRO = 0x80,
TMR_UNKNOWN = 0xff,
};
Add the following common TMR enum: * TMR_I_T_NEXUS_RESET * TMR_QUERY_TASK * TMR_QUERY_TASK_SET * TMR_QUERY_ASYNC_EVENT Signed-off-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com> --- Changes in v2: - Changed enum numbering to continue from 8, 9, 10, ... drivers/target/target_core_transport.c | 10 ++++++++++ include/target/target_core_base.h | 4 ++++ 2 files changed, 14 insertions(+)