From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-002c1b01.pphosted.com (mx0b-002c1b01.pphosted.com [148.163.155.12]) by mx.groups.io with SMTP id smtpd.web11.69250.1686598060540106704 for ; Mon, 12 Jun 2023 12:27:40 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@nutanix.com header.s=proofpoint20171006 header.b=RrBck5SL; spf=permerror, err=parse error for token &{10 18 spf-002c1b01.pphosted.com}: limit exceeded (domain: nutanix.com, ip: 148.163.155.12, mailfrom: kallol.biswas@nutanix.com) Received: from pps.filterd (m0127841.ppops.net [127.0.0.1]) by mx0b-002c1b01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 35CErHEK026985 for ; Mon, 12 Jun 2023 12:27:39 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nutanix.com; h=from : to : cc : subject : date : message-id : content-type : mime-version; s=proofpoint20171006; bh=yLGvTIYZUxoF7XwxDlgi8otJkFPM+GKcjiu2fr5z8oQ=; b=RrBck5SLWiSNf0URRCXcLTVS7UO55k6iBkXrr4VgnPtHsC6ZBat+g1HeCa/HxFRO00bg M5U/zOJxksQKmhvvX4+TvzTaFFv8gfmmXROX0y4fr/IBsZECWMfpbUxoRzv9Jnr8bpT9 vuKBA72ChZLhzTbe5FmjpC/BuNIkFPOzTCwA1b4gDQ0fXGNbXRMZvCbpYz8VvN1A5ZQ0 wRVT0hbttU+97ao7DyTbaXRoesThqzGilafSHPZMfJRnKKs1kqaucd5LZ6G37sz0/7mz 3RcmnGmUB2FXiWF/8poNVZHQcMhInzj/x65LOxy+9yI1F2+hqDwyqtdAkHuHQJtTJaxY ew== Received: from nam12-bn8-obe.outbound.protection.outlook.com (mail-bn8nam12lp2171.outbound.protection.outlook.com [104.47.55.171]) by mx0b-002c1b01.pphosted.com (PPS) with ESMTPS id 3r4pq73w80-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 12 Jun 2023 12:27:39 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gktf1pSIXggv1iaOtCDkJLTM3lw+sAj65r4J1ov90c8YsMxoUgrIekqTJ7rYsDOanhMb5fx5mdTv960EL4I082V35AJganXt38BY5OHQoj2sPqHR2mL/lbXnWu3ywtHallDrFoH3VEXhuM1SGWzf14QCx0ZcCtMbVbb/I1kmiGw1p9YWPyoT+tPbWJpTc8TvucXY+oH610JHtpvJL+azbKtShza6vQ+ev8IFCILVJU8K/V9SpIXFZUgCmyrK6XTvqRG4yy6W3Fhm9s20nPj9YHFvt9r0U3lDFHpLdpRxzXlsWIafP7AtakyYX48jJfCRlodPORTqa7ea0JBOgRAx/g== 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:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=yLGvTIYZUxoF7XwxDlgi8otJkFPM+GKcjiu2fr5z8oQ=; b=MshmiRYEt4tij2PQmSzJVC/4XLLD/QH1AqejxzPlB8BdD4mSMVAHP3nYXv7d4g74L4Z7Su9v+UFgj34QOYKWAx1puN3i2MIhnltBXNHkY95bjz189w5UlWupUfweWJrGgyIhaOwp4CBwlNTfptNasfx2ieEmHDtzR1yJ6khQya07BYw8CyhgJ4cL09dJoS7LBVsK1lQ4ZpWcbibQUd6J0u/fkUONbhY271qeCxSk9sjeKvwa0STrGzqlij5wqQhXrO/09A9xXw24lW+faMbrtAtGgGG5JQjaDNFb8gV6gE9boM4O7zPdUEhFhlVprxBmiu5rx57MB/uNQvMm2xsJxQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nutanix.com; dmarc=pass action=none header.from=nutanix.com; dkim=pass header.d=nutanix.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nutanix.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=yLGvTIYZUxoF7XwxDlgi8otJkFPM+GKcjiu2fr5z8oQ=; b=KeQDJ1WB1edxAH4keqquDqSKHnJNGLIdhp/0DMTkoiELt9KIPBVJjLy1fK5Bbvy7aRp7i2ybChAjYND1QzcaqhvXAhtfVdWK6AXj0qTHJEnPC9Ipey75oI6fG4YnFZZfS11m3MTKWUAEvRgvWJJUtcNqh3mDpMwrldOfD2d5LZY5CaUl4puxm8TemFRQSOxMVr+jmUA98XmIDXf4CMqyfLbjZhCdwPTNZOeO3p0pONChrhVJVyiYK2+MMVDviLb4gLaTMwkYmAfmWhyjdwIBkO797Vyoeiv1A+usSzifBXvTrPyQk4T4V/JcK4lUwN3l8Fu5pNBABnOtX4+Y5ft5zw== Received: from BL3PR02MB7986.namprd02.prod.outlook.com (2603:10b6:208:355::19) by CY5PR02MB8944.namprd02.prod.outlook.com (2603:10b6:930:37::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.33; Mon, 12 Jun 2023 19:27:37 +0000 Received: from BL3PR02MB7986.namprd02.prod.outlook.com ([fe80::4df2:adb6:e789:6780]) by BL3PR02MB7986.namprd02.prod.outlook.com ([fe80::4df2:adb6:e789:6780%6]) with mapi id 15.20.6455.045; Mon, 12 Jun 2023 19:27:37 +0000 From: "Kallol Biswas [C]" To: "devel@edk2.groups.io" CC: Pritam Chatterjee Subject: uefi VM and IO window overlap issue Thread-Topic: uefi VM and IO window overlap issue Thread-Index: AdmdYuFpm6u3axEiQC2O+crX1DoTTg== Date: Mon, 12 Jun 2023 19:27:37 +0000 Message-ID: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BL3PR02MB7986:EE_|CY5PR02MB8944:EE_ x-ms-office365-filtering-correlation-id: 2805d14a-d000-4f58-1b42-08db6b7b1483 x-proofpoint-crosstenant: true x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 0I/aJIrDtpoUtdsBySd2psolXZrfhSqrEIUlCIWEG4ZKWsJ9nuQyT5m/f28VhIZ7ErcKK0lzpNJAIMTm2v7NoGw1qeDQQ0lRvuLg/Ao6cf1CELupRyubMOGApIpFwiPFI2ouSLxJu6Ab5wLpqn1EfdPpyh4u9IDLLkzY3nG2rhtno87JOfXBbODAh88BcdrjjXnU0qNpiTPkpUwKRzjbhFWrYOqd1r3XgJ2bN95BGVclyIKc1NKaQyKw1GTQ6Q/VIob8w1KnTr/qTE9KcQ9e5TsBCdfpJ1E4P4xqT4is8ag9wPWNHsKXegSDJQA8OEAyPzHHI/IwyKZysFIeVVjwtvAN+nWDslZrSLlV78WpYrU1csmJ0oPt/MHO5z9KUiud+Rb0pCzzareD+skUu8xNX1y2J+3l6O6VEbhxzbm3BqfSWy1MAgWnA5pVq7MNuWdglBmHsjD9pLqOVoB0zEUeG5TtPbcoSLSkHg8/JSV2jT/jO+PLAHpCWYs9U3lWsiNEx0nZopvcv52Ka7I+XHDgtAadczgnGfG8wnoYswJcz0OBSxJBKE8bCNHZyfeAELSZlaQF1ZC5TyUH8VfZg+fGxitHuFaPD2bHBBCrMp/gYVs= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BL3PR02MB7986.namprd02.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(39860400002)(376002)(346002)(366004)(396003)(136003)(451199021)(83380400001)(33656002)(2906002)(166002)(86362001)(38070700005)(122000001)(38100700002)(55016003)(316002)(41300700001)(966005)(5660300002)(52536014)(9326002)(107886003)(7696005)(8936002)(186003)(8676002)(478600001)(71200400001)(6916009)(64756008)(76116006)(66946007)(6506007)(66446008)(66476007)(4326008)(9686003)(66556008)(21615005);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?RDtc5W+jC3nd/KT1ZEqL5d/9P7cFNAVcZ4TzLsHltnCsh3w58mvuvgt/AGvX?= =?us-ascii?Q?pLCnbn5LS1io+Nv4HmQvgyKeto3ze/ez6FGY2Ulf9RFrMjcjDzAC6kE5zmkG?= =?us-ascii?Q?/7YtgK+hNKOEX1KIl8HhEalUu0dlFbA7X2oSaWt7XEYlTU0AMzZr2FdK0k5p?= =?us-ascii?Q?g/Z2BiQ8f2j2FLt0oU8T/lzilrZKlDa4ceNJ8Qx+QrlhYhn+B59GksR3Eu0S?= =?us-ascii?Q?iDHSB6iOqh7yYFtkCigu3MKrvLQpSL4Wj38wXBl4klQ1akDp9P9S5gJcUj/R?= =?us-ascii?Q?fhZVPMVKEjgSC5pWjvqg64mtxn1fwyJO/9mdfs5XR7uXSsCz64SGbLHtNti8?= =?us-ascii?Q?TefRfD2BdUCGm05vUR10v1EB9v2raTT2P9cRcybBVhevV0TfbOhHx97vW3rl?= =?us-ascii?Q?/NkESOcpixd6hPjhj6X/VDyOOu/spOiJ0HuYoKkU3mYAo6agrtanjq7R6izY?= =?us-ascii?Q?BXXDyyv881Tp8qpwp2KEqPAM2KOyITW8aBY+1kKa9tGd1iWczLKbRZb31ttD?= =?us-ascii?Q?aqxD09uVL7to0K0cmYhQvXHFHm7RLune5p9zlnjRfUG20IQOKuoO4K/Uqptx?= =?us-ascii?Q?Cz5VLFboQ2Kr81Rcpr2LNdLWdiTvg0Mp27DXW8MEUKemNR1qnpyeh3gFRZZV?= =?us-ascii?Q?e47Wp1GNsXsd9/qALTVqeEUWXtL85Zse+JXTkwzJXBU9zy9kFrByBaB9su9O?= =?us-ascii?Q?kTKgq8GwNmDOWDDUknc2Rj9ElIYyTfBzKAGdJEQCkaVAiKPuXr531zGEfwn2?= =?us-ascii?Q?rSx59U3b15A+79g5ezM4ElJbpmcB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OriginatorOrg: nutanix.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BL3PR02MB7986.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2805d14a-d000-4f58-1b42-08db6b7b1483 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Jun 2023 19:27:37.2064 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: bb047546-786f-4de1-bd75-24e5b6f79043 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 5gaWiYrfaW+U/R93FMzTsw1E+Skd+aclc84DnU3FVwf3FlDOHlCZntXCzja+zqYRPEGy67Y0YjOp7CtQTh3vvSkcHFdD3TyBVQcMFulwSe8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY5PR02MB8944 X-Proofpoint-ORIG-GUID: ujHuOMmLzR_lsHSNLmT-GrQ95isJTZsk X-Proofpoint-GUID: ujHuOMmLzR_lsHSNLmT-GrQ95isJTZsk X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-06-12_14,2023-06-12_02,2023-05-22_02 X-Proofpoint-Spam-Reason: safe Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_BL3PR02MB7986C82BAE8AB1A00CAC1067FE54ABL3PR02MB7986namp_" --_000_BL3PR02MB7986C82BAE8AB1A00CAC1067FE54ABL3PR02MB7986namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, We have been observing an issue that IO BARs can't be claimed due to re= source conflict. [ 0.457693] pci 0000:00:1d.0: can't claim BAR 4 [io 0x92a0-0x92bf]: add= ress conflict with PCI Bus 0000:01 [io 0x9000-0x9fff] [ 0.457705] pci 0000:00:1d.1: can't claim BAR 4 [io 0x9280-0x929f]: add= ress conflict with PCI Bus 0000:01 [io 0x9000-0x9fff] [ 0.457715] pci 0000:00:1d.2: can't claim BAR 4 [io 0x9260-0x927f]: add= ress conflict with PCI Bus 0000:01 [io 0x9000-0x9fff] [ 0.457743] pci 0000:00:1f.2: can't claim BAR 4 [io 0x9240-0x925f]: add= ress conflict with PCI Bus 0000:01 [io 0x9000-0x9fff] [ 0.457754] pci 0000:00:1f.3: can't claim BAR 4 [io 0x9200-0x923f]: add= ress conflict with PCI Bus 0000:01 [io 0x9000-0x9fff] Please see the discussion thread: https://www.spinics.net/lists/linux-pci/msg133740.html The root of the problem is that OVMF does not take into account the limit r= egister's granularity (limit) of a bridge, and programs EPs with overlapping IO ranges in a different bus. Should we fix the issue in the OVMF? Thanks, Kallol --_000_BL3PR02MB7986C82BAE8AB1A00CAC1067FE54ABL3PR02MB7986namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,

    We have been observing an issue t= hat IO BARs can’t be claimed due to resource

conflict.

[    0= .457693] pci 0000:00:1d.0: can't claim BAR 4 [io  0x92a0-0x92bf]: addr= ess conflict with PCI Bus 0000:01 [io  0x9000-0x9fff]

[    0= .457705] pci 0000:00:1d.1: can't claim BAR 4 [io  0x9280-0x929f]: addr= ess conflict with PCI Bus 0000:01 [io  0x9000-0x9fff]

[    0= .457715] pci 0000:00:1d.2: can't claim BAR 4 [io  0x9260-0x927f]: addr= ess conflict with PCI Bus 0000:01 [io  0x9000-0x9fff]

[    0= .457743] pci 0000:00:1f.2: can't claim BAR 4 [io  0x9240-0x925f]: addr= ess conflict with PCI Bus 0000:01 [io  0x9000-0x9fff]

[    0= .457754] pci 0000:00:1f.3: can't claim BAR 4 [io  0x9200-0x923f]: addr= ess conflict with PCI Bus 0000:01 [io  0x9000-0x9fff]



Please see the discussion thread:

 

https://www.spinics.net/lists/linux-pci/msg133740.html

 

The root of the problem is that OVMF does not take i= nto account the limit register’s granularity (limit) of a bridge,

and programs EPs with overlapping IO ranges in a dif= ferent bus.


Should we fix the issue in the OVMF?

Thanks,

Kallol

--_000_BL3PR02MB7986C82BAE8AB1A00CAC1067FE54ABL3PR02MB7986namp_--