Re: Loss of PAT-WC after resume on i5

From: H. Peter Anvin
Date: Mon Jan 03 2011 - 11:01:23 EST


On 01/03/2011 04:14 AM, Chris Wilson wrote:
> We have noticed that graphics may become very slow after suspend & resume.
> One effect that we have clearly identified is that writing through the GTT
> becomes very slow:
>
> Before suspending:
> Time to pwrite 16k through the CPU: 4ÃÂs
> Time to read 16k through a GTT map: 901ÃÂs
> Time to write 16k through a GTT map: 23ÃÂs
> Time to read 16k (again) through a GTT map: 900ÃÂs
> Time to pwrite 16k through the GTT: 7ÃÂs
>
> After resume:
> Time to pwrite 16k through the CPU: 4ÃÂs
> Time to read 16k through a GTT map: 900ÃÂs
> Time to write 16k through a GTT map: 876ÃÂs
> Time to read 16k (again) through a GTT map: 899ÃÂs
> Time to pwrite 16k through the GTT: 431ÃÂs
>
> Presuming that it was the loss of the WC mapping, I tore down and
> recreated the ioremap_wc upon resume which restored performance back to
> normal.
>
> So could we indeed be failing to restore the PAT caching state upon
> resume?
>

Sounds like it. It sounds based on your description that it's something
more fundamental than just the state of the PAT MSR being lost, too,
although perhaps that's the first thing to check...

-hpa

--
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel. I don't speak on their behalf.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/