Skip to content

drm/radeon: fix up some badness when probe fails

Daniel Palmer amd-gfx dri-devel lkml 1 version Applied

Status from this message: Applied. Thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3drm/radeon: Clean up pdev->dev instances in probedrivers/gpu/drm/radeon/radeon_drv.c+5 -40 replies
2/3drm/radeon: Do not kfree() devres managed rdevdrivers/gpu/drm/radeon/radeon_kms.c+0 -10 replies
3/3drm/radeon: Remove calls to drm_put_dev()drivers/gpu/drm/radeon/radeon_drv.c+4 -210 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] drm/radeon: fix up some badness when probe fails

I have been trying to get a Radeon 9250 running on an Amiga 4000[0].

On that setup it fails to find the BIOS and the probe fails which is expected but then a bunch of WARN_ON()s etc are triggered.

I though maybe this is "m68k problems" so I bought an old x86 board and there if I have a different primary VGA card the BIOS part of the probe fails in the same way and the same scary messages[1] are showing up in the console.

It seems like the probe failure path wasn't tested when some previous cleaning up happened.

I'll fix the issues with not finding the BIOS if the card wasn't initialised in the normal x86 way later.

0 - https://lore.kernel.org/lkml/[email protected]/
1 - https://gist.github.com/fifteenhex/b971bd62c49383a0558395c62c05ce3b

Daniel Palmer (3):
drm/radeon: Clean up pdev->dev instances in probe drm/radeon: Do not kfree() devres managed rdev drm/radeon: Remove calls to drm_put_dev()

 drivers/gpu/drm/radeon/radeon_drv.c | 34 ++++++++---------------------
 drivers/gpu/drm/radeon/radeon_kms.c |  1 -
 2 files changed, 9 insertions(+), 26 deletions(-)
Signature · 1 line
2.51.0