Skip to content

Commits

Permalink
Nitesh-Shetty/…
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Commits on Apr 19, 2023

  1. null_blk: add support for copy offload

    Implementaion is based on existing read and write infrastructure.
    copy_max_bytes: A new configfs and module parameter is introduced, which
    can be used to set hardware/driver supported maximum copy limit.
    
    Suggested-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
    Signed-off-by: Anuj Gupta <anuj20.g@samsung.com>
    Signed-off-by: Nitesh Shetty <nj.shetty@samsung.com>
    Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
    nj-shetty authored and intel-lab-lkp committed Apr 19, 2023
    Copy the full SHA
    4fcdba0 View commit details
    Browse the repository at this point in the history
  2. dm: Enable copy offload for dm-linear target

    Setting copy_offload_supported flag to enable offload.
    
    Signed-off-by: Nitesh Shetty <nj.shetty@samsung.com>
    nj-shetty authored and intel-lab-lkp committed Apr 19, 2023
    Copy the full SHA
    629f57e View commit details
    Browse the repository at this point in the history
  3. dm: Add support for copy offload

    Before enabling copy for dm target, check if underlying devices and
    dm target support copy. Avoid split happening inside dm target.
    Fail early if the request needs split, currently splitting copy
    request is not supported.
    
    Signed-off-by: Nitesh Shetty <nj.shetty@samsung.com>
    nj-shetty authored and intel-lab-lkp committed Apr 19, 2023
    Copy the full SHA
    e8959e8 View commit details
    Browse the repository at this point in the history
  4. nvmet: add copy command support for bdev and file ns

    Add support for handling target command on target.
    For bdev-ns we call into blkdev_issue_copy, which the block layer
    completes by a offloaded copy request to backend bdev or by emulating the
    request.
    
    For file-ns we call vfs_copy_file_range to service our request.
    
    Currently target always shows copy capability by setting
    NVME_CTRL_ONCS_COPY in controller ONCS.
    
    Signed-off-by: Nitesh Shetty <nj.shetty@samsung.com>
    Signed-off-by: Anuj Gupta <anuj20.g@samsung.com>
    nj-shetty authored and intel-lab-lkp committed Apr 19, 2023
    Copy the full SHA
    420b04f View commit details
    Browse the repository at this point in the history
  5. nvme: add copy offload support

    For device supporting native copy, nvme driver receives read and
    write request with BLK_COPY op flags.
    For read request the nvme driver populates the payload with source
    information.
    For write request the driver converts it to nvme copy command using the
    source information in the payload and submits to the device.
    current design only supports single source range.
    This design is courtesy Mikulas Patocka's token based copy
    
    trace event support for nvme_copy_cmd.
    Set the device copy limits to queue limits.
    
    Signed-off-by: Kanchan Joshi <joshi.k@samsung.com>
    Signed-off-by: Nitesh Shetty <nj.shetty@samsung.com>
    Signed-off-by: Javier González <javier.gonz@samsung.com>
    Signed-off-by: Anuj Gupta <anuj20.g@samsung.com>
    nj-shetty authored and intel-lab-lkp committed Apr 19, 2023
    Copy the full SHA
    238cba7 View commit details
    Browse the repository at this point in the history
  6. fs, block: copy_file_range for def_blk_ops for direct block device

    For direct block device opened with O_DIRECT, use copy_file_range to
    issue device copy offload, and fallback to generic_copy_file_range incase
    device copy offload capability is absent.
    Modify checks to allow bdevs to use copy_file_range.
    
    Suggested-by: Ming Lei <ming.lei@redhat.com>
    Signed-off-by: Anuj Gupta <anuj20.g@samsung.com>
    Signed-off-by: Nitesh Shetty <nj.shetty@samsung.com>
    nj-shetty authored and intel-lab-lkp committed Apr 19, 2023
    Copy the full SHA
    ee5b3d6 View commit details
    Browse the repository at this point in the history
  7. block: add emulation for copy

    For the devices which does not support copy, copy emulation is added.
    It is required for in-kernel users like fabrics, where file descriptor is
    not available and hence they can't use copy_file_range.
    Copy-emulation is implemented by reading from source into memory and
    writing to the corresponding destination asynchronously.
    Also emulation is used, if copy offload fails or partially completes.
    
    Signed-off-by: Nitesh Shetty <nj.shetty@samsung.com>
    Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
    Signed-off-by: Anuj Gupta <anuj20.g@samsung.com>
    nj-shetty authored and intel-lab-lkp committed Apr 19, 2023
    Copy the full SHA
    30c2030 View commit details
    Browse the repository at this point in the history
  8. block: Add copy offload support infrastructure

    Introduce blkdev_issue_copy which takes similar arguments as
    copy_file_range and performs copy offload between two bdevs.
    Introduce REQ_COPY copy offload operation flag. Create a read-write
    bio pair with a token as payload and submitted to the device in order.
    Read request populates token with source specific information which
    is then passed with write request.
    This design is courtesy Mikulas Patocka's token based copy
    
    Larger copy will be divided, based on max_copy_sectors limit.
    
    Signed-off-by: Nitesh Shetty <nj.shetty@samsung.com>
    Signed-off-by: Anuj Gupta <anuj20.g@samsung.com>
    nj-shetty authored and intel-lab-lkp committed Apr 19, 2023
    Copy the full SHA
    c6364c3 View commit details
    Browse the repository at this point in the history
  9. block: Introduce queue limits for copy-offload support

    Add device limits as sysfs entries,
            - copy_offload (RW)
            - copy_max_bytes (RW)
            - copy_max_bytes_hw (RO)
    
    Above limits help to split the copy payload in block layer.
    copy_offload: used for setting copy offload(1) or emulation(0).
    copy_max_bytes: maximum total length of copy in single payload.
    copy_max_bytes_hw: Reflects the device supported maximum limit.
    
    Reviewed-by: Hannes Reinecke <hare@suse.de>
    Signed-off-by: Nitesh Shetty <nj.shetty@samsung.com>
    Signed-off-by: Kanchan Joshi <joshi.k@samsung.com>
    Signed-off-by: Anuj Gupta <anuj20.g@samsung.com>
    nj-shetty authored and intel-lab-lkp committed Apr 19, 2023
    Copy the full SHA
    1aa05e6 View commit details
    Browse the repository at this point in the history

