Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932463AbVIAPVV (ORCPT ); Thu, 1 Sep 2005 11:21:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932323AbVIAPVV (ORCPT ); Thu, 1 Sep 2005 11:21:21 -0400 Received: from fmr18.intel.com ([134.134.136.17]:30660 "EHLO orsfmr003.jf.intel.com") by vger.kernel.org with ESMTP id S932249AbVIAPVU convert rfc822-to-8bit (ORCPT ); Thu, 1 Sep 2005 11:21:20 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT Subject: RE: [RFC/PATCH]reconfigure MSI registers after resume Date: Thu, 1 Sep 2005 08:20:50 -0700 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [RFC/PATCH]reconfigure MSI registers after resume thread-index: AcWui6U/IkAGxTgySmius/YA36ZZAwAeqAEQ From: "Nguyen, Tom L" To: "Greg KH" , "Li, Shaohua" Cc: "lkml" , "akpm" X-OriginalArrivalTime: 01 Sep 2005 15:20:51.0794 (UTC) FILETIME=[BD267320:01C5AF08] Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1158 Lines: 29 On Wednesday, August 31, 2005 2:44 PM Greg KH wrote: >>On Thu, Aug 18, 2005 at 01:35:46PM +0800, Shaohua Li wrote: >> Hi, >> It appears pci_enable_msi doesn't reconfigure msi registers if it >> successfully look up a msi for a device. It assumes the data and address >> registers unchanged after calling pci_disable_msi. But this isn't always >> true, such as in a suspend/resume circle. In my test system, the >> registers unsurprised become zero after a S3 resume. This patch fixes my >> problem, please look at it. MSIX might have the same issue, but I >> haven't taken a close look. > Tom, any comments on this? In the cases of suspend/resume, a device driver needs to restore its PCI configuration space registers, which include the MSI/MSI-X capability structures if a device uses MSI/MSI-X. I think reconfiguring MSI data/address each time a driver calls pci_enable_msi may not be necessary. Thanks, Tom - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/