18 Dec, 2020

1 commit

  • * crypto/next: (39 commits)
    MLK-23746 crypto: dcp - add power management support
    crypto: dcp - check zero-length input
    MLK-24912-2 crypto: caam - fix RNG vs. hwrng kthread race
    MLK-24912-1 crypto: caam/jr - update jr_list during suspend/resume
    LF-2943 crypto: caam - optimize RNG sample size
    ...

    BJ DevOps Team
     

14 Dec, 2020

2 commits

  • This patch adds the Kernel support for the caam-keygen user-space
    application. It has two IOCTL calls for key and blob generation and
    import a black key from a blob.

    This support is included in CRYPTO_DEV_FSL_CAAM_TK_API (tagged key
    support).

    Signed-off-by: Iuliana Prodan
    Reviewed-by: Horia Geantă
    (cherry picked from commit 60baeafa838f98a5ab1069716b8e41d28e155137)

    Squashed fixes:
    dd746ff04645 ("MLK-24496 crypto: caam - add tag object header to blob")
    b8c49eddfd68 ("MLK-24517-3 crypto: caam - add null terminator to temporary buffer")
    d7c41169bc8e ("MLK-24517-4 crypto: caam - validate arguments received from user-space")

    Signed-off-by: Iuliana Prodan
    Reviewed-by: Horia Geantă

    Iuliana Prodan
     
  • The added format is V4L2_PIX_FMT_YUV24, this is a packed
    YUV 4:4:4 format, with 8 bits for each component, 24 bits
    per sample.

    Signed-off-by: Mirela Rabulea
    Reviewed-by: Laurentiu Palcu
    Acked-by: Leonard Crestez
    [ Aisheng : fix minor conflicts ]
    Signed-off-by: Dong Aisheng

    Mirela Rabulea
     

29 Oct, 2020

1 commit

  • There's a new uAPI doc for IOMMU. Add it to the index file.
    Should address this warning:

    .../Documentation/userspace-api/iommu.rst: WARNING: document isn't included in any toctree

    Fixes: d0023e3ee28d ("docs: IOMMU user API")
    Signed-off-by: Mauro Carvalho Chehab
    Link: https://lore.kernel.org/r/cc55219a551e29848e2282cd8939a4115067234c.1603791716.git.mchehab+huawei@kernel.org
    Signed-off-by: Jonathan Corbet

    Mauro Carvalho Chehab
     

17 Oct, 2020

1 commit

  • Pull documentation updates from Mauro Carvalho Chehab:
    "A series of patches addressing warnings produced by make htmldocs.
    This includes:

    - kernel-doc markup fixes

    - ReST fixes

    - Updates at the build system in order to support newer versions of
    the docs build toolchain (Sphinx)

    After this series, the number of html build warnings should reduce
    significantly, and building with Sphinx 3.1 or later should now be
    supported (although it is still recommended to use Sphinx 2.4.4).

    As agreed with Jon, I should be sending you a late pull request by the
    end of the merge window addressing remaining issues with docs build,
    as there are a number of warning fixes that depends on pull requests
    that should be happening along the merge window.

    The end goal is to have a clean htmldocs build on Kernel 5.10.

    PS. It should be noticed that Sphinx 3.0 is not currently supported,
    as it lacks support for C domain namespaces. Such feature, needed in
    order to document uAPI system calls with Sphinx 3.x, was added only on
    Sphinx 3.1"

    * tag 'docs/v5.10-1' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media: (75 commits)
    PM / devfreq: remove a duplicated kernel-doc markup
    mm/doc: fix a literal block markup
    workqueue: fix a kernel-doc warning
    docs: virt: user_mode_linux_howto_v2.rst: fix a literal block markup
    Input: sparse-keymap: add a description for @sw
    rcu/tree: docs: document bkvcache new members at struct kfree_rcu_cpu
    nl80211: docs: add a description for s1g_cap parameter
    usb: docs: document altmode register/unregister functions
    kunit: test.h: fix a bad kernel-doc markup
    drivers: core: fix kernel-doc markup for dev_err_probe()
    docs: bio: fix a kerneldoc markup
    kunit: test.h: solve kernel-doc warnings
    block: bio: fix a warning at the kernel-doc markups
    docs: powerpc: syscall64-abi.rst: fix a malformed table
    drivers: net: hamradio: fix document location
    net: appletalk: Kconfig: Fix docs location
    dt-bindings: fix references to files converted to yaml
    memblock: get rid of a :c:type leftover
    math64.h: kernel-docs: Convert some markups into normal comments
    media: uAPI: buffer.rst: remove a left-over documentation
    ...

    Linus Torvalds
     

