Skip to contentSkip to conversation

drivers/perf: Prevent forced unbinding of ARM_DMC620_PMU drivers

PATCH Applied Qi Liu 2 participants 2 messages Feb 2, 2021 Arm PMU profiling and debugging

lore
Share & tools
lore

Qi Liu

author
#0 lore raw

PATCH 1/1 drivers/perf: Prevent forced unbinding of ARM_DMC620_PMU drivers

Set "suppress_bind_attrs" to true, so that bind/unbind can be disabled via sysfs and prevent unbinding ARM_DMC620_PMU drivers during perf sampling.

---
 drivers/perf/arm_dmc620_pmu.c | 1 +
 1 file changed, 1 insertion(+)
drivers/perf/arm_dmc620_pmu.c +1 -0
index 27f54c0..66ad5b3 100644
@@ -717,6 +717,7 @@ static struct platform_driver dmc620_pmu_driver = {
 	.driver	= {
 		.name		= DMC620_DRVNAME,
 		.acpi_match_table = dmc620_acpi_match,
+		.suppress_bind_attrs = true,
 	},
 	.probe	= dmc620_pmu_device_probe,
 	.remove	= dmc620_pmu_device_remove,

--
2.8.1

maintainer Applied
#1 lore raw
Quoted 3 lines · Qi Liu

Set "suppress_bind_attrs" to true, so that bind/unbind can be disabled via sysfs and prevent unbinding ARM_DMC620_PMU drivers during perf sampling.

Applied to will (for-next/perf), thanks!

[1/1] drivers/perf: Prevent forced unbinding of ARM_DMC620_PMU drivers

      https://git.kernel.org/will/c/20116dd93f4d

Cheers,

Signature · 10 lines
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel