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 9CE07C2BD09 for ; Wed, 3 Jul 2024 03:52:49 +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:Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:CC:To: Subject:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=xJmsqUthCTkyaPKz82QRUzMYASvzTQwc7ASm5k5Nbvo=; b=GgBlkXVEOEWXKSLJFnTjzaJ/DV T3iNYxJ+EWkZqu5EDc0Fk2u1F4Br07wYmYftwJrIsf+0T3eaPjdipuh2DPhj02BGGGcyAfMUxGjwr 0JYMy3EE5HeAZRktEWmdnl471x+8/qrfERtjseXr0BmwnSijpBHlAm48p71Kw9rMMHaYTTqO0nQjV dAQMD2cBbyGNF/qHvv7L3HboO0Ji9zmuhWpMBIjdkpRPcEngI6uDvZehB6JvGnjlvuw8qgz5Rw3as m93BlHky8jNY7zZzluJ7ASFc/odVRG1t8m7nu6X43r7clqX0z9d1Lvkjvv8z5fF+cET9Q0+HesDMf 7WdL+XlQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOr2r-00000008mf3-1nUv; Wed, 03 Jul 2024 03:52:37 +0000 Received: from szxga02-in.huawei.com ([45.249.212.188]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOr2f-00000008mcJ-0wXm for linux-arm-kernel@lists.infradead.org; Wed, 03 Jul 2024 03:52:27 +0000 Received: from mail.maildlp.com (unknown [172.19.163.174]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4WDQm63WvWzdg6V; Wed, 3 Jul 2024 11:50:30 +0800 (CST) Received: from kwepemm600007.china.huawei.com (unknown [7.193.23.208]) by mail.maildlp.com (Postfix) with ESMTPS id 7B56F140417; Wed, 3 Jul 2024 11:52:07 +0800 (CST) Received: from [10.174.185.179] (10.174.185.179) by kwepemm600007.china.huawei.com (7.193.23.208) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Wed, 3 Jul 2024 11:52:06 +0800 Subject: Re: [kvm-unit-tests PATCH v1 2/2] arm/mmu: widen the page size check to account for LPA2 To: =?UTF-8?Q?Alex_Benn=c3=a9e?= CC: , , , , , , , , Anders Roxell , Andrew Jones , Alexandru Elisei , Eric Auger , "open list:ARM" References: <20240702163515.1964784-1-alex.bennee@linaro.org> <20240702163515.1964784-3-alex.bennee@linaro.org> From: Zenghui Yu Message-ID: <28936f0c-5745-14b3-1ecf-ae1e01c5b28f@huawei.com> Date: Wed, 3 Jul 2024 11:52:05 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <20240702163515.1964784-3-alex.bennee@linaro.org> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [10.174.185.179] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To kwepemm600007.china.huawei.com (7.193.23.208) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240702_205225_462463_07DEAF04 X-CRM114-Status: GOOD ( 10.61 ) 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 Hi Alex, [ Please don't send patches to the old kvmarm@lists.cs.columbia.edu as it had been dropped since early 2023. [1] ] On 2024/7/3 0:35, Alex Bennée wrote: > If FEAT_LPA2 is enabled there are different valid TGran values > possible to indicate the granule is supported for 52 bit addressing. > This will cause most tests to abort on QEMU's -cpu max with the error: > > lib/arm/mmu.c:216: assert failed: system_supports_granule(PAGE_SIZE): Unsupported translation granule 4096 > > Expand the test to tale this into account. > > Signed-off-by: Alex Bennée > Cc: Anders Roxell There's a similar patch on the list [2], haven't been merged in master though. [1] https://git.kernel.org/torvalds/c/960c3028a1d5 [2] https://lore.kernel.org/all/20240402132739.201939-6-andrew.jones@linux.dev