Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp332937rdb; Thu, 25 Jan 2024 17:44:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IEPZKiL+BzQgU2HT6azU0KJAW9BOC1ZJzIyVFEHCRVDcEjt/kLXx6BmPMsI7yqyxLqibpnq X-Received: by 2002:a17:906:f1d1:b0:a28:fdd1:fda8 with SMTP id gx17-20020a170906f1d100b00a28fdd1fda8mr141130ejb.119.1706233451318; Thu, 25 Jan 2024 17:44:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706233451; cv=pass; d=google.com; s=arc-20160816; b=gp5qJOEApSjDBUdu6hyrTdvMfmCGM18UpsKSDWtUDatGSXaUiYp7ESkqx1d772ELPL At2+bVzWq4WKU6d2xvrc9vhHBuYaX9tq1kfVAYUyu+UQopGw00j5LETN7x4U04RkAnKj L8Hr1fWLOtWunZF7K1KbrPz4ZtA3yMm5N/upy+c4Uc+pUwwBUcTx/ylP7+g9jPdTxjxs mlnClRasuvDkak6pIoBoAKTILFjF++X9kWeZNibeGc657AUW2G5Ez64t8IC7AXHfdJcQ H8702YB47FG8F35ubnRaWoeS5IDA5BLkiBdpd79DdrOGQVY6tYjfMLRRd2hR/Qp0OqhU keQw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=isaim4Uy5m+IymQdNyF/MvtdUfuWxhX3VlYp39PZPYE=; fh=CqNx7Zp7/7EDz3Pjd6TMrUbikDpoQX1K0B5Y7dvqCzU=; b=vOe6C6itBn36FSIc5R3LNPw1/jxmBBVCunQpQhKUVZn2EAOildL4FRclwzCJU5zf8c 6PLb5Qv9uMIuBcJXcLe5Fbj2kRjY29/WYbCZpUe2xC5j7+GrUHEpfj9dWa5A3lZmZhU7 DmsrlepCHLio9VR1l1UjrjpKls/jL/7JRmMh8mREmDDGTstvlFx7pNURFWMhvjrutyOV hn55y48gBb4Fwtiofhmr4576rYXn6AnkaXbK2k3hp9TbpSs8yT5c4QgcnJyhz2aM3KCB NcohNE98otcbMZQZgZkdFJtcT5c1jIiWLSU3rkb67TqiC5MLOz3AfjSxq6Xf0AAB5tZa 6jXA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=mmWYdPED; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-39511-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39511-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id y12-20020a17090668cc00b00a3171d36eb8si59709ejr.106.2024.01.25.17.44.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 17:44:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-39511-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=mmWYdPED; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-39511-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39511-linux.lists.archive=gmail.com@vger.kernel.org" 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 17C0F1F281F6 for ; Fri, 26 Jan 2024 01:44:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 734D3138C; Fri, 26 Jan 2024 01:44:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="mmWYdPED" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 8DA8F7465; Fri, 26 Jan 2024 01:44:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706233441; cv=none; b=Bx7yi4/MVB+cKnGLmxQAst4NXgVmQwqP57DLF1b11d9PqkV0/kmd/hmZXzzTaxTlxGhdL1MxIbVbAqRbkKhgZrpydr2NC4iQbNffTRg9wAuVKx5ACzOrjyhytDjXkyM+4OrjAtqkG28kzTjFEwRXCNGya7Dm8PwWNHuGlo8lpug= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706233441; c=relaxed/simple; bh=wWiDiMeWoSlCCvhLdyjnd8NOVWU10SYkwMYuvm1Cvwo=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=gZwBlfco5Lq4arL1IeEqyN+I0DoqzlnhhoZt2T3KFw7dmyQ2kz1NNwRIoNXWIRAIP9P4TOkgSI7db0hxsqVR/HqJtgSUywe1r+CoK6tL+suL8gXNOrAkjdUfowcNkDt0CRjitI+owK8eokpuYGK4B2RcuREZ+ChkMa21d9o7Ywg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=mmWYdPED; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 153C5C433F1; Fri, 26 Jan 2024 01:43:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1706233441; bh=wWiDiMeWoSlCCvhLdyjnd8NOVWU10SYkwMYuvm1Cvwo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=mmWYdPEDIXpbLZGTVzSt0GPSULdfPOK/mNSysWrmKiUtTJ1nu601UGe6phcaZjVJO EkvZvMOcdEU+OvqVSKp0y9r74UhZ3NV5yoZKQTSP4yVV1xf0Dwis1BtKPLiy6TCErK 50XiBG7d11gOUz1XTopcBJSsnAbeHgGVY5FaTROk= Date: Thu, 25 Jan 2024 17:43:56 -0800 From: Andrew Morton To: Audra Mitchell Cc: shuah@kernel.org, linux-kselftest@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, raquini@redhat.com, Adam Sindelar Subject: Re: [PATCH] selftests/mm: Update va_high_addr_switch.sh to check CPU for la57 flag Message-Id: <20240125174356.199f44f329e137f9a6437648@linux-foundation.org> In-Reply-To: References: <20240119205801.62769-1-audra@redhat.com> <20240121143153.5dcfe26dea53ba0e896dbf85@linux-foundation.org> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) 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-Transfer-Encoding: 7bit On Wed, 24 Jan 2024 08:39:33 -0500 Audra Mitchell wrote: > > A more complete description of these "test failures" would be helpful > > please. > > > > Hey, sorry for the incomplete description. The test does a series of mmap > calls including three using the MAP_FIXED flag and specifying an address that > is 1<<47 or 1<<48. These addresses are only available if you are using level 5 > page tables, which requires both the CPU to have the capabiltiy (la57 flag) > and the kernel to be configured. Currently the test only checks for the kernel > configuration option, so this test can still report a false positive. Here are > the three failing lines: > > $ ./va_high_addr_switch | grep FAILED > mmap(ADDR_SWITCH_HINT, 2 * PAGE_SIZE, MAP_FIXED): 0xffffffffffffffff - FAILED > mmap(HIGH_ADDR, MAP_FIXED): 0xffffffffffffffff - FAILED > mmap(ADDR_SWITCH_HINT, 2 * PAGE_SIZE, MAP_FIXED): 0xffffffffffffffff - FAILED > > I thought (for about a second) refactoring the test so that these three mmap > calls will only be run on systems with the level 5 page tables available, but > the whole point of the test is to check the level 5 feature... > > If you would like me to also update the description on the patch let me know > and I'll update it and resubmit. Thanks! I pasted the above into the changelog, thanks.