Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp1203010lqb; Thu, 18 Apr 2024 03:18:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUhmdQDR6eHnJu4oQbqINej7dkuxwf1dKj25SEFES1kP7ibMuCwE3K3flTnYzd27OLcXA7IUEjNGdguNKdK7X4/i2LL8CbQgrmkOPrSBg== X-Google-Smtp-Source: AGHT+IH0qg1nvUOiL+tYT0L2j2KVDn6vpZxJ0UuvgOA5W42LjSTYN47ofybjIH/JI8sehEOFxAld X-Received: by 2002:a17:906:eb14:b0:a52:6941:e32c with SMTP id mb20-20020a170906eb1400b00a526941e32cmr1388636ejb.57.1713435484029; Thu, 18 Apr 2024 03:18:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713435484; cv=pass; d=google.com; s=arc-20160816; b=AkJm4UNDkIgrD5Ic9zkE6o6lj9n47uwLMVp3Mhmzla1AcTxhWiyXihj5jwpoxsUHT2 dSZT7Lmi3MEAgkviWYFTcLkMAZBWXH2IuKPcB3qEdI06xzutienNe3d55Y/ch08dzncG J8lyQZvEk+Q8w3cenu6uCdRkj+Yuve/ncZzlvASAjBnoP7y+Nu9Ez++770N7gIBBt9zk tm5MM2Q9rwLj6NPTUX2ebNNZ0R3w/PNW5cOsmpXf3qLIkIyC9Qd0CpHUihAzcPuREvTQ 6vhKI9pU00rnQP69fm9aWYlwahH6ujrQqFcVy9T1msTvS4McaUwSWrzsEuQCarKc1Obp HN8Q== 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:date:dkim-signature; bh=HvDKZ+glA5qTkrIzDXNuxfHtmsXhvI7/488cGHa/cTo=; fh=CPsmOzCfVlAP8dR7BWxb7YcogGpBFmQ0cT6PFKMoHnA=; b=i+iM/v/e/YTgBTROl+WUCKiid90kqZjYpZ05gW9qwT4k7/baGgq8nXlr8QOQNW8+M9 o9hp5dhNxXUF3rMwKjTmo/7iZALPXdoRHovgn+uuBc7OjmhuOSjVH6mj0jIMn+czL2mX uGrGBse5azCvlpwMxzWk53nN/FKUag0FQ/kAV1rEU3Vg5U2UBdDS7lZUFMAvJmGDeJeL 9CfEHV/riwU9ZUPCPaq8NTY7COJXeavwxuROgFHfGBWPVzoMC5UpBrjM0LrwV5r4GnMx WiiSfjUsL66n4rV4F3o6oaZhDkw41mIvSjtsM8W96caVP5hsg0zTZ1sGp28eO0DqyxSy J0fQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=xJ36ND9Z; arc=pass (i=1 spf=pass spfdomain=microchip.com dkim=pass dkdomain=microchip.com dmarc=pass fromdomain=microchip.com); spf=pass (google.com: domain of linux-kernel+bounces-149867-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-149867-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microchip.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id fx9-20020a170906b74900b00a51b7582475si692345ejb.1049.2024.04.18.03.18.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 03:18:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-149867-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=xJ36ND9Z; arc=pass (i=1 spf=pass spfdomain=microchip.com dkim=pass dkdomain=microchip.com dmarc=pass fromdomain=microchip.com); spf=pass (google.com: domain of linux-kernel+bounces-149867-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-149867-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microchip.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id BFA421F23676 for ; Thu, 18 Apr 2024 10:18:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 227FF15B980; Thu, 18 Apr 2024 10:17:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="xJ36ND9Z" Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) (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 68E0B15AD8E; Thu, 18 Apr 2024 10:17:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=68.232.153.233 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713435474; cv=none; b=GK1FSvVM3tZab71NPGY9+fEo5PsJFoZBvZDSIgG6d34MAXfOCmEAWZi4Ib+WPlxCNlB8Vwm5VWnk1wFTdKeKTSJ/OYKsD7vt8RhX48pbuetVfbMa73z9Ejy/T6DWftZZ9EZsIwmOkU5EVWpqDjWIMmS9HHGZ1IU0s0vXd/iB0Rw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713435474; c=relaxed/simple; bh=HvDKZ+glA5qTkrIzDXNuxfHtmsXhvI7/488cGHa/cTo=; h=Date:From:To:CC:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=uOHN0Eu9T/Od7GKxcRME1TR56Hv5Ak/OPhR09KPFdk4DRoY1xTm8p7lnTssoUGxDXNhEvqSG9zEFNxt50acuBIDvkBXgDNi+6oOt8KtGm3PmNy7sCWDbss7QGbqPoMUtcqFjDnIZvavrcmMDfpX3vD6zBP9/84fFTzynlJFT62I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com; spf=pass smtp.mailfrom=microchip.com; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b=xJ36ND9Z; arc=none smtp.client-ip=68.232.153.233 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1713435473; x=1744971473; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=HvDKZ+glA5qTkrIzDXNuxfHtmsXhvI7/488cGHa/cTo=; b=xJ36ND9ZJ8+n6zlPNqFNrDvbSeDvaHDwezthBCG7t/XEYGyHxWPq8Ou5 +1jius5hEebikL5wiQcd3ps9yBXoq58UbKg04drgTiSO6mmb8J4iGXc32 PAw1lDCOWkxyuINsn6XpAlROu6Z+NFluOIQTTk1cxzkP/r4NI5L2e+vB4 HmnraUcwUlZldMeitotV6rP5iFCZSgAhPxALjPRbBgf5bzKRPCY/t03FW dHeqdqB9NiVl1bVKCivVMMwok6WTFCYV6h75VYcykEBfsr+bwfrz5XHEV 9fyC79LWHxCpKbfmU2QlgWYrdccQaP+E2GnZMumNSaiWbo37hZzxVPMgp g==; X-CSE-ConnectionGUID: jdfy0oE/RiGdWMurzhUwYg== X-CSE-MsgGUID: rBqpnbjgSpK9ZoW0LzlZyg== X-IronPort-AV: E=Sophos;i="6.07,211,1708412400"; d="asc'?scan'208";a="252389070" X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa5.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 18 Apr 2024 03:17:51 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Thu, 18 Apr 2024 03:17:34 -0700 Received: from wendy (10.10.85.11) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Thu, 18 Apr 2024 03:17:31 -0700 Date: Thu, 18 Apr 2024 11:17:16 +0100 From: Conor Dooley To: Andy Chiu CC: Paul Walmsley , Palmer Dabbelt , Albert Ou , Heiko Stuebner , Guo Ren , Conor Dooley , Rob Herring , Krzysztof Kozlowski , Jonathan Corbet , Evan Green , =?iso-8859-1?Q?Cl=E9ment_L=E9ger?= , Shuah Khan , , , Palmer Dabbelt , Vincent Chen , Greentime Hu , , , Subject: Re: [PATCH v4 2/9] riscv: smp: fail booting up smp if inconsistent vlen is detected Message-ID: <20240418-busload-footnote-0087b489b3cf@wendy> References: <20240412-zve-detection-v4-0-e0c45bb6b253@sifive.com> <20240412-zve-detection-v4-2-e0c45bb6b253@sifive.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="5mIw8CeNjpzZr3Y+" Content-Disposition: inline In-Reply-To: <20240412-zve-detection-v4-2-e0c45bb6b253@sifive.com> --5mIw8CeNjpzZr3Y+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Apr 12, 2024 at 02:48:58PM +0800, Andy Chiu wrote: > Currently we only support Vector for SMP platforms, that is, all SMP > cores have the same vlenb. If we happen to detect a mismatching vlen, it > is better to just fail bootting it up to prevent further race/scheduling > issues. >=20 > Also, move .Lsecondary_park forward and chage `tail smp_callin` into a > regular call in the early assembly. So a core would be parked right > after a return from smp_callin. Note that a successful smp_callin > does not return. >=20 > Fixes: 7017858eb2d7 ("riscv: Introduce riscv_v_vsize to record size of Ve= ctor context") > Reported-by: Conor Dooley > Closes: https://lore.kernel.org/linux-riscv/20240228-vicinity-cornstalk-4= b8eb5fe5730@spud/ > Signed-off-by: Andy Chiu Reviewed-by: Conor Dooley Cheers, Conor. --5mIw8CeNjpzZr3Y+ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZiDzLAAKCRB4tDGHoIJi 0iukAP9gMz9Evm9RpNziRdVt/TZimCbIoydkw28vTA+Bcs/I9wD+N6M2XUvE06s/ 90wzbAtNs6iXwmA4DplsxcRv65SMOwo= =BKna -----END PGP SIGNATURE----- --5mIw8CeNjpzZr3Y+--