Re: [PATCH v3 2/2] drm/mediatek: change config_lock from spin_lock to spin_lock_irqsave

2024-08-28 Thread Fei Shao
Hi Jason, On Tue, Aug 27, 2024 at 10:58 PM Jason-JH.Lin via B4 Relay wrote: > > From: "Jason-JH.Lin" > > Operations within spin_locks are limited to fast memory access and > confirmation of minimum lock duration. > > Although using spin_lock with config_lock seems to ensure shorter hold > times,

[PATCH v3 2/2] drm/mediatek: change config_lock from spin_lock to spin_lock_irqsave

2024-08-27 Thread Jason-JH.Lin via B4 Relay
From: "Jason-JH.Lin" Operations within spin_locks are limited to fast memory access and confirmation of minimum lock duration. Although using spin_lock with config_lock seems to ensure shorter hold times, it is safer to use spin_lock_irqsave due to potential deadlocks and nested interrupt scenar