16 Oct, 2020

2 commits

  • Pull drm updates from Dave Airlie:
    "Not a major amount of change, the i915 trees got split into display
    and gt trees to better facilitate higher level review, and there's a
    major refactoring of i915 GEM locking to use more core kernel concepts
    (like ww-mutexes). msm gets per-process pagetables, older AMD SI cards
    get DC support, nouveau got a bump in displayport support with common
    code extraction from i915.

    Outside of drm this contains a couple of patches for hexint
    moduleparams which you've acked, and a virtio common code tree that
    you should also get via it's regular path.

    New driver:
    - Cadence MHDP8546 DisplayPort bridge driver

    core:
    - cross-driver scatterlist cleanups
    - devm_drm conversions
    - remove drm_dev_init
    - devm_drm_dev_alloc conversion

    ttm:
    - lots of refactoring and cleanups

    bridges:
    - chained bridge support in more drivers

    panel:
    - misc new panels

    scheduler:
    - cleanup priority levels

    displayport:
    - refactor i915 code into helpers for nouveau

    i915:
    - split into display and GT trees
    - WW locking refactoring in GEM
    - execbuf2 extension mechanism
    - syncobj timeline support
    - GEN 12 HOBL display powersaving
    - Rocket Lake display additions
    - Disable FBC on Tigerlake
    - Tigerlake Type-C + DP improvements
    - Hotplug interrupt refactoring

    amdgpu:
    - Sienna Cichlid updates
    - Navy Flounder updates
    - DCE6 (SI) support for DC
    - Plane rotation enabled
    - TMZ state info ioctl
    - PCIe DPC recovery support
    - DC interrupt handling refactor
    - OLED panel fixes

    amdkfd:
    - add SMI events for thermal throttling
    - SMI interface events ioctl update
    - process eviction counters

    radeon:
    - move to dma_ for allocations
    - expose sclk via sysfs

    msm:
    - DSI support for sm8150/sm8250
    - per-process GPU pagetable support
    - Displayport support

    mediatek:
    - move HDMI phy driver to PHY
    - convert mtk-dpi to bridge API
    - disable mt2701 tmds

    tegra:
    - bridge support

    exynos:
    - misc cleanups

    vc4:
    - dual display cleanups

    ast:
    - cleanups

    gma500:
    - conversion to GPIOd API

    hisilicon:
    - misc reworks

    ingenic:
    - clock handling and format improvements

    mcde:
    - DSI support

    mgag200:
    - desktop g200 support

    mxsfb:
    - i.MX7 + i.MX8M
    - alpha plane support

    panfrost:
    - devfreq support
    - amlogic SoC support

    ps8640:
    - EDID from eDP retrieval

    tidss:
    - AM65xx YUV workaround

    virtio:
    - virtio-gpu exported resources

    rcar-du:
    - R8A7742, R8A774E1 and R8A77961 support
    - YUV planar format fixes
    - non-visible plane handling
    - VSP device reference count fix
    - Kconfig fix to avoid displaying disabled options in .config"

    * tag 'drm-next-2020-10-15' of git://anongit.freedesktop.org/drm/drm: (1494 commits)
    drm/ingenic: Fix bad revert
    drm/amdgpu: Fix invalid number of character '{' in amdgpu_acpi_init
    drm/amdgpu: Remove warning for virtual_display
    drm/amdgpu: kfd_initialized can be static
    drm/amd/pm: setup APU dpm clock table in SMU HW initialization
    drm/amdgpu: prevent spurious warning
    drm/amdgpu/swsmu: fix ARC build errors
    drm/amd/display: Fix OPTC_DATA_FORMAT programming
    drm/amd/display: Don't allow pstate if no support in blank
    drm/panfrost: increase readl_relaxed_poll_timeout values
    MAINTAINERS: Update entry for st7703 driver after the rename
    Revert "gpu/drm: ingenic: Add option to mmap GEM buffers cached"
    drm/amd/display: HDMI remote sink need mode validation for Linux
    drm/amd/display: Change to correct unit on audio rate
    drm/amd/display: Avoid set zero in the requested clk
    drm/amdgpu: align frag_end to covered address space
    drm/amdgpu: fix NULL pointer dereference for Renoir
    drm/vmwgfx: fix regression in thp code due to ttm init refactor.
    drm/amdgpu/swsmu: add interrupt work handler for smu11 parts
    drm/amdgpu/swsmu: add interrupt work function
    ...

    Linus Torvalds
     
  • Pull char/misc driver updates from Greg KH:
    "Here is the big set of char, misc, and other assorted driver subsystem
    patches for 5.10-rc1.

    There's a lot of different things in here, all over the drivers/
    directory. Some summaries:

    - soundwire driver updates

    - habanalabs driver updates

    - extcon driver updates

    - nitro_enclaves new driver

    - fsl-mc driver and core updates

    - mhi core and bus updates

    - nvmem driver updates

    - eeprom driver updates

    - binder driver updates and fixes

    - vbox minor bugfixes

    - fsi driver updates

    - w1 driver updates

    - coresight driver updates

    - interconnect driver updates

    - misc driver updates

    - other minor driver updates

    All of these have been in linux-next for a while with no reported
    issues"

    * tag 'char-misc-5.10-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (396 commits)
    binder: fix UAF when releasing todo list
    docs: w1: w1_therm: Fix broken xref, mistakes, clarify text
    misc: Kconfig: fix a HISI_HIKEY_USB dependency
    LSM: Fix type of id parameter in kernel_post_load_data prototype
    misc: Kconfig: add a new dependency for HISI_HIKEY_USB
    firmware_loader: fix a kernel-doc markup
    w1: w1_therm: make w1_poll_completion static
    binder: simplify the return expression of binder_mmap
    test_firmware: Test partial read support
    firmware: Add request_partial_firmware_into_buf()
    firmware: Store opt_flags in fw_priv
    fs/kernel_file_read: Add "offset" arg for partial reads
    IMA: Add support for file reads without contents
    LSM: Add "contents" flag to kernel_read_file hook
    module: Call security_kernel_post_load_data()
    firmware_loader: Use security_post_load_data()
    LSM: Introduce kernel_post_load_data() hook
    fs/kernel_read_file: Add file_size output argument
    fs/kernel_read_file: Switch buffer size arg to size_t
    fs/kernel_read_file: Remove redundant size argument
    ...

    Linus Torvalds
     

