Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1740984imm; Thu, 14 Jun 2018 03:08:13 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKGEE5Lf0xVZ/JEr+Bsp3bcl+A9BmdG5MxaiwQG20yKMJ0pn9M6xoff1cbZOrBwgqoKtn7g X-Received: by 2002:aa7:8004:: with SMTP id j4-v6mr8745600pfi.174.1528970893511; Thu, 14 Jun 2018 03:08:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528970893; cv=none; d=google.com; s=arc-20160816; b=ppiwV92vnzUeIyFg1AClkuMae8hvoJcbwoAWkJc4gnCZ8TsoO13anTjDPh+0O5Znbu CgDjIGcxvZTlb13wAvkyBPaCy0q0x+s9yc1PCnWKRjzzAkysMCZWQCey87xhoAeX5pnG eI8bn7XQfmsrR7poJZDFneIvngNa6geUGTDXV+LeKCbOsJMp9Hn+Y+/Z2Ou5VZ+TR3Y/ UgcK10BIYgeTsAyZRsS1o49Q1UibbPCPNRDxawJ/yJnRM9AKRWkCLSqlM6ilmz4LHYWK KSrDFgoUiyQhOm98FabOicrOiFiRkcSrNjXqLxNwwqcdUM14LIl9RmSzjwZiOtBgd1vw pVzA== 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 :mime-version:dkim-signature:arc-authentication-results; bh=yy1mL7T18vh71p8O2rU29Bnk8l9Mgbll7Pmm0/nGr+o=; b=mhc18/+SEf4lKxZX1+BE6/UHAi0cS7ugcyQQdqKlU3YCW54ZKBNsd1HIpZPLCiMhnc Dk8pfVmI7zquLMUYzWtkMM+0Zr6Dp1B6y42tA7yu6h6V0K3vGwnzVEm2V9aaoaIICthu 447W9GOv6mmCDQoeMgC8beD5sz8IapThlSpPdcYf3wD3PAKmfurpMqhe1TSDSbs2hut6 KOldqJXCvM2SyeCWCsuOL2o2vIV1LoBxNNbu0yV803DAVR0r6kds+hVkC1oT2s/rNKKg OMVrCQkZXl+wh/9O3iZ7GjaUvSL0edhyENtdl6LaSsrAMKNZDAsJpcC9g+ofsXW04ioe 5lxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=Vpx+657J; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k24-v6si4721021pff.91.2018.06.14.03.07.59; Thu, 14 Jun 2018 03:08:13 -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=@broadcom.com header.s=google header.b=Vpx+657J; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754936AbeFNKHd (ORCPT + 99 others); Thu, 14 Jun 2018 06:07:33 -0400 Received: from mail-ot0-f174.google.com ([74.125.82.174]:47053 "EHLO mail-ot0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754709AbeFNKH3 (ORCPT ); Thu, 14 Jun 2018 06:07:29 -0400 Received: by mail-ot0-f174.google.com with SMTP id q1-v6so6385914oth.13 for ; Thu, 14 Jun 2018 03:07:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=mime-version:from:date:message-id:subject:to:cc; bh=yy1mL7T18vh71p8O2rU29Bnk8l9Mgbll7Pmm0/nGr+o=; b=Vpx+657Jq98fPKuaUHL30QCI3Z0TYBCNWrBBrtQRrK3vPcLarAT21O//dD/sXSIGi5 QjXs+0nl6r0UeAHqTsv1lE+zA0aq+0Rdly7XCSGUaoQb4C4ZVE5PDmUSLFnRx0gw/j00 m1r8KIMzi7cSxRBgPFdND2270ZkjT6ayxtQ4U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=yy1mL7T18vh71p8O2rU29Bnk8l9Mgbll7Pmm0/nGr+o=; b=c3mIAcvb8pKKSQrmBnixsC0PJ4KwjvllSz6Ea7Jovx4zmX7658oOSfboIFF+9ZBbeM 01p0E2YFau3Tdo9dPSxjbNH7Au4jWKJdvN/sxNDMdWASCxGyazDNjdWpde8UpoAHioem Ag0O0l/F35SkStD8tb6g2dx/5N12yDii77SiDQ/0pIK3wpSdJiJQ5Z7pI7LBj7wOFUrj Hp/0TvZE9w1nEMRfvQzALsWIlRgBWUcDjNOFo115NXRzQnxGw0Kn9OAXqAcek8x5UGQ9 obuVsLhfaATcyuY6JUTfX6HgdJZQPjvxCiRJJMvd8tqEvvglU7Ll49ShyB3nhiApNRk6 Y8fA== X-Gm-Message-State: APt69E3MgD6/v8vC16iRZMXnA1dD9QqxGx6v25/smk59v8n8locAbg5R T3SUzXVW5tu/QoX3ld1IP6T/evlYMKS8CPgbPazddA== X-Received: by 2002:a9d:60d2:: with SMTP id b18-v6mr874296otk.305.1528970848685; Thu, 14 Jun 2018 03:07:28 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:4044:0:0:0:0:0 with HTTP; Thu, 14 Jun 2018 03:07:28 -0700 (PDT) From: Srinath Mannam Date: Thu, 14 Jun 2018 15:37:28 +0530 Message-ID: Subject: Requirement to get BAR pci_bus_address in user space To: Bjorn Helgaas , Christoph Hellwig , Abhishek Shah , Vikram Prakash Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org 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 Hi Bjorn, We observed an issue in NVMe CMD cards in SPDK NVMe libraries. Similar issue fixed with "nvme-pci: Use PCI bus address for data/queues in CMB" commit in nvme kernel driver. As per the fix, pci_bus_address of CMB bar is required to program to NVMe cards. We need to implement similar fix for SPDK NVMe libraries also. User space libraries get pci device resource information (resource phy address, resource size) from resource file in sysfs. But no mechanism available to get pci_bus_address of corresponding resource physical address in sysfs. Please suggest me if any alternate mechanism available to get pci_bus_address in user space. Thank you. Regards, Srinath.