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

Re: [PATCH v2 05/11] xen/arm: Mark device as PCI while creating one


  • To: Stefano Stabellini <sstabellini@xxxxxxxxxx>
  • From: Oleksandr Andrushchenko <Oleksandr_Andrushchenko@xxxxxxxx>
  • Date: Mon, 27 Sep 2021 07:13:02 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.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=Y+ESMEu4hP8xXjB/6BY/qKC3yxOu5l7lpWUzJGOCDDk=; b=bLEwixzeGxse3Sksu7cpxpxeo6srRzKXmzHX4nBube7XFqsS0DlSK1C6ZMevrZid/cP7BTWrXA2My3Lb0Ksb1kL4gCZxaGcTnWZc2V8dok8iyYSaoNlhKGzO15xTKZM7W9SsC6ajsODfmz5NPAehpl/jw7hPGuaQH4AbNMswkhn79AsC8R6BxGpZXipWmsnDcHILuDyY7HY4XPZJA5GrS8ejowji94EDOmvmGHJ/9HyJK5Bc+q8QkmeWKo18HQq93dkCcW0J2bLRyplMfQyZgxcP7/uMf8vGeibDxMcsXfe1tvC9td7xmrDtY3fW0apmFOX1oienMgIOBZx1bLTbsA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=e6g6/hO7JxWdox9vQxSFiAOFGXLDyACpYzgGV/eoG8KeTaK8ImdaeoC1MmESXx1xT9TktfgRf0z5J2l08XFf/LdGoiCPUbbUSM7XxRF7gwI9VZ/2Cg14uyruATXtLu/LHOb8dXqkcy2srIHegOBC1c/Fq7vglColIOR7ePpmCHFk2y1ra80sQBI9unxRziPHdGAU0BNRWSfWUaJwUTIy3aeWNEq4UqsuPZA3011NiSrp1A4wofk9FPU/KoqZ+J/5JZTF0i5mVA0Me4UcTPE6usUHqktAvRf3Ubn6183Gxo5OG6z5CNLq7KhPGXw2zwbmnc3GXWpjylN16sY5jBtEfw==
  • Authentication-results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=epam.com;
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, "julien@xxxxxxx" <julien@xxxxxxx>, Oleksandr Tyshchenko <Oleksandr_Tyshchenko@xxxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Artem Mygaiev <Artem_Mygaiev@xxxxxxxx>, "roger.pau@xxxxxxxxxx" <roger.pau@xxxxxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Rahul Singh <rahul.singh@xxxxxxx>, Oleksandr Andrushchenko <Oleksandr_Andrushchenko@xxxxxxxx>
  • Delivery-date: Mon, 27 Sep 2021 07:13:16 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHXsHoyHtx3VKSfZEKPQekyrs7GEauz3gOAgAOfP4A=
  • Thread-topic: [PATCH v2 05/11] xen/arm: Mark device as PCI while creating one

On 25.09.21 02:54, Stefano Stabellini wrote:
> On Thu, 23 Sep 2021, Oleksandr Andrushchenko wrote:
>> From: Oleksandr Andrushchenko <oleksandr_andrushchenko@xxxxxxxx>
>>
>> While adding a PCI device mark it as such, so other frameworks
>> can distinguish it form DT devices.
>                       ^ from
Will fix
>
>> Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@xxxxxxxx>
> Reviewed-by: Stefano Stabellini <sstabellini@xxxxxxxxxx>
>
>
>> ---
>> Since v1:
>>   - Moved the assignment from iommu_add_device to alloc_pdev
>> ---
>>   xen/drivers/passthrough/pci.c | 3 +++
>>   1 file changed, 3 insertions(+)
>>
>> diff --git a/xen/drivers/passthrough/pci.c b/xen/drivers/passthrough/pci.c
>> index 633e89ac1311..fc3469bc12dc 100644
>> --- a/xen/drivers/passthrough/pci.c
>> +++ b/xen/drivers/passthrough/pci.c
>> @@ -328,6 +328,9 @@ static struct pci_dev *alloc_pdev(struct pci_seg *pseg, 
>> u8 bus, u8 devfn)
>>       *((u8*) &pdev->bus) = bus;
>>       *((u8*) &pdev->devfn) = devfn;
>>       pdev->domain = NULL;
>> +#ifdef CONFIG_ARM
>> +    pci_to_dev(pdev)->type = DEV_PCI;
>> +#endif
>>   
>>       rc = pdev_msi_init(pdev);
>>       if ( rc )
>> -- 
>> 2.25.1
>>

 


Rackspace

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