From: Greg KH <gregkh@linuxfoundation.org>
To: "Gangurde, Abhijit" <abhijit.gangurde@amd.com>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"Gupta, Nipun" <Nipun.Gupta@amd.com>,
"Agarwal, Nikhil" <nikhil.agarwal@amd.com>,
"Gupta, Puneet (DCG-ENG)" <puneet.gupta@amd.com>,
"git (AMD-Xilinx)" <git@amd.com>,
"Simek, Michal" <michal.simek@amd.com>,
"Jansen Van Vuuren, Pieter" <pieter.jansen-van-vuuren@amd.com>
Subject: Re: [PATCH 1/4] cdx: add support for bus enable and disable
Date: Wed, 12 Jul 2023 17:09:13 +0200 [thread overview]
Message-ID: <2023071223-unstopped-marsupial-9c89@gregkh> (raw)
In-Reply-To: <DM4PR12MB7765F182AAF927F780DEE8848F36A@DM4PR12MB7765.namprd12.prod.outlook.com>
On Wed, Jul 12, 2023 at 01:21:13PM +0000, Gangurde, Abhijit wrote:
> [AMD Official Use Only - General]
>
> > > CDX bus needs to be disabled before updating/writing devices
> > > in the FPGA. Once the devices are written, the bus shall be
> > > enabled. This change provides sysfs entry to enable/disable the
> > > CDX bus.
> > >
> > > Co-developed-by: Nipun Gupta <nipun.gupta@amd.com>
> > > Signed-off-by: Nipun Gupta <nipun.gupta@amd.com>
> > > Signed-off-by: Abhijit Gangurde <abhijit.gangurde@amd.com>
> > > Reviewed-by: Pieter Jansen van Vuuren <pieter.jansen-van-
> > vuuren@amd.com>
> > > Tested-by: Nikhil Agarwal <nikhil.agarwal@amd.com>
> > > ---
> > > Documentation/ABI/testing/sysfs-bus-cdx | 11 +++++
> > > drivers/cdx/cdx.c | 26 ++++++++++++
> > > drivers/cdx/controller/cdx_controller.c | 27 +++++++++++++
> > > drivers/cdx/controller/mc_cdx_pcol.h | 54
> > +++++++++++++++++++++++++
> > > drivers/cdx/controller/mcdi_functions.c | 24 +++++++++++
> > > drivers/cdx/controller/mcdi_functions.h | 16 ++++++++
> > > include/linux/cdx/cdx_bus.h | 6 +++
> > > 7 files changed, 164 insertions(+)
> > >
> > > diff --git a/Documentation/ABI/testing/sysfs-bus-cdx
> > b/Documentation/ABI/testing/sysfs-bus-cdx
> > > index 7af477f49998..0afa85b3c63b 100644
> > > --- a/Documentation/ABI/testing/sysfs-bus-cdx
> > > +++ b/Documentation/ABI/testing/sysfs-bus-cdx
> > > @@ -11,6 +11,17 @@ Description:
> > >
> > > # echo 1 > /sys/bus/cdx/rescan
> > >
> > > +What: /sys/bus/cdx/enable
> > > +Date: July 2023
> > > +Contact: nipun.gupta@amd.com
> > > +Description:
> > > + Writing y/1/on to this file enables the CDX bus and
> > > + writing n/0/off disables the bus.
> > > +
> > > + For example to disable CDX bus::
> > > +
> > > + # echo 0 > /sys/bus/cdx/enable
> >
> > What could go wrong! :)
> >
> > You don't say why disabling / enabling the bus is needed, this feels
> > like a very huge stick, why is this for all busses, and not just an
> > individual CDX bus?
> >
>
> As said in the description of the patch, disabling/enabling is needed when FPGA is being reprogrammed.
Ok, why would this not also be in the description for when you need to
look up what this file does? You will not be able to track it back to
the commit log very easily.
thanks,
greg k-h
next prev parent reply other threads:[~2023-07-12 15:10 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-11 12:10 [PATCH 0/4] cdx: provide sysfs interface for cdx device resources Abhijit Gangurde
2023-07-11 12:10 ` [PATCH 1/4] cdx: add support for bus enable and disable Abhijit Gangurde
2023-07-11 13:57 ` Greg KH
2023-07-12 13:21 ` Gangurde, Abhijit
2023-07-12 15:09 ` Greg KH [this message]
2023-07-11 12:10 ` [PATCH 2/4] cdx: add sysfs for reset_all Abhijit Gangurde
2023-07-11 13:59 ` Greg KH
2023-07-12 13:22 ` Gangurde, Abhijit
2023-07-11 12:10 ` [PATCH 3/4] cdx: create sysfs resource files Abhijit Gangurde
2023-07-11 14:00 ` Greg KH
2023-07-12 13:23 ` Gangurde, Abhijit
2023-07-12 15:11 ` Greg KH
2023-07-13 5:36 ` Gangurde, Abhijit
2023-07-13 5:57 ` Greg KH
2023-07-11 12:10 ` [PATCH 4/4] cdx: add sysfs for subsystem, class and revision Abhijit Gangurde
2023-07-11 14:02 ` Greg KH
2023-07-12 13:23 ` Gangurde, Abhijit
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2023071223-unstopped-marsupial-9c89@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=Nipun.Gupta@amd.com \
--cc=abhijit.gangurde@amd.com \
--cc=git@amd.com \
--cc=linux-kernel@vger.kernel.org \
--cc=michal.simek@amd.com \
--cc=nikhil.agarwal@amd.com \
--cc=pieter.jansen-van-vuuren@amd.com \
--cc=puneet.gupta@amd.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®