From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id DA473A04B7; Wed, 14 Oct 2020 11:01:38 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 85A4A1DAA8; Wed, 14 Oct 2020 11:01:37 +0200 (CEST) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by dpdk.org (Postfix) with ESMTP id 6D02A1D8E8 for ; Wed, 14 Oct 2020 11:01:35 +0200 (CEST) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id D55245C010B; Wed, 14 Oct 2020 05:01:34 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Wed, 14 Oct 2020 05:01:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=fm2; bh= fh7Lq4dHaOW80O8JywF9eiIDx3CEdo8RgAgfLghc5Dg=; b=lvb+eLWC7YnVhFHq 8QVhodo73cfU7HMslDdXYWOgJM1IfOVw4x86VisrA00PTAThOMVZ9Nzky33VQMSQ CgIye5nbwnDMX3ARBCnAg6KCn8Qpuy419qjVepi6BPGsikUWuznTegsoX9vfCcfd bJzFf5dGwrKJ0hToXjbexjk604NHxc8eoDaVHobiQlFQ44phL5ejjZxi91DUlHrI pe+v48snruRo31seA/pA5SKVF92f/7F9H5iJvk7skDZg3ah0n8Bhp2JHwsocVSgN Nk6nyfEGtAY4SAWXsJVnPsNDBBEuD/ag5SXHtjzqUV/pXEhIyhqdeA+aj8T7E6zD 6XQ+MA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=fh7Lq4dHaOW80O8JywF9eiIDx3CEdo8RgAgfLghc5 Dg=; b=rsvXZvzKlN7f36EIJAHkUmwvH0RkihC4ROYwLHpX4Xf/XdxxPMZ4H70nq omzKTM6gpBWGL0pnKnZDtOwXARIav4gJ23IbYVody2zEGZ1moCpBuNM5SOn1Yt7C tpioU/t9e0/5b/ZgFEweMTt1h2O5qH8Q9WMs9RgVaZchgtTspWgl0jmI1ujJx+U1 7n8C5VaOYdJcoXZKEPtO1iZY4OQA3EPNF5Znmth2JB2m/CA4svYEI0WWMoMX/WH3 L4Ga0O2+PfYcEFjfuLKvUBTcBSZcnBaqu9K4c3fLvp7Z9iPKzmPvb/ZEkv7o721z +fB4gqbf1eSMGYyA63bKpZEYPxNDA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedriedugdduudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkjghfggfgtgesthfuredttddtvdenucfhrhhomhepvfhhohhmrghs ucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenucggtf frrghtthgvrhhnpedugefgvdefudfftdefgeelgffhueekgfffhfeujedtteeutdejueei iedvffegheenucfkphepjeejrddufeegrddvtdefrddukeegnecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepthhhohhmrghssehmohhnjhgrlhho nhdrnhgvth X-ME-Proxy: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 651F03280065; Wed, 14 Oct 2020 05:01:33 -0400 (EDT) From: Thomas Monjalon To: Tal Shnaiderman Cc: dev@dpdk.org, pallavi.kadam@intel.com, dmitry.kozliuk@gmail.com, navasile@linux.microsoft.com, harini.ramakrishnan@microsoft.com, Ranjit Menon , ocardona@microsoft.com, khot@microsoft.com, dmitrym@microsoft.com Date: Wed, 14 Oct 2020 11:01:32 +0200 Message-ID: <3728316.aShtntb2fh@thomas> In-Reply-To: <22b0021f-cf02-1d21-7236-9385e6d5f490@intel.com> References: <20200825114316.10712-1-talshn@nvidia.com> <22b0021f-cf02-1d21-7236-9385e6d5f490@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] bus/pci: support segment value as address domain on Windows X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 16/09/2020 20:32, Ranjit Menon: > On 8/25/2020 4:43 AM, Tal Shnaiderman wrote: > > Set the domain value for rte_pci_addr probing on Windows > > to the value of the PCI segment returned by SPDRP_BUSNUMBER. > > > > Signed-off-by: Tal Shnaiderman > > --- > > --- a/drivers/bus/pci/windows/pci.c > > +++ b/drivers/bus/pci/windows/pci.c > > @@ -195,8 +195,8 @@ get_device_pci_address(HDEVINFO dev_info, > > - addr->domain = 0; > > - addr->bus = bus_num; > > + addr->domain = bus_num >> 8; > > + addr->bus = bus_num & 0xff; > > addr->devid = dev_and_func >> 16; > > addr->function = dev_and_func & 0xffff; > > > Acked-by: Ranjit Menon I was waiting for feedback from Microsoft, but never happened, so Applied, thanks Microsoft, we need a better support for porting DPDK on Windows.