From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mx.groups.io with SMTP id smtpd.web08.22874.1639236993934993302 for ; Sat, 11 Dec 2021 07:36:34 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="signature has expired" header.i=@intel.com header.s=intel header.b=HubNTFln; spf=pass (domain: intel.com, ip: 192.55.52.151, mailfrom: jiewen.yao@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1639236993; x=1670772993; h=from:to:subject:date:message-id:references:in-reply-to: content-transfer-encoding:mime-version; bh=SFFbRmvnHGqvuxKevIsCW3N2i6BBy+ouMBn9hJ+SfUs=; b=HubNTFlnhIrM9bVRGhOZmiO+gpUm8TscT3atrHx7f6iVMXDMMdDcNWkf SW+YWCkjIPb+9rU8uXyubfQyZ6Wn+a2obQspoxAALlZMEeGt6XfB/m8tk 0eY08k5SB3aEdJY4+LKvQb4OVRn0xsh7UfbWBzix3IxOVcq/JmjkHZZKg v72Nh6m4b6/FCOCAfG3cTWZjDFBcSHNWhR6EZ/1cUgzPGlPcY0GurN/Tb f4UucZtZ9aK8jm5Ea/HIZcf4YUJFY7iKxJGhmrVhT+fyJs0/rGx62FzU5 oHltSePilK1XBbrL38l/kbpz2oQaIHN+3NxI0D5Z+PVSCrh7SeXh9ySvO Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10195"; a="219227141" X-IronPort-AV: E=Sophos;i="5.88,198,1635231600"; d="scan'208";a="219227141" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Dec 2021 07:36:32 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,198,1635231600"; d="scan'208";a="464090163" Received: from fmsmsx605.amr.corp.intel.com ([10.18.126.85]) by orsmga006.jf.intel.com with ESMTP; 11 Dec 2021 07:36:32 -0800 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx605.amr.corp.intel.com (10.18.126.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Sat, 11 Dec 2021 07:36:31 -0800 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20 via Frontend Transport; Sat, 11 Dec 2021 07:36:31 -0800 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.169) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.20; Sat, 11 Dec 2021 07:36:31 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DaGCtxit98GUs3w8mA7+dh7afvmAqYi9QFpaj9Vhy2NFFRc7JRdP8R/jZuD/UPDDJkb9PRhyrrE7KWDqXzjDSy1ADeOARwzW/cwClDzR45Ld2MXkycJjhmX8j9KrkCDakvMxK34SHFvekhQw2C+bmyTv8zXpSQ6vccmd8DxcnM1jsOelD5jT1ezlFljwsUiS48YQyIysZFSP+UnxebAECoESMa1RIzWT2iSzX+bBfdJoVwAErF9FDHy4J116z2YHl4eDglWsdP41dIaV1/ljzr3078FDrlQwDh6GlcyXjT3eC6WyZ0wsELjCZzhWDVTF5oNesttiF6mYu+/jA7AxrQ== 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=SFFbRmvnHGqvuxKevIsCW3N2i6BBy+ouMBn9hJ+SfUs=; b=WNtivod36615tQbwGSMG/FZbUknBhDQwnnpQ3IBAf3p8n0k/1zzRj3MeFIjDQ/isEyBXmgkdaw7TMzhdX1QlTED3elAc5oOSwz/yz/zq7R1+piyW+pOdl5L/27HET/fpA5JDrXZg+hmwsJfmpcdstHODQ3/wHYh3PupDdMfQ6UzWbVN9jXGj7jnWdCGIlQfyeqOHeaDb5JNLOZbHf7tllm9iS9pb3v2XTIDP6vTmcSS/olLsf1Qa/13POqPa2J7XaEF1JQcZxE2XuHPob+E5b5hPFvEX3RAjLxF1B/TwdvGoprz0oBJSJqu/96eAhjSJpFOtvypuV/bzuYBSmuuIQw== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SFFbRmvnHGqvuxKevIsCW3N2i6BBy+ouMBn9hJ+SfUs=; b=th4/EaFBRQrfE68HRsaK2x/WmJH/tcaE9dWrpTJz39Cy7/js/DJoKFR2HYVttN+7Mov7+d38UG6Qe6/gnk+Lv4Mcm75l8Cf1662ZpYWi57rR6WQgMVZ0b3eXjsc+hQOBANik+omOScQXLfMxrJLVv38KYvMg85wg0JU3iEsq+r8= Received: from MW4PR11MB5872.namprd11.prod.outlook.com (2603:10b6:303:169::14) by MWHPR11MB1824.namprd11.prod.outlook.com (2603:10b6:300:110::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4778.16; Sat, 11 Dec 2021 15:36:29 +0000 Received: from MW4PR11MB5872.namprd11.prod.outlook.com ([fe80::447f:7fbc:72f5:fbae]) by MW4PR11MB5872.namprd11.prod.outlook.com ([fe80::447f:7fbc:72f5:fbae%5]) with mapi id 15.20.4778.012; Sat, 11 Dec 2021 15:36:28 +0000 From: "Yao, Jiewen" To: "devel@edk2.groups.io" , "kraxel@redhat.com" , "lixianglai@loongson.cn" Subject: Re: [edk2-devel] [PATCH] OvmfPkg-EmuVariableFvbRuntimeDxe: Support Access To Memory Above 4G Thread-Topic: [edk2-devel] [PATCH] OvmfPkg-EmuVariableFvbRuntimeDxe: Support Access To Memory Above 4G Thread-Index: AQHX6puAOit9zcnH6USns6PwKmgUZqwtdF3w Date: Sat, 11 Dec 2021 15:36:28 +0000 Message-ID: References: <13a7bcbac5bbc7f9cd6a26d6d8ac4eb30f059ec2.1638759596.git.lixianglai@loongson.cn> <20211206121859.vqw2jfpxdagi5hvw@sirius.home.kraxel.org> In-Reply-To: <20211206121859.vqw2jfpxdagi5hvw@sirius.home.kraxel.org> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.6.200.16 dlp-product: dlpe-windows dlp-reaction: no-action authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 18e6556d-fc00-4d7a-6ddf-08d9bcbbfffd x-ms-traffictypediagnostic: MWHPR11MB1824:EE_ x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6108; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ZuyGqIPKSkTCA1QCMdAoIsF2HyKdi462JsSA0YG20lGRZEmZYXi1jrEVVE7YnrDDFpJG/gyEPaafASr92yPdP1boNGGLpNqbET0zEDnrjErdq5zWp0wbFNQGmC/l6P7loNpTaxS8j3WmnIQRwTkZlI9XhhM6XB933qnIqT1JwVwhNCBV82OoUqT/aTQYIONkFupWf8xrZA9B8vMQdxkMAirtPAUR0lnwjBO4CA81MZO1E9ibkQ2c95g4Gkv1NG2/jYcqxINvtb0l0Jscn42qjCXr5sfiJ9+abY/cXPjLGvaiQXqSZZ6HUxj9VlGtNcs3MfVx+2kLQcQMDwE+JoHd6JdlkTjJNvr+N3mq6/RIgXztmTbYxGDg/Kn6ZwrjQtd2AqVqpwa364xkxmZoIbVt2fzkv0scVCalTFKhJxtHkfvQv6YPsTme7gn6XUTPaOu+6kM8DxW4ZwI54tejSRbmuZ4+3bnvI7WAqqBSeHANnduZ9oqN04ySCY7t02pgJrwJejBTOW3qbNesoqn0XVZChGr3CjLLurYv/u281t++44aX/a7jnA8jrD7yPubhts0Xb74rttvbD22TFazLiF95Z+Az29imSFuBhqvAMjHlacV/3ishu2f65x78LJJk+ZcIVWVqBOpFOmVrozR4wbxTpqSO5r21FOMEdO4sAvIgufvj2LXf7hscKgt4dhi/AjUERXHC5YtJDPQlHP31+c+jmF/3jLunP5OK2Ovmpz0Vd40fK19P5GqJfdXXtq0Pc624slPos1HHBTGXVBd0VgFbDa/tNfIcWCdD38r52AnY6TnDCB24qE9bTJvrA/ulcVZyie4LunZTyKmmNyjbLOJuNIF9ojS6zt1gB1tsPIs0kLk= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MW4PR11MB5872.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(366004)(86362001)(8676002)(5660300002)(83380400001)(76116006)(82960400001)(9686003)(26005)(186003)(508600001)(8936002)(71200400001)(966005)(55016003)(6506007)(33656002)(110136005)(316002)(2906002)(7696005)(19627235002)(66476007)(38100700002)(66946007)(52536014)(66556008)(64756008)(66446008)(122000001)(38070700005)(53546011)(213903007);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?szRH6J91j0y97URA4D5Aopc6D5g9I9iCSQ2tspo783CE507F7fdYfnTY/gB3?= =?us-ascii?Q?pz4zhnVJ7BjtmAkHapRScuF4n28WwQ504y+r1E/G8gwwI7oJcNyA+ukkO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1PXva7tB6Bte/iJS/LzedQjlG9V/lS3?= =?us-ascii?Q?Hk0Qxpct3ID7rsOZdkbJZCFtXM+fgtKbaJv+hmSYfQXXPhw6EESJ1GhMHbbp?= =?us-ascii?Q?oTHjDBfRa0EX9cjka06OGOar10FAIYbnDLkIYEmg0GvBIaKIIM3iTxLDF8OZ?= =?us-ascii?Q?93NCpqJuOD8SPIzcYpLpE+mjUgmn6nfDr7cb3N5QhIiajv5Js5c4SUYTKuVk?= =?us-ascii?Q?Hhg5nlTdFHITWcShiR6Uow23Gb7ZgBuOUAMgReOW54YWDkU9AvLfiYujaDbA?= =?us-ascii?Q?jph+jO9/J1rHM8lUrs1jIj5mZAU7AdqkKUE0oM512mvIyLg076WA5pgf5aBf?= =?us-ascii?Q?lybbyWo2HIC/QGBjcYKDLdM96CcPUy02EcNITCrMIGMcKvrdYasQiElVKARe?= =?us-ascii?Q?/AQkRO0sRenIgmQVd7T+XXmfizQablPLyHJCRwsrnn0PzEOqY+T3tKE35Q+W?= =?us-ascii?Q?9vuClBS56FIRKI9j4CfQBcD1Wz2HFt0aedHHtvytmNsKuVfR6RYxWM+NFkd7?= =?us-ascii?Q?x0kUYrnGjcfPndZTicgrE3PuQrF5SHYmqI5bUFhJLBgTtT+59fy7NHHRm1z6?= =?us-ascii?Q?4JyQXqHSIpWbdRjy0pxhZoGHgzpTYzf8oRo66T/EyL2R9t4AQj6jKant3OeQ?= =?us-ascii?Q?f5aOv8/GfSbWuxHyPNJVs1s=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MW4PR11MB5872.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 18e6556d-fc00-4d7a-6ddf-08d9bcbbfffd X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Dec 2021 15:36:28.8091 (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: S0U/zZOtoXr4NKucfB5f6X42E9J3rLVmFlUxvPWA+C+T7bYjBE7rqwCfQRFn21s2Vr2fu2k2JCV6PdnpvRIVig== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR11MB1824 Return-Path: jiewen.yao@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Jiewen Yao > -----Original Message----- > From: devel@edk2.groups.io On Behalf Of Gerd > Hoffmann > Sent: Monday, December 6, 2021 8:19 PM > To: devel@edk2.groups.io; lixianglai@loongson.cn > Subject: Re: [edk2-devel] [PATCH] OvmfPkg-EmuVariableFvbRuntimeDxe: > Support Access To Memory Above 4G >=20 > On Mon, Dec 06, 2021 at 12:00:33PM +0800, xianglai wrote: > > In FvbInitialize Function, > > PcdFlashNvStorageVariableBase64 PcdFlashNvStorageFtwWorkingBase > > PcdFlashNvStorageFtwSpareBase will not exceed 0x100000000, > > Due to truncation and variable type limitations. > > That leads to the NV variable cannot be saved to the memory above 4G. > > > > Modify as follows: > > 1.Remove the forced type conversion of UINT32. > > 2.Use UINT64 type variables. > > > > Signed-off-by: xianglai li >=20 > Reviewed-by: Gerd Hoffmann >=20 >=20 >=20 >=20 >=20