Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp176765pxf; Wed, 10 Mar 2021 03:43:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJyOV6G4EP/+NtSWt9nlMfU+Ov7pdsUtsGABbpVwIMoSy1iGX+k8WELcsJCNRQEObdJ9ft+e X-Received: by 2002:a05:6402:30b9:: with SMTP id df25mr2817337edb.136.1615376622745; Wed, 10 Mar 2021 03:43:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615376622; cv=none; d=google.com; s=arc-20160816; b=ev8pbSXBOqR5bCqQwcBKzwjyqtnQ/a8EvibTmFcJaGq823DXqZKPE4R2fFl1tlqh+7 ZNAMyyWVpSVT2Gs3qrXXUpCdm8V9BEnUex6JcsOveoV/BhUA15ypQMradBqF94eLUUP8 rA6lSZAuM5Oc/uYY6XLHIeE682TN2BkRhJ72qRRlNAJAbjZP+1d049tH/wSJG8x6JKiP 1KPGuikpPciUCaW/BhTZ8elE1QXeIYFG0VbTIc/RInXSpMteiPjXPB6yJDRjQYta4XX2 vI2ULLeP8XdthHk3tlDnjmrOpc51wJc2Mn1iuK+8Hh8k/vqzxLJ5nRYBJXsz+6lvUlBy G5DQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=hJHWSEdEr3tpITAZchrfii4UUxo1gWMz1ZrRboeowTI=; b=J8GncWgN+moBha8xp87fx74lorL/opqsJpRPud5xklD/h4lp4ifghdI3HiCEfxEm/O FZuy4kvOGwIMPmcrJtWufcz6RADjQPVBNqf8aRuDPZ1HdDKrR9blMGVm+1va67KeV7ux mhMWrOUhpsSYROH/lNctc8q5rvjRYZgM+ceqmFiVwhM/CyfHqLoqlDfmF15D9HvRXOZg BZEw/KObzwCMWWuiKUbG6mGp4291VjJYME9XuRNxOX1JgKxKH4HZiFXQPPojxOdN+NzU zUmDSa5ljWavWC3pcXV7Tq3gHCKPzdSLGPt1jmQg/IFqjKD70myKsKM4EJ/wG5lFmuMB qkeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HKpD+iC4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h15si509778ejg.677.2021.03.10.03.43.20; Wed, 10 Mar 2021 03:43:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HKpD+iC4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231682AbhCJLkV (ORCPT + 99 others); Wed, 10 Mar 2021 06:40:21 -0500 Received: from mail.kernel.org ([198.145.29.99]:53118 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229813AbhCJLj0 (ORCPT ); Wed, 10 Mar 2021 06:39:26 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0D73564FE5; Wed, 10 Mar 2021 11:39:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1615376365; bh=aIsRlz8+KjMr611NkESIos4nUSuwP1XkbN6BEUu4+FI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HKpD+iC4jfRxdVMDbqZkqucj0bxrjDIFWVN85owR29Pt3ysbI1NUudEobXvDz7Exd slg48riqQXVtmI5EYhs6J5XkbCSZLzLVcZ+if+qGTw93plVMFpmm0xCh+GTSZ9wVsn cku85JAgoR+bPvCPCqb8eWlpnu3XFFuelvAFkXNswsGE3a3Pq0b41Ue2RJlTtRmDcq f+kE1cqSTsuAw9W5vUbwoaB+zfqR0m1Mru3GHTmk4pWTXwlkRyxRkCBXqwyjFrJEEp yyWeJ/3oX1ciIx9dAw8xzcCm7nRtzLOQAfxuKaFVGKbvepA9xeE7jgJNTaR12FBYyf 7fGjsb1ussc3g== From: Will Deacon To: Anshuman Khandual , linux-arm-kernel@lists.infradead.org Cc: catalin.marinas@arm.com, kernel-team@android.com, Will Deacon , kvmarm@lists.cs.columbia.edu, linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org, Marc Zyngier Subject: Re: [PATCH V2] arm64/mm: Fix __enable_mmu() for new TGRAN range values Date: Wed, 10 Mar 2021 11:39:16 +0000 Message-Id: <161537411789.1674334.2037758954337206352.b4-ty@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <1615355590-21102-1-git-send-email-anshuman.khandual@arm.com> References: <1615355590-21102-1-git-send-email-anshuman.khandual@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 10 Mar 2021 11:23:10 +0530, Anshuman Khandual wrote: > As per ARM ARM DDI 0487G.a, when FEAT_LPA2 is implemented, ID_AA64MMFR0_EL1 > might contain a range of values to describe supported translation granules > (4K and 16K pages sizes in particular) instead of just enabled or disabled > values. This changes __enable_mmu() function to handle complete acceptable > range of values (depending on whether the field is signed or unsigned) now > represented with ID_AA64MMFR0_TGRAN_SUPPORTED_[MIN..MAX] pair. While here, > also fix similar situations in EFI stub and KVM as well. Applied to arm64 (for-next/fixes), thanks! [1/1] arm64/mm: Fix __enable_mmu() for new TGRAN range values https://git.kernel.org/arm64/c/26f55386f964 Cheers, -- Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev