1. Dec 03, 2022
  2. Dec 01, 2022
    • Greg Kroah-Hartman's avatar
      Merge tag 'icc-6.2-rc1' of... · bbb09f83
      Greg Kroah-Hartman authored
      Merge tag 'icc-6.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/djakov/icc
      
       into char-misc-next
      
      Georgi writes:
      
      interconnect changes for 6.2
      
      These are the interconnect changes for the 6.2-rc1 merge window consisting
      of new drivers to enable both L3 and DDR scaling on sc8280xp platforms.
      There are also a few miscellaneous fixes.
      
      New osm-l3 driver:
      - interconnect: qcom: osm-l3: Use platform-independent node ids
      - interconnect: qcom: osm-l3: Squash common descriptors
      - interconnect: qcom: osm-l3: Add per-core EPSS L3 support
      - interconnect: qcom: osm-l3: Simplify osm_l3_set()
      - dt-bindings: interconnect: Add sm8350, sc8280xp and generic OSM L3 compatibles
      - dt-bindings: interconnect: qcom,msm8998-bwmon: Add sc8280xp bwmon instances
      
      Fixes:
       - interconnect: qcom: icc-rpm: Remove redundant dev_err call
       - interconnect: qcom: sc7180: fix dropped const of qcom_icc_bcm
       - interconnect: qcom: sc7180: drop double space
       - interconnect: qcom: sc8180x: constify pointer to qcom_icc_node
      
      Signed-off-by: default avatarGeorgi Djakov <djakov@kernel.org>
      
      * tag 'icc-6.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/djakov/icc:
        interconnect: qcom: sc8180x: constify pointer to qcom_icc_node
        interconnect: qcom: sc7180: drop double space
        interconnect: qcom: sc7180: fix dropped const of qcom_icc_bcm
        interconnect: qcom: icc-rpm: Remove redundant dev_err call
        dt-bindings: interconnect: qcom,msm8998-bwmon: Add sc8280xp bwmon instances
        dt-bindings: interconnect: Add sm8350, sc8280xp and generic OSM L3 compatibles
        interconnect: qcom: osm-l3: Simplify osm_l3_set()
        interconnect: qcom: osm-l3: Add per-core EPSS L3 support
        interconnect: qcom: osm-l3: Squash common descriptors
        interconnect: qcom: osm-l3: Use platform-independent node ids
        dt-bindings: interconnect: qcom,msm8998-bwmon: Correct SC7280 CPU compatible
      bbb09f83
  3. Nov 29, 2022
    • Greg Kroah-Hartman's avatar
      Merge tag 'coresight-next-v6.2' of... · c5527c17
      Greg Kroah-Hartman authored
      Merge tag 'coresight-next-v6.2' of git://git.kernel.org/pub/scm/linux/kernel/git/coresight/linux
      
       into char-misc-next
      
      Suzuki writes:
      
      coresight: Update for v6.2
      
      CoreSight updatesfor v6.2 includes :
      
       - Support for ETMv4 probing on hotplugged CPUs
       - Fix TRBE driver for cpuhp state refcounting
       - Fix CTI driver NULL pointer dereferencing
       - Fix comment for repeated word
      
      Signed-off-by: default avatarSuzuki K Poulose <suzuki.poulose@arm.com>
      
      * tag 'coresight-next-v6.2' of git://git.kernel.org/pub/scm/linux/kernel/git/coresight/linux:
        coresight: etm4x: fix repeated words in comments
        coresight: cti: Fix null pointer error on CTI init before ETM
        coresight: trbe: remove cpuhp instance node before remove cpuhp state
        coresight: etm4x: add CPU hotplug support for probing
      c5527c17
    • Greg Kroah-Hartman's avatar
      Merge tag 'misc-habanalabs-next-2022-11-23' of... · ae27e886
      Greg Kroah-Hartman authored
      Merge tag 'misc-habanalabs-next-2022-11-23' of https://git.kernel.org/pub/scm/linux/kernel/git/ogabbay/linux into char-misc-next
      
      Oded writes:
      
      This tag contains habanalabs driver changes for v6.2:
      
      - New feature of graceful hard-reset. Instead of immediately killing the
        user-process when a command submission times out, we wait a bit and give
        the user-process notification and let it try to close things gracefully,
        with the ability to retrieve debug information.
      
      - Enhance the EventFD mechanism. Add new events such as access to illegal
        address (RAZWI), page fault, device unavailable. In addition, change the
        event workqueue to be handled in a single-threaded workqueue.
      
      - Allow the control device to work during reset of the ASIC, to enable
        monitoring applications to continue getting the data.
      
      - Add handling for Gaudi2 with PCI revision 2.
      
      - Reduce severity of prints due to power/thermal events.
      
      - Change how we use the h/w to perform memory scrubbing in Gaudi2.
      
      - Multiple bug fixes, refactors and renames.
      
      * tag 'misc-habanalabs-next-2022-11-23' of https://git.kernel.org/pub/scm/linux/kernel/git/ogabbay/linux: (63 commits)
        habanalabs: fix VA range calculation
        habanalabs: fail driver load if EEPROM errors detected
        habanalabs: make print of engines idle mask more readable
        habanalabs: clear non-released encapsulated signals
        habanalabs: don't put context in hl_encaps_handle_do_release_sob()
        habanalabs: print context refcount value if hard reset fails
        habanalabs: add RMWREG32_SHIFTED to set a val within a mask
        habanalabs: fix rc when new CPUCP opcodes are not supported
        habanalabs/gaudi2: added memset for the cq_size register
        habanalabs: added return value check for hl_fw_dynamic_send_clear_cmd()
        habanalabs: increase the size of busy engines mask
        habanalabs/gaudi2: change memory scrub mechanism
        habanalabs: extend process wait timeout in device fine
        habanalabs: check schedule_hard_reset correctly
        habanalabs: reset device if still in use when released
        habanalabs/gaudi2: return to reset upon SM SEI BRESP error
        habanalabs/gaudi2: don't enable entries in the MSIX_GW table
        habanalabs/gaudi2: remove redundant firmware version check
        habanalabs/gaudi: fix print for firmware-alive event
        habanalabs: fix print for out-of-sync and pkt-failure events
        ...
      ae27e886
    • Jilin Yuan's avatar
    • Mike Leach's avatar
      coresight: cti: Fix null pointer error on CTI init before ETM · 3dc228b3
      Mike Leach authored
      When CTI is discovered first then the function
      coresight_set_assoc_ectdev_mutex() is called to set the association
      between CTI and ETM device. Recent lockdep fix passes a null pointer.
      
      This patch passes the correct pointer.
      
      Before patch: log of boot oops sequence with CTI discovered first:
      
      [   12.424091]  cs_system_cfg: CoreSight Configuration manager initialised
      [   12.483474] coresight cti_sys0: CTI initialized
      [   12.488109] coresight cti_sys1: CTI initialized
      [   12.503594] coresight cti_cpu0: CTI initialized
      [   12.517877] coresight-cpu-debug 850000.debug: Coresight debug-CPU0 initialized
      [   12.523479] coresight-cpu-debug 852000.debug: Coresight debug-CPU1 initialized
      [   12.529926] coresight-cpu-debug 854000.debug: Coresight debug-CPU2 initialized
      [   12.541808] coresight stm0: STM32 initialized
      [   12.544421] coresight-cpu-debug 856000.debug: Coresight debug-CPU3 initialized
      [   12.585639] coresight cti_cpu1: CTI initialized
      [   12.614028] coresight cti_cpu2: CTI initialized
      [   12.631679] CSCFG registered etm0
      [   12.633920] coresight etm0: CPU0: etm v4.0 initialized
      [   12.656392] coresight cti_cpu3: CTI initialized
      
      ...
      
      [   12.708383] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000348
      
      ...
      
      [   12.755094] Internal error: Oops: 0000000096000044 [#1] SMP
      [   12.761817] Modules linked in: coresight_etm4x(+) coresight_tmc coresight_cpu_debug coresight_replicator coresight_funnel coresight_cti coresight_tpiu coresight_stm coresight
      [   12.767210] CPU: 3 PID: 1346 Comm: systemd-udevd Not tainted 6.1.0-rc3tid-v6tid-v6-235166-gf7f7d7a2204a-dirty #498
      [   12.782827] Hardware name: Qualcomm Technologies, Inc. APQ 8016 SBC (DT)
      [   12.793154] pstate: 60000005 (nZCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
      [   12.800010] pc : coresight_set_assoc_ectdev_mutex+0x30/0x50 [coresight]
      [   12.806694] lr : coresight_set_assoc_ectdev_mutex+0x30/0x50 [coresight]
      
      ...
      
      [   12.885064] Call trace:
      [   12.892352]  coresight_set_assoc_ectdev_mutex+0x30/0x50 [coresight]
      [   12.894693]  cti_add_assoc_to_csdev+0x144/0x1b0 [coresight_cti]
      [   12.900943]  coresight_register+0x2c8/0x320 [coresight]
      [   12.906844]  etm4_add_coresight_dev.isra.27+0x148/0x280 [coresight_etm4x]
      [   12.912056]  etm4_probe+0x144/0x1c0 [coresight_etm4x]
      [   12.918998]  etm4_probe_amba+0x40/0x78 [coresight_etm4x]
      [   12.924032]  amba_probe+0x11c/0x1f0
      
      After patch: similar log
      
      [   12.444467]  cs_system_cfg: CoreSight Configuration manager initialised
      [   12.456329] coresight-cpu-debug 850000.debug: Coresight debug-CPU0 initialized
      [   12.456754] coresight-cpu-debug 852000.debug: Coresight debug-CPU1 initialized
      [   12.469672] coresight-cpu-debug 854000.debug: Coresight debug-CPU2 initialized
      [   12.476098] coresight-cpu-debug 856000.debug: Coresight debug-CPU3 initialized
      [   12.532409] coresight stm0: STM32 initialized
      [   12.533708] coresight cti_sys0: CTI initialized
      [   12.539478] coresight cti_sys1: CTI initialized
      [   12.550106] coresight cti_cpu0: CTI initialized
      [   12.633931] coresight cti_cpu1: CTI initialized
      [   12.634664] coresight cti_cpu2: CTI initialized
      [   12.638090] coresight cti_cpu3: CTI initialized
      [   12.721136] CSCFG registered etm0
      
      ...
      
      [   12.762643] CSCFG registered etm1
      [   12.762666] coresight etm1: CPU1: etm v4.0 initialized
      [   12.776258] CSCFG registered etm2
      [   12.776282] coresight etm2: CPU2: etm v4.0 initialized
      [   12.784357] CSCFG registered etm3
      [   12.785455] coresight etm3: CPU3: etm v4.0 initialized
      
      Error can also be triggered by manually starting the modules using modprobe
      in the following order:
      
      root@linaro-developer:/home/linaro/cs-mods# modprobe coresight
      root@linaro-developer:/home/linaro/cs-mods# modprobe coresight-cti
      root@linaro-developer:/home/linaro/cs-mods# modprobe coresight-etm4x
      
      Tested on Dragonboard DB410c
      Applies to coresight/next
      
      Fixes: 23722fb4
      
       ("coresight: Fix possible deadlock with lock dependency")
      Signed-off-by: default avatarMike Leach <mike.leach@linaro.org>
      Signed-off-by: default avatarSuzuki K Poulose <suzuki.poulose@arm.com>
      Link: https://lore.kernel.org/r/20221123193818.6253-1-mike.leach@linaro.org
      3dc228b3
    • Yang Shen's avatar
      coresight: trbe: remove cpuhp instance node before remove cpuhp state · 20ee8c22
      Yang Shen authored
      cpuhp_state_add_instance() and cpuhp_state_remove_instance() should
      be used in pairs. Or there will lead to the warn on
      cpuhp_remove_multi_state() since the cpuhp_step list is not empty.
      
      The following is the error log with 'rmmod coresight-trbe':
      Error: Removing state 215 which has instances left.
      Call trace:
        __cpuhp_remove_state_cpuslocked+0x144/0x160
        __cpuhp_remove_state+0xac/0x100
        arm_trbe_device_remove+0x2c/0x60 [coresight_trbe]
        platform_remove+0x34/0x70
        device_remove+0x54/0x90
        device_release_driver_internal+0x1e4/0x250
        driver_detach+0x5c/0xb0
        bus_remove_driver+0x64/0xc0
        driver_unregister+0x3c/0x70
        platform_driver_unregister+0x20/0x30
        arm_trbe_exit+0x1c/0x658 [coresight_trbe]
        __arm64_sys_delete_module+0x1ac/0x24c
        invoke_syscall+0x50/0x120
        el0_svc_common.constprop.0+0x58/0x1a0
        do_el0_svc+0x38/0xd0
        el0_svc+0x2c/0xc0
        el0t_64_sync_handler+0x1ac/0x1b0
        el0t_64_sync+0x19c/0x1a0
       ---[ end trace 0000000000000000 ]---
      
      Fixes: 3fbf7f01
      
       ("coresight: sink: Add TRBE driver")
      Reviewed-by: default avatarAnshuman Khandual <anshuman.khandual@arm.com>
      Signed-off-by: default avatarYang Shen <shenyang39@huawei.com>
      Signed-off-by: default avatarSuzuki K Poulose <suzuki.poulose@arm.com>
      Link: https://lore.kernel.org/r/20221122090355.23533-1-shenyang39@huawei.com
      20ee8c22
    • Greg Kroah-Hartman's avatar
      Merge tag 'counter-fixes-for-6.1b' of... · 449ef8fb
      Greg Kroah-Hartman authored
      Merge tag 'counter-fixes-for-6.1b' of git://git.kernel.org/pub/scm/linux/kernel/git/wbg/counter into char-misc-next
      
      William writes:
      
      Second set of Counter fixes for 6.1
      
      One change for stm32-lptimer-cnt fixing a check on arr and cmp registers
      update to ensure both registers are properly written before ending the
      loop.
      
      * tag 'counter-fixes-for-6.1b' of git://git.kernel.org/pub/scm/linux/kernel/git/wbg/counter:
        counter: stm32-lptimer-cnt: fix the check on arr and cmp registers update
      449ef8fb
  4. Nov 27, 2022
    • Greg Kroah-Hartman's avatar
      Merge tag 'iio-fixes-for-6.1d' of... · 6e6df270
      Greg Kroah-Hartman authored
      Merge tag 'iio-fixes-for-6.1d' of https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio into char-misc-next
      
      Jonathan writes:
      
      4th set of IIO fixes for 6.1
      
      Single patch fixing a memory leak in an error path.
      Fine to queue either for 6.2 if too late for 6.1
      
      * tag 'iio-fixes-for-6.1d' of https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio:
        iio: fix memory leak in iio_device_register_eventset()
        dt-bindings: iio: adc: Remove the property "aspeed,trim-data-valid"
        iio: adc: aspeed: Remove the trim valid dts property.
        iio: core: Fix entry not deleted when iio_register_sw_trigger_type() fails
        iio: accel: bma400: Fix memory leak in bma400_get_steps_reg()
        iio: light: rpr0521: add missing Kconfig dependencies
        iio: health: afe4404: Fix oob read in afe4404_[read|write]_raw
        iio: health: afe4403: Fix oob read in afe4403_read_raw
        iio: light: apds9960: fix wrong register for gesture gain
      6e6df270
    • Greg Kroah-Hartman's avatar
      Merge tag 'iio-for-6.2b' of... · 75621ae3
      Greg Kroah-Hartman authored
      Merge tag 'iio-for-6.2b' of https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio into char-misc-next
      
      Jonathan writes:
      
      2nd set of IIO new device support, cleanups etc for 6.2
      
      Includes a few late breaking fixes for old issues.
      
      Contains a large set of conversions from i2c probe() to probe_new()
      as part of an attempt to finally get rid of the old style probe().
      
      New devices support
      * adi,ad74115
        - New driver for this complex input/output device with 16 bit ADCs,
          14 bit DACs amongst other features.
        - A few tidy ups / removal of unused data patches followed.
      * adi,adf4377
        - New driver for this dual output integer-N phased locked loop and VCO
          chip.
      * maxim,max30208
        - New driver for this high accuracy digital temperature sensor.
      * st,lsm6dsx
        - Support for LSM6DS016IS (chip specific data)
        - Support for ISM330IS (id entry only)
      
      Minor cleanups etc
      * adi,adis
        - Fix a deadlock on device instance specific mutex.
        - Tidy up by calling unlocked form of __adis_initial_startup() in all
          cases and dropping the locked version.
      * adi,ad4130
        - Reference spi-peripehral-props.yaml in the dt-binding.
      * adi,ad74413r
        - Fix a bug brought on by integer promotion of signed value to unsigned type.
        - Add an spi_device_id table to allow module autoloading to work.
        - Add support for reset pin.
      * adi,ad7606_par
        - devm_platform_get_and_ioremap_resource() instead of opencoding.
      * adi,ad7923
        - Add dt-bindings docs for ad7927 via a fallback to ad7928 and do similar
          for ad7924.
      * adi,ltc2983
        - Drop a now unneeded $ref for -nanoamp property as dt-schema no covers this
          unit.
      * maxim,max11410
        - Fix mask due to repeated use of VREFN instead of one of them being VREFP.
      * qcom,spmi-iadc
        - Add fallback compatibles to dt-binding.
      * renesas,rzg2l
        - Document use for RZ/Five SoC.
      * st,stm32-adc
        - Improved calibration support with error logging and a debugfs
          interface to read back the result.
      * ti,adc128s052
        - Fix an issue with missing data members in the adc128_of_match table that
          meant all device were being handled as adc128s052 ADCs.
      
      * tag 'iio-for-6.2b' of https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio: (178 commits)
        iio: addac: ad74413r: fix blank line after declaration warning
        iio: addac: ad74115: remove unused ad74115_dac_slew_rate_hz_tbl
        dt-bindings: iio: imu: st_lsm6dsx: add ism330is
        iio: imu: st_lsm6dsx: add support to ISM330IS
        iio: frequency: adf4377: add support for ADF4377
        dt-bindings: iio: frequency: add adf4377 doc
        dt-bindings: iio: adc: ad4130: use spi-peripheral-props.yaml
        dt-bindings: iio: temperature: ltc2983: drop $ref for -nanoamp properties
        dt-bindings: iio: adc: renesas,rzg2l-adc: Document RZ/Five SoC
        iio: adc128s052: add proper .data members in adc128_of_match table
        iio: adc: stm32-adc: add debugfs to read raw calibration result
        iio: adc: stm32-adc: improve calibration error log
        iio: adc: stm32-adc: smart calibration support
        iio: addac: ad74413r: add support for reset-gpio
        dt-bindings: iio: ad74413r: add optional reset-gpios
        iio: addac: ad74413r: add spi_device_id table
        dt-bindings: iio/adc: qcom,spmi-iadc: use double compatibles
        dt-bindings: iio: imu: st_lsm6dsx: add lsm6dso16is
        iio: imu: st_lsm6dsx: add support to LSM6DSO16IS
        iio: addac: add AD74115 driver
        ...
      75621ae3
    • Fabrice Gasnier's avatar
      counter: stm32-lptimer-cnt: fix the check on arr and cmp registers update · fd5ac974
      Fabrice Gasnier authored
      The ARR (auto reload register) and CMP (compare) registers are
      successively written. The status bits to check the update of these
      registers are polled together with regmap_read_poll_timeout().
      The condition to end the loop may become true, even if one of the register
      isn't correctly updated.
      So ensure both status bits are set before clearing them.
      
      Fixes: d8958824
      
       ("iio: counter: Add support for STM32 LPTimer")
      Signed-off-by: default avatarFabrice Gasnier <fabrice.gasnier@foss.st.com>
      Link: https://lore.kernel.org/r/20221123133609.465614-1-fabrice.gasnier@foss.st.com/
      
      
      Signed-off-by: default avatarWilliam Breathitt Gray <william.gray@linaro.org>
      fd5ac974
  5. Nov 26, 2022
  6. Nov 25, 2022
  7. Nov 24, 2022