1. 24 Dec, 2020 10 commits
    • Tiezhu Yang's avatar
      perf tools: Update powerpc's syscall.tbl copy from the kernel sources · c5ef5294
      Tiezhu Yang authored
      This silences the following tools/perf/ build warning:
      
        Warning: Kernel ABI header at 'tools/perf/arch/powerpc/entry/syscalls/syscall.tbl' differs from latest version at 'arch/powerpc/kernel/syscalls/syscall.tbl'
      
      Just make them same:
      
        cp arch/powerpc/kernel/syscalls/syscall.tbl tools/perf/arch/powerpc/entry/syscalls/syscall.tbl
      Signed-off-by: default avatarTiezhu Yang <yangtiezhu@loongson.cn>
      Reviewed-by: default avatarNaveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Xuefeng Li <lixuefeng@loongson.cn>
      Link: http://lore.kernel.org/lkml/1608278364-6733-4-git-send-email-yangtiezhu@loongson.cn
      [ There were updates after Tiezhu's post, so I just updated the copy ]
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      c5ef5294
    • Tiezhu Yang's avatar
      perf s390: Move syscall.tbl check into check-headers.sh · 22ffc3f5
      Tiezhu Yang authored
      It is better to check syscall.tbl for s390 in check-headers.sh, it is
      similar with commit c9b51a01 ("perf tools: Move syscall_64.tbl check
      into check-headers.sh").
      Signed-off-by: default avatarTiezhu Yang <yangtiezhu@loongson.cn>
      Reviewed-by: default avatarNaveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Xuefeng Li <lixuefeng@loongson.cn>
      Link: http://lore.kernel.org/lkml/1608278364-6733-3-git-send-email-yangtiezhu@loongson.cnSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      22ffc3f5
    • Tiezhu Yang's avatar
      perf powerpc: Move syscall.tbl check to check-headers.sh · 9bad32b2
      Tiezhu Yang authored
      It is better to check syscall.tbl for powerpc in check-headers.sh, it is
      similar with commit c9b51a01 ("perf tools: Move syscall_64.tbl check
      into check-headers.sh").
      Signed-off-by: default avatarTiezhu Yang <yangtiezhu@loongson.cn>
      Reviewed-by: default avatarNaveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Xuefeng Li <lixuefeng@loongson.cn>
      Link: http://lore.kernel.org/lkml/1608278364-6733-2-git-send-email-yangtiezhu@loongson.cnSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      9bad32b2
    • Arnaldo Carvalho de Melo's avatar
      tools headers UAPI: Synch KVM's svm.h header with the kernel · b71df82d
      Arnaldo Carvalho de Melo authored
      To pick up the changes from:
      
        d1949b93 ("KVM: SVM: Add support for CR8 write traps for an SEV-ES guest")
        5b51cb13 ("KVM: SVM: Add support for CR4 write traps for an SEV-ES guest")
        f27ad38a ("KVM: SVM: Add support for CR0 write traps for an SEV-ES guest")
        2985afbc ("KVM: SVM: Add support for EFER write traps for an SEV-ES guest")
        291bd20d ("KVM: SVM: Add initial support for a VMGEXIT VMEXIT")
      
      Picking these new SVM exit reasons:
      
        +	{ SVM_EXIT_EFER_WRITE_TRAP,	"write_efer_trap" }, \
        +	{ SVM_EXIT_CR0_WRITE_TRAP,	"write_cr0_trap" }, \
        +	{ SVM_EXIT_CR4_WRITE_TRAP,	"write_cr4_trap" }, \
        +	{ SVM_EXIT_CR8_WRITE_TRAP,	"write_cr8_trap" }, \
        +	{ SVM_EXIT_VMGEXIT,		"vmgexit" }, \
        +	{ SVM_VMGEXIT_MMIO_READ,	"vmgexit_mmio_read" }, \
        +	{ SVM_VMGEXIT_MMIO_WRITE,	"vmgexit_mmio_write" }, \
        +	{ SVM_VMGEXIT_NMI_COMPLETE,	"vmgexit_nmi_complete" }, \
        +	{ SVM_VMGEXIT_AP_HLT_LOOP,	"vmgexit_ap_hlt_loop" }, \
        +	{ SVM_VMGEXIT_AP_JUMP_TABLE,	"vmgexit_ap_jump_table" }, \
      
      And address this perf build warning:
      
        Warning: Kernel ABI header at 'tools/arch/x86/include/uapi/asm/svm.h' differs from latest version at 'arch/x86/include/uapi/asm/svm.h'
        diff -u tools/arch/x86/include/uapi/asm/svm.h arch/x86/include/uapi/asm/svm.h
      
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Ian Rogers <irogers@google.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Paolo Bonzini <pbonzini@redhat.com>
      Cc: Tom Lendacky <thomas.lendacky@amd.com>
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      b71df82d
    • Arnaldo Carvalho de Melo's avatar
      tools kvm headers: Update KVM headers from the kernel sources · 9880e71c
      Arnaldo Carvalho de Melo authored
      To pick the changes from:
      
        8d14797b ("KVM: arm64: Move 'struct kvm_arch_memory_slot' out of uapi/")
      
      That don't causes any changes in tooling, only addresses this perf build
      warning:
      
        Warning: Kernel ABI header at 'tools/arch/arm64/include/uapi/asm/kvm.h' differs from latest version at 'arch/arm64/include/uapi/asm/kvm.h'
        diff -u tools/arch/arm64/include/uapi/asm/kvm.h arch/arm64/include/uapi/asm/kvm.h
      
      Cc: Marc Zyngier <maz@kernel.org>
      Cc: Will Deacon <will@kernel.org>
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      9880e71c
    • Arnaldo Carvalho de Melo's avatar
      tools headers UAPI: Sync KVM's vmx.h header with the kernel sources · cd97448d
      Arnaldo Carvalho de Melo authored
      To pick the changes in:
      
        bf0cd88c ("KVM: x86: emulate wait-for-SIPI and SIPI-VMExit")
      
      That makes 'perf kvm-stat' aware of this new SIPI_SIGNAL exit reason,
      thus addressing the following perf build warning:
      
        Warning: Kernel ABI header at 'tools/arch/x86/include/uapi/asm/vmx.h' differs from latest version at 'arch/x86/include/uapi/asm/vmx.h'
        diff -u tools/arch/x86/include/uapi/asm/vmx.h arch/x86/include/uapi/asm/vmx.h
      
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Ian Rogers <irogers@google.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Paolo Bonzini <pbonzini@redhat.com>
      Cc: Yadong Qi <yadong.qi@intel.com>
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      cd97448d
    • Arnaldo Carvalho de Melo's avatar
      tools headers UAPI: Sync kvm.h headers with the kernel sources · 288807fc
      Arnaldo Carvalho de Melo authored
      To pick the changes in:
      
        fb04a1ed ("KVM: X86: Implement ring-based dirty memory tracking")
      
      That result in these change in tooling:
      
        $ tools/perf/trace/beauty/kvm_ioctl.sh > before
        $ cp include/uapi/linux/kvm.h tools/include/uapi/linux/kvm.h
        $ cp arch/x86/include/uapi/asm/kvm.h tools/arch/x86/include/uapi/asm/kvm.h
        $ tools/perf/trace/beauty/kvm_ioctl.sh > after
        $ diff -u before after
        --- before	2020-12-21 11:55:45.229737066 -0300
        +++ after	2020-12-21 11:55:56.379983393 -0300
        @@ -90,6 +90,7 @@
         	[0xc0] = "CLEAR_DIRTY_LOG",
         	[0xc1] = "GET_SUPPORTED_HV_CPUID",
         	[0xc6] = "X86_SET_MSR_FILTER",
        +	[0xc7] = "RESET_DIRTY_RINGS",
         	[0xe0] = "CREATE_DEVICE",
         	[0xe1] = "SET_DEVICE_ATTR",
         	[0xe2] = "GET_DEVICE_ATTR",
        $
      
      Now one can use that string in filters when tracing ioctls, etc.
      
      And silences this perf build warning:
      
        Warning: Kernel ABI header at 'tools/include/uapi/linux/kvm.h' differs from latest version at 'include/uapi/linux/kvm.h'
        diff -u tools/include/uapi/linux/kvm.h include/uapi/linux/kvm.h
        Warning: Kernel ABI header at 'tools/arch/x86/include/uapi/asm/kvm.h' differs from latest version at 'arch/x86/include/uapi/asm/kvm.h'
        diff -u tools/arch/x86/include/uapi/asm/kvm.h arch/x86/include/uapi/asm/kvm.h
      
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Ian Rogers <irogers@google.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Paolo Bonzini <pbonzini@redhat.com>
      Cc: Peter Xu <peterx@redhat.com>
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      288807fc
    • Arnaldo Carvalho de Melo's avatar
      tools arch x86: Sync the msr-index.h copy with the kernel sources · fde66824
      Arnaldo Carvalho de Melo authored
      To pick up the changes in:
      
      Fixes: 69372cf0 ("x86/cpu: Add VM page flush MSR availablility as a CPUID feature")
      
      That cause these changes in tooling:
      
        $ tools/perf/trace/beauty/tracepoints/x86_msr.sh > before
        $ cp arch/x86/include/asm/msr-index.h tools/arch/x86/include/asm/msr-index.h
        $ tools/perf/trace/beauty/tracepoints/x86_msr.sh > after
        $ diff -u before after
        --- before	2020-12-21 09:09:05.593005003 -0300
        +++ after	2020-12-21 09:12:48.436994802 -0300
        @@ -21,7 +21,7 @@
         	[0x0000004f] = "PPIN",
         	[0x00000060] = "LBR_CORE_TO",
         	[0x00000079] = "IA32_UCODE_WRITE",
        -	[0x0000008b] = "IA32_UCODE_REV",
        +	[0x0000008b] = "AMD64_PATCH_LEVEL",
         	[0x0000008C] = "IA32_SGXLEPUBKEYHASH0",
         	[0x0000008D] = "IA32_SGXLEPUBKEYHASH1",
         	[0x0000008E] = "IA32_SGXLEPUBKEYHASH2",
        @@ -286,6 +286,7 @@
         	[0xc0010114 - x86_AMD_V_KVM_MSRs_offset] = "VM_CR",
         	[0xc0010115 - x86_AMD_V_KVM_MSRs_offset] = "VM_IGNNE",
         	[0xc0010117 - x86_AMD_V_KVM_MSRs_offset] = "VM_HSAVE_PA",
        +	[0xc001011e - x86_AMD_V_KVM_MSRs_offset] = "AMD64_VM_PAGE_FLUSH",
         	[0xc001011f - x86_AMD_V_KVM_MSRs_offset] = "AMD64_VIRT_SPEC_CTRL",
         	[0xc0010130 - x86_AMD_V_KVM_MSRs_offset] = "AMD64_SEV_ES_GHCB",
         	[0xc0010131 - x86_AMD_V_KVM_MSRs_offset] = "AMD64_SEV",
        $
      
      The new MSR has a pattern that wasn't matched to avoid a clash with
      IA32_UCODE_REV, change the regex to prefer the more relevant AMD_
      prefixed ones to catch this new AMD64_VM_PAGE_FLUSH MSR.
      
      Which causes these parts of tools/perf/ to be rebuilt:
      
        CC       /tmp/build/perf/trace/beauty/tracepoints/x86_msr.o
        LD       /tmp/build/perf/trace/beauty/tracepoints/perf-in.o
        LD       /tmp/build/perf/trace/beauty/perf-in.o
        LD       /tmp/build/perf/perf-in.o
        LINK     /tmp/build/perf/perf
      
      This addresses this perf tools build warning:
      
        diff -u tools/arch/x86/include/asm/msr-index.h arch/x86/include/asm/msr-index.h
        Warning: Kernel ABI header at 'tools/arch/x86/include/asm/msr-index.h' differs from latest version at 'arch/x86/include/asm/msr-index.h'
      
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Ian Rogers <irogers@google.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Paolo Bonzini <pbonzini@redhat.com>
      Cc: Tom Lendacky <thomas.lendacky@amd.com>
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      fde66824
    • Arnaldo Carvalho de Melo's avatar
      tools headers cpufeatures: Sync with the kernel sources · 7f3905f0
      Arnaldo Carvalho de Melo authored
      To pick the changes in:
      
        69372cf0 ("x86/cpu: Add VM page flush MSR availablility as a CPUID feature")
        e1b35da5 ("x86: Enumerate AVX512 FP16 CPUID feature flag")
      
      That causes only these 'perf bench' objects to rebuild:
      
        CC       /tmp/build/perf/bench/mem-memcpy-x86-64-asm.o
        CC       /tmp/build/perf/bench/mem-memset-x86-64-asm.o
      
      And addresses these perf build warnings:
      
        Warning: Kernel ABI header at 'tools/arch/x86/include/asm/cpufeatures.h' differs from latest version at 'arch/x86/include/asm/cpufeatures.h'
        diff -u tools/arch/x86/include/asm/cpufeatures.h arch/x86/include/asm/cpufeatures.h
      
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Ian Rogers <irogers@google.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Kyung Min Park <kyung.min.park@intel.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Paolo Bonzini <pbonzini@redhat.com>
      Cc: Tom Lendacky <thomas.lendacky@amd.com>
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      7f3905f0
    • Arnaldo Carvalho de Melo's avatar
      tools headers UAPI: Update epoll_pwait2 affected files · 6e519214
      Arnaldo Carvalho de Melo authored
      To pick the changes from:
      
        b0a0c261 ("epoll: wire up syscall epoll_pwait2")
      
      That addresses these perf build warning:
      
        Warning: Kernel ABI header at 'tools/include/uapi/asm-generic/unistd.h' differs from latest version at 'include/uapi/asm-generic/unistd.h'
        diff -u tools/include/uapi/asm-generic/unistd.h include/uapi/asm-generic/unistd.h
        Warning: Kernel ABI header at 'tools/perf/arch/x86/entry/syscalls/syscall_64.tbl' differs from latest version at 'arch/x86/entry/syscalls/syscall_64.tbl'
        diff -u tools/perf/arch/x86/entry/syscalls/syscall_64.tbl arch/x86/entry/syscalls/syscall_64.tbl
      
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Ian Rogers <irogers@google.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Willem de Bruijn <willemb@google.com>
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      6e519214
  2. 23 Dec, 2020 3 commits
    • Linus Torvalds's avatar
      Merge tag 'sound-fix-5.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound · 58cf05f5
      Linus Torvalds authored
      Pull sound fixes from Takashi Iwai:
       "A collection of small fixes that came up recently for 5.11.
      
        The majority of fixes are usual HD-audio and USB-audio quirks, with a
        few PCM core fixes for addressing the information leak and yet more
        UBSAN fixes in the core side"
      
      * tag 'sound-fix-5.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound:
        ALSA/hda: apply jack fixup for the Acer Veriton N4640G/N6640G/N2510G
        ALSA: hda/realtek: Apply jack fixup for Quanta NL3
        ALSA: usb-audio: Add implicit feeback support for the BOSS GT-1
        ALSA: usb-audio: Add alias entry for ASUS PRIME TRX40 PRO-S
        ALSA: core: Remove redundant comments
        ALSA: hda/realtek: Add quirk for MSI-GP73
        ALSA: pcm: oss: Fix a few more UBSAN fixes
        ALSA: pcm: Clear the full allocated memory at hw_params
        ALSA: memalloc: Align buffer allocations in page size
        ALSA: usb-audio: Disable sample read check if firmware doesn't give back
        ALSA: pcm: Remove snd_pcm_lib_preallocate_dma_free()
        ALSA: usb-audio: Add VID to support native DSD reproduction on FiiO devices
        ALSA: core: memalloc: add page alignment for iram
        ALSA: hda/realtek - Supported Dell fixed type headset
        ALSA: hda/realtek: Remove dummy lineout on Acer TravelMate P648/P658
      58cf05f5
    • Linus Torvalds's avatar
      Merge tag 'tag-chrome-platform-for-v5.11' of... · a0881596
      Linus Torvalds authored
      Merge tag 'tag-chrome-platform-for-v5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/chrome-platform/linux
      
      Pull chrome platform updates from Benson Leung:
       "cros_ec_typec:
      
         - A series from Prashant for Type-C to implement TYPEC_STATUS,
           parsing USB PD Partner ID VDOs, and registering partner altmodes.
      
        cros_ec misc:
      
         - Don't treat RTC events as wakeup sources in cros_ec_proto"
      
      * tag 'tag-chrome-platform-for-v5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/chrome-platform/linux:
        platform/chrome: cros_ec_typec: Tolerate unrecognized mux flags
        platform/chrome: cros_ec_typec: Register partner altmodes
        platform/chrome: cros_ec_typec: Parse partner PD ID VDOs
        platform/chrome: cros_ec_typec: Introduce TYPEC_STATUS
        platform/chrome: cros_ec: Import Type C host commands
        platform/chrome: cros_ec_typec: Clear partner identity on device removal
        platform/chrome: cros_ec_typec: Fix remove partner logic
        platform/chrome: cros_ec_typec: Relocate set_port_params_v*() functions
        platform/chrome: Don't treat RTC events as wakeup sources
      a0881596
    • Linus Torvalds's avatar
      Merge tag 'linux-watchdog-5.11-rc1' of git://www.linux-watchdog.org/linux-watchdog · 6755f456
      Linus Torvalds authored
      Pull watchdog updates from Wim Van Sebroeck:
      
       - Removal of the pnx83xx driver
      
       - Add a binding for A100's watchdog controller
      
       - Add Rockchip compatibles to snps,dw-wdt.yaml
      
       - hpwdt: Disable NMI in Crash Kernel
      
       - Fix potential dereferencing of null pointer in watchdog_core
      
       - Several other small fixes and improvements
      
      * tag 'linux-watchdog-5.11-rc1' of git://www.linux-watchdog.org/linux-watchdog: (23 commits)
        watchdog: convert comma to semicolon
        watchdog: iTCO_wdt: use dev_*() instead of pr_*() for logging
        dt-binding: watchdog: add Rockchip compatibles to snps,dw-wdt.yaml
        watchdog: coh901327: add COMMON_CLK dependency
        dt-bindings: watchdog: sun4i: Add A100 compatible
        watchdog: qcom: Avoid context switch in restart handler
        watchdog: iTCO_wdt: use module_platform_device() macro
        watchdog: Fix potential dereferencing of null pointer
        watchdog: wdat_wdt: Fix missing kerneldoc reported by W=1
        watchdog/hpwdt: Reflect changes
        watchdog/hpwdt: Disable NMI in Crash Kernel
        wdt: sp805: add watchdog_stop on reboot
        watchdog: sbc_fitpc2_wdt: add __user annotations
        watchdog: geodewdt: remove unneeded break
        watchdog: rti-wdt: fix reference leak in rti_wdt_probe
        watchdog: qcom_wdt: set WDOG_HW_RUNNING bit when appropriate
        watchdog: remove pnx83xx driver
        watchdog: stm32_iwdg: don't print an error on probe deferral
        watchdog: sprd: change to use usleep_range() instead of busy loop
        watchdog: sprd: check busy bit before new loading rather than after that
        ...
      6755f456
  3. 22 Dec, 2020 27 commits