Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp3057289lqo; Tue, 21 May 2024 05:52:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWdpyFlve2m/dpGUeiizmhpAiF1hJqGSFhDXlAo6v/4XMh37hkqljlAOPbSfmV6BoWSnCQeCss5+ZukMuVNaWPAtklVtYZ/E4Zw+3REuQ== X-Google-Smtp-Source: AGHT+IG3ufIxzyjgyIe54qGYs6/znCnENwfoxJn/QppR6QCNdlsLJIbRL8HvInwmfj/js2WQu9Zc X-Received: by 2002:a05:6214:5bc3:b0:6ab:7280:2a7c with SMTP id 6a1803df08f44-6ab72802ab4mr18117286d6.12.1716295955701; Tue, 21 May 2024 05:52:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716295955; cv=pass; d=google.com; s=arc-20160816; b=X2WLy0XsuYd0iy2oLEeXAoRKEkkTYKGNMZ/4kksQMb+5acIkTcUG7Mjdbb7PfGNjR8 EG658/X+7JlqCs+J+F73blUeb+wGg7yCTem2LScK4VhkDZcufloxzSjSw2d+Z4GKcCvn k8WG92KmJiRsA1akewBMcJbXdeJ4JUjxZVyaQhcMgX5B3DTnZsQH7OL8yzz8B54WkGMc p15AX0KJu3znMaJmYAP7bUGNt8JAPX1Jofhfn3Bu7eqPGA0OCJH1EG8nnlYmAFX5hyhe ciqUeyzHqoSOFD1lmjAiRrDb+MI2iXTtkD9ax51IBFxwSR2pd5/JI7QJCwBnbctU5mFM Zc6w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=X3qR+ayeMIWLfJK1ndiVMzONCDsB5JPpbhekNrttsd8=; fh=UpQHtYvquR0alWY+rt3TBcjQe/hQ+ZiW22v9IaADSnQ=; b=dYncSZzIsQS3OCo4qp/WlQQCy29rZIMOXY/M/16Z1xIcDlhQj62yQUT2RdG7c7Z7eY aGLGgUMWGK4GJGRtJp1obTY38hmQ7CoaN1j4tYnpF00FjZ/nHUjJcOqAn7w2Z4Ij0+FK wbSF9xglV9BAiqAEyr51FcqE7xCcHPIwmFZOVIojK+qeBo70wZSdBJbKHbDTVPg2uDFc wMaLa4VPWVG1gHbJfw7Iz4trUsXsidMGX1bH7d+FCcWgGR/FJc3fievqqA2NNXTXlALN mjnJinyIayW4ead4fcFyOJam3BcFh5BzJraKNiDVn1/L+uDkJEKc9O3CyutwatXZRbRQ ns5g==; dara=google.com 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-184965-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184965-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6a15f203fe9si21222286d6.156.2024.05.21.05.52.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 05:52:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-184965-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; 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-184965-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184965-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id A79271C209FA for ; Tue, 21 May 2024 12:52:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B27AD770F0; Tue, 21 May 2024 12:52:29 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1F83B770EE; Tue, 21 May 2024 12:52:26 +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=1716295949; cv=none; b=cCAfpS69msKtyimylnwmCe9EMlpMOJi/nY1g9+Dq7oSki4XZv77Er1ny1PkR5NhQ77Kr+/TuQ2awuXF7a53zl3akGb7zskkMYO616FZWaSXEoUsBXGFxTB84z8Jc0gEkCf2eorhxZVIwCZlBsfH7y+Us2nBIhcYJ6cSEWLf6TR0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716295949; c=relaxed/simple; bh=ifL5qqatoD5N2y90qXOKpNzdYIhiR/PXfQCB5KoW+TE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=evwDE2yZUC1+cx4dCOM3E409Is64I99+aVE4YeNWjaOKAqXx3h5huyXq/0B4Y1Lvj6IAYB0U/m4IfEEsbbbn3b8S9W636QwgB9xCvceWIuXUo8EjpK5eiVuF/aZJZnujGKEPiUjbZMKay7yy4bltx7tDKHVsEmvu93xGLfJMkMA= 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 4878EDA7; Tue, 21 May 2024 05:52:50 -0700 (PDT) Received: from [10.162.42.16] (e116581.arm.com [10.162.42.16]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id AE2EC3F641; Tue, 21 May 2024 05:52:23 -0700 (PDT) Message-ID: Date: Tue, 21 May 2024 18:22:20 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] selftests/mm: va_high_addr_switch: Do not skip test and give warning message post FEAT_LPA2 To: Andrew Morton Cc: shuah@kernel.org, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Anshuman.Khandual@arm.com, kirill.shutemov@linux.intel.com, AneeshKumar.KizhakeVeetil@arm.com References: <20240516035633.143793-1-dev.jain@arm.com> <20240519164823.8e21acfd2bf9ad13f7798f1a@linux-foundation.org> Content-Language: en-US From: Dev Jain In-Reply-To: <20240519164823.8e21acfd2bf9ad13f7798f1a@linux-foundation.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 5/20/24 05:18, Andrew Morton wrote: > On Thu, 16 May 2024 09:26:33 +0530 Dev Jain wrote: > >> Post FEAT_LPA2, Aarch64 extends the 4KB and 16KB translation granule to >> large virtual addresses. Currently, the test is being skipped for said >> granule sizes, because the page sizes have been statically defined; to >> work around that would mean breaking the nice array of structs used for >> adding testcases. > Which array is that? testcases[]? If so, we could keep if fairly nice > by doing the array population at runtime. Something like: > > static struct testcase *testcases; > > static void init_thing() > { > struct testcase t[] = { > ... > }; > > testcases = malloc(sizeof(t)); > memcpy(testcases, t, sizeof(t)); > } Great idea! This should work. I shall implement it.