1. 15 Feb, 2021 2 commits
    • Tony Lindgren's avatar
      thermal: ti-soc-thermal: Fix stuck sensor with continuous mode for 4430 · 735c3535
      Tony Lindgren authored
      At least for 4430, trying to use the single conversion mode eventually
      hangs the thermal sensor. This can be quite easily seen with errors:
      
      thermal thermal_zone0: failed to read out thermal zone (-5)
      
      Also, trying to read the temperature shows a stuck value with:
      
      $ while true; do cat /sys/class/thermal/thermal_zone0/temp; done
      
      Where the temperature is not rising at all with the busy loop.
      
      Additionally, the EOCZ (end of conversion) bit is not rising on 4430 in
      single conversion mode while it works fine in continuous conversion mode.
      It is also possible that the hung temperature sensor can affect the
      thermal shutdown alert too.
      
      Let's fix the issue by adding TI_BANDGAP_FEATURE_CONT_MODE_ONLY flag and
      use it for 4430.
      
      Note that we also need to add udelay to for the EOCZ (end of conversion)
      bit polling as otherwise we have it time out too early on 4430. We'll be
      changing the loop to use iopoll in the following clean-up patch.
      
      Cc: Adam Ford <aford173@gmail.com>
      Cc: Carl Philipp Klemm <philipp@uvos.xyz>
      Cc: Eduardo Valentin <edubezval@gmail.com>
      Cc: H. Nikolaus Schaller <hns@goldelico.com>
      Cc: Merlijn Wajer <merlijn@wizzup.org>
      Cc: Pavel Machek <pavel@ucw.cz>
      Cc: Peter Ujfalusi <peter.ujfalusi@gmail.com>
      Cc: Sebastian Reichel <sre@kernel.org>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      Tested-by: Adam Ford <aford173@gmail.com> #logicpd-torpedo-37xx-devkit
      Acked-by: default avatarPavel Machek <pavel@ucw.cz>
      Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
      Link: https://lore.kernel.org/r/20210205134534.49200-3-tony@atomide.com
      735c3535
    • Tony Lindgren's avatar
      thermal: ti-soc-thermal: Skip pointless register access for dra7 · b57b4b4d
      Tony Lindgren authored
      On dra7, there is no Start of Conversion (SOC) register bit and we have an
      empty bgap_soc_mask in the configuration for the thermal driver. Let's not
      do pointless reads and writes with the empty mask.
      
      There's also no point waiting for End of Conversion bit (EOCZ) to go high
      on dra7. We only care about it going down, and are now mostly timing out
      waiting for EOCZ high while it has already gone down.
      
      When we add checking for the timeout errors in a later patch, waiting for
      EOCZ high would cause bogus time out errors.
      
      Cc: Adam Ford <aford173@gmail.com>
      Cc: Carl Philipp Klemm <philipp@uvos.xyz>
      Cc: Eduardo Valentin <edubezval@gmail.com>
      Cc: H. Nikolaus Schaller <hns@goldelico.com>
      Cc: Merlijn Wajer <merlijn@wizzup.org>
      Cc: Pavel Machek <pavel@ucw.cz>
      Cc: Peter Ujfalusi <peter.ujfalusi@gmail.com>
      Cc: Sebastian Reichel <sre@kernel.org>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      Tested-by: Adam Ford <aford173@gmail.com> #logicpd-torpedo-37xx-devkit
      Acked-by: default avatarPavel Machek <pavel@ucw.cz>
      Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
      Link: https://lore.kernel.org/r/20210205134534.49200-2-tony@atomide.com
      b57b4b4d
  2. 03 Feb, 2021 2 commits
  3. 19 Jan, 2021 14 commits
  4. 07 Jan, 2021 2 commits
  5. 03 Jan, 2021 1 commit
  6. 02 Jan, 2021 3 commits
    • Linus Torvalds's avatar
      Merge tag 's390-5.11-3' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux · 3516bd72
      Linus Torvalds authored
      Pull s390 cleanups from Vasily Gorbik:
       "Update defconfigs and sort config select list"
      
      * tag 's390-5.11-3' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux:
        s390/Kconfig: sort config S390 select list once again
        s390: update defconfigs
      3516bd72
    • Linus Torvalds's avatar
      Merge tag 'pm-5.11-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · d9296a7b
      Linus Torvalds authored
      Pull power management fixes from Rafael Wysocki:
       "These fix a crash in intel_pstate during resume from suspend-to-RAM
        that may occur after recent changes and two resource leaks in error
        paths in the operating performance points (OPP) framework, add a new
        C-states table to intel_idle and update the cpuidle MAINTAINERS entry
        to cover the governors too.
      
        Specifics:
      
         - Fix recently introduced crash in the intel_pstate driver that
           occurs if scale-invariance is disabled during resume from
           suspend-to-RAM due to inconsistent changes of APERF or MPERF MSR
           values made by the platform firmware (Rafael Wysocki).
      
         - Fix a memory leak and add a missing clk_put() in error paths in the
           OPP framework (Quanyang Wang, Viresh Kumar).
      
         - Add new C-states table for SnowRidge processors to the intel_idle
           driver (Artem Bityutskiy).
      
         - Update the MAINTAINERS entry for cpuidle to make it clear that the
           governors are covered by it too (Lukas Bulwahn)"
      
      * tag 'pm-5.11-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        intel_idle: add SnowRidge C-state table
        cpufreq: intel_pstate: Fix fast-switch fallback path
        opp: Call the missing clk_put() on error
        opp: fix memory leak in _allocate_opp_table
        MAINTAINERS: include governors into CPU IDLE TIME MANAGEMENT FRAMEWORK
      d9296a7b
    • Rafael J. Wysocki's avatar
      Merge branches 'pm-cpufreq' and 'pm-cpuidle' · 89ecf09e
      Rafael J. Wysocki authored
      * pm-cpufreq:
        cpufreq: intel_pstate: Fix fast-switch fallback path
      
      * pm-cpuidle:
        intel_idle: add SnowRidge C-state table
        MAINTAINERS: include governors into CPU IDLE TIME MANAGEMENT FRAMEWORK
      89ecf09e
  7. 01 Jan, 2021 4 commits
    • Linus Torvalds's avatar
      Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi · eda809ae
      Linus Torvalds authored
      Pull SCSI fixes from James Bottomley:
       "This is a load of driver fixes (12 ufs, 1 mpt3sas, 1 cxgbi).
      
        The big core two fixes are for power management ("block: Do not accept
        any requests while suspended" and "block: Fix a race in the runtime
        power management code") which finally sorts out the resume problems
        we've occasionally been having.
      
        To make the resume fix, there are seven necessary precursors which
        effectively renames REQ_PREEMPT to REQ_PM, so every "special" request
        in block is automatically a power management exempt one.
      
        All of the non-PM preempt cases are removed except for the one in the
        SCSI Parallel Interface (spi) domain validation which is a genuine
        case where we have to run requests at high priority to validate the
        bus so this becomes an autopm get/put protected request"
      
      * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi: (22 commits)
        scsi: cxgb4i: Fix TLS dependency
        scsi: ufs: Un-inline ufshcd_vops_device_reset function
        scsi: ufs: Re-enable WriteBooster after device reset
        scsi: ufs-mediatek: Use correct path to fix compile error
        scsi: mpt3sas: Signedness bug in _base_get_diag_triggers()
        scsi: block: Do not accept any requests while suspended
        scsi: block: Remove RQF_PREEMPT and BLK_MQ_REQ_PREEMPT
        scsi: core: Only process PM requests if rpm_status != RPM_ACTIVE
        scsi: scsi_transport_spi: Set RQF_PM for domain validation commands
        scsi: ide: Mark power management requests with RQF_PM instead of RQF_PREEMPT
        scsi: ide: Do not set the RQF_PREEMPT flag for sense requests
        scsi: block: Introduce BLK_MQ_REQ_PM
        scsi: block: Fix a race in the runtime power management code
        scsi: ufs-pci: Enable UFSHCD_CAP_RPM_AUTOSUSPEND for Intel controllers
        scsi: ufs-pci: Fix recovery from hibernate exit errors for Intel controllers
        scsi: ufs-pci: Ensure UFS device is in PowerDown mode for suspend-to-disk ->poweroff()
        scsi: ufs-pci: Fix restore from S4 for Intel controllers
        scsi: ufs-mediatek: Keep VCC always-on for specific devices
        scsi: ufs: Allow regulators being always-on
        scsi: ufs: Clear UAC for RPMB after ufshcd resets
        ...
      eda809ae
    • Linus Torvalds's avatar
      Merge tag 'block-5.11-2021-01-01' of git://git.kernel.dk/linux-block · 8b4805c6
      Linus Torvalds authored
      Pull block fixes from Jens Axboe:
       "Two minor block fixes from this last week that should go into 5.11:
      
         - Add missing NOWAIT debugfs definition (Andres)
      
         - Fix kerneldoc warning introduced this merge window (Randy)"
      
      * tag 'block-5.11-2021-01-01' of git://git.kernel.dk/linux-block:
        block: add debugfs stanza for QUEUE_FLAG_NOWAIT
        fs: block_dev.c: fix kernel-doc warnings from struct block_device changes
      8b4805c6
    • Linus Torvalds's avatar
      Merge tag 'io_uring-5.11-2021-01-01' of git://git.kernel.dk/linux-block · dc3e24b2
      Linus Torvalds authored
      Pull io_uring fixes from Jens Axboe:
       "A few fixes that should go into 5.11, all marked for stable as well:
      
         - Fix issue around identity COW'ing and users that share a ring
           across processes
      
         - Fix a hang associated with unregistering fixed files (Pavel)
      
         - Move the 'process is exiting' cancelation a bit earlier, so
           task_works aren't affected by it (Pavel)"
      
      * tag 'io_uring-5.11-2021-01-01' of git://git.kernel.dk/linux-block:
        kernel/io_uring: cancel io_uring before task works
        io_uring: fix io_sqe_files_unregister() hangs
        io_uring: add a helper for setting a ref node
        io_uring: don't assume mm is constant across submits
      dc3e24b2
    • Linus Torvalds's avatar
      depmod: handle the case of /sbin/depmod without /sbin in PATH · cedd1862
      Linus Torvalds authored
      Commit 436e980e ("kbuild: don't hardcode depmod path") stopped
      hard-coding the path of depmod, but in the process caused trouble for
      distributions that had that /sbin location, but didn't have it in the
      PATH (generally because /sbin is limited to the super-user path).
      
      Work around it for now by just adding /sbin to the end of PATH in the
      depmod.sh script.
      Reported-and-tested-by: default avatarSedat Dilek <sedat.dilek@gmail.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      cedd1862
  8. 31 Dec, 2020 3 commits
  9. 30 Dec, 2020 6 commits
  10. 29 Dec, 2020 3 commits
    • Andres Freund's avatar
      block: add debugfs stanza for QUEUE_FLAG_NOWAIT · dc304326
      Andres Freund authored
      This was missed in 021a2446. Leads to the numeric value of
      QUEUE_FLAG_NOWAIT (i.e. 29) showing up in
      /sys/kernel/debug/block/*/state.
      
      Fixes: 021a2446
      Cc: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
      Cc: Mike Snitzer <snitzer@redhat.com>
      Cc: Christoph Hellwig <hch@lst.de>
      Cc: Jens Axboe <axboe@kernel.dk>
      Signed-off-by: default avatarAndres Freund <andres@anarazel.de>
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      dc304326
    • Randy Dunlap's avatar
      fs: block_dev.c: fix kernel-doc warnings from struct block_device changes · 875b2376
      Randy Dunlap authored
      Fix new kernel-doc warnings in fs/block_dev.c:
      
      ../fs/block_dev.c:1066: warning: Excess function parameter 'whole' description in 'bd_abort_claiming'
      ../fs/block_dev.c:1837: warning: Function parameter or member 'dev' not described in 'lookup_bdev'
      
      Fixes: 4e7b5671 ("block: remove i_bdev")
      Fixes: 37c3fc9a ("block: simplify the block device claiming interface")
      Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Cc: Jens Axboe <axboe@kernel.dk>
      Cc: Christoph Hellwig <hch@lst.de>
      Cc: linux-fsdevel@vger.kernel.org
      Cc: Alexander Viro <viro@zeniv.linux.org.uk>
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      875b2376
    • Linus Torvalds's avatar
      Merge branch 'akpm' (patches from Andrew) · 139711f0
      Linus Torvalds authored
      Merge misc fixes from Andrew Morton:
       "16 patches
      
        Subsystems affected by this patch series: mm (selftests, hugetlb,
        pagecache, mremap, kasan, and slub), kbuild, checkpatch, misc, and
        lib"
      
      * emailed patches from Andrew Morton <akpm@linux-foundation.org>:
        mm: slub: call account_slab_page() after slab page initialization
        zlib: move EXPORT_SYMBOL() and MODULE_LICENSE() out of dfltcc_syms.c
        lib/zlib: fix inflating zlib streams on s390
        lib/genalloc: fix the overflow when size is too big
        kdev_t: always inline major/minor helper functions
        sizes.h: add SZ_8G/SZ_16G/SZ_32G macros
        local64.h: make <asm/local64.h> mandatory
        kasan: fix null pointer dereference in kasan_record_aux_stack
        mm: generalise COW SMC TLB flushing race comment
        mm/mremap.c: fix extent calculation
        mm: memmap defer init doesn't work as expected
        mm: add prototype for __add_to_page_cache_locked()
        checkpatch: prefer strscpy to strlcpy
        Revert "kbuild: avoid static_assert for genksyms"
        mm/hugetlb: fix deadlock in hugetlb_cow error path
        selftests/vm: fix building protection keys test
      139711f0