Support for Open-Channel SSDs
Subsystems (3)
v12 cover Support for Open-Channel SSDs
This patchset implements support for Open-Channel SSDs.
Applies against Jens' for-4.4/drivers and is available through the lkml_v12 branch at:
https://github.com/OpenChannelSSD/linux
Changes since v11:
- Add support for group identifiers.
- Fixed kbuild error on nvme_nvm_unregister.
Changes since v10:
- Fix sparse errors.
- Enable flash command support for SLC mode, suspend/resume, plane hints.
- A couple of optimizations for the rq to nvme conversion.
- static function fixes (Fengguang Wu)
Changes since v9:
- Fix compilation of the kernel without LightNVM selected.
- Make static completion_queues variable unique so it doesn't collide with the null_blk module.
Changes since v8:
- Specification was changed to define a SSD configuration using a single entry. This replaces the per-lun specification with a single configuration. Easing the access to global geometry values and simplifies address calculations.
- Implement PPA addressing modes. Encode NAND flash structure into physical page addresses. An address now has bits reserved for each part of the flash units (sectors, page, block, plane, lun, channels), replacing the linear address space previously found in the LightNVM specification.
- Rename bm_hb to gennvm (generic nvm manager). This part now covers any type of non-volatile memory media. Thus, it is not only a block manager, but manages several pieces of core information.
- Add detection for CNEX Westlake controller.
- Completion of I/Os was previously directly completed in the target. Push completion through the media manager first and then target.
- Rebased on top of latest changes to the NVMe device driver architecture.
- Various fixes and refactoring.
Changes since v7:
- The IOCTL management interface have been created. Devices can now be managed through the lightnvm-adm tool (ladm). This is available from:
https://github.com/OpenChannelSSD/lightnvm-adm.git
- The debugging management interface is now only available if debugging is enabled. (/sys/module/lnvm/parameters/configure_debug)
- GCC compatibility fixes (Dongsheng Yang)
- Fix for BM initialization (Dongsheng Yang)
- Fix for error during rrpc init (Javier Gonzalez)
- Refactor NVMe driver to not expect non-standard behavior. Added PCI id identification for selected devices (qemu-nvme and cnex).
- Enable NVMe metadata to be passed from target.
- Create ioctl interface for management.
- Add NVM_DEBUG flag to explicit enable/diskable parameter configure_debug access. The interface is only available if debugging is enabled.
- Add support for physical block address commands.
- Added uapi/lightnvm.h header to expose ioctl interface.
- Fix qemu-nvme initialization extensions regarding L2P translation support.
- Clean up of dead code.
- Updated e-mails, copyrights, etc.
Changes since v6:
- Multipage support (Javier Gonzalez)
- General code cleanups
- Fixed memleak on register failure
Changes since v5:
Feedback from Christoph Hellwig.
- Created new null_nvm from null_blk to register itself as a lightnvm device.
- Changed the interface of register/unregister to only take disk_name. The gendisk alloc in nvme is kept. Most instantiations will involve the device gendisk, therefore wait with refactoring to a later time.
- Renamed global parameters in core.c and rrpc.c
Changes since v4:
- Remove gendisk->nvm dependency
- Remove device driver rq private field dependency.
- Update submission and completion. The flow is now
Target -> Block Manager -> Device Driver, replacing callbacks in
device driver. - Abstracted out the block manager into its own module. Other block managers can now be implemented. For example to support fully host-based SSDs.
- No longer exposes the device driver gendisk to user-space.
- Management is moved into /sys/modules/lnvm/parameters/configure_debug
Changes since v3:
- Remove dependency on REQ_NVM_GC
- Refactor nvme integration to use nvme_submit_sync_cmd for internal commands.
- Fix race condition bug on multiple threads on RRPC target.
- Rename sysfs entry under the block device from nvm to lightnvm. The configuration is found in /sys/block/*/lightnvm/
Changes since v2:
Feedback from Paul Bolle:
- Fix license to GPLv2, documentation, compilation. Feedback from Keith Busch:
- nvme: Move lightnvm out and into nvme-lightnvm.c.
- nvme: Set controller css on lightnvm command set.
- nvme: Remove OACS.
Feedback from Christoph Hellwig:
- lightnvm: Move out of block layer into /drivers/lightnvm/core.c
- lightnvm: refactor request->phys_sector into device drivers.
- lightnvm: refactor prep/unprep into device drivers.
- lightnvm: move nvm_dev from request_queue to gendisk.
New
- Bad block table support (From Javier).
- Update maintainers file.
Changes since v1:
- Splitted LightNVM into two parts. A get/put interface for flash blocks and the respective targets that implement flash translation layer logic.
- Updated the patches according to the LightNVM specification changes.
- Added interface to add/remove targets for a block device.
Thanks to Jens Axboe, Christoph Hellwig, Keith Busch, Paul Bolle, Javier Gonzalez and Jesper Madsen for discussions and contributions.
Matias Bjørling (5):
lightnvm: Support for Open-Channel SSDs
gennvm: Generic NVM manager
rrpc: Round-robin sector target with cost-based gc
null_nvm: LightNVM test driver
nvme: LightNVM support
Documentation/ioctl/ioctl-number.txt | 1 + MAINTAINERS | 8 + drivers/Kconfig | 2 + drivers/Makefile | 1 + drivers/lightnvm/Kconfig | 48 ++ drivers/lightnvm/Makefile | 8 + drivers/lightnvm/core.c | 829 +++++++++++++++++++++ drivers/lightnvm/gennvm.c | 475 ++++++++++++ drivers/lightnvm/gennvm.h | 46 ++ drivers/lightnvm/null_nvm.c | 457 ++++++++++++ drivers/lightnvm/rrpc.c | 1316 ++++++++++++++++++++++++++++++++++ drivers/lightnvm/rrpc.h | 239 ++++++ drivers/nvme/host/Makefile | 2 +- drivers/nvme/host/lightnvm.c | 524 ++++++++++++++ drivers/nvme/host/nvme.h | 10 + drivers/nvme/host/pci.c | 39 +- include/linux/lightnvm.h | 536 ++++++++++++++ include/uapi/linux/lightnvm.h | 130 ++++ 18 files changed, 4659 insertions(+), 12 deletions(-) create mode 100644 drivers/lightnvm/Kconfig create mode 100644 drivers/lightnvm/Makefile create mode 100644 drivers/lightnvm/core.c create mode 100644 drivers/lightnvm/gennvm.c create mode 100644 drivers/lightnvm/gennvm.h create mode 100644 drivers/lightnvm/null_nvm.c create mode 100644 drivers/lightnvm/rrpc.c create mode 100644 drivers/lightnvm/rrpc.h create mode 100644 drivers/nvme/host/lightnvm.c create mode 100644 include/linux/lightnvm.h create mode 100644 include/uapi/linux/lightnvm.h
Signature · 1 line
2.1.4
PATCH v12 1/5 lightnvm: Support for Open-Channel SSDs
Open-channel SSDs are devices that share responsibilities with the host in order to implement and maintain features that typical SSDs keep strictly in firmware. These include (i) the Flash Translation Layer (FTL), (ii) bad block management, and (iii) hardware units such as the flash controller, the interface controller, and large amounts of flash chips. In this way, Open-channels SSDs exposes direct access to their physical flash storage, while keeping a subset of the internal features of SSDs.
LightNVM is a specification that gives support to Open-channel SSDs LightNVM allows the host to manage data placement, garbage collection, and parallelism. Device specific responsibilities such as bad block management, FTL extensions to support atomic IOs, or metadata persistence are still handled by the device.
The implementation of LightNVM consists of two parts: core and (multiple) targets. The core implements functionality shared across targets. This is initialization, teardown and statistics. The targets implement the interface that exposes physical flash to user-space applications. Examples of such targets include key-value store, object-store, as well as traditional block devices, which can be application-specific.
Contributions in this patch from:
Javier Gonzalez <[email protected]>
Dongsheng Yang <[email protected]>
Jesper Madsen <[email protected]>
--- Documentation/ioctl/ioctl-number.txt | 1 + MAINTAINERS | 8 + drivers/Kconfig | 2 + drivers/Makefile | 1 + drivers/lightnvm/Kconfig | 28 ++ drivers/lightnvm/Makefile | 5 + drivers/lightnvm/core.c | 829 +++++++++++++++++++++++++++++++++++ include/linux/lightnvm.h | 536 ++++++++++++++++++++++ include/uapi/linux/lightnvm.h | 130 ++++++ 9 files changed, 1540 insertions(+) create mode 100644 drivers/lightnvm/Kconfig create mode 100644 drivers/lightnvm/Makefile create mode 100644 drivers/lightnvm/core.c create mode 100644 include/linux/lightnvm.h create mode 100644 include/uapi/linux/lightnvm.h
Documentation/ioctl/ioctl-number.txt +1 -0
@@ -149,6 +149,7 @@ Code Seq#(hex) Include File Comments 'K' all linux/kd.h 'L' 00-1F linux/loop.h conflict! 'L' 10-1F drivers/scsi/mpt2sas/mpt2sas_ctl.h conflict! +'L' 20-2F linux/lightnvm.h 'L' E0-FF linux/ppdd.h encrypted disk device driver <http://linux01.gwdg.de/~alatham/ppdd.html> 'M' all linux/soundcard.h conflict!
MAINTAINERS +8 -0
@@ -6243,6 +6243,14 @@ F: drivers/nvdimm/pmem.c F: include/linux/pmem.h F: arch/*/include/asm/pmem.h +LIGHTNVM PLATFORM SUPPORT +M: Matias Bjorling <[email protected]> +W: http://github/OpenChannelSSD +S: Maintained +F: drivers/lightnvm/ +F: include/linux/lightnvm.h +F: include/uapi/linux/lightnvm.h + LINUX FOR IBM pSERIES (RS/6000) M: Paul Mackerras <[email protected]> W: http://www.ibm.com/linux/ltc/projects/ppc
drivers/Kconfig +2 -0
@@ -44,6 +44,8 @@ source "drivers/net/Kconfig" source "drivers/isdn/Kconfig" +source "drivers/lightnvm/Kconfig" + # input before char - char/joystick depends on it. As does USB. source "drivers/input/Kconfig"
drivers/Makefile +1 -0
@@ -70,6 +70,7 @@ obj-$(CONFIG_NUBUS) += nubus/ obj-y += macintosh/ obj-$(CONFIG_IDE) += ide/ obj-$(CONFIG_SCSI) += scsi/ +obj-$(CONFIG_NVM) += lightnvm/ obj-y += nvme/ obj-$(CONFIG_ATA) += ata/ obj-$(CONFIG_TARGET_CORE) += target/
drivers/lightnvm/Kconfig new file +28 -0
@@ -0,0 +1,28 @@ +# +# Open-Channel SSD NVM configuration +# + +menuconfig NVM + bool "Open-Channel SSD target support" + depends on BLOCK + help + Say Y here to get to enable Open-channel SSDs. + + Open-Channel SSDs implement a set of extension to SSDs, that + exposes direct access to the underlying non-volatile memory. + + If you say N, all options in this submenu will be skipped and disabled + only do this if you know what you are doing. + +if NVM + +config NVM_DEBUG + bool "Open-Channel SSD debugging support" + ---help--- + Exposes a debug management interface to create/remove targets at: + + /sys/module/lnvm/parameters/configure_debug + + It is required to create/remove targets without IOCTLs. + +endif # NVM
drivers/lightnvm/Makefile new file +5 -0
@@ -0,0 +1,5 @@ +# +# Makefile for Open-Channel SSDs. +# + +obj-$(CONFIG_NVM) := core.o
drivers/lightnvm/core.c new file +829 -0
829 lines not on this page · raw message
include/linux/lightnvm.h new file +536 -0
536 lines not on this page · raw message
include/uapi/linux/lightnvm.h new file +130 -0
130 lines not on this page · raw message
Signature · 1 line
2.1.4
kbuild test robot
build bot[PATCH] lightnvm: fix memdup_user.cocci warnings
drivers/lightnvm/core.c:657:8-15: WARNING opportunity for memdup_user
drivers/lightnvm/core.c:657:8-15: WARNING opportunity for memdup_user
Use memdup_user rather than duplicating its implementation This is a little bit restricted to reduce false positives
Generated by: scripts/coccinelle/api/memdup_user.cocci
---
0 files changed
rule starting on line 17: position variables or mixed modifs interfere with comm_assoc isobool ( (
(
(unknown *to == NULL)
>>> IS_ERR(rule starting on line 17:to)
|
!unknown *to
>>> IS_ERR(rule starting on line 17:to)
)
|
(unknown *NULL == unknown *to)
>>> IS_ERR(rule starting on line 17:to)
) || ...)
kbuild test robot
build botRe: [PATCH v12 1/5] lightnvm: Support for Open-Channel SSDs
In reply to Matias Bjørlingurl: https://github.com/0day-ci/linux/commits/Matias-Bj-rling/Support-for-Open-Channel-SSDs/20151027-230440
Hi Matias,
[auto build test WARNING on next-20151022 -- if it's inappropriate base, please suggest rules for selecting the more suitable base]
coccinelle warnings: (new ones prefixed by >>)
>> drivers/lightnvm/core.c:657:8-15: WARNING opportunity for memdup_user
Please review and possibly fold the followup patch.
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
PATCH v12 2/5 gennvm: Generic NVM manager
In reply to Matias BjørlingThe implementation for Open-Channel SSDs is divided into media management and targets. This patch implements a generic media manager for open-channel SSDs. After a media manager has been initialized, single or multiple targets can be instantiated with the media managed as the backend.
--- drivers/lightnvm/Kconfig | 7 + drivers/lightnvm/Makefile | 1 + drivers/lightnvm/gennvm.c | 475 ++++++++++++++++++++++++++++++++++++++++++++++ drivers/lightnvm/gennvm.h | 46 +++++ 4 files changed, 529 insertions(+) create mode 100644 drivers/lightnvm/gennvm.c create mode 100644 drivers/lightnvm/gennvm.h
drivers/lightnvm/Kconfig +7 -0
@@ -25,4 +25,11 @@ config NVM_DEBUG It is required to create/remove targets without IOCTLs. +config NVM_GENNVM + tristate "Generic NVM manager for Open-Channel SSDs" + ---help--- + NVM media manager for Open-Channel SSDs that offload management + functionality to device, while keeping data placement and garbage + collection decisions on the host. + endif # NVM
drivers/lightnvm/Makefile +1 -0
@@ -3,3 +3,4 @@ # obj-$(CONFIG_NVM) := core.o +obj-$(CONFIG_NVM_GENNVM) += gennvm.o
drivers/lightnvm/gennvm.c new file +475 -0
475 lines not on this page · raw message
drivers/lightnvm/gennvm.h new file +46 -0
46 lines not on this page · raw message
Signature · 1 line
2.1.4
kbuild test robot
build botRe: [PATCH v12 2/5] gennvm: Generic NVM manager
reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree…
Hi Matias,
[auto build test ERROR on next-20151022 -- if it's inappropriate base, please suggest rules for selecting the more suitable base]
url: https://github.com/0day-ci/linux/commits/Matias-Bj-rling/Support-for-Open-Channel-SSDs/20151027-230440 config: microblaze-allmodconfig (attached as .config)
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=microblaze
All errors (new ones prefixed by >>):
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/dt2814.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/dt2811.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/dt2801.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/dmm32at.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/das800.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/das6402.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/das1800.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/das16m1.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/das16.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/das08.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/dac02.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/contec_pci_dio.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/comedi_parport.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/comedi_8255.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/comedi_8254.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/cb_pcimdda.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/cb_pcimdas.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/cb_pcidda.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/cb_pcidas.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/c6xdigio.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/amplc_pci263.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/amplc_pci236.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/amplc_pci230.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/amplc_pci224.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/amplc_pc263.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/amplc_dio200_common.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/aio_iiro_16.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/aio_aio12_8.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/adv_pci_dio.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/adv_pci1724.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/adv_pci1723.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/adv_pci1710.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/adq12b.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/adl_pci9118.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/adl_pci9111.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/adl_pci8164.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/adl_pci7x3x.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/adl_pci6208.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/addi_watchdog.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/addi_apci_3xxx.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/addi_apci_3501.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/addi_apci_3120.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/addi_apci_2200.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/addi_apci_2032.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/addi_apci_16xx.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/addi_apci_1564.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/addi_apci_1516.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/addi_apci_1500.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/addi_apci_1032.ko] undefined!
ERROR: "isa_io_base" [drivers/scsi/qla2xxx/qla2xxx.ko] undefined!
ERROR: "isa_io_base" [drivers/scsi/ppa.ko] undefined!
ERROR: "isa_io_base" [drivers/scsi/nsp32.ko] undefined!
ERROR: "isa_io_base" [drivers/scsi/mvsas/mvsas.ko] undefined!
ERROR: "isa_io_base" [drivers/scsi/megaraid.ko] undefined!
ERROR: "isa_io_base" [drivers/scsi/ips.ko] undefined!
ERROR: "isa_io_base" [drivers/scsi/initio.ko] undefined!
ERROR: "isa_io_base" [drivers/scsi/imm.ko] undefined!
ERROR: "isa_io_base" [drivers/scsi/fdomain.ko] undefined!
ERROR: "isa_io_base" [drivers/scsi/dmx3191d.ko] undefined!
ERROR: "isa_io_base" [drivers/scsi/dc395x.ko] undefined!
ERROR: "isa_io_base" [drivers/scsi/atp870u.ko] undefined!
ERROR: "isa_io_base" [drivers/scsi/aic94xx/aic94xx.ko] undefined!
ERROR: "isa_io_base" [drivers/scsi/aic7xxx/aic7xxx.ko] undefined!
ERROR: "isa_io_base" [drivers/scsi/aic7xxx/aic79xx.ko] undefined!
ERROR: "isa_io_base" [drivers/scsi/advansys.ko] undefined!
ERROR: "isa_io_base" [drivers/scsi/a100u2w.ko] undefined!
ERROR: "isa_io_base" [drivers/scsi/3w-xxxx.ko] undefined!
ERROR: "isa_io_base" [drivers/rtc/rtc-bq4802.ko] undefined!
ERROR: "isa_io_base" [drivers/platform/chrome/cros_ec_lpc.ko] undefined!
ERROR: "isa_io_base" [drivers/parport/parport_pc.ko] undefined!
ERROR: "isa_io_base" [drivers/net/wireless/hostap/hostap_plx.ko] undefined!
ERROR: "isa_io_base" [drivers/net/wireless/atmel.ko] undefined!
ERROR: "isa_io_base" [drivers/net/wan/lmc/lmc.ko] undefined!
ERROR: "isa_io_base" [drivers/net/wan/farsync.ko] undefined!
ERROR: "isa_io_base" [drivers/net/irda/vlsi_ir.ko] undefined!
ERROR: "isa_io_base" [drivers/net/irda/donauboe.ko] undefined!
ERROR: "isa_io_base" [drivers/net/hamradio/yam.ko] undefined!
ERROR: "isa_io_base" [drivers/net/hamradio/baycom_ser_hdx.ko] undefined!
ERROR: "isa_io_base" [drivers/net/hamradio/baycom_ser_fdx.ko] undefined!
ERROR: "isa_io_base" [drivers/net/ethernet/via/via-rhine.ko] undefined!
ERROR: "isa_io_base" [drivers/net/ethernet/ti/tlan.ko] undefined!
ERROR: "isa_io_base" [drivers/net/ethernet/sis/sis900.ko] undefined!
ERROR: "isa_io_base" [drivers/net/ethernet/sis/sis190.ko] undefined!
ERROR: "isa_io_base" [drivers/net/ethernet/intel/e1000/e1000.ko] undefined!
ERROR: "isa_io_base" [drivers/net/ethernet/hp/hp100.ko] undefined!
ERROR: "isa_io_base" [drivers/net/ethernet/dec/tulip/de4x5.ko] undefined!
ERROR: "isa_io_base" [drivers/net/ethernet/amd/pcnet32.ko] undefined!
ERROR: "isa_io_base" [drivers/net/ethernet/8390/ne2k-pci.ko] undefined!
ERROR: "isa_io_base" [drivers/net/ethernet/8390/8390.ko] undefined!
ERROR: "isa_io_base" [drivers/net/ethernet/3com/3c59x.ko] undefined!
ERROR: "isa_io_base" [drivers/net/can/sja1000/sja1000_isa.ko] undefined!
ERROR: "isa_io_base" [drivers/net/can/cc770/cc770_isa.ko] undefined!
ERROR: "isa_io_base" [drivers/net/arcnet/com90xx.ko] undefined!
ERROR: "isa_io_base" [drivers/net/arcnet/com90io.ko] undefined!
ERROR: "isa_io_base" [drivers/net/arcnet/com20020.ko] undefined!
ERROR: "isa_io_base" [drivers/net/arcnet/com20020-pci.ko] undefined!
ERROR: "isa_io_base" [drivers/misc/altera-stapl/altera-stapl.ko] undefined!
ERROR: "isa_io_base" [drivers/message/fusion/mptbase.ko] undefined!
ERROR: "isa_io_base" [drivers/media/radio/radio-maxiradio.ko] undefined!
ERROR: "isa_io_base" [drivers/media/pci/dm1105/dm1105.ko] undefined!
>> ERROR: "__udivdi3" [drivers/lightnvm/gennvm.ko] undefined! >> ERROR: "__umoddi3" [drivers/lightnvm/gennvm.ko] undefined!
ERROR: "isa_io_base" [drivers/leds/leds-ot200.ko] undefined!
ERROR: "isa_io_base" [drivers/isdn/hysdn/hysdn.ko] undefined!
ERROR: "isa_io_base" [drivers/isdn/hisax/hisax_fcpcipnp.ko] undefined!
ERROR: "isa_io_base" [drivers/isdn/hisax/hisax.ko] undefined!
ERROR: "isa_io_base" [drivers/isdn/hisax/hfc4s8s_l1.ko] undefined!
ERROR: "isa_io_base" [drivers/isdn/hardware/mISDN/w6692.ko] undefined!
ERROR: "isa_io_base" [drivers/isdn/hardware/mISDN/speedfax.ko] undefined!
ERROR: "isa_io_base" [drivers/isdn/hardware/mISDN/netjet.ko] undefined!
ERROR: "isa_io_base" [drivers/isdn/hardware/mISDN/mISDNinfineon.ko] undefined!
ERROR: "isa_io_base" [drivers/isdn/hardware/mISDN/hfcmulti.ko] undefined!
ERROR: "isa_io_base" [drivers/isdn/hardware/mISDN/avmfritz.ko] undefined!
ERROR: "isa_io_base" [drivers/isdn/hardware/eicon/divas.ko] undefined!
ERROR: "isa_io_base" [drivers/isdn/hardware/avm/b1pci.ko] undefined!
ERROR: "isa_io_base" [drivers/isdn/hardware/avm/b1dma.ko] undefined!
ERROR: "isa_io_base" [drivers/isdn/hardware/avm/b1.ko] undefined!
ERROR: "isa_io_base" [drivers/input/touchscreen/mk712.ko] undefined!
ERROR: "isa_io_base" [drivers/input/serio/pcips2.ko] undefined!
ERROR: "isa_io_base" [drivers/input/joystick/tmdc.ko] undefined!
ERROR: "isa_io_base" [drivers/input/joystick/sidewinder.ko] undefined!
ERROR: "isa_io_base" [drivers/input/joystick/joydump.ko] undefined!
ERROR: "isa_io_base" [drivers/input/joystick/interact.ko] undefined!
ERROR: "isa_io_base" [drivers/input/joystick/guillemot.ko] undefined!
ERROR: "isa_io_base" [drivers/input/joystick/grip_mp.ko] undefined!
ERROR: "isa_io_base" [drivers/input/joystick/grip.ko] undefined!
ERROR: "isa_io_base" [drivers/input/joystick/gf2k.ko] undefined!
ERROR: "isa_io_base" [drivers/input/joystick/cobra.ko] undefined!
ERROR: "isa_io_base" [drivers/input/joystick/analog.ko] undefined!
ERROR: "isa_io_base" [drivers/input/joystick/adi.ko] undefined!
ERROR: "isa_io_base" [drivers/input/joystick/a3d.ko] undefined!
ERROR: "isa_io_base" [drivers/input/gameport/ns558.ko] undefined!
ERROR: "isa_io_base" [drivers/input/gameport/lightning.ko] undefined!
ERROR: "isa_io_base" [drivers/input/gameport/gameport.ko] undefined!
ERROR: "isa_io_base" [drivers/input/gameport/fm801-gp.ko] undefined!
ERROR: "isa_io_base" [drivers/i2c/busses/i2c-viapro.ko] undefined!
ERROR: "isa_io_base" [drivers/i2c/busses/i2c-via.ko] undefined!
ERROR: "isa_io_base" [drivers/i2c/busses/i2c-sis96x.ko] undefined!
ERROR: "isa_io_base" [drivers/i2c/busses/i2c-sis630.ko] undefined!
ERROR: "isa_io_base" [drivers/i2c/busses/i2c-sis5595.ko] undefined!
ERROR: "isa_io_base" [drivers/i2c/busses/i2c-piix4.ko] undefined!
ERROR: "isa_io_base" [drivers/i2c/busses/i2c-parport-light.ko] undefined!
ERROR: "isa_io_base" [drivers/i2c/busses/i2c-nforce2.ko] undefined!
ERROR: "isa_io_base" [drivers/i2c/busses/i2c-isch.ko] undefined!
ERROR: "isa_io_base" [drivers/i2c/busses/i2c-i801.ko] undefined!
ERROR: "isa_io_base" [drivers/i2c/busses/i2c-amd8111.ko] undefined!
ERROR: "isa_io_base" [drivers/i2c/busses/i2c-amd756.ko] undefined!
ERROR: "isa_io_base" [drivers/i2c/busses/i2c-ali15x3.ko] undefined!
ERROR: "isa_io_base" [drivers/i2c/busses/i2c-ali1563.ko] undefined!
ERROR: "isa_io_base" [drivers/i2c/busses/i2c-ali1535.ko] undefined!
ERROR: "isa_io_base" [drivers/hwmon/w83627hf.ko] undefined!
ERROR: "isa_io_base" [drivers/hwmon/w83627ehf.ko] undefined!
ERROR: "isa_io_base" [drivers/hwmon/vt8231.ko] undefined!
ERROR: "isa_io_base" [drivers/hwmon/vt1211.ko] undefined!
ERROR: "isa_io_base" [drivers/hwmon/via686a.ko] undefined!
ERROR: "isa_io_base" [drivers/hwmon/smsc47m1.ko] undefined!
ERROR: "isa_io_base" [drivers/hwmon/smsc47b397.ko] undefined!
ERROR: "isa_io_base" [drivers/hwmon/sis5595.ko] undefined!
ERROR: "isa_io_base" [drivers/hwmon/sch56xx-common.ko] undefined!
ERROR: "isa_io_base" [drivers/hwmon/pc87427.ko] undefined!
ERROR: "isa_io_base" [drivers/hwmon/pc87360.ko] undefined!
ERROR: "isa_io_base" [drivers/hwmon/nct6775.ko] undefined!
ERROR: "isa_io_base" [drivers/hwmon/nct6683.ko] undefined!
ERROR: "isa_io_base" [drivers/hwmon/it87.ko] undefined!
ERROR: "isa_io_base" [drivers/hwmon/f71882fg.ko] undefined!
ERROR: "isa_io_base" [drivers/hwmon/f71805f.ko] undefined!
ERROR: "isa_io_base" [drivers/hwmon/dme1737.ko] undefined!
ERROR: "isa_io_base" [drivers/gpu/drm/qxl/qxl.ko] undefined!
ERROR: "isa_io_base" [drivers/gpu/drm/cirrus/cirrus.ko] undefined!
ERROR: "isa_io_base" [drivers/gpu/drm/bochs/bochs-drm.ko] undefined!
ERROR: "isa_io_base" [drivers/gpio/gpio-vx855.ko] undefined!
ERROR: "isa_io_base" [drivers/gpio/gpio-ts5500.ko] undefined!
ERROR: "isa_io_base" [drivers/gpio/gpio-sch311x.ko] undefined!
ERROR: "isa_io_base" [drivers/gpio/gpio-amd8111.ko] undefined!
ERROR: "isa_io_base" [drivers/char/tpm/tpm_atmel.ko] undefined!
ERROR: "isa_io_base" [drivers/char/ipmi/ipmi_si.ko] undefined!
ERROR: "isa_io_base" [drivers/block/paride/on26.ko] undefined!
ERROR: "isa_io_base" [drivers/block/paride/on20.ko] undefined!
ERROR: "isa_io_base" [drivers/block/paride/ktti.ko] undefined!
ERROR: "isa_io_base" [drivers/block/paride/kbic.ko] undefined!
ERROR: "isa_io_base" [drivers/block/paride/frpw.ko] undefined!
ERROR: "isa_io_base" [drivers/block/paride/friq.ko] undefined!
ERROR: "isa_io_base" [drivers/block/paride/fit3.ko] undefined!
ERROR: "isa_io_base" [drivers/block/paride/fit2.ko] undefined!
ERROR: "isa_io_base" [drivers/block/paride/epia.ko] undefined!
ERROR: "isa_io_base" [drivers/block/paride/epat.ko] undefined!
ERROR: "isa_io_base" [drivers/block/paride/dstr.ko] undefined!
ERROR: "isa_io_base" [drivers/block/paride/comm.ko] undefined!
ERROR: "isa_io_base" [drivers/block/paride/bpck6.ko] undefined!
ERROR: "isa_io_base" [drivers/block/paride/bpck.ko] undefined!
ERROR: "isa_io_base" [drivers/block/paride/aten.ko] undefined!
ERROR: "isa_io_base" [drivers/atm/zatm.ko] undefined!
ERROR: "isa_io_base" [drivers/atm/horizon.ko] undefined!
ERROR: "isa_io_base" [drivers/atm/ambassador.ko] undefined!
ERROR: "isa_io_base" [drivers/ata/pata_sc1200.ko] undefined!
ERROR: "isa_io_base" [drivers/ata/pata_pdc202xx_old.ko] undefined!
ERROR: "isa_io_base" [drivers/ata/pata_optidma.ko] undefined!
ERROR: "isa_io_base" [drivers/ata/pata_legacy.ko] undefined!
ERROR: "isa_io_base" [drivers/ata/pata_hpt3x2n.ko] undefined!
ERROR: "isa_io_base" [drivers/ata/pata_hpt37x.ko] undefined!
ERROR: "isa_io_base" [drivers/ata/pata_cypress.ko] undefined!
ERROR: "isa_io_base" [drivers/ata/pata_cmd64x.ko] undefined!
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
kbuild test robot
build botRe: [PATCH v12 2/5] gennvm: Generic NVM manager
In reply to Matias Bjørlingreproduce:
Hi Matias,
[auto build test ERROR on next-20151022 -- if it's inappropriate base, please suggest rules for selecting the more suitable base]
url: https://github.com/0day-ci/linux/commits/Matias-Bj-rling/Support-for-Open-Channel-SSDs/20151027-230440 config: i386-allyesconfig (attached as .config) reproduce: # save the attached .config to linux build tree make ARCH=i386
All errors (new ones prefixed by >>):
drivers/built-in.o: In function `addr_to_generic_mode':
>> gennvm.c:(.text+0x88e078): undefined reference to `__umoddi3' >> gennvm.c:(.text+0x88e090): undefined reference to `__udivdi3'
gennvm.c:(.text+0x88e0a1): undefined reference to __umoddi3' gennvm.c:(.text+0x88e0c7): undefined reference to __udivdi3' gennvm.c:(.text+0x88e0d5): undefined reference to __umoddi3' gennvm.c:(.text+0x88e10d): undefined reference to __udivdi3' gennvm.c:(.text+0x88e11b): undefined reference to __umoddi3' gennvm.c:(.text+0x88e144): undefined reference to __udivdi3' drivers/built-in.o: In function `gennvm_block_map':
gennvm.c:(.text+0x88e298): undefined reference to __udivdi3' gennvm.c:(.text+0x88e2c9): undefined reference to __udivdi3' drivers/built-in.o: In function `gennvm_erase_blk':
gennvm.c:(.text+0x88e459): undefined reference to `__umoddi3'
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
PATCH v12 3/5 rrpc: Round-robin sector target with cost-based gc
In reply to Matias BjørlingThis target allows an Open-Channel SSD to be exposed asas a block device.
It implements a round-robin approach for sector allocation, together with a greedy cost-based garbage collector.
--- drivers/lightnvm/Kconfig | 7 + drivers/lightnvm/Makefile | 1 + drivers/lightnvm/rrpc.c | 1316 +++++++++++++++++++++++++++++++++++++++++++++ drivers/lightnvm/rrpc.h | 239 ++++++++ 4 files changed, 1563 insertions(+) create mode 100644 drivers/lightnvm/rrpc.c create mode 100644 drivers/lightnvm/rrpc.h
drivers/lightnvm/Kconfig +7 -0
@@ -32,4 +32,11 @@ config NVM_GENNVM functionality to device, while keeping data placement and garbage collection decisions on the host. +config NVM_RRPC + tristate "Round-robin Hybrid Open-Channel SSD target" + ---help--- + Allows an open-channel SSD to be exposed as a block device to the + host. The target is implemented using a linear mapping table and + cost-based garbage collection. It is optimized for 4K IO sizes. + endif # NVM
drivers/lightnvm/Makefile +1 -0
@@ -4,3 +4,4 @@ obj-$(CONFIG_NVM) := core.o obj-$(CONFIG_NVM_GENNVM) += gennvm.o +obj-$(CONFIG_NVM_RRPC) += rrpc.o
drivers/lightnvm/rrpc.c new file +1316 -0
1,316 lines not on this page · raw message
drivers/lightnvm/rrpc.h new file +239 -0
239 lines not on this page · raw message
Signature · 1 line
2.1.4
kbuild test robot
build botRe: [PATCH v12 3/5] rrpc: Round-robin sector target with cost-based gc
reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree…
Hi Matias,
[auto build test ERROR on next-20151022 -- if it's inappropriate base, please suggest rules for selecting the more suitable base]
url: https://github.com/0day-ci/linux/commits/Matias-Bj-rling/Support-for-Open-Channel-SSDs/20151027-230440 config: microblaze-allmodconfig (attached as .config)
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=microblaze
All errors (new ones prefixed by >>):
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/dt2814.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/dt2811.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/dt2801.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/dmm32at.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/das800.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/das6402.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/das1800.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/das16m1.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/das16.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/das08.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/dac02.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/contec_pci_dio.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/comedi_parport.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/comedi_8255.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/comedi_8254.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/cb_pcimdda.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/cb_pcimdas.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/cb_pcidda.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/cb_pcidas.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/c6xdigio.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/amplc_pci263.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/amplc_pci236.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/amplc_pci230.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/amplc_pci224.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/amplc_pc263.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/amplc_dio200_common.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/aio_iiro_16.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/aio_aio12_8.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/adv_pci_dio.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/adv_pci1724.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/adv_pci1723.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/adv_pci1710.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/adq12b.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/adl_pci9118.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/adl_pci9111.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/adl_pci8164.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/adl_pci7x3x.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/adl_pci6208.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/addi_watchdog.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/addi_apci_3xxx.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/addi_apci_3501.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/addi_apci_3120.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/addi_apci_2200.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/addi_apci_2032.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/addi_apci_16xx.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/addi_apci_1564.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/addi_apci_1516.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/addi_apci_1500.ko] undefined!
ERROR: "isa_io_base" [drivers/staging/comedi/drivers/addi_apci_1032.ko] undefined!
ERROR: "isa_io_base" [drivers/scsi/qla2xxx/qla2xxx.ko] undefined!
ERROR: "isa_io_base" [drivers/scsi/ppa.ko] undefined!
ERROR: "isa_io_base" [drivers/scsi/nsp32.ko] undefined!
ERROR: "isa_io_base" [drivers/scsi/mvsas/mvsas.ko] undefined!
ERROR: "isa_io_base" [drivers/scsi/megaraid.ko] undefined!
ERROR: "isa_io_base" [drivers/scsi/ips.ko] undefined!
ERROR: "isa_io_base" [drivers/scsi/initio.ko] undefined!
ERROR: "isa_io_base" [drivers/scsi/imm.ko] undefined!
ERROR: "isa_io_base" [drivers/scsi/fdomain.ko] undefined!
ERROR: "isa_io_base" [drivers/scsi/dmx3191d.ko] undefined!
ERROR: "isa_io_base" [drivers/scsi/dc395x.ko] undefined!
ERROR: "isa_io_base" [drivers/scsi/atp870u.ko] undefined!
ERROR: "isa_io_base" [drivers/scsi/aic94xx/aic94xx.ko] undefined!
ERROR: "isa_io_base" [drivers/scsi/aic7xxx/aic7xxx.ko] undefined!
ERROR: "isa_io_base" [drivers/scsi/aic7xxx/aic79xx.ko] undefined!
ERROR: "isa_io_base" [drivers/scsi/advansys.ko] undefined!
ERROR: "isa_io_base" [drivers/scsi/a100u2w.ko] undefined!
ERROR: "isa_io_base" [drivers/scsi/3w-xxxx.ko] undefined!
ERROR: "isa_io_base" [drivers/rtc/rtc-bq4802.ko] undefined!
ERROR: "isa_io_base" [drivers/platform/chrome/cros_ec_lpc.ko] undefined!
ERROR: "isa_io_base" [drivers/parport/parport_pc.ko] undefined!
ERROR: "isa_io_base" [drivers/net/wireless/hostap/hostap_plx.ko] undefined!
ERROR: "isa_io_base" [drivers/net/wireless/atmel.ko] undefined!
ERROR: "isa_io_base" [drivers/net/wan/lmc/lmc.ko] undefined!
ERROR: "isa_io_base" [drivers/net/wan/farsync.ko] undefined!
ERROR: "isa_io_base" [drivers/net/irda/vlsi_ir.ko] undefined!
ERROR: "isa_io_base" [drivers/net/irda/donauboe.ko] undefined!
ERROR: "isa_io_base" [drivers/net/hamradio/yam.ko] undefined!
ERROR: "isa_io_base" [drivers/net/hamradio/baycom_ser_hdx.ko] undefined!
ERROR: "isa_io_base" [drivers/net/hamradio/baycom_ser_fdx.ko] undefined!
ERROR: "isa_io_base" [drivers/net/ethernet/via/via-rhine.ko] undefined!
ERROR: "isa_io_base" [drivers/net/ethernet/ti/tlan.ko] undefined!
ERROR: "isa_io_base" [drivers/net/ethernet/sis/sis900.ko] undefined!
ERROR: "isa_io_base" [drivers/net/ethernet/sis/sis190.ko] undefined!
ERROR: "isa_io_base" [drivers/net/ethernet/intel/e1000/e1000.ko] undefined!
ERROR: "isa_io_base" [drivers/net/ethernet/hp/hp100.ko] undefined!
ERROR: "isa_io_base" [drivers/net/ethernet/dec/tulip/de4x5.ko] undefined!
ERROR: "isa_io_base" [drivers/net/ethernet/amd/pcnet32.ko] undefined!
ERROR: "isa_io_base" [drivers/net/ethernet/8390/ne2k-pci.ko] undefined!
ERROR: "isa_io_base" [drivers/net/ethernet/8390/8390.ko] undefined!
ERROR: "isa_io_base" [drivers/net/ethernet/3com/3c59x.ko] undefined!
ERROR: "isa_io_base" [drivers/net/can/sja1000/sja1000_isa.ko] undefined!
ERROR: "isa_io_base" [drivers/net/can/cc770/cc770_isa.ko] undefined!
ERROR: "isa_io_base" [drivers/net/arcnet/com90xx.ko] undefined!
ERROR: "isa_io_base" [drivers/net/arcnet/com90io.ko] undefined!
ERROR: "isa_io_base" [drivers/net/arcnet/com20020.ko] undefined!
ERROR: "isa_io_base" [drivers/net/arcnet/com20020-pci.ko] undefined!
ERROR: "isa_io_base" [drivers/misc/altera-stapl/altera-stapl.ko] undefined!
ERROR: "isa_io_base" [drivers/message/fusion/mptbase.ko] undefined!
ERROR: "isa_io_base" [drivers/media/radio/radio-maxiradio.ko] undefined!
ERROR: "isa_io_base" [drivers/media/pci/dm1105/dm1105.ko] undefined!
>> ERROR: "__udivdi3" [drivers/lightnvm/rrpc.ko] undefined! >> ERROR: "__umoddi3" [drivers/lightnvm/rrpc.ko] undefined!
ERROR: "__udivdi3" [drivers/lightnvm/gennvm.ko] undefined!
ERROR: "__umoddi3" [drivers/lightnvm/gennvm.ko] undefined!
ERROR: "isa_io_base" [drivers/leds/leds-ot200.ko] undefined!
ERROR: "isa_io_base" [drivers/isdn/hysdn/hysdn.ko] undefined!
ERROR: "isa_io_base" [drivers/isdn/hisax/hisax_fcpcipnp.ko] undefined!
ERROR: "isa_io_base" [drivers/isdn/hisax/hisax.ko] undefined!
ERROR: "isa_io_base" [drivers/isdn/hisax/hfc4s8s_l1.ko] undefined!
ERROR: "isa_io_base" [drivers/isdn/hardware/mISDN/w6692.ko] undefined!
ERROR: "isa_io_base" [drivers/isdn/hardware/mISDN/speedfax.ko] undefined!
ERROR: "isa_io_base" [drivers/isdn/hardware/mISDN/netjet.ko] undefined!
ERROR: "isa_io_base" [drivers/isdn/hardware/mISDN/mISDNinfineon.ko] undefined!
ERROR: "isa_io_base" [drivers/isdn/hardware/mISDN/hfcmulti.ko] undefined!
ERROR: "isa_io_base" [drivers/isdn/hardware/mISDN/avmfritz.ko] undefined!
ERROR: "isa_io_base" [drivers/isdn/hardware/eicon/divas.ko] undefined!
ERROR: "isa_io_base" [drivers/isdn/hardware/avm/b1pci.ko] undefined!
ERROR: "isa_io_base" [drivers/isdn/hardware/avm/b1dma.ko] undefined!
ERROR: "isa_io_base" [drivers/isdn/hardware/avm/b1.ko] undefined!
ERROR: "isa_io_base" [drivers/input/touchscreen/mk712.ko] undefined!
ERROR: "isa_io_base" [drivers/input/serio/pcips2.ko] undefined!
ERROR: "isa_io_base" [drivers/input/joystick/tmdc.ko] undefined!
ERROR: "isa_io_base" [drivers/input/joystick/sidewinder.ko] undefined!
ERROR: "isa_io_base" [drivers/input/joystick/joydump.ko] undefined!
ERROR: "isa_io_base" [drivers/input/joystick/interact.ko] undefined!
ERROR: "isa_io_base" [drivers/input/joystick/guillemot.ko] undefined!
ERROR: "isa_io_base" [drivers/input/joystick/grip_mp.ko] undefined!
ERROR: "isa_io_base" [drivers/input/joystick/grip.ko] undefined!
ERROR: "isa_io_base" [drivers/input/joystick/gf2k.ko] undefined!
ERROR: "isa_io_base" [drivers/input/joystick/cobra.ko] undefined!
ERROR: "isa_io_base" [drivers/input/joystick/analog.ko] undefined!
ERROR: "isa_io_base" [drivers/input/joystick/adi.ko] undefined!
ERROR: "isa_io_base" [drivers/input/joystick/a3d.ko] undefined!
ERROR: "isa_io_base" [drivers/input/gameport/ns558.ko] undefined!
ERROR: "isa_io_base" [drivers/input/gameport/lightning.ko] undefined!
ERROR: "isa_io_base" [drivers/input/gameport/gameport.ko] undefined!
ERROR: "isa_io_base" [drivers/input/gameport/fm801-gp.ko] undefined!
ERROR: "isa_io_base" [drivers/i2c/busses/i2c-viapro.ko] undefined!
ERROR: "isa_io_base" [drivers/i2c/busses/i2c-via.ko] undefined!
ERROR: "isa_io_base" [drivers/i2c/busses/i2c-sis96x.ko] undefined!
ERROR: "isa_io_base" [drivers/i2c/busses/i2c-sis630.ko] undefined!
ERROR: "isa_io_base" [drivers/i2c/busses/i2c-sis5595.ko] undefined!
ERROR: "isa_io_base" [drivers/i2c/busses/i2c-piix4.ko] undefined!
ERROR: "isa_io_base" [drivers/i2c/busses/i2c-parport-light.ko] undefined!
ERROR: "isa_io_base" [drivers/i2c/busses/i2c-nforce2.ko] undefined!
ERROR: "isa_io_base" [drivers/i2c/busses/i2c-isch.ko] undefined!
ERROR: "isa_io_base" [drivers/i2c/busses/i2c-i801.ko] undefined!
ERROR: "isa_io_base" [drivers/i2c/busses/i2c-amd8111.ko] undefined!
ERROR: "isa_io_base" [drivers/i2c/busses/i2c-amd756.ko] undefined!
ERROR: "isa_io_base" [drivers/i2c/busses/i2c-ali15x3.ko] undefined!
ERROR: "isa_io_base" [drivers/i2c/busses/i2c-ali1563.ko] undefined!
ERROR: "isa_io_base" [drivers/i2c/busses/i2c-ali1535.ko] undefined!
ERROR: "isa_io_base" [drivers/hwmon/w83627hf.ko] undefined!
ERROR: "isa_io_base" [drivers/hwmon/w83627ehf.ko] undefined!
ERROR: "isa_io_base" [drivers/hwmon/vt8231.ko] undefined!
ERROR: "isa_io_base" [drivers/hwmon/vt1211.ko] undefined!
ERROR: "isa_io_base" [drivers/hwmon/via686a.ko] undefined!
ERROR: "isa_io_base" [drivers/hwmon/smsc47m1.ko] undefined!
ERROR: "isa_io_base" [drivers/hwmon/smsc47b397.ko] undefined!
ERROR: "isa_io_base" [drivers/hwmon/sis5595.ko] undefined!
ERROR: "isa_io_base" [drivers/hwmon/sch56xx-common.ko] undefined!
ERROR: "isa_io_base" [drivers/hwmon/pc87427.ko] undefined!
ERROR: "isa_io_base" [drivers/hwmon/pc87360.ko] undefined!
ERROR: "isa_io_base" [drivers/hwmon/nct6775.ko] undefined!
ERROR: "isa_io_base" [drivers/hwmon/nct6683.ko] undefined!
ERROR: "isa_io_base" [drivers/hwmon/it87.ko] undefined!
ERROR: "isa_io_base" [drivers/hwmon/f71882fg.ko] undefined!
ERROR: "isa_io_base" [drivers/hwmon/f71805f.ko] undefined!
ERROR: "isa_io_base" [drivers/hwmon/dme1737.ko] undefined!
ERROR: "isa_io_base" [drivers/gpu/drm/qxl/qxl.ko] undefined!
ERROR: "isa_io_base" [drivers/gpu/drm/cirrus/cirrus.ko] undefined!
ERROR: "isa_io_base" [drivers/gpu/drm/bochs/bochs-drm.ko] undefined!
ERROR: "isa_io_base" [drivers/gpio/gpio-vx855.ko] undefined!
ERROR: "isa_io_base" [drivers/gpio/gpio-ts5500.ko] undefined!
ERROR: "isa_io_base" [drivers/gpio/gpio-sch311x.ko] undefined!
ERROR: "isa_io_base" [drivers/gpio/gpio-amd8111.ko] undefined!
ERROR: "isa_io_base" [drivers/char/tpm/tpm_atmel.ko] undefined!
ERROR: "isa_io_base" [drivers/char/ipmi/ipmi_si.ko] undefined!
ERROR: "isa_io_base" [drivers/block/paride/on26.ko] undefined!
ERROR: "isa_io_base" [drivers/block/paride/on20.ko] undefined!
ERROR: "isa_io_base" [drivers/block/paride/ktti.ko] undefined!
ERROR: "isa_io_base" [drivers/block/paride/kbic.ko] undefined!
ERROR: "isa_io_base" [drivers/block/paride/frpw.ko] undefined!
ERROR: "isa_io_base" [drivers/block/paride/friq.ko] undefined!
ERROR: "isa_io_base" [drivers/block/paride/fit3.ko] undefined!
ERROR: "isa_io_base" [drivers/block/paride/fit2.ko] undefined!
ERROR: "isa_io_base" [drivers/block/paride/epia.ko] undefined!
ERROR: "isa_io_base" [drivers/block/paride/epat.ko] undefined!
ERROR: "isa_io_base" [drivers/block/paride/dstr.ko] undefined!
ERROR: "isa_io_base" [drivers/block/paride/comm.ko] undefined!
ERROR: "isa_io_base" [drivers/block/paride/bpck6.ko] undefined!
ERROR: "isa_io_base" [drivers/block/paride/bpck.ko] undefined!
ERROR: "isa_io_base" [drivers/block/paride/aten.ko] undefined!
ERROR: "isa_io_base" [drivers/atm/zatm.ko] undefined!
ERROR: "isa_io_base" [drivers/atm/horizon.ko] undefined!
ERROR: "isa_io_base" [drivers/atm/ambassador.ko] undefined!
ERROR: "isa_io_base" [drivers/ata/pata_sc1200.ko] undefined!
ERROR: "isa_io_base" [drivers/ata/pata_pdc202xx_old.ko] undefined!
ERROR: "isa_io_base" [drivers/ata/pata_optidma.ko] undefined!
ERROR: "isa_io_base" [drivers/ata/pata_legacy.ko] undefined!
ERROR: "isa_io_base" [drivers/ata/pata_hpt3x2n.ko] undefined!
ERROR: "isa_io_base" [drivers/ata/pata_hpt37x.ko] undefined!
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
PATCH v12 4/5 null_nvm: LightNVM test driver
In reply to Matias BjørlingThis driver implements the I/O flow for a LightNVM device driver. It does no transfers. It can be used to test setup/teardown of devices and evaluating performance of media managers and targets.
The framework of the driver is derived from the null_blk module.
--- drivers/lightnvm/Kconfig | 6 + drivers/lightnvm/Makefile | 1 + drivers/lightnvm/null_nvm.c | 457 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 464 insertions(+) create mode 100644 drivers/lightnvm/null_nvm.c
drivers/lightnvm/Kconfig +6 -0
@@ -39,4 +39,10 @@ config NVM_RRPC host. The target is implemented using a linear mapping table and cost-based garbage collection. It is optimized for 4K IO sizes. +config NVM_NULL_NVM + tristate "Null test LightNVM driver" + ---help--- + The null test driver can be used to evaluate targets without an + underlying device. + endif # NVM
drivers/lightnvm/Makefile +1 -0
@@ -5,3 +5,4 @@ obj-$(CONFIG_NVM) := core.o obj-$(CONFIG_NVM_GENNVM) += gennvm.o obj-$(CONFIG_NVM_RRPC) += rrpc.o +obj-$(CONFIG_NVM_NULL_NVM) += null_nvm.o
drivers/lightnvm/null_nvm.c new file +457 -0
457 lines not on this page · raw message
Signature · 1 line
2.1.4
kbuild test robot
build botRe: [PATCH v12 4/5] null_nvm: LightNVM test driver
reproduce:
Hi Matias,
[auto build test ERROR on next-20151022 -- if it's inappropriate base, please suggest rules for selecting the more suitable base]
url: https://github.com/0day-ci/linux/commits/Matias-Bj-rling/Support-for-Open-Channel-SSDs/20151027-230440 config: i386-allyesconfig (attached as .config) reproduce: # save the attached .config to linux build tree make ARCH=i386
All errors (new ones prefixed by >>):
drivers/built-in.o: In function `addr_to_generic_mode':
gennvm.c:(.text+0x88e078): undefined reference to __umoddi3' gennvm.c:(.text+0x88e090): undefined reference to __udivdi3' gennvm.c:(.text+0x88e0a1): undefined reference to __umoddi3' gennvm.c:(.text+0x88e0c7): undefined reference to __udivdi3' gennvm.c:(.text+0x88e0d5): undefined reference to __umoddi3' gennvm.c:(.text+0x88e10d): undefined reference to __udivdi3' gennvm.c:(.text+0x88e11b): undefined reference to __umoddi3' gennvm.c:(.text+0x88e144): undefined reference to __udivdi3' drivers/built-in.o: In function `gennvm_block_map':
gennvm.c:(.text+0x88e298): undefined reference to __udivdi3' gennvm.c:(.text+0x88e2c9): undefined reference to __udivdi3' drivers/built-in.o: In function `gennvm_erase_blk':
gennvm.c:(.text+0x88e459): undefined reference to __umoddi3' drivers/built-in.o: In function __linear_to_generic_addr':
rrpc.c:(.text+0x88e961): undefined reference to __umoddi3' rrpc.c:(.text+0x88e979): undefined reference to __udivdi3' rrpc.c:(.text+0x88e98a): undefined reference to __umoddi3' rrpc.c:(.text+0x88e9b0): undefined reference to __udivdi3' rrpc.c:(.text+0x88e9be): undefined reference to __umoddi3' rrpc.c:(.text+0x88e9f6): undefined reference to __udivdi3' rrpc.c:(.text+0x88ea04): undefined reference to __umoddi3' rrpc.c:(.text+0x88ea2d): undefined reference to __udivdi3' drivers/built-in.o: In function `rrpc_capacity':
rrpc.c:(.text+0x88ebd7): undefined reference to __udivdi3' drivers/built-in.o: In function rrpc_page_invalidate':
rrpc.c:(.text+0x88ef75): undefined reference to __umoddi3' drivers/built-in.o: In function null_id':
>> null_nvm.c:(.text+0x890537): undefined reference to `__udivdi3'
null_nvm.c:(.text+0x89054b): undefined reference to `__udivdi3'
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
PATCH v12 5/5 nvme: LightNVM support
In reply to Matias BjørlingThe first generation of Open-Channel SSDs is based on NVMe. The NVMe driver is extended with support for the LightNVM command set.
Detection is made through PCI IDs. Current supported devices are the qemu nvme simulator and CNEX Labs Westlake SSD. The qemu nvme enables support through vendor specific bits in the namespace identification and the CNEX card is configured for LightNVM upon boot and does not need detection other than PCI id.
After detection, vendor specific codes are used to identify the device and enumerate supported features.
--- drivers/nvme/host/Makefile | 2 +- drivers/nvme/host/lightnvm.c | 524 +++++++++++++++++++++++++++++++++++++++++++ drivers/nvme/host/nvme.h | 10 + drivers/nvme/host/pci.c | 39 +++- 4 files changed, 563 insertions(+), 12 deletions(-) create mode 100644 drivers/nvme/host/lightnvm.c
drivers/nvme/host/Makefile +1 -1
@@ -1,4 +1,4 @@ obj-$(CONFIG_BLK_DEV_NVME) += nvme.o -nvme-y += pci.o scsi.o +nvme-y += pci.o scsi.o lightnvm.o
drivers/nvme/host/lightnvm.c new file +524 -0
524 lines not on this page · raw message
drivers/nvme/host/nvme.h +10 -0
@@ -22,6 +22,11 @@extern unsigned char nvme_io_timeout;#define NVME_IO_TIMEOUT (nvme_io_timeout * HZ) +enum { +NVME_NS_LBA =0 , +NVME_NS_LIGHTNVM =1 , +}; +/* * Represents an NVM Express device. Each nvme_dev is a PCI function. */
@@ -84,6 +89,7 @@ struct nvme_ns {u16 ms;bool ext;u8 pi_type; +int type;u64 mode_select_num_blocks;u32 mode_select_block_len; };
@@ -130,4 +136,8 @@ int nvme_sg_io(struct nvme_ns *ns, struct sg_io_hdr __user *u_hdr);int nvme_sg_io32 (struct nvme_ns *ns,unsigned long arg);int nvme_sg_get_version_num (int __user *ip); +int nvme_nvm_ns_supported (struct nvme_ns *ns,struct nvme_id_ns *id); +int nvme_nvm_register (struct request_queue *q,char *disk_name); +void nvme_nvm_unregister (struct request_queue *q,char *disk_name); +#endif /* _NVME_H */
drivers/nvme/host/pci.c +28 -11
@@ -1948,6 +1948,9 @@ static void nvme_free_ns(struct kref *kref) { struct nvme_ns *ns = container_of(kref, struct nvme_ns, kref); +if (ns->type ==NVME_NS_LIGHTNVM ) +nvme_nvm_unregister (ns->queue, ns->disk->disk_name); +spin_lock (&dev_list_lock); ns->disk->private_data =NULL ;spin_unlock (&dev_list_lock);
@@ -2017,6 +2020,16 @@ static int nvme_revalidate_disk(struct gendisk *disk)return -ENODEV ; } +if (nvme_nvm_ns_supported (ns, id) && ns->type !=NVME_NS_LIGHTNVM ) { +if (nvme_nvm_register (ns->queue, disk->disk_name)) { +dev_warn (dev->dev, +"%s: LightNVM init failure\n" , __func__); +kfree (id); +return -ENODEV ; + } + ns->type =NVME_NS_LIGHTNVM ; + } + old_ms = ns->ms; lbaf = id->flbas &NVME_NS_FLBAS_LBA_MASK ; ns->lba_shift = id->lbaf[lbaf].ds;
@@ -2048,7 +2061,9 @@ static int nvme_revalidate_disk(struct gendisk *disk) !ns->ext)nvme_init_integrity (ns); -if (ns->ms && !(ns->ms ==8 && ns->pi_type) && !blk_get_integrity (disk)) +if ((ns->ms && !(ns->ms ==8 && ns->pi_type) && + !blk_get_integrity (disk)) || + ns->type ==NVME_NS_LIGHTNVM )set_capacity (disk,0 );else set_capacity (disk,le64_to_cpup (&id->nsze) << (ns->lba_shift -9 ));
@@ -2171,17 +2186,19 @@ static void nvme_alloc_ns(struct nvme_dev *dev, unsigned nsid) goto out_free_disk;kref_get (&dev->kref); -add_disk (ns->disk); -if (ns->ms) { -struct block_device *bd =bdget_disk (ns->disk,0 ); -if (!bd) -return ; -if (blkdev_get (bd,FMODE_READ ,NULL )) { -bdput (bd); -return ; +if (ns->type !=NVME_NS_LIGHTNVM ) { +add_disk (ns->disk); +if (ns->ms) { +struct block_device *bd =bdget_disk (ns->disk,0 ); +if (!bd) +return ; +if (blkdev_get (bd,FMODE_READ ,NULL )) { +bdput (bd); +return ; + } +blkdev_reread_part (bd); +blkdev_put (bd,FMODE_READ ); } -blkdev_reread_part (bd); -blkdev_put (bd,FMODE_READ ); }return ; out_free_disk:
Signature · 1 line
2.1.4