[RFC 3/8] mm/damon/core: expose nr_accesses_bp from damos_before_apply tracepoint

2023-09-09 Thread SeongJae Park
damos_before_apply tracepoint is exposing access rate of DAMON regions using nr_accesses, which was actually used by DAMOS in the past. However, it has changed to use nr_accesses_bp instead. Update the tracepoint to expose the value that DAMOS is really using. Note that it doesn't expose the

Re: [GIT PULL] bcachefs

2023-09-09 Thread Kent Overstreet
On Wed, Sep 06, 2023 at 01:20:59PM -0700, Linus Torvalds wrote: > On Wed, 6 Sept 2023 at 13:02, Linus Torvalds > wrote: > > > > And guess what happens when you have (unsigned char)-1? It does *not* > > cast back to -1. > > Side note: again, this may be one of those "it works in practice", >

Re: [PATCH] Fix typo in tpmrm class definition

2023-09-09 Thread Ivan Orlov
On 08.09.2023 18:06, Justin M. Forbes wrote: Commit d2e8071bed0be ("tpm: make all 'class' structures const") unfortunately had a typo for the name on tpmrm. Fixes: d2e8071bed0b ("tpm: make all 'class' structures const") Signed-off-by: Justin M. Forbes --- drivers/char/tpm/tpm-chip.c | 2 +-

Re: [PATCH 04/10] rcu/nocb: Remove needless full barrier after callback advancing

2023-09-09 Thread Boqun Feng
On Sat, Sep 09, 2023 at 04:31:25AM +, Joel Fernandes wrote: > On Fri, Sep 08, 2023 at 10:35:57PM +0200, Frederic Weisbecker wrote: > > A full barrier is issued from nocb_gp_wait() upon callbacks advancing > > to order grace period completion with callbacks execution. > > > > However these two

Re: [PATCH V6 5/7] cpufreq: amd-pstate: Update amd-pstate preferred core ranking dynamically

2023-09-09 Thread Peter Zijlstra
On Fri, Sep 08, 2023 at 03:46:51PM +0800, Meng Li wrote: > +static void amd_pstate_update_highest_perf(unsigned int cpu) > +{ > + struct cpufreq_policy *policy; > + struct amd_cpudata *cpudata; > + u32 prev_high = 0, cur_high = 0; > + u64 highest_perf; > + int ret; > + > +

Re: [PATCH V6 3/7] cpufreq: amd-pstate: Enable amd-pstate preferred core supporting.

2023-09-09 Thread Peter Zijlstra
On Fri, Sep 08, 2023 at 03:46:49PM +0800, Meng Li wrote: > +static void amd_pstate_init_prefcore(void) > +{ > + int cpu, ret; > + u64 highest_perf; > + > + if (!prefcore) > + return; > + > + for_each_online_cpu(cpu) { > + ret =

Re: [PATCH v4 4/9] fprobe: rethook: Use ftrace_regs in fprobe exit handler and rethook

2023-09-09 Thread Google
Hi Sven, On Wed, 06 Sep 2023 08:49:11 +0200 Sven Schnelle wrote: > Hi Masami, > > Masami Hiramatsu (Google) writes: > > > Thus, we need to ensure that the ftrace_regs which is saved in the ftrace > > *without* FTRACE_WITH_REGS flags, can be used for hooking the function > > return. I saw; >

Re: [PATCH RFC] selftests/rseq: fix kselftest Clang build warnings

2023-09-09 Thread Mathieu Desnoyers
On 9/8/23 19:03, Justin Stitt wrote: Hi, I am experiencing many warnings when trying to build tools/testing/selftests. Here's one such example from rseq tree: | param_test.c:1234:10: error: address argument to atomic operation must be a pointer to _Atomic type ('intptr_t *' (aka 'long *')