Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1605359rwi; Wed, 19 Oct 2022 12:52:11 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7EDrequKLA1Iwv9bFYgACRQClmePU0gIHffh2JdiUeNbOkK6Tf5bplccyji7zp9ocUx2Bl X-Received: by 2002:a17:90a:d588:b0:202:aa2d:1022 with SMTP id v8-20020a17090ad58800b00202aa2d1022mr47502670pju.31.1666209131042; Wed, 19 Oct 2022 12:52:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1666209131; cv=pass; d=google.com; s=arc-20160816; b=kgtYPlVlXJZnr84gHxF7Pu71wvonhAWyEvCwmpop2i23HaT27I23pXkhhmLAmF7rw0 CnGF0Ft77gaIx49bbCDEBFCj/Cq/DFIE7TQqb4yPPl+nTV2kfcW2tBbjRJpBJEaLgH8j AmePIpl76uadfz9UQY5F2tnPUz6ZfkYbnfpr+YW/tqurirGznzOE8p9xEI8doxcth+YC golAKX4+l91apSCG9iWC6A2trZaVMmJ9csOlYdYIUL2tW6SeJFyVe6YZLoZ+QSvhUQ1N mrfkdm4PqoH4kW7J8gv2fsheQbxuT6juE8xT0/bbEYW7KuGW5kgPLabvb86H0k4L+Raj gBMg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-id:content-language:accept-language:message-id:date :thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=S5XaLNmotdWE3BQbN1yiUY+FhMRz1uWfELTUwuob4xU=; b=JzQbV9atTp+yTSGeifBqA1/mf8ydf+sZG4VbKYSv2RRMy/TBHMDydk2SWxy4BhL5TS T3CtNJxyAbTsEvbAHll6MLNxVrzDPLUjyZtwy6kKQT4spgyQqlNDiRyyvph6Msocog9e t3KolGIRXZx1nTNN1Ao3OxJscTipxnNFGlGFu1f+TQhf5tFL+lkMmJvcq0u2MAroo/kF ynEY1ECD6PdPid8EVtMWRT8n9Div0mqb3uc0IwudY+v2p0yY/EEV/mejaS/E8ovjkOZd IDP5HaU5qrTkEggOBFQfDOn01wpKwC5I64IxBovyFIH3BllnRFk88GxdAyeQ1WjHqxxS XOWg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@live.com header.s=selector1 header.b=AB+DvV5t; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=live.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lw18-20020a17090b181200b00205cc2ec8a6si945123pjb.136.2022.10.19.12.51.48; Wed, 19 Oct 2022 12:52:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@live.com header.s=selector1 header.b=AB+DvV5t; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=live.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230293AbiJST0M (ORCPT + 99 others); Wed, 19 Oct 2022 15:26:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230111AbiJST0K (ORCPT ); Wed, 19 Oct 2022 15:26:10 -0400 Received: from IND01-MAX-obe.outbound.protection.outlook.com (mail-maxind01olkn2034.outbound.protection.outlook.com [40.92.102.34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79277181DB9; Wed, 19 Oct 2022 12:26:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=C7hkAcFOwTh0NVpiZ+ZzYc68T0IfRiOaBtZHHk6Gdi2PpTbmFZtRIcHMy4698zZYCENCc9YlcaGTIzq1eCkfVat/MCoQomq59NXuQulbQw0cxlTTYV9xGMmDelPx9m9osOWZTZ5FF9NvFC4ldmVap/3OU+yPapL7S7jQytydBQK0qV5dxdUiKCxpSp05LvTEMxCc/kZs3FUIyOsieNOQyvY7J904c5jWpPzt4ym+GMDbHvoWXymNShP8R2KpeCyhE2Lw6E/MQ08CGiGS5R0IQvKYuibZNR6RTeHve/kMfpYVO1e1h5p2+yhSftK8rAM2gJ5toQj+bNxsqAk06ZKFYw== 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=S5XaLNmotdWE3BQbN1yiUY+FhMRz1uWfELTUwuob4xU=; b=a+aRYNJTEcsAXIQU24xvdZX5m24kBFBjPIO0PJ6hyxBhwbVmW5fyzO4Xo8w6rfRJJNdkVe85385pjdkPbboKR6fhpNXPyKjHsOJe07PYDfudrx0aXQ94kco1SFiBEjgzKXN469H3cusoDgxxVWona3i2kvbx4ujzjIM+y7V8U3HD74xZmfKpNOE+PlEdXMTkiCotJIwYaYvGl81zATiY+1HEoEypG3kNzG7z4g2rBH3W9f7oSs6qsnpvcwHgr38wz4oCVEuY4o1GzPOQ30kudUBvEPW81T5BAoyPpuAa45//OjoOji3bfyCHaIY/jby+7Q3De7AqXLqwv4ydtXbT/A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=S5XaLNmotdWE3BQbN1yiUY+FhMRz1uWfELTUwuob4xU=; b=AB+DvV5tpyfsafhTXALS6hrZ6Vx7PEf2th1IOgYbbPhOT2ksX92gaI6CpHWk5yosKSaPIkB7jUX7KjZfRMy69QxkkpyO45oADdi0slFfCOxY07hmB5RZ/Ekcd1nGLohY8YR3coOGVeE7Un1gMAdt8lT7gLXxIBnX3PbZYI0dCCBdi5t6CJrZcXkeepu9VkcCMDTqVt3gLmOmEjUqiddnt0Vg45HN2R3LXir1lQuFysmxXOfECLwLJTRsA1LcP7s7dGrn6BOOcoONEsYjthscoWusazVIERR41z1B8TYmfxXpsFQTGbuXqmpvNNTZWQNrkXYhgWSYTSzvjjO7VS0bRg== Received: from BM1PR01MB0931.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:2::9) by PN3PR01MB7160.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c01:af::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.35; Wed, 19 Oct 2022 19:26:05 +0000 Received: from BM1PR01MB0931.INDPRD01.PROD.OUTLOOK.COM ([fe80::3dc1:f6bc:49e4:b294]) by BM1PR01MB0931.INDPRD01.PROD.OUTLOOK.COM ([fe80::3dc1:f6bc:49e4:b294%9]) with mapi id 15.20.5723.034; Wed, 19 Oct 2022 19:26:04 +0000 From: Aditya Garg To: "matthew.garrett@nebula.com" , "jk@ozlabs.org" , "ardb@kernel.org" , "linux-efi@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: Orlando Chamberlain Subject: [REGRESSION] Failure to write the NVRAM variables starting from kernel 6.0 on T2 Macs Thread-Topic: [REGRESSION] Failure to write the NVRAM variables starting from kernel 6.0 on T2 Macs Thread-Index: AQHY4/Ch2dExxucnNUS1nzrohEnCsQ== Date: Wed, 19 Oct 2022 19:26:04 +0000 Message-ID: <23DC077F-69DF-402C-A940-2E7EEABF2D97@live.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [IeW83puGjwqH0moJ/dJYwgvCCoNn+s3k] x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BM1PR01MB0931:EE_|PN3PR01MB7160:EE_ x-ms-office365-filtering-correlation-id: 3ebcca6b-491d-4a5f-39b0-08dab207c3d9 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: W0eV115S/p6QYCeeFwtxoUh9dIoHuouIF+xBGJHAdlaiUFgQcvoprGkyHrrQ24RDdAFNiFKyezFc7CY79J5v2surYyiG8DErNrPn8v6azQy1meR5PBqeJLpnvr+VwUxa5cGaQXvJjRlFZ+DVAMcwiWrgTKA/xKdeoITacmmhkkSJxCvcLtR3OsH2Q8K+XKzamNcp4fm/MYgsIyS62EUwyD1JVZcowYefSGV0c4VzgzQH/F2VT2kgYARZqqQkH61iVsVuSBaBYW9eifpBTLyZFMcM4hDSlotdgOOqc8lbS1UjIZydGuUUz/+TniiBMJkba8PbAE3GZoliE8ietzo49ajhSTKZIF+0pmHxdRRj54YkISgNTLuKpEZ8EYpIR8zx/Iu1V9DrKpl1ccNFwRHAjfrXI7BOjDMxF8tqvax1XScka2ztf1Xu6iOxMeT2izV0Vq6xZs/GVAqHeTEMyIjOn8mSLKKVxUthwNQz0Fro5uY/qaCkvFIjhVQeGreOie2cjOnOdqjV3Wy2j/d2lhRsepXldltbD09vbbu3tpAScrJdFhowySWbvBpYWBvbkPVk+1qYIQLwyRNjAaMm7R4BCfP+FXjOplnePMnMsotUXCTb7nR7sImLSEU6qRp2MZcl x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?juuMy6AZ6J+KrexlUddQpPFFsk/9CnzETNhrGGr1+BRBg25DDPdRwFp3UoF/?= =?us-ascii?Q?CiWT43Fpm7S1VmvG1LEM+OzUp6tnJWPW1K+FTOxdhp8zDsRT/hGl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FVs6hrcvak8zDDhwGdc6LeW427PUwZs0Vm?= =?us-ascii?Q?IXS6yr/gqRh/PYHSEGotHCe6mEhm7unx9feY0jT/kuMjhGv2+9GRkr7soF6z?= =?us-ascii?Q?Mg1zVWFB4KzMRHWVMF1B7IY1Izr8q6x3Fwvn7arfHK3U3+tZ2+/AkIMgFLoy?= =?us-ascii?Q?eIK5cBgPR6nILunv1XzzO6snwwArX/nh2rvY15VLpMLFkubjL9r51kCJODIa?= =?us-ascii?Q?tTEb8FLAfvuN7pQDtu16pzV/mrSLkNj9rtHgX9VypXJxN/icajY3vAv3HI2G?= =?us-ascii?Q?iYxSacdzGvxdSf9scKwIEy6yiMWzTiuSUaD/I6tcfA=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-42ed3.templateTenant X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BM1PR01MB0931.INDPRD01.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 3ebcca6b-491d-4a5f-39b0-08dab207c3d9 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Oct 2022 19:26:04.6342 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PN3PR01MB7160 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Starting from linux kernel 6.0, the ability to write to the NVRAM has been = lost on T2 Macs. This has been observed especially during installation of boot loaders like = GRUB, causing errors as shown :- Installing for x86_64-efi platform. grub-install: warning: Cannot set EFI variable Boot0001. grub-install: warning: efivarfs_set_variable: writing to fd 7 failed: Inval= id argument. grub-install: warning: _efi_set_variable_mode: ops->set_variable() failed: = Invalid argument. grub-install: error: failed to register the EFI boot entry: Invalid argumen= t. I couldn't find any relevant error in journalctl though, but I still am pos= ting my journalctl just in case I missed any error. https://gist.github.com/AdityaGarg8/da7a9a2c891f5b2f68f71dc0d0e77f9a Regards Aditya=