1. 05 Apr, 2023 4 commits
    • Hans de Goede's avatar
      ACPI: video: Add acpi_backlight=video quirk for Lenovo ThinkPad W530 · a5b2781d
      Hans de Goede authored
      The Lenovo ThinkPad W530 uses a nvidia k1000m GPU. When this gets used
      together with one of the older nvidia binary driver series (the latest
      series does not support it), then backlight control does not work.
      
      This is caused by commit 3dbc80a3 ("ACPI: video: Make backlight
      class device registration a separate step (v2)") combined with
      commit 5aa9d943 ("ACPI: video: Don't enable fallback path for
      creating ACPI backlight by default").
      
      After these changes the acpi_video# backlight device is only registered
      when requested by a GPU driver calling acpi_video_register_backlight()
      which the nvidia binary driver does not do.
      
      I realize that using the nvidia binary driver is not a supported use-case
      and users can workaround this by adding acpi_backlight=video on the kernel
      commandline, but the ThinkPad W530 is a popular model under Linux users,
      so it seems worthwhile to add a quirk for this.
      
      I will also email Nvidia asking them to make the driver call
      acpi_video_register_backlight() when an internal LCD panel is detected.
      So maybe the next maintenance release of the drivers will fix this...
      
      Fixes: 5aa9d943 ("ACPI: video: Don't enable fallback path for creating ACPI backlight by default")
      Cc: All applicable <stable@vger.kernel.org>
      Reviewed-by: default avatarMario Limonciello <mario.limonciello@amd.com>
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      a5b2781d
    • Hans de Goede's avatar
      ACPI: video: Add acpi_backlight=video quirk for Apple iMac14,1 and iMac14,2 · 26991079
      Hans de Goede authored
      On the Apple iMac14,1 and iMac14,2 all-in-ones (monitors with builtin "PC")
      the connection between the GPU and the panel is seen by the GPU driver as
      regular DP instead of eDP, causing the GPU driver to never call
      acpi_video_register_backlight().
      
      (GPU drivers only call acpi_video_register_backlight() when an internal
       panel is detected, to avoid non working acpi_video# devices getting
       registered on desktops which unfortunately is a real issue.)
      
      Fix the missing acpi_video# backlight device on these all-in-ones by
      adding a acpi_backlight=video DMI quirk, so that video.ko will
      immediately register the backlight device instead of waiting for
      an acpi_video_register_backlight() call.
      
      Fixes: 5aa9d943 ("ACPI: video: Don't enable fallback path for creating ACPI backlight by default")
      Cc: All applicable <stable@vger.kernel.org>
      Reviewed-by: default avatarMario Limonciello <mario.limonciello@amd.com>
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      26991079
    • Hans de Goede's avatar
      ACPI: video: Make acpi_backlight=video work independent from GPU driver · e506731c
      Hans de Goede authored
      Commit 3dbc80a3 ("ACPI: video: Make backlight class device
      registration a separate step (v2)") combined with
      commit 5aa9d943 ("ACPI: video: Don't enable fallback path for
      creating ACPI backlight by default")
      
      Means that the video.ko code now fully depends on the GPU driver calling
      acpi_video_register_backlight() for the acpi_video# backlight class
      devices to get registered.
      
      This means that if the GPU driver does not do this, acpi_backlight=video
      on the cmdline, or DMI quirks for selecting acpi_video# will not work.
      
      This is a problem on for example Apple iMac14,1 all-in-ones where
      the monitor's LCD panel shows up as a regular DP connection instead of
      eDP so the GPU driver will not call acpi_video_register_backlight() [1].
      
      Fix this by making video.ko directly register the acpi_video# devices
      when these have been explicitly requested either on the cmdline or
      through DMI quirks (rather then auto-detection being used).
      
      [1] GPU drivers only call acpi_video_register_backlight() when an internal
      panel is detected, to avoid non working acpi_video# devices getting
      registered on desktops which unfortunately is a real issue.
      
      Fixes: 5aa9d943 ("ACPI: video: Don't enable fallback path for creating ACPI backlight by default")
      Cc: All applicable <stable@vger.kernel.org>
      Reviewed-by: default avatarMario Limonciello <mario.limonciello@amd.com>
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      e506731c
    • Hans de Goede's avatar
      ACPI: video: Add auto_detect arg to __acpi_video_get_backlight_type() · 78dfc9d1
      Hans de Goede authored
      Allow callers of __acpi_video_get_backlight_type() to pass a pointer
      to a bool which will get set to false if the backlight-type comes from
      the cmdline or a DMI quirk and set to true if auto-detection was used.
      
      And make __acpi_video_get_backlight_type() non static so that it can
      be called directly outside of video_detect.c .
      
      While at it turn the acpi_video_get_backlight_type() and
      acpi_video_backlight_use_native() wrappers into static inline functions
      in include/acpi/video.h, so that we need to export one less symbol.
      
      Fixes: 5aa9d943 ("ACPI: video: Don't enable fallback path for creating ACPI backlight by default")
      Cc: All applicable <stable@vger.kernel.org>
      Reviewed-by: default avatarMario Limonciello <mario.limonciello@amd.com>
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      78dfc9d1
  2. 02 Apr, 2023 5 commits
  3. 01 Apr, 2023 5 commits
    • Linus Torvalds's avatar
      Merge tag '6.3-rc4-smb3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6 · f7772da6
      Linus Torvalds authored
      Pull cifs client fixes from Steve French:
       "Four cifs/smb3 client (reconnect and DFS related) fixes, including two
        for stable:
      
         - DFS oops fix
      
         - DFS reconnect recursion fix
      
         - An SMB1 parallel reconnect fix
      
         - Trivial dead code removal in smb2_reconnect"
      
      * tag '6.3-rc4-smb3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6:
        cifs: get rid of dead check in smb2_reconnect()
        cifs: prevent infinite recursion in CIFSGetDFSRefer()
        cifs: avoid races in parallel reconnects in smb1
        cifs: fix DFS traversal oops without CONFIG_CIFS_DFS_UPCALL
      f7772da6
    • Linus Torvalds's avatar
      Merge tag 'input-for-v6.3-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input · 00c7b5f4
      Linus Torvalds authored
      Pull input fixes from Dmitry Torokhov:
      
       - fixes to ALPS and Focaltech PS/2 drivers dealing with the breakage of
         switching to -funsigned-char
      
       - quirks to i8042 to better handle Lifebook A574/H and TUXEDO devices
      
       - a quirk to Goodix touchscreen driver to handle Yoga Book X90F
      
       - a fix for incorrectly merged patch to xpad game controller driver
      
      * tag 'input-for-v6.3-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
        Input: i8042 - add TUXEDO devices to i8042 quirk tables for partial fix
        Input: alps - fix compatibility with -funsigned-char
        Input: focaltech - use explicitly signed char type
        Input: xpad - fix incorrectly applied patch for MAP_PROFILE_BUTTON
        Input: goodix - add Lenovo Yoga Book X90F to nine_bytes_report DMI table
        Input: i8042 - add quirk for Fujitsu Lifebook A574/H
      00c7b5f4
    • Linus Torvalds's avatar
      Merge tag 'pinctrl-v6.3-2' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl · 93e2b017
      Linus Torvalds authored
      Pull pin control fixes from Linus Walleij:
       "Some pin control fixes for the v6.3 series.
      
        The most notable and urgent one is probably the AMD fix which affects
        AMD laptops, found by the Chromium people.
      
        Summary:
      
         - Fix up the Kconfig options for MediaTek MT7981
      
         - Fix the irq domain name in the AT91-PIO4 driver
      
         - Fix some alternative muxing modes in the Ocelot driver
      
         - Allocate the GPIO numbers dynamically in the STM32 driver
      
         - Disable and mask interrupts on resume in the AMD driver
      
         - Fix a typo in the Qualcomm SM8550 pin control device tree bindings"
      
      * tag 'pinctrl-v6.3-2' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl:
        dt-bindings: pinctrl: qcom,sm8550-lpass-lpi: allow input-enabled and bias-bus-hold
        pinctrl: amd: Disable and mask interrupts on resume
        pinctrl: stm32: use dynamic allocation of GPIO base
        pinctrl: ocelot: Fix alt mode for ocelot
        pinctrl: at91-pio4: fix domain name assignment
        pinctrl: mediatek: fix naming inconsistency
        pinctrl: mediatek: add missing options to PINCTRL_MT7981
      93e2b017
    • Linus Torvalds's avatar
      Merge tag 'kbuild-fixes-v6.3-2' of... · ce0c2375
      Linus Torvalds authored
      Merge tag 'kbuild-fixes-v6.3-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
      
      Pull Kbuild fixes from Masahiro Yamada:
      
       - Fix linux-headers debian package
      
       - Fix a merge_config.sh error due to a misspelled variable
      
       - Fix modversion for 32-bit build machines
      
      * tag 'kbuild-fixes-v6.3-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild:
        modpost: Fix processing of CRCs on 32-bit build machines
        scripts: merge_config: Fix typo in variable name.
        kbuild: deb-pkg: set version for linux-headers paths
      ce0c2375
    • Linus Torvalds's avatar
      Merge tag 'iommu-fixes-6.3-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu · 92367fdf
      Linus Torvalds authored
      Pull iommu fixes from Joerg Roedel:
      
       - Maintainer update for S390 IOMMU driver
      
       - A fix for the set_platform_dma_ops() call-back in the Exynos
         IOMMU driver
      
       - Intel VT-d fixes from Lu Baolu:
          - Fix a lockdep splat
          - Fix a supplement of the specification
          - Fix a warning in perfmon code
      
      * tag 'iommu-fixes-6.3-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu:
        iommu/vt-d: Fix an IOMMU perfmon warning when CPU hotplug
        iommu/vt-d: Allow zero SAGAW if second-stage not supported
        iommu/vt-d: Remove unnecessary locking in intel_irq_remapping_alloc()
        iommu/exynos: Fix set_platform_dma_ops() callback
        MAINTAINERS: Update s390-iommu driver maintainer information
      92367fdf
  4. 31 Mar, 2023 19 commits
  5. 30 Mar, 2023 7 commits