Skip to content

sed-opal: Add STACK_RESET command#633

Open
blktests-ci[bot] wants to merge 1 commit intofor-next_basefrom
series/1064229=>for-next
Open

sed-opal: Add STACK_RESET command#633
blktests-ci[bot] wants to merge 1 commit intofor-next_basefrom
series/1064229=>for-next

Conversation

@blktests-ci
Copy link

@blktests-ci blktests-ci bot commented Mar 10, 2026

Pull request for series with
subject: sed-opal: Add STACK_RESET command
version: 1
url: https://patchwork.kernel.org/project/linux-block/list/?series=1064229

@blktests-ci
Copy link
Author

blktests-ci bot commented Mar 10, 2026

Upstream branch: 3eaa153
series: https://patchwork.kernel.org/project/linux-block/list/?series=1064229
version: 1

@blktests-ci
Copy link
Author

blktests-ci bot commented Mar 10, 2026

Upstream branch: 1e84542
series: https://patchwork.kernel.org/project/linux-block/list/?series=1064229
version: 1

@blktests-ci blktests-ci bot force-pushed the series/1064229=>for-next branch from ea11373 to a98256e Compare March 10, 2026 15:05
The TCG Opal device could enter a state where no new session can be
created, blocking even Discovery or PSID reset. While a power cycle
or waiting for the timeout should work, there is another possibility
for recovery: using the Stack Reset command.

The Stack Reset command is defined in the TCG Storage Architecture Core
Specification and is mandatory for all Opal devices (see Section 3.3.6
of the Opal SSC specification).

This patch implements the Stack Reset command. Sending it should clear
all active sessions immediately, allowing subsequent commands to run
successfully. While it is a TCG transport layer command, the Linux
kernel implements only Opal ioctls, so it makes sense to use the
IOC_OPAL ioctl interface.

The Stack Reset takes no arguments; the response can be success or pending.
If the command reports a pending state, userspace can try to repeat it;
in this case, the code returns -EBUSY.

Signed-off-by: Milan Broz <gmazyland@gmail.com>
Reviewed-by: Ondrej Kozina <okozina@redhat.com>
@blktests-ci
Copy link
Author

blktests-ci bot commented Mar 11, 2026

Upstream branch: 1e84542
series: https://patchwork.kernel.org/project/linux-block/list/?series=1064229
version: 1

@blktests-ci blktests-ci bot force-pushed the series/1064229=>for-next branch from a98256e to 8b00bcc Compare March 11, 2026 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant