Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* forcewake v5
@ 2011-04-20 23:53 Ben Widawsky
  2011-04-20 23:53 ` [PATCH 1/5] drm/i915: proper use of forcewake Ben Widawsky
                   ` (5 more replies)
  0 siblings, 6 replies; 22+ messages in thread
From: Ben Widawsky @ 2011-04-20 23:53 UTC (permalink / raw)
  To: intel-gfx


Once you're done laughing that I got up to v5 (I think I skipped a v3,
and v1 was the IOCTls, so it's really more like a v3) for patches meant
to simply allow register reads and wites...

Back to struct_mutex since it turned out to be my mistake regarding the
IIR problem. The only issue in the interrupt handler was rps, which has
been moved to a workqueue.

Struct_mutex must be held to forcewake, or relinquish forcwake.

There is still at least one known problem with the hangcheck code where
it reads registers that aren't safe for gen6, and acquiring
struct_mutex. Moving that code to a workqueue became quite involved, and
since it's mostly an error condition, I am not including it in this
series. Hopefully no other code is trying to read or write registers
while the GPU is potentially hanging.

The reference count is now atomic so that the system may possibly almost
work (at least as well as it works now), if callers don't have
struct_mutex.

This series is potentially more dangerous than the previous because of
the way the PM interrupts are handled for rps.

Ben

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2011-04-26  7:57 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-20 23:53 forcewake v5 Ben Widawsky
2011-04-20 23:53 ` [PATCH 1/5] drm/i915: proper use of forcewake Ben Widawsky
2011-04-25 18:22   ` Ben Widawsky
2011-04-20 23:53 ` [PATCH 2/5] drm/i915: reference counted forcewake Ben Widawsky
2011-04-25 18:23   ` Ben Widawsky
2011-04-20 23:53 ` [PATCH 3/5] drm/i915: forcewake struct mutex locking fixes Ben Widawsky
2011-04-21  6:18   ` Chris Wilson
2011-04-22 16:20     ` Ben Widawsky
2011-04-22 16:41       ` Ben Widawsky
2011-04-22 17:00       ` Chris Wilson
2011-04-25 18:24   ` Ben Widawsky
2011-04-20 23:53 ` [PATCH 4/5] drm/i915: move gen6 rps handling to workqueue Ben Widawsky
2011-04-21  6:34   ` Chris Wilson
2011-04-22 16:12     ` Ben Widawsky
2011-04-25 18:25   ` Ben Widawsky
2011-04-20 23:53 ` [PATCH 5/5] drm/i915: debugfs interface for forcewake reference count Ben Widawsky
2011-04-25 18:25   ` Ben Widawsky
2011-04-25 19:28     ` Chris Wilson
2011-04-25 21:46       ` Ben Widawsky
2011-04-26  7:57         ` Chris Wilson
2011-04-21  6:39 ` forcewake v5 Chris Wilson
2011-04-25 18:21   ` Ben Widawsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox