<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<p style="font-family:Arial;font-size:10pt;color:#0000FF;margin:5pt;" align="Left">
[AMD Official Use Only]<br>
</p>
<br>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Fixed locally. Thanks!<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Lazar, Lijo <Lijo.Lazar@amd.com><br>
<b>Sent:</b> Wednesday, September 22, 2021 12:41 AM<br>
<b>To:</b> Deucher, Alexander <Alexander.Deucher@amd.com>; amd-gfx@lists.freedesktop.org <amd-gfx@lists.freedesktop.org><br>
<b>Subject:</b> Re: [PATCH 11/66] drm/amdgpu: filter out radeon PCI device IDs</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText"><br>
<br>
On 9/21/2021 11:36 PM, Alex Deucher wrote:<br>
> Once we claim all 0x1002 PCI display class devices, we will<br>
> need to filter out devices owned by radeon.<br>
> <br>
> Signed-off-by: Alex Deucher <alexander.deucher@amd.com><br>
> ---<br>
> drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 561 +++++++++++++++++++++++-<br>
> 1 file changed, 560 insertions(+), 1 deletion(-)<br>
> <br>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c<br>
> index b6ce53fa9b03..3ab7099a1b16 100644<br>
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c<br>
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c<br>
> @@ -891,6 +891,559 @@ MODULE_PARM_DESC(smu_pptable_id,<br>
> "specify pptable id to be used (-1 = auto(default) value, 0 = use pptable from vbios, > 0 = soft pptable id)");<br>
> module_param_named(smu_pptable_id, amdgpu_smu_pptable_id, int, 0444);<br>
> <br>
> +static const u16 radeon_pciidlist[] = {<br>
<br>
Instead of associating to only radeon, maybe rename to something more <br>
generic such that all device ids in the list will be skipped.<br>
<br>
Thanks,<br>
Lijo<br>
<br>
> + 0x3150,<br>
> + 0x3151,<br>
> + 0x3152,<br>
> + 0x3154,<br>
> + 0x3155,<br>
> + 0x3E50,<br>
> + 0x3E54,<br>
> + 0x4136,<br>
> + 0x4137,<br>
> + 0x4144,<br>
> + 0x4145,<br>
> + 0x4146,<br>
> + 0x4147,<br>
> + 0x4148,<br>
> + 0x4149,<br>
> + 0x414A,<br>
> + 0x414B,<br>
> + 0x4150,<br>
> + 0x4151,<br>
> + 0x4152,<br>
> + 0x4153,<br>
> + 0x4154,<br>
> + 0x4155,<br>
> + 0x4156,<br>
> + 0x4237,<br>
> + 0x4242,<br>
> + 0x4336,<br>
> + 0x4337,<br>
> + 0x4437,<br>
> + 0x4966,<br>
> + 0x4967,<br>
> + 0x4A48,<br>
> + 0x4A49,<br>
> + 0x4A4A,<br>
> + 0x4A4B,<br>
> + 0x4A4C,<br>
> + 0x4A4D,<br>
> + 0x4A4E,<br>
> + 0x4A4F,<br>
> + 0x4A50,<br>
> + 0x4A54,<br>
> + 0x4B48,<br>
> + 0x4B49,<br>
> + 0x4B4A,<br>
> + 0x4B4B,<br>
> + 0x4B4C,<br>
> + 0x4C57,<br>
> + 0x4C58,<br>
> + 0x4C59,<br>
> + 0x4C5A,<br>
> + 0x4C64,<br>
> + 0x4C66,<br>
> + 0x4C67,<br>
> + 0x4E44,<br>
> + 0x4E45,<br>
> + 0x4E46,<br>
> + 0x4E47,<br>
> + 0x4E48,<br>
> + 0x4E49,<br>
> + 0x4E4A,<br>
> + 0x4E4B,<br>
> + 0x4E50,<br>
> + 0x4E51,<br>
> + 0x4E52,<br>
> + 0x4E53,<br>
> + 0x4E54,<br>
> + 0x4E56,<br>
> + 0x5144,<br>
> + 0x5145,<br>
> + 0x5146,<br>
> + 0x5147,<br>
> + 0x5148,<br>
> + 0x514C,<br>
> + 0x514D,<br>
> + 0x5157,<br>
> + 0x5158,<br>
> + 0x5159,<br>
> + 0x515A,<br>
> + 0x515E,<br>
> + 0x5460,<br>
> + 0x5462,<br>
> + 0x5464,<br>
> + 0x5548,<br>
> + 0x5549,<br>
> + 0x554A,<br>
> + 0x554B,<br>
> + 0x554C,<br>
> + 0x554D,<br>
> + 0x554E,<br>
> + 0x554F,<br>
> + 0x5550,<br>
> + 0x5551,<br>
> + 0x5552,<br>
> + 0x5554,<br>
> + 0x564A,<br>
> + 0x564B,<br>
> + 0x564F,<br>
> + 0x5652,<br>
> + 0x5653,<br>
> + 0x5657,<br>
> + 0x5834,<br>
> + 0x5835,<br>
> + 0x5954,<br>
> + 0x5955,<br>
> + 0x5974,<br>
> + 0x5975,<br>
> + 0x5960,<br>
> + 0x5961,<br>
> + 0x5962,<br>
> + 0x5964,<br>
> + 0x5965,<br>
> + 0x5969,<br>
> + 0x5a41,<br>
> + 0x5a42,<br>
> + 0x5a61,<br>
> + 0x5a62,<br>
> + 0x5b60,<br>
> + 0x5b62,<br>
> + 0x5b63,<br>
> + 0x5b64,<br>
> + 0x5b65,<br>
> + 0x5c61,<br>
> + 0x5c63,<br>
> + 0x5d48,<br>
> + 0x5d49,<br>
> + 0x5d4a,<br>
> + 0x5d4c,<br>
> + 0x5d4d,<br>
> + 0x5d4e,<br>
> + 0x5d4f,<br>
> + 0x5d50,<br>
> + 0x5d52,<br>
> + 0x5d57,<br>
> + 0x5e48,<br>
> + 0x5e4a,<br>
> + 0x5e4b,<br>
> + 0x5e4c,<br>
> + 0x5e4d,<br>
> + 0x5e4f,<br>
> + 0x6700,<br>
> + 0x6701,<br>
> + 0x6702,<br>
> + 0x6703,<br>
> + 0x6704,<br>
> + 0x6705,<br>
> + 0x6706,<br>
> + 0x6707,<br>
> + 0x6708,<br>
> + 0x6709,<br>
> + 0x6718,<br>
> + 0x6719,<br>
> + 0x671c,<br>
> + 0x671d,<br>
> + 0x671f,<br>
> + 0x6720,<br>
> + 0x6721,<br>
> + 0x6722,<br>
> + 0x6723,<br>
> + 0x6724,<br>
> + 0x6725,<br>
> + 0x6726,<br>
> + 0x6727,<br>
> + 0x6728,<br>
> + 0x6729,<br>
> + 0x6738,<br>
> + 0x6739,<br>
> + 0x673e,<br>
> + 0x6740,<br>
> + 0x6741,<br>
> + 0x6742,<br>
> + 0x6743,<br>
> + 0x6744,<br>
> + 0x6745,<br>
> + 0x6746,<br>
> + 0x6747,<br>
> + 0x6748,<br>
> + 0x6749,<br>
> + 0x674A,<br>
> + 0x6750,<br>
> + 0x6751,<br>
> + 0x6758,<br>
> + 0x6759,<br>
> + 0x675B,<br>
> + 0x675D,<br>
> + 0x675F,<br>
> + 0x6760,<br>
> + 0x6761,<br>
> + 0x6762,<br>
> + 0x6763,<br>
> + 0x6764,<br>
> + 0x6765,<br>
> + 0x6766,<br>
> + 0x6767,<br>
> + 0x6768,<br>
> + 0x6770,<br>
> + 0x6771,<br>
> + 0x6772,<br>
> + 0x6778,<br>
> + 0x6779,<br>
> + 0x677B,<br>
> + 0x6840,<br>
> + 0x6841,<br>
> + 0x6842,<br>
> + 0x6843,<br>
> + 0x6849,<br>
> + 0x684C,<br>
> + 0x6850,<br>
> + 0x6858,<br>
> + 0x6859,<br>
> + 0x6880,<br>
> + 0x6888,<br>
> + 0x6889,<br>
> + 0x688A,<br>
> + 0x688C,<br>
> + 0x688D,<br>
> + 0x6898,<br>
> + 0x6899,<br>
> + 0x689b,<br>
> + 0x689c,<br>
> + 0x689d,<br>
> + 0x689e,<br>
> + 0x68a0,<br>
> + 0x68a1,<br>
> + 0x68a8,<br>
> + 0x68a9,<br>
> + 0x68b0,<br>
> + 0x68b8,<br>
> + 0x68b9,<br>
> + 0x68ba,<br>
> + 0x68be,<br>
> + 0x68bf,<br>
> + 0x68c0,<br>
> + 0x68c1,<br>
> + 0x68c7,<br>
> + 0x68c8,<br>
> + 0x68c9,<br>
> + 0x68d8,<br>
> + 0x68d9,<br>
> + 0x68da,<br>
> + 0x68de,<br>
> + 0x68e0,<br>
> + 0x68e1,<br>
> + 0x68e4,<br>
> + 0x68e5,<br>
> + 0x68e8,<br>
> + 0x68e9,<br>
> + 0x68f1,<br>
> + 0x68f2,<br>
> + 0x68f8,<br>
> + 0x68f9,<br>
> + 0x68fa,<br>
> + 0x68fe,<br>
> + 0x7100,<br>
> + 0x7101,<br>
> + 0x7102,<br>
> + 0x7103,<br>
> + 0x7104,<br>
> + 0x7105,<br>
> + 0x7106,<br>
> + 0x7108,<br>
> + 0x7109,<br>
> + 0x710A,<br>
> + 0x710B,<br>
> + 0x710C,<br>
> + 0x710E,<br>
> + 0x710F,<br>
> + 0x7140,<br>
> + 0x7141,<br>
> + 0x7142,<br>
> + 0x7143,<br>
> + 0x7144,<br>
> + 0x7145,<br>
> + 0x7146,<br>
> + 0x7147,<br>
> + 0x7149,<br>
> + 0x714A,<br>
> + 0x714B,<br>
> + 0x714C,<br>
> + 0x714D,<br>
> + 0x714E,<br>
> + 0x714F,<br>
> + 0x7151,<br>
> + 0x7152,<br>
> + 0x7153,<br>
> + 0x715E,<br>
> + 0x715F,<br>
> + 0x7180,<br>
> + 0x7181,<br>
> + 0x7183,<br>
> + 0x7186,<br>
> + 0x7187,<br>
> + 0x7188,<br>
> + 0x718A,<br>
> + 0x718B,<br>
> + 0x718C,<br>
> + 0x718D,<br>
> + 0x718F,<br>
> + 0x7193,<br>
> + 0x7196,<br>
> + 0x719B,<br>
> + 0x719F,<br>
> + 0x71C0,<br>
> + 0x71C1,<br>
> + 0x71C2,<br>
> + 0x71C3,<br>
> + 0x71C4,<br>
> + 0x71C5,<br>
> + 0x71C6,<br>
> + 0x71C7,<br>
> + 0x71CD,<br>
> + 0x71CE,<br>
> + 0x71D2,<br>
> + 0x71D4,<br>
> + 0x71D5,<br>
> + 0x71D6,<br>
> + 0x71DA,<br>
> + 0x71DE,<br>
> + 0x7200,<br>
> + 0x7210,<br>
> + 0x7211,<br>
> + 0x7240,<br>
> + 0x7243,<br>
> + 0x7244,<br>
> + 0x7245,<br>
> + 0x7246,<br>
> + 0x7247,<br>
> + 0x7248,<br>
> + 0x7249,<br>
> + 0x724A,<br>
> + 0x724B,<br>
> + 0x724C,<br>
> + 0x724D,<br>
> + 0x724E,<br>
> + 0x724F,<br>
> + 0x7280,<br>
> + 0x7281,<br>
> + 0x7283,<br>
> + 0x7284,<br>
> + 0x7287,<br>
> + 0x7288,<br>
> + 0x7289,<br>
> + 0x728B,<br>
> + 0x728C,<br>
> + 0x7290,<br>
> + 0x7291,<br>
> + 0x7293,<br>
> + 0x7297,<br>
> + 0x7834,<br>
> + 0x7835,<br>
> + 0x791e,<br>
> + 0x791f,<br>
> + 0x793f,<br>
> + 0x7941,<br>
> + 0x7942,<br>
> + 0x796c,<br>
> + 0x796d,<br>
> + 0x796e,<br>
> + 0x796f,<br>
> + 0x9400,<br>
> + 0x9401,<br>
> + 0x9402,<br>
> + 0x9403,<br>
> + 0x9405,<br>
> + 0x940A,<br>
> + 0x940B,<br>
> + 0x940F,<br>
> + 0x94A0,<br>
> + 0x94A1,<br>
> + 0x94A3,<br>
> + 0x94B1,<br>
> + 0x94B3,<br>
> + 0x94B4,<br>
> + 0x94B5,<br>
> + 0x94B9,<br>
> + 0x9440,<br>
> + 0x9441,<br>
> + 0x9442,<br>
> + 0x9443,<br>
> + 0x9444,<br>
> + 0x9446,<br>
> + 0x944A,<br>
> + 0x944B,<br>
> + 0x944C,<br>
> + 0x944E,<br>
> + 0x9450,<br>
> + 0x9452,<br>
> + 0x9456,<br>
> + 0x945A,<br>
> + 0x945B,<br>
> + 0x945E,<br>
> + 0x9460,<br>
> + 0x9462,<br>
> + 0x946A,<br>
> + 0x946B,<br>
> + 0x947A,<br>
> + 0x947B,<br>
> + 0x9480,<br>
> + 0x9487,<br>
> + 0x9488,<br>
> + 0x9489,<br>
> + 0x948A,<br>
> + 0x948F,<br>
> + 0x9490,<br>
> + 0x9491,<br>
> + 0x9495,<br>
> + 0x9498,<br>
> + 0x949C,<br>
> + 0x949E,<br>
> + 0x949F,<br>
> + 0x94C0,<br>
> + 0x94C1,<br>
> + 0x94C3,<br>
> + 0x94C4,<br>
> + 0x94C5,<br>
> + 0x94C6,<br>
> + 0x94C7,<br>
> + 0x94C8,<br>
> + 0x94C9,<br>
> + 0x94CB,<br>
> + 0x94CC,<br>
> + 0x94CD,<br>
> + 0x9500,<br>
> + 0x9501,<br>
> + 0x9504,<br>
> + 0x9505,<br>
> + 0x9506,<br>
> + 0x9507,<br>
> + 0x9508,<br>
> + 0x9509,<br>
> + 0x950F,<br>
> + 0x9511,<br>
> + 0x9515,<br>
> + 0x9517,<br>
> + 0x9519,<br>
> + 0x9540,<br>
> + 0x9541,<br>
> + 0x9542,<br>
> + 0x954E,<br>
> + 0x954F,<br>
> + 0x9552,<br>
> + 0x9553,<br>
> + 0x9555,<br>
> + 0x9557,<br>
> + 0x955f,<br>
> + 0x9580,<br>
> + 0x9581,<br>
> + 0x9583,<br>
> + 0x9586,<br>
> + 0x9587,<br>
> + 0x9588,<br>
> + 0x9589,<br>
> + 0x958A,<br>
> + 0x958B,<br>
> + 0x958C,<br>
> + 0x958D,<br>
> + 0x958E,<br>
> + 0x958F,<br>
> + 0x9590,<br>
> + 0x9591,<br>
> + 0x9593,<br>
> + 0x9595,<br>
> + 0x9596,<br>
> + 0x9597,<br>
> + 0x9598,<br>
> + 0x9599,<br>
> + 0x959B,<br>
> + 0x95C0,<br>
> + 0x95C2,<br>
> + 0x95C4,<br>
> + 0x95C5,<br>
> + 0x95C6,<br>
> + 0x95C7,<br>
> + 0x95C9,<br>
> + 0x95CC,<br>
> + 0x95CD,<br>
> + 0x95CE,<br>
> + 0x95CF,<br>
> + 0x9610,<br>
> + 0x9611,<br>
> + 0x9612,<br>
> + 0x9613,<br>
> + 0x9614,<br>
> + 0x9615,<br>
> + 0x9616,<br>
> + 0x9640,<br>
> + 0x9641,<br>
> + 0x9642,<br>
> + 0x9643,<br>
> + 0x9644,<br>
> + 0x9645,<br>
> + 0x9647,<br>
> + 0x9648,<br>
> + 0x9649,<br>
> + 0x964a,<br>
> + 0x964b,<br>
> + 0x964c,<br>
> + 0x964e,<br>
> + 0x964f,<br>
> + 0x9710,<br>
> + 0x9711,<br>
> + 0x9712,<br>
> + 0x9713,<br>
> + 0x9714,<br>
> + 0x9715,<br>
> + 0x9802,<br>
> + 0x9803,<br>
> + 0x9804,<br>
> + 0x9805,<br>
> + 0x9806,<br>
> + 0x9807,<br>
> + 0x9808,<br>
> + 0x9809,<br>
> + 0x980A,<br>
> + 0x9900,<br>
> + 0x9901,<br>
> + 0x9903,<br>
> + 0x9904,<br>
> + 0x9905,<br>
> + 0x9906,<br>
> + 0x9907,<br>
> + 0x9908,<br>
> + 0x9909,<br>
> + 0x990A,<br>
> + 0x990B,<br>
> + 0x990C,<br>
> + 0x990D,<br>
> + 0x990E,<br>
> + 0x990F,<br>
> + 0x9910,<br>
> + 0x9913,<br>
> + 0x9917,<br>
> + 0x9918,<br>
> + 0x9919,<br>
> + 0x9990,<br>
> + 0x9991,<br>
> + 0x9992,<br>
> + 0x9993,<br>
> + 0x9994,<br>
> + 0x9995,<br>
> + 0x9996,<br>
> + 0x9997,<br>
> + 0x9998,<br>
> + 0x9999,<br>
> + 0x999A,<br>
> + 0x999B,<br>
> + 0x999C,<br>
> + 0x999D,<br>
> + 0x99A0,<br>
> + 0x99A2,<br>
> + 0x99A4,<br>
> +};<br>
> +<br>
> static const struct pci_device_id pciidlist[] = {<br>
> #ifdef CONFIG_DRM_AMDGPU_SI<br>
> {0x1002, 0x6780, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_TAHITI},<br>
> @@ -1253,9 +1806,15 @@ static int amdgpu_pci_probe(struct pci_dev *pdev,<br>
> struct drm_device *ddev;<br>
> struct amdgpu_device *adev;<br>
> unsigned long flags = ent->driver_data;<br>
> - int ret, retry = 0;<br>
> + int ret, retry = 0, i;<br>
> bool supports_atomic = false;<br>
> <br>
> + /* skip devices which are owned by radeon */<br>
> + for (i = 0; i < ARRAY_SIZE(radeon_pciidlist); i++) {<br>
> + if (radeon_pciidlist[i] == pdev->device)<br>
> + return -ENODEV;<br>
> + }<br>
> +<br>
> if (amdgpu_virtual_display ||<br>
> amdgpu_device_asic_has_dc_support(flags & AMD_ASIC_MASK))<br>
> supports_atomic = true;<br>
> <br>
</div>
</span></font></div>
</div>
</body>
</html>