Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp667011pxb; Fri, 14 Jan 2022 13:34:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJwg5IelfMqxYvIQklnsPbH5htAsbwCMLDOExJg3E0V2xV85SyJO43sQs+KZPGP9P6YkGpec X-Received: by 2002:a17:90a:1c1:: with SMTP id 1mr12694793pjd.151.1642196061532; Fri, 14 Jan 2022 13:34:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642196061; cv=none; d=google.com; s=arc-20160816; b=anbgZqmVkP4LZ3VIjQ9zynHfB72+cwOj5rv7LLtuekQAxRz9qQ36C3uaAuiPAZXRhn 9x7DmNf1OaLcSF/u4NVTeuoCaLQTE54k397xIo611qi5aikOgH7Jb3fRZLgUwNIMQRSz LitjLqGpI7n+nmPPfMog3ehAxzDkmagMDAkGUd0IYFt2R8iOHB9njMCN85uRPVACZkYD ha/1VlZLKPTVGZJevUt3W4T2Wu5aBik4dE9qgPUZhn0jmmxwmUuXyJVmCQzw049Abpvj 4rErkWwLZv8XM80oWC0jQM5Bq/TvqDwOGcM0vOt0qejeleQ15956VWAVREVUXeBrFj8u Povw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=HXQISz6uUvwg8Vwt1+DIrxstrllwfzEuYjBo3yyTGQk=; b=vO+mjZq3ekiwAHioB48ABjRHqAxmLU5wO95F1y4jMsV80B4tLz4Qd2z9AAyPI4y+fl qXsZ9+b5Tnbic4gIxoC5qNO6xPepdOYehqhtBYc/KGfnKS/KCz50Q9YE7WD9CZeSTbJR 4LgAbZX2L+L9IOtv69E9Kt/E+sksXkpdJZpAXfhfIMeEj99lDGx2+2AK81cCMRPaF3X1 YsF7Oii56rpFzBDIsIjgIc8cTpM452ACRm1MGvu/grwWWLHqAW21mntJIdz7t3NeFYRB asjH86c5LNdCUbnM6tMH4YFQ2cpWwPCjkm/hvoM861ao8H0t1bCOKlo5C2QoVQ/4V91u xVeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=KvyUbQkc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k18si6438532pls.428.2022.01.14.13.34.10; Fri, 14 Jan 2022 13:34:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=KvyUbQkc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242096AbiANO4j (ORCPT + 99 others); Fri, 14 Jan 2022 09:56:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242005AbiANO4i (ORCPT ); Fri, 14 Jan 2022 09:56:38 -0500 Received: from mail-ot1-x335.google.com (mail-ot1-x335.google.com [IPv6:2607:f8b0:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23AD2C061574 for ; Fri, 14 Jan 2022 06:56:38 -0800 (PST) Received: by mail-ot1-x335.google.com with SMTP id t6-20020a9d7746000000b005917e6b96ffso10307672otl.7 for ; Fri, 14 Jan 2022 06:56:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=HXQISz6uUvwg8Vwt1+DIrxstrllwfzEuYjBo3yyTGQk=; b=KvyUbQkcGR3KApmkiZfu8C5xmBmzwpDOMQhR6WXG3miM86IPV6nfbAa3aqFSmkFIT4 Io0wuqtpSpPfNvf2LkobGgtBXIiwpomuyI+x1Co09hZAF0EukRzWIEXi2XhrJZbThuWm UaJiYglKy6n6Yo1uw5Pqak6Ypb3N5cauggsXotdIs9wGfgXMjKqhcOwTSfFu4BFKaxEH kRQt0iOHxYWNkvVJPOBQNq1f356aEXVVIRTYJzY7C5+fKyVicWrLJALyIE831d4J85AM AKHNBV6dSiTSsKankfwnDqKPgqXdWyjIIw4JUt9kYQvtN9XfGuEqLx703FctdeIE4NgB mJqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=HXQISz6uUvwg8Vwt1+DIrxstrllwfzEuYjBo3yyTGQk=; b=g46BzvAYODEtXbrzhcLwgtxkkm0Zc1yHfJhYimIhXcdp8tIqzdL0VcbQpUznsEBOlU 9AGl8VlDc8t2prcYftbHiZuZCnWzDhVMuH/K9hCJm/xtEUS4yYJ6cgZVYmp7rBDojIQp 8t3oRVLKq1FItoXC8SLrG0LzSy3cfvPqdzHrZfgpMUbcXkCzKHTS5tH031IkvOHXvnhh pwI0c6bnCb6So4L+BxWmTLUDNX9ro2kAEuLS8OLarOn7hY9kCUNgJofgCRtSFJuClPvK ioR/qAplDU7awc7V/znPYZh3zPmfmJBTXgBX3TEyUdayKHQ6d5XekAOQy4m2Ml27QjKy QSsw== X-Gm-Message-State: AOAM530omM7XEZiKccVMO0VlZnEGJj0eUW57sUhp1usuCHs8cWF5pv4K gbi44jKxRjiiMB7DrqaNMJqiMYv5XbGqcyEsn1zXsSU4 X-Received: by 2002:a05:6830:19e6:: with SMTP id t6mr4712317ott.357.1642172197491; Fri, 14 Jan 2022 06:56:37 -0800 (PST) MIME-Version: 1.0 References: <20220114065141.14506-1-lukas.fink1@gmail.com> In-Reply-To: <20220114065141.14506-1-lukas.fink1@gmail.com> From: Alex Deucher Date: Fri, 14 Jan 2022 09:56:26 -0500 Message-ID: Subject: Re: [PATCH] drm/amdgpu: Fix rejecting Tahiti GPUs To: Lukas Fink Cc: "Deucher, Alexander" , Christian Koenig , xinhui pan , LKML , amd-gfx list Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 14, 2022 at 3:27 AM Lukas Fink wrote: > > eb4fd29afd4a ("drm/amdgpu: bind to any 0x1002 PCI diplay class device") added > generic bindings to amdgpu so that that it binds to all display class devices > with VID 0x1002 and then rejects those in amdgpu_pci_probe. > > Unfortunately it reuses a driver_data value of 0 to detect those new bindings, > which is already used to denote CHIP_TAHITI ASICs. > > The driver_data value given to those new bindings was changed in > dd0761fd24ea1 ("drm/amdgpu: set CHIP_IP_DISCOVERY as the asic type by default") > to CHIP_IP_DISCOVERY (=36), but it seems that the check in amdgpu_pci_probe > was forgotten to be changed. Therefore, it still rejects Tahiti GPUs. > > Link: https://gitlab.freedesktop.org/drm/amd/-/issues/1860 > Fixes: eb4fd29afd4a ("drm/amdgpu: bind to any 0x1002 PCI diplay class device") > > Signed-off-by: Lukas Fink > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c > index 9ec58bf74012..224d073022ac 100644 > --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c > @@ -1903,7 +1903,7 @@ static int amdgpu_pci_probe(struct pci_dev *pdev, > return -ENODEV; > } > > - if (flags == 0) { > + if (flags == CHIP_IP_DISCOVERY) { > DRM_INFO("Unsupported asic. Remove me when IP discovery init is in place.\n"); > return -ENODEV; > } Thanks. Actually this entire check can be removed at this point. The IP discovery support is in place. I'll send a patch. Alex > -- > 2.34.1 >