From 9ed35eaa1c6f0fe023497a1cc73037d391bf44a9 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sat, 30 Mar 2024 23:21:44 -0400 Subject: kernel: nvme: Ignore CAP.CSS Signed-off-by: Ian Moffett --- sys/dev/ic/nvme.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/sys/dev/ic/nvme.c b/sys/dev/ic/nvme.c index 25c1dd2..e046680 100644 --- a/sys/dev/ic/nvme.c +++ b/sys/dev/ic/nvme.c @@ -420,7 +420,6 @@ nvme_init_controller(struct nvme_bar *bar) struct nvme_state state = { . bar = bar }; struct nvme_queue *adminq = &state.adminq; - uint8_t cap_css = CAP_CSS(bar->caps); uint16_t mqes = CAP_MQES(bar->caps); uint16_t cmdreg_bits = PCI_BUS_MASTERING | PCI_MEM_SPACE; @@ -435,15 +434,6 @@ nvme_init_controller(struct nvme_bar *bar) bar->asq = VIRT_TO_PHYS(adminq->sq); bar->acq = VIRT_TO_PHYS(adminq->cq); - /* Set up supported command sets */ - if (__TEST(cap_css, __BIT(7))) { - /* Admin command sets only */ - bar->config |= (7UL << CONFIG_CSS_SHIFT); - } else if (__TEST(cap_css, __BIT(6))) { - /* All supported I/O command sets */ - bar->config |= (6UL << CONFIG_CSS_SHIFT); - } - nvme_enable_controller(&state); return 0; } -- cgit v1.2.3