[PATCH 2/2] drm/amdgpu: Enable clear page functionality

Alex Deucher alexdeucher at gmail.com
Mon Dec 11 17:22:59 UTC 2023


On Mon, Dec 11, 2023 at 4:50 AM Christian König
<ckoenig.leichtzumerken at gmail.com> wrote:
>
> Am 08.12.23 um 20:53 schrieb Alex Deucher:
>
> [SNIP]
>
> You also need a functionality which resets all cleared blocks to
> uncleared after suspend/resume.
>
> No idea how to do this, maybe Alex knows of hand.
>
> Since the buffers are cleared on creation, is there actually anything to do?
>
>
> Well exactly that's the problem, the buffers are no longer always cleared on creation with this patch.
>
> Instead we clear on free, track which areas are cleared and clear only the ones which aren't cleared yet on creation.
>
> So some cases need special handling. E.g. when the engine is not initialized yet or suspend/resume.
>
> In theory after a suspend/resume cycle the VRAM is cleared to zeros, but in practice that's not always true.

The vbios asic_init table will clear vram on boards with RAS, but not on others.

Alex


More information about the amd-gfx mailing list