{"id":2215488,"url":"http://patchwork.ozlabs.org/api/covers/2215488/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/cover/20260324175913.92858-1-aswinm@qti.qualcomm.com/","project":{"id":18,"url":"http://patchwork.ozlabs.org/api/projects/18/?format=json","name":"U-Boot","link_name":"uboot","list_id":"u-boot.lists.denx.de","list_email":"u-boot@lists.denx.de","web_url":null,"scm_url":null,"webscm_url":null,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20260324175913.92858-1-aswinm@qti.qualcomm.com>","list_archive_url":null,"date":"2026-03-24T17:59:11","name":"[v4,0/2] qcom: EFI PSCI runtime reset handling and config update","submitter":{"id":90811,"url":"http://patchwork.ozlabs.org/api/people/90811/?format=json","name":"Aswin Murugan","email":"aswin.murugan@oss.qualcomm.com"},"mbox":"http://patchwork.ozlabs.org/project/uboot/cover/20260324175913.92858-1-aswinm@qti.qualcomm.com/mbox/","series":[{"id":497324,"url":"http://patchwork.ozlabs.org/api/series/497324/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/list/?series=497324","date":"2026-03-24T17:59:11","name":"qcom: EFI PSCI runtime reset handling and config update","version":4,"mbox":"http://patchwork.ozlabs.org/series/497324/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/covers/2215488/comments/","headers":{"Return-Path":"<u-boot-bounces@lists.denx.de>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256\n header.s=qcppdkim1 header.b=o0upVMYs;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com\n header.a=rsa-sha256 header.s=google header.b=ACi6XHkV;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=85.214.62.61; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)","phobos.denx.de;\n dmarc=none (p=none dis=none) header.from=oss.qualcomm.com","phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de","phobos.denx.de;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=qualcomm.com header.i=@qualcomm.com\n header.b=\"o0upVMYs\";\n\tdkim=pass (2048-bit key;\n unprotected) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com\n header.b=\"ACi6XHkV\";\n\tdkim-atps=neutral","phobos.denx.de; dmarc=none (p=none dis=none)\n header.from=oss.qualcomm.com","phobos.denx.de;\n spf=pass smtp.mailfrom=aswin.murugan@oss.qualcomm.com"],"Received":["from phobos.denx.de (phobos.denx.de [85.214.62.61])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fgHqs3PgYz1y1g\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 25 Mar 2026 04:59:53 +1100 (AEDT)","from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 73DB8838FA;\n\tTue, 24 Mar 2026 18:59:50 +0100 (CET)","by phobos.denx.de (Postfix, from userid 109)\n id 688EB838FA; Tue, 24 Mar 2026 18:59:49 +0100 (CET)","from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com\n [205.220.168.131])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id D3DA880087\n for <u-boot@lists.denx.de>; Tue, 24 Mar 2026 18:59:45 +0100 (CET)","from pps.filterd (m0279863.ppops.net [127.0.0.1])\n by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id\n 62OHSc2f409241\n for <u-boot@lists.denx.de>; Tue, 24 Mar 2026 17:59:44 GMT","from mail-pg1-f200.google.com (mail-pg1-f200.google.com\n [209.85.215.200])\n by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4d3nextpv8-1\n (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT)\n for <u-boot@lists.denx.de>; Tue, 24 Mar 2026 17:59:43 +0000 (GMT)","by mail-pg1-f200.google.com with SMTP id\n 41be03b00d2f7-c7414516609so975855a12.3\n for <u-boot@lists.denx.de>; Tue, 24 Mar 2026 10:59:43 -0700 (PDT)","from hu-aswinm-blr.qualcomm.com\n (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com. [103.229.18.19])\n by smtp.gmail.com with ESMTPSA id\n d2e1a72fcca58-82c212ac8a2sm15503901b3a.17.2026.03.24.10.59.37\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Tue, 24 Mar 2026 10:59:41 -0700 (PDT)"],"X-Spam-Checker-Version":"SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de","X-Spam-Level":"","X-Spam-Status":"No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED,\n RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED,\n SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2","DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h=\n content-transfer-encoding:content-type:date:from:message-id\n :mime-version:subject:to; s=qcppdkim1; bh=/cRcwvBOww6inZ50/AB6gs\n QTaouMEZoE5m8is4Ug1YM=; b=o0upVMYsw5FROM9DpSeqJ5rAPQpuV7kF0I/CQI\n SfkSBooC9KMSqe7Hvwc6Uzgx0omKjDq0PFhWxPPnFxrIhD3Tqm3NOQaSMIlJm4QZ\n VuVn2aAuDKfvR3RzRH7ud20EEuC4dOohbMqO39VQf2Jwh0VLurHtT3Bk4lwVeCO1\n PqTTRSLn4XEdtiM+7eKgt2Uzs6qZsn97uT25TU3gy4+50gk1GV6R675INWeLlt22\n TzIc2E/qbManiJLEFh9krNCbRFOoVnWIhQSMHuNR7ElCsGwCtPA7NnbPuY1AhsgH\n VeqKJjsfJ/tmpTe82cBoA2cGwazwiCQa1YkleWugepjImLGg==","v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=oss.qualcomm.com; s=google; t=1774375183; x=1774979983; darn=lists.denx.de;\n h=content-transfer-encoding:mime-version:message-id:date:subject:to\n :from:from:to:cc:subject:date:message-id:reply-to;\n bh=/cRcwvBOww6inZ50/AB6gsQTaouMEZoE5m8is4Ug1YM=;\n b=ACi6XHkVd2oaA6fUgEkbx8+9FjYZAsqrepYzC2AZjnGu6pk34XHOCdypUhNmlmNjO2\n sYI866NS1xmn33JePS8KhgCP3TMHYPRUbBQHVbebvvaRhi8VhOEEOpr6h3x3BBID4OdL\n CCzr54PxV9DKaMmG0hc+Mi2nrXRccdG36p6aIApro2Y2ffBA25kG1SVQriq8i3CehZF1\n p/xjLfPg3ZKTao/qlC0qdmG7K6NJB8FBJJ3YKIG+KpIYquxyNPN2mIUa/+iqqXkMz7VX\n PWUNPgqkYSNAb/uwOyz9fCn5OM/7lVGbsnmABMEifS6aDNvlZEr7kICKirGqQbHfEOoS\n zs0g=="],"X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1774375183; x=1774979983;\n h=content-transfer-encoding:mime-version:message-id:date:subject:to\n :from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id\n :reply-to;\n bh=/cRcwvBOww6inZ50/AB6gsQTaouMEZoE5m8is4Ug1YM=;\n b=riKukGitkC/YSzVdduxUefozOwDmDDmFzudqrkOKMH30XkyqqSON/jTJdfIyVlx2q4\n fIOyJRhp6rIekDZbSsDQO8yQy1aKrzdjWcWY0LfjLGSmH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05:6a21:6da6:b0:38e:9220:ebbe with SMTP id\n adf61e73a8af0-39c4ab57c1fmr689969637.23.1774375182505;\n Tue, 24 Mar 2026 10:59:42 -0700 (PDT)","by 2002:a05:6a21:6da6:b0:38e:9220:ebbe with SMTP id\n adf61e73a8af0-39c4ab57c1fmr689945637.23.1774375182000;\n Tue, 24 Mar 2026 10:59:42 -0700 (PDT)"],"From":"Aswin Murugan <aswin.murugan@oss.qualcomm.com>","X-Google-Original-From":"Aswin Murugan <aswinm@qti.qualcomm.com>","To":"casey.connolly@linaro.org, neil.armstrong@linaro.org,\n sumit.garg@kernel.org, trini@konsulko.com, xypron.glpk@gmx.de,\n ilias.apalodimas@linaro.org, aswin.murugan@oss.qualcomm.com,\n marek.vasut+renesas@mailbox.org, michal.simek@amd.com,\n sjg@chromium.org, mkorpershoek@kernel.org, jan.kiszka@siemens.com,\n paul.liu@linaro.org, j-humphreys@ti.com, u-boot-qcom@groups.io,\n u-boot@lists.denx.de","Subject":"[PATCH v4 0/2] qcom: EFI PSCI runtime reset handling and config\n update","Date":"Tue, 24 Mar 2026 23:29:11 +0530","Message-Id":"<20260324175913.92858-1-aswinm@qti.qualcomm.com>","X-Mailer":"git-send-email 2.34.1","MIME-Version":"1.0","Content-Type":"text/plain; charset=UTF-8","Content-Transfer-Encoding":"8bit","X-Proofpoint-Spam-Details-Enc":"AW1haW4tMjYwMzI0MDEzOSBTYWx0ZWRfXwxdSfNmMGhcv\n P5Qp/7LnmfsXzO0Uz75eh14GPXm5aG0j1znJcnRHqLw4V1yKDUXhSzC4vy56Z1NNB093u9PPTlM\n VIXtpMFqejdbcyMYoE6b48BdH6Zag+h4OJjLE+EXd2ei/7fa1EObfEzp0RAMc8VCWw0JvUViTZb\n rHGM7vR/5IaJAFQnnLMNUwKmrOpJ8aP1zi7nehwsNDAW5/40Va5+kbZpwgSfwzFpVfbpLIefEGd\n i0rPjD9hRPjXZF6P4KbdOGNvXQSS0pkNkz9G/85N1LUoAwD1xGNoTUEF8s7EiLwqioSQ/biPSbR\n Lo+APENB60Y12MpIU2zXs1lTBQMjbEb1TWnaMYhXKGYONVZslJbdQIR31gyS2jnrQUgI9ukAZT+\n I/7CVoR1X/pohVS2ni4t/AoSlRnIMjxll7BawP8JakSNVy4qKqReNAm5R+3apr44pcP7pd1Pd9i\n OFvkoV2JDga1lsYNADg==","X-Proofpoint-GUID":"jcwKPc_Hnhvwo5sxGAostVjlYrjDwNtm","X-Proofpoint-ORIG-GUID":"jcwKPc_Hnhvwo5sxGAostVjlYrjDwNtm","X-Authority-Analysis":"v=2.4 cv=Bd/VE7t2 c=1 sm=1 tr=0 ts=69c2d10f cx=c_pps\n a=oF/VQ+ItUULfLr/lQ2/icg==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17\n a=IkcTkHD0fZMA:10 a=Yq5XynenixoA:10 a=s4-Qcg_JpJYA:10\n a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yOCtJkima9RkubShWh1s:22\n a=VwQbUJbxAAAA:8 a=pGLkceISAAAA:8 a=EUspDBNiAAAA:8 a=0tKm7Dcz37VmyEHRsAgA:9\n a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=3WC7DwWrALyhR5TkjVHa:22","X-Proofpoint-Virus-Version":"vendor=baseguard\n engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49\n definitions=2026-03-24_03,2026-03-24_01,2025-10-01_01","X-Proofpoint-Spam-Details":"rule=outbound_notspam policy=outbound score=0\n adultscore=0 impostorscore=0 clxscore=1015 malwarescore=0 bulkscore=0\n phishscore=0 suspectscore=0 lowpriorityscore=0 priorityscore=1501 spamscore=0\n classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0\n reason=mlx scancount=1 engine=8.22.0-2603050001 definitions=main-2603240139","X-BeenThere":"u-boot@lists.denx.de","X-Mailman-Version":"2.1.39","Precedence":"list","List-Id":"U-Boot discussion <u-boot.lists.denx.de>","List-Unsubscribe":"<https://lists.denx.de/options/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>","List-Archive":"<https://lists.denx.de/pipermail/u-boot/>","List-Post":"<mailto:u-boot@lists.denx.de>","List-Help":"<mailto:u-boot-request@lists.denx.de?subject=help>","List-Subscribe":"<https://lists.denx.de/listinfo/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=subscribe>","Errors-To":"u-boot-bounces@lists.denx.de","Sender":"\"U-Boot\" <u-boot-bounces@lists.denx.de>","X-Virus-Scanned":"clamav-milter 0.103.8 at phobos.denx.de","X-Virus-Status":"Clean"},"content":"From: Aswin Murugan <aswin.murugan@oss.qualcomm.com>\n\nWith CONFIG_PSCI_RESET enabled, EFI runtime resets always use PSCI, but since\nit cannot pass the arguments needed for special reboot modes, requests like\nbootloader or EDL fall back to a normal reboot.\n\nThis version updates the earlier series that introduced configuration control\nover EFI PSCI-based runtime reset handling.\n\nDuring review [1], it was pointed out that modifying only the Kconfig option\nwas incomplete, as the EFI runtime configuration table in\nlib/efi_loader/efi_runtime.c also needs to be updated to reflect whether\nruntime reset support is enabled.\n\nAdditionally, the reviewer suggested that instead of introducing a new\nEFI_PSCI_RESET_RUNTIME option, we should reuse the existing\nEFI_HAVE_RUNTIME_RESET knob, making it user-configurable so platforms can\nopt out when the kernel must retain full control of specialized reboot\nmodes.\n\nThis version implements that feedback:\n\n1. EFI_HAVE_RUNTIME_RESET is now a proper Kconfig configurable option\n   This allows individual platforms, such as Qualcomm boards, to \n   explicitly disable U-Boot’s EFI runtime reset callbacks when required.\n\n2. The Qualcomm defconfig disables EFI_HAVE_RUNTIME_RESET so that the\n   kernel can manage advanced reboot flows (EDL, bootloader entry, etc.)\n   without U-Boot overriding those reset modes through EFI runtime\n   services.\n\n3. The EFI runtime table is updated accordingly to conditionally\n   advertise reset support only when EFI_HAVE_RUNTIME_RESET is enabled.\n\nThese changes maintain existing default behavior for platforms that rely\non U-Boot’s EFI reset services, while enabling platforms with more\ncomplex reboot semantics to opt out cleanly.\n\n[1] https://lore.kernel.org/all/CAC_iWjKZXsE86J_wJ=JTE0TGL=MqGm8YRYsq4BrkU2ba3me6OQ@mail.gmail.com/\n\nSigned-off-by: Aswin Murugan <aswin.murugan@oss.qualcomm.com>\n---\nChanges in v4:\n- Made EFI_HAVE_RUNTIME_RESET user configurable & used it to disable U-Boot’s EFI runtime reset\n  for qualcomm platforms\n- Link to v3: https://lore.kernel.org/all/20260213110527.1254098-1-aswin.murugan@oss.qualcomm.com/\n\nChanges in v3:\n- Updated the commit message\n- Changed 'CONFIG_EFI_PSCI_RESET_RUNTIME=n' to '# CONFIG_EFI_PSCI_RESET_RUNTIME is not set'\n- Link to v2: https://lore.kernel.org/all/20260114111624.2321852-1-aswin.murugan@oss.qualcomm.com/\n\nChanges in v2:\n- As per review comments made default y for EFI_PSCI_RESET_RUNTIME config\n- Disabled the EFI_PSCI_RESET_RUNTIME config for qualcomm platforms\n- Link to v1: https://lore.kernel.org/all/20260108105146.1285450-1-aswin.murugan@oss.qualcomm.com/\n---\nAswin Murugan (2):\n  efi_loader: make EFI_HAVE_RUNTIME_RESET a user-selectable option\n  qcom_defconfig: Disable EFI_HAVE_RUNTIME_RESET in qcom_defconfig\n\n configs/qcom_defconfig | 1 +\n lib/efi_loader/Kconfig | 3 +--\n 2 files changed, 2 insertions(+), 2 deletions(-)"}