From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5B1B6C77B7C for ; Fri, 26 May 2023 06:55:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229928AbjEZGzP (ORCPT ); Fri, 26 May 2023 02:55:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229805AbjEZGzO (ORCPT ); Fri, 26 May 2023 02:55:14 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA49D95 for ; Thu, 25 May 2023 23:55:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Transfer-Encoding :Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-ID:Content-Description; bh=vKzQlhcxkkMQoEfvC17xC/R7J7Er0cfz4WtFMuyrbs8=; b=dnAYnsr9eJUK36/YqKROOcjok7 Y6ihOcpYfhW2J/pvOgP+eBXvG9Dm3VsVJhwM5Hu0S45bkXohWI7ckNFaeMdKR2h6pkvoS35pxqbYh 0Or60z7pNg/fkozMkKVbLBxIrG6WIq8AHG5xVZAdIDfZlD7KOvGNaTdesCAx89kGB6UfrAY6YdbaR 9movQHme2dhEi7AcAhlQZmmohz+gnzIIeTJZrQJFuDPJSw/lV0jy/z+zYdLOUXZR3+9bFOLP8u2DI /gLXN3AQlQHzU4Nj4aqM55x9u222DtlDzoP/bg7PHj9tVcHOIr3xiPuyZ4EPV6yOUoDwEehWMXxdP fYog8VpQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1q2RLw-001KMS-1q; Fri, 26 May 2023 06:55:08 +0000 Date: Thu, 25 May 2023 23:55:08 -0700 From: Christoph Hellwig To: "Deucher, Alexander" Cc: Christoph Hellwig , Alex Deucher , "bhelgaas@google.com" , "amd-gfx@lists.freedesktop.org" , "Zhang, Morris" , "linux-pci@vger.kernel.org" Subject: Re: [PATCH] drm/amdgpu: add the accelerator pcie class Message-ID: References: <20230523040232.21756-1-shiwu.zhang@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org On Thu, May 25, 2023 at 08:52:06PM +0000, Deucher, Alexander wrote: > We already handle this today for CLASS_DISPLAY via a data table provided on our hardware that details the components on the board. The driver can then determine whether or not that combination of components is supported. If the data table doesn't exist or isn’t parse-able, or the components enumerated are not supported, the driver doesn't load. But things like module loading and initramfs generation still work off the ID table and not your internal tables. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D5151C7EE2F for ; Fri, 26 May 2023 08:02:59 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 623CE10E7C4; Fri, 26 May 2023 08:02:59 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by gabe.freedesktop.org (Postfix) with ESMTPS id B20D010E093 for ; Fri, 26 May 2023 06:55:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Transfer-Encoding :Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-ID:Content-Description; bh=vKzQlhcxkkMQoEfvC17xC/R7J7Er0cfz4WtFMuyrbs8=; b=dnAYnsr9eJUK36/YqKROOcjok7 Y6ihOcpYfhW2J/pvOgP+eBXvG9Dm3VsVJhwM5Hu0S45bkXohWI7ckNFaeMdKR2h6pkvoS35pxqbYh 0Or60z7pNg/fkozMkKVbLBxIrG6WIq8AHG5xVZAdIDfZlD7KOvGNaTdesCAx89kGB6UfrAY6YdbaR 9movQHme2dhEi7AcAhlQZmmohz+gnzIIeTJZrQJFuDPJSw/lV0jy/z+zYdLOUXZR3+9bFOLP8u2DI /gLXN3AQlQHzU4Nj4aqM55x9u222DtlDzoP/bg7PHj9tVcHOIr3xiPuyZ4EPV6yOUoDwEehWMXxdP fYog8VpQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1q2RLw-001KMS-1q; Fri, 26 May 2023 06:55:08 +0000 Date: Thu, 25 May 2023 23:55:08 -0700 From: Christoph Hellwig To: "Deucher, Alexander" Subject: Re: [PATCH] drm/amdgpu: add the accelerator pcie class Message-ID: References: <20230523040232.21756-1-shiwu.zhang@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Mailman-Approved-At: Fri, 26 May 2023 08:02:57 +0000 X-BeenThere: amd-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion list for AMD gfx List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "linux-pci@vger.kernel.org" , "Zhang, Morris" , Christoph Hellwig , "bhelgaas@google.com" , "amd-gfx@lists.freedesktop.org" , Alex Deucher Errors-To: amd-gfx-bounces@lists.freedesktop.org Sender: "amd-gfx" On Thu, May 25, 2023 at 08:52:06PM +0000, Deucher, Alexander wrote: > We already handle this today for CLASS_DISPLAY via a data table provided on our hardware that details the components on the board. The driver can then determine whether or not that combination of components is supported. If the data table doesn't exist or isn’t parse-able, or the components enumerated are not supported, the driver doesn't load. But things like module loading and initramfs generation still work off the ID table and not your internal tables.