15 Oct, 2020

7 commits

  • Changeset 129134e5415d ("media: media/v4l2: remove V4L2_FLAG_MEMORY_NON_CONSISTENT flag")
    reverted an uAPI flag, but it kept some left-overs at the documentation.

    Drop them too. This should solve this warning:

    Documentation/userspace-api/media/v4l/buffer.rst:692: WARNING: The "flat-table" directive is empty; content required.

    .. flat-table::
    :header-rows: 0
    :stub-columns: 0
    :widths: 3 1 4

    Fixes: 129134e5415d ("media: media/v4l2: remove V4L2_FLAG_MEMORY_NON_CONSISTENT flag")
    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • Sphinx 3.x broke support for the cdomain.py extension, as the
    c domain code was rewritten. Due to that, the c tags need to
    be re-written, in order to use the new c domain notation.

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • Sphinx 3.x broke support for the cdomain.py extension, as the
    c domain code was rewritten. Due to that, the c tags need to
    be re-written, in order to use the new c domain notation.

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • Sphinx 3.x broke support for the cdomain.py extension, as the
    c domain code was rewritten. Due to that, the c tags need to
    be re-written, in order to use the new c domain notation.

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • Sphinx 3.x broke support for the cdomain.py extension, as the
    c domain code was rewritten. Due to that, the c tags need to
    be re-written, in order to use the new c domain notation.

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • Sphinx 3.x broke support for the cdomain.py extension, as the
    c domain code was rewritten. Due to that, the c tags need to
    be re-written, in order to use the new c domain notation.

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • Pull iommu updates from Joerg Roedel:

    - ARM-SMMU Updates from Will:

    - Continued SVM enablement, where page-table is shared with CPU

    - Groundwork to support integrated SMMU with Adreno GPU

    - Allow disabling of MSI-based polling on the kernel command-line

    - Minor driver fixes and cleanups (octal permissions, error
    messages, ...)

    - Secure Nested Paging Support for AMD IOMMU. The IOMMU will fault when
    a device tries DMA on memory owned by a guest. This needs new
    fault-types as well as a rewrite of the IOMMU memory semaphore for
    command completions.

    - Allow broken Intel IOMMUs (wrong address widths reported) to still be
    used for interrupt remapping.

    - IOMMU UAPI updates for supporting vSVA, where the IOMMU can access
    address spaces of processes running in a VM.

    - Support for the MT8167 IOMMU in the Mediatek IOMMU driver.

    - Device-tree updates for the Renesas driver to support r8a7742.

    - Several smaller fixes and cleanups all over the place.

    * tag 'iommu-updates-v5.10' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu: (57 commits)
    iommu/vt-d: Gracefully handle DMAR units with no supported address widths
    iommu/vt-d: Check UAPI data processed by IOMMU core
    iommu/uapi: Handle data and argsz filled by users
    iommu/uapi: Rename uapi functions
    iommu/uapi: Use named union for user data
    iommu/uapi: Add argsz for user filled data
    docs: IOMMU user API
    iommu/qcom: add missing put_device() call in qcom_iommu_of_xlate()
    iommu/arm-smmu-v3: Add SVA device feature
    iommu/arm-smmu-v3: Check for SVA features
    iommu/arm-smmu-v3: Seize private ASID
    iommu/arm-smmu-v3: Share process page tables
    iommu/arm-smmu-v3: Move definitions to a header
    iommu/io-pgtable-arm: Move some definitions to a header
    iommu/arm-smmu-v3: Ensure queue is read after updating prod pointer
    iommu/amd: Re-purpose Exclusion range registers to support SNP CWWB
    iommu/amd: Add support for RMP_PAGE_FAULT and RMP_HW_ERR
    iommu/amd: Use 4K page for completion wait write-back semaphore
    iommu/tegra-smmu: Allow to group clients in same swgroup
    iommu/tegra-smmu: Fix iova->phys translation
    ...

    Linus Torvalds
     

