From: Tzung-Bi Shih <tzungbi@kernel.org>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
"Rafael J. Wysocki" <rafael@kernel.org>,
Danilo Krummrich <dakr@kernel.org>
Cc: Jonathan Corbet <corbet@lwn.net>, Shuah Khan <shuah@kernel.org>,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
Bartosz Golaszewski <brgl@kernel.org>,
Wolfram Sang <wsa+renesas@sang-engineering.com>,
Jason Gunthorpe <jgg@nvidia.com>, Johan Hovold <johan@kernel.org>,
"Paul E . McKenney" <paulmck@kernel.org>,
Dan Williams <dan.j.williams@intel.com>,
Linus Walleij <linusw@kernel.org>,
chrome-platform@lists.linux.dev, tzungbi@kernel.org,
driver-core@lists.linux.dev, linux-doc@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org
Subject: [PATCH v8 0/3] drivers/base: Introduce revocable
Date: Fri, 13 Feb 2026 09:23:04 +0000 [thread overview]
Message-ID: <20260213092307.858908-1-tzungbi@kernel.org> (raw)
The series is separated from [1] to show the independency and compare
potential use cases easier. This is the revocable core part. Use cases
are in other series.
The 1st patch introduces the revocable which is an implementation of ideas
from the talk [2].
The 2nd and 3rd patches add test cases for revocable in KUnit and selftest.
[1] https://lore.kernel.org/all/20251016054204.1523139-1-tzungbi@kernel.org
[2] https://lpc.events/event/17/contributions/1627/
---
v8:
- Rework on the revocable APIs. See changelog in [PATCH v8 1/3] for details.
v7: https://lore.kernel.org/all/20260116080235.350305-1-tzungbi@kernel.org
- Rebase onto next-20260115.
v6: https://lore.kernel.org/chrome-platform/20251106152330.11733-1-tzungbi@kernel.org
- Rebase onto next-20251106.
- Separate revocable core and use cases.
v5: https://lore.kernel.org/chrome-platform/20251016054204.1523139-1-tzungbi@kernel.org
- Rebase onto next-20251015.
- Add more context about the PoC.
- Support multiple revocable providers in the PoC.
v4: https://lore.kernel.org/chrome-platform/20250923075302.591026-1-tzungbi@kernel.org
- Rebase onto next-20250922.
- Remove the 5th patch from v3.
- Add fops replacement PoC in 5th - 7th patches.
v3: https://lore.kernel.org/chrome-platform/20250912081718.3827390-1-tzungbi@kernel.org
- Rebase onto https://lore.kernel.org/chrome-platform/20250828083601.856083-1-tzungbi@kernel.org
and next-20250912.
- The 4th patch changed accordingly.
v2: https://lore.kernel.org/chrome-platform/20250820081645.847919-1-tzungbi@kernel.org
- Rename "ref_proxy" -> "revocable".
- Add test cases in Kunit and selftest.
v1: https://lore.kernel.org/chrome-platform/20250814091020.1302888-1-tzungbi@kernel.org
Tzung-Bi Shih (3):
revocable: Revocable resource management
revocable: Add KUnit test cases
selftests: revocable: Add kselftest cases
.../driver-api/driver-model/index.rst | 1 +
.../driver-api/driver-model/revocable.rst | 256 +++++++++++
MAINTAINERS | 11 +
drivers/base/Kconfig | 5 +
drivers/base/Makefile | 5 +-
drivers/base/revocable.c | 228 ++++++++++
drivers/base/revocable_test.c | 410 ++++++++++++++++++
include/linux/revocable.h | 194 +++++++++
tools/testing/selftests/revocable/Makefile | 7 +
.../selftests/revocable/revocable_test.c | 177 ++++++++
.../selftests/revocable/revocable_test.h | 20 +
.../selftests/revocable/test-revocable.sh | 34 ++
.../selftests/revocable/test_modules/Makefile | 10 +
.../revocable/test_modules/revocable_test.c | 234 ++++++++++
14 files changed, 1591 insertions(+), 1 deletion(-)
create mode 100644 Documentation/driver-api/driver-model/revocable.rst
create mode 100644 drivers/base/revocable.c
create mode 100644 drivers/base/revocable_test.c
create mode 100644 include/linux/revocable.h
create mode 100644 tools/testing/selftests/revocable/Makefile
create mode 100644 tools/testing/selftests/revocable/revocable_test.c
create mode 100644 tools/testing/selftests/revocable/revocable_test.h
create mode 100755 tools/testing/selftests/revocable/test-revocable.sh
create mode 100644 tools/testing/selftests/revocable/test_modules/Makefile
create mode 100644 tools/testing/selftests/revocable/test_modules/revocable_test.c
--
2.53.0.310.g728cabbaf7-goog
next reply other threads:[~2026-02-13 9:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-13 9:23 Tzung-Bi Shih [this message]
2026-02-13 9:23 ` [PATCH v8 1/3] revocable: Revocable resource management Tzung-Bi Shih
2026-02-16 16:37 ` Bartosz Golaszewski
2026-02-23 7:03 ` Tzung-Bi Shih
2026-02-13 9:23 ` [PATCH v8 2/3] revocable: Add KUnit test cases Tzung-Bi Shih
2026-02-13 9:23 ` [PATCH v8 3/3] selftests: revocable: Add kselftest cases Tzung-Bi Shih
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=20260213092307.858908-1-tzungbi@kernel.org \
--to=tzungbi@kernel.org \
--cc=brgl@kernel.org \
--cc=chrome-platform@lists.linux.dev \
--cc=corbet@lwn.net \
--cc=dakr@kernel.org \
--cc=dan.j.williams@intel.com \
--cc=driver-core@lists.linux.dev \
--cc=gregkh@linuxfoundation.org \
--cc=jgg@nvidia.com \
--cc=johan@kernel.org \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linusw@kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=paulmck@kernel.org \
--cc=rafael@kernel.org \
--cc=shuah@kernel.org \
--cc=wsa+renesas@sang-engineering.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