Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S946447AbdDTShn (ORCPT ); Thu, 20 Apr 2017 14:37:43 -0400 Received: from mail-bl2nam02on0105.outbound.protection.outlook.com ([104.47.38.105]:6624 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S939298AbdDTShj (ORCPT ); Thu, 20 Apr 2017 14:37:39 -0400 From: Haiyang Zhang To: Bjorn Helgaas , Piotr Jaroszynski CC: "linux-pci@vger.kernel.org" , KY Srinivasan , Stephen Hemminger , "olaf@aepfle.de" , "vkuznets@redhat.com" , "driverdev-devel@linuxdriverproject.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH] pci-hyperv: Use only 16 bit integer for PCI domain Thread-Topic: [PATCH] pci-hyperv: Use only 16 bit integer for PCI domain Thread-Index: AQHSufXtzK2r7U5OKEK6iBtai4fGV6HOlTeAgAAAoHA= Date: Thu, 20 Apr 2017 18:37:35 +0000 Message-ID: References: <1492706123-22913-1-git-send-email-haiyangz@exchange.microsoft.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: google.com; dkim=none (message not signed) header.d=none;google.com; dmarc=none action=none header.from=microsoft.com; x-originating-ip: [69.128.199.77] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR03MB2492;7:159S9/N9whTvdtCWzvoZL5an91qUMbQd97ESW5+Prxe0fGdxWCclwsUD5Cgi9xaO1cDUkxlUpJDS3ACKG0fuKFwlk+vJnDm6ZtHThVIWoLBrRoUKeD3VaaZKqGV0syFRoA26tLpcDyKZCYfvbnYtVRaX9stRLi3IHsBJWjMqGr+9+LlWjmxcl1J5gh60+VIihAUo1xVeF5FRpTWQ17o3RmbIsGIcGPZdTG60wP5Eb1oFmqRERNZPCcCQjssdAKrDnSAF5MZ4C9i86oe11rc6xU73RkSMne11nNGtILeQE9gCZTKh1L08dPhVh0v35euFyua6e0tmLdTbafOd8qgZqQa5MFXVm7YF7jiTjkHgoRY= x-ms-office365-filtering-correlation-id: b3372a92-3f33-48a2-a10e-08d4881c50c5 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(2017030254075)(48565401081)(201703131423075)(201703031133081);SRVR:DM5PR03MB2492; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(9452136761055)(140211028294663)(211936372134217); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(61425038)(6040450)(601004)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3002001)(6055026)(61426038)(61427038)(6041248)(20161123564025)(20161123560025)(20161123555025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(6072148);SRVR:DM5PR03MB2492;BCL:0;PCL:0;RULEID:;SRVR:DM5PR03MB2492; x-forefront-prvs: 02830F0362 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(39850400002)(39410400002)(39450400003)(39840400002)(39860400002)(39400400002)(13464003)(24454002)(377454003)(40224003)(305945005)(10090500001)(86362001)(5660300001)(229853002)(7696004)(33656002)(9686003)(5005710100001)(3846002)(54906002)(74316002)(102836003)(6116002)(99286003)(2900100001)(3280700002)(2906002)(2950100002)(122556002)(7736002)(53936002)(3660700001)(4326008)(189998001)(54356999)(50986999)(76176999)(66066001)(8936002)(8676002)(81166006)(8990500004)(6506006)(53546009)(6246003)(55016002)(77096006)(25786009)(38730400002)(10290500002);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR03MB2492;H:BLUPR03MB1412.namprd03.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Apr 2017 18:37:36.0062 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR03MB2492 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by mail.home.local id v3KIblF7024561 Content-Length: 1224 Lines: 30 > -----Original Message----- > From: Bjorn Helgaas [mailto:bhelgaas@google.com] > Sent: Thursday, April 20, 2017 2:33 PM > To: Haiyang Zhang > Cc: linux-pci@vger.kernel.org; KY Srinivasan ; > Stephen Hemminger ; olaf@aepfle.de; > vkuznets@redhat.com; driverdev-devel@linuxdriverproject.org; linux- > kernel@vger.kernel.org > Subject: Re: [PATCH] pci-hyperv: Use only 16 bit integer for PCI domain > > On Thu, Apr 20, 2017 at 11:35 AM, Haiyang Zhang > wrote: > > From: Haiyang Zhang > > > > This patch uses the lower 16 bits of the serial number as PCI > > domain, otherwise some drivers may not be able to handle it. > > Can you give any more details about this? Which drivers, for > instance? Why do drivers care about the domain at all? Can we or > should we make this more explicit and consistent in the PCI core, > e.g., pci_domain_nr() is currently defined to return "int"; maybe it > should be u32? (Although I think "int" is the same size as "u32" on > all arches anyway). It's Nvidia driver. Piotr, could you explain why the driver expects 16 bit domain number? Thanks, - Haiyang