14 Oct, 2020

1 commit

  • Pull block updates from Jens Axboe:

    - Series of merge handling cleanups (Baolin, Christoph)

    - Series of blk-throttle fixes and cleanups (Baolin)

    - Series cleaning up BDI, seperating the block device from the
    backing_dev_info (Christoph)

    - Removal of bdget() as a generic API (Christoph)

    - Removal of blkdev_get() as a generic API (Christoph)

    - Cleanup of is-partition checks (Christoph)

    - Series reworking disk revalidation (Christoph)

    - Series cleaning up bio flags (Christoph)

    - bio crypt fixes (Eric)

    - IO stats inflight tweak (Gabriel)

    - blk-mq tags fixes (Hannes)

    - Buffer invalidation fixes (Jan)

    - Allow soft limits for zone append (Johannes)

    - Shared tag set improvements (John, Kashyap)

    - Allow IOPRIO_CLASS_RT for CAP_SYS_NICE (Khazhismel)

    - DM no-wait support (Mike, Konstantin)

    - Request allocation improvements (Ming)

    - Allow md/dm/bcache to use IO stat helpers (Song)

    - Series improving blk-iocost (Tejun)

    - Various cleanups (Geert, Damien, Danny, Julia, Tetsuo, Tian, Wang,
    Xianting, Yang, Yufen, yangerkun)

    * tag 'block-5.10-2020-10-12' of git://git.kernel.dk/linux-block: (191 commits)
    block: fix uapi blkzoned.h comments
    blk-mq: move cancel of hctx->run_work to the front of blk_exit_queue
    blk-mq: get rid of the dead flush handle code path
    block: get rid of unnecessary local variable
    block: fix comment and add lockdep assert
    blk-mq: use helper function to test hw stopped
    block: use helper function to test queue register
    block: remove redundant mq check
    block: invoke blk_mq_exit_sched no matter whether have .exit_sched
    percpu_ref: don't refer to ref->data if it isn't allocated
    block: ratelimit handle_bad_sector() message
    blk-throttle: Re-use the throtl_set_slice_end()
    blk-throttle: Open code __throtl_de/enqueue_tg()
    blk-throttle: Move service tree validation out of the throtl_rb_first()
    blk-throttle: Move the list operation after list validation
    blk-throttle: Fix IO hang for a corner case
    blk-throttle: Avoid tracking latency if low limit is invalid
    blk-throttle: Avoid getting the current time if tg->last_finish_time is 0
    blk-throttle: Remove a meaningless parameter for throtl_downgrade_state()
    block: Remove redundant 'return' statement
    ...

    Linus Torvalds
     

