Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161076AbVIBV6K (ORCPT ); Fri, 2 Sep 2005 17:58:10 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1161077AbVIBV6K (ORCPT ); Fri, 2 Sep 2005 17:58:10 -0400 Received: from smtp.osdl.org ([65.172.181.4]:4538 "EHLO smtp.osdl.org") by vger.kernel.org with ESMTP id S1161076AbVIBV6I (ORCPT ); Fri, 2 Sep 2005 17:58:08 -0400 Date: Fri, 2 Sep 2005 15:00:34 -0700 From: Andrew Morton To: Rajesh Shah Cc: tom.l.nguyen@intel.com, greg@kroah.com, shaohua.li@intel.com, linux-kernel@vger.kernel.org Subject: Re: [RFC/PATCH]reconfigure MSI registers after resume Message-Id: <20050902150034.72a60355.akpm@osdl.org> In-Reply-To: <20050902125822.A11794@unix-os.sc.intel.com> References: <20050902125822.A11794@unix-os.sc.intel.com> X-Mailer: Sylpheed version 1.0.0 (GTK+ 1.2.10; i386-vine-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1187 Lines: 25 Rajesh Shah wrote: > > On Thu, Sep 01, 2005 at 01:59:32PM -0700, Nguyen, Tom L wrote: > > On Thursday, September 01, 2005 1:10 PM Andrew Morton wrote: > > > Is it not possible to do this in some single centralized place? > > Existing pci_save_state(dev)/pci_restore_state(dev) covers only 64 bytes > > of PCI header. One solution is to extend these APIs to cover up to 256 > > bytes. What do you think? > > > No, we can't have these generic functions blindly save/restore > device specific parts of the config space (offset 64+). I know > of several chipset devices which have read-clear or write-clear > bits where reading/writing would have bad side effects. If at > all the pci core does this, it needs to explicitly walk the > capability list and save/restore the well known capability > registers only. > OK, thanks. I'll drop Shaohua's reconfigure-msi-registers-after-resume.patch while this gets sorted out. - 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/