All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/radeon: bogus PCI ID
@ 2014-10-26 17:22 Mark Kettenis
  2014-10-26 19:21 ` Alex Deucher
  0 siblings, 1 reply; 2+ messages in thread
From: Mark Kettenis @ 2014-10-26 17:22 UTC (permalink / raw)
  To: dri-devel

All evidence I can find suggests that device ID 0x4c6e is the
"secondary" device for the Radeon Mobility 9000/M9.  As such it would
be an RV250 chip instead of RV280.  However, the radeon drm driver
doesn't actually handle "secondary" devices.  For example, the
(non-Mobility) Radeon 9000 with device ID 496e isn't listed.  So I
believe this specific device ID should be removed from the list.  All
it currently accomplishes is printing "Fatal error during GPU init"
after the driver fails to map PCI BAR 2, which isn't there on these
"secondary" devices.

Tested (on OpenBSD) on a FireMV 2400 PCI card, which is essentially
two Mobility M9's with a PCI-PCI bridge, and where the two 0x4c6e
secondaries on function 1 are paired with 0x4c66 primaries on function
0.  Hopefully this diff can be applied to the Linux kernel as well
such that we can keep drm_pciids.h in sync between the various OSes.

Thanks,

Mark


diff --git a/include/drm/drm_pciids.h b/include/drm/drm_pciids.h
index e973540..2dd405c 100644
--- a/include/drm/drm_pciids.h
+++ b/include/drm/drm_pciids.h
@@ -74,7 +74,6 @@
 	{0x1002, 0x4C64, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV250|RADEON_IS_MOBILITY}, \
 	{0x1002, 0x4C66, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV250|RADEON_IS_MOBILITY}, \
 	{0x1002, 0x4C67, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV250|RADEON_IS_MOBILITY}, \
-	{0x1002, 0x4C6E, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV280|RADEON_IS_MOBILITY}, \
 	{0x1002, 0x4E44, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R300}, \
 	{0x1002, 0x4E45, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R300}, \
 	{0x1002, 0x4E46, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R300}, \

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] drm/radeon: bogus PCI ID
  2014-10-26 17:22 [PATCH] drm/radeon: bogus PCI ID Mark Kettenis
@ 2014-10-26 19:21 ` Alex Deucher
  0 siblings, 0 replies; 2+ messages in thread
From: Alex Deucher @ 2014-10-26 19:21 UTC (permalink / raw)
  To: Mark Kettenis; +Cc: Maling list - DRI developers

On Sun, Oct 26, 2014 at 1:22 PM, Mark Kettenis <mark.kettenis@xs4all.nl> wrote:
> All evidence I can find suggests that device ID 0x4c6e is the
> "secondary" device for the Radeon Mobility 9000/M9.  As such it would
> be an RV250 chip instead of RV280.  However, the radeon drm driver
> doesn't actually handle "secondary" devices.  For example, the
> (non-Mobility) Radeon 9000 with device ID 496e isn't listed.  So I
> believe this specific device ID should be removed from the list.  All
> it currently accomplishes is printing "Fatal error during GPU init"
> after the driver fails to map PCI BAR 2, which isn't there on these
> "secondary" devices.
>
> Tested (on OpenBSD) on a FireMV 2400 PCI card, which is essentially
> two Mobility M9's with a PCI-PCI bridge, and where the two 0x4c6e
> secondaries on function 1 are paired with 0x4c66 primaries on function
> 0.  Hopefully this diff can be applied to the Linux kernel as well
> such that we can keep drm_pciids.h in sync between the various OSes.
>
> Thanks,

Applied to my -fixes tree.  Thanks!

Alex

>
> Mark
>
>
> diff --git a/include/drm/drm_pciids.h b/include/drm/drm_pciids.h
> index e973540..2dd405c 100644
> --- a/include/drm/drm_pciids.h
> +++ b/include/drm/drm_pciids.h
> @@ -74,7 +74,6 @@
>         {0x1002, 0x4C64, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV250|RADEON_IS_MOBILITY}, \
>         {0x1002, 0x4C66, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV250|RADEON_IS_MOBILITY}, \
>         {0x1002, 0x4C67, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV250|RADEON_IS_MOBILITY}, \
> -       {0x1002, 0x4C6E, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV280|RADEON_IS_MOBILITY}, \
>         {0x1002, 0x4E44, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R300}, \
>         {0x1002, 0x4E45, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R300}, \
>         {0x1002, 0x4E46, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R300}, \
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-10-26 19:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-26 17:22 [PATCH] drm/radeon: bogus PCI ID Mark Kettenis
2014-10-26 19:21 ` Alex Deucher

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.