From 304474a878c6d11e260c4caef79c51d7a94a4429 Mon Sep 17 00:00:00 2001 From: Anshuman Khandual ; mainline: inclusion from: mainline-6.10 commit: caa41c47dab7e1054f587e592ab21296e3a6781c category: bugfix bugzilla:https://gitee.com/openeuler/kernel/issues/IAKVLJ Reference:https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?i...
coresight: etm4x: Fix unbalanced pm_runtime_enable() There is an unbalanced pm_runtime_enable() in etm4_probe_platform_dev() when etm4_probe() fails. This problem can be observed via the coresight etm4 module's (load ->; unload ->; load) sequence when etm4_probe() fails in etm4_probe_platform_dev(). [ 63.379943] coresight-etm4x 7040000.etm: Unbalanced pm_runtime_enable! [ 63.393630] coresight-etm4x 7140000.etm: Unbalanced pm_runtime_enable! [ 63.407455] coresight-etm4x 7240000.etm: Unbalanced pm_runtime_enable! [ 63.420983] coresight-etm4x 7340000.etm: Unbalanced pm_runtime_enable! [ 63.420999] coresight-etm4x 7440000.etm: Unbalanced pm_runtime_enable! [ 63.441209] coresight-etm4x 7540000.etm: Unbalanced pm_runtime_enable! [ 63.454689] coresight-etm4x 7640000.etm: Unbalanced pm_runtime_enable! [ 63.474982] coresight-etm4x 7740000.etm: Unbalanced pm_runtime_enable! This fixes the above problem - with an explicit pm_runtime_disable() call when etm4_probe() fails during etm4_probe_platform_dev(). Cc: Lorenzo Pieralisi ; Cc: Hanjun Guo ; Cc: Sudeep Holla ; Cc: "Rafael J. Wysocki" ; Cc: Len Brown ; Cc: Suzuki K Poulose ; Cc: Mike Leach ; Cc: James Clark ; Cc: Leo Yan ; Cc: linux-acpi@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org Cc: coresight@lists.linaro.org Fixes: 5214b563588e ("coresight: etm4x: Add support for sysreg only devices") Reviewed-by: James Clark ; Signed-off-by: Anshuman Khandual ; Signed-off-by: Suzuki K Poulose ; Signed-off-by: Wang Lian ; Link: https://lore.kernel.org/r/20240314055843.2625883-2-anshuman.khandual@arm.com Subject: [PATCH OLK-5.10] coresight: etm4x: Fix unbalanced pm_runtime_enable --- drivers/hwtracing/coresight/coresight-etm4x-core.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/hwtracing/coresight/coresight-etm4x-core.c b/drivers/hwtracing/coresight/coresight-etm4x-core.c index 87cfd60ee..98db96a80 100644 --- a/drivers/hwtracing/coresight/coresight-etm4x-core.c +++ b/drivers/hwtracing/coresight/coresight-etm4x-core.c @@ -2088,6 +2088,9 @@ static int etm4_probe_platform_dev(struct platform_device *pdev) ret = etm4_probe(&pdev->;dev); pm_runtime_put(&pdev->;dev); + if (ret) + pm_runtime_disable(&pdev->;dev); + return ret; } -- 2.20.1
反馈: 您发送到kernel@openeuler.org的补丁/补丁集,转换为PR失败! 邮件列表地址:https://mailweb.openeuler.org/hyperkitty/list/kernel@openeuler.org/message/6... 失败原因:调用gitee api创建PR失败, 失败原因如下: 目标分支 (openeuler/kernel:OLK-5.10) 和源分支 (ci-robot/kernel:patch-1724221815) 不存在差异 建议解决方法:请稍等,机器人会在下一次任务重新执行
FeedBack: The patch(es) which you have sent to kernel@openeuler.org has been converted to PR failed! Mailing list address: https://mailweb.openeuler.org/hyperkitty/list/kernel@openeuler.org/message/6... Failed Reason: create PR failed when call gitee's api, failed reason is as follows: 目标分支 (openeuler/kernel:OLK-5.10) 和源分支 (ci-robot/kernel:patch-1724221815) 不存在差异 Suggest Solution: please wait, the bot will retry in the next interval
反馈: 您发送到kernel@openeuler.org的补丁/补丁集,转换为PR失败! 邮件列表地址:https://mailweb.openeuler.org/hyperkitty/list/kernel@openeuler.org/message/6... 失败原因:调用gitee api创建PR失败, 失败原因如下: 目标分支 (openeuler/kernel:OLK-5.10) 和源分支 (ci-robot/kernel:patch-1724222115) 不存在差异 建议解决方法:请稍等,机器人会在下一次任务重新执行
FeedBack: The patch(es) which you have sent to kernel@openeuler.org has been converted to PR failed! Mailing list address: https://mailweb.openeuler.org/hyperkitty/list/kernel@openeuler.org/message/6... Failed Reason: create PR failed when call gitee's api, failed reason is as follows: 目标分支 (openeuler/kernel:OLK-5.10) 和源分支 (ci-robot/kernel:patch-1724222115) 不存在差异 Suggest Solution: please wait, the bot will retry in the next interval
反馈: 您发送到kernel@openeuler.org的补丁/补丁集,转换为PR失败! 邮件列表地址:https://mailweb.openeuler.org/hyperkitty/list/kernel@openeuler.org/message/6... 失败原因:调用gitee api创建PR失败, 失败原因如下: 目标分支 (openeuler/kernel:OLK-5.10) 和源分支 (ci-robot/kernel:patch-1724222415) 不存在差异 建议解决方法:请稍等,机器人会在下一次任务重新执行
FeedBack: The patch(es) which you have sent to kernel@openeuler.org has been converted to PR failed! Mailing list address: https://mailweb.openeuler.org/hyperkitty/list/kernel@openeuler.org/message/6... Failed Reason: create PR failed when call gitee's api, failed reason is as follows: 目标分支 (openeuler/kernel:OLK-5.10) 和源分支 (ci-robot/kernel:patch-1724222415) 不存在差异 Suggest Solution: please wait, the bot will retry in the next interval
反馈: 您发送到kernel@openeuler.org的补丁/补丁集,转换为PR失败! 邮件列表地址:https://mailweb.openeuler.org/hyperkitty/list/kernel@openeuler.org/message/6... 失败原因:调用gitee api创建PR失败, 失败原因如下: 目标分支 (openeuler/kernel:OLK-5.10) 和源分支 (ci-robot/kernel:patch-1724222713) 不存在差异 建议解决方法:请稍等,机器人会在下一次任务重新执行
FeedBack: The patch(es) which you have sent to kernel@openeuler.org has been converted to PR failed! Mailing list address: https://mailweb.openeuler.org/hyperkitty/list/kernel@openeuler.org/message/6... Failed Reason: create PR failed when call gitee's api, failed reason is as follows: 目标分支 (openeuler/kernel:OLK-5.10) 和源分支 (ci-robot/kernel:patch-1724222713) 不存在差异 Suggest Solution: please wait, the bot will retry in the next interval
反馈: 您发送到kernel@openeuler.org的补丁/补丁集,转换为PR失败! 邮件列表地址:https://mailweb.openeuler.org/hyperkitty/list/kernel@openeuler.org/message/6... 失败原因:调用gitee api创建PR失败, 失败原因如下: 目标分支 (openeuler/kernel:OLK-5.10) 和源分支 (ci-robot/kernel:patch-1724223012) 不存在差异 建议解决方法:请稍等,机器人会在下一次任务重新执行
FeedBack: The patch(es) which you have sent to kernel@openeuler.org has been converted to PR failed! Mailing list address: https://mailweb.openeuler.org/hyperkitty/list/kernel@openeuler.org/message/6... Failed Reason: create PR failed when call gitee's api, failed reason is as follows: 目标分支 (openeuler/kernel:OLK-5.10) 和源分支 (ci-robot/kernel:patch-1724223012) 不存在差异 Suggest Solution: please wait, the bot will retry in the next interval