From nobody Mon May 6 06:44:05 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=reject dis=none) header.from=hp.com ARC-Seal: i=1; a=rsa-sha256; t=1599809123; cv=none; d=zohomail.com; s=zohoarc; b=SkCJYf3QAWXijC276w9wO7lC1ZU1j/A6u1tkvxztejbjRgwjLeGk9TTmV1fCCowW9xxb8TbD+0sqEV4TOuUEIal2Pgg0jNk5D+2l8nT6NKymPcVif3YxPfW5Go+Va1x1oR+2+RZAO6U57swCmSKU99oJ0VrNF/YBTYb5b5rVgQo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1599809123; h=Content-Type:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=Hs3ydqFsagqFJ+7NUNfymMc/6ohNVUuwi4/7FnB5yNQ=; b=NCVRT/3u4oDVZTQZRiuGqZ49roGhG4D92VJ20+BXGe3fWPeF0or4DwIvkzcAWS3SnNfnEa+Vq5lepa/Q0dBZntUQrhwa6SoZDZQRbqeJqO+IVhG7toH/g5h4uMUvuay7gTCyKeWrbeXdHgpuZue/P/1vdmojHBAqit3zzvZ7v2c= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=reject dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1599809123759122.37963996327733; Fri, 11 Sep 2020 00:25:23 -0700 (PDT) Received: from localhost ([::1]:35110 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kGdQw-0003Nu-3C for importer@patchew.org; Fri, 11 Sep 2020 03:25:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40724) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kGY9U-00030S-1V for qemu-devel@nongnu.org; Thu, 10 Sep 2020 21:47:00 -0400 Received: from us-smtp-delivery-162.mimecast.com ([63.128.21.162]:46558) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1kGY9R-0002wu-Ne for qemu-devel@nongnu.org; Thu, 10 Sep 2020 21:46:59 -0400 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2169.outbound.protection.outlook.com [104.47.58.169]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-470-7eMTf-niPCK6kEd4ZWCgGw-1; Thu, 10 Sep 2020 21:45:38 -0400 Received: from CS1PR8401MB0327.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:7507::9) by CS1PR8401MB0485.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:750a::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3370.16; Fri, 11 Sep 2020 01:45:36 +0000 Received: from CS1PR8401MB0327.NAMPRD84.PROD.OUTLOOK.COM ([fe80::40df:1118:3bef:736c]) by CS1PR8401MB0327.NAMPRD84.PROD.OUTLOOK.COM ([fe80::40df:1118:3bef:736c%12]) with mapi id 15.20.3370.016; Fri, 11 Sep 2020 01:45:36 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hp.com; s=mimecast20180716; t=1599788816; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type; bh=Hs3ydqFsagqFJ+7NUNfymMc/6ohNVUuwi4/7FnB5yNQ=; b=Rm6Cb/lYt8ZHVn6opEOd7LbAO4znqqadhVm9PK+vBsEF2Eou+N4eBPjVgEDwuxDCesJA/x Q5R2JM8I5abLUAGU2eMEdfNAwyCQtoNrtZ6ucCv8XnxzhNjs4HNtKKkAyRXskLZ3+2V/Pk hQsaa3hdN7QEulqIssk3BefZnSyzF3k= X-MC-Unique: 7eMTf-niPCK6kEd4ZWCgGw-1 From: "McMillan, Erich" To: "qemu-devel@nongnu.org" CC: "mst@redhat.com" , "marcel.apfelbaum@gmail.com" , "qemu-trivial@nongnu.org" Subject: PATCH: Increase System Firmware Max Size Thread-Topic: PATCH: Increase System Firmware Max Size Thread-Index: AQHWh9wbvH3PA15ju0WtYVYwRPIQ7g== Date: Fri, 11 Sep 2020 01:45:36 +0000 Message-ID: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [76.199.17.212] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: fbf460bd-9506-4529-ba02-08d855f4615f x-ms-traffictypediagnostic: CS1PR8401MB0485: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: E5BSQ1FPwbjTkw1E/ol4rskbcOon4GoHT+r1FkggJNvZNxzd0s4ObC9YvSK24fO9IjEN2rQIpvrz7b1VseHM3BVEhCNz1newNt3GULqGOVJN7S15L6GUgsaVXZ3F1qARcDQXl6sZ3zWVPHtf9fFmaeF9zldVizdXUv6JOxTXwYFQSNA2pUBThYDYjRWqVtYPv7A8Gio9GquGDQ+uaq/yP8I/FsOOByyZWTgsSArk8RUqYa2CxS7wjbDiLaCNBq1IwflDK9bJLE8/znRT/atrcoozaZVMD9g5PBBQuuoMhPtaVpisb+nvGxSRHeqBTKcCT6XqpYFt7DBVyy+tKQF91g== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CS1PR8401MB0327.NAMPRD84.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(366004)(376002)(136003)(39860400002)(396003)(346002)(19627405001)(52536014)(8676002)(26005)(8936002)(86362001)(83380400001)(5660300002)(91956017)(76116006)(66946007)(4744005)(71200400001)(66446008)(4326008)(66556008)(64756008)(66476007)(316002)(6916009)(54906003)(2906002)(33656002)(478600001)(6506007)(186003)(9686003)(7696005)(55016002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: 7yJuiamxNlvZ7Vh/ItH0SSjVEA727k7LZiDgn6KpJxpkgLsV/eTH5+iuhbTws/zifUylB3yWGNjLBRIb4rowKj6WXR7gSfUepbB+87ghwJhPwLEE5aGVLr5tzWllO4Dr/osdOtk1edjur0zPBbg5z1of7qG2B4yQKvhBLRLb5OujzOj4WD1Jte8TM+q3USmXzGeweO/uTHptir8utJu+qFn5CMC7pgpo5OkoX33A9U8fKM3PHAOZgN/NcA/TUQ4rEBf8oF/q0B4FTValYSJjG5pKu2KSW36quQrDidPRr5yABdqfFeuch6JLhCDLGu9tmpK6LGTDbg2yDTFUQ4prz9ooVLQeW8gkKzeONlUUKZIrmgvyumWLKO5jvPVtsxY/UUEGqrzx7fYHCHohJAQZywA8J1vCiJ+Eo9uA7HwI/t/eVKUhhkxkdDyYm609bidARPSffADRW6HCq8LY8xjzzBt0Lvm8a8wVutqxFa+Fs7gpM0vbtNRJn6GVjR2AMddDHWOvJJKQRZA1omklvM+JiXyYbTBlvZd2bIMlp9fUSCNj93KSyqT5Cy6vp6U5Fwprs3q5ElTfH/T6ZUf7YqU04ku7kInaR9BG5tLc0YXS0M6z2yqqkMyuVRp7g6yucDawJP68seu5oG+sFzzNIZOFew== x-ms-exchange-transport-forked: True MIME-Version: 1.0 X-OriginatorOrg: hp.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CS1PR8401MB0327.NAMPRD84.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: fbf460bd-9506-4529-ba02-08d855f4615f X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Sep 2020 01:45:36.5420 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: ca7981a2-785a-463d-b82a-3db87dfc3ce6 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: OYz5GAIYKtniDtHU7An89J1srOzd70jTlbj9uenLEe0xfO2VaZZ8z/9xRsD07LZl1D+I/pJmCK0QVL4ssRHRzg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CS1PR8401MB0485 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA62A171 smtp.mailfrom=erich.mcmillan@hp.com X-Mimecast-Spam-Score: 0.003 X-Mimecast-Originator: hp.com Content-Type: multipart/alternative; boundary="_000_CS1PR8401MB0327EF9D532330BA44257AFCF3240CS1PR8401MB0327_" Content-Language: en-US Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=63.128.21.162; envelope-from=erich.mcmillan@hp.com; helo=us-smtp-delivery-162.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/10 21:45:39 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 11 Sep 2020 03:24:38 -0400 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @hp.com) --_000_CS1PR8401MB0327EF9D532330BA44257AFCF3240CS1PR8401MB0327_ Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Hi all, (this is my first Qemu patch submission, please let me know if my formattin= g/content needs to be fixed). We have a need for increased firmware size, currently we are building Qemu = with the following change to test our Uefi Firmware and it works well for u= s. Hope that this change can be made to open source. Thank you. ------- Increase allowed system firmware size to 16M per comment suggesting up to 1= 8M is permissible. Signed-off-by: Erich McMillan diff --git a/hw/i386/pc_sysfw.c b/hw/i386/pc_sysfw.c index b8d8ef59eb17c6ace8194fc69c3d27809becfbc0..f6f7cd744d0690cee0355fbd19f= fdcdb71ea75ca 100644 --- a/hw/i386/pc_sysfw.c +++ b/hw/i386/pc_sysfw.c @@ -46,7 +46,7 @@ * only 18MB-4KB below 4G. For now, restrict the cumulative mapping to 8MB= in * size. */ -#define FLASH_SIZE_LIMIT (8 * MiB) +#define FLASH_SIZE_LIMIT (16 * MiB) #define FLASH_SECTOR_SIZE 4096 ------- --_000_CS1PR8401MB0327EF9D532330BA44257AFCF3240CS1PR8401MB0327_ Content-Type: text/html; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable
Hi all,

(this is my first Qemu patch submission, please let me know if my formattin= g/content needs to be fixed).
We have a need for increased firmware size, currently we are building Qemu = with the following change to test our Uefi Firmware and it works well for u= s. Hope that this change can be made to open source. Thank you.
-------
Increase allowed system firmware size to 16M per comment suggesting up to 1= 8M is permissible.

 Signed-off-by: Erich McMillan <erich.mcmillan@hp.com>

diff --git a/hw/i386/pc_sysfw.c b/hw/i386/pc_sysfw.c
index b8d8ef59eb17c6ace8194fc69c3d27809becfbc0..f6f7cd744d0690cee0355f= bd19ffdcdb71ea75ca 100644
--- a/hw/i386/pc_sysfw.c
+++ b/hw/i386/pc_sysfw.c
@@ -46,7 +46,7 @@
  * only 18MB-4KB below 4G. For now, restrict the cumulative mapp= ing to 8MB in
  * size.
  */
-#define FLASH_SIZE_LIMIT (8 * MiB)
+#define FLASH_SIZE_LIMIT (16 * MiB)
 
 #define FLASH_SECTOR_SIZE 4096
-------
 
--_000_CS1PR8401MB0327EF9D532330BA44257AFCF3240CS1PR8401MB0327_--