Skip to content

Commit e2261bb

Browse files
Sibi Sankarstorulf
authored andcommitted
firmware: arm_scmi: Report duplicate opps as firmware bugs
Duplicate opps reported by buggy SCP firmware currently show up as warnings even though the only functional impact is that the level/index remain inaccessible. Make it less scary for the end user by using dev_info instead, along with FW_BUG tag. Suggested-by: Johan Hovold <[email protected]> Signed-off-by: Sibi Sankar <[email protected]> Reviewed-by: Cristian Marussi <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Reviewed-by: Sudeep Holla <[email protected]> Cc: [email protected] Message-ID: <[email protected]> Signed-off-by: Ulf Hansson <[email protected]>
1 parent 5d8a766 commit e2261bb

File tree

1 file changed

+2
-2
lines changed
  • drivers/firmware/arm_scmi

1 file changed

+2
-2
lines changed

drivers/firmware/arm_scmi/perf.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ process_response_opp(struct device *dev, struct perf_dom_info *dom,
387387

388388
ret = xa_insert(&dom->opps_by_lvl, opp->perf, opp, GFP_KERNEL);
389389
if (ret) {
390-
dev_warn(dev, "Failed to add opps_by_lvl at %d for %s - ret:%d\n",
390+
dev_info(dev, FW_BUG "Failed to add opps_by_lvl at %d for %s - ret:%d\n",
391391
opp->perf, dom->info.name, ret);
392392
return ret;
393393
}
@@ -409,7 +409,7 @@ process_response_opp_v4(struct device *dev, struct perf_dom_info *dom,
409409

410410
ret = xa_insert(&dom->opps_by_lvl, opp->perf, opp, GFP_KERNEL);
411411
if (ret) {
412-
dev_warn(dev, "Failed to add opps_by_lvl at %d for %s - ret:%d\n",
412+
dev_info(dev, FW_BUG "Failed to add opps_by_lvl at %d for %s - ret:%d\n",
413413
opp->perf, dom->info.name, ret);
414414
return ret;
415415
}

0 commit comments

Comments
 (0)