Re: [PATCH 1/8] drm/i915: Serialise concurrent calls to i915_gem_set_wedged()

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

 



Quoting Chris Wilson (2019-01-15 12:05:27)
> Quoting Mika Kuoppala (2019-01-15 11:56:11)
> > Chris Wilson <chris@xxxxxxxxxxxxxxxxxx> writes:
> > 
> > > Make i915_gem_set_wedged() and i915_gem_unset_wedged() behaviour more
> > > consistently if called concurrently.
> > 
> > More is needed in here. The purpose is to make them wait in turns
> > on top of mutex, instead of racing on the bit? Where is
> > the inconsistency tho.
> 
> We report set-wedged multiple times on failure paths. Worse is when we
> report set-wedged multiple times simultaneously.

I've been contemplating just moving the reporting inside the test-bit
serialisation, but I kept resisting. This issue has been nagging at me
ever since using the bit for loose serialisation; you either fix a race
or live to regret it.
-Chris
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux