Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1773575rdb; Thu, 25 Jan 2024 05:58:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IFlNoSXmEpFPJj/nMPcdZZw8FSjFcUKvDG1IwynjHTfVhx6cRBkdiHzl5wI8g+wyYd8Xvce X-Received: by 2002:a62:5e46:0:b0:6d9:ac49:4e36 with SMTP id s67-20020a625e46000000b006d9ac494e36mr699981pfb.68.1706191084241; Thu, 25 Jan 2024 05:58:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706191084; cv=pass; d=google.com; s=arc-20160816; b=pqhFVbLx7PfpIdtj0nwBzdcz0GHWGE4/jAFM6IWBInS/qOM1iwqu0nTrHxGEEh9VOj QRdUVJoZIKVEhLdWhCMya833UG44TfGtKISj/yhnCPaqzWpzv7jyWAvjgFSOIx3GZN+/ iqGSWwEBDXSz4Tffo8xd6/LBk3fv2cxOFqAzFVvAyLa1GBJ+j9OorZg+F6zEWSBExIPW FUIBnkTp7mqn8sgjZhQnOfhUltE4rN6meAqC84MyKGxztvskAImGtvQrU3Xmjh5cjDKB /R2bsHYZWj3pVDvoTLFZ3lfNinRPmvO3EYZEr6ZVTCO0YztKHK4aq5QVf/yHQeZTvdAT LadA== 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; bh=6ZkswiVfN7imczM/e/VroJhu+WdSWAZ6bCLnkMRL+z0=; fh=uYUdXSypgvEjVdoPV0cPDvuseGbP+aWlrBghwZwQ+i0=; b=ymNnMaez6xFluun9IaDRRLdaAPnXzNgNlaarQHIXvLS8eDHweDweL58VOESQQyD5m7 yeHrQjC7phSsCnTai3CvfWJ0ww1kK+aNChU21RHtNxfFbGRvGGJwDznwmrBIOoT6Hys9 YJikUYP/Ki50Y++dxjDha+YLatH2sS1nbrZ8u5C7Edlla198puf6xqg2JaAhw8tsX9C6 7r0sM5iondUOApBoWGvt9R6v+Y8Og3+/r5PjVQ90/ahjz+yemeUyTVTph6vHeoNQYuaD kFFr/HDRPNKQOj9rOI63yfmyFseLTJXBk+wSfwShQ8uj+WLvDI0xEOP432RyeiehJGTA 5eGA== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-38680-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38680-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id c32-20020a631c20000000b005cee9117ef6si13380924pgc.810.2024.01.25.05.58.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 05:58:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-38680-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-38680-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38680-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 941D5295A20 for ; Thu, 25 Jan 2024 13:47:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7214A5A784; Thu, 25 Jan 2024 13:47:40 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 33D5B59B54; Thu, 25 Jan 2024 13:47:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706190460; cv=none; b=SpMeTdR12N1ZL7WmvV4mCVuJLdmMa2SbTmAx2EFqm4d7CrEPq3IOELXti0zuL2gMj8tyBU5JLsViOrPGrd5cEqpjyBYpaJyUMN0r3d8V4Fq5nMvnkQ8JfN8cpI+0tCT5iRPUFJaGdxiNQ9tUk/NYDLuhFNXn00yiSWPfYZIBzog= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706190460; c=relaxed/simple; bh=XCIyf98Egstd1uRAnQpa6ZfcwI7PuSvSMODoF7lNvy0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=spFHIhtZGxw1YAUaWr8J/D8DeoapZK+7nqL4PO7L3275+DDWWRVhZQP+Fn34nBVZEIJfaapKAoMsQA8a92o79GMDTSwq8CQB4I+JJ7uRRiCjVMPyrYlo4CXSAn4nw/QdBnOW/dXg2yhwNJAMzPW6Oz+d4Cbo0x7OOf0liyeVVcE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0AF45FEC; Thu, 25 Jan 2024 05:48:22 -0800 (PST) Received: from e133380.arm.com (e133380.arm.com [10.1.197.58]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 7695E3F5A1; Thu, 25 Jan 2024 05:47:36 -0800 (PST) Date: Thu, 25 Jan 2024 13:47:30 +0000 From: Dave Martin To: Mark Brown Cc: Catalin Marinas , Will Deacon , Jonathan Corbet , linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Edmund Grimley-Evans Subject: Re: [PATCH v2 3/4] arm64/fp: Clarify effect of setting an unsupported system VL Message-ID: References: <20240124-arm64-sve-sme-doc-v2-0-fe3964fb3c19@kernel.org> <20240124-arm64-sve-sme-doc-v2-3-fe3964fb3c19@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: <20240124-arm64-sve-sme-doc-v2-3-fe3964fb3c19@kernel.org> On Wed, Jan 24, 2024 at 06:12:37PM +0000, Mark Brown wrote: > The documentation for system vector length configuration does not cover all > cases where unsupported values are written, tighten it up. > > Reported-by: Edmund Grimley-Evans > Signed-off-by: Mark Brown > --- > Documentation/arch/arm64/sme.rst | 5 ++--- > Documentation/arch/arm64/sve.rst | 5 ++--- > 2 files changed, 4 insertions(+), 6 deletions(-) > > diff --git a/Documentation/arch/arm64/sme.rst b/Documentation/arch/arm64/sme.rst > index 3133d0e91b48..f4376c06f447 100644 > --- a/Documentation/arch/arm64/sme.rst > +++ b/Documentation/arch/arm64/sme.rst > @@ -379,9 +379,8 @@ The regset data starts with struct user_za_header, containing: > /proc/sys/abi/sme_default_vector_length > > Writing the text representation of an integer to this file sets the system > - default vector length to the specified value, unless the value is greater > - than the maximum vector length supported by the system in which case the > - default vector length is set to that maximum. > + default vector length to the specified value rounded to a supported value > + using the same rules as for setting vector length via PR_SME_SET_VL. > > The result can be determined by reopening the file and reading its > contents. > diff --git a/Documentation/arch/arm64/sve.rst b/Documentation/arch/arm64/sve.rst > index b45a2da19bf1..8d8837fc39ec 100644 > --- a/Documentation/arch/arm64/sve.rst > +++ b/Documentation/arch/arm64/sve.rst > @@ -423,9 +423,8 @@ The regset data starts with struct user_sve_header, containing: > /proc/sys/abi/sve_default_vector_length > > Writing the text representation of an integer to this file sets the system > - default vector length to the specified value, unless the value is greater > - than the maximum vector length supported by the system in which case the > - default vector length is set to that maximum. > + default vector length to the specified value rounded to a supported value > + using the same rules as for setting vector length via PR_SVE_SET_VL. > > The result can be determined by reopening the file and reading its > contents. Since you picked up my suggestion, I guess I owe you a Reviewed-by: Dave Martin Cheers ---Dave