Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A11EAC636D4 for ; Tue, 7 Feb 2023 16:40:15 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4C29B85E42; Tue, 7 Feb 2023 17:40:13 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="V5Jb1xT6"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D2F1385E42; Tue, 7 Feb 2023 17:40:11 +0100 (CET) Received: from mail-qt1-x835.google.com (mail-qt1-x835.google.com [IPv6:2607:f8b0:4864:20::835]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id BD05485E3D for ; Tue, 7 Feb 2023 17:40:08 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x835.google.com with SMTP id cr22so17336915qtb.10 for ; Tue, 07 Feb 2023 08:40:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=NFRjb3h27y5tzbilksrUKyMGG+1LsuBEJVKk7Qr9lvM=; b=V5Jb1xT6+hz55TZZcCuHvepJN0H5pqiubapXWXooHHKhQ7ip1ABUwnfps2NKFLr6eT EoVggGsA8CKwCN37nAPqmr5gVXfqXq4VYAZKCHbQQGe75jxd7A7Qvpuyud/K2k3k+F8f dNB5h3ulUQFqqBN5TIApHKYvRrW9pxxwmy/gU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=NFRjb3h27y5tzbilksrUKyMGG+1LsuBEJVKk7Qr9lvM=; b=DVZu4ggFX+jE0AriQkcSUn1csm3wnf8TO2WyBPIW75XG90mVG1+jrzTZYkQJW1O95w wZoQUtv5LFcwFheyco32tDrF+kD7C3IFLjKKoYnQ9UaqJBO+aYiuJBQu63f6QJPC0Uav jZ4jMAfWOt/qxPcf2LiVgTNcDvDRdmXtdKIaL5siPw6/topekvsaLZQhgfDVzSq87FKB N9chajYnOv27fKUNRB/3Tux9eMX6bx6I0znFxGRzTlwnugt7rHpHI4ZGpocuLO0fZVCh xsuoz9AjQhEdNhsOOj27q82n981Jz4tIgo8TIV4bwJ/Tj1R2AarxU4dTmvusznrQ9ObN U9ng== X-Gm-Message-State: AO0yUKVOUWXdEfUR76skzjH1XH0vrgnhttMzTrd+DyvVrz7Jgh6Jwwxz lh4FcKC0k93UFRLSVbghdFxcpA== X-Google-Smtp-Source: AK7set/h4LqLQJZL1YRofDWK1HL9D1j5N/dLOY+Re4EeQR3TDrhVckRKG1ff+io6JpjY17Ad6cnHhg== X-Received: by 2002:ac8:57c1:0:b0:3b8:6c68:6109 with SMTP id w1-20020ac857c1000000b003b86c686109mr6767498qta.21.1675788007559; Tue, 07 Feb 2023 08:40:07 -0800 (PST) Received: from bill-the-cat (2603-6081-7b00-6400-7494-fb31-9b5f-683c.res6.spectrum.com. [2603:6081:7b00:6400:7494:fb31:9b5f:683c]) by smtp.gmail.com with ESMTPSA id u20-20020ae9c014000000b00720750365b9sm9586748qkk.129.2023.02.07.08.40.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Feb 2023 08:40:07 -0800 (PST) Date: Tue, 7 Feb 2023 11:40:05 -0500 From: Tom Rini To: Marc Zyngier , "Ying-Chun Liu (PaulLiu)" Cc: u-boot@lists.denx.de, Will Deacon Subject: Re: [PATCH 1/2] arm: cpu: Add optional CMOs by VA Message-ID: References: <20230207162014.58664-1-paul.liu@linaro.org> <20230207162014.58664-2-paul.liu@linaro.org> <0acfdc333e22249784b4abd63d8d09e6@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="LthO3m5xmRmJc8Sx" Content-Disposition: inline In-Reply-To: <0acfdc333e22249784b4abd63d8d09e6@kernel.org> X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean --LthO3m5xmRmJc8Sx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Feb 07, 2023 at 04:35:25PM +0000, Marc Zyngier wrote: > On 2023-02-07 16:20, Ying-Chun Liu (PaulLiu) wrote: > > Exposing set/way cache maintenance to a virtual machine is unsafe, not > > least because the instructions are not permission-checked but also > > because they are not broadcast between CPUs. Consequently, KVM traps and > > emulates such maintenance in the host kernel using by-VA operations and > > looping over the stage-2 page-tables. However, when running under > > protected KVM, these instructions are not able to be emulated and will > > instead result in an exception being delivered to the guest. > >=20 > > Introduce CONFIG_CMO_BY_VA_ONLY so that virtual platforms can select > > this option and perform by-VA cache maintenance instead of using the > > set/way instructions. > >=20 > > Signed-off-by: Ying-Chun Liu (PaulLiu) > > Signed-off-by: Marc Zyngier > > Signed-off-by: Will Deacon > > Cc: Tom Rini >=20 > The sign-off chain looks pretty odd. Either you are the author > of this patch, and I have nothing to do on the sign-off list, > or I'm the author and the authorship is wrong. Similar things > would apply for Will. >=20 > So which one is it? As my first guess here is copy and adopting code from Linux, this is not following the documented procedure here: https://u-boot.readthedocs.io/en/latest/develop/sending_patches.html#attrib= uting-code-copyrights-signing Which if not sufficiently clear, please ask / suggest changes to. I see right now it isn't specific about cc'ing the original authors (who may, or may not, be interested, so blanket policy doesn't apply) but I would hope is clear enough that what's done in this example isn't right. --=20 Tom --LthO3m5xmRmJc8Sx Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmPifuQACgkQFHw5/5Y0 tyzScgv+IF7hBDgw+9ajIm296nxwAGVZUxstojeWi3AqELhB0rJbl73aB2dn3BCy MoKVukkYdwBsPmo2U7aNemtKnkPYppGVr7dEWoXKXR8IvE/N33xR+MvO4XQtuCxb hlAzWUmqniMKiFFuVdV0Be06kAEwBkwL4+oh6u1SgqEC5KjKcRQVOGPMwkEtVwl+ zVkGa7sbIh6kSPhlltgUU0ufhmNKZIaWidYR+/laSKPRLsj4o2XQQi9605ZEepxv S6ttv0LmZge7wiwxveeUlEliMRthbPA8Oomd+G2WmZ2Fd8oqWvI/ko6qx6hMRTR0 MfBx2B7tYCyJztwczJMRPEeRD3q+C4ndVRdEm7g7YvoAJy778gaa9OXim3HwW7H4 mT4guh5+bSgpnPyOiZpWhNVZPo2093nYw/E/nazeBBQ/PA9VjY+X+JYhht/+/mj3 yy3DXtXLjQTozuHFp7LgIeYtWlMlXXnjnI0hiN7+6owqjl5mXNUtcCCrH/6vGpGd ETROppqP =72TY -----END PGP SIGNATURE----- --LthO3m5xmRmJc8Sx--