From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8FB8FCD5BA9 for ; Thu, 5 Sep 2024 11:05:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=bUsrPbc0ZR2tMPXQm513VMpYseYIFv5pqsCu5RQFaOA=; b=LbzO8PsfnX8QtBpAf54eLTAiFK Lz8RLCGuy5yFQfoW3venzokFHELhqYKvnCawSKa4EcMcImV+4huyJvBLEf4BsxdOltZbMYaKdRXC4 UMcruy71rfwezYE56yGHaVXy+W2r1TaEQ/vm64Dm32QbsoXbGWUPVoT1kMVm0vnfypUk+hRzqiOkd 5Rt5uxYsqWqpKEVTZzfaLUr3EU0kIf8eRVaJacYjGAgx+DBCe+BxYi0f1LEdY1XhyKly4lyDgqg2h 2Vq/LjUk+wvz6SIlc/YLiJQmwoP8m6HFt3kcgQJ2YKHVIhZ3f9amxK45cJswNzWZesImBbqDUDEN3 /pNSKtxQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1smAIJ-000000084Ix-3v1M; Thu, 05 Sep 2024 11:04:55 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1smADU-000000083KQ-00NS for linux-arm-kernel@lists.infradead.org; Thu, 05 Sep 2024 10:59:57 +0000 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 29F6EFEC; Thu, 5 Sep 2024 04:00:20 -0700 (PDT) Received: from e133380.arm.com (e133380.arm.com [10.1.197.59]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C5C733F66E; Thu, 5 Sep 2024 03:59:52 -0700 (PDT) Date: Thu, 5 Sep 2024 11:59:47 +0100 From: Dave Martin To: Mark Brown Cc: Will Deacon , linux-arm-kernel@lists.infradead.org, Catalin Marinas , Joey Gouly Subject: Re: [PATCH] arm64: signal: Update sigcontext reservations table Message-ID: References: <20240729144149.249096-1-Dave.Martin@arm.com> <20240820133739.GA28338@willie-the-truck> <20240823114602.GA32020@willie-the-truck> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240905_035956_110924_2214F3BA X-CRM114-Status: GOOD ( 22.14 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Sep 04, 2024 at 12:49:03PM +0100, Mark Brown wrote: > On Wed, Sep 04, 2024 at 12:24:24PM +0100, Dave Martin wrote: > > On Tue, Sep 03, 2024 at 07:26:04PM +0100, Mark Brown wrote: > > > > It be good to add a selftest that flags this, that way people might > > > notice when adding things and if we miss something it'll probably turn > > > up in one of the CIs at some point (possibly after it's too late but at > > > least we'd know). That'd give us some level of integration test with > > > whatever libcs and other default software are actually doing, as opposed > > > to what we think they'll do. > > > I suppose we could write a test that sets VL=64, SVL=32 and dirties the > > SVE and SME regs before triggering a signal, then checks that > > extra_context is not there. This will only work if SVE and SME are > > present and big enough. If we can run this as a routine CI test on a > > model, it might be useful though. > > I'd also run this test with the default settings for the system, it > might help people notice if they've configured their system in some > way that causes issues unexpectedly. Probably; though if they've increased the sve_default_vector_length or sme_default_vector_length, they're on their own! Having a test that flags this up probably no bad thing though. Cheers ---Dave