Skip to content
Permalink
Michael-Trimar…
Switch branches/tags

Commits on Oct 14, 2021

  1. drm/panel: ilitek-ili9881d: add support for Wanchanglong W552946ABA p…

    …anel
    
    W552946ABA is a panel by Wanchanglong. This panel utilizes the Ilitek ILI9881D
    controller.
    
    Add this panel's initialzation sequence and timing to ILI9881D driver.
    Tested on px30-evb v11
    
    Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
    panicking authored and intel-lab-lkp committed Oct 14, 2021
  2. MAINTAINERS: Update entry for the Stratix10 firmware

    Richard Gong is no longer at Intel, so update the MAINTAINER's entry for
    the Stratix10 firmware drivers.
    
    Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Dinh Nguyen authored and torvalds committed Oct 14, 2021
  3. Merge tag 'sound-5.15-rc6' of git://git.kernel.org/pub/scm/linux/kern…

    …el/git/tiwai/sound
    
    Pull sound fixes from Takashi Iwai:
     "This contains quite a few device-specific fixes for usual HD- and
      USB-audio in addition to a couple of ALSA core fixes (a UAF fix in
      sequencer and a fix for a misplaced PCM 32bit compat ioctl).
    
      Nothing really stands out"
    
    * tag 'sound-5.15-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound:
      ALSA: usb-audio: Add quirk for VF0770
      ALSA: hda: avoid write to STATESTS if controller is in reset
      ALSA: hda/realtek: Fix the mic type detection issue for ASUS G551JW
      ALSA: pcm: Workaround for a wrong offset in SYNC_PTR compat ioctl
      ALSA: hda/realtek: Fix for quirk to enable speaker output on the Lenovo 13s Gen2
      ALSA: hda: intel: Allow repeatedly probing on codec configuration errors
      ALSA: hda/realtek: Add quirk for TongFang PHxTxX1
      ALSA: hda/realtek - ALC236 headset MIC recording issue
      ALSA: usb-audio: Enable rate validation for Scarlett devices
      ALSA: hda/realtek: Add quirk for Clevo X170KM-G
      ALSA: hda/realtek: Complete partial device name to avoid ambiguity
      ALSA: hda - Enable headphone mic on Dell Latitude laptops with ALC3254
      ALSA: seq: Fix a potential UAF by wrong private_free call order
      ALSA: hda/realtek: Enable 4-speaker output for Dell Precision 5560 laptop
      ALSA: usb-audio: Fix a missing error check in scarlett gen2 mixer
    torvalds committed Oct 14, 2021

Commits on Oct 13, 2021

  1. Merge tag 'modules-for-v5.15-rc6' of git://git.kernel.org/pub/scm/lin…

    …ux/kernel/git/jeyu/linux
    
    Pull modules fix from Jessica Yu:
    
     - Build fix for cfi_init() when CONFIG_MODULE_UNLOAD=n
    
    * tag 'modules-for-v5.15-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/jeyu/linux:
      module: fix clang CFI with MODULE_UNLOAD=n
    torvalds committed Oct 13, 2021

