on 2023/10/10 17:32, Yicong Yang wrote:
Hi Jijie,ok,I will send v2 to add more details.
On 2023/10/9 18:50, Jijie Shao wrote:
From: Hao Chen <chenhao418@xxxxxxxxxx>More information about the calltrace you've met and how to reproduce this?
When uninstall hns3 pmu driver, it will call cpuhp_state_remove_instance()
and then callback function hns3_pmu_offline_cpu() is called, it may cause
NULL pointer call trace when other driver is installing or uninstalling
concurrently.
I'm not sure why other drivers are involved.
As John Garry's opinion, cpuhp_state_remove_instance() is used for sharedI'm a bit confused here. We need to update the using CPU and migrate the perf
interrupt, and using cpuhp_state_remove_instance_nocalls() is fine for PCIe
or HNS3 pmu.
context as well as the interrupt affinity in cpuhp::teardown() callback, so
it make sense to not call this on driver detachment. But I cannot figure
out why this is related to the shared interrupt, more details?