Re: drm/vkms: deadlock between dev->event_lock and timer

2023-09-19 Thread Daniel Stone
On Mon, 18 Sept 2023 at 23:02, Helen Koike wrote: > On 14/09/2023 05:12, Daniel Vetter wrote: > > Also yes how that landed without anyone running lockdep is ... not good. I > > guess we need a lockdep enabled drm ci target that runs vkms tests asap > > :-) > > btw, I just executed a draft version

Re: drm/vkms: deadlock between dev->event_lock and timer

2023-09-18 Thread Helen Koike
On 14/09/2023 05:12, Daniel Vetter wrote: On Thu, Sep 14, 2023 at 03:33:41PM +0900, Tetsuo Handa wrote: On 2023/09/14 6:08, Thomas Gleixner wrote: Maybe the VKMS people need to understand locking in the first place. The first thing I saw in this code is: static enum hrtimer_restart

Re: drm/vkms: deadlock between dev->event_lock and timer

2023-09-14 Thread Daniel Vetter
On Thu, Sep 14, 2023 at 03:33:41PM +0900, Tetsuo Handa wrote: > On 2023/09/14 6:08, Thomas Gleixner wrote: > > Maybe the VKMS people need to understand locking in the first place. The > > first thing I saw in this code is: > > > > static enum hrtimer_restart vkms_vblank_simulate(struct hrtimer

Re: drm/vkms: deadlock between dev->event_lock and timer

2023-09-14 Thread Tetsuo Handa
On 2023/09/14 6:08, Thomas Gleixner wrote: > Maybe the VKMS people need to understand locking in the first place. The > first thing I saw in this code is: > > static enum hrtimer_restart vkms_vblank_simulate(struct hrtimer *timer) > { >... >mutex_unlock(>enabled_lock); > > What? > >

Re: drm/vkms: deadlock between dev->event_lock and timer

2023-09-13 Thread Thomas Gleixner
On Wed, Sep 13 2023 at 09:47, Linus Torvalds wrote: > On Wed, 13 Sept 2023 at 07:21, Tetsuo Handa > wrote: >> >> Hello. A deadlock was reported in drivers/gpu/drm/vkms/ . >> It looks like this locking pattern remains as of 6.6-rc1. Please fix. >> >> void drm_crtc_vblank_off(struct drm_crtc *crtc)

Re: drm/vkms: deadlock between dev->event_lock and timer

2023-09-13 Thread Linus Torvalds
On Wed, 13 Sept 2023 at 07:21, Tetsuo Handa wrote: > > Hello. A deadlock was reported in drivers/gpu/drm/vkms/ . > It looks like this locking pattern remains as of 6.6-rc1. Please fix. > > void drm_crtc_vblank_off(struct drm_crtc *crtc) { > spin_lock_irq(>event_lock); >

drm/vkms: deadlock between dev->event_lock and timer

2023-09-13 Thread Tetsuo Handa
Hello. A deadlock was reported in drivers/gpu/drm/vkms/ . It looks like this locking pattern remains as of 6.6-rc1. Please fix. void drm_crtc_vblank_off(struct drm_crtc *crtc) { spin_lock_irq(>event_lock); drm_vblank_disable_and_save(dev, pipe) { __disable_vblank(dev, pipe) {