Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp3186305ybd; Mon, 24 Jun 2019 21:15:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqz3imkUawfyauoPOVm9MXH8jPUD+xs0dC2FFN7VxJHBjQa4U/lW/YEDIdoBen/3r1//37LG X-Received: by 2002:a65:63d1:: with SMTP id n17mr1067902pgv.382.1561436119519; Mon, 24 Jun 2019 21:15:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561436119; cv=none; d=google.com; s=arc-20160816; b=EUdWeCeM/M17sAAASrx4DDMMTcAJBvOIVdJLwVj3tcJq7Xk/Dlg+RRbQP0T13Jdjzn Bvxao1mktUeUPDxrA9qB0fcN7njyi94b0NVOrR1EM2kI0E2dD2jutkCRCdfTHVV3ydyp VypK0+UZaREnjoXWbxeq2n8gkznMWgNJmGMAc+X386PhM2CUO0gxh/Ig0MllTgUR2vye yypGtS0UfarBlOocxvNUPSxkt0POHL4VQrVmgmvMXI5GTHOhwDDnrVh18RzqwZCS4Ife WLinqQoUp5lT14vVk2CIKShE2xaA1m26Uq3UFhww5uPklTo8sAfSvtoFReiPO2h+H0rX d1uA== 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=kXJGETA/jJ0RNhUF4386IT59bPJr3Q37TZWH9CEiV9k=; b=hKkx/2z8ac26K07ISZZheKjH0bM+94SKhvv4XmnhdG2qUrRMQre8W2vgmuSP5dHiL3 UNkE7IsepHGOlwiNILIc4tH/1ZzseeuLOC1IKlCFNQecUPlDmh6eZUdpoJo01N/Tbk2B GnQLkP6cIO28wNrZEGCD51/MUMsuq3Sa7AtRymScQkBzbY6OBBH1zdCmRp0WjS7fsedI VMCKYNjiSI9N6FQS/ZZl4eFyMAbSQXmSLdE+y4q7+5hICx2W5Jxjzr/+fm7JJunwcHh/ Fhp/qNNq2GmelZHWq2rxxWMBP2OCkI+cAaxcVazh2VEPL8d8iU5eFlJkp/PFZMh6YJ9X B+AQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@endlessm-com.20150623.gappssmtp.com header.s=20150623 header.b=hPTBh4P3; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b7si12969649pgt.117.2019.06.24.21.15.03; Mon, 24 Jun 2019 21:15:19 -0700 (PDT) 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; dkim=pass header.i=@endlessm-com.20150623.gappssmtp.com header.s=20150623 header.b=hPTBh4P3; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727026AbfFYDvl (ORCPT + 99 others); Mon, 24 Jun 2019 23:51:41 -0400 Received: from mail-qt1-f195.google.com ([209.85.160.195]:45149 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726834AbfFYDvl (ORCPT ); Mon, 24 Jun 2019 23:51:41 -0400 Received: by mail-qt1-f195.google.com with SMTP id j19so16894940qtr.12 for ; Mon, 24 Jun 2019 20:51:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=endlessm-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=kXJGETA/jJ0RNhUF4386IT59bPJr3Q37TZWH9CEiV9k=; b=hPTBh4P3Z7HxVQ1mJ762Mok61s1wxcWhUnvGdnKDOaJTWE83YvvY0cc1YDOaiqd7vi P0dDipAcCaZ3dHpKLAGwgnGe0Wgaqa+bfKynMaz5tBjJfnuAqFAdL/EyJ1eBrWezVs18 ptnXHf7dxFDxwwoatvW15kdM1tOnFINndIdadOxn7Dk0tjxXq17X1zlMTKGMBeO3b8Zm CibeF4oHmo8j+8hQhCu5ZgDkBrUCBcBMoI3D++8Yr59saKhcuEnuSpamgac/xxgwUq4C THweH29RavF2tBZv3uTko+ba1VYlOn8w+7/GRUWWJgQ+XnCy35AbL6JKasygZeZRbaY2 XhEg== 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=kXJGETA/jJ0RNhUF4386IT59bPJr3Q37TZWH9CEiV9k=; b=UfQheGp5UjzyNWrdSReHDQ3dCBQxB9oQ8jtO70d0aDC9e5RAYnThgnB3oQsdKeQkh5 zOQKHP/OGaAfFUENaFz/HIj0i/KGWtNk/UJYnT789is2VRUfG4qUTnwqxgNEaOat6eRs 7CMtbZuEZCADZRjHv4arsJBfxFCW8vBPFPRbhhuasJsAD2mCnjDAIgvpiR46rOFx1/M+ YHK1qBlgx06quqZ21fJxWLWYxvfbN5QYvWrSqwEiyCHK8Aiwc4Lf2c6nZAvlRJdPZv7Y P36kimXAK5jFuw+sLJ9Qrkvgxy2dzFmuMIixuxK5Rw1i96BQbWiyLjkM9HUHgHU7vKdk hXqA== X-Gm-Message-State: APjAAAWL2lwNJ9y/AlZmIn6HIZcY375u2n+XmTqjfP+RnYiSFIo4tdzf rWi/u9C7AE3XPyeSwFdANxJb3rnC7YAB6rDhyiqxJg== X-Received: by 2002:a0c:9807:: with SMTP id c7mr30275759qvd.26.1561434700099; Mon, 24 Jun 2019 20:51:40 -0700 (PDT) MIME-Version: 1.0 References: <20190620051333.2235-1-drake@endlessm.com> <20190620051333.2235-3-drake@endlessm.com> <20190620061038.GA20564@lst.de> <20190624061617.GA2848@lst.de> In-Reply-To: <20190624061617.GA2848@lst.de> From: Daniel Drake Date: Tue, 25 Jun 2019 11:51:28 +0800 Message-ID: Subject: Re: [PATCH v2 2/5] nvme: rename "pci" operations to "mmio" To: Christoph Hellwig Cc: Jens Axboe , Keith Busch , Sagi Grimberg , linux-nvme , Linux PCI , Bjorn Helgaas , linux-ide@vger.kernel.org, Linux Upstreaming Team , Linux Kernel , Hannes Reinecke , Alex Williamson , Dan Williams 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 Mon, Jun 24, 2019 at 2:16 PM Christoph Hellwig wrote: > IFF we want to support it it has to be done at the PCIe layer. But > even that will require actual documentation and support from Intel. > > If Intel still believes this scheme is their magic secret to control > the NVMe market and give themselves and unfair advantage over their > competitors there is not much we can do. Since the 2016 discussion, more documentation has been published: https://www.intel.com/content/dam/www/public/us/en/documents/datasheets/300-series-chipset-pch-datasheet-vol-2.pdf Chapter 15 is entirely new, and section 15.2 provides a nice clarity improvement of the magic regs in the AHCI BAR, which I have used in these patches to clean up the code and add documentation in the header (see patch 1 in this series, ahci-remap.h). I believe there's room for further improvement in the docs here, but it would be nice to know what you see as the blocking questions or documentation gaps that would prevent us from continuing to develop the fake PCI bridge approach (https://marc.info/?l=linux-pci&m=156015271021614&w=2). We are going to try and push Intel on this via other channels to see if we can get a contact to help us, so it would be useful if I can include a concrete list of what we need. Bearing in mind that we've already been told that the NVMe device config space is inaccessible, and the new docs show exactly how the BIOS enforces such inaccessibility during early boot, the remaining points you mentioned recently were: b) reset handling, including the PCI device removal as the last escalation step c) SR-IOV VFs and their management d) power management Are there other blocking questions you would require answers to? Thanks, Daniel