Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] drm/amdgpu: missing Fixes trailer for amdgpu_bo_init() leak fix
--

commit b39bca7df25d1f904ab6219bf84105076d42ff05
Author: Mario Limonciello <[email protected]>

> drm/amdgpu: release WC memtype and MTRR when amdgpu_bo_init() fails
>
> amdgpu_bo_init() reserves the WC memtype for the VRAM aperture and adds
> an MTRR before calling amdgpu_ttm_init(). If amdgpu_ttm_init() fails,
> the GMC sw_init callers just return the error and GMC's sw_fini is never
> run, so amdgpu_bo_fini(), the only place that drops the memtype and MTRR,
> is never called. A later rebind then reserves the same aperture again
> with the old reservation still held.
>
> Undo the memtype reservation and the MTRR in amdgpu_bo_init() itself when
> amdgpu_ttm_init() fails.
>
> Signed-off-by: Mario Limonciello <[email protected]>

[Severity: Low]
Should this bug fix include Fixes tags for the commits that introduced the
MTRR and WC memtype reservations in amdgpu_bo_init() without unwinding
them on failure?

  Fixes: d38ceaf99ed0 ("drm/amdgpu: add core driver (v4)")
  Fixes: 7cf321d118a8 ("drm/drivers: add support for using the arch wc mapping 
API.")

-- 
Sashiko AI review ยท 
https://sashiko.dev/#/patchset/[email protected]?part=3

Reply via email to