Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp2370526rwa; Mon, 22 Aug 2022 06:46:00 -0700 (PDT) X-Google-Smtp-Source: AA6agR426K6CDU1G2CK9XproCqHfEdZlJqSmEDNuHwFCgOC3v+r+b48IBikjPVGF9DRGn8R1Nkib X-Received: by 2002:a17:907:6eac:b0:730:a07f:38bb with SMTP id sh44-20020a1709076eac00b00730a07f38bbmr13519587ejc.750.1661175959758; Mon, 22 Aug 2022 06:45:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661175959; cv=none; d=google.com; s=arc-20160816; b=SWKx2AQrBo18+1lw5CHeqG6ewA2bUIdR87KulUQqjfByOf7XDFGhszYXTkuISv02E8 WZwIvsvQkKKu/qSscPrjnvKL/2ipwRQcw20MVACDdwuB4apPF03yvmUiSaah0bhEEgzm p5K9j0UxpGwOozfsB/2N0MuqOTl+QlfcgGjYHd5ZnSdjFMRUJA9jW0QhEyC3ukcdl3HT uw8ora4yx5Y64a2eemD8ulUJjNU4V7oC+rfuerbWwaAMRkgi7HIa1bGWJvddzTs+DC1X FFn524UybSg+5IIXRLH/7R5QyhCidshxhwNu8tddWn+eqqCREgsKsS1T2Usk8qwoGVLS bC4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=qW53tMRdRoxyxpueQkVKm4d/shnT4llF46uxIm2M9y0=; b=HIkub4Tf4i0qGChM+l8Cyu/cjDL5ggagFow79DfhVldP2VlduC5H+TAFWYdl536zRq rStEajgVs00KMeKBoH73j9AFnLp4mvR2miipP32rT4gqcyR++tijpGvIB340C/eeMMSB 54Mpm0I0r75Va0z9BOLVhN7tveyKylMPmJvVg2v+IOzshaZbouRbjdeGq+ERhb2TcH8/ 4h5+XKt0IGlH2A9P9TWmguj8jyscii7oJU3SjIWerNhngsrV90pAIGMdKBy1l+b1GQOj fQo/c+5gQ8sfVC5rtP3O1511nky2u37rZuNUN2ey4iE0A0RaMIn1eVT1NTyJsttb+mkw ssiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=LTkh9d2H; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v17-20020a056402185100b0043df391fcbesi8323573edy.583.2022.08.22.06.45.33; Mon, 22 Aug 2022 06:45:59 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=LTkh9d2H; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235097AbiHVN3x (ORCPT + 99 others); Mon, 22 Aug 2022 09:29:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235190AbiHVN3k (ORCPT ); Mon, 22 Aug 2022 09:29:40 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1D7518346; Mon, 22 Aug 2022 06:29:39 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4B50761196; Mon, 22 Aug 2022 13:29:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0D7E7C433C1; Mon, 22 Aug 2022 13:29:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661174978; bh=tKR+1ncaLktuwBqOq+cs01Cvto2mRKf0wx5WnwSpD0c=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LTkh9d2Haa525kwq2grlzk2TfJzupWlmdIDQ5qo0V4w55EsXMCH6v1DJh2tvLXpfu DrZ7mhtp3qKmb7fNWOImHLVlYbOQdRn88AvwmFxXXov+Y+Bv007ApBHm64gHBnHBZr s2NReW++3jE2tMLkvDU/VdpAQO1j8Q8pySCO8tns= Date: Mon, 22 Aug 2022 15:29:35 +0200 From: Greg KH To: "Gupta, Nipun" Cc: "robh+dt@kernel.org" , "krzysztof.kozlowski+dt@linaro.org" , "rafael@kernel.org" , "eric.auger@redhat.com" , "alex.williamson@redhat.com" , "cohuck@redhat.com" , "Gupta, Puneet (DCG-ENG)" , "song.bao.hua@hisilicon.com" , "mchehab+huawei@kernel.org" , "maz@kernel.org" , "f.fainelli@gmail.com" , "jeffrey.l.hugo@gmail.com" , "saravanak@google.com" , "Michael.Srba@seznam.cz" , "mani@kernel.org" , "yishaih@nvidia.com" , "jgg@ziepe.ca" , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" , "kvm@vger.kernel.org" , "okaya@kernel.org" , "Anand, Harpreet" , "Agarwal, Nikhil" , "Simek, Michal" , "git (AMD-Xilinx)" , "jgg@nvidia.com" , Robin Murphy Subject: Re: [RFC PATCH v2 2/6] bus/cdx: add the cdx bus driver Message-ID: References: <20220803122655.100254-1-nipun.gupta@amd.com> <20220817150542.483291-1-nipun.gupta@amd.com> <20220817150542.483291-3-nipun.gupta@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 On Mon, Aug 22, 2022 at 01:21:47PM +0000, Gupta, Nipun wrote: > [AMD Official Use Only - General] > > > > > -----Original Message----- > > From: Greg KH > > Sent: Wednesday, August 17, 2022 9:03 PM > > To: Gupta, Nipun > > Cc: robh+dt@kernel.org; krzysztof.kozlowski+dt@linaro.org; rafael@kernel.org; > > eric.auger@redhat.com; alex.williamson@redhat.com; cohuck@redhat.com; > > Gupta, Puneet (DCG-ENG) ; > > song.bao.hua@hisilicon.com; mchehab+huawei@kernel.org; maz@kernel.org; > > f.fainelli@gmail.com; jeffrey.l.hugo@gmail.com; saravanak@google.com; > > Michael.Srba@seznam.cz; mani@kernel.org; yishaih@nvidia.com; > > jgg@ziepe.ca; linux-kernel@vger.kernel.org; devicetree@vger.kernel.org; > > kvm@vger.kernel.org; okaya@kernel.org; Anand, Harpreet > > ; Agarwal, Nikhil ; > > Simek, Michal ; git (AMD-Xilinx) > > Subject: Re: [RFC PATCH v2 2/6] bus/cdx: add the cdx bus driver > > > > [CAUTION: External Email] > > > > On Wed, Aug 17, 2022 at 08:35:38PM +0530, Nipun Gupta wrote: > > > CDX bus driver manages the scanning and populating FPGA > > > based devices present on the CDX bus. > > > > > > The bus driver sets up the basic infrastructure and fetches > > > the device related information from the firmware. These > > > devices are registered as platform devices. > > > > Ick, why? These aren't platform devices, they are CDX devices. Make > > them real devices here, don't abuse the platform device interface for > > things that are not actually on the platform bus. > > CDX is a virtual bus (FW based) which discovers FPGA based platform > devices based on communication with FW. virtual busses are fine to have as a real bus in the kernel, no problem there. > These devices are essentially platform devices as these are memory mapped > on system bus, but having a property that they are dynamically discovered > via FW and are rescannable. If they are dynamically discoverable and rescannable, then great, it's a bus in the kernel and NOT a platform device. > I think your point is correct in the sense that CDX bus is not an actual bus, > but a FW based mechanism to discover FPGA based platform devices. > > Can you kindly suggest us if we should have the CDX platform device scanning > code as a CDX bus in "drivers/bus/" folder OR have it in "drivers/fpga/" or > "drivers/platform/" or which other suitable location? drivers/cdx/ ? thanks, greg k-h