Commits on Oct 12, 2021

  1. ALSA: usb-audio: Add quirk for VF0770

    The device advertises 8 formats, but only a rate of 48kHz is honored
    by the hardware and 24 bits give chopped audio, so only report the
    one working combination. This fixes out-of-the-box audio experience
    with PipeWire which otherwise attempts to choose S24_3LE (while
    PulseAudio defaulted to S16_LE).
    
    Signed-off-by: Jonas Hahnfeld <hahnjo@hahnjo.de>
    Cc: <stable@vger.kernel.org>
    Link: https://lore.kernel.org/r/20211012200906.3492-1-hahnjo@hahnjo.de
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    hahnjo authored and tiwai committed Oct 12, 2021
  2. Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/…

    …git/arm64/linux
    
    Pull arm64 fixes from Catalin Marinas:
    
     - Fix CMA gigantic page order for 16K/64K page sizes
    
     - Fix section mismatch error in drivers/acpi/arm64/gtdt.c
    
    * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux:
      acpi/arm64: fix next_platform_timer() section mismatch error
      arm64/hugetlb: fix CMA gigantic page order for non-4K PAGE_SIZE
    torvalds committed Oct 12, 2021
  3. Merge tag 'platform-drivers-x86-v5.15-3' of git://git.kernel.org/pub/…

    …scm/linux/kernel/git/pdx86/platform-drivers-x86
    
    Pull x86 platform driver fixes from Hans de Goede:
     "A second (small) set of pdx86 bug-fixes and new hardware ids for 5.15"
    
    * tag 'platform-drivers-x86-v5.15-3' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86:
      platform/x86: int1092: Fix non sequential device mode handling
      platform/x86: intel_skl_int3472: Correct null check
      platform/x86: gigabyte-wmi: add support for B550 AORUS ELITE AX V2
      platform/x86: amd-pmc: Add alternative acpi id for PMC controller
      platform/x86: intel_scu_ipc: Update timeout value in comment
      platform/x86: intel_scu_ipc: Increase virtual timeout to 10s
      platform/x86: intel_scu_ipc: Fix busy loop expiry time
      platform/x86: dell: Make DELL_WMI_PRIVACY depend on DELL_WMI
      platform/mellanox: mlxreg-io: Fix read access of n-bytes size attributes
      platform/mellanox: mlxreg-io: Fix argument base in kstrtou32() call
    torvalds committed Oct 12, 2021
  4. acpi/arm64: fix next_platform_timer() section mismatch error

    Fix modpost Section mismatch error in next_platform_timer().
    
      [...]
      WARNING: modpost: vmlinux.o(.text.unlikely+0x26e60): Section mismatch in reference from the function next_platform_timer() to the variable .init.data:acpi_gtdt_desc
      The function next_platform_timer() references
      the variable __initdata acpi_gtdt_desc.
      This is often because next_platform_timer lacks a __initdata
      annotation or the annotation of acpi_gtdt_desc is wrong.
    
      WARNING: modpost: vmlinux.o(.text.unlikely+0x26e64): Section mismatch in reference from the function next_platform_timer() to the variable .init.data:acpi_gtdt_desc
      The function next_platform_timer() references
      the variable __initdata acpi_gtdt_desc.
      This is often because next_platform_timer lacks a __initdata
      annotation or the annotation of acpi_gtdt_desc is wrong.
    
      ERROR: modpost: Section mismatches detected.
      Set CONFIG_SECTION_MISMATCH_WARN_ONLY=y to allow them.
      make[1]: *** [scripts/Makefile.modpost:59: vmlinux.symvers] Error 1
      make[1]: *** Deleting file 'vmlinux.symvers'
      make: *** [Makefile:1176: vmlinux] Error 2
      [...]
    
    Fixes: a712c3e ("acpi/arm64: Add memory-mapped timer support in GTDT driver")
    Signed-off-by: Jackie Liu <liuyun01@kylinos.cn>
    Acked-by: Hanjun Guo <guohanjun@huawei.com>
    Link: https://lore.kernel.org/r/20210823092526.2407526-1-liu.yun@linux.dev
    Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
    JackieLiu1 authored and ctmarinas committed Oct 12, 2021
  5. ALSA: hda: avoid write to STATESTS if controller is in reset

    The snd_hdac_bus_reset_link() contains logic to clear STATESTS register
    before performing controller reset. This code dates back to an old
    bugfix in commit e8a7f13 ("[ALSA] hda-intel - Improve HD-audio
    codec probing robustness"). Originally the code was added to
    azx_reset().
    
    The code was moved around in commit a41d122 ("ALSA: hda - Embed bus
    into controller object") and ended up to snd_hdac_bus_reset_link() and
    called primarily via snd_hdac_bus_init_chip().
    
    The logic to clear STATESTS is correct when snd_hdac_bus_init_chip() is
    called when controller is not in reset. In this case, STATESTS can be
    cleared. This can be useful e.g. when forcing a controller reset to retry
    codec probe. A normal non-power-on reset will not clear the bits.
    
    However, this old logic is problematic when controller is already in
    reset. The HDA specification states that controller must be taken out of
    reset before writing to registers other than GCTL.CRST (1.0a spec,
    3.3.7). The write to STATESTS in snd_hdac_bus_reset_link() will be lost
    if the controller is already in reset per the HDA specification mentioned.
    
    This has been harmless on older hardware. On newer generation of Intel
    PCIe based HDA controllers, if configured to report issues, this write
    will emit an unsupported request error. If ACPI Platform Error Interface
    (APEI) is enabled in kernel, this will end up to kernel log.
    
    Fix the code in snd_hdac_bus_reset_link() to only clear the STATESTS if
    the function is called when controller is not in reset. Otherwise
    clearing the bits is not possible and should be skipped.
    
    Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
    Link: https://lore.kernel.org/r/20211012142935.3731820-1-kai.vehmanen@linux.intel.com
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    kv2019i authored and tiwai committed Oct 12, 2021
  6. ALSA: hda/realtek: Fix the mic type detection issue for ASUS G551JW

    We need to define the codec pin 0x1b to be the mic, but somehow
    the mic doesn't support hot plugging detection, and Windows also has
    this issue, so we set it to phantom headset-mic.
    
    Also the determine_headset_type() often returns the omtp type by a
    mistake when we plug a ctia headset, this makes the mic can't record
    sound at all. Because most of the headset are ctia type nowadays and
    some machines have the fixed ctia type audio jack, it is possible this
    machine has the fixed ctia jack too. Here we set this mic jack to
    fixed ctia type, this could avoid the mic type detection mistake and
    make the ctia headset work stable.
    
    BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=214537
    Reported-and-tested-by: msd <msd.mmq@gmail.com>
    Cc: <stable@vger.kernel.org>
    Signed-off-by: Hui Wang <hui.wang@canonical.com>
    Link: https://lore.kernel.org/r/20211012114748.5238-1-hui.wang@canonical.com
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    jason77-wang authored and tiwai committed Oct 12, 2021
  7. Merge tag 'linux-kselftest-kunit-fixes-5.15-rc6' of git://git.kernel.…

    …org/pub/scm/linux/kernel/git/shuah/linux-kselftest
    
    Pull Kunit fixes from Shuah Khan:
    
     - Fixes to address the structleak plugin causing the stack frame size
       to grow immensely when used with KUnit. Fixes include adding a new
       makefile to disable structleak and using it from KUnit iio, device
       property, thunderbolt, and bitfield tests to disable it.
    
     - KUnit framework reference count leak in kfree_at_end
    
     - KUnit tool fix to resolve conflict between --json and --raw_output
       and generate correct test output in either case.
    
     - kernel-doc warnings due to mismatched arg names
    
    * tag 'linux-kselftest-kunit-fixes-5.15-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest:
      kunit: fix kernel-doc warnings due to mismatched arg names
      bitfield: build kunit tests without structleak plugin
      thunderbolt: build kunit tests without structleak plugin
      device property: build kunit tests without structleak plugin
      iio/test-format: build kunit tests without structleak plugin
      gcc-plugins/structleak: add makefile var for disabling structleak
      kunit: fix reference count leak in kfree_at_end
      kunit: tool: better handling of quasi-bool args (--json, --raw_output)
    torvalds committed Oct 12, 2021
  8. Merge branch 'for-5.15-fixes' of git://git.kernel.org/pub/scm/linux/k…

    …ernel/git/tj/cgroup
    
    Pull cgroup fixes from Tejun Heo:
     "All documentation / comment updates"
    
    * 'for-5.15-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup:
      cgroupv2, docs: fix misinformation in "device controller" section
      cgroup/cpuset: Change references of cpuset_mutex to cpuset_rwsem
      docs/cgroup: remove some duplicate words
    torvalds committed Oct 12, 2021

Commits on Oct 11, 2021

  1. Merge branch 'for-5.15-fixes' of git://git.kernel.org/pub/scm/linux/k…

    …ernel/git/tj/wq
    
    Pull workqueue fixes from Tejun Heo:
     "One patch to add a missing __printf annotation and the other to enable
      deferred printing for debug dumps to avoid deadlocks when triggered
      from some contexts (e.g. console drivers)"
    
    * 'for-5.15-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq:
      workqueue: fix state-dump console deadlock
      workqueue: annotate alloc_workqueue() as printf
    torvalds committed Oct 11, 2021
  2. Merge tag 'for-5.15-rc5-tag' of git://git.kernel.org/pub/scm/linux/ke…

    …rnel/git/kdave/linux
    
    Pull btrfs fixes from David Sterba:
     "A few more error handling fixes, stemming from code inspection, error
      injection or fuzzing"
    
    * tag 'for-5.15-rc5-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux:
      btrfs: fix abort logic in btrfs_replace_file_extents
      btrfs: check for error when looking up inode during dir entry replay
      btrfs: unify lookup return value when dir entry is missing
      btrfs: deal with errors when adding inode reference during log replay
      btrfs: deal with errors when replaying dir entry during log replay
      btrfs: deal with errors when checking if a dir entry exists during log replay
      btrfs: update refs for any root except tree log roots
      btrfs: unlock newly allocated extent buffer after error
    torvalds committed Oct 11, 2021
  3. arm64/hugetlb: fix CMA gigantic page order for non-4K PAGE_SIZE

    For non-4K PAGE_SIZE configs, the largest gigantic huge page size is
    CONT_PMD_SHIFT order. On arm64 with 64K PAGE_SIZE, the gigantic page is
    16G. Therefore, one should be able to specify 'hugetlb_cma=16G' on the
    kernel command line so that one gigantic page can be allocated from CMA.
    However, when adding such an option the following message is produced:
    
    hugetlb_cma: cma area should be at least 8796093022208 MiB
    
    This is because the calculation for non-4K gigantic page order is
    incorrect in the arm64 specific routine arm64_hugetlb_cma_reserve().
    
    Fixes: abb7962 ("arm64/hugetlb: Reserve CMA areas for gigantic pages on 16K and 64K configs")
    Cc: <stable@vger.kernel.org> # 5.9.x
    Signed-off-by: Mike Kravetz <mike.kravetz@oracle.com>
    Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
    Link: https://lore.kernel.org/r/20211005202529.213812-1-mike.kravetz@oracle.com
    Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
    mjkravetz authored and ctmarinas committed Oct 11, 2021
  4. workqueue: fix state-dump console deadlock

    Console drivers often queue work while holding locks also taken in their
    console write paths, something which can lead to deadlocks on SMP when
    dumping workqueue state (e.g. sysrq-t or on suspend failures).
    
    For serial console drivers this could look like:
    
    	CPU0				CPU1
    	----				----
    
    	show_workqueue_state();
    	  lock(&pool->lock);		<IRQ>
    	  				  lock(&port->lock);
    					  schedule_work();
    					    lock(&pool->lock);
    	  printk();
    	    lock(console_owner);
    	    lock(&port->lock);
    
    where workqueues are, for example, used to push data to the line
    discipline, process break signals and handle modem-status changes. Line
    disciplines and serdev drivers can also queue work on write-wakeup
    notifications, etc.
    
    Reworking every console driver to avoid queuing work while holding locks
    also taken in their write paths would complicate drivers and is neither
    desirable or feasible.
    
    Instead use the deferred-printk mechanism to avoid printing while
    holding pool locks when dumping workqueue state.
    
    Note that there are a few WARN_ON() assertions in the workqueue code
    which could potentially also trigger a deadlock. Hopefully the ongoing
    printk rework will provide a general solution for this eventually.
    
    This was originally reported after a lockdep splat when executing
    sysrq-t with the imx serial driver.
    
    Fixes: 3494fc3 ("workqueue: dump workqueues on sysrq-t")
    Cc: stable@vger.kernel.org	# 4.0
    Reported-by: Fabio Estevam <festevam@denx.de>
    Tested-by: Fabio Estevam <festevam@denx.de>
    Signed-off-by: Johan Hovold <johan@kernel.org>
    Reviewed-by: John Ogness <john.ogness@linutronix.de>
    Signed-off-by: Tejun Heo <tj@kernel.org>
    jhovold authored and htejun committed Oct 11, 2021
  5. ALSA: pcm: Workaround for a wrong offset in SYNC_PTR compat ioctl

    Michael Forney reported an incorrect padding type that was defined in
    the commit 80fe743 ("ALSA: add new 32-bit layout for
    snd_pcm_mmap_status/control") for PCM control mmap data.
    His analysis is correct, and this caused the misplacements of PCM
    control data on 32bit arch and 32bit compat mode.
    
    The bug is that the __pad2 definition in __snd_pcm_mmap_control64
    struct was wrongly with __pad_before_uframe, which should have been
    __pad_after_uframe instead.  This struct is used in SYNC_PTR ioctl and
    control mmap.  Basically this bug leads to two problems:
    
    - The offset of avail_min field becomes wrong, it's placed right after
      appl_ptr without padding on little-endian
    
    - When appl_ptr and avail_min are read as 64bit values in kernel side,
      the values become either zero or corrupted (mixed up)
    
    One good news is that, because both user-space and kernel
    misunderstand the wrong offset, at least, 32bit application running on
    32bit kernel works as is.  Also, 64bit applications are unaffected
    because the padding size is zero.  The remaining problem is the 32bit
    compat mode; as mentioned in the above, avail_min is placed right
    after appl_ptr on little-endian archs, 64bit kernel reads bogus values
    for appl_ptr updates, which may lead to streaming bugs like jumping,
    XRUN or whatever unexpected.
    (However, we haven't heard any serious bug reports due to this over
    years, so practically seen, it's fairly safe to assume that the impact
    by this bug is limited.)
    
    Ideally speaking, we should correct the wrong mmap status control
    definition.  But this would cause again incompatibility with the
    existing binaries, and fixing it (e.g. by renumbering ioctls) would be
    really messy.
    
    So, as of this patch, we only correct the behavior of 32bit compat
    mode and keep the rest as is.  Namely, the SYNC_PTR ioctl is now
    handled differently in compat mode to read/write the 32bit values at
    the right offsets.  The control mmap of 32bit apps on 64bit kernels
    has been already disabled (which is likely rather an overlook, but
    this worked fine at this time :), so covering SYNC_PTR ioctl should
    suffice as a fallback.
    
    Fixes: 80fe743 ("ALSA: add new 32-bit layout for snd_pcm_mmap_status/control")
    Reported-by: Michael Forney <mforney@mforney.org>
    Reviewed-by: Arnd Bergmann <arnd@arndb.de>
    Cc: <stable@vger.kernel.org>
    Cc: Rich Felker <dalias@libc.org>
    Link: https://lore.kernel.org/r/29QBMJU8DE71E.2YZSH8IHT5HMH@mforney.org
    Link: https://lore.kernel.org/r/20211010075546.23220-1-tiwai@suse.de
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    tiwai committed Oct 11, 2021
  6. platform/x86: int1092: Fix non sequential device mode handling

    SAR information from BIOS may come in non sequential pattern.
    
    To overcome the issue, a check is made to extract the right SAR
    information using the device mode which is currently being used.
    
    Remove .owner field if calls are used which set it automatically.
    Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci
    
    Signed-off-by: Shravan S <s.shravan@intel.com>
    Link: https://lore.kernel.org/r/20211006073525.1332925-1-s.shravan@intel.com
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    Reviewed-by: Hans de Goede <hdegoede@redhat.com>
    shravan-s1 authored and jwrdegoede committed Oct 11, 2021
  7. platform/x86: intel_skl_int3472: Correct null check

    The int3472-discrete driver can enter an error path after initialising
    int3472->clock.ena_gpio, but before it has registered the clock. This will
    cause a NULL pointer dereference, because clkdev_drop() is not null aware.
    Instead of guarding the call to skl_int3472_unregister_clock() by checking
    for .ena_gpio, check specifically for the presence of the clk_lookup, which
    will guarantee clkdev_create() has already been called.
    
    Bug: https://bugzilla.kernel.org/show_bug.cgi?id=214453
    Fixes: 7540599 ("platform/x86: intel_skl_int3472: Provide skl_int3472_unregister_clock()")
    Signed-off-by: Daniel Scally <djrscally@gmail.com>
    Link: https://lore.kernel.org/r/20211008224608.415949-1-djrscally@gmail.com
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    djrscally authored and jwrdegoede committed Oct 11, 2021
  8. platform/x86: gigabyte-wmi: add support for B550 AORUS ELITE AX V2

    This works just fine on my system.
    
    Signed-off-by: Zephaniah E. Loss-Cutler-Hull <zephaniah@gmail.com>
    Cc: <stable@vger.kernel.org>
    Link: https://lore.kernel.org/r/20211005044855.1429724-1-zephaniah@gmail.com
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    Zephaniah E. Loss-Cutler-Hull authored and jwrdegoede committed Oct 11, 2021
  9. platform/x86: amd-pmc: Add alternative acpi id for PMC controller

    The Surface Laptop 4 AMD has used the AMD0005 to identify this
    controller instead of using the appropriate ACPI ID AMDI0005.  Include
    AMD0005 in the acpi id list.
    
    Link: https://github.com/linux-surface/acpidumps/tree/master/surface_laptop_4_amd
    Link: https://gist.github.com/nakato/2a1a7df1a45fe680d7a08c583e1bf863
    Cc: <stable@vger.kernel.org> # 5.14+
    Signed-off-by: Sachi King <nakato@nakato.io>
    Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
    Link: https://lore.kernel.org/r/20211002041840.2058647-1-nakato@nakato.io
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    nakato authored and jwrdegoede committed Oct 11, 2021
  10. platform/x86: intel_scu_ipc: Update timeout value in comment

    The comment decribing the IPC timeout hadn't been updated when the
    actual timeout was changed from 3 to 5 seconds in
    commit a7d53db ("platform/x86: intel_scu_ipc: Increase virtual
    timeout from 3 to 5 seconds") .
    
    Since the value is anyway updated to 10s now, take this opportunity to
    update the value in the comment too.
    
    Signed-off-by: Prashant Malani <pmalani@chromium.org>
    Cc: Benson Leung <bleung@chromium.org>
    Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
    Link: https://lore.kernel.org/r/20210928101932.2543937-4-pmalani@chromium.org
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    Prashant Malani authored and jwrdegoede committed Oct 11, 2021
  11. platform/x86: intel_scu_ipc: Increase virtual timeout to 10s

    Commit a7d53db ("platform/x86: intel_scu_ipc: Increase virtual
    timeout from 3 to 5 seconds") states that the recommended timeout range
    is 5-10 seconds. Adjust the timeout value to the higher of those i.e 10
    seconds, to account for situations where the 5 seconds is insufficient
    for disconnect command success.
    
    Signed-off-by: Prashant Malani <pmalani@chromium.org>
    Cc: Benson Leung <bleung@chromium.org>
    Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
    Link: https://lore.kernel.org/r/20210928101932.2543937-3-pmalani@chromium.org
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    Prashant Malani authored and jwrdegoede committed Oct 11, 2021
  12. platform/x86: intel_scu_ipc: Fix busy loop expiry time

    The macro IPC_TIMEOUT is already in jiffies (it is also used like that
    elsewhere in the file when calling wait_for_completion_timeout()). Don’t
    convert it using helper functions for the purposes of calculating the
    busy loop expiry time.
    
    Fixes: e7b7ab3 (“platform/x86: intel_scu_ipc: Sleeping is fine when polling”)
    Signed-off-by: Prashant Malani <pmalani@chromium.org>
    Cc: Benson Leung <bleung@chromium.org>
    Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
    Link: https://lore.kernel.org/r/20210928101932.2543937-2-pmalani@chromium.org
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    Prashant Malani authored and jwrdegoede committed Oct 11, 2021
  13. platform/x86: dell: Make DELL_WMI_PRIVACY depend on DELL_WMI

    DELL_WMI_PRIVACY is a feature toggle for the main dell-wmi driver,
    so it must depend on the Kconfig option which enables the main
    dell-wmi driver.
    
    Fixes: 8af9fa3 ("platform/x86: dell-privacy: Add support for Dell hardware privacy")
    Reported-by: Randy Dunlap <rdunlap@infradead.org>
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    Link: https://lore.kernel.org/r/20211011132338.407571-1-hdegoede@redhat.com
    jwrdegoede committed Oct 11, 2021
  14. platform/mellanox: mlxreg-io: Fix read access of n-bytes size attributes

    Fix shift argument for function rol32(). It should be provided in bits,
    while was provided in bytes.
    
    Fixes: 8614819 ("platform/mellanox: mlxreg-io: Add support for complex attributes")
    Signed-off-by: Vadim Pasternak <vadimp@nvidia.com>
    Link: https://lore.kernel.org/r/20210927142214.2613929-3-vadimp@nvidia.com
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    vadimp-nvidia authored and jwrdegoede committed Oct 11, 2021
  15. platform/mellanox: mlxreg-io: Fix argument base in kstrtou32() call

    Change kstrtou32() argument 'base' to be zero instead of 'len'.
    It works by chance for setting one bit value, but it is not supposed to
    work in case value passed to mlxreg_io_attr_store() is greater than 1.
    
    It works for example, for:
    echo 1 > /sys/devices/platform/mlxplat/mlxreg-io/hwmon/.../jtag_enable
    But it will fail for:
    echo n > /sys/devices/platform/mlxplat/mlxreg-io/hwmon/.../jtag_enable,
    where n > 1.
    
    The flow for input buffer conversion is as below:
    _kstrtoull(const char *s, unsigned int base, unsigned long long *res)
    calls:
    rv = _parse_integer(s, base, &_res);
    
    For the second case, where n > 1:
    - _parse_integer() converts 's' to 'val'.
      For n=2, 'len' is set to 2 (string buffer is 0x32 0x0a), for n=3
      'len' is set to 3 (string buffer 0x33 0x0a), etcetera.
    - 'base' is equal or greater then '2' (length of input buffer).
    
    As a result, _parse_integer() exits with result zero (rv):
    	rv = 0;
    	while (1) {
    		...
    		if (val >= base)-> (2 >= 2)
    			break;
    		...
    		rv++;
    		...
    	}
    
    And _kstrtoull() in their turn will fail:
    	if (rv == 0)
    		return -EINVAL;
    
    Fixes: 5ec4a8a ("platform/mellanox: Introduce support for Mellanox register access driver")
    Signed-off-by: Vadim Pasternak <vadimp@nvidia.com>
    Link: https://lore.kernel.org/r/20210927142214.2613929-2-vadimp@nvidia.com
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    vadimp-nvidia authored and jwrdegoede committed Oct 11, 2021
  16. ALSA: hda/realtek: Fix for quirk to enable speaker output on the Leno…

    …vo 13s Gen2
    
    The previous patch's HDA verb initialization for the Lenovo 13s
    sequence was slightly off. This updated verb sequence has been tested
    and confirmed working.
    
    Fixes: ad7cc2d ("ALSA: hda/realtek: Quirks to enable speaker output for Lenovo Legion 7i 15IMHG05, Yoga 7i 14ITL5/15ITL5, and 13s Gen2 laptops.")
    BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=208555
    Cc: <stable@vger.kernel.org>
    Signed-off-by: Cameron Berkenpas <cam@neo-zeon.de>
    Link: https://lore.kernel.org/r/20211010225410.23423-1-cam@neo-zeon.de
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    cberkenpas authored and tiwai committed Oct 11, 2021
  17. Linux 5.15-rc5

    torvalds committed Oct 11, 2021

Commits on Oct 10, 2021

  1. Merge tag 'powerpc-5.15-3' of git://git.kernel.org/pub/scm/linux/kern…

    …el/git/powerpc/linux
    
    Pull powerpc fixes from Michael Ellerman:
     "A bit of a big batch, partly because I didn't send any last week, and
      also just because the BPF fixes happened to land this week.
    
      Summary:
    
       - Fix a regression hit by the IPR SCSI driver, introduced by the
         recent addition of MSI domains on pseries.
    
       - A big series including 8 BPF fixes, some with potential security
         impact and the rest various code generation issues.
    
       - Fix our program check assembler entry path, which was accidentally
         jumping into a gas macro and generating strange stack frames, which
         could confuse find_bug().
    
       - A couple of fixes, and related changes, to fix corner cases in our
         machine check handling.
    
       - Fix our DMA IOMMU ops, which were not always returning the optimal
         DMA mask, leading to at least one device falling back to 32-bit DMA
         when it shouldn't.
    
       - A fix for KUAP handling on 32-bit Book3S.
    
       - Fix crashes seen when kdumping on some pseries systems.
    
      Thanks to Naveen N. Rao, Nicholas Piggin, Alexey Kardashevskiy, Cédric
      Le Goater, Christophe Leroy, Mahesh Salgaonkar, Abdul Haleem,
      Christoph Hellwig, Johan Almbladh, Stan Johnson"
    
    * tag 'powerpc-5.15-3' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
      pseries/eeh: Fix the kdump kernel crash during eeh_pseries_init
      powerpc/32s: Fix kuap_kernel_restore()
      powerpc/pseries/msi: Add an empty irq_write_msi_msg() handler
      powerpc/64s: Fix unrecoverable MCE calling async handler from NMI
      powerpc/64/interrupt: Reconcile soft-mask state in NMI and fix false BUG
      powerpc/64: warn if local irqs are enabled in NMI or hardirq context
      powerpc/traps: do not enable irqs in _exception
      powerpc/64s: fix program check interrupt emergency stack path
      powerpc/bpf ppc32: Fix BPF_SUB when imm == 0x80000000
      powerpc/bpf ppc32: Do not emit zero extend instruction for 64-bit BPF_END
      powerpc/bpf ppc32: Fix JMP32_JSET_K
      powerpc/bpf ppc32: Fix ALU32 BPF_ARSH operation
      powerpc/bpf: Emit stf barrier instruction sequences for BPF_NOSPEC
      powerpc/security: Add a helper to query stf_barrier type
      powerpc/bpf: Fix BPF_SUB when imm == 0x80000000
      powerpc/bpf: Fix BPF_MOD when imm == 1
      powerpc/bpf: Validate branch ranges
      powerpc/lib: Add helper to check if offset is within conditional branch range
      powerpc/iommu: Report the correct most efficient DMA mask for PCI devices
    torvalds committed Oct 10, 2021
  2. Merge tag 'objtool_urgent_for_v5.15_rc5' of git://git.kernel.org/pub/…

    …scm/linux/kernel/git/tip/tip
    
    Pull objtool fixes from Borislav Petkov:
    
     - Remove an extra section.len member in favour of section.sh_size
    
     - Align .altinstructions section creation with the kernel's by creating
       them with entry size of 0
    
     - Fix objtool to convert a reloc symbol to a section offset and not to
       not warn about not knowing how
    
    * tag 'objtool_urgent_for_v5.15_rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
      objtool: Remove redundant 'len' field from struct section
      objtool: Make .altinstructions section entry size consistent
      objtool: Remove reloc symbol type checks in get_alt_entry()
    torvalds committed Oct 10, 2021
  3. Merge tag 'x86_urgent_for_v5.15_rc5' of git://git.kernel.org/pub/scm/…

    …linux/kernel/git/tip/tip
    
    Pull x86 fixes from Borislav Petkov:
    
     - A FPU fix to properly handle invalid MXCSR values: 32-bit masks them
       out due to historical reasons and 64-bit kernels reject them
    
     - A fix to clear X86_FEATURE_SMAP when support for is not
       config-enabled
    
     - Three fixes correcting misspelled Kconfig symbols used in code
    
     - Two resctrl object cleanup fixes
    
     - Yet another attempt at fixing the neverending saga of botched x86
       timers, this time because some incredibly smart hardware decides to
       turn off the HPET timer in a low power state - who cares if the OS is
       relying on it...
    
     - Check the full return value range of an SEV VMGEXIT call to determine
       whether it returned an error
    
    * tag 'x86_urgent_for_v5.15_rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
      x86/fpu: Restore the masking out of reserved MXCSR bits
      x86/Kconfig: Correct reference to MWINCHIP3D
      x86/platform/olpc: Correct ifdef symbol to intended CONFIG_OLPC_XO15_SCI
      x86/entry: Clear X86_FEATURE_SMAP when CONFIG_X86_SMAP=n
      x86/entry: Correct reference to intended CONFIG_64_BIT
      x86/resctrl: Fix kfree() of the wrong type in domain_add_cpu()
      x86/resctrl: Free the ctrlval arrays when domain_setup_mon_state() fails
      x86/hpet: Use another crystalball to evaluate HPET usability
      x86/sev: Return an error on a returned non-zero SW_EXITINFO1[31:0]
    torvalds committed Oct 10, 2021

Commits on Oct 9, 2021

  1. Merge branch 'i2c/for-current-fixed' of git://git.kernel.org/pub/scm/…

    …linux/kernel/git/wsa/linux
    
    Pull i2c fixes from Wolfram Sang:
     "Three driver bugfixes and one leak fix for the core"
    
    * 'i2c/for-current-fixed' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux:
      i2c: mlxcpld: Modify register setting for 400KHz frequency
      i2c: mlxcpld: Fix criteria for frequency setting
      i2c: mediatek: Add OFFSET_EXT_CONF setting back
      i2c: acpi: fix resource leak in reconfiguration device addition
    torvalds committed Oct 9, 2021
  2. Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/g…

    …it/jejb/scsi
    
    Pull SCSI fixes from James Bottomley:
     "Five fixes, all in drivers.
    
      The big change is the UFS task management rework, with lpfc next and
      the rest being fairly minor and obvious fixes"
    
    * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
      scsi: iscsi: Fix iscsi_task use after free
      scsi: lpfc: Fix memory overwrite during FC-GS I/O abort handling
      scsi: elx: efct: Delete stray unlock statement
      scsi: ufs: core: Fix task management completion
      scsi: acornscsi: Remove scsi_cmd_to_tag() reference
    torvalds committed Oct 9, 2021
  3. Merge tag 'block-5.15-2021-10-09' of git://git.kernel.dk/linux-block

    Pull block fixes from Jens Axboe:
     "Two small fixes for this release:
    
       - Add missing QUEUE_FLAG_HCTX_ACTIVE in the debugfs handling
         (Johannes)
    
       - Fix double free / UAF issue in __alloc_disk_node (Tetsuo)"
    
    * tag 'block-5.15-2021-10-09' of git://git.kernel.dk/linux-block:
      block: decode QUEUE_FLAG_HCTX_ACTIVE in debugfs output
      block: genhd: fix double kfree() in __alloc_disk_node()
    torvalds committed Oct 9, 2021
Older