Skip to contentSkip to conversation

firmware: stratix10-svc: populate kaddr1 from config status response

PATCH Applied [email protected] 2 participants 2 messages Sep 11 – Sep 15 Intel STRATIX10 firmware drivers

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 firmware: stratix10-svc: populate kaddr1 from config status response

From: Adrian Ng Ho Yin <[email protected]>

Set kaddr1 from res.a1 when the configuration status completes, matching the existing error path and allowing callers to retrieve firmware-returned status details through the standard kaddr1 interface.

---
Changes in v2:
- Drop the callback-data lifetime / dangling-pointer changes.
- Reduce the series to this standalone patch. Set kaddr1 with &res.a1 on the completed path, matching the existing error path.

v1 patch link:
https://lore.kernel.org/all/[email protected]/

---
 drivers/firmware/stratix10-svc.c | 1 +
 1 file changed, 1 insertion(+)
drivers/firmware/stratix10-svc.c +1 -0
index 34c591d7fd58..2333ea31e741 100644
@@ -444,6 +444,7 @@ static void svc_thread_cmd_config_status(struct stratix10_svc_controller *ctrl,
 		cb_data->status = BIT(SVC_STATUS_BUSY);
 	} else if (res.a0 == INTEL_SIP_SMC_STATUS_OK) {
 		cb_data->status = BIT(SVC_STATUS_COMPLETED);
+		cb_data->kaddr1 = &res.a1;
 		cb_data->kaddr2 = (res.a2) ?
 				  svc_pa_to_va(res.a2) : NULL;
 		cb_data->kaddr3 = (res.a3) ? &res.a3 : NULL;
Signature · 1 line
2.49.GIT
maintainer Applied
#1 lore raw
Quoted 24 lines · On 9/11/26 03:44, [email protected] wrote:

From: Adrian Ng Ho Yin <[email protected]>

Set kaddr1 from res.a1 when the configuration status completes, matching the existing error path and allowing callers to retrieve firmware-returned status details through the standard kaddr1 interface.

---
Changes in v2:
- Drop the callback-data lifetime / dangling-pointer changes.
- Reduce the series to this standalone patch. Set kaddr1 with &res.a1 on the completed path, matching the existing error path.

v1 patch link:
https://lore.kernel.org/all/[email protected]/

---
  drivers/firmware/stratix10-svc.c | 1 +
  1 file changed, 1 insertion(+)
drivers/firmware/stratix10-svc.c +0 -0
index 34c591d7fd58..2333ea31e741 100644

drivers/firmware/stratix10-svc.c static void svc_thread_cmd_config_status(struct stratix10_svc_controller *ctrl, · line 450

Quoted 7 lines
drivers/firmware/stratix10-svc.c +1 -0
@@ -444,6 +444,7 @@ static void svc_thread_cmd_config_status(struct stratix10_svc_controller *ctrl,
  		cb_data->status = BIT(SVC_STATUS_BUSY);
  	} else if (res.a0 == INTEL_SIP_SMC_STATUS_OK) {
  		cb_data->status = BIT(SVC_STATUS_COMPLETED);
+		cb_data->kaddr1 = &res.a1;
  		cb_data->kaddr2 = (res.a2) ?
  				  svc_pa_to_va(res.a2) : NULL;
  		cb_data->kaddr3 = (res.a3) ? &res.a3 : NULL;

Applied!

Thanks,
Dinh