From: Abhijit Gangurde <abhijit.gangurde@amd.com>
To: <gregkh@linuxfoundation.org>, <masahiroy@kernel.org>,
<linux-kernel@vger.kernel.org>
Cc: <puneet.gupta@amd.com>, <Nipun.Gupta@amd.com>,
<nikhil.agarwal@amd.com>, <michal.simek@amd.com>, <git@amd.com>,
Abhijit Gangurde <abhijit.gangurde@amd.com>
Subject: [PATCH v7 0/7] cdx: provide sysfs interface for cdx device resources
Date: Tue, 17 Oct 2023 21:34:58 +0530 [thread overview]
Message-ID: <20231017160505.10640-1-abhijit.gangurde@amd.com> (raw)
This patch series provides sysfs interface to
- enable and disable of cdx bus
- reset all the devices on cdx bus
- subsystem, class and revision for cdx device
Changes in v7:
- Create symbol namespaces for cdx subsystem
Changes in v6:
- Register cdx bus on cdx subsystem
- Remove bus attributes enable, disable and reset
- Add new device attributes enable visible only for bus
device.
- Use reset attribute of cdx device for bus reset.
Changes in v5:
- Rebased on Linux 6.6
Changes in v4:
- Make ida as static
- Improve commit message
- Add sparse markings for the lock
Changes in v3:
- Remove local cdx controller list from cdx bus system and
instead use platform bus to locate controller
- Use ida to allocate unique id for registered controller
Changes in v2:
- Introduce lock to protect controller ops
- Split sysfs entry enable to enable and disable
- sysfs entry enable and disable take bus number as an argument
- sysfs entry reset takes bus number as an argument
Abhijit Gangurde (7):
cdx: Remove cdx controller list from cdx bus system
cdx: Introduce lock to protect controller ops
cdx: Create symbol namespaces for cdx subsystem
cdx: Register cdx bus as a device on cdx subsystem
cdx: add support for bus enable and disable
cdx: add sysfs for bus reset
cdx: add sysfs for subsystem, class and revision
Documentation/ABI/testing/sysfs-bus-cdx | 66 +++++-
drivers/cdx/Makefile | 2 +
drivers/cdx/cdx.c | 264 +++++++++++++++++++++---
drivers/cdx/cdx.h | 22 +-
drivers/cdx/controller/cdx_controller.c | 20 ++
drivers/cdx/controller/mc_cdx_pcol.h | 54 +++++
drivers/cdx/controller/mcdi_functions.c | 31 +++
drivers/cdx/controller/mcdi_functions.h | 18 ++
drivers/vfio/cdx/main.c | 1 +
include/linux/cdx/cdx_bus.h | 41 +++-
include/linux/mod_devicetable.h | 10 +
scripts/mod/devicetable-offsets.c | 4 +
scripts/mod/file2alias.c | 8 +
13 files changed, 506 insertions(+), 35 deletions(-)
--
2.34.1
next reply other threads:[~2023-10-17 16:05 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-17 16:04 Abhijit Gangurde [this message]
2023-10-17 16:04 ` [PATCH v7 1/7] cdx: Remove cdx controller list from cdx bus system Abhijit Gangurde
2023-10-17 16:05 ` [PATCH v7 2/7] cdx: Introduce lock to protect controller ops Abhijit Gangurde
2023-10-17 16:05 ` [PATCH v7 3/7] cdx: Create symbol namespaces for cdx subsystem Abhijit Gangurde
2023-10-17 16:05 ` [PATCH v7 4/7] cdx: Register cdx bus as a device on " Abhijit Gangurde
2023-10-17 16:05 ` [PATCH v7 5/7] cdx: add support for bus enable and disable Abhijit Gangurde
2023-10-17 16:05 ` [PATCH v7 6/7] cdx: add sysfs for bus reset Abhijit Gangurde
2023-10-17 16:05 ` [PATCH v7 7/7] cdx: add sysfs for subsystem, class and revision Abhijit Gangurde
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=20231017160505.10640-1-abhijit.gangurde@amd.com \
--to=abhijit.gangurde@amd.com \
--cc=Nipun.Gupta@amd.com \
--cc=git@amd.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=masahiroy@kernel.org \
--cc=michal.simek@amd.com \
--cc=nikhil.agarwal@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®