Commits on Apr 18, 2023

  1. Add linux-next specific files for 20230418

    Signed-off-by: Mark Brown <broonie@kernel.org>
    broonie committed Apr 18, 2023
    Copy the full SHA
    67d5d9f View commit details
    Browse the repository at this point in the history
  2. bpftool: fix broken compile on s390 for linux-next repository

    Commit 9fd4968 ("bpftool: Support inline annotations when dumping the CFG of a program")
    breaks the build of the perf tool on s390 in the linux-next repository.
    Here is the make output:
    
    make -C tools/perf
    ....
    btf_dumper.c: In function 'dotlabel_puts':
    DEBUG: btf_dumper.c:838:25: error: '__fallthrough' undeclared \
    		(first use in this function); did you mean 'fallthrough'?
    DEBUG:   838 |                         __fallthrough;
    DEBUG:       |                         ^~~~~~~~~~~~~
    DEBUG:       |                         fallthrough
    DEBUG: btf_dumper.c:838:25: note: each undeclared identifier is reported \
    		only once for each function it appears in
    DEBUG: btf_dumper.c:837:25: warning: this statement may fall through \
                    [-Wimplicit-fallthrough=]
    DEBUG:   837 |                         putchar('\\');
    DEBUG:       |                         ^~~~~~~~~~~~~
    DEBUG: btf_dumper.c:839:17: note: here
    DEBUG:   839 |                 default:
    DEBUG:       |                 ^~~~~~~
    DEBUG: make[3]: *** [Makefile:247: /builddir/build/BUILD/kernel-6.2.fc37/\
    		        linux-6.2/tools/perf/util/bpf_skel/ \
    		        .tmp/bootstrap/btf_dumper.o] Error 1
    
    The compile fails because symbol __fallthrough unknown, but symbol
    fallthrough is known and works fine.
    
    Fix this and replace __fallthrough by fallthrough.
    
    With this change, the compile works.
    
    Output after:
    
     # make -C tools/perf
     ....
     CC      util/bpf-filter.o
     CC      util/bpf-filter-flex.o
     LD      util/perf-in.o
     LD      perf-in.o
     LINK    perf
     make: Leaving directory '/root/mirror-linux-next/tools/perf'
     #
    
    Fixes: 9fd4968 ("bpftool: Support inline annotations when dumping the CFG of a program")
    Signed-off-by: Thomas Richter <tmricht@linux.ibm.com>
    Acked-by: Quentin Monnet <quentin@isovalent.com>
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Thomas Richter authored and broonie committed Apr 18, 2023
    Copy the full SHA
    a999166 View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    3007d42 View commit details
    Browse the repository at this point in the history
  4. Merge branch 'for-next/kspp' of git://git.kernel.org/pub/scm/linux/ke…

    …rnel/git/gustavoars/linux.git
    broonie committed Apr 18, 2023
    Copy the full SHA
    a3c597d View commit details
    Browse the repository at this point in the history
  5. Merge branch 'bitmap-for-next' of https://github.com/norov/linux.git

    # Conflicts:
    #	include/linux/cpumask.h
    broonie committed Apr 18, 2023
    Copy the full SHA
    c3de403 View commit details
    Browse the repository at this point in the history
  6. Merge branch 'sysctl-next' of git://git.kernel.org/pub/scm/linux/kern…

    …el/git/mcgrof/linux.git
    broonie committed Apr 18, 2023
    Copy the full SHA
    116a265 View commit details
    Browse the repository at this point in the history
  7. Copy the full SHA
    21a40c1 View commit details
    Browse the repository at this point in the history
  8. Copy the full SHA
    a695ca3 View commit details
    Browse the repository at this point in the history
  9. Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…

    …git/vbabka/slab.git
    
    # Conflicts:
    #	include/linux/slab.h
    #	mm/slob.c
    broonie committed Apr 18, 2023
    Copy the full SHA
    855f13c View commit details
    Browse the repository at this point in the history
  10. Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…

    …git/krisman/unicode.git
    broonie committed Apr 18, 2023
    Copy the full SHA
    7ecd559 View commit details
    Browse the repository at this point in the history
  11. Copy the full SHA
    2b41d55 View commit details
    Browse the repository at this point in the history
  12. Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…

    …git/rppt/memblock.git
    broonie committed Apr 18, 2023
    Copy the full SHA
    b2915b6 View commit details
    Browse the repository at this point in the history
  13. Copy the full SHA
    35c5ffa View commit details
    Browse the repository at this point in the history
  14. next-20230417/hyperv

    broonie committed Apr 18, 2023
    Copy the full SHA
    d99ac34 View commit details
    Browse the repository at this point in the history
  15. next-20230417/xarray

    broonie committed Apr 18, 2023
    Copy the full SHA
    77b2dfc View commit details
    Browse the repository at this point in the history
  16. Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…

    …git/srini/nvmem.git
    
    # Conflicts:
    #	drivers/nvmem/layouts/sl28vpd.c
    #	drivers/of/Makefile
    #	include/linux/of.h
    broonie committed Apr 18, 2023
    Copy the full SHA
    a3d324d View commit details
    Browse the repository at this point in the history
  17. Copy the full SHA
    25cdfc6 View commit details
    Browse the repository at this point in the history
  18. Merge branch 'rtc-next' of git://git.kernel.org/pub/scm/linux/kernel/…

    …git/abelloni/linux.git
    broonie committed Apr 18, 2023
    Copy the full SHA
    b1b61e9 View commit details
    Browse the repository at this point in the history
  19. Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…

    …git/livepatching/livepatching
    broonie committed Apr 18, 2023
    Copy the full SHA
    9c5713c View commit details
    Browse the repository at this point in the history
  20. Merge branch 'kunit' of git://git.kernel.org/pub/scm/linux/kernel/git…

    …/shuah/linux-kselftest.git
    broonie committed Apr 18, 2023
    Copy the full SHA
    da5dcd8 View commit details
    Browse the repository at this point in the history
  21. Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/…

    …shuah/linux-kselftest.git
    broonie committed Apr 18, 2023
    Copy the full SHA
    b75f395 View commit details
    Browse the repository at this point in the history
  22. Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…

    …git/ebiederm/user-namespace.git
    broonie committed Apr 18, 2023
    Copy the full SHA
    edaf597 View commit details
    Browse the repository at this point in the history
  23. Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…

    …git/thierry.reding/linux-pwm.git
    broonie committed Apr 18, 2023
    Copy the full SHA
    5dae1f9 View commit details
    Browse the repository at this point in the history
  24. Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…

    …git/linusw/linux-pinctrl.git
    broonie committed Apr 18, 2023
    Copy the full SHA
    95b7d5b View commit details
    Browse the repository at this point in the history
  25. Merge branch 'gpio/for-next' of git://git.kernel.org/pub/scm/linux/ke…

    …rnel/git/brgl/linux.git
    broonie committed Apr 18, 2023
    Copy the full SHA
    11dec67 View commit details
    Browse the repository at this point in the history
  26. Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/…

    …git/remoteproc/linux.git
    broonie committed Apr 18, 2023
    Copy the full SHA
    fc72e7a View commit details
    Browse the repository at this point in the history
Older