[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v3 11/17] xen/arm: PCI host bridge discovery within XEN on ARM


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Rahul Singh <Rahul.Singh@xxxxxxx>
  • Date: Wed, 29 Sep 2021 08:59:09 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=4AeOF3KYIOF4Q8MoXwvV1uJhsAmxB4uwLExzJVehyrc=; b=gL1kl+mLsxUobpo3dsbkithMX2WYjDtQVea/2SXtBr09sCrb4uLPw3eQn/1scqCz7zjqIF6HJNbFoSe9fxlrw3UK6Irnd4ItCav0rUaYVfAqMnf2y/qoLo4V0gS2VrVvazyWwXj0NAV76YMHQ9QdVxi6KKAybLFT914zYMzH4/Dtb7fH1A7e5SBTBU/7yprzo2E/MyIs7xybmIyUjPm4cdXsjJ3xvGtTAJgdEfRz5VSUGHVUzfc8cikFnadw6rOMjDLB1ShrWGPCsQj7hyAf6ZkH4DYlUrKiHtt7JrbjYjP9cRT4wlE9uds6Upk9wo76VzkUgB69G3yWxcbQfQmZlQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ey73Hy5HUL+0WSXm0fXcDIQrtj1A4B3nMZkRYHv8q1zfj/QDPuxI7YJdekJa7HBTsBLIAkB2x2ZUcV3pDjnmDmm9RMFIujk+SLg6yUjhYsouuY6qfopAkPMseisw9firUcGZsjpa5YGhhec5Q4de12b0CTLrldo9VrZnSZZoQUL6YkxL7guIMKVloffmxyUdcuc+RBvMInYRe+PGtF/LNZt+1IQEWzBEeq6y/jYFue696aLduX2N3HbAF7JgUXV3PkZ1Kjm6VHhM3egQz1LqihOOF7BiIIxwLiuOYkj/MBRDT/2Lf97AT81K9abm6hWxnglYniRHFQGgbclMp7yiEw==
  • Authentication-results-original: suse.com; dkim=none (message not signed) header.d=none;suse.com; dmarc=none action=none header.from=arm.com;
  • Cc: Bertrand Marquis <Bertrand.Marquis@xxxxxxx>, Andre Przywara <Andre.Przywara@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Ian Jackson <iwj@xxxxxxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Wed, 29 Sep 2021 08:59:30 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Original-authentication-results: suse.com; dkim=none (message not signed) header.d=none;suse.com; dmarc=none action=none header.from=arm.com;
  • Thread-index: AQHXtJXbn2GMwMXPv0CHEFVVsLXHhKu6r4SAgAAH1gA=
  • Thread-topic: [PATCH v3 11/17] xen/arm: PCI host bridge discovery within XEN on ARM

Hi Jan,

> On 29 Sep 2021, at 9:31 am, Jan Beulich <jbeulich@xxxxxxxx> wrote:
> 
> On 28.09.2021 20:18, Rahul Singh wrote:
>> XEN during boot will read the PCI device tree node “reg” property
>> and will map the PCI config space to the XEN memory.
>> 
>> As of now only "pci-host-ecam-generic" compatible board is supported.
>> 
>> "linux,pci-domain" device tree property assigns a fixed PCI domain
>> number to a host bridge, otherwise an unstable (across boots) unique
>> number will be assigned by Linux. XEN access the PCI devices based on
>> Segment:Bus:Device:Function. A Segment number in the XEN is same as a
>> domain number in Linux. Segment number and domain number has to be in
>> sync to access the correct PCI devices.
>> 
>> XEN will read the “linux,pci-domain” property from the device tree node
>> and configure the host bridge segment number accordingly. If this
>> property is not available XEN will allocate the unique segment number
>> to the host bridge.
>> 
>> Signed-off-by: Rahul Singh <rahul.singh@xxxxxxx>
>> ---
>> Change in v3:
>> - Modify commit msg based on received comments.
>> - Remove added struct match_table{} struct in struct device{}
>> - Replace uint32_t sbdf to pci_sbdf_t sbdf to avoid typecast
>> - Remove bus_start,bus_end and void *sysdata from struct pci_host_bridge{}
>> - Move "#include <asm/pci.h>" in "xen/pci.h" after pci_sbdf_t sbdf 
>> declaration
> 
> This part, if not split into a separate patch in the first place, wants
> mentioning in at least half a sentence of the description. Then ...

Let me move this to new patch in next version.
> 
>> --- a/xen/include/xen/pci.h
>> +++ b/xen/include/xen/pci.h
>> @@ -15,7 +15,6 @@
>> #include <xen/pfn.h>
>> #include <asm/device.h>
>> #include <asm/numa.h>
>> -#include <asm/pci.h>
>> 
>> /*
>>  * The PCI interface treats multi-function devices as independent
>> @@ -62,6 +61,8 @@ typedef union {
>>     };
>> } pci_sbdf_t;
>> 
>> +#include <asm/pci.h>
>> +
>> struct pci_dev_info {
>>     /*
>>      * VF's 'is_extfn' field is used to indicate whether its PF is an 
>> extended
>> 
> 
> .. this part
> Acked-by: Jan Beulich <jbeulich@xxxxxxxx>
> (also if you decide to move this to a separate patch)

Regards,
Rahul
> 
> Jan


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.