Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp58973pxb; Mon, 31 Jan 2022 15:10:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJyavNWd1xDaznRRu6Exta9lPEq+30YMlD1/H8Nduk3r1dw6XXE2FcKvPMihY4vUmuVX3wwk X-Received: by 2002:a50:cccb:: with SMTP id b11mr22734837edj.57.1643670656685; Mon, 31 Jan 2022 15:10:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643670656; cv=none; d=google.com; s=arc-20160816; b=p8vX7Jox6AxWlZb+sjRr7ihwmmNYhmYZA2LolZSyh3VDvxHUARpphmuxgxMo9cGBQi Gf57CQkUnNMCIfErz5MUWc9K47DUP5ezwBvrcPjrAiU2QKSgCs3dVy3eggafhJzENiBC xK217fhNovU+wcGezEzSUtS5xW0dN1cuIQi1ho3f9IBQfoa/5+jNbJNrJ793TpB6f0XY bhskdmx1m7D/hcvMpAtZpVnOIQb0aihnjRAhv7n/8KMoQ0o43gu5XUMcGX2ep4fEypmX 47oeiTD3+ySpboQ2cGPIYAkhbW+U7sbm4zmyLB+iewP/EGHG2DS6QQ20DIiTrtYqiFWE RGNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=8AyHrJ3OCLYGxtJKAH7zqrmKcgyCc1KmhIcU6dzWHGo=; b=CJYNfbfAKXQmP//kSu3ogN1jwznJ8ErwTcgek6VoehcddpOLRXeAolKfQjmyl1xvXV bj9k4IKVPWlQRJ2s/+Fpd2BvAEraK48Kjfg+6Nz96fIvyokr1eSRVQDoSCcZUszDlzsh 4B8SBJWp4bqxl/KiptGrRIUgJC887LbsfWrVIGmiaFdmFvgo0FVg0rExNEI2w6afEJyX /8lv4T5/pxeVQePbrMBsTJQGPLPuvSDq8fKt9GCzWgaCz9e2ETRWypaUBFPs8FTyWzS3 7jhgTIW02mFtt5BGcegybOm6XbOIKj5+b7trU8i9HBv18OU4n3m3jx6TX0uL1ymXIDuq 95Rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@sang-engineering.com header.s=k1 header.b=rSplA0hs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 21si8174237eji.228.2022.01.31.15.10.31; Mon, 31 Jan 2022 15:10:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@sang-engineering.com header.s=k1 header.b=rSplA0hs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240639AbiA2GjG (ORCPT + 99 others); Sat, 29 Jan 2022 01:39:06 -0500 Received: from www.zeus03.de ([194.117.254.33]:59938 "EHLO mail.zeus03.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229958AbiA2GjD (ORCPT ); Sat, 29 Jan 2022 01:39:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=sang-engineering.com; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=k1; bh=Dja6htFOHSLuxcH15iAURADMtQRz t7/bYoOfVYKbpvQ=; b=rSplA0hs6qX8Pvq2Bqyz4RIroxiIZfaJ9G+2DxyGcsQG 5s43dcMIZD7Zw9obz/YImxdMqMMZZf2yNhX01LY1+YEcFM5nyzy3NZ1eYUDAVHq3 +/MpAgOzIj/xpHhQ9UBmEK8PL8fHOe+swJ1wrJEpmSWzCtnLWFGe9WHQwnJZ8fA= Received: (qmail 511667 invoked from network); 29 Jan 2022 07:39:00 +0100 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 29 Jan 2022 07:39:00 +0100 X-UD-Smtp-Session: l3s3148p1@sh9MzrLWDLO8ahEL Date: Sat, 29 Jan 2022 07:38:56 +0100 From: Wolfram Sang To: Krzysztof Adamski Cc: Catalin Marinas , Will Deacon , Mark Rutland , Peter Collingbourne , Guenter Roeck , Alexander Sverdlin , Matija Glavinic-Pecotic , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] arm64: move efi_reboot to restart handler Message-ID: Mail-Followup-To: Wolfram Sang , Krzysztof Adamski , Catalin Marinas , Will Deacon , Mark Rutland , Peter Collingbourne , Guenter Roeck , Alexander Sverdlin , Matija Glavinic-Pecotic , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="GKPNAMI1pCuG617p" Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --GKPNAMI1pCuG617p Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Krzysztof, > I would use something like 250, or even 254, just to indicate that we > know that most certainly nothing should be run before efi_reboot(), but > still allow those silly people like me, to do what they want in their > system, without the need to run the custom kernel. I think we could even > add a proper comment, so it woudld become something like: >=20 > /** > * If you are running UEFI based system, you most certainly should let > * efi_reboot() do a reset for you. If you think you know better, we > * leave you a window of opportunity here by not using maximal priorty > * here. > */ > .priority =3D 250, For your patchset, this seems good enough for me because it is decoupled =66rom PSCI now. I still think a set of defines should be collected in linux/reboot.h so they can be used in reboot handlers. This is a different patch series, though. > What is the downside of doing that? That we will run through atomic > notfier chain instead of calling efi_reboot directly? Sure this is > slightly more complicated but it works on all our platforms and is > battle proven and we don't worry about that there. And the upside is > that we give people possibility to use their beloved mechanism if they > really like to. Because flexibility is a good thing. I agree with the upside having more value than the downside. Happy hacking, Wolfram --GKPNAMI1pCuG617p Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAmH04PwACgkQFA3kzBSg KbbUiw/+MH+ukDJlxKm1Hgf2mziYmP4CxKyEoAv+6iDgOr/7USa/rOtBKIjFlLpw JHHCSkbtLI8HQdxRy45T44wP5CZ6eMFnF2bAN2/pvSDVViz3DUqeAMQZ3C1GxUys WJ4Gx+Xxyyk9ZXApkN+X42NtbIJWxs2wyGmDTq6lGkOjZ5VpdjGdHVv1i8YUMaTN B7dS2o7c3Y5IlK/7BCPqrpwqdoNDVJCaaFy1xczFBa9iU3PYRDNczfOR+CItscE2 JaRzIbQF10a5eM+j84OWYNK6K4qOBsad64yz+6xEpmVGh+XU9E5hVdPTbSY9lGc9 HjtvIVmeSyz59JSgrga6iItzTPHIZOcNOeD8foe6YRgVZaCzE/jWM3bh4fkKj6+I 5YrOuYFdg1QH3B6a6WljP+x85mfnVCbJ52mzYEyrJ4HGg/GIbWu81ySVMM7TX9zo Dw652+S9iAw8C4U7LH+2diE4wh/9qQgqPqEaQ8mDlyJgqBxgzTyy0tO2GJcBYcPJ IHbsc1pWCFlNN6bFtbfcJUU0ZgCBB9sWO+wsDg2Dt2akQbHOFg7OFwdqhPgKmMGy nOl3Jaa683bdY1v+zzUHq3mJMNhVnEqEM5N1AlSF5dMiowRyV4/02dthJxPCENX7 tXTqqFTFH1RDbBXtHGdrJINMhiu4Pz+B9r2cY2fFQEzOZmTe1uY= =fL8U -----END PGP SIGNATURE----- --GKPNAMI1pCuG617p--