Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp36917679rwd; Tue, 11 Jul 2023 07:17:40 -0700 (PDT) X-Google-Smtp-Source: APBJJlEKvmdxYGHK7RaeK03lI2kD1e0FPvmPvN4p6f1qzV7S/G33C7q2+j0p1KsEJ1NJ71zlzkys X-Received: by 2002:a05:6402:2692:b0:51e:5e44:6508 with SMTP id w18-20020a056402269200b0051e5e446508mr5316105edd.1.1689085060455; Tue, 11 Jul 2023 07:17:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689085060; cv=none; d=google.com; s=arc-20160816; b=t08lj8+vF8XRT/yk6KR7BXS/wAPw7FuDobYPGou+pJPxrAaCvc2k8grXPvCxOZHl8W bwAFa6ChDcMImISntRsT1FhU92+JimC6qYFzOej4HaLcCuOoqx2ZgmggUgleLkxb1e+j lBJz3MNUw9RCr1XwUAL04VPI+lAkhXrQGynGYW03g8SpbJ2vhMZphGAfcJ5f8asa40Gd t2Q/ribUc1kTpZTxAwGCskNTVUTRvg2hQ5+lk5HRVJb11wZMWKrOaMFaEM6bIn5txe2u I9tHKWGpnTg6eUtEV1MP/SegsSmmsfGRIPvcfZI2//cej3CRF2zeCnQ01EkbwqwvHvsM EzXw== 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=r808XKP3LdhC5GslF1fw4AzichS7OCaAcwc/Kr0Bb9g=; fh=6qQvFla5I4WDznEkGy4c24ZOLA08yaU67Cd7NQagj7o=; b=rMDrVIW+Wf5wt0Yr9GXjvBRUC0ikpjSkvZXi0naXtEa0pLI7KlSOpXNt2Ys9+Vd29m i30QC2ettg0gLPPMow4K9+1unUPkQZRJoLZLfJ+rCtEt8fCFiUwEbUY9Mkb/Fr8Sj1pK vB5Ix4bspLrcm0NusqUlixhR42xmOlNRZvy+OgX02FZd4hAOYeQKubGFs6MtLUBzoEie vuCVCBiCvXL1KiirjCzAvSZMXj6RtVGDmstNb32EhJfA64wJ3S8V4fGcbIsWpwc7B1Q3 z1LyLYBsP3IUxZ7IEmZx9dEfW+X54qs1O4Hl+P8LAVrSdtfi16VXMBWC5UHgw/E/Beb5 WnUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=MVKpNUtr; 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 o17-20020a056402039100b0051e059448c9si2135809edv.387.2023.07.11.07.17.16; Tue, 11 Jul 2023 07:17:40 -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=MVKpNUtr; 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 S233197AbjGKOAt (ORCPT + 99 others); Tue, 11 Jul 2023 10:00:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229714AbjGKOAp (ORCPT ); Tue, 11 Jul 2023 10:00:45 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2C9CE69 for ; Tue, 11 Jul 2023 07:00:41 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 69110614F9 for ; Tue, 11 Jul 2023 14:00:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 78241C433C8; Tue, 11 Jul 2023 14:00:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1689084040; bh=hwuogJ3ObcfPVVmSWTKMTekt8luIJ5KDC/wJPa8q7cc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MVKpNUtrvulQtO37zr4Pu9uuJI3y/k4cn24YAeUF/aUsrlj1axOER/BibykldFdlw qGZEuLPhpNvX/W4R6+WUrZMjHWnYQEDwekAmGQ+oV0s6hnvTRdqtxU/oRQuBXwDWcv a3oVQYK4kjNPBNuakiBaIqU12wikFYSL4sX2lfpg= Date: Tue, 11 Jul 2023 16:00:37 +0200 From: Greg KH To: Abhijit Gangurde Cc: linux-kernel@vger.kernel.org, Nipun.Gupta@amd.com, nikhil.agarwal@amd.com, puneet.gupta@amd.com, git@amd.com, michal.simek@amd.com, Pieter Jansen van Vuuren Subject: Re: [PATCH 3/4] cdx: create sysfs resource files Message-ID: <2023071148-grievance-gulf-0841@gregkh> References: <20230711121027.936487-1-abhijit.gangurde@amd.com> <20230711121027.936487-4-abhijit.gangurde@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230711121027.936487-4-abhijit.gangurde@amd.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 Tue, Jul 11, 2023 at 05:40:26PM +0530, Abhijit Gangurde wrote: > Resource files provides the basic MMIO regions info to the > user-space. Also, resources devices can be used to mmap the > MMIO regions in the user-space. > > Co-developed-by: Puneet Gupta > Signed-off-by: Puneet Gupta > Co-developed-by: Nipun Gupta > Signed-off-by: Nipun Gupta > Signed-off-by: Abhijit Gangurde > Reviewed-by: Pieter Jansen van Vuuren > Tested-by: Nikhil Agarwal > --- > Documentation/ABI/testing/sysfs-bus-cdx | 15 +++ > drivers/cdx/cdx.c | 139 +++++++++++++++++++++++- > include/linux/cdx/cdx_bus.h | 10 ++ > 3 files changed, 163 insertions(+), 1 deletion(-) > > diff --git a/Documentation/ABI/testing/sysfs-bus-cdx b/Documentation/ABI/testing/sysfs-bus-cdx > index d9e00058471d..6ca47b6442ce 100644 > --- a/Documentation/ABI/testing/sysfs-bus-cdx > +++ b/Documentation/ABI/testing/sysfs-bus-cdx > @@ -76,3 +76,18 @@ Description: > For example:: > > # echo 1 > /sys/bus/cdx/devices/.../remove > + > +What: /sys/bus/cdx/devices/.../resource > +Date: July 2023 > +Contact: puneet.gupta@amd.com > +Description: > + The resource file contains host addresses of CDX device > + resources. Each line of the resource file describes a region > + with start, end, and flag fields. If you documented what this file looked like here, it would be obvious that this is not an acceptable sysfs file in any sense of the word. Please do so, and then fix the patch to not do that at all. thanks, greg k-h