Skip to content
  1. Dec 25, 2020
    • Linus Torvalds's avatar
      Merge tag 'libnvdimm-for-5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm · 1f13d2f7
      Linus Torvalds authored
      Pull libnvdimm updates from Dan Williams:
       "Twas the day before Christmas and the only thing stirring in libnvdimm
        / device-dax land is a pile of miscellaneous fixups and cleanups.
      
        The bulk of it has appeared in -next save the last two patches to
        device-dax that have passed my build and unit tests.
      
         - Fix a long standing block-window-namespace issue surfaced by the
           ndctl change to attempt to preserve the kernel device name over
           a 'reconfigure'
      
         - Fix a few error path memory leaks in nfit and device-dax
      
         - Silence a smatch warning in the ioctl path
      
         - Miscellaneous cleanups"
      
      * tag 'libnvdimm-for-5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm:
        device-dax: Avoid an unnecessary check in alloc_dev_dax_range()
        device-dax: Fix range release
        device-dax: delete a redundancy check in dev_dax_validate_align()
        libnvdimm/label: Return -ENXIO for no slot in __blk_label_update
        device-dax/core: Fix memory leak when rmmod dax.ko
        device-dax/pmem: Convert comma to semicolon
        libnvdimm: Cleanup include of badblocks.h
        ACPI: NFIT: Fix input validation of bus-family
        libnvdimm/namespace: Fix reaping of invalidated block-window-namespace labels
        ACPI/nfit: avoid accessing uninitialized memory in acpi_nfit_ctl()
      1f13d2f7
    • Linus Torvalds's avatar
      Merge tag 'drm-next-2020-12-24' of git://anongit.freedesktop.org/drm/drm · ef2c8b81
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "Xmas eve pull request present.
      
        Just some fixes that trickled in this past week: Mostly amdgpu fixes,
        with a dma-buf/mips build fix and some misc komeda fixes.
      
        dma-buf:
         - fix build on mips
      
        komeda:
         - fix commit tail operation order
         - NULL pointer fix
         - out of bounds access fix
      
        ttm:
         - remove an unused function
      
        amdgpu:
         - Vangogh SMU fixes
         - Arcturus gfx9 fixes
         - Misc display fixes
         - Sienna Cichlid SMU update
         - Fix S3 display memory leak
         - Fix regression caused by DP sub-connector support
      
        amdkfd:
         - Properly require pcie atomics for gfx10"
      
      * tag 'drm-next-2020-12-24' of git://anongit.freedesktop.org/drm/drm: (31 commits)
        drm/amd/display: Fix memory leaks in S3 resume
        drm/amdgpu: Fix a copy-pasta comment
        drm/amdgpu: only set DP subconnector type on DP and eDP connectors
        drm/amd/pm: bump Sienna Cichlid smu_driver_if version to match latest pmfw
        drm/amd/display: add getter routine to retrieve mpcc mux
        drm/amd/display: always program DPPDTO unless not safe to lower
        drm/amd/display: [FW Promotion] Release 0.0.47
        drm/amd/display: updated wm table for Renoir
        drm/amd/display: Acquire DSC during split stream for ODM only if top_pipe
        drm/amd/display: Multi-display underflow observed
        drm/amd/display: Remove unnecessary NULL check
        drm/amd/display: Update RN/VGH active display count workaround
        drm/amd/display: change SMU repsonse timeout to 2s.
        drm/amd/display: gradually ramp ABM intensity
        drm/amd/display: To modify the condition in indicating branch device
        drm/amd/display: Modify the hdcp device count check condition
        drm/amd/display: Interfaces for hubp blank and soft reset
        drm/amd/display: handler not correctly checked at remove_irq_handler
        drm/amdgpu: check gfx pipe availability before toggling its interrupts
        drm/amdgpu: remove unnecessary asic type check
        ...
      ef2c8b81
    • Linus Torvalds's avatar
      Merge tag 'devicetree-fixes-for-5.11-1' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux · 14571d5f
      Linus Torvalds authored
      Pull devicetree fixes from Rob Herring:
      
       - Correct the JSON pointer syntax in binding schemas
      
       - Drop unnecessary *-supply schema constraints
      
       - Drop redundant maxItems/items on array schemas
      
       - Fix various yamllint warnings
      
       - Fix various missing 'additionalProperties' properties
      
      * tag 'devicetree-fixes-for-5.11-1' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux:
        dt-bindings: Drop redundant maxItems/items
        dt-bindings: net: qcom,ipa: Drop unnecessary type ref on 'memory-region'
        dt-bindings: Drop unnecessary *-supply schemas properties
        dt-bindings/display: abt,y030xx067a: Fix binding
        dt-bindings: clock: imx8qxp-lpcg: eliminate yamllint warnings
        dt-bindings: display: eliminate yamllint warnings
        dt-bindings: media: nokia,smia: eliminate yamllint warnings
        dt-bindings: devapc: add the required property 'additionalProperties'
        dt-bindings: soc: add the required property 'additionalProperties'
        dt-bindings: serial: add the required property 'additionalProperties'
        dt-bindings: xlnx,vcu-settings: fix dt_binding_check warnings
        media: dt-bindings: coda: Add missing 'additionalProperties'
        dt-bindings: Fix JSON pointers
      14571d5f
    • Linus Torvalds's avatar
      Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost · 64145482
      Linus Torvalds authored
      Pull virtio updates from Michael Tsirkin:
      
       - vdpa sim refactoring
      
       - virtio mem: Big Block Mode support
      
       - misc cleanus, fixes
      
      * tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost: (61 commits)
        vdpa: Use simpler version of ida allocation
        vdpa: Add missing comment for virtqueue count
        uapi: virtio_ids: add missing device type IDs from OASIS spec
        uapi: virtio_ids.h: consistent indentions
        vhost scsi: fix error return code in vhost_scsi_set_endpoint()
        virtio_ring: Fix two use after free bugs
        virtio_net: Fix error code in probe()
        virtio_ring: Cut and paste bugs in vring_create_virtqueue_packed()
        tools/virtio: add barrier for aarch64
        tools/virtio: add krealloc_array
        tools/virtio: include asm/bug.h
        vdpa/mlx5: Use write memory barrier after updating CQ index
        vdpa: split vdpasim to core and net modules
        vdpa_sim: split vdpasim_virtqueue's iov field in out_iov and in_iov
        vdpa_sim: make vdpasim->buffer size configurable
        vdpa_sim: use kvmalloc to allocate vdpasim->buffer
        vdpa_sim: set vringh notify callback
        vdpa_sim: add set_config callback in vdpasim_dev_attr
        vdpa_sim: add get_config callback in vdpasim_dev_attr
        vdpa_sim: make 'config' generic and usable for any device type
        ...
      64145482
    • Dan Williams's avatar
      Merge branch 'for-5.11/dax' into for-5.11/libnvdimm · 127c3d2e
      Dan Williams authored
      Pull in miscellaneous device-dax fixups and cleanups for v5.11.
      127c3d2e
    • Zhen Lei's avatar
      device-dax: Avoid an unnecessary check in alloc_dev_dax_range() · ff8da37d
      Zhen Lei authored
      
      
      Swap the calling sequence of krealloc() and __request_region(), call the
      latter first. In this way, the value of dev_dax->nr_range does not need to
      be considered when __request_region() failed.
      
      Signed-off-by: default avatarZhen Lei <thunder.leizhen@huawei.com>
      Link: https://lore.kernel.org/r/20201219081840.1149-2-thunder.leizhen@huawei.com
      
      
      Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
      ff8da37d
    • Dan Williams's avatar
      device-dax: Fix range release · 6268d7da
      Dan Williams authored
      
      
      There are multiple locations that open-code the release of the last
      range in a device-dax instance. Consolidate this into a new
      dev_dax_trim_range() helper.
      
      This also addresses a kmemleak report:
      
      # cat /sys/kernel/debug/kmemleak
      [..]
      unreferenced object 0xffff976bd46f6240 (size 64):
         comm "ndctl", pid 23556, jiffies 4299514316 (age 5406.733s)
         hex dump (first 32 bytes):
           00 00 00 00 00 00 00 00 00 00 20 c3 37 00 00 00  .......... .7...
           ff ff ff 7f 38 00 00 00 00 00 00 00 00 00 00 00  ....8...........
         backtrace:
           [<00000000064003cf>] __kmalloc_track_caller+0x136/0x379
           [<00000000d85e3c52>] krealloc+0x67/0x92
           [<00000000d7d3ba8a>] __alloc_dev_dax_range+0x73/0x25c
           [<0000000027d58626>] devm_create_dev_dax+0x27d/0x416
           [<00000000434abd43>] __dax_pmem_probe+0x1c9/0x1000 [dax_pmem_core]
           [<0000000083726c1c>] dax_pmem_probe+0x10/0x1f [dax_pmem]
           [<00000000b5f2319c>] nvdimm_bus_probe+0x9d/0x340 [libnvdimm]
           [<00000000c055e544>] really_probe+0x230/0x48d
           [<000000006cabd38e>] driver_probe_device+0x122/0x13b
           [<0000000029c7b95a>] device_driver_attach+0x5b/0x60
           [<0000000053e5659b>] bind_store+0xb7/0xc3
           [<00000000d3bdaadc>] drv_attr_store+0x27/0x31
           [<00000000949069c5>] sysfs_kf_write+0x4a/0x57
           [<000000004a8b5adf>] kernfs_fop_write+0x150/0x1e5
           [<00000000bded60f0>] __vfs_write+0x1b/0x34
           [<00000000b92900f0>] vfs_write+0xd8/0x1d1
      
      Reported-by: default avatarJane Chu <jane.chu@oracle.com>
      Cc: Zhen Lei <thunder.leizhen@huawei.com>
      Link: https://lore.kernel.org/r/160834570161.1791850.14911670304441510419.stgit@dwillia2-desk3.amr.corp.intel.com
      
      
      Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
      6268d7da
  2. Dec 24, 2020
  3. Dec 23, 2020
    • Rob Herring's avatar
      dt-bindings: Drop redundant maxItems/items · 2b8f061a
      Rob Herring authored
      
      
      'maxItems' equal to the 'items' list length is redundant. 'maxItems' is
      preferred for a single entry while greater than 1 should have an 'items'
      list.
      
      A meta-schema check for this is pending once these existing cases are
      fixed.
      
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: dri-devel@lists.freedesktop.org
      Cc: dmaengine@vger.kernel.org
      Cc: alsa-devel@alsa-project.org
      Cc: linux-usb@vger.kernel.org
      Acked-by: default avatarSam Ravnborg <sam@ravnborg.org>
      Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      Acked-by: default avatarVinod Koul <vkoul@kernel.org>
      Acked-by: default avatarJassi Brar <jassisinghbrar@gmail.com>
      Acked-by: default avatarMark Brown <broonie@kernel.org>
      Link: https://lore.kernel.org/r/20201222040645.1323611-1-robh@kernel.org
      
      
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      2b8f061a
    • Rob Herring's avatar
      dt-bindings: net: qcom,ipa: Drop unnecessary type ref on 'memory-region' · 246eedd7
      Rob Herring authored
      
      
      'memory-region' is a common property, so it doesn't need a type ref here.
      
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Jakub Kicinski <kuba@kernel.org>
      Cc: Alex Elder <elder@kernel.org>
      Cc: netdev@vger.kernel.org
      Acked-by: default avatarAlex Elder <elder@linaro.org>
      Link: https://lore.kernel.org/r/20201222040121.1314370-1-robh@kernel.org
      
      
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      246eedd7
    • Rob Herring's avatar
      dt-bindings: Drop unnecessary *-supply schemas properties · 9bfaf9c7
      Rob Herring authored
      
      
      *-supply properties are always a single phandle, so binding schemas
      don't need a type $ref nor 'maxItems'.
      
      A meta-schema check for this is pending once these existing cases are
      fixed.
      
      Cc: Jonathan Cameron <jic23@kernel.org>
      Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
      Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
      Cc: Maxime Ripard <mripard@kernel.org>
      Cc: dri-devel@lists.freedesktop.org
      Cc: linux-iio@vger.kernel.org
      Cc: linux-input@vger.kernel.org
      Cc: linux-media@vger.kernel.org
      Acked-by: default avatarSam Ravnborg <sam@ravnborg.org>
      Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      Acked-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
      Acked-by: default avatarLee Jones <lee.jones@linaro.org>
      Acked-by: default avatarMark Brown <broonie@kernel.org>
      Link: https://lore.kernel.org/r/20201221234659.824881-1-robh@kernel.org
      
      
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      9bfaf9c7
    • Linus Torvalds's avatar
      Merge tag 'acpi-5.11-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 614cb589
      Linus Torvalds authored
      Pull more ACPI updates from Rafael Wysocki:
       "These make the ACPI enumeration of devices take _DEP information into
        account more aggressively, fix device IDs matching in the ACPI part of
        the PNP devices framework and update the ACPI code related to
        suspend-to-idle to take systems based on AMD hardware into account
        properly.
      
        Specifics:
      
         - Modify the ACPI device enumeration code to defer the enumeration of
           devices with an _HID whose lists of operation region dependencies
           returned by _DEP are not empty after eliminating the entries
           representing known-benign dependencies from them (Rafael Wysocki,
           Hans de Goede).
      
         - Make the ACPI PNP code mathing device IDs also take the length of
           the given ID string into account (Hui Wang).
      
         - Add AMD systems support to the ACPI code handling suspend-to-idle
           via the PNP0D80 (System Power Management Controller) device _DSM
           interface (Shyam Sundar).
      
         - Move the suspend-to-idle handling code related to the PNP0D80
           device _DSM interface, which is x86-specific, to a separate file in
           the x86/ subdirectory (Rafael Wysocki)"
      
      * tag 'acpi-5.11-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        ACPI: PM: s2idle: Move x86-specific code to the x86 directory
        ACPI: scan: Add Intel Baytrail Mailbox Device to acpi_ignore_dep_ids
        ACPI: scan: Avoid unnecessary second pass in acpi_bus_scan()
        ACPI: scan: Defer enumeration of devices with _DEP lists
        ACPI: scan: Evaluate _DEP before adding the device
        ACPI: PM: s2idle: Add AMD support to handle _DSM
        ACPI: PNP: compare the string length in the matching_id()
      614cb589
    • Linus Torvalds's avatar
      Merge tag 'pm-5.11-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 4960821a
      Linus Torvalds authored
      Pull more power management updates from Rafael Wysocki:
       "These update the CPPC cpufreq driver and intel_pstate (which involves
        updating the cpufreq core and the schedutil governor) and make
        janitorial changes in the ACPI code handling processor objects.
      
        Specifics:
      
         - Rework the passive-mode "fast switch" path in the intel_pstate
           driver to allow it receive the minimum (required) and target
           (desired) performance information from the schedutil governor so as
           to avoid running some workloads too fast (Rafael Wysocki).
      
         - Make the intel_pstate driver allow the policy max limit to be
           increased after the guaranteed performance value for the given CPU
           has increased (Rafael Wysocki).
      
         - Clean up the handling of CPU coordination types in the CPPC cpufreq
           driver and make it export frequency domains information to user
           space via sysfs (Ionela Voinescu).
      
         - Fix the ACPI code handling processor objects to use a correct
           coordination type when it fails to map frequency domains and drop a
           redundant CPU map initialization from it (Ionela Voinescu, Punit
           Agrawal)"
      
      * tag 'pm-5.11-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        cpufreq: intel_pstate: Use most recent guaranteed performance values
        cpufreq: intel_pstate: Implement the ->adjust_perf() callback
        cpufreq: Add special-purpose fast-switching callback for drivers
        cpufreq: schedutil: Add util to struct sg_cpu
        cppc_cpufreq: replace per-cpu data array with a list
        cppc_cpufreq: expose information on frequency domains
        cppc_cpufreq: clarify support for coordination types
        cppc_cpufreq: use policy->cpu as driver of frequency setting
        ACPI: processor: fix NONE coordination for domain mapping failure
      4960821a
    • Linus Torvalds's avatar
      Merge tag 'kconfig-v5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild · 2762db75
      Linus Torvalds authored
      Pull Kconfig updates from Masahiro Yamada:
      
       - Support only Qt5 for qconf
      
       - Validate signal/slot connection at compile time of qconf
      
       - Sanitize header includes
      
      * tag 'kconfig-v5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild:
        kconfig: doc: fix $(fileno) to $(filename)
        kconfig: fix return value of do_error_if()
        kconfig: clean up header inclusion
        kconfig: qconf: show Qt version in the About dialog
        kconfig: make lkc.h self-sufficient #include-wise
        kconfig: qconf: convert to Qt5 new signal/slot connection syntax
        kconfig: qconf: use a variable to pass packages to pkg-config
        kconfig: qconf: drop Qt4 support
      2762db75
    • Linus Torvalds's avatar
      Merge tag 'kbuild-v5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild · 7b95f056
      Linus Torvalds authored
      Pull Kbuild updates from Masahiro Yamada:
      
       - Use /usr/bin/env for shebang lines in scripts
      
       - Remove useless -Wnested-externs warning flag
      
       - Update documents
      
       - Refactor log handling in modpost
      
       - Stop building modules without MODULE_LICENSE() tag
      
       - Make the insane combination of 'static' and EXPORT_SYMBOL an error
      
       - Improve genksyms to handle _Static_assert()
      
      * tag 'kbuild-v5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild:
        Documentation/kbuild: Document platform dependency practises
        Documentation/kbuild: Document COMPILE_TEST dependencies
        genksyms: Ignore module scoped _Static_assert()
        modpost: turn static exports into error
        modpost: turn section mismatches to error from fatal()
        modpost: change license incompatibility to error() from fatal()
        modpost: turn missing MODULE_LICENSE() into error
        modpost: refactor error handling and clarify error/fatal difference
        modpost: rename merror() to error()
        kbuild: don't hardcode depmod path
        kbuild: doc: document subdir-y syntax
        kbuild: doc: clarify the difference between extra-y and always-y
        kbuild: doc: split if_changed explanation to a separate section
        kbuild: doc: merge 'Special Rules' and 'Custom kbuild commands' sections
        kbuild: doc: fix 'List directories to visit when descending' section
        kbuild: doc: replace arch/$(ARCH)/ with arch/$(SRCARCH)/
        kbuild: doc: update the description about kbuild Makefiles
        Makefile.extrawarn: remove -Wnested-externs warning
        tweewide: Fix most Shebang lines
      7b95f056