From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id D0673AC0D37 for ; Wed, 8 Nov 2023 06:24:28 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=xrkq81c96J88zPm/U4YxGYQDp1/Fszl3aq5HTXcVOIM=; c=relaxed/simple; d=groups.io; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:From:To:CC:Subject:Thread-Topic:Thread-Index:Date:Message-ID:References:In-Reply-To:Accept-Language:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type:Content-Transfer-Encoding; s=20140610; t=1699424667; v=1; b=WRzlyl+4Wa8fOANLOJQwJMnPeqZ38qRZJ6LCO+iMNHznrZbvfrjeuOA4Vx6vLiCYGwbtXxpx wi87n9Ombxzizd0+AiA5cXadDpWt+YMkmIiwp3GZnxPBajeDXQgloUaclvwMAwHO5ItFKBnzdnw 11gEZ0xDgLLDLgZ54wAnAiD8= X-Received: by 127.0.0.2 with SMTP id ePaHYY7687511xLxaKz1X4JC; Tue, 07 Nov 2023 22:24:27 -0800 X-Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) by mx.groups.io with SMTP id smtpd.web11.8317.1699424666481593697 for ; Tue, 07 Nov 2023 22:24:26 -0800 X-IronPort-AV: E=McAfee;i="6600,9927,10887"; a="420806039" X-IronPort-AV: E=Sophos;i="6.03,285,1694761200"; d="scan'208";a="420806039" X-Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Nov 2023 22:24:25 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10887"; a="756448850" X-IronPort-AV: E=Sophos;i="6.03,285,1694761200"; d="scan'208";a="756448850" X-Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by orsmga007.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 07 Nov 2023 22:24:25 -0800 X-Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Tue, 7 Nov 2023 22:24:24 -0800 X-Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34 via Frontend Transport; Tue, 7 Nov 2023 22:24:24 -0800 X-Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.100) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.34; Tue, 7 Nov 2023 22:24:24 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mjaoQurfLvdfUw7jdrPIlnEnFNb76s6phmeeuld6/XaztOlAzU1eYDdg7wAhUiQoxddXUzChKil3fXp8mYcGKvtBP299HbEzBrtDTMXKfNWPnGJgFJikovUCxWJkOazv4pWazNoQzarOtAyk4AIpeQGSk1NIgnP9mEZBWJh5k4ZXGBj+GWp2/IxLYlvKLqG3MWYkhDE/tOWIFFo1fQuR4FW5BN66Z+Nzb0zAR1wmHFPwgbLLHRw8eX9NSKEfuC6jKtzK5Tm8J/GJH2PtiMEZyfsxSj57ivDcJ/3gje7gl5voyk/vXN3ZthpvoyS3wG7/WMC+iiSPT6hvtyrhuI/LZw== 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=BeUP0rp+SzkN8/ijFoESEsKOAIIjrOZYfunAs9yP9Ss=; b=HL+/sewEmnXYTcXOqsqrkyafTS/RMpQdxoLWtISElQAyIvumxCRqbDlpOf9Ldrvky2vNhwST3ZGhvW63fh+tuwcSy9tQ6S9GLiSZXSQbzFXnknDHmwYQYWYje2GJ0ngybj4jg8ddTvF4T4sLMlmI1oQmOnF5Ux21CDjHeKqiplg7AaHECwlvDVhffzbsI0kYvnhKcFapbgX8s2U37Ogf1FtPKVcKWmHCNscLcKdEMqgBNM4AdbosP7kDcTBPE6ZMsDEQCGOuDKVsI8c+75nUf9fu0gVnfp5BNc7fy8uhPaH+LjnPtCP1hD4VRBSEhQ8YsDVb6r+PnvMalNhHb5PAdw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none X-Received: from IA0PR11MB7185.namprd11.prod.outlook.com (2603:10b6:208:432::20) by SJ2PR11MB7715.namprd11.prod.outlook.com (2603:10b6:a03:4f4::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.30; Wed, 8 Nov 2023 06:24:17 +0000 X-Received: from IA0PR11MB7185.namprd11.prod.outlook.com ([fe80::b6a:cf27:4d2d:1df4]) by IA0PR11MB7185.namprd11.prod.outlook.com ([fe80::b6a:cf27:4d2d:1df4%4]) with mapi id 15.20.6954.028; Wed, 8 Nov 2023 06:24:16 +0000 From: "Vivek Kasireddy" To: Gerd Hoffmann CC: "devel@edk2.groups.io" , "lersek@redhat.com" , Ard Biesheuvel , "Kim, Dongwon" Subject: Re: [edk2-devel] [PATCH v1] OvmfPkg/PlatformInitLib: Don't override user specified PciMmio64Size Thread-Topic: [edk2-devel] [PATCH v1] OvmfPkg/PlatformInitLib: Don't override user specified PciMmio64Size Thread-Index: AQHaDhTyamHA8/DKPEiS5TKfxkikb7Bok14AgAAOjACABJASgIAAqinQgADRewCAAQgD8A== Date: Wed, 8 Nov 2023 06:24:16 +0000 Message-ID: References: <20231103051519.277323-1-vivek.kasireddy@intel.com> <32d105da-7ccd-9acc-5cea-9a740bcc37f8@redhat.com> <360a4a15-ea24-b59f-d3a0-6ac3d5aef104@redhat.com> <6qjwf75ofb3suruqe4dliujih74nxxpw2xyekxwtjrgzwvwd46@4rygctstz472> In-Reply-To: <6qjwf75ofb3suruqe4dliujih74nxxpw2xyekxwtjrgzwvwd46@4rygctstz472> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: IA0PR11MB7185:EE_|SJ2PR11MB7715:EE_ x-ms-office365-filtering-correlation-id: c9c7048c-d861-4c86-8329-08dbe0235571 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam-message-info: 714TWACvy6/zsIxbL6yzmZyua/kol6yzxjQzyv+oWKW37w1nz7naWwZ0t0jRa2331wZilrGGt8uYR7T2doSBX0rJGYHwffO4Rr/8f/M1FSGr8F0+6Qjm2452Qx6RPyat943ZI5coQzZ9xgJ2iRxxEamkdNT4D2W0p7/yIziLJageCo32QPuKp4usIJPxPMPcI2KmO8L2EQhBKzF4sTyAiDeZCg5dTTBQ84QS71xg/wWLiTMoHW6CM7itk6fd8i5gQqJt21/L9iuyYLHUv73n3eCZHtwhydZQskAq6o6OEpzgvroOZf1/dC16ddu3g5ctNzI1seM3ySwoLRj/yUnBlekabhv6x5SoRLS5D0l4LbfNSrdZ1fIbmxc8cyhGNIisqHiGA2DbP3Ye8AXiTJkGqYjMOTgNVoYrqWHgNscogQRds4Sn3L0ez6inK0lPj6QBEsv8xDJuzUThdVCgiFznEi+uUIWrSoyRHG0mxUj+c/kq32fAUhLDJSubQC+L6yA6Py1BL7Z/VCzsRibGz7dW9rMw8skJHAcYWAJBskVx0JEtornkhuf+7ku2VpHJZsPiKIW/eGbpthO9LY5vf7fWicCGzbKacXBZGzaJw8yMysdQtHom2nFQd4eIH4kctG3b x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?9iltzOcCmv+zEJ9XTNdNrIRSy3OrlhgfINR9OSGpIxxfRXZCZvJ9dBasrHiR?= =?us-ascii?Q?h+t6P7rTXTUrA52bzl5juzsnvIzGStbzvceot83grVqVX9RFC87X6snWX8Je?= =?us-ascii?Q?385oYu1lPTM8qNobPRlR7VQkzQwENniBNYUaOiKDJ5wkcwGAgqdDf5jr8obd?= =?us-ascii?Q?6VNnc9FbF7/HJzkq11DN5ua4WZjRijy7/M7sWPs2RFEyGGAUxlHT9qPGQ+EO?= =?us-ascii?Q?HFv+80uux9P2SgOx7eK4KtGtUGAN327b/zsaVwdFb9LpMukA5rLnUAQjqpNp?= =?us-ascii?Q?XnKJrtKieAPM8jhmR3m5xFOJ2ZWJKnYQfWuK3N4oJw9efcxoJ5CHm+0IBSrX?= =?us-ascii?Q?y1/Qh4kHD8Yb2Kwwxwz3/+5bT9aE20Ky1BGTZBCA9o+ukTTVlwdhjDSK9EIA?= =?us-ascii?Q?s8sPSpm54RHf41wHenpYfJPffiWevxRUEhr7KOCIK/Vv19gbmmnxUfOXFG6M?= =?us-ascii?Q?ZFnrnLRcigef6Fc8pt01q9fJMopB6iPEN3adZRqNeyBasVYTNpGs8lDDMupB?= =?us-ascii?Q?4MMeoIeQi2X3UGVh3mjhukI15n3dhVCAhgMPMKnTNvuCmLZ+X4P2XuFHheJx?= =?us-ascii?Q?OhSWadZ7hajnt5DIpjOKZTvKp/+y2JoZVe0ACdtZ0c1lZsnsmaCP594xf+4y?= =?us-ascii?Q?iq2d+0KBs79piAT8mBSSYKzZBPwyYvTyfufO1u0519wbTMu90hs8rMhOaX8R?= =?us-ascii?Q?Bi9KRVypNJSTIrBzRgA8yl4bARHijUD+lbKfJ0hI3HgKv0veKBsWBgDidaeC?= =?us-ascii?Q?K52PzQo8NpJljj5hHCLEuABH5pvfyZv0HRYiObom905rBnmur+yalMzE8/LF?= =?us-ascii?Q?Pr3NsNhbQu5y1j6QV43NDaAOs3Okqc9OH0vpQfPP7qM8BjHiD7ehBhXEezrD?= =?us-ascii?Q?vFxj9k1UDmj0EOyjkUBeHDIj/3Bm0xFYZxEqDSZsYbYV6Zv1j+fWUVrkcXsZ?= =?us-ascii?Q?WJB0xAD+JCbMe7hC5ot1OTWtZ1SC5dOPDFJfvwWBoV10Ic9Rucnnrq8IkO6H?= =?us-ascii?Q?sH8Iql/MUB0rj1H4H936cCUfca159vHq5Kq9x2TLBhMJzShKwJ999arw2Zcy?= =?us-ascii?Q?cefVzlbuNykgbK20s5j6wRxIiV0jQSwX84nQAxBXWaXQu5D+bMiSjZQxrsWH?= =?us-ascii?Q?ly3XFXsLDIopOr5LOfkE056chmVdXsTRbuvJwsqHPM4xFHYcjQ1YZWV8jEvZ?= =?us-ascii?Q?bTkZXK2RsQz75iw/pXBFZowWatJIIAXT8gW0IOLBOAFyznLWyeQcT3wy6wwE?= =?us-ascii?Q?Kc8A7lHjQvWk6JtUNehI4ctNyxDxZdNniW0i1kPVotaV4KdAhWydGB2ONY1z?= =?us-ascii?Q?of0lhyXzxdsx41lhCqtl6OLjT/hICcTUtgULfV0I6RXtlblWjFzpNnhPQJzL?= =?us-ascii?Q?JeW3P/aOR4LOaaw6vwPsJxltynFPpEK647ueUZNvgSiyIWxg6JMep4oEPtpJ?= =?us-ascii?Q?llxZJ1tQYEJfjq39S/YGWucHFwa30HT3akEgzC01DihBlstzoX01LqgqKgyD?= =?us-ascii?Q?gnOxqml0DGPWS7vGPXlVfbT/AsscKa+wN5Ty73I3wXO4vicvdSNRgCFJeors?= =?us-ascii?Q?VzdQR4h7MExHL9m86cDhzUmIQzwZerEicTrKvOGw?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: IA0PR11MB7185.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c9c7048c-d861-4c86-8329-08dbe0235571 X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Nov 2023 06:24:16.4653 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: O270M+NoyBBzr5oK3MDcNAaJjNH4KasNhc+2voHtpjGmtAUbKMhkntn9nEiqAluuQ8e1cfiSCLn8xgDVUICccNP6HUC/PE2bBKm0lNchulY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR11MB7715 X-OriginatorOrg: intel.com Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,vivek.kasireddy@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: zX8IEsQ6b5dwXgZ7FUtbNI9zx7686176AA= Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=WRzlyl+4; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}"); dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io Hi Gerd, >=20 > > > Strictly speaking you don't care that much about the size of the mmio > > > window, but where it gets placed. Moving it to the end of the vcpu > > > address space is what breaks your use case in case the iommu address > > > space happens to be too small for that. > > Right, the crux of the problem is indeed the placement of the window > > and not the size. Given this, do you see any problem if the mmio window > > were to be placed at the lower end of the address space? >=20 > That might still not work because OVMF scales the window size with the > address space. >=20 > > Or, do you think > > ensuring that PhysMemAddressWidth =3D > > automatically via Qemu/OVMF like Laszlo suggested is a better solution > > for this problem? >=20 > The best temporary stop gap IMHO is using >=20 > -cpu host-phys-bits=3Don,host-phys-bits-limit=3D >=20 > Side note: The qemu master branch has a precompiled seabios version > which also does iommu window scaling and will need the same treatment. >=20 > How to solve that long-term should be discussed on the qemu-devel list. Ok, I'll look into how this problem can be solved in Qemu and will further discuss about this issue on qemu-devel. Thanks, Vivek >=20 > take care, > Gerd -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#110900): https://edk2.groups.io/g/devel/message/110900 Mute This Topic: https://groups.io/mt/102359124/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-