[PATCH 04/24] KVM: x86/mmu: Disable MMIO caching if MMIO value collides with L1TF

2021-02-25 Thread Sean Christopherson
Disable MMIO caching if the MMIO value collides with the L1TF mitigation that usurps high PFN bits. In practice this should never happen as only CPUs with SME support can generate such a collision (because the MMIO value can theoretically get adjusted into legal memory), and no CPUs exist that

[PATCH 03/24] KVM: x86/mmu: Bail from fast_page_fault() if SPTE is not shadow-present

2021-02-25 Thread Sean Christopherson
Bail from fast_page_fault() if the SPTE is not a shadow-present SPTE. Functionally, this is not strictly necessary as the !is_access_allowed() check will eventually reject the fast path, but an early check on shadow-present skips unnecessary checks and will allow a future patch to tweak the A/D

[PATCH 02/24] KVM: x86/mmu: Check for shadow-present SPTE before querying A/D status

2021-02-25 Thread Sean Christopherson
When updating accessed and dirty bits, check that the new SPTE is present before attempting to query its A/D bits. Failure to confirm the SPTE is present can theoretically cause a false negative, e.g. if a MMIO SPTE replaces a "real" SPTE and somehow the PFNs magically match. Realistically, this

[PATCH v2 3/5] ibmvfc: treat H_CLOSED as success during sub-CRQ registration

2021-02-25 Thread Tyrel Datwyler
A non-zero return code for H_REG_SUB_CRQ is currently treated as a failure resulting in failing sub-CRQ setup. The case of H_CLOSED should not be treated as a failure. This return code translates to a successful sub-CRQ registration by the hypervisor, and is meant to communicate back that there is

[PATCH v2 1/5] ibmvfc: simplify handling of sub-CRQ initialization

2021-02-25 Thread Tyrel Datwyler
If ibmvfc_init_sub_crqs() fails ibmvfc_probe() simply parrots registration failure reported elsewhere, and futher vhost->scsi_scrq.scrq == NULL is indication enough to the driver that it has no sub-CRQs available. The mq_enabled check can also be moved into ibmvfc_init_sub_crqs() such that each

[PATCH v2 5/5] ibmvfc: reinitialize sub-CRQs and perform channel enquiry after LPM

2021-02-25 Thread Tyrel Datwyler
A live partition migration (LPM) results in a CRQ disconnect similar to a hard reset. In this LPM case the hypervisor moslty perserves the CRQ transport such that it simply needs to be reenabled. However, the capabilities may have changed such as fewer channels, or no channels at all. Further, its

[PATCH 01/24] KVM: x86/mmu: Set SPTE_AD_WRPROT_ONLY_MASK if and only if PML is enabled

2021-02-25 Thread Sean Christopherson
Check that PML is actually enabled before setting the mask to force a SPTE to be write-protected. The bits used for the !AD_ENABLED case are in the upper half of the SPTE. With 64-bit paging and EPT, these bits are ignored, but with 32-bit PAE paging they are reserved. Setting them for L2 SPTEs

[PATCH 00/24] KVM: x86/mmu: Introduce MMU_PRESENT and fix bugs

2021-02-25 Thread Sean Christopherson
This series adds the simple idea of tagging shadow-present SPTEs with a single bit, instead of looking for non-zero SPTEs that aren't MMIO and aren't REMOVED. Doing so reduces KVM's code footprint by 2k bytes on x86-64, and presumably adds a tiny performance boost in related paths. But, actually

Re: [PATCH v6 2/3] reset: mchp: sparx5: add switch reset driver

2021-02-25 Thread Alexandre Belloni
Hello, On 25/02/2021 10:50:04+0100, Steen Hegelund wrote: > The Sparx5 Switch SoC has a number of components that can be reset > indiviually, but at least the Switch Core needs to be in a well defined > state at power on, when any of the Sparx5 drivers starts to access the > Switch Core, this

Re: [RFC] KVM: x86: Support KVM VMs sharing SEV context

2021-02-25 Thread Paolo Bonzini
On 25/02/21 18:53, James Bottomley wrote: https://lore.kernel.org/qemu-devel/8b824c44-6a51-c3a7-6596-921dc47fe...@linux.ibm.com/ It sounds like this mechanism can be used to boot a vCPU through a mirror VM after the fact, which is very compatible with the above whose mechanism is simply to

Re: d28296d248: stress-ng.sigsegv.ops_per_sec -82.7% regression

2021-02-25 Thread Alexey Gladkov
On Wed, Feb 24, 2021 at 12:50:21PM -0600, Eric W. Biederman wrote: > Alexey Gladkov writes: > > > On Wed, Feb 24, 2021 at 10:54:17AM -0600, Eric W. Biederman wrote: > >> kernel test robot writes: > >> > >> > Greeting, > >> > > >> > FYI, we noticed a -82.7% regression of

Re: [PATCH] perf buildid-cache: Add test for PE executable

2021-02-25 Thread Jiri Olsa
On Wed, Feb 24, 2021 at 02:59:16PM -0500, Nicholas Fraser wrote: > From 9fd0b3889f00ad13662879767d833309d8a035b6 Mon Sep 17 00:00:00 2001 > From: Nicholas Fraser > Date: Thu, 18 Feb 2021 13:24:03 -0500 > Subject: [PATCH] perf buildid-cache: Add test for PE executable > > This builds on the

Re: [PATCH] kbuild: remove .thinlto-cache by 'make clean'

