* [PATCH] nvmet: Add support for FDP devices in fabrics passthru path [not found] <CGME20250715061856epcas5p196a0b67fe58b71e1f81f98a903e429c0@epcas5p1.samsung.com> @ 2025-07-15 6:18 ` Nitesh Shetty 2025-07-15 8:09 ` Christoph Hellwig 0 siblings, 1 reply; 4+ messages in thread From: Nitesh Shetty @ 2025-07-15 6:18 UTC (permalink / raw) To: Christoph Hellwig, Sagi Grimberg, Chaitanya Kulkarni Cc: gost.dev, nitheshshetty, Nitesh Shetty, linux-nvme, linux-kernel In nvmet passthru path FDP is disabled, because of failure of admin_get_features FDP(0x1d) feature command. Supporting this through nvmet_setup_passthru_command enables FDP. Signed-off-by: Nitesh Shetty <nj.shetty@samsung.com> --- drivers/nvme/target/passthru.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/nvme/target/passthru.c b/drivers/nvme/target/passthru.c index b7515c53829b..bf27ae4c42dc 100644 --- a/drivers/nvme/target/passthru.c +++ b/drivers/nvme/target/passthru.c @@ -460,6 +460,7 @@ static u16 nvmet_passthru_get_set_features(struct nvmet_req *req) case NVME_FEAT_PLM_WINDOW: case NVME_FEAT_HOST_BEHAVIOR: case NVME_FEAT_SANITIZE: + case NVME_FEAT_FDP: case NVME_FEAT_VENDOR_START ... NVME_FEAT_VENDOR_END: return nvmet_setup_passthru_command(req); base-commit: 3f31a806a62e44f7498e2d17719c03f816553f11 -- 2.43.0 ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] nvmet: Add support for FDP devices in fabrics passthru path 2025-07-15 6:18 ` [PATCH] nvmet: Add support for FDP devices in fabrics passthru path Nitesh Shetty @ 2025-07-15 8:09 ` Christoph Hellwig 2025-07-16 8:43 ` Nitesh Shetty 0 siblings, 1 reply; 4+ messages in thread From: Christoph Hellwig @ 2025-07-15 8:09 UTC (permalink / raw) To: Nitesh Shetty Cc: Christoph Hellwig, Sagi Grimberg, Chaitanya Kulkarni, gost.dev, nitheshshetty, linux-nvme, linux-kernel On Tue, Jul 15, 2025 at 11:48:04AM +0530, Nitesh Shetty wrote: > In nvmet passthru path FDP is disabled, because of failure of > admin_get_features FDP(0x1d) feature command. > Supporting this through nvmet_setup_passthru_command enables FDP. I don't think this is safe - the feature has endurance group scope and thus can affect other controllers not passed through as well. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] nvmet: Add support for FDP devices in fabrics passthru path 2025-07-15 8:09 ` Christoph Hellwig @ 2025-07-16 8:43 ` Nitesh Shetty 2025-07-16 11:24 ` Christoph Hellwig 0 siblings, 1 reply; 4+ messages in thread From: Nitesh Shetty @ 2025-07-16 8:43 UTC (permalink / raw) To: Christoph Hellwig Cc: Sagi Grimberg, Chaitanya Kulkarni, gost.dev, nitheshshetty, linux-nvme, linux-kernel [-- Attachment #1: Type: text/plain, Size: 968 bytes --] On 15/07/25 10:09AM, Christoph Hellwig wrote: >On Tue, Jul 15, 2025 at 11:48:04AM +0530, Nitesh Shetty wrote: >> In nvmet passthru path FDP is disabled, because of failure of >> admin_get_features FDP(0x1d) feature command. >> Supporting this through nvmet_setup_passthru_command enables FDP. > >I don't think this is safe - the feature has endurance group scope >and thus can affect other controllers not passed through as well. > Agree, how about only enabling only for nvme_admin_get_features, but not for nvme_admin_set_features, something like below? --- a/drivers/nvme/target/passthru.c +++ b/drivers/nvme/target/passthru.c @@ -533,6 +533,8 @@ u16 nvmet_parse_passthru_admin_cmd(struct nvmet_req *req) case NVME_FEAT_HOST_ID: req->execute = nvmet_execute_get_features; return NVME_SC_SUCCESS; + case NVME_FEAT_FDP: + return nvmet_setup_passthru_command(req); default: return nvmet_passthru_get_set_features(req); } Thanks, Nitesh [-- Attachment #2: Type: text/plain, Size: 0 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] nvmet: Add support for FDP devices in fabrics passthru path 2025-07-16 8:43 ` Nitesh Shetty @ 2025-07-16 11:24 ` Christoph Hellwig 0 siblings, 0 replies; 4+ messages in thread From: Christoph Hellwig @ 2025-07-16 11:24 UTC (permalink / raw) To: Nitesh Shetty Cc: Christoph Hellwig, Sagi Grimberg, Chaitanya Kulkarni, gost.dev, nitheshshetty, linux-nvme, linux-kernel On Wed, Jul 16, 2025 at 02:13:55PM +0530, Nitesh Shetty wrote: > On 15/07/25 10:09AM, Christoph Hellwig wrote: >> On Tue, Jul 15, 2025 at 11:48:04AM +0530, Nitesh Shetty wrote: >>> In nvmet passthru path FDP is disabled, because of failure of >>> admin_get_features FDP(0x1d) feature command. >>> Supporting this through nvmet_setup_passthru_command enables FDP. >> >> I don't think this is safe - the feature has endurance group scope >> and thus can affect other controllers not passed through as well. >> > Agree, how about only enabling only for nvme_admin_get_features, > but not for nvme_admin_set_features, something like below? Yes, that looks fine. ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-07-16 11:24 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <CGME20250715061856epcas5p196a0b67fe58b71e1f81f98a903e429c0@epcas5p1.samsung.com>
2025-07-15 6:18 ` [PATCH] nvmet: Add support for FDP devices in fabrics passthru path Nitesh Shetty
2025-07-15 8:09 ` Christoph Hellwig
2025-07-16 8:43 ` Nitesh Shetty
2025-07-16 11:24 ` Christoph Hellwig
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®