All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC] algorithm for handling bad cachelines
@ 2012-03-27 14:19 Ben Widawsky
  2012-03-27 14:34 ` Chris Wilson
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Ben Widawsky @ 2012-03-27 14:19 UTC (permalink / raw)
  To: intel-gfx

I wanted to run this by folks before I start doing any actual work.

This is primarily for GPGPU, or perhaps *really* accurate rendering
requirements.

IVB+ has an interrupt to tell us when a cacheline seems to be going bad.
There is also a mechanism to remap the bad cachelines. The
implementation details aren't quite clear to me yet, but I'd like to
enable this feature for userspace.

Here is my current plan, but it involves filesystem access, so it's
probably going to get a lot of flames.

1. Handle cache line going bad interrupt.
<After n number of these interrupts to the same line,>
2. send a uevent
2.5 reset the GPU (docs tell us to)
<On module load>
3. Read  a module parameter with a path in the filesystem
of the list of bad lines. It's not clear to me yet exactly what I need
to store, but it should be a relatively simple list.
4. Parse list on driver load, and handle as necessary.
5. goto 1.

Probably the biggest unanswered question is exactly when in the HW
loading do we have to finish remapping. If it can happen at any time
while the card is running, I don't need the filesystem stuff, but I
believe I need to remap the lines quite early in the device bootstrap.

The only alternative I have is a huge comma separated string for a
module parameter, but I kind of like reading the file better.

Any feedback is highly appreciated. I couldn't really find much
precedent for doing this in other drivers, so pointers to similar
things would also be highly welcome.

Ben

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

end of thread, other threads:[~2012-03-28 21:15 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-27 14:19 [RFC] algorithm for handling bad cachelines Ben Widawsky
2012-03-27 14:34 ` Chris Wilson
2012-03-27 14:50 ` Daniel Vetter
2012-03-27 15:09   ` Ben Widawsky
2012-03-27 15:33     ` Daniel Vetter
2012-03-28 17:26 ` Jesse Barnes
2012-03-28 18:04   ` Ben Widawsky
     [not found] ` <m2k4253v29.fsf@firstfloor.org>
2012-03-28 21:15   ` Ben Widawsky

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.