[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ddb0fd72-41a6-47b1-80f2-b336365a75d4@amd.com>
Date: Wed, 7 May 2025 11:54:05 +0530
From: Vasant Hegde <vasant.hegde@....com>
To: Jason Gunthorpe <jgg@...pe.ca>
Cc: Ankit Soni <Ankit.Soni@....com>, iommu@...ts.linux.dev,
suravee.suthikulpanit@....com, joro@...tes.org, will@...nel.org,
robin.murphy@....com, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 2/2] iommu/amd: Add efr[HATS] max v1 page table level
On 5/6/2025 8:57 PM, Jason Gunthorpe wrote:
> On Wed, Apr 30, 2025 at 05:27:10PM +0530, Vasant Hegde wrote:
>>> + efr_hats = FIELD_GET(FEATURE_HATS, amd_iommu_efr);
>>> + if (efr_hats != 0x3) {
>>> + /*
>>> + * efr[HATS] bits specify the maximum host translation level
>>> + * supported, with LEVEL 4 being initial max level.
>>> + */
>>> + amd_iommu_hpt_level = efr_hats + PAGE_MODE_4_LEVEL;
>>> + } else {
>>> + pr_warn_once("Disable host address translation due to invalid max level (%#x).\n",
>>
>> s/invalid max level/invalid translation level/
>
> This should have a FW_BUG annotation too?
Ack. We can add FW_BUG.
-Vasant
Powered by blists - more mailing lists