[PATCH] drm/amdgpu: Fix offset for HDP remap in nbio v7.11

Lazar, Lijo lijo.lazar at amd.com
Mon Apr 21 14:28:00 UTC 2025



On 4/21/2025 6:39 PM, Alex Deucher wrote:
> On Mon, Apr 21, 2025 at 5:48 AM Lijo Lazar <lijo.lazar at amd.com> wrote:
>>
>> APUs in passthrough mode use HDP flush. 0x7F000 offset used for
>> remapping HDP flush is mapped to VPE space which could get power gated.
>> Use another unused offset in BIF space.
>>
>> Signed-off-by: Lijo Lazar <lijo.lazar at amd.com>
> 
> Assuming we have a full 4k at that offset:
> 

Yes, 4K size is available.

Thanks,
Lijo

> Acked-by: Alex Deucher <alexander.deucher at amd.com>
> 
>> ---
>>  drivers/gpu/drm/amd/amdgpu/nbio_v7_11.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/gpu/drm/amd/amdgpu/nbio_v7_11.c b/drivers/gpu/drm/amd/amdgpu/nbio_v7_11.c
>> index 2ece3ae75ec1..bed5ef4d8788 100644
>> --- a/drivers/gpu/drm/amd/amdgpu/nbio_v7_11.c
>> +++ b/drivers/gpu/drm/amd/amdgpu/nbio_v7_11.c
>> @@ -360,7 +360,7 @@ static void nbio_v7_11_get_clockgating_state(struct amdgpu_device *adev,
>>                 *flags |= AMD_CG_SUPPORT_BIF_LS;
>>  }
>>
>> -#define MMIO_REG_HOLE_OFFSET (0x80000 - PAGE_SIZE)
>> +#define MMIO_REG_HOLE_OFFSET 0x44000
>>
>>  static void nbio_v7_11_set_reg_remap(struct amdgpu_device *adev)
>>  {
>> --
>> 2.25.1
>>



More information about the amd-gfx mailing list