]> Git Repo - linux.git/commitdiff
firmware: arm_scmi: Report duplicate opps as firmware bugs
authorSibi Sankar <[email protected]>
Wed, 30 Oct 2024 12:55:09 +0000 (18:25 +0530)
committerUlf Hansson <[email protected]>
Tue, 12 Nov 2024 18:45:25 +0000 (19:45 +0100)
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: <20241030125512.2884761[email protected]>
Signed-off-by: Ulf Hansson <[email protected]>
drivers/firmware/arm_scmi/perf.c

index 32f9a9acd3e9238447f59b15e179afc2661225b7..c7e5a34b254bf4e9c51c7be56803b6d851f0e1d6 100644 (file)
@@ -387,7 +387,7 @@ process_response_opp(struct device *dev, struct perf_dom_info *dom,
 
        ret = xa_insert(&dom->opps_by_lvl, opp->perf, opp, GFP_KERNEL);
        if (ret) {
-               dev_warn(dev, "Failed to add opps_by_lvl at %d for %s - ret:%d\n",
+               dev_info(dev, FW_BUG "Failed to add opps_by_lvl at %d for %s - ret:%d\n",
                         opp->perf, dom->info.name, ret);
                return ret;
        }
@@ -409,7 +409,7 @@ process_response_opp_v4(struct device *dev, struct perf_dom_info *dom,
 
        ret = xa_insert(&dom->opps_by_lvl, opp->perf, opp, GFP_KERNEL);
        if (ret) {
-               dev_warn(dev, "Failed to add opps_by_lvl at %d for %s - ret:%d\n",
+               dev_info(dev, FW_BUG "Failed to add opps_by_lvl at %d for %s - ret:%d\n",
                         opp->perf, dom->info.name, ret);
                return ret;
        }
This page took 0.065129 seconds and 4 git commands to generate.