From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dave Airlie Subject: allow drivers to fix kexec bus mastering hole Date: Mon, 19 Dec 2011 14:16:28 +0000 Message-ID: <1324304190-8368-1-git-send-email-airlied@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by gabe.freedesktop.org (Postfix) with ESMTP id 8B9549E75D for ; Mon, 19 Dec 2011 06:18:03 -0800 (PST) Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id pBJEI2hE013788 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 19 Dec 2011 09:18:03 -0500 Received: from optimus.redhat.com (vpn1-6-94.ams2.redhat.com [10.36.6.94]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id pBJEI1XH002679 for ; Mon, 19 Dec 2011 09:18:02 -0500 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org kexec relies on disabling bus mastering on PCI devices to block wayward DMAs left set by the previous kernel. However the drm midlayer was enabling bus mastering for all PCI drivers before calling into them. This meant no matter what they did, there was always going to be a small race window. The first patch pushes the enable into the drivers, and the second radeon patch moves bus mastering enable to later in the driver load procedure for the kms driver. These two along with Jerome's sanity patch should close the race completely. please check the first one to make sure I didn't miss any drivers. Dave.