Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp341379rbb; Sat, 24 Feb 2024 03:02:59 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWgBBNqYQ338W5YXF0bIOKbJ6x1NthXWlISLF4eqiABn6slQWxHC2pho7p8NhD2FBCtQr63qlABE5QuysEdmgrGXYa5g15pMURmJe/A6Q== X-Google-Smtp-Source: AGHT+IHj8iN0D/FIhkbkJ9yUvGlXI+orHUj5liTe/gtS+al0sxW76lXIHwwu0+kkrtVRRPCJbCt9 X-Received: by 2002:a17:902:aa4c:b0:1db:ecf1:3b71 with SMTP id c12-20020a170902aa4c00b001dbecf13b71mr2079276plr.53.1708772579349; Sat, 24 Feb 2024 03:02:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708772579; cv=pass; d=google.com; s=arc-20160816; b=hAEGZEIDqhGo/x3vqfCrR8A3dfY1/mLqj20qN6/W0SO7P5hBhoaUUfDtIgomRgshVO xZmCOFeY1NSUmbKMpJbadZ48ZNGPZ4ffRe2Ufr4Yn1uAvP7CQ36rY7lDkxcLTfqAdIVF gA+khmb/y3fCTfALRTRuEpGR1CFNY/MLDhxDsVbg2yoVTlRe7vKkcyTpo9UQqq+5y1XL 5kK9hjbwUebID//sWv44GxsjROvqesvEX/9ngA/cUsFcj4TnM9DMRDBqAK+rQc4jecPq x+JIL3cJ6kybxCYpB+KtQk0iL8NBqXjjjyfOo0nzGdvfCPtptjVTcDEu70pVN5GNEiQG yBVw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:dkim-signature:date; bh=vuWp/+7BcPYQXEWx/FGeNBwG2S56ypB+UYiRZv6cNM4=; fh=mZL/cNahe2k8Q43LtwAf8iXjPkdWyE4BZ7ecn4Z2Psk=; b=F5FYJjxxD2v1W3euydCEDOcljPt/cPPGTqfyCCqKVes015d+faiBXsNW3x1PNTF4YG SWawHkZI8vW69AN6cPDnWa+4MvYHMddlH1ne3/13j2/TSvCcN+yS7oQBdTEQXIRCi1BY +VdrMtCG5bXsW3qjUkUbjEhkp08KphOuR0fpCrP/CeVSGRl0b1q3mygYsOfrhRdtjVmd E2ZMYKdbYuIdWXOMK1/IccfP662XOjIkWE91ADd/MwwtoUNLZdU7MCyXxsDAgRsR05Pb V+Up7YGLTIAJECDGC83PlNj/9IZUwhyA+wCZUk52FigdAOI4ICup2wLHN2wKGzBq2Cr3 SrLg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="SVkU/0KO"; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-79575-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79575-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d8-20020a170902654800b001dc742a30bdsi669204pln.386.2024.02.24.03.02.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Feb 2024 03:02:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79575-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="SVkU/0KO"; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-79575-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79575-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id E9370283ECF for ; Sat, 24 Feb 2024 11:02:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5F41324A1F; Sat, 24 Feb 2024 11:02:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="SVkU/0KO" Received: from out-175.mta0.migadu.com (out-175.mta0.migadu.com [91.218.175.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3884A241E0 for ; Sat, 24 Feb 2024 11:02:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708772572; cv=none; b=ShKXPWu1ppOgGup4Vi9xPb0lluUAg2LL4ibVMhdyBhDT9iWNb4c0NAEVZblrkyR1ULow4sq8GQRLK3zK1J2pwkhJqZ6T2EXbhurgJRTXUdp/AWcLoUpHs36Hp+R7D8MQKdjp3srUWvzYMBrsPNo9JgKCWrbSFbpdvzpvhWEXODE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708772572; c=relaxed/simple; bh=uNjvaojA4iNqK2eMDEKYqtYjlOdhE1jDHAvMJPe/bCc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=b9ZITx96Yfjnvk6i5rQxAyLURaiqtQc4OJTje+MhmVpRT48q5Avf0bhjbx5R85fshSWwcQjUYa1fq969abAU7z1Ftv2l/o2G6WFrMvo+NjMOfbDK/6M2vyZjZul4fDYVg2eCocByuQU/oPIhpoIVhg3npp+HFSzsiBxQeR2sQic= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=SVkU/0KO; arc=none smtp.client-ip=91.218.175.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Date: Sat, 24 Feb 2024 11:02:40 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1708772568; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=vuWp/+7BcPYQXEWx/FGeNBwG2S56ypB+UYiRZv6cNM4=; b=SVkU/0KOQbxe4zhbMr3MEjYxu/5B6QD+MuxKlmxcTzwOcIYpDaHYA0/0XmxIEgUR7ZE1pG tq3vAoQsj2/P9WvPOZRO1kcgG11YUhVcBQuE9mU77Zvb25s0hUH+rH4QFl/+nUDpVvoGqO d+Kx0MHdeBHQ6mweiSFL9KqbQn9b4Po= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Oliver Upton To: Marc Zyngier Cc: Thomas Gleixner , Zenghui Yu , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kvmarm@lists.linux.dev, Jing Zhang Subject: Re: [PATCH 2/3] irqchip/gic-v3-its: Spin off GICv4 init into a separate function Message-ID: References: <20240219185809.286724-1-oliver.upton@linux.dev> <20240219185809.286724-3-oliver.upton@linux.dev> <87cysm9mtv.wl-maz@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87cysm9mtv.wl-maz@kernel.org> X-Migadu-Flow: FLOW_OUT On Sat, Feb 24, 2024 at 10:30:04AM +0000, Marc Zyngier wrote: > On Mon, 19 Feb 2024 18:58:07 +0000, Oliver Upton wrote: > > @@ -3193,7 +3210,8 @@ static void its_cpu_init_lpis(void) > > * ancient programming gets left in and has possibility of > > * corrupting memory. > > */ > > - val = its_clear_vpend_valid(vlpi_base, 0, 0); > > + its_clear_vpend_valid(vlpi_base, 0, 0); > > + return; > > I'm not sure about the necessity of this return statement. > allocate_vpe_l1_table() checks for rvpeid already, so it should be > fine to carry on. Yup, definitely not necessary. My aim was to have the control flow make it a bit more obvious to the reader what's going on. Having what reads as an allocation helper do a feature check isn't entirely obvious. I have no opinion either way though. > > } > > > > if (allocate_vpe_l1_table()) { > > @@ -3205,15 +3223,6 @@ static void its_cpu_init_lpis(void) > > gic_rdists->has_rvpeid = false; > > gic_rdists->has_vlpis = false; > > } > > - > > - /* Make sure the GIC has seen the above */ > > - dsb(sy); > > ... we're now missing a dsb affecting the VPE table programming, as we > expect things to take effect immediately. LOL, and on the back of a bugfix no less. I'll fix this. -- Thanks, Oliver