07 Oct, 2020

1 commit


04 Oct, 2020

1 commit

  • Linux 5.9-rc7

    * tag 'v5.9-rc7': (683 commits)
    Linux 5.9-rc7
    mm/thp: Split huge pmds/puds if they're pinned when fork()
    mm: Do early cow for pinned pages during fork() for ptes
    mm/fork: Pass new vma pointer into copy_page_range()
    mm: Introduce mm_struct.has_pinned
    mm: validate pmd after splitting
    mm: don't rely on system state to detect hot-plug operations
    mm: replace memmap_context by meminit_context
    arch/x86/lib/usercopy_64.c: fix __copy_user_flushcache() cache writeback
    lib/memregion.c: include memregion.h
    lib/string.c: implement stpcpy
    mm/migrate: correct thp migration stats
    mm/gup: fix gup_fast with dynamic page table folding
    mm: memcontrol: fix missing suffix of workingset_restore
    mm, THP, swap: fix allocating cluster for swapfile by mistake
    mm: slab: fix potential double free in ___cache_free
    Documentation/llvm: Fix clang target examples
    io_uring: ensure async buffered read-retry is setup properly
    KVM: SVM: Add a dedicated INVD intercept routine
    io_uring: don't unconditionally set plug->nowait = true
    ...

    Mauro Carvalho Chehab
     

01 Oct, 2020

3 commits

  • IOMMU UAPI is newly introduced to support communications between guest
    virtual IOMMU and host IOMMU. There has been lots of discussions on how
    it should work with VFIO UAPI and userspace in general.

    This document is intended to clarify the UAPI design and usage. The
    mechanics of how future extensions should be achieved are also covered
    in this documentation.

    Signed-off-by: Liu Yi L
    Signed-off-by: Jacob Pan
    Reviewed-by: Eric Auger
    Cc: linux-api@vger.kernel.org
    Cc: Jonathan Corbet
    Cc: linux-doc@vger.kernel.org
    Link: https://lore.kernel.org/r/1601051567-54787-2-git-send-email-jacob.jun.pan@linux.intel.com
    Signed-off-by: Joerg Roedel

    Jacob Pan
     
  • Using struct|enum :c:`type` here sounds a bad idea, as it may be
    documenting data types that were already removed. Also, it makes
    the file harder to read.

    As automarkup.py should be able to handle those cases, let's
    just get rid of the markup.

    While not required by automarkup, in order to make easier for
    grep, both type and names are now at the same line.

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • There are several places there where struct was used twice,
    on multiple lines, like:

    struct
    struct ``v4l2_zoomcap``

    That's probably done during the DocBook to ReSt conversion.

    Probably the cases where "struct struct" were at the same line
    was addressed back then, but the multi-line cases are still
    there.

    Get rid of them.

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     

30 Sep, 2020

1 commit

  • Sphinx 3.x is pedantic with glossary entries:

    Documentation/userspace-api/media/glossary.rst:17: WARNING: term device driver not found in case sensitive match.made a reference to Device Driver instead.
    Documentation/userspace-api/media/glossary.rst:59: WARNING: term media hardware not found in case sensitive match.made a reference to Media Hardware instead.
    Documentation/userspace-api/media/glossary.rst:59: WARNING: term IP block not found in case sensitive match.made a reference to IP Block instead.
    Documentation/userspace-api/media/glossary.rst:64: WARNING: term hardware component not found in case sensitive match.made a reference to Hardware Component instead.
    Documentation/userspace-api/media/glossary.rst:64: WARNING: term ip block not found in case sensitive match.made a reference to IP Block instead.
    Documentation/userspace-api/media/glossary.rst:70: WARNING: term peripheral not found in case sensitive match.made a reference to Peripheral instead.
    Documentation/userspace-api/media/glossary.rst:130: WARNING: term V4L2 hardware not found in case sensitive match.made a reference to V4L2 Hardware instead.
    Documentation/userspace-api/media/glossary.rst:151: WARNING: term hardware peripheral not found in case sensitive match.made a reference to Hardware Peripheral instead.
    Documentation/userspace-api/media/glossary.rst:183: WARNING: term device node not found in case sensitive match.made a reference to Device Node instead.
    Documentation/userspace-api/media/glossary.rst:191: WARNING: term bridge driver not found in case sensitive match.made a reference to Bridge Driver instead.

    While it works with case-insensitive entires, it complains.

    Let's fix it, in order to cleanup the warnings. Also, I won't
    doubt that a later change on Sphinx will end breaking support
    for it.

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     