2021-02-25 Thread Kees Cook
On Fri, 26 Feb 2021 04:39:12 +0900, Masahiro Yamada wrote: > 'make clean' should remove build artifacts unneeded by external module > builds. Obviously, you do not need to keep this directory. Applied to kspp/clang-lto, thanks! [1/1] kbuild: Move .thinlto-cache removal to 'make clean'

Re: [RFC] KVM: x86: Support KVM VMs sharing SEV context

2021-02-25 Thread Paolo Bonzini
On 25/02/21 19:18, Ashish Kalra wrote: I do believe that some of these alternative SEV live migration support or Migration helper (MH) solutions will still use SEV PSP migration for migrating the MH itself, therefore the SEV live migration patches (currently v10 posted upstream) still make sense

Re: [PATCH] x86: mark some mpspec inline functions as __init

2021-02-25 Thread Nick Desaulniers
On Thu, Feb 25, 2021 at 5:20 AM Arnd Bergmann wrote: > > On Thu, Feb 25, 2021 at 1:42 PM Borislav Petkov wrote: > > > > On Thu, Feb 25, 2021 at 01:18:21PM +0100, Arnd Bergmann wrote: > > > Either way works correctly, I don't care much, but picked the __init > > > annotation as it seemed more

Re: [PATCH v5 6/9] ALSA: virtio: PCM substream operators

2021-02-25 Thread Takashi Iwai
On Thu, 25 Feb 2021 20:02:50 +0100, Michael S. Tsirkin wrote: > > On Thu, Feb 25, 2021 at 01:51:16PM +0100, Takashi Iwai wrote: > > On Thu, 25 Feb 2021 13:14:37 +0100, > > Anton Yakovlev wrote: > > > > > > On 25.02.2021 11:55, Takashi Iwai wrote: > > > > On Mon, 22 Feb 2021 16:34:41 +0100, > > >

Re: [GIT PULL] pwm: Changes for v5.12-rc1

2021-02-25 Thread pr-tracker-bot
The pull request you sent on Thu, 25 Feb 2021 20:34:26 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/thierry.reding/linux-pwm.git > tags/pwm/for-5.12-rc1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/2c87f7a38f930ef6f6a7bdd04aeb82ce3971b54b Thank you! --

Re: [GIT PULL] virtio: features, fixes

2021-02-25 Thread pr-tracker-bot
The pull request you sent on Thu, 25 Feb 2021 14:33:33 -0500: > https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git tags/for_linus has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/ffc1759676bed0bff046427dd7d00cb68660190d Thank you! -- Deet-doot-dot, I am a

Re: [GIT PULL] pwm: Changes for v5.12-rc1

2021-02-25 Thread Linus Torvalds
On Thu, Feb 25, 2021 at 11:34 AM Thierry Reding wrote: > > As I was generating the pull request I noticed that I forgot to fast- > forward this to v5.11-rc1 after the last merge window. Honestly, there is very little reason to ever do the fast-forward if the new development doesn't depend on new

Re: [PATCH V3 XRT Alveo 02/18] fpga: xrt: driver metadata helper functions

2021-02-25 Thread Lizhi Hou
Hi Fernando, On 02/22/2021 05:23 PM, Fernando Pacheco wrote: On Wed, Feb 17, 2021 at 10:40:03PM -0800, Lizhi Hou wrote: XRT drivers use device tree as metadata format to discover HW subsystems behind PCIe BAR. Thus libfdt functions are called for driver to parse device tree blob.

Re: general protection fault in vmx_vcpu_run (2)

2021-02-25 Thread Sean Christopherson
On Thu, Feb 25, 2021, Dmitry Vyukov wrote: > On Wed, Feb 24, 2021 at 7:08 PM 'Sean Christopherson' via > syzkaller-bugs wrote: > > > > On Wed, Feb 24, 2021, Borislav Petkov wrote: > > > Hi Dmitry, > > > > > > On Wed, Feb 24, 2021 at 06:12:57PM +0100, Dmitry Vyukov wrote: > > > > Looking at the

[PATCH next v3 13/15] printk: remove logbuf_lock

2021-02-25 Thread John Ogness
Since the ringbuffer is lockless, there is no need for it to be protected by @logbuf_lock. Remove @logbuf_lock. @console_seq, @exclusive_console_stop_seq, @console_dropped are protected by @console_lock. Signed-off-by: John Ogness --- kernel/printk/internal.h| 4 +-

[PATCH next v3 06/15] printk: consolidate kmsg_dump_get_buffer/syslog_print_all code

2021-02-25 Thread John Ogness
The logic for finding records to fit into a buffer is the same for kmsg_dump_get_buffer() and syslog_print_all(). Introduce a helper function find_first_fitting_seq() to handle this logic. Signed-off-by: John Ogness Reviewed-by: Petr Mladek --- kernel/printk/printk.c | 87

[PATCH next v3 10/15] printk: add syslog_lock

2021-02-25 Thread John Ogness
The global variables @syslog_seq, @syslog_partial, @syslog_time and write access to @clear_seq are protected by @logbuf_lock. Once @logbuf_lock is removed, these variables will need their own synchronization method. Introduce @syslog_lock for this purpose. @syslog_lock is a raw_spin_lock for now.

[PATCH next v3 07/15] printk: introduce CONSOLE_LOG_MAX for improved multi-line support

