From 0066865ca8746df4934effe245c8e89b4c2d0b03 Mon Sep 17 00:00:00 2001
From: Stefan Bader <[hidden email]>
Date: Mon, 18 Aug 2008 12:49:47 -0400
Subject: [PATCH] suspend-vs-iommu: prevent suspend if we could not resume
Author: Pavel Machek <[hidden email]>
Date: Thu May 29 00:30:21 2008 -0700
iommu/gart support misses suspend/resume code, which can do bad stuff,
including memory corruption on resume. Prevent system suspend in case we
would be unable to resume.
> https://bugs.launchpad.net/ubuntu/hardy/+source/linux/+bug/257293 >
> Note: The fix to this went into v2.6.27-rc1 upstream, so Intrepid should get it
> SRU Justification:
> Impact: The GART code is missing suspend resume support which means, certain
> setup steps will not be performed after resume which can cause memory
> corruption in the worst case.
> Fix: The fix is done in two steps (following upstream): first this add suspend
> and resume callbacks and then it adds the necessary code to set up the
> registers after a suspend.
> Testcase: See bug report.