Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp739556pxa; Thu, 27 Aug 2020 14:37:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgkchDm6l6ZQpfp4KDOB0Hy4AMTcLdKYdDlipmlwMfHGJ40WsYeMs5Tkier6Zb8MVx7lEV X-Received: by 2002:a50:fa94:: with SMTP id w20mr22634095edr.82.1598564223900; Thu, 27 Aug 2020 14:37:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598564223; cv=none; d=google.com; s=arc-20160816; b=W1QnxmF8ylBtntRo5wMR0toJUHfxk2Z2LijekIcYr1G/T5BY7pgo24UWR8ntGYojXx FJGClIeLb2C+QywyG9pLFA4hVg0r+LmpSE4fcabEq67yPzl2+ametxj8T0lnG9huyRld 2H8Px0LFM3f/2Yp0LhIMtXbjcDBdrxCLG/fD4xUa7Rz03YKTH2D0vEGuUTzWcoTa98NF aKIuL8KVt07XA+zPSZs7JsrFnYLSwR/9LfK0S8Hs3p4V4TpmHskRb/eZkCloUJouVN52 eNTkP04Qm3ZPnv1V/OFE/pWvVLHs7uWowOQSjS4uOa8rQYmH6RkOYO1IWwp64otsYXud 5CPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=x8j0V5r/wdP8vZ6VBLvhGQ0X+phPNL3od/ID9nsoXUI=; b=yoT8Sje+AEZ8ZFdukrIo/Th+wTHiV8DLShsEy2MxlotrtZbWDS2MU4bEGSnDNPYLrd O38wn4M6Ma0GIAzQB//fnT1W16jqcRm9TETPEbo1hwAtXRTbMv/hRH2ce4/5EXXX9FD+ VqrQBf1OPtLZYPASMd9qdwqFBODFCwKp+ZghYjnS2uXPuI0TYgz0O0/2hSvBe90wpCm0 UkETG5+RCjqtfz+KwgBVsNljQa+nhdBAaEmoQ2A47NzA6mXiRT42WSiRHfyEczL2M0J0 RQRnv8CoPIOixLjizQLG0XmuzpVjKquqVFTFJs4kYH0ilL7OrRBNf2vqthE/8aAy+lEv 1XUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=dwwhR5U8; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ns21si2145057ejb.372.2020.08.27.14.36.40; Thu, 27 Aug 2020 14:37:03 -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=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=dwwhR5U8; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726988AbgH0VeF (ORCPT + 99 others); Thu, 27 Aug 2020 17:34:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726243AbgH0VeE (ORCPT ); Thu, 27 Aug 2020 17:34:04 -0400 Received: from mail-ed1-x542.google.com (mail-ed1-x542.google.com [IPv6:2a00:1450:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 392ACC06121B for ; Thu, 27 Aug 2020 14:34:04 -0700 (PDT) Received: by mail-ed1-x542.google.com with SMTP id b2so6224873edw.5 for ; Thu, 27 Aug 2020 14:34:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=x8j0V5r/wdP8vZ6VBLvhGQ0X+phPNL3od/ID9nsoXUI=; b=dwwhR5U8KcTZrsL4kAe0h6+JfxBbV1UxQURdiBpmqyxtY6HLmETahMpRhG16Vuv3eU 7irPitpu06miZftdKza17e2IZb8htTOzNWYherpZMivoxEFNFB8pX4BSZjMgO1y5aTOe ZKc06aVuQoZbGp3DiwXgdtvyRwGg3nCkXL9nFTRTPFtpT81fdKTC2DgORp0czYF5qaa3 cZXkeSqbjH7o+zg+m6T1um1O8Y8SjigHsI2ZFl4zwez0EA/lO0GehlMFtV/ZPz3UGONx YEFkUwsc5rG5DGW/Y3fcCnys++sszds06jJ/AElMeLX/iV2rvOyV6bkfDjRW9p2B1dWB /eKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=x8j0V5r/wdP8vZ6VBLvhGQ0X+phPNL3od/ID9nsoXUI=; b=AGyd8pN+dK4wknpw0fIRNi0ita+AYf8RXIKhDZnxwgxsqEyelXtMSoq7dMXCWJ0Dpa 20nymO8teY7gDAMQp3kUjV3XhdiE64KlvBauoE+c9QbQzt0TZzgYjNVI1Z0B0R4MNien rU0SsnT/flWV0fB7QWBjAqRdNEZsXG5UD8bw5FMWVKfZiZmLbux3FFNqL9bYQg0SKmhI AwcXiHaLSMNh3Pp+9c9MWqarw5+UZCH8z9kPr9pjg/vki7yqC0zP0G57Nx3c9ZvZjGFl CqZ/Ek9QnjsIpGaSm0hJEAHGrrc36EBc2ow1ySVqlOJBpDtjfNceyDDVLfbR5zc9cvQq pk4Q== X-Gm-Message-State: AOAM533CQuHX86J4Z9ALQa2u9xZjt6cV5xMzUrNbMz0wVIV++9YrR/6F H5/1U9LntyYFQyI5kSp2d0eCk09XMU7cvDcAFZSp2l20k8k= X-Received: by 2002:a05:6402:3128:: with SMTP id dd8mr21084149edb.97.1598564042754; Thu, 27 Aug 2020 14:34:02 -0700 (PDT) MIME-Version: 1.0 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> In-Reply-To: From: Dan Williams Date: Thu, 27 Aug 2020 14:33:56 -0700 Message-ID: Subject: Re: [PATCH] PCI/ASPM: Enable ASPM for links under VMD domain To: "Derrick, Jonathan" Cc: "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" Content-Type: text/plain; charset="UTF-8" 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 9:46 AM Derrick, Jonathan wrote: > > On Thu, 2020-08-27 at 17:23 +0100, hch@infradead.org wrote: > > On Thu, Aug 27, 2020 at 04:13:44PM +0000, Derrick, Jonathan wrote: > > > On Thu, 2020-08-27 at 06:34 +0000, hch@infradead.org wrote: > > > > On Wed, Aug 26, 2020 at 09:43:27PM +0000, Derrick, Jonathan wrote: > > > > > Feel free to review my set to disable the MSI remapping which will > > > > > make > > > > > it perform as well as direct-attached: > > > > > > > > > > https://patchwork.kernel.org/project/linux-pci/list/?series=325681 > > > > > > > > So that then we have to deal with your schemes to make individual > > > > device direct assignment work in a convoluted way? > > > > > > That's not the intent of that patchset -at all-. It was to address the > > > performance bottlenecks with VMD that you constantly complain about. > > > > I know. But once we fix that bottleneck we fix the next issue, > > then to tackle the next. While at the same time VMD brings zero > > actual benefits. > > > > 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.