# git rev-parse -q --verify 38e7571c07be01f9f19b355a9306a4e3d5cb0f5b^{commit} 38e7571c07be01f9f19b355a9306a4e3d5cb0f5b already have revision, skipping fetch # git checkout -q -f -B kisskb 38e7571c07be01f9f19b355a9306a4e3d5cb0f5b # git clean -qxdf # < git log -1 # commit 38e7571c07be01f9f19b355a9306a4e3d5cb0f5b # Merge: 80201fe175cb 21b4aa5d20fd # Author: Linus Torvalds # Date: Fri Mar 8 14:48:40 2019 -0800 # # Merge tag 'io_uring-2019-03-06' of git://git.kernel.dk/linux-block # # Pull io_uring IO interface from Jens Axboe: # "Second attempt at adding the io_uring interface. # # Since the first one, we've added basic unit testing of the three # system calls, that resides in liburing like the other unit tests that # we have so far. It'll take a while to get full coverage of it, but # we're working towards it. I've also added two basic test programs to # tools/io_uring. One uses the raw interface and has support for all the # various features that io_uring supports outside of standard IO, like # fixed files, fixed IO buffers, and polled IO. The other uses the # liburing API, and is a simplified version of cp(1). # # This adds support for a new IO interface, io_uring. # # io_uring allows an application to communicate with the kernel through # two rings, the submission queue (SQ) and completion queue (CQ) ring. # This allows for very efficient handling of IOs, see the v5 posting for # some basic numbers: # # https://lore.kernel.org/linux-block/20190116175003.17880-1-axboe@kernel.dk/ # # Outside of just efficiency, the interface is also flexible and # extendable, and allows for future use cases like the upcoming NVMe # key-value store API, networked IO, and so on. It also supports async # buffered IO, something that we've always failed to support in the # kernel. # # Outside of basic IO features, it supports async polled IO as well. # This particular feature has already been tested at Facebook months ago # for flash storage boxes, with 25-33% improvements. It makes polled IO # actually useful for real world use cases, where even basic flash sees # a nice win in terms of efficiency, latency, and performance. These # boxes were IOPS bound before, now they are not. # # This series adds three new system calls. One for setting up an # io_uring instance (io_uring_setup(2)), one for submitting/completing # IO (io_uring_enter(2)), and one for aux functions like registrating # file sets, buffers, etc (io_uring_register(2)). Through the help of # Arnd, I've coordinated the syscall numbers so merge on that front # should be painless. # # Jon did a writeup of the interface a while back, which (except for # minor details that have been tweaked) is still accurate. Find that # here: # # https://lwn.net/Articles/776703/ # # Huge thanks to Al Viro for helping getting the reference cycle code # correct, and to Jann Horn for his extensive reviews focused on both # security and bugs in general. # # There's a userspace library that provides basic functionality for # applications that don't need or want to care about how to fiddle with # the rings directly. It has helpers to allow applications to easily set # up an io_uring instance, and submit/complete IO through it without # knowing about the intricacies of the rings. It also includes man pages # (thanks to Jeff Moyer), and will continue to grow support helper # functions and features as time progresses. Find it here: # # git://git.kernel.dk/liburing # # Fio has full support for the raw interface, both in the form of an IO # engine (io_uring), but also with a small test application (t/io_uring) # that can exercise and benchmark the interface" # # * tag 'io_uring-2019-03-06' of git://git.kernel.dk/linux-block: # io_uring: add a few test tools # io_uring: allow workqueue item to handle multiple buffered requests # io_uring: add support for IORING_OP_POLL # io_uring: add io_kiocb ref count # io_uring: add submission polling # io_uring: add file set registration # net: split out functions related to registering inflight socket files # io_uring: add support for pre-mapped user IO buffers # block: implement bio helper to add iter bvec pages to bio # io_uring: batch io_kiocb allocation # io_uring: use fget/fput_many() for file references # fs: add fget_many() and fput_many() # io_uring: support for IO polling # io_uring: add fsync support # Add io_uring IO interface # < /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/aarch64-linux/bin/aarch64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/aarch64-linux/bin/aarch64-linux-ld --version # < git log --format=%s --max-count=1 38e7571c07be01f9f19b355a9306a4e3d5cb0f5b # < make -s -j 80 ARCH=arm64 O=/kisskb/build/linus-rand_arm64-randconfig_arm64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/aarch64-linux/bin/aarch64-linux- randconfig KCONFIG_SEED=0x8B72C074 WARNING: unmet direct dependencies detected for PINCTRL_IMX_SCU Depends on [n]: PINCTRL [=y] && IMX_SCU [=n] Selected by [y]: - PINCTRL_IMX8QXP [=y] && PINCTRL [=y] && ARCH_MXC [=y] && ARM64 [=y] WARNING: unmet direct dependencies detected for ARM64_ERRATUM_845719 Depends on [n]: COMPAT [=n] Selected by [y]: - ARCH_MXC [=y] WARNING: unmet direct dependencies detected for PINCTRL_IMX_SCU Depends on [n]: PINCTRL [=y] && IMX_SCU [=n] Selected by [y]: - PINCTRL_IMX8QXP [=y] && PINCTRL [=y] && ARCH_MXC [=y] && ARM64 [=y] WARNING: unmet direct dependencies detected for ARM64_ERRATUM_845719 Depends on [n]: COMPAT [=n] Selected by [y]: - ARCH_MXC [=y] # Added to kconfig CONFIG_PREVENT_FIRMWARE_BUILD=y # yes \n | make -s -j 80 ARCH=arm64 O=/kisskb/build/linus-rand_arm64-randconfig_arm64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/aarch64-linux/bin/aarch64-linux- oldconfig yes: standard output: Broken pipe # make -s -j 80 ARCH=arm64 O=/kisskb/build/linus-rand_arm64-randconfig_arm64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/aarch64-linux/bin/aarch64-linux- WARNING: unmet direct dependencies detected for PINCTRL_IMX_SCU Depends on [n]: PINCTRL [=y] && IMX_SCU [=n] Selected by [y]: - PINCTRL_IMX8QXP [=y] && PINCTRL [=y] && ARCH_MXC [=y] && ARM64 [=y] WARNING: unmet direct dependencies detected for ARM64_ERRATUM_845719 Depends on [n]: COMPAT [=n] Selected by [y]: - ARCH_MXC [=y] WARNING: unmet direct dependencies detected for PINCTRL_IMX_SCU Depends on [n]: PINCTRL [=y] && IMX_SCU [=n] Selected by [y]: - PINCTRL_IMX8QXP [=y] && PINCTRL [=y] && ARCH_MXC [=y] && ARM64 [=y] WARNING: unmet direct dependencies detected for ARM64_ERRATUM_845719 Depends on [n]: COMPAT [=n] Selected by [y]: - ARCH_MXC [=y] WARNING: unmet direct dependencies detected for PINCTRL_IMX_SCU Depends on [n]: PINCTRL [=y] && IMX_SCU [=n] Selected by [y]: - PINCTRL_IMX8QXP [=y] && PINCTRL [=y] && ARCH_MXC [=y] && ARM64 [=y] WARNING: unmet direct dependencies detected for ARM64_ERRATUM_845719 Depends on [n]: COMPAT [=n] Selected by [y]: - ARCH_MXC [=y] /kisskb/src/kernel/sysctl.c:3330:12: warning: 'proc_dointvec_minmax_bpf_stats' defined but not used [-Wunused-function] static int proc_dointvec_minmax_bpf_stats(struct ctl_table *table, int write, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /kisskb/src/net/appletalk/ddp.c:65: /kisskb/src/net/appletalk/ddp.c: In function 'atalk_init': /kisskb/src/include/linux/atalk.h:164:34: error: expected expression before 'do' #define atalk_register_sysctl() do { } while(0) ^~ /kisskb/src/net/appletalk/ddp.c:1939:7: note: in expansion of macro 'atalk_register_sysctl' rc = atalk_register_sysctl(); ^~~~~~~~~~~~~~~~~~~~~ make[3]: *** [/kisskb/src/scripts/Makefile.build:277: net/appletalk/ddp.o] Error 1 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [/kisskb/src/scripts/Makefile.build:492: net/appletalk] Error 2 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [/kisskb/src/Makefile:1043: net] Error 2 make[1]: *** Waiting for unfinished jobs.... /kisskb/src/sound/pci/hda/hda_tegra.c: In function 'hda_tegra_runtime_suspend': /kisskb/src/sound/pci/hda/hda_tegra.c:273:2: error: implicit declaration of function 'hda_tegra_disable_clocks'; did you mean 'hda_tegra_enable_clocks'? [-Werror=implicit-function-declaration] hda_tegra_disable_clocks(hda); ^~~~~~~~~~~~~~~~~~~~~~~~ hda_tegra_enable_clocks cc1: some warnings being treated as errors make[4]: *** [/kisskb/src/scripts/Makefile.build:276: sound/pci/hda/hda_tegra.o] Error 1 make[4]: *** Waiting for unfinished jobs.... make[3]: *** [/kisskb/src/scripts/Makefile.build:492: sound/pci/hda] Error 2 make[2]: *** [/kisskb/src/scripts/Makefile.build:492: sound/pci] Error 2 make[2]: *** Waiting for unfinished jobs.... In file included from /kisskb/src/include/asm-generic/bug.h:18, from /kisskb/src/arch/arm64/include/asm/bug.h:37, from /kisskb/src/include/linux/bug.h:5, from /kisskb/src/include/linux/mmdebug.h:5, from /kisskb/src/include/linux/mm.h:9, from /kisskb/src/drivers/dma/imx-dma.c:14: /kisskb/src/drivers/dma/imx-dma.c: In function 'imxdma_sg_next': /kisskb/src/include/linux/kernel.h:827:29: warning: comparison of distinct pointer types lacks a cast (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1))) ^~ /kisskb/src/include/linux/kernel.h:841:4: note: in expansion of macro '__typecheck' (__typecheck(x, y) && __no_side_effects(x, y)) ^~~~~~~~~~~ /kisskb/src/include/linux/kernel.h:851:24: note: in expansion of macro '__safe_cmp' __builtin_choose_expr(__safe_cmp(x, y), \ ^~~~~~~~~~ /kisskb/src/include/linux/kernel.h:860:19: note: in expansion of macro '__careful_cmp' #define min(x, y) __careful_cmp(x, y, <) ^~~~~~~~~~~~~ /kisskb/src/drivers/dma/imx-dma.c:288:8: note: in expansion of macro 'min' now = min(d->len, sg_dma_len(sg)); ^~~ In file included from /kisskb/src/drivers/gpu/host1x/hw/host1x06.c:27: /kisskb/src/drivers/gpu/host1x/hw/channel_hw.c: In function 'host1x_channel_set_streamid': /kisskb/src/drivers/gpu/host1x/hw/channel_hw.c:118:30: error: implicit declaration of function 'dev_iommu_fwspec_get'; did you mean 'iommu_fwspec_free'? [-Werror=implicit-function-declaration] struct iommu_fwspec *spec = dev_iommu_fwspec_get(channel->dev->parent); ^~~~~~~~~~~~~~~~~~~~ iommu_fwspec_free /kisskb/src/drivers/gpu/host1x/hw/channel_hw.c:118:30: warning: initialization of 'struct iommu_fwspec *' from 'int' makes pointer from integer without a cast [-Wint-conversion] /kisskb/src/drivers/gpu/host1x/hw/channel_hw.c:119:23: error: 'struct iommu_fwspec' has no member named 'ids' u32 sid = spec ? spec->ids[0] & 0xffff : 0x7f; ^~ cc1: some warnings being treated as errors make[4]: *** [/kisskb/src/scripts/Makefile.build:277: drivers/gpu/host1x/hw/host1x06.o] Error 1 make[4]: *** Waiting for unfinished jobs.... In file included from /kisskb/src/drivers/gpu/host1x/hw/host1x07.c:27: /kisskb/src/drivers/gpu/host1x/hw/channel_hw.c: In function 'host1x_channel_set_streamid': /kisskb/src/drivers/gpu/host1x/hw/channel_hw.c:118:30: error: implicit declaration of function 'dev_iommu_fwspec_get'; did you mean 'iommu_fwspec_free'? [-Werror=implicit-function-declaration] struct iommu_fwspec *spec = dev_iommu_fwspec_get(channel->dev->parent); ^~~~~~~~~~~~~~~~~~~~ iommu_fwspec_free /kisskb/src/drivers/gpu/host1x/hw/channel_hw.c:118:30: warning: initialization of 'struct iommu_fwspec *' from 'int' makes pointer from integer without a cast [-Wint-conversion] /kisskb/src/drivers/gpu/host1x/hw/channel_hw.c:119:23: error: 'struct iommu_fwspec' has no member named 'ids' u32 sid = spec ? spec->ids[0] & 0xffff : 0x7f; ^~ cc1: some warnings being treated as errors make[4]: *** [/kisskb/src/scripts/Makefile.build:276: drivers/gpu/host1x/hw/host1x07.o] Error 1 make[3]: *** [/kisskb/src/scripts/Makefile.build:492: drivers/gpu/host1x] Error 2 make[2]: *** [/kisskb/src/scripts/Makefile.build:492: drivers/gpu] Error 2 make[2]: *** Waiting for unfinished jobs.... /kisskb/src/drivers/mailbox/tegra-hsp.c:782:12: warning: 'tegra_hsp_resume' defined but not used [-Wunused-function] static int tegra_hsp_resume(struct device *dev) ^~~~~~~~~~~~~~~~ make[1]: *** [/kisskb/src/Makefile:1043: sound] Error 2 make[1]: *** [/kisskb/src/Makefile:1043: drivers] Error 2 make: *** [Makefile:152: sub-make] Error 2 Command 'make -s -j 80 ARCH=arm64 O=/kisskb/build/linus-rand_arm64-randconfig_arm64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/aarch64-linux/bin/aarch64-linux- ' returned non-zero exit status 2 # rm -rf /kisskb/build/linus-rand_arm64-randconfig_arm64-gcc8 # Build took: 0:02:38.989468