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 08022C636D4 for ; Tue, 7 Feb 2023 17:12:29 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1D92285EB0; Tue, 7 Feb 2023 18:12:28 +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="SrX0qnZN"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6EDBE85EB0; Tue, 7 Feb 2023 18:12:26 +0100 (CET) Received: from mail-qv1-xf2b.google.com (mail-qv1-xf2b.google.com [IPv6:2607:f8b0:4864:20::f2b]) (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 42B6C85DE9 for ; Tue, 7 Feb 2023 18:12:23 +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-qv1-xf2b.google.com with SMTP id z6so5579350qvp.11 for ; Tue, 07 Feb 2023 09:12:23 -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=cWsWhf/6F7EDOYJBPcWqSJWiJZdV/8FgeobqWeO91uM=; b=SrX0qnZN9/mlKs++4apJ45f8igIVzsKghXWjaqlOZknW0/Rf/rUw5+mbeh8XjH15o8 IFR/yPSkhvxeTmja1pgaLc9gI7cj2Wf4Ux9mppnus+WTXlId/hnSB7uOkozGyuAUX9L/ wKYW6lMjfdHXyFLK/QgMM0iV+W+BehKwkNOVE= 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=cWsWhf/6F7EDOYJBPcWqSJWiJZdV/8FgeobqWeO91uM=; b=OCGf1kCwUr5h+Hf9NGJzYK5TPmoX0n279o22XpWYPPznMOzjbpptZlmYAkkWG5rpFC n8XzEn2WDyeTFFRKHN6Acfcjw3TYdYTIJ/CROZQ5GJSBO/BT+maxeXDltiz/STOAzGFz YNh/epIGO2zq5vkW5zkiJCTlRlG4Rqr0asSeopSLJGy3WBxlYcMLFnlojJKCRNl2w+14 yP19QHT5FKnBPR/gqOf1GN6B4KWSfFGSpWzyn1PJXBRrmnfWMAMFsIwjyoD+0pT/A/3k 0TcGlBG3l+g1GAjKGC9DXelagMApu2AxZ9WNnD0g7PKQd7i1x9bi66/uzytBSgZWv/6n P+8w== X-Gm-Message-State: AO0yUKUda5yg5Bmbcsq+kisQVPNPmHxIZ6yih/ijiBvjl5wTKZUBBrXu 4xhuFNoxT3yYVVBEle+wAwi/Yg== X-Google-Smtp-Source: AK7set/72NIi96li1tp0qJZpdeUMSFaTtVEt7KpVfJRHvgr5U721s8SdOVEn/Q7dYb6m6Ygchkj+Ag== X-Received: by 2002:a05:6214:1303:b0:56b:f178:f45b with SMTP id pn3-20020a056214130300b0056bf178f45bmr7319975qvb.13.1675789941929; Tue, 07 Feb 2023 09:12:21 -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 142-20020a370694000000b006fbb4b98a25sm9830598qkg.109.2023.02.07.09.12.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Feb 2023 09:12:21 -0800 (PST) Date: Tue, 7 Feb 2023 12:12:19 -0500 From: Tom Rini To: Marc Zyngier Cc: "Ying-Chun Liu (PaulLiu)" , 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> <86pmalz9pc.wl-maz@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="sX3ac1p0prsSqQCC" Content-Disposition: inline In-Reply-To: <86pmalz9pc.wl-maz@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 --sX3ac1p0prsSqQCC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Feb 07, 2023 at 05:06:39PM +0000, Marc Zyngier wrote: > On Tue, 07 Feb 2023 16:40:05 +0000, > Tom Rini wrote: > >=20 > > 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 trap= s 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 w= ill > > > > 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? > >=20 > > 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#at= tributing-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 > No, this really is u-boot code written as part of Android, from where > the patch has been directly lifted[1]. >=20 > Same goes for Pierre-Clement's patch that is part of the same series. >=20 > I'm not overly attached to this code (I have bad memories from it), > but I think the OP may be unaware of these rules. In any case, I'm > supportive of this code making it in upstream u-boot. I just want it > to be done correctly. >=20 > Thanks, >=20 > M. >=20 > [1] https://android.googlesource.com/platform/external/u-boot/+/db5507f47= f4f57f766d52f753ff2cc761afc213b Oh, hummm. I guess whatever the normal policy for upstreaming patches =66rom an Android kernel tree, to mainline, would be the starting point here? Referencing the Android tree would be good too. --=20 Tom --sX3ac1p0prsSqQCC Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmPihnAACgkQFHw5/5Y0 tyytfQv/Ui8E9CXLqsfRuUTNjkVDCHLshemDCrv1Zaic5ZHJ0gXTZokLMtF5U533 Hzp/yE76DH+RQ6Ekryx7pKnimaLHa7g9whSdH56GGPvf9xtL4zeV7FqNKSEuf95U 0pmNRNjbZeiCyVhWxu+r5gQ2dTMPiNFucMsA/7jX48sS4V8V3luCoJlttZN0GeCZ vkTCIksKdmrO2KUTd2Dn8PzjkhpHQJPiTYkgFBOJtX9mqDI49W4HnE3Hs2emuyn9 ls6PKf4Pt32tzg8oixwfhYpkSGo04/bSZNdkExND20R/U0pEaVuBdgSWCm4wKM9O eUiIjUKuyPOkOA8ZKqlUC82pcJ+AK/p7y+Q/tyDTNWDej8NFf65PAQ5zSasMbC7E +npnDQ6tEJQIqTkVbdN0Srn+xXExWYcOzL80wwUZ2xf1cfNG5vn237aYSmgc7cR5 KU3mR2hGOHymHUTyRWLMZ7DmEW87LsPo8euD4ZGmrfLVbqrfqqVpX+p9Nt/EOftD yvQ0IiWC =PZFd -----END PGP SIGNATURE----- --sX3ac1p0prsSqQCC--