* Re: [PATCH] nvme: Move nvme_setup_cmd before hot_pathing
[not found] <20260320052101epcms2p42ae135da60b36685e9b7fca6849b57a6@epcms2p4>
@ 2026-03-22 8:22 ` kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-03-22 8:22 UTC (permalink / raw)
To: 전민식, kbusch@kernel.org, axboe@kernel.dk
Cc: llvm, oe-kbuild-all, sven@kernel.org, j@jannau.net,
neal@gompa.dev, hch@lst.de, sagi@grimberg.me,
justin.tee@broadcom.com, nareshgottumukkala83@gmail.com,
paul.ely@broadcom.com, kch@nvidia.com,
linux-arm-kernel@lists.infradead.org,
linux-nvme@lists.infradead.org, asahi@lists.linux.dev,
linux-kernel@vger.kernel.org, 전민식
Hi 전민식,
kernel test robot noticed the following build warnings:
[auto build test WARNING on axboe/for-next]
[also build test WARNING on linus/master v7.0-rc4 next-20260320]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/nvme-Move-nvme_setup_cmd-before-hot_pathing/20260322-080947
base: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux.git for-next
patch link: https://lore.kernel.org/r/20260320052101epcms2p42ae135da60b36685e9b7fca6849b57a6%40epcms2p4
patch subject: [PATCH] nvme: Move nvme_setup_cmd before hot_pathing
config: i386-randconfig-003-20260322 (https://download.01.org/0day-ci/archive/20260322/202603221611.fblmNLio-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260322/202603221611.fblmNLio-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202603221611.fblmNLio-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/nvme/host/rdma.c:2067:1: warning: unused label 'unmap_qe' [-Wunused-label]
2067 | unmap_qe:
| ^~~~~~~~~
1 warning generated.
vim +/unmap_qe +2067 drivers/nvme/host/rdma.c
711023071960285 Christoph Hellwig 2016-07-06 1991
fc17b6534eb8395 Christoph Hellwig 2017-06-03 1992 static blk_status_t nvme_rdma_queue_rq(struct blk_mq_hw_ctx *hctx,
711023071960285 Christoph Hellwig 2016-07-06 1993 const struct blk_mq_queue_data *bd)
711023071960285 Christoph Hellwig 2016-07-06 1994 {
711023071960285 Christoph Hellwig 2016-07-06 1995 struct nvme_ns *ns = hctx->queue->queuedata;
711023071960285 Christoph Hellwig 2016-07-06 1996 struct nvme_rdma_queue *queue = hctx->driver_data;
711023071960285 Christoph Hellwig 2016-07-06 1997 struct request *rq = bd->rq;
711023071960285 Christoph Hellwig 2016-07-06 1998 struct nvme_rdma_request *req = blk_mq_rq_to_pdu(rq);
711023071960285 Christoph Hellwig 2016-07-06 1999 struct nvme_rdma_qe *sqe = &req->sqe;
f4b9e6c90c57251 Keith Busch 2021-03-17 2000 struct nvme_command *c = nvme_req(rq)->cmd;
711023071960285 Christoph Hellwig 2016-07-06 2001 struct ib_device *dev;
3bc32bb1186ccaf Christoph Hellwig 2018-06-11 2002 bool queue_ready = test_bit(NVME_RDMA_Q_LIVE, &queue->flags);
fc17b6534eb8395 Christoph Hellwig 2017-06-03 2003 blk_status_t ret;
fc17b6534eb8395 Christoph Hellwig 2017-06-03 2004 int err;
711023071960285 Christoph Hellwig 2016-07-06 2005
711023071960285 Christoph Hellwig 2016-07-06 2006 WARN_ON_ONCE(rq->tag < 0);
711023071960285 Christoph Hellwig 2016-07-06 2007
ae1c609d185960c 전민식 2026-03-20 2008 ret = nvme_setup_cmd(ns, rq);
ae1c609d185960c 전민식 2026-03-20 2009 if (ret)
ae1c609d185960c 전민식 2026-03-20 2010 return ret;
ae1c609d185960c 전민식 2026-03-20 2011
a97157440e1e69c Andy Chiu 2021-04-26 2012 if (!nvme_check_ready(&queue->ctrl->ctrl, rq, queue_ready))
a97157440e1e69c Andy Chiu 2021-04-26 2013 return nvme_fail_nonready_command(&queue->ctrl->ctrl, rq);
553cd9ef82edd81 Christoph Hellwig 2016-11-02 2014
711023071960285 Christoph Hellwig 2016-07-06 2015 dev = queue->device->dev;
62f99b62e5e3b88 Max Gurtovoy 2019-06-06 2016
62f99b62e5e3b88 Max Gurtovoy 2019-06-06 2017 req->sqe.dma = ib_dma_map_single(dev, req->sqe.data,
62f99b62e5e3b88 Max Gurtovoy 2019-06-06 2018 sizeof(struct nvme_command),
62f99b62e5e3b88 Max Gurtovoy 2019-06-06 2019 DMA_TO_DEVICE);
62f99b62e5e3b88 Max Gurtovoy 2019-06-06 2020 err = ib_dma_mapping_error(dev, req->sqe.dma);
62f99b62e5e3b88 Max Gurtovoy 2019-06-06 2021 if (unlikely(err))
62f99b62e5e3b88 Max Gurtovoy 2019-06-06 2022 return BLK_STS_RESOURCE;
62f99b62e5e3b88 Max Gurtovoy 2019-06-06 2023
711023071960285 Christoph Hellwig 2016-07-06 2024 ib_dma_sync_single_for_cpu(dev, sqe->dma,
711023071960285 Christoph Hellwig 2016-07-06 2025 sizeof(struct nvme_command), DMA_TO_DEVICE);
711023071960285 Christoph Hellwig 2016-07-06 2026
6887fc6495f2dfd Sagi Grimberg 2022-10-03 2027 nvme_start_request(rq);
711023071960285 Christoph Hellwig 2016-07-06 2028
5ec5d3bddc6b912 Max Gurtovoy 2020-05-19 2029 if (IS_ENABLED(CONFIG_BLK_DEV_INTEGRITY) &&
5ec5d3bddc6b912 Max Gurtovoy 2020-05-19 2030 queue->pi_support &&
5ec5d3bddc6b912 Max Gurtovoy 2020-05-19 2031 (c->common.opcode == nvme_cmd_write ||
5ec5d3bddc6b912 Max Gurtovoy 2020-05-19 2032 c->common.opcode == nvme_cmd_read) &&
0372dd4e3617170 Daniel Wagner 2023-12-18 2033 nvme_ns_has_pi(ns->head))
5ec5d3bddc6b912 Max Gurtovoy 2020-05-19 2034 req->use_sig_mr = true;
5ec5d3bddc6b912 Max Gurtovoy 2020-05-19 2035 else
5ec5d3bddc6b912 Max Gurtovoy 2020-05-19 2036 req->use_sig_mr = false;
5ec5d3bddc6b912 Max Gurtovoy 2020-05-19 2037
fc17b6534eb8395 Christoph Hellwig 2017-06-03 2038 err = nvme_rdma_map_data(queue, rq, c);
a7b7c7a105a528e Max Gurtovoy 2017-08-14 2039 if (unlikely(err < 0)) {
711023071960285 Christoph Hellwig 2016-07-06 2040 dev_err(queue->ctrl->ctrl.device,
fc17b6534eb8395 Christoph Hellwig 2017-06-03 2041 "Failed to map data (%d)\n", err);
711023071960285 Christoph Hellwig 2016-07-06 2042 goto err;
711023071960285 Christoph Hellwig 2016-07-06 2043 }
711023071960285 Christoph Hellwig 2016-07-06 2044
b4b591c87f2b0f4 Sagi Grimberg 2017-11-23 2045 sqe->cqe.done = nvme_rdma_send_done;
b4b591c87f2b0f4 Sagi Grimberg 2017-11-23 2046
711023071960285 Christoph Hellwig 2016-07-06 2047 ib_dma_sync_single_for_device(dev, sqe->dma,
711023071960285 Christoph Hellwig 2016-07-06 2048 sizeof(struct nvme_command), DMA_TO_DEVICE);
711023071960285 Christoph Hellwig 2016-07-06 2049
fc17b6534eb8395 Christoph Hellwig 2017-06-03 2050 err = nvme_rdma_post_send(queue, sqe, req->sge, req->num_sge,
f41725bbe16b077 Israel Rukshin 2017-11-26 2051 req->mr ? &req->reg_wr.wr : NULL);
16686f3a6c3cd63 Max Gurtovoy 2019-10-13 2052 if (unlikely(err))
16686f3a6c3cd63 Max Gurtovoy 2019-10-13 2053 goto err_unmap;
711023071960285 Christoph Hellwig 2016-07-06 2054
fc17b6534eb8395 Christoph Hellwig 2017-06-03 2055 return BLK_STS_OK;
62f99b62e5e3b88 Max Gurtovoy 2019-06-06 2056
16686f3a6c3cd63 Max Gurtovoy 2019-10-13 2057 err_unmap:
16686f3a6c3cd63 Max Gurtovoy 2019-10-13 2058 nvme_rdma_unmap_data(queue, rq);
711023071960285 Christoph Hellwig 2016-07-06 2059 err:
62eca39722fd997 Chao Leng 2021-02-01 2060 if (err == -EIO)
62eca39722fd997 Chao Leng 2021-02-01 2061 ret = nvme_host_path_error(rq);
62eca39722fd997 Chao Leng 2021-02-01 2062 else if (err == -ENOMEM || err == -EAGAIN)
62f99b62e5e3b88 Max Gurtovoy 2019-06-06 2063 ret = BLK_STS_RESOURCE;
62f99b62e5e3b88 Max Gurtovoy 2019-06-06 2064 else
62f99b62e5e3b88 Max Gurtovoy 2019-06-06 2065 ret = BLK_STS_IOERR;
16686f3a6c3cd63 Max Gurtovoy 2019-10-13 2066 nvme_cleanup_cmd(rq);
62f99b62e5e3b88 Max Gurtovoy 2019-06-06 @2067 unmap_qe:
62f99b62e5e3b88 Max Gurtovoy 2019-06-06 2068 ib_dma_unmap_single(dev, req->sqe.dma, sizeof(struct nvme_command),
62f99b62e5e3b88 Max Gurtovoy 2019-06-06 2069 DMA_TO_DEVICE);
62f99b62e5e3b88 Max Gurtovoy 2019-06-06 2070 return ret;
711023071960285 Christoph Hellwig 2016-07-06 2071 }
711023071960285 Christoph Hellwig 2016-07-06 2072
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-03-22 8:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20260320052101epcms2p42ae135da60b36685e9b7fca6849b57a6@epcms2p4>
2026-03-22 8:22 ` [PATCH] nvme: Move nvme_setup_cmd before hot_pathing kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox