Re: [PATCH v2] coresight: cti: write regsiters directly in cti_enable_hw()

2020-09-03 Thread Mathieu Poirier
On Tue, Sep 01, 2020 at 02:33:09PM +0800, Tingwei Zhang wrote: > Deadlock as below is triggered by one CPU holds drvdata->spinlock > and calls cti_enable_hw(). Smp_call_function_single() is called > in cti_enable_hw() and tries to let another CPU write CTI registers. > That CPU is trying to get drv

[PATCH v2] coresight: cti: write regsiters directly in cti_enable_hw()

2020-08-31 Thread Tingwei Zhang
Deadlock as below is triggered by one CPU holds drvdata->spinlock and calls cti_enable_hw(). Smp_call_function_single() is called in cti_enable_hw() and tries to let another CPU write CTI registers. That CPU is trying to get drvdata->spinlock in cti_cpu_pm_notify() and doesn't response to IPI from