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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 B0BCDC54E76 for ; Tue, 17 Jan 2023 17:22:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To: Subject:MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ESuzfZDWJSGGfhXUqKk2NZwqTm81Tq02Yl0c8riwx4s=; b=r8u7OseHll9XkX v+lJzp8QUxXEuCBcQOvZsEnRMBWZ0BsJL+SiDdbd5XuWpReH4KfRsETz7vA8XjFwD5W5W1lPuEvPB CHDjyL2YX/LULs3Zh8F+IIb694CkES3iXRzBE7pmjgTh+Nvhp4CFWPubvfGi/m6DEkSO+xzJKjhqw 7hPBNUXO4owx45b88jmUKiyQNzj3zSYsD4wQc4n510WTq2wv8EUz4qKvh8xFBRDgitRShCwcEXl4P ZSn1ygsDv7/kCPRRyuQjbHZoSk/CmcRoxEKHDuQzaDcLVWtCB/5NwGdAz0W/VcnNzAlSiTtUBjurk jclR0yoVlYwsDzLlGLiw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pHpel-00FF3e-HN; Tue, 17 Jan 2023 17:21:55 +0000 Received: from [2601:1c2:d80:3110::9307] by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1pHpeg-00FF2u-Rl; Tue, 17 Jan 2023 17:21:50 +0000 Message-ID: Date: Tue, 17 Jan 2023 09:21:48 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH 01/19] bus/cdx: add the cdx bus driver Content-Language: en-US To: Nipun Gupta , robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, gregkh@linuxfoundation.org, rafael@kernel.org, eric.auger@redhat.com, alex.williamson@redhat.com, cohuck@redhat.com, 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, jgg@nvidia.com, robin.murphy@arm.com, will@kernel.org, joro@8bytes.org, masahiroy@kernel.org, ndesaulniers@google.com, linux-arm-kernel@lists.infradead.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: okaya@kernel.org, harpreet.anand@amd.com, nikhil.agarwal@amd.com, michal.simek@amd.com, git@amd.com References: <20230117134139.1298-1-nipun.gupta@amd.com> <20230117134139.1298-2-nipun.gupta@amd.com> From: Randy Dunlap In-Reply-To: <20230117134139.1298-2-nipun.gupta@amd.com> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi-- On 1/17/23 05:41, Nipun Gupta wrote: > Introduce AMD CDX bus, which provides a mechanism for scanning > and probing CDX devices. These devices are memory mapped on > system bus for Application Processors(APUs). > > CDX devices can be changed dynamically in the Fabric and CDX > bus interacts with CDX controller to rescan the bus and > rediscover the devices. > > Signed-off-by: Nipun Gupta > Signed-off-by: Tarak Reddy > --- > Documentation/ABI/testing/sysfs-bus-cdx | 12 + > MAINTAINERS | 7 + > drivers/bus/Kconfig | 1 + > drivers/bus/Makefile | 2 + > drivers/bus/cdx/Kconfig | 14 + > drivers/bus/cdx/Makefile | 8 + > drivers/bus/cdx/cdx.c | 433 ++++++++++++++++++++++++ > drivers/bus/cdx/cdx.h | 62 ++++ > include/linux/cdx/cdx_bus.h | 153 +++++++++ > include/linux/mod_devicetable.h | 15 + > scripts/mod/devicetable-offsets.c | 4 + > scripts/mod/file2alias.c | 12 + > 12 files changed, 723 insertions(+) > create mode 100644 Documentation/ABI/testing/sysfs-bus-cdx > create mode 100644 drivers/bus/cdx/Kconfig > create mode 100644 drivers/bus/cdx/Makefile > create mode 100644 drivers/bus/cdx/cdx.c > create mode 100644 drivers/bus/cdx/cdx.h > create mode 100644 include/linux/cdx/cdx_bus.h > > diff --git a/drivers/bus/cdx/Kconfig b/drivers/bus/cdx/Kconfig > new file mode 100644 > index 000000000000..54e0623ebcff > --- /dev/null > +++ b/drivers/bus/cdx/Kconfig > @@ -0,0 +1,14 @@ > +# SPDX-License-Identifier: GPL-2.0 > +# > +# CDX bus configuration > +# > +# Copyright (C) 2022-2023, Advanced Micro Devices, Inc. > +# > + > +config CDX_BUS > + bool "CDX Bus driver" > + help > + Driver to enable CDX Bus. CDX bus provides a mechanism for > + scanning and probing of CDX devices. CDX devices are memory > + mapped on system bus for embedded CPUs. CDX bus uses CDX > + controller and firmware to scan the CDX devices. Would you mind telling people who use 'make *config' what CDX means, either in the bool prompt string or in the help text? > +/** > + * cdx_unregister_device - Unregister a CDX device > + * @dev: CDX device > + * @data: This is always passed as NULL, and is not used in this API, > + * but is required here as the bus_for_each_dev() API expects > + * the passed function (cdx_unregister_device) to have this > + * as an argument. > + * > + * @return: -errno on failure, 0 on success. The syntax (or spelling) for a function's return value in kernel-doc is just: * Return: -errno on failure, 0 on success. That should be changed in many places throughout. Thanks. -- ~Randy _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel