Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp667180pxb; Fri, 14 Jan 2022 13:34:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJxPcPRKxkVBKPlfjEj+qQ3LtpZeCVeRJUj0xuTBLI/KHoZHikm5z0csLeBzeKq3rKzNJBv1 X-Received: by 2002:a62:cd02:0:b0:4bd:8f59:dc4e with SMTP id o2-20020a62cd02000000b004bd8f59dc4emr10808519pfg.64.1642196076787; Fri, 14 Jan 2022 13:34:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642196076; cv=none; d=google.com; s=arc-20160816; b=0DHnRtJy56ezeHEXpjq0nWkCJBDUyOlSgLGdvx+dhsxaP658cUwAb8EGeTDT8w0C2Y VEt3tZ8BH3T2tPBBoSNWb4UJe+l2Rqi/Vb5OqRitEpowy8pPRJVgRzX53HsmnY42IXYO 4T0otEFUh6NyYWxTzhQxXpPaF09BG+czYF/dse5YNXJn/a9LQSCglfRP9L/CeyfpPTq+ yCuD25AikW6ihxYEmO3XQVsJGj/sOfYpYIuTNZ/MXK/sU3/a8U1wATATxTFuxByhvSaN QbO5/NjkcdO9srsCMwryCU/P2DEO81p7rVf5nBMBJXtMdQqiGqcCo7MGi2Btd9gspd+T l0mg== 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=wfClCLv6Y1r8w1Mu+agZFlOnL6tT+xTZ/GoMhkTbfjo=; b=stC+LEdXxqDBq+KhyZBBAfMkcdSMWEpGSqXaR4qOW3B7RbdZSzJE821yTkxXr0mzHB XXXwrjeGutDOe14AZ1WTFfLikvR1VYE3bJwXnmP8skratI4HGseUQF8V+QJL4pccu78i nUflJlbxBq/E309lCGxe4D8QpCP1muoJ0kuAHBZ2nKpmpCSvz5mtBTI08RWIaVMaHHNa UcJwY3N/vZdHs7lc4kziWYpAukxjb5CxMd9BWbC+A6Xqkn+HER3U3uXx3MAgGjVKEeb+ Ke5VUb3k0VxChQCXQtVecY3lEbpEswau8PBB3K985PnGbNMiiGZ3y3dLbk6D3B/M/u9D HOTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="lla/8dPm"; 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 h21si6820709pgg.832.2022.01.14.13.34.24; Fri, 14 Jan 2022 13:34:36 -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="lla/8dPm"; 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 S242116AbiANO6j (ORCPT + 99 others); Fri, 14 Jan 2022 09:58:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242086AbiANO6i (ORCPT ); Fri, 14 Jan 2022 09:58:38 -0500 Received: from mail-oi1-x231.google.com (mail-oi1-x231.google.com [IPv6:2607:f8b0:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71B64C061574 for ; Fri, 14 Jan 2022 06:58:38 -0800 (PST) Received: by mail-oi1-x231.google.com with SMTP id s127so12526583oig.2 for ; Fri, 14 Jan 2022 06:58: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=wfClCLv6Y1r8w1Mu+agZFlOnL6tT+xTZ/GoMhkTbfjo=; b=lla/8dPmgBwIE5Ye+/wPVYx4oODRSuU0LWqPXzTmjCkU1MHT4PyuZTKKBe3l/8maGy zGjT8mAseUGWVU1Fr5pUs90fhfl/4wIAzCJce1q26mz0N9EV894vNhMwd8xADKFb7MJX QSqE+Gu3lORLKfEe3P8Xo5gRH+Wh92nd+GVNSB0/0jJtbTztkUL+aR/+H0tceNsf1Wpv L2l4wB/y/iJs8GRZcLjRUQ9FfH583XbfrI+WT8SZs+04EURyFMwayApsm03ij2H2XLnL CGpG1IYL9fZu/EAhEZcqkqCWfIQdn2QEusCif3tdBVlBEVHX+ND0tMLJPQcDTqRm9F0a 26Kg== 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=wfClCLv6Y1r8w1Mu+agZFlOnL6tT+xTZ/GoMhkTbfjo=; b=aCMQHqYDKS36STUaTe3ILP9/Jv6bMKBqXP16M50yNUuCbA5IiyZXhIxkHZvxToLuUt gsVhM/2gfU9Ma772dX8n6cg1Hu52vKGSLNQluvoByN/+Ptx4fKCVso6BKj+cbcGPpaBL GlPjPCjJ8F2hNKCsNTcIlIlbbbWEccegzfvlkkgO2610BMuufF9ePmNFecUow5Br2Omr ZXtOp55X+sC+KRzPBLuzo9zTLpbf3EflvCsnVCgXvr8MOnTCC0MNTYFYt+1Izx1/raPi A9QVek0/gaApVj/W0UMrpdxuHiQKWb2iFMf3Izlj3rMfpYm/LesSbStasvAs68bPHz6D 4obg== X-Gm-Message-State: AOAM530U3YIhcQTvC4eZreTlqoNZKEYyY2ghJ4KA8F7s/hFyiDRh2XA9 KueoTq6V09epaQ4Mh/rJZgE1R6NRONKljt3+8RbzjKF8 X-Received: by 2002:a05:6808:300b:: with SMTP id ay11mr7410616oib.120.1642172317794; Fri, 14 Jan 2022 06:58:37 -0800 (PST) MIME-Version: 1.0 References: <20220114065141.14506-1-lukas.fink1@gmail.com> In-Reply-To: From: Alex Deucher Date: Fri, 14 Jan 2022 09:58:27 -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 9:56 AM Alex Deucher wrote: > > 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. Actually, I'll take this patch and then send a patch to remove it on top of that. Thanks for fixing this. Alex > > Alex > > > > -- > > 2.34.1 > >