27 Sep, 2020

1 commit


26 Sep, 2020

2 commits

  • This patch extends the CSC API in video devices to be supported
    also on sub-devices. The flag V4L2_MBUS_FRAMEFMT_SET_CSC set by
    the application when calling VIDIOC_SUBDEV_S_FMT ioctl.
    The flags:

    V4L2_SUBDEV_MBUS_CODE_CSC_COLORSPACE,
    V4L2_SUBDEV_MBUS_CODE_CSC_XFER_FUNC,
    V4L2_SUBDEV_MBUS_CODE_CSC_YCBCR_ENC/V4L2_SUBDEV_MBUS_CODE_CSC_HSV_ENC
    V4L2_SUBDEV_MBUS_CODE_CSC_QUANTIZATION

    are set by the driver in the VIDIOC_SUBDEV_ENUM_MBUS_CODE ioctl.

    New 'flags' fields were added to the structs
    v4l2_subdev_mbus_code_enum, v4l2_mbus_framefmt which are borrowed
    from the 'reserved' field

    The patch also replaces the 'ycbcr_enc' field in
    'struct v4l2_mbus_framefmt' with a union that includes 'hsv_enc'

    Signed-off-by: Dafna Hirschfeld
    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Dafna Hirschfeld
     
  • For video capture it is the driver that reports the colorspace,
    transfer function, Y'CbCr/HSV encoding and quantization range
    used by the video, and there is no way to request something
    different, even though many HDTV receivers have some sort of
    colorspace conversion capabilities.

    For output video this feature already exists since the application
    specifies this information for the video format it will send out, and
    the transmitter will enable any available CSC if a format conversion has
    to be performed in order to match the capabilities of the sink.

    For video capture we propose adding new v4l2_pix_format flag:
    V4L2_PIX_FMT_FLAG_SET_CSC. The flag is set by the application,
    the driver will interpret the colorspace, xfer_func, ycbcr_enc/hsv_enc
    and quantization fields as the requested colorspace information and will
    attempt to do the conversion it supports.

    Drivers set the flags
    V4L2_FMT_FLAG_CSC_COLORSPACE,
    V4L2_FMT_FLAG_CSC_XFER_FUNC,
    V4L2_FMT_FLAG_CSC_YCBCR_ENC/V4L2_FMT_FLAG_CSC_HSV_ENC,
    V4L2_FMT_FLAG_CSC_QUANTIZATION,
    in the flags field of the struct v4l2_fmtdesc during enumeration to
    indicate that they support colorspace conversion for the respective field.

    Drivers do not have to actually look at the flags. If the flags are not
    set, then the fields 'colorspace', 'xfer_func', 'ycbcr_enc/hsv_enc',
    and 'quantization' are set to the default values by the core, i.e. just
    pass on the received format without conversion.

    Signed-off-by: Hans Verkuil
    Signed-off-by: Philipp Zabel
    Signed-off-by: Dafna Hirschfeld
    Signed-off-by: Mauro Carvalho Chehab

    Dafna Hirschfeld
     

25 Sep, 2020

1 commit


22 Sep, 2020

