1. 18 Mar, 2022 36 commits
  2. 11 Mar, 2022 4 commits
    • Greg Kroah-Hartman's avatar
      Merge tag 'icc-5.18-rc1' of... · d6cd2f85
      Greg Kroah-Hartman authored
      Merge tag 'icc-5.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/djakov/icc into char-misc-next
      
      Georgi writes:
      
      interconnect changes for 5.18
      
      These are the interconnect changes for the 5.18-rc1 merge window
      consisting of minor framework and driver updates.
      
      Core changes:
       - Added stubs for the bulk API to expand compile testing coverage.
      
      Driver changes:
       - imx: Implemented get_bw() function to get initial avg/peak bandwidth.
       - msm8939: Fix ioremap collision for snoc-mm.
      Signed-off-by: default avatarGeorgi Djakov <djakov@kernel.org>
      
      * tag 'icc-5.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/djakov/icc:
        interconnect: Add stubs for the bulk API
        interconnect: qcom: msm8939: Remove snoc_mm specific regmap
        dt-bindings: interconnect: Convert snoc-mm to a sub-node of snoc
        interconnect: imx: Add imx_icc_get_bw function to set initial avg and peak
      d6cd2f85
    • Anshuman Khandual's avatar
      coresight: Drop unused 'none' enum value for each component · 286f9505
      Anshuman Khandual authored
      CORESIGHT_DEV_TYPE_NONE/CORESIGHT_DEV_SUBTYPE_XXXX_NONE values are not used
      any where. Actual enumeration can start from 0. Just drop these unused enum
      values.
      
      Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
      Cc: Suzuki K Poulose <suzuki.poulose@arm.com>
      Cc: Mike Leach <mike.leach@linaro.org>
      Cc: Leo Yan <leo.yan@linaro.org>
      Cc: coresight@lists.linaro.org
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: linux-kernel@vger.kernel.org
      Signed-off-by: default avatarAnshuman Khandual <anshuman.khandual@arm.com>
      Link: https://lore.kernel.org/r/1645005118-10561-1-git-send-email-anshuman.khandual@arm.comSigned-off-by: default avatarMathieu Poirier <mathieu.poirier@linaro.org>
      Signed-off-by: default avatarSuzuki K Poulose <suzuki.poulose@arm.com>
      286f9505
    • Leo Yan's avatar
      coresight: etm3x: Don't trace PID for non-root PID namespace · ec70b05d
      Leo Yan authored
      ETMv3 driver enables PID tracing by directly using perf config from
      userspace, this means the tracer will capture PID packets from root
      namespace but the profiling session runs in non-root PID namespace.
      Finally, the recorded packets can mislead perf reporting with the
      mismatched PID values.
      
      This patch changes to only enable PID tracing for root PID namespace.
      Note, the hardware supports VMID tracing from ETMv3.5, but the driver
      never enables VMID trace, this patch doesn't handle VMID trace (bit 30
      in ETMCR register) particularly.
      Signed-off-by: default avatarLeo Yan <leo.yan@linaro.org>
      Signed-off-by: default avatarSuzuki K Poulose <suzuki.poulose@arm.com>
      Link: https://lore.kernel.org/r/20220204152403.71775-5-leo.yan@linaro.org
      ec70b05d
    • Leo Yan's avatar
      coresight: etm4x: Don't trace PID for non-root PID namespace · aab47386
      Leo Yan authored
      When runs in perf mode, the driver always enables the PID tracing.  This
      can lead confusion when the profiling session runs in non-root PID
      namespace, whereas it records the PIDs from the root PID namespace.
      
      To avoid confusion for PID tracing, when runs in perf mode, this patch
      changes to only enable PID tracing for root PID namespace.
      
      As result, after apply this patch, the perf tool reports PID as '-1' for
      all samples:
      
        # unshare --fork --pid perf record -e cs_etm// -m 64K,64K -a \
      	-o perf_test.data -- uname
        # perf report -i perf_test.data --itrace=Zi1000i --stdio
      
        # Total Lost Samples: 0
        #
        # Samples: 94  of event 'instructions'
        # Event count (approx.): 94000
        #
        # Overhead  Command  Shared Object      Symbol
        # ........  .......  .................  ..............................
        #
            68.09%  :-1      [kernel.kallsyms]  [k] __sched_text_end
             3.19%  :-1      [kernel.kallsyms]  [k] hrtimer_interrupt
             2.13%  :-1      [kernel.kallsyms]  [k] __bitmap_and
             2.13%  :-1      [kernel.kallsyms]  [k] trace_vbprintk
             1.06%  :-1      [kernel.kallsyms]  [k] __fget_files
             1.06%  :-1      [kernel.kallsyms]  [k] __schedule
             1.06%  :-1      [kernel.kallsyms]  [k] __softirqentry_text_start
             1.06%  :-1      [kernel.kallsyms]  [k] __update_load_avg_cfs_rq
             1.06%  :-1      [kernel.kallsyms]  [k] __update_load_avg_se
             1.06%  :-1      [kernel.kallsyms]  [k] arch_counter_get_cntpct
             1.06%  :-1      [kernel.kallsyms]  [k] check_and_switch_context
             1.06%  :-1      [kernel.kallsyms]  [k] format_decode
             1.06%  :-1      [kernel.kallsyms]  [k] handle_percpu_devid_irq
             1.06%  :-1      [kernel.kallsyms]  [k] irq_enter_rcu
             1.06%  :-1      [kernel.kallsyms]  [k] irqtime_account_irq
             1.06%  :-1      [kernel.kallsyms]  [k] ktime_get
             1.06%  :-1      [kernel.kallsyms]  [k] ktime_get_coarse_real_ts64
             1.06%  :-1      [kernel.kallsyms]  [k] memmove
             1.06%  :-1      [kernel.kallsyms]  [k] perf_ioctl
             1.06%  :-1      [kernel.kallsyms]  [k] perf_output_begin
             1.06%  :-1      [kernel.kallsyms]  [k] perf_output_copy
             1.06%  :-1      [kernel.kallsyms]  [k] profile_tick
             1.06%  :-1      [kernel.kallsyms]  [k] sched_clock
             1.06%  :-1      [kernel.kallsyms]  [k] timerqueue_add
             1.06%  :-1      [kernel.kallsyms]  [k] trace_save_cmdline
             1.06%  :-1      [kernel.kallsyms]  [k] update_load_avg
             1.06%  :-1      [kernel.kallsyms]  [k] vbin_printf
      Signed-off-by: default avatarLeo Yan <leo.yan@linaro.org>
      Signed-off-by: default avatarSuzuki K Poulose <suzuki.poulose@arm.com>
      Link: https://lore.kernel.org/r/20220204152403.71775-4-leo.yan@linaro.org
      aab47386