Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5971893imu; Tue, 13 Nov 2018 14:56:58 -0800 (PST) X-Google-Smtp-Source: AJdET5cU6U9tZZs0N27dUU7J/JZ5YyWbTXuECJ1E827mt7E7irKQEjvLBlp1pmJSncz2UbYWHa7J X-Received: by 2002:a62:1cc6:: with SMTP id c189-v6mr7153102pfc.49.1542149818564; Tue, 13 Nov 2018 14:56:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542149818; cv=none; d=google.com; s=arc-20160816; b=r3AInwhRK9rISJF2ydys2q/2yDqalOXyh0bFlSUYsmeIuCQcSYEGA85TtbUQihnGg0 6ZiWH+dKmcLqFeHHlZlr3IIoRJTS6Ppa5lnlxl69uHe0uiqfdRGtQjDiwFueIZkEBSCP pzJkZ45uO+8hsN3Aj9rVNUPD5XIk7cBPtpIJA91IH4Q1NQBvZ26maPMPlZjvYt7eNp6F TZtScrASvmLR4dn0+akoFJHDI74uEXcKntvet5VGFKktzrBxSW5p+zr/AMeS+q853f6V /r9uspd73dEOXc+Orvdhug9BRw2Ukjyz5/c59A/gOOH2/9r4DTyH36IA5Ml4gGwXI5IY blpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=5QlSkS5VREBy1hrqqpTF13tdsoCcgwYidnQNzLz3hzw=; b=O6Nsib8fcCGzATiIClJ9ImWuPklH9P7EOmKWzPVfxH+7S5s8q6LacRVUMUaubWCV+Q rj0Hs0LOKni3PIxwBVdYEXldnrLp0TNkMcyZKLP6j+cUoVLZqPvxVK2MaDpcCN3mmzir 3COsfXOTEWvr70W+iS7z+skp6fcaY6jldkEeffocDxn3BpM0ZVqbAZmjl2u5OS3yIOuy HJcvM6tFZZSPpmdYSGd4hTIMyxt3C4Z0t3af3GuY7NTMw/ewwqFqD6WpN47C7mVhV9lT hhTiAeO7BenRjXchc/qzFrbqBmOGXFKkFTGlqdxNVOwSakWemfXrU1M+tj7w5ueaFFkU YvIA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u69si3083116pfj.219.2018.11.13.14.56.42; Tue, 13 Nov 2018 14:56:58 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731575AbeKNI4Z (ORCPT + 99 others); Wed, 14 Nov 2018 03:56:25 -0500 Received: from mga18.intel.com ([134.134.136.126]:31330 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726408AbeKNI4Y (ORCPT ); Wed, 14 Nov 2018 03:56:24 -0500 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Nov 2018 14:56:01 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,230,1539673200"; d="scan'208";a="91817827" Received: from unknown (HELO localhost.localdomain) ([10.232.112.69]) by orsmga008.jf.intel.com with ESMTP; 13 Nov 2018 14:56:00 -0800 Date: Tue, 13 Nov 2018 15:52:32 -0700 From: Keith Busch To: Alex_Gagniuc@Dellteam.com Cc: helgaas@kernel.org, oohall@gmail.com, gregkh@linuxfoundation.org, mr.nuke.me@gmail.com, linux-pci@vger.kernel.org, Austin.Bolen@dell.com, Shyam.Iyer@dell.com, linux-kernel@vger.kernel.org, jonathan.derrick@intel.com, lukas@wunner.de, ruscur@russell.cc, sbobroff@linux.ibm.com, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH v2] PCI/MSI: Don't touch MSI bits when the PCI device is disconnected Message-ID: <20181113225232.GB10134@localhost.localdomain> References: <20181108220117.GA11466@kroah.com> <20181108223258.GD2932@localhost.localdomain> <20181108224255.GA20619@kroah.com> <20d68e586fff4dcca5616d5056f6fc21@ausx13mps321.AMER.DELL.COM> <20181108225109.GA3023@kroah.com> <16bf9d14bc5f4a90b2b88dd2eb165186@ausx13mps321.AMER.DELL.COM> <5da8d8aa9f3818af649b1ac547bc4e6062626ddf.camel@gmail.com> <20181113050240.GA182139@google.com> <19136f44cd5c45e79bbef7e78a6bf332@ausx13mps321.AMER.DELL.COM> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <19136f44cd5c45e79bbef7e78a6bf332@ausx13mps321.AMER.DELL.COM> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 13, 2018 at 10:39:15PM +0000, Alex_Gagniuc@Dellteam.com wrote: > On 11/12/2018 11:02 PM, Bjorn Helgaas wrote: > > The whole issue of firmware-first, the mechanism by which firmware > > gets control, the System Error enables in Root Port Root Control > > registers, etc., is very murky to me. Jon has a sort of similar issue > > with VMD where he needs to leave System Errors enabled instead of > > disabling them as we currently do. > > Well, OS gets control via _OSC method, and based on that it should > touch/not touch the AER bits. The bits that get set/cleared come from > _HPX method, and there's a more about the FFS described in ACPI spec. It > seems that if platform, wants to enable VMD, it should pass the correct > bits via _HPX. I'm curious to know in what new twisted way FFS doesn't > work as intended. When VMD is enabled, the platform sees a VMD endpoint. It doesn't see any of the root ports on that domain, so ACPI can't provide policies for them nor AER registers for the platform to consider controlling.