1 commit

  • The Nitro Enclaves driver handles the enclave lifetime management. This
    includes enclave creation, termination and setting up its resources such
    as memory and CPU.

    An enclave runs alongside the VM that spawned it. It is abstracted as a
    process running in the VM that launched it. The process interacts with
    the NE driver, that exposes an ioctl interface for creating an enclave
    and setting up its resources.

    Changelog

    v9 -> v10

    * Update commit message to include the changelog before the SoB tag(s).

    v8 -> v9

    * No changes.

    v7 -> v8

    * Add NE custom error codes for user space memory regions not backed by
    pages multiple of 2 MiB, invalid flags and enclave CID.
    * Add max flag value for enclave image load info.

    v6 -> v7

    * Clarify in the ioctls documentation that the return value is -1 and
    errno is set on failure.
    * Update the error code value for NE_ERR_INVALID_MEM_REGION_SIZE as it
    gets in user space as value 25 (ENOTTY) instead of 515. Update the
    NE custom error codes values range to not be the same as the ones
    defined in include/linux/errno.h, although these are not propagated
    to user space.

    v5 -> v6

    * Fix typo in the description about the NE CPU pool.
    * Update documentation to kernel-doc format.
    * Remove the ioctl to query API version.

    v4 -> v5

    * Add more details about the ioctl calls usage e.g. error codes, file
    descriptors used.
    * Update the ioctl to set an enclave vCPU to not return a file
    descriptor.
    * Add specific NE error codes.

    v3 -> v4

    * Decouple NE ioctl interface from KVM API.
    * Add NE API version and the corresponding ioctl call.
    * Add enclave / image load flags options.

    v2 -> v3

    * Remove the GPL additional wording as SPDX-License-Identifier is
    already in place.

    v1 -> v2

    * Add ioctl for getting enclave image load metadata.
    * Update NE_ENCLAVE_START ioctl name to NE_START_ENCLAVE.
    * Add entry in Documentation/userspace-api/ioctl/ioctl-number.rst for NE
    ioctls.
    * Update NE ioctls definition based on the updated ioctl range for major
    and minor.

    Reviewed-by: Alexander Graf
    Reviewed-by: Stefan Hajnoczi
    Signed-off-by: Alexandru Vasile
    Signed-off-by: Andra Paraschiv
    Link: https://lore.kernel.org/r/20200921121732.44291-2-andraprs@amazon.com
    Signed-off-by: Greg Kroah-Hartman

    Andra Paraschiv
     

14 Sep, 2020

2 commits

  • Add menu control for VP9 codec levels. A total of 14 levels are
    defined for Profile 0 (8bit) and Profile 2 (10bit). Each level
    is a set of constrained bitstreams coded with targeted resolutions,
    frame rates, and bitrates.

    The definitions have been taken from webm project [1].

    [1] https://www.webmproject.org/vp9/levels/

    Signed-off-by: Stanimir Varbanov
    Reviewed-by: Nicolas Dufresne
    Reviewed-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Stanimir Varbanov
     
  • The patch partially reverts some of the UAPI bits of the buffer
    cache management hints. Namely, the queue consistency (memory
    coherency) user-space hint because, as it turned out, the kernel
    implementation of this feature was misusing DMA_ATTR_NON_CONSISTENT.

    The patch reverts both kernel and user space parts: removes the
    DMA consistency attr functions, rolls back changes to v4l2_requestbuffers,
    v4l2_create_buffers structures and corresponding UAPI functions
    (plus compat32 layer) and cleans up the documentation.

    [hverkuil: fixed a few typos in the commit log]
    [hverkuil: fixed vb2_core_reqbufs call in drivers/media/dvb-core/dvb_vb2.c]
    [mchehab: fixed a typo in the commit log: revers->reverts]

    Signed-off-by: Christoph Hellwig
    Signed-off-by: Sergey Senozhatsky
    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Sergey Senozhatsky
     

08 Sep, 2020

1 commit

  • The only in-tree user for mbx driver for Intel 2700G graphics chip was
    cm-x270 platform. Since this platform was removed by the commit
    9d3239147d6d ("ARM: pxa: remove Compulab pxa2xx boards") there is no
    point to keep the obsolete framebuffer driver.

    Signed-off-by: Mike Rapoport
    Cc: Jonathan Corbet
    Cc: Arnd Bergmann
    Signed-off-by: Bartlomiej Zolnierkiewicz
    Link: https://patchwork.freedesktop.org/patch/msgid/20200830115524.431278-1-rppt@kernel.org

    Mike Rapoport
     

01 Sep, 2020

11 commits