1. 25 11月, 2022 2 次提交
    • M
      perf cs-etm: Update ETM metadata format · 8363150c
      Mike Leach 提交于
      mainline inclusion
      from mainline-v5.11
      commit 42b2b570
      category: feature
      bugzilla: https://gitee.com/openeuler/kernel/issues/I636PS
      CVE: NA
      
      Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=42b2b570b34afb5fb9dc16ac77cb332194136a85
      
      --------------------------------------------------------------------------
      
      The current fixed metadata version format (version 0), means that adding
      metadata parameter items renders files from a previous version of perf
      unreadable. Per CPU parameters appear in a fixed order, but there is no
      field to indicate the number of ETM parameters per CPU.
      
      This patch updates the per CPU parameter blocks to include a NR_PARAMs
      value which indicates the number of parameters in the block.
      
      The header version is incremented to 1. Fixed ordering is retained,
      new ETM parameters are added to the end of the list.
      
      The reader code is updated to be able to read current version 0 files,
      For version 1, the reader will read the number of parameters in the
      per CPU block. This allows the reader to process older or newer files
      that may have different numbers of parameters than in use at the
      time perf was built.
      Signed-off-by: NMike Leach <mike.leach@linaro.org>
      Reviewed-by: NLeo Yan <leo.yan@linaro.org>
      Tested-by: NLeo Yan <leo.yan@linaro.org>
      Link: https://lore.kernel.org/r/20210202214040.32349-1-mike.leach@linaro.org
      Link: https://lore.kernel.org/r/20210224164835.3497311-2-mathieu.poirier@linaro.orgSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      Signed-off-by: NJunhao He <hejunhao3@huawei.com>
      8363150c
    • O
      !223 SPR: IDXD driver (on top of OLK-5.10) - DSA/IAA incremental backporting... · 4ab3abdd
      openeuler-ci-bot 提交于
      !223 SPR: IDXD driver (on top of OLK-5.10) - DSA/IAA incremental backporting patches until upstream 6.1
      
      Merge Pull Request from: @xiaochenshen 
       
       **IDXD kernel driver:** 
      IDXD driver is the common driver framework of Intel Data Stream Accelerator (DSA) and Intel In-memory Analytics Accelerator (IAA). This patchset covers the incremental backporting kernel patches until upstream 6.1. It fixes issues:
      1. https://gitee.com/openeuler/intel-kernel/issues/I596WO 
      2. https://gitee.com/openeuler/intel-kernel/issues/I590PB
      
       **DSA – Intel Data Streaming Accelerator:** 
      Intel DSA is a high-performance data copy and transformation accelerator that is integrated in Intel Sapphire Rapids (SPR) processors, targeted for optimizing streaming data movement and transformation operations common with applications for high-performance storage, networking, persistent memory, and various data processing applications. See more details in DSA spec:
      https://software.intel.com/content/www/us/en/develop/articles/intel-data-streaming-accelerator-architecture-specification.html
      
       **IAA - Intel In-memory Analytics Accelerator:** 
      Intel In-memory Analytics Accelerator is the integrated accelerator that accelerates analytics primitives (scan, filter, etc.), CRC calculations, compression, decompression, and more on Intel Sapphire Rapids (SPR) processors. See more details in IAA spec:
      https://cdrdv2.intel.com/v1/dl/getContent/721858
      
       **There are 173 patches in total in this patch set. It covers:** 
      1. IDXD driver incremental patches between 5.10 LTS and upstream 6.1 (Shared WQ, SVM, IAA, driver refactoring and bug fixes).
      2. ENQCMD and PASID re-enabling patches (as dependencies of IDXD driver)
      3. Other dependencies in IOMMU driver.
      4. kABI fixes for OpenEuler.
      5. Enable necessary kernel configs in openeuler_defconfig.
      
       **Passed tests:** 
      1. Unit tests: passed
      - accel-config test
      - accel-config/test dsa_user_test_runner.sh
      - accel-config/test iaa_user_test_runner.sh
      - Kernel dmatest test (SVA disabled: "modprobe idxd sva=0")
      - Intel internal DSA config test suite (dsa_config_bat_tests, dsa_config_func_tests)
      - Intel internal IAX config test suite (iax_config_bat_tests, iax_config_func_tests)
      3. Build successfully.
      4. Boot test: passed.
      
       **Kernel config changes against default:**
      ```
      @@ -6381,7 +6381,11 @@ CONFIG_DMA_VIRTUAL_CHANNELS=y
       CONFIG_DMA_ACPI=y
       # CONFIG_ALTERA_MSGDMA is not set
       CONFIG_INTEL_IDMA64=m
      +CONFIG_INTEL_IDXD_BUS=m
       CONFIG_INTEL_IDXD=m
      +# CONFIG_INTEL_IDXD_COMPAT is not set
      +CONFIG_INTEL_IDXD_SVM=y
      +CONFIG_INTEL_IDXD_PERFMON=y
       CONFIG_INTEL_IOATDMA=m
       # CONFIG_PLX_DMA is not set
       # CONFIG_QCOM_HIDMA_MGMT is not set
      @@ -6632,11 +6636,12 @@ CONFIG_IOMMU_SUPPORT=y
       # CONFIG_IOMMU_DEBUGFS is not set
       CONFIG_IOMMU_DEFAULT_PASSTHROUGH=y
       CONFIG_IOMMU_DMA=y
      +CONFIG_IOMMU_SVA=y
       CONFIG_AMD_IOMMU=y
       CONFIG_AMD_IOMMU_V2=m
       CONFIG_DMAR_TABLE=y
       CONFIG_INTEL_IOMMU=y
      -# CONFIG_INTEL_IOMMU_SVM is not set
      +CONFIG_INTEL_IOMMU_SVM=y
       # CONFIG_INTEL_IOMMU_DEFAULT_ON is not set
       CONFIG_INTEL_IOMMU_FLOPPY_WA=y
       # CONFIG_INTEL_IOMMU_SCALABLE_MODE_DEFAULT_ON is not set
      ```
      
       **Kernel command line to enable intel iommu scalable mode (in grub.cfg):**
      ```
      intel_iommu=on,sm_on
      ``` 
       
      Link:https://gitee.com/openeuler/kernel/pulls/223 
      Reviewed-by: Zheng Zengkai <zhengzengkai@huawei.com> 
      Reviewed-by: Chen Wei <chenwei@xfusion.com> 
      Reviewed-by: Liu Chao <liuchao173@huawei.com> 
      Reviewed-by: Jun Tian <jun.j.tian@intel.com> 
      Signed-off-by: Zheng Zengkai <zhengzengkai@huawei.com> 
      4ab3abdd
  2. 24 11月, 2022 38 次提交