Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp1722143pxa; Sat, 29 Aug 2020 00:26:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvWHH7SD9pbq5+HDvf4xCoZfeMr2CDp4t5gMfAPeLlvw8tEQl+no3l32i9VnEmnRUijtdK X-Received: by 2002:aa7:cfc7:: with SMTP id r7mr2479903edy.24.1598686011250; Sat, 29 Aug 2020 00:26:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598686011; cv=none; d=google.com; s=arc-20160816; b=fyEpXfpvmdVB6BPOg1mrnWF8ddOcwW4xf+ydf37Fcgi2bX3TcuRA+W0UCvrvmW11BR Y7SNKXi5ndLnuSYPKOsjaiXshluCOO5Xn30KcOGmDEZh2nxTcqEU1oy6d/LyExaqNA1D Y5/JVkgWssD/EPoQuzBdqX/4yjvNpYudrU2i4E3Gjo9VQyLb2Ki+nIUexWYInegPYvYx rRrn95QjX/Nia//jQbmqzdWBs/ewow/C4Am9GRupzokB70grjZ1jAWX+Vn6vGSWKl2SV k/ZbMgpUONSZU5ubxHsHabp/vkIbqm+vgcF2dS2vsk6y7FQoibBhBEvsYIquD38YWM0i TJcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=QNu7WskT6/ByA/SlTVpDtv1Uo1ftd0R0JFxhIta6WFQ=; b=vTD02MFCI1oCUQ+EeZLwFrgW2fME6NBMDrT5cDWWJpPiuwlxW+SoKCXmvHeOl5dFIt lMOJR51pHZOm8sN6NXM96ic1vVuslEY8eHOKCYbuc+3drf7ic2sPq3RvAjuzBYrtRJYu F970JuO8L+lI7gVgjHhHLDx6VBL/irAjRlmAqVDdS+9BsmPmT9O9qH4Iq1PzXyTA5CYw got+j0Tcwb5uNyNJjfS2mXsvviVuTn5IRI9v3P78sbQvre4KNOd7lAQduSxS1xxX1G4y LXC/t/dUZjLXrJqJpuHMtAlQy5/oj3gmhy9FcBii4dudi/n9uZTOkIKUP6InfTBqEbhH SjuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=gLbTnKYi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l23si984796edq.396.2020.08.29.00.26.28; Sat, 29 Aug 2020 00:26:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=gLbTnKYi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726954AbgH2HXX (ORCPT + 99 others); Sat, 29 Aug 2020 03:23:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726083AbgH2HXW (ORCPT ); Sat, 29 Aug 2020 03:23:22 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3FF43C061236; Sat, 29 Aug 2020 00:23:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=QNu7WskT6/ByA/SlTVpDtv1Uo1ftd0R0JFxhIta6WFQ=; b=gLbTnKYia/vcnmkitTXpw08E+d BXzQDIDN9FWHcHIFPvn3m+VIKNUT/mjS6WCSKr7xFlFPdv3K1NJlCab+ReyU6axduh7Lwyojbczx9 Zz+fs7aFwQ1nPwxHf+RPMSWAcn546HEBogzq307eZQSkjnV04JoKSgQLNVtkrJZU95JddneQSvp/d K1Dq1cvPRYnhOhzeiIPosmjFNtvG4E/dGGWCjEUpIK/ARdm1qTzYljFVzrk+1+k51dVmgWet5sPxO fJtiB4wZDEo1OSA2C2yXq58SXFhEd8j55PQFO+DW7WWa42gF3+0PXteedleNdGAhxQhL4EQGsXXVo +Drd1k9A==; Received: from hch by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kBvCZ-0001n6-TP; Sat, 29 Aug 2020 07:23:03 +0000 Date: Sat, 29 Aug 2020 08:23:03 +0100 From: "hch@infradead.org" To: Dan Williams Cc: "Derrick, Jonathan" , "hch@infradead.org" , "wangxiongfeng2@huawei.com" , "kw@linux.com" , "hkallweit1@gmail.com" , "kai.heng.feng@canonical.com" , "linux-kernel@vger.kernel.org" , "mika.westerberg@linux.intel.com" , "Mario.Limonciello@dell.com" , "linux-pci@vger.kernel.org" , "bhelgaas@google.com" , "Huffman, Amber" , "Wysocki, Rafael J" Subject: Re: [PATCH] PCI/ASPM: Enable ASPM for links under VMD domain Message-ID: <20200829072303.GA6704@infradead.org> References: <20200821123222.32093-1-kai.heng.feng@canonical.com> <20200825062320.GA27116@infradead.org> <20200827063406.GA13738@infradead.org> <660c8671a51eec447dc7fab22bacbc9c600508d9.camel@intel.com> <20200827162333.GA6822@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 27, 2020 at 02:33:56PM -0700, Dan Williams wrote: > > Just a few benefits and there are other users with unique use cases: > > 1. Passthrough of the endpoint to OSes which don't natively support > > hotplug can enable hotplug for that OS using the guest VMD driver > > 2. Some hypervisors have a limit on the number of devices that can be > > passed through. VMD endpoint is a single device that expands to many. > > 3. Expansion of possible bus numbers beyond 256 by using other > > segments. > > 4. Custom RAID LED patterns driven by ledctl > > > > I'm not trying to market this. Just pointing out that this isn't > > "bringing zero actual benefits" to many users. > > > > The initial intent of the VMD driver was to allow Linux to find and > initialize devices behind a VMD configuration where VMD was required > for a non-Linux OS. For Linux, if full native PCI-E is an available > configuration option I think it makes sense to recommend Linux users > to flip that knob rather than continue to wrestle with the caveats of > the VMD driver. Where that knob isn't possible / available VMD can be > a fallback, but full native PCI-E is what Linux wants in the end. Agreed. And the thing we need for this to really work is to turn VMD off without a reboot when we find it. That would solve all the problems we have, and also allow an amazing kernel hacker like Derrick do more productive work than coming up with one VMD workaround after another.