1. 13 1月, 2016 4 次提交
  2. 23 12月, 2015 29 次提交
  3. 10 12月, 2015 1 次提交
  4. 09 12月, 2015 2 次提交
  5. 04 12月, 2015 2 次提交
    • C
      NVMe: fix build with CONFIG_NVM enabled · ac02ddde
      Christoph Hellwig 提交于
      Looks like I didn't test with CONFIG_NVM enabled, and neither did
      the build bot.
      
      Most of this is really weird crazy shit in the lighnvm support, though.
      
      Struct nvme_ns is a structure for the NVM I/O command set, and it has
      no business poking into it.  Second this commit:
      
      commit 47b3115a
      Author: Wenwei Tao <ww.tao0320@gmail.com>
      Date:   Fri Nov 20 13:47:55 2015 +0100
      
          nvme: lightnvm: use admin queues for admin cmds
      
      Does even more crazy stuff.  If a function gets a request_queue parameter
      passed it'd better use that and not look for another one.
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      Signed-off-by: NJens Axboe <axboe@fb.com>
      ac02ddde
    • K
      blk-integrity: empty implementation when disabled · 06c1e390
      Keith Busch 提交于
      This patch moves the blk_integrity_payload definition outside the
      CONFIG_BLK_DEV_INTERITY dependency and provides empty function
      implementations when the kernel configuration disables integrity
      extensions. This simplifies drivers that make use of these to map user
      data so they don't need to repeat the same configuration checks.
      Signed-off-by: NKeith Busch <keith.busch@intel.com>
      
      Updated by Jens to pass an error pointer return from
      bio_integrity_alloc(), otherwise if CONFIG_BLK_DEV_INTEGRITY isn't
      set, we return a weird ENOMEM from __nvme_submit_user_cmd()
      if a meta buffer is set.
      Signed-off-by: NJens Axboe <axboe@fb.com>
      06c1e390
  6. 02 12月, 2015 2 次提交
    • C
      nvme: refactor set_queue_count · 9a0be7ab
      Christoph Hellwig 提交于
      Split out a helper that just issues the Set Features and interprets the
      result which can go to common code, and document why we are ignoring
      non-timeout error returns in the PCIe driver.
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      Signed-off-by: NJens Axboe <axboe@fb.com>
      9a0be7ab
    • C
      nvme: move chardev and sysfs interface to common code · f3ca80fc
      Christoph Hellwig 提交于
      For this we need to add a proper controller init routine and a list of
      all controllers that is in addition to the list of PCIe controllers,
      which stays in pci.c.  Note that we remove the sysfs device when the
      last reference to a controller is dropped now - the old code would have
      kept it around longer, which doesn't make much sense.
      
      This requires a new ->reset_ctrl operation to implement controleller
      resets, and a new ->write_reg32 operation that is required to implement
      subsystem resets.  We also now store caches copied of the NVMe compliance
      version and the flag if a controller is attached to a subsystem or not in
      the generic controller structure now.
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      [Fixes for pr merge]
      Signed-off-by: NKeith Busch <keith.busch@intel.com>
      Signed-off-by: NJens Axboe <axboe@fb.com>
      f3ca80fc