NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/52347: ww mutex class mismatch

The following reply was made to PR kern/52347; it has been noted by GNATS.

Subject: Re: kern/52347: ww mutex class mismatch
Date: Wed, 28 Jun 2017 17:26:50 +0000

 One thing I see in linux is that it has (and we don't)
 in radeon_cs_ioctl:
         if (rdev->in_reset) {
                 r = radeon_gpu_reset(rdev);
                 if (!r)
                         r = -EAGAIN;
                 return r;
 And in radeon_gpu_rest (which we do have)
 	rdev->in_reset = true;
 	... precarious things, I assume ...
 	rdev->in_reset = false;
 We do drm_helper_resume_force_mode etc without in_reset without
 something blocking entry to radeon_cs_ioctl.
 It's possible I misunderstand rwlocks (hence the question to tech-kern)
 and the lock prevents this too.

Home | Main Index | Thread Index | Old Index