2021-02-25 Thread John Ogness
Instead of using "LOG_LINE_MAX + PREFIX_MAX" for temporary buffer sizes, introduce CONSOLE_LOG_MAX. This represents the maximum size that is allowed to be printed to the console for a single record. Rather than setting CONSOLE_LOG_MAX to "LOG_LINE_MAX + PREFIX_MAX" (1024), increase it to 4096.

[PATCH next v3 12/15] printk: introduce a kmsg_dump iterator

2021-02-25 Thread John Ogness
Rather than storing the iterator information in the registered kmsg_dumper structure, create a separate iterator structure. The kmsg_dump_iter structure can reside on the stack of the caller, thus allowing lockless use of the kmsg_dump functions. This change also means that the kmsg_dumper dump()

[PATCH next v3 08/15] printk: use seqcount_latch for clear_seq

2021-02-25 Thread John Ogness
kmsg_dump_rewind_nolock() locklessly reads @clear_seq. However, this is not done atomically. Since @clear_seq is 64-bit, this cannot be an atomic operation for all platforms. Therefore, use a seqcount_latch to allow readers to always read a consistent value. Signed-off-by: John Ogness

[PATCH next v3 14/15] printk: kmsg_dump: remove _nolock() variants

2021-02-25 Thread John Ogness
kmsg_dump_rewind() and kmsg_dump_get_line() are lockless, so there is no need for _nolock() variants. Remove these functions and switch all callers of the _nolock() variants. The functions without _nolock() were chosen because they are already exported to kernel modules. Signed-off-by: John

[PATCH next v3 11/15] printk: kmsg_dumper: remove @active field

2021-02-25 Thread John Ogness
All 6 kmsg_dumpers do not benefit from the @active flag: (provide their own synchronization) - arch/powerpc/kernel/nvram_64.c - arch/um/kernel/kmsg_dump.c - drivers/mtd/mtdoops.c - fs/pstore/platform.c (only dump on KMSG_DUMP_PANIC, which does not require synchronization) -

[PATCH next v3 15/15] printk: console: remove unnecessary safe buffer usage

2021-02-25 Thread John Ogness
Upon registering a console, safe buffers are activated when setting up the sequence number to replay the log. However, these are already protected by @console_sem and @syslog_lock. Remove the unnecessary safe buffer usage. Signed-off-by: John Ogness Reviewed-by: Petr Mladek ---

[PATCH next v3 05/15] printk: refactor kmsg_dump_get_buffer()

2021-02-25 Thread John Ogness
kmsg_dump_get_buffer() requires nearly the same logic as syslog_print_all(), but uses different variable names and does not make use of the ringbuffer loop macros. Modify kmsg_dump_get_buffer() so that the implementation is as similar to syslog_print_all() as possible. A follow-up commit will

[PATCH next v3 09/15] printk: use atomic64_t for devkmsg_user.seq

2021-02-25 Thread John Ogness
@user->seq is indirectly protected by @logbuf_lock. Once @logbuf_lock is removed, @user->seq will be no longer safe from an atomicity point of view. In preparation for the removal of @logbuf_lock, change it to atomic64_t to provide this safety. Signed-off-by: John Ogness Reviewed-by: Petr

[PATCH next v3 03/15] printk: limit second loop of syslog_print_all

2021-02-25 Thread John Ogness
The second loop of syslog_print_all() subtracts lengths that were added in the first loop. With commit b031a684bfd0 ("printk: remove logbuf_lock writer-protection of ringbuffer") it is possible that records are (over)written during syslog_print_all(). This allows the possibility of the second loop

[PATCH next v3 00/15] printk: remove logbuf_lock

2021-02-25 Thread John Ogness
the kmsg_dump semantics in general. This series is based on next-20210225. Changes since v2: - use get_maintainer.pl to get the full list of developers that should at least see the changes in their respective areas - do not disable interrupts in arch/um kmsg_dumper (because there is no need

[PATCH next v3 02/15] mtd: mtdoops: synchronize kmsg_dumper

2021-02-25 Thread John Ogness
The kmsg_dumper can be called from any context and CPU, possibly from multiple CPUs simultaneously. Since the writing of the buffer can occur from a later scheduled work queue, the oops buffer must be protected against simultaneous dumping. Use an atomic bit to mark when the buffer is protected.

[PATCH next v3 04/15] printk: kmsg_dump: remove unused fields

2021-02-25 Thread John Ogness
struct kmsg_dumper still contains some fields that were used to iterate the old ringbuffer. They are no longer used. Remove them and update the struct documentation. Signed-off-by: John Ogness Reviewed-by: Petr Mladek --- include/linux/kmsg_dump.h | 5 +++-- 1 file changed, 3 insertions(+), 2

[PATCH next v3 01/15] um: synchronize kmsg_dumper

2021-02-25 Thread John Ogness
The kmsg_dumper can be called from any context and CPU, possibly from multiple CPUs simultaneously. Since a static buffer is used to retrieve the kernel logs, this buffer must be protected against simultaneous dumping. Skip dumping if another context is already dumping. Signed-off-by: John Ogness

[PATCH 2/2] clk: qcom: Add MSM8976/56 Global Clock Controller (GCC) driver

2021-02-25 Thread Konrad Dybcio
From: AngeloGioacchino Del Regno Add support for the global clock controller found on MSM8956 and MSM8976 SoCs. Since the multimedia clocks are actually in the GCC on these SoCs, this will allow drivers to probe and control basically all the required clocks. Signed-off-by: AngeloGioacchino Del

[PATCH 1/2] dt-bindings: clock: qcom,gcc: Document MSM8976 compatibles

2021-02-25 Thread Konrad Dybcio
Document the newly added compatibles for 8976 GCC. Signed-off-by: Konrad Dybcio --- Documentation/devicetree/bindings/clock/qcom,gcc.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/qcom,gcc.yaml

Re: [PATCH v10 10/16] KVM: x86: Introduce KVM_GET_SHARED_PAGES_LIST ioctl

2021-02-25 Thread Ashish Kalra
On Wed, Feb 24, 2021 at 10:22:33AM -0800, Sean Christopherson wrote: > On Wed, Feb 24, 2021, Ashish Kalra wrote: > > # Samples: 19K of event 'kvm:kvm_hypercall' > > # Event count (approx.): 19573 > > # > > # Overhead Command Shared Object Symbol > > # ...

Re: tasks-trace RCU: question about grace period forward progress

2021-02-25 Thread Mathieu Desnoyers
- On Feb 25, 2021, at 1:33 PM, paulmck paul...@kernel.org wrote: [...] > commit 581f79546b6be406a9c7280b2d3511b60821efe0 > Author: Paul E. McKenney > Date: Thu Feb 25 10:26:00 2021 -0800 > >rcu-tasks: Add block comment laying out RCU Tasks Trace design > >This commit adds a

Re: [PATCH] linux/compiler-clang.h: define HAVE_BUILTIN_BSWAP*

2021-02-25 Thread Nathan Chancellor
On Thu, Feb 25, 2021 at 12:14:17PM -0800, Kees Cook wrote: > On Thu, Feb 25, 2021 at 12:06:37PM -0800, Andrew Morton wrote: > > On Thu, 25 Feb 2021 12:03:48 -0800 Kees Cook wrote: > > > > > On Thu, Feb 25, 2021 at 05:45:09PM +0100, Arnd Bergmann wrote: > > > > From: Arnd Bergmann > > > > > > >

Re: [PATCH] [RFT] m68k: enable HAVE_LD_DEAD_CODE_DATA_ELIMINATION

2021-02-25 Thread Kees Cook
On Thu, Feb 25, 2021 at 12:14:45PM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > While experimenting with CONFIG_TRIM_UNUSED_KSYMS across architectures, > I noticed that this unsurprisingly works best when combined with the > --gc-sections linker flag, which is not currently allowed on

Re: [PATCH] [RFC] arm64: enable HAVE_LD_DEAD_CODE_DATA_ELIMINATION

2021-02-25 Thread Kees Cook
On Thu, Feb 25, 2021 at 12:20:56PM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > When looking at kernel size optimizations, I found that arm64 > does not currently support HAVE_LD_DEAD_CODE_DATA_ELIMINATION, > which enables the --gc-sections flag to the linker. > > I see that for a

Re: [perf] perf_fuzzer causes crash in intel_pmu_drain_pebs_nhm()

2021-02-25 Thread Liang, Kan
On 2/11/2021 5:14 PM, Vince Weaver wrote: On Thu, 11 Feb 2021, Liang, Kan wrote: On Thu, Jan 28, 2021 at 02:49:47PM -0500, Vince Weaver wrote: I'd like to reproduce it on my machine. Is this issue only found in a Haswell client machine? To reproduce the issue, can I use ./perf_fuzzer

Re: [GIT PULL] Networking for 5.12-rc1

2021-02-25 Thread pr-tracker-bot
The pull request you sent on Thu, 25 Feb 2021 10:48:26 -0800: > git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git tags/net-5.12-rc1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/5ad3dbab569ac39e88fae31690401895c37368b6 Thank you! -- Deet-doot-dot, I am

Re: [PATCH] linux/compiler-clang.h: define HAVE_BUILTIN_BSWAP*

2021-02-25 Thread Kees Cook
On Thu, Feb 25, 2021 at 12:06:37PM -0800, Andrew Morton wrote: > On Thu, 25 Feb 2021 12:03:48 -0800 Kees Cook wrote: > > > On Thu, Feb 25, 2021 at 05:45:09PM +0100, Arnd Bergmann wrote: > > > From: Arnd Bergmann > > > > > > Separating compiler-clang.h from compiler-gcc.h inadventently dropped

Re: [GIT PULL] Additional ACPI updates for v5.12-rc1

2021-02-25 Thread pr-tracker-bot
The pull request you sent on Thu, 25 Feb 2021 19:39:20 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git > acpi-5.12-rc1-3 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/268f77b5250998b871fa54a2a9703871fb44544e Thank you! -- Deet-doot-dot,

Re: [git pull] drm fixes + msm-next for 5.12-rc1

2021-02-25 Thread pr-tracker-bot
The pull request you sent on Fri, 26 Feb 2021 05:23:53 +1000: > git://anongit.freedesktop.org/drm/drm tags/drm-next-2021-02-26 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/fdce29602f865b016012eadeaec99800da916d3d Thank you! -- Deet-doot-dot, I am a bot.

Re: [PATCH] kbuild: lto: add _mcount to list of used symbols

2021-02-25 Thread Kees Cook
On Thu, Feb 25, 2021 at 03:34:49PM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > Some randconfig builds fail with undefined references to _mcount > when CONFIG_TRIM_UNUSED_KSYMS is set: > > ERROR: modpost: "_mcount" [drivers/tee/optee/optee.ko] undefined! > ERROR: modpost: "_mcount"

Re: [PATCH v2 2/4] arm64: dts: qcom: sc7180: Disable charger thermal for lazor

2021-02-25 Thread Matthias Kaehlcke
> Subject: [PATCH v2 2/4] arm64: dts: qcom: sc7180: Disable charger thermal for > lazor Should be 'Disable charger thermal *zone* for lazor' Maybe Bjorn can fix this when applying if no respin is needed. On Thu, Feb 25, 2021 at 10:33:35AM -0800, Matthias Kaehlcke wrote: > Lazor is stuffed with

Re: [PATCH -next] docs: proc.rst: fix indentation warning

2021-02-25 Thread Jonathan Corbet
Randy Dunlap writes: > Fix indentation snafu in proc.rst as reported by Stephen. > > next-20210219/Documentation/filesystems/proc.rst:697: WARNING: Unexpected > indentation. > > Fixes: 93ea4a0b8fce ("Documentation: proc.rst: add more about the 6 fields in > loadavg") > Reported-by: Stephen

Re: [PATCH v2 2/4] arm64: dts: qcom: sc7180: Disable charger thermal for lazor

2021-02-25 Thread Stephen Boyd
Quoting Matthias Kaehlcke (2021-02-25 10:33:35) > Lazor is stuffed with a 47k NTC as thermistor for the charger > temperature which currently isn't supported by the PM6150 ADC > driver. Disable the charger thermal zone to avoid the use of > bogus temperature values. > > Signed-off-by: Matthias

Re: [PATCH] Documentation: cgroup-v2: fix path to example BPF program

2021-02-25 Thread Jonathan Corbet
Antonio Terceiro writes: > This file has been moved into the "progs" subdirectory in > bd4aed0ee73ca873bef3cb3ec746dd796f03df28, together with all test BPF > programs. > > Signed-off-by: Antonio Terceiro > Cc: Tejun Heo > Cc: Zefan Li > Cc: Johannes Weiner > Cc: Jonathan Corbet > Cc: Jiong

Re: [PATCH] coresight: etm4x: work around clang-12+ build failure

2021-02-25 Thread Arnd Bergmann
On Thu, Feb 25, 2021 at 5:45 PM Mathieu Poirier wrote: > On Thu, Feb 25, 2021 at 10:42:58AM +0100, Arnd Bergmann wrote: > > index 15016f757828..4cccf874a602 100644 > > --- a/drivers/hwtracing/coresight/coresight-etm4x-core.c > > +++ b/drivers/hwtracing/coresight/coresight-etm4x-core.c > > @@

[PATCH v2] iio: proximity: vcnl3020: add proximity rate

2021-02-25 Thread Ivan Mikhaylov
Add the proximity rate optional option and handling of it for vishay vcnl3020. Signed-off-by: Ivan Mikhaylov --- drivers/iio/proximity/vcnl3020.c | 97 +++- 1 file changed, 96 insertions(+), 1 deletion(-) diff --git a/drivers/iio/proximity/vcnl3020.c

[PATCH v2 0/1] add proximity rate option for vcnl3020

2021-02-25 Thread Ivan Mikhaylov
Add the runtime control of proximity rate for vcnl3020 proximity sensor. Changes from v1: 1. add .read_avail method 2. remove dts and parse of it Ivan Mikhaylov (1): iio: proximity: vcnl3020: add proximity rate drivers/iio/proximity/vcnl3020.c | 97 +++- 1

Re: [PATCH 4/4] kbuild: re-implement CONFIG_TRIM_UNUSED_KSYMS to make it work in one-pass

2021-02-25 Thread Masahiro Yamada
On Fri, Feb 26, 2021 at 3:47 AM kernel test robot wrote: > > Hi Masahiro, > > I love your patch! Perhaps something to improve: > > [auto build test WARNING on linus/master] > [also build test WARNING on next-20210225] > [cannot apply to kbuild/for-next asm-generic/ma

Re: [PATCH] linux/compiler-clang.h: define HAVE_BUILTIN_BSWAP*

2021-02-25 Thread Andrew Morton
On Thu, 25 Feb 2021 12:03:48 -0800 Kees Cook wrote: > On Thu, Feb 25, 2021 at 05:45:09PM +0100, Arnd Bergmann wrote: > > From: Arnd Bergmann > > > > Separating compiler-clang.h from compiler-gcc.h inadventently dropped the > > definitions of the three HAVE_BUILTIN_BSWAP macros, which requires

Re: [PATCH] linux/compiler-clang.h: define HAVE_BUILTIN_BSWAP*

2021-02-25 Thread Kees Cook
On Thu, Feb 25, 2021 at 05:45:09PM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > Separating compiler-clang.h from compiler-gcc.h inadventently dropped the > definitions of the three HAVE_BUILTIN_BSWAP macros, which requires falling > back to the open-coded version and hoping that the

Re: [PATCH v3 1/2] mm: Make alloc_contig_range handle free hugetlb pages

2021-02-25 Thread Mike Kravetz
On 2/22/21 5:51 AM, Oscar Salvador wrote: > alloc_contig_range will fail if it ever sees a HugeTLB page within the > range we are trying to allocate, even when that page is free and can be > easily reallocated. > This has proved to be problematic for some users of alloc_contic_range, > e.g: CMA

Re: [PATCH v2 1/1] s390/vfio-ap: fix circular lockdep when setting/clearing crypto masks

2021-02-25 Thread Tony Krowiak
On 2/25/21 10:35 AM, Halil Pasic wrote: On Thu, 25 Feb 2021 10:25:24 -0500 Tony Krowiak wrote: On 2/25/21 8:53 AM, Tony Krowiak wrote: On 2/25/21 6:28 AM, Halil Pasic wrote: On Wed, 24 Feb 2021 22:28:50 -0500 Tony Krowiak wrote: static void vfio_ap_mdev_unset_kvm(struct

Re: [PATCH] kbuild: remove .thinlto-cache by 'make clean'

2021-02-25 Thread Kees Cook
On Fri, Feb 26, 2021 at 04:39:12AM +0900, Masahiro Yamada wrote: > 'make clean' should remove build artifacts unneeded by external module > builds. Obviously, you do not need to keep this directory. As in, it should exist in the "clean" target, rather than "distclean"? > > Fixes: dc5723b02e52

Re: [PATCH] kbuild: lto: add _mcount to list of used symbols

2021-02-25 Thread Masahiro Yamada
On Thu, Feb 25, 2021 at 11:35 PM Arnd Bergmann wrote: > > From: Arnd Bergmann > > Some randconfig builds fail with undefined references to _mcount > when CONFIG_TRIM_UNUSED_KSYMS is set: > > ERROR: modpost: "_mcount" [drivers/tee/optee/optee.ko] undefined! > ERROR: modpost: "_mcount"

Re: [PATCH v3] usb: typec: tcpm: Wait for vbus discharge to VSAFE0V before toggling

2021-02-25 Thread Guenter Roeck
On Thu, Feb 25, 2021 at 02:11:04AM -0800, Badhri Jagan Sridharan wrote: > When vbus auto discharge is enabled, TCPM can sometimes be faster than > the TCPC i.e. TCPM can go ahead and move the port to unattached state > (involves disabling vbus auto discharge) before TCPC could effectively >

Re: [RFC PATCH 10/10] vfio/type1: Register device notifier

2021-02-25 Thread Peter Xu
On Thu, Feb 25, 2021 at 03:17:14PM -0400, Jason Gunthorpe wrote: > It is a use-after-free. Once the PFN is programmed into the IOMMU it > becomes completely divorced from the VMA. Remember there is no > pin_user_page here, so the PFN has no reference count. > > If the owner of the VMA decided to

Re: [PATCH 5.10 00/23] 5.10.19-rc1 review

2021-02-25 Thread Pavel Machek
Hi! > This is the start of the stable review cycle for the 5.10.19 release. > There are 23 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. CIP testing did not find any problems here: (2 failures are

Re: [PATCH 5.10 00/23] 5.10.19-rc1 review

2021-02-25 Thread Guenter Roeck
On Thu, Feb 25, 2021 at 10:53:31AM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 5.10.19 release. > There are 23 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

Re: [PATCH 5.11 00/12] 5.11.2-rc1 review

2021-02-25 Thread Guenter Roeck
On Thu, Feb 25, 2021 at 10:53:34AM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 5.11.2 release. > There are 12 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

Re: [PATCH v2 1/4] arm64: dts: qcom: sc7180: trogdor: Add label to charger thermal zone

2021-02-25 Thread Stephen Boyd
Quoting Matthias Kaehlcke (2021-02-25 10:33:34) > Some revisions of trogdor boards use a thermistor for the charger > temperature which currently isn't supported by the PM6150 ADC > driver. This results in bogus temperature readings. Add a label > to the charger thermal zone to facilitate

Re: [PATCH 5.4 00/17] 5.4.101-rc1 review

2021-02-25 Thread Guenter Roeck
On Thu, Feb 25, 2021 at 10:53:45AM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 5.4.101 release. > There are 17 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

[PATCH 3/4] dt-bindings: clock: Add BCM63268 timer binding

2021-02-25 Thread Álvaro Fernández Rojas
Document the Broadcom BCM63268 Clock and Reset controller. Signed-off-by: Álvaro Fernández Rojas --- .../clock/brcm,bcm63268-timer-clocks.yaml | 40 +++ 1 file changed, 40 insertions(+) create mode 100644

[PATCH 1/4] mips: bmips: add BCM63268 timer clock definitions

2021-02-25 Thread Álvaro Fernández Rojas
Add missing timer clock definitions for BCM63268. Signed-off-by: Álvaro Fernández Rojas --- include/dt-bindings/clock/bcm63268-clock.h | 13 + 1 file changed, 13 insertions(+) diff --git a/include/dt-bindings/clock/bcm63268-clock.h b/include/dt-bindings/clock/bcm63268-clock.h

[PATCH 2/4] mips: bmips: add BCM63268 timer reset definitions

2021-02-25 Thread Álvaro Fernández Rojas
Add missing timer reset definitions for BCM63268. Signed-off-by: Álvaro Fernández Rojas --- include/dt-bindings/reset/bcm63268-reset.h | 4 1 file changed, 4 insertions(+) diff --git a/include/dt-bindings/reset/bcm63268-reset.h b/include/dt-bindings/reset/bcm63268-reset.h index

[PATCH 4/4] clk: bcm: Add BCM63268 timer clock and reset driver

2021-02-25 Thread Álvaro Fernández Rojas
Add driver for BCM63268 timer clock and reset controller. Signed-off-by: Álvaro Fernández Rojas --- drivers/clk/bcm/Kconfig | 9 ++ drivers/clk/bcm/Makefile | 1 + drivers/clk/bcm/clk-bcm63268-timer.c | 232 +++ 3 files changed, 242

[PATCH 0/4] clk: add BCM63268 timer clock and reset

2021-02-25 Thread Álvaro Fernández Rojas
Broadcom BCM63268 has a timer clock and reset controller which has the following layout: #define POR_RESET_STATUS(1 << 31) #define HW_RESET_STATUS (1 << 30) #define SW_RESET_STATUS (1 << 29) #define USB_REF_CLKEN (1 << 18) #define

Re: [PATCH 8/9] arm64: dts: qcom: sc7280: Add AOSS QMP node

2021-02-25 Thread Stephen Boyd
Quoting Sai Prakash Ranjan (2021-02-25 01:30:24) > Add a DT node for the AOSS QMP on SC7280 SoC. > > Signed-off-by: Sai Prakash Ranjan > --- > arch/arm64/boot/dts/qcom/sc7280.dtsi | 14 ++ > 1 file changed, 14 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi >

[PATCH v4 19/19] dts: bindings: Document device tree bindings for Arm TRBE

2021-02-25 Thread Suzuki K Poulose
Document the device tree bindings for Trace Buffer Extension (TRBE). Cc: Anshuman Khandual Cc: Mathieu Poirier Cc: Rob Herring Cc: devicet...@vger.kernel.org Reviewed-by: Rob Herring Signed-off-by: Suzuki K Poulose --- .../devicetree/bindings/arm/trbe.yaml | 49 +++

[PATCH v4 18/19] coresight: sink: Add TRBE driver

2021-02-25 Thread Suzuki K Poulose
From: Anshuman Khandual Trace Buffer Extension (TRBE) implements a trace buffer per CPU which is accessible via the system registers. The TRBE supports different addressing modes including CPU virtual address and buffer modes including the circular buffer mode. The TRBE buffer is addressed by a

[PATCH v4 15/19] dts: bindings: Document device tree bindings for ETE

2021-02-25 Thread Suzuki K Poulose
Document the device tree bindings for Embedded Trace Extensions. ETE can be connected to legacy coresight components and thus could optionally contain a connection graph as described by the CoreSight bindings. Cc: devicet...@vger.kernel.org Cc: Mathieu Poirier Cc: Mike Leach Cc: Rob Herring

[PATCH v4 16/19] coresight: etm-perf: Handle stale output handles

2021-02-25 Thread Suzuki K Poulose
The context associated with an ETM for a given perf event includes : - handle -> the perf output handle for the AUX buffer. - the path for the trace components - the buffer config for the sink. The path and the buffer config are part of the "aux_priv" data (etm_event_data) setup by the

[PATCH v4 17/19] coresight: core: Add support for dedicated percpu sinks

2021-02-25 Thread Suzuki K Poulose
From: Anshuman Khandual Add support for dedicated sinks that are bound to individual CPUs. (e.g, TRBE). To allow quicker access to the sink for a given CPU bound source, keep a percpu array of the sink devices. Also, add support for building a path to the CPU local sink from the ETM. This adds

Re: [PATCH 7/9] soc: qcom: aoss: Add AOSS QMP support for SC7280

2021-02-25 Thread Stephen Boyd
Quoting Sai Prakash Ranjan (2021-02-25 01:30:23) > Add AOSS QMP support for SC7280 SoC. > > Signed-off-by: Sai Prakash Ranjan > --- Reviewed-by: Stephen Boyd

[PATCH] kbuild: remove .thinlto-cache by 'make clean'

2021-02-25 Thread Masahiro Yamada
'make clean' should remove build artifacts unneeded by external module builds. Obviously, you do not need to keep this directory. Fixes: dc5723b02e52 ("kbuild: add support for Clang LTO") Signed-off-by: Masahiro Yamada --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

Re: [PATCH 6/9] dt-bindings: soc: qcom: aoss: Add SC7280 compatible

2021-02-25 Thread Stephen Boyd
Quoting Sai Prakash Ranjan (2021-02-25 01:30:22) > Add SC7280 AOSS QMP compatible to the list of possible bindings. > > Signed-off-by: Sai Prakash Ranjan > --- Reviewed-by: Stephen Boyd

[PATCH v4 07/19] arm64: Add TRBE definitions

2021-02-25 Thread Suzuki K Poulose
From: Anshuman Khandual This adds TRBE related registers and corresponding feature macros. Cc: Mathieu Poirier Cc: Mike Leach Cc: Suzuki K Poulose Reviewed-by: Suzuki K Poulose Reviewed-by: Mike Leach Acked-by: Catalin Marinas Signed-off-by: Anshuman Khandual Signed-off-by: Suzuki K

[PATCH v4 10/19] coresight: etm-perf: Allow an event to use different sinks

2021-02-25 Thread Suzuki K Poulose
When a sink is not specified by the user, the etm perf driver finds a suitable sink automatically, based on the first ETM where this event could be scheduled. Then we allocate the sink buffer based on the selected sink. This is fine for a CPU bound event as the "sink" is always guaranteed to be

[PATCH v4 05/19] kvm: arm64: Disable guest access to trace filter controls

2021-02-25 Thread Suzuki K Poulose
Disable guest access to the Trace Filter control registers. We do not advertise the Trace filter feature to the guest (ID_AA64DFR0_EL1: TRACE_FILT is cleared) already, but the guest can still access the TRFCR_EL1 unless we trap it. This will also make sure that the guest cannot fiddle with the

[PATCH v4 08/19] arm64: kvm: Enable access to TRBE support for host

2021-02-25 Thread Suzuki K Poulose
For a nvhe host, the EL2 must allow the EL1&0 translation regime for TraceBuffer (MDCR_EL2.E2TB == 0b11). This must be saved/restored over a trip to the guest. Also, before entering the guest, we must flush any trace data if the TRBE was enabled. And we must prohibit the generation of trace while

[PATCH v4 11/19] coresight: Do not scan for graph if none is present

2021-02-25 Thread Suzuki K Poulose
If a graph node is not found for a given node, of_get_next_endpoint() will emit the following error message : OF: graph: no port node found in / If the given component doesn't have any explicit connections (e.g, ETE) we could simply ignore the graph parsing. As for any legacy component where

[PATCH v4 14/19] coresight: ete: Add support for ETE tracing

2021-02-25 Thread Suzuki K Poulose
Add ETE as one of the supported device types we support with ETM4x driver. The devices are named following the existing convention as ete. ETE mandates that the trace resource status register is programmed before the tracing is turned on. For the moment simply write to it indicating TraceActive.

Re: [PATCH 5/9] arm64: dts: qcom: sc7280: Add IPCC for SC7280 SoC

2021-02-25 Thread Stephen Boyd
Quoting Sai Prakash Ranjan (2021-02-25 01:30:21) > Add the IPCC DT node which is used to send and receive IPC > signals with remoteprocs for SC7280 SoC. > > Cc: Manivannan Sadhasivam > Signed-off-by: Sai Prakash Ranjan > --- Reviewed-by: Stephen Boyd

[PATCH v4 13/19] coresight: ete: Add support for ETE sysreg access

2021-02-25 Thread Suzuki K Poulose
Add support for handling the system registers for Embedded Trace Extensions (ETE). ETE shares most of the registers with ETMv4 except for some and also adds some new registers. Re-arrange the ETMv4x list to share the common definitions and add the ETE sysreg support. Cc: Mike Leach Reviewed-by:

[PATCH v4 06/19] arm64: Add support for trace synchronization barrier

2021-02-25 Thread Suzuki K Poulose
tsb csync synchronizes the trace operation of instructions. The instruction is a nop when FEAT_TRF is not implemented. Cc: Mathieu Poirier Cc: Mike Leach Cc: Catalin Marinas Cc: Will Deacon Signed-off-by: Suzuki K Poulose --- New patch, split from the TRBE driver for ease of merging ---

[PATCH v4 09/19] coresight: etm4x: Move ETM to prohibited region for disable

2021-02-25 Thread Suzuki K Poulose
If the CPU implements Arm v8.4 Trace filter controls (FEAT_TRF), move the ETM to trace prohibited region using TRFCR, while disabling. Cc: Mathieu Poirier Cc: Mike Leach Cc: Anshuman Khandual Signed-off-by: Suzuki K Poulose --- New patch --- .../coresight/coresight-etm4x-core.c | 21

[PATCH v4 12/19] coresight: etm4x: Add support for PE OS lock

2021-02-25 Thread Suzuki K Poulose
ETE may not implement the OS lock and instead could rely on the PE OS Lock for the trace unit access. This is indicated by the TRCOLSR.OSM == 0b100. Add support for handling the PE OS lock Cc: Mike Leach Reviewed-by: mike.leach Reviewed-by: Mathieu Poirier Signed-off-by: Suzuki K Poulose ---

Re: [PATCH 4/9] dt-bindings: mailbox: qcom-ipcc: Add compatible for SC7280

2021-02-25 Thread Stephen Boyd
Quoting Sai Prakash Ranjan (2021-02-25 01:30:20) > Add IPCC compatible for SC7280 SoC. > > Cc: Manivannan Sadhasivam > Signed-off-by: Sai Prakash Ranjan > --- Reviewed-by: Stephen Boyd

Re: [PATCH] linux/compiler-clang.h: define HAVE_BUILTIN_BSWAP*

2021-02-25 Thread Nathan Chancellor
On Thu, Feb 25, 2021 at 05:45:09PM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > Separating compiler-clang.h from compiler-gcc.h inadventently dropped the > definitions of the three HAVE_BUILTIN_BSWAP macros, which requires falling > back to the open-coded version and hoping that the

Re: [PATCH 3/9] arm64: dts: qcom: sc7280: Add device tree node for LLCC

2021-02-25 Thread Stephen Boyd
Quoting Sai Prakash Ranjan (2021-02-25 01:30:19) > Add a DT node for Last level cache (aka. system cache) > controller which provides control over the last level > cache present on SC7280 SoC. > > Signed-off-by: Sai Prakash Ranjan > --- Reviewed-by: Stephen Boyd Should add

Re: perf test for daemon

2021-02-25 Thread Jiri Olsa
On Thu, Feb 25, 2021 at 08:13:07PM +0100, Jiri Olsa wrote: > On Thu, Feb 25, 2021 at 06:39:22PM +, John Garry wrote: > > > > Hi, > > > > I notice that "perf test" when run without root priviledges now hangs at the > > daemon test - is this expected behaviour? Can we skip and warn the user >

<    1   2   3   4   5   6   7   8   9   10   >