Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5786710rwd; Mon, 5 Jun 2023 08:32:31 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6b4MHF0t1mBRKPwWohY7P1XBUXesYdOcDgidEzUhumwTh8Q1dN0J7WrNbZdBECZL/eGBEM X-Received: by 2002:a17:902:d505:b0:1ae:57d4:efbc with SMTP id b5-20020a170902d50500b001ae57d4efbcmr4053518plg.13.1685979150894; Mon, 05 Jun 2023 08:32:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685979150; cv=none; d=google.com; s=arc-20160816; b=mrKIubHRTtUZomqtZc58ZZPTN1pyPRxScZhI/Yrb5iAMZbMCsarBfE9k0mKcwrsGvQ uFyiogn4sDaMiIDSjBUOgXyJJJmLCyw0Kg19ZiiAcQWyRuh7d6eQShM5VASQruCEWhsa 5OmHGrd1KI265EM8slNQ/60xX22eQko41cSiEJ/KOmteYkGEFBOgdd+O0Jra+HKJkIlQ GcK6MR/DJuZIyqAsLzaQ/B/3h7/HxCqu8m4GC3fDlF99BSdE5XFGWmws+sczPUGtR5J5 ERW+i3W3U2g6PSY6zKqIhZtE1qJGni7aPocV93P4ANMfMVBISAeyxNYaL45azgNdmaNv Y4cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=I1yQ11ShPLSc7WK3sxOnxo27j+phFfUVGNBj+HtJMjI=; b=UG44Ca9Ni0iHttFsAjubnyPq23/fLyfB7y/e1yguIv/lRR/Ezdz5Zjz2MfUCmYVYrc D5xOpqHAAtgfhNVBfY07TJcgk8Pny2vcXpwNYrmrGfHn2+vIJMIGN+MA3ldB077K4OQn Pp2wo4YJd2ct4e4pBlL1GfJ7CHjFaYP4TqX4Z53mR4MhHBym2rMGm5OFdUk9Uy9b28p6 x/Jlb0ruTlMMwP+ClwnDYqjST7W/FwFIJzBNg2iGxUh06s2cp9FXUUfcJEDQi9kEdXUu RJmUHm3smYhDpR4ohY8djOEAtyyGkc8sALcISw2Q7yHZQOfDr94Ah7rLwwucpSGDmJDc IXTQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x7-20020a170902820700b001ae64583e34si5493096pln.194.2023.06.05.08.32.18; Mon, 05 Jun 2023 08:32:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233183AbjFEPXf (ORCPT + 99 others); Mon, 5 Jun 2023 11:23:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232650AbjFEPXe (ORCPT ); Mon, 5 Jun 2023 11:23:34 -0400 Received: from mx3.molgen.mpg.de (mx3.molgen.mpg.de [141.14.17.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89455F4 for ; Mon, 5 Jun 2023 08:23:31 -0700 (PDT) Received: from ersatz.molgen.mpg.de (g45.guest.molgen.mpg.de [141.14.220.45]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: pmenzel) by mx.molgen.mpg.de (Postfix) with ESMTPSA id 21DC861EA1BFF; Mon, 5 Jun 2023 17:23:09 +0200 (CEST) From: Paul Menzel To: Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , "Pan, Xinhui" , David Airlie , Daniel Vetter Cc: Paul Menzel , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm/amdgpu: Log if device is unsupported Date: Mon, 5 Jun 2023 17:22:59 +0200 Message-Id: <20230605152300.171794-1-pmenzel@molgen.mpg.de> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since there is overlap in supported devices, both modules load, but only one will bind to a particular device depending on the model and user's configuration. amdgpu binds to all display class devices with VID 0x1002 and then determines whether or not to bind to a device based on whether the individual device is supported by the driver or not. Log that case, so users looking at the logs know what is going on. Link: https://gitlab.freedesktop.org/drm/amd/-/issues/2608 Signed-off-by: Paul Menzel --- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c index 86fbb4138285..410ff918c350 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c @@ -2062,8 +2062,10 @@ static int amdgpu_pci_probe(struct pci_dev *pdev, /* skip devices which are owned by radeon */ for (i = 0; i < ARRAY_SIZE(amdgpu_unsupported_pciidlist); i++) { - if (amdgpu_unsupported_pciidlist[i] == pdev->device) + if (amdgpu_unsupported_pciidlist[i] == pdev->device) { + DRM_INFO("This hardware is only supported by radeon."); return -ENODEV; + } } if (amdgpu_aspm == -1 && !pcie_aspm_enabled(pdev)) -- 2.40.1