Re: [PATCH -fixes] riscv: Fix ftrace syscall handling which are now prefixed with __riscv_

2023-10-03 Thread Björn Töpel
Alexandre Ghiti writes: > ftrace creates entries for each syscall in the tracefs but has failed > since commit 08d0ce30e0e4 ("riscv: Implement syscall wrappers") which > prefixes all riscv syscalls with __riscv_. > > So fix this by implementing arch_syscall_match_sym_name() which allows us > to

Re: [PATCH -fixes] riscv: Fix ftrace syscall handling which are now prefixed with __riscv_

2023-10-03 Thread Björn Töpel
Alexandre Ghiti writes: > @Conor Dooley This fails checkpatch but the documentation here states > that this is how to do: > https://elixir.bootlin.com/linux/latest/source/Documentation/trace/ftrace-design.rst#L246 FWIW, I'll relax the PW CI checkpatch test going forward. It's way too strict...

Re: [PATCH v4 2/2] dax/kmem: allow kmem to add memory with memmap_on_memory

2023-10-03 Thread Aneesh Kumar K V
On 10/4/23 5:18 AM, Verma, Vishal L wrote: > On Tue, 2023-10-03 at 09:34 +0530, Aneesh Kumar K V wrote: >> On 9/29/23 2:00 AM, Vishal Verma wrote: >>> Large amounts of memory managed by the kmem driver may come in via CXL, >>> and it is often desirable to have the memmap for this memory on the new

Re: [PATCH v2] trace: tracing_event_filter: fast path when no subsystem filters

2023-10-03 Thread Steven Rostedt
On Mon, 2 Oct 2023 10:41:48 -0400 Nicholas Lowell wrote: > @@ -2411,7 +2418,12 @@ int apply_subsystem_event_filter(struct > trace_subsystem_dir *dir, > } > > if (!strcmp(strstrip(filter_string), "0")) { > - filter_free_subsystem_preds(dir, tr); > + /* If

Re: [RFC PATCH] tracing: change syscall number type in struct syscall_trace_*

2023-10-03 Thread Steven Rostedt
On Mon, 2 Oct 2023 15:52:42 +0200 Artem Savkov wrote: > linux-rt-devel tree contains a patch that adds an extra member to struct > trace_entry. This causes the offset of args field in struct > trace_event_raw_sys_enter be different from the one in struct > syscall_trace_enter: This patch looks

Re: [PATCH -fixes] riscv: Fix ftrace syscall handling which are now prefixed with __riscv_

2023-10-03 Thread Google
On Tue, 3 Oct 2023 20:24:07 +0200 Alexandre Ghiti wrote: > ftrace creates entries for each syscall in the tracefs but has failed > since commit 08d0ce30e0e4 ("riscv: Implement syscall wrappers") which > prefixes all riscv syscalls with __riscv_. > > So fix this by implementing

Re: [PATCH V3] tracing/timerlat: Hotplug support for the user-space interface

2023-10-03 Thread Steven Rostedt
On Fri, 29 Sep 2023 17:02:46 +0200 Daniel Bristot de Oliveira wrote: > The osnoise/per_cpu/CPU$/timerlat_fd is create for each possible > CPU, but it might create confusion if the CPU is not online. > > Create the file only for online CPUs, also follow hotplug by > creating and deleting as CPUs

Re: [PATCH RESEND v2 1/2] mm/damon/core: add a tracepoint for damos apply target regions

2023-10-03 Thread Steven Rostedt
On Wed, 13 Sep 2023 02:20:49 + SeongJae Park wrote: > DAMON provides damon_aggregated tracepoint, which exposes details of > each region and its access monitoring results. It is useful for > getting whole monitoring results, e.g., for recording purposes. > > For investigations of DAMOS,

Re: [PATCH v3 03/13] mm/execmem, arch: convert simple overrides of module_alloc to execmem

2023-10-03 Thread Edgecombe, Rick P
On Mon, 2023-09-18 at 10:29 +0300, Mike Rapoport wrote: > + > +static void execmem_init_missing(struct execmem_params *p) > +{ > +   struct execmem_range *default_range = > >ranges[EXECMEM_DEFAULT]; > + > +   for (int i = EXECMEM_DEFAULT + 1; i < EXECMEM_TYPE_MAX; i++) > { > + 

Re: [PATCH v3 04/13] mm/execmem, arch: convert remaining overrides of module_alloc to execmem

2023-10-03 Thread Edgecombe, Rick P
On Mon, 2023-09-18 at 10:29 +0300, Mike Rapoport wrote: > diff --git a/arch/x86/kernel/module.c b/arch/x86/kernel/module.c > index 5f71a0cf4399..9d37375e2f05 100644 > --- a/arch/x86/kernel/module.c > +++ b/arch/x86/kernel/module.c > @@ -19,6 +19,7 @@ >  #include >  #include >  #include >

Re: [PATCH v4 2/2] dax/kmem: allow kmem to add memory with memmap_on_memory

2023-10-03 Thread Verma, Vishal L
On Tue, 2023-10-03 at 09:34 +0530, Aneesh Kumar K V wrote: > On 9/29/23 2:00 AM, Vishal Verma wrote: > > Large amounts of memory managed by the kmem driver may come in via CXL, > > and it is often desirable to have the memmap for this memory on the new > > memory itself. > > > > Enroll

[PATCH v4] eventfs: Remove eventfs_file and just use eventfs_inode

2023-10-03 Thread Steven Rostedt
From: "Steven Rostedt (Google)" Instead of having a descriptor for every file represented in the eventfs directory, only have the directory itself represented. Change the API to send in a list of entries that represent all the files in the directory (but not other directories). The entry list

Re: [RFC PATCH] tracing: change syscall number type in struct syscall_trace_*

2023-10-03 Thread Andrii Nakryiko
On Mon, Oct 2, 2023 at 6:53 AM Artem Savkov wrote: > > linux-rt-devel tree contains a patch that adds an extra member to struct can you please point to the patch itself that makes that change? > trace_entry. This causes the offset of args field in struct > trace_event_raw_sys_enter be different

Re: [PATCH] visl: use canonical ftrace path

2023-10-03 Thread Steven Rostedt
Could this go through the linux-media tree, or if you give it an Ack, I'll take it through the tracing tree. -- Steve On Tue, 29 Aug 2023 14:46:01 -0600 Ross Zwisler wrote: > From: Ross Zwisler > > The canonical location for the tracefs filesystem is at /sys/kernel/tracing. > > But, from

Re: [PATCH v5 11/18] x86/sgx: store unreclaimable pages in LRU lists

2023-10-03 Thread Huang, Kai
On Tue, 2023-10-03 at 00:15 -0500, Haitao Huang wrote: > On Thu, 28 Sep 2023 04:41:33 -0500, Huang, Kai wrote: > > > > > > --- a/arch/x86/kernel/cpu/sgx/encl.c > > > +++ b/arch/x86/kernel/cpu/sgx/encl.c > > > @@ -746,6 +746,7 @@ void sgx_encl_release(struct kref *ref) > > >

Re: [PATCH v5 09/18] x86/sgx: Store struct sgx_encl when allocating new VA pages

2023-10-03 Thread Huang, Kai
On Tue, 2023-10-03 at 01:45 -0500, Haitao Huang wrote: > > > > Btw, probably a dumb question: > > > > Theoretically if you only need to find a victim enclave you don't need  > > to put VA > > pages to the unreclaimable list, because those VA pages will be freed  > > anyway > > when enclave is

Re: [PATCH v5 06/18] x86/sgx: Introduce EPC page states

2023-10-03 Thread Huang, Kai
On Mon, 2023-10-02 at 23:49 -0500, Haitao Huang wrote: > On Wed, 27 Sep 2023 05:28:36 -0500, Huang, Kai wrote: > > > On Fri, 2023-09-22 at 20:06 -0700, Haitao Huang wrote: > > > Use the lower 3 bits in the flags field of sgx_epc_page struct to > > > track EPC states in its life cycle and define

Re: [PATCH v4 1/2] mm/memory_hotplug: split memmap_on_memory requests across memblocks

2023-10-03 Thread Verma, Vishal L
On Mon, 2023-10-02 at 11:28 +0200, David Hildenbrand wrote: > > > + > > +static int __ref try_remove_memory(u64 start, u64 size) > > +{ > > +   int rc, nid = NUMA_NO_NODE; > > + > > +   BUG_ON(check_hotplug_memory_range(start, size)); > > + > > +   /* > > +    * All memory blocks

Re: [PATCH v5 02/18] cgroup/misc: Add SGX EPC resource type and export APIs for SGX driver

2023-10-03 Thread Huang, Kai
On Tue, 2023-10-03 at 02:00 -0500, Haitao Huang wrote: > On Wed, 27 Sep 2023 22:59:12 -0500, Huang, Kai wrote: > > > On Fri, 2023-09-22 at 20:06 -0700, Haitao Huang wrote: > > > From: Kristen Carlson Accardi > > > > > > Add SGX EPC memory, MISC_CG_RES_SGX_EPC, to be a valid resource type > > >

Re: [PATCH -fixes] riscv: Fix ftrace syscall handling which are now prefixed with __riscv_

2023-10-03 Thread Sami Tolvanen
On Tue, Oct 3, 2023 at 11:24 AM Alexandre Ghiti wrote: > > ftrace creates entries for each syscall in the tracefs but has failed > since commit 08d0ce30e0e4 ("riscv: Implement syscall wrappers") which > prefixes all riscv syscalls with __riscv_. > > So fix this by implementing

Re: [PATCH -fixes] riscv: Fix ftrace syscall handling which are now prefixed with __riscv_

2023-10-03 Thread Alexandre Ghiti
@Conor Dooley This fails checkpatch but the documentation here states that this is how to do: https://elixir.bootlin.com/linux/latest/source/Documentation/trace/ftrace-design.rst#L246 On Tue, Oct 3, 2023 at 8:24 PM Alexandre Ghiti wrote: > > ftrace creates entries for each syscall in the tracefs

[PATCH -fixes] riscv: Fix ftrace syscall handling which are now prefixed with __riscv_

2023-10-03 Thread Alexandre Ghiti
ftrace creates entries for each syscall in the tracefs but has failed since commit 08d0ce30e0e4 ("riscv: Implement syscall wrappers") which prefixes all riscv syscalls with __riscv_. So fix this by implementing arch_syscall_match_sym_name() which allows us to ignore this prefix. And also ignore

Re: [PATCH 1/1] rpmsg: virtio: Make buffer size and number configurable

2023-10-03 Thread Tanmay Shah
On 10/3/23 10:28 AM, Divin Raj wrote: > Hello, > > Thanks for all review comments. > It makes sense to incorporate a variable-length buffer size. However, we > still require an implementation that can successfully achieve this objective. > > We will be investigating this matter and will return

Re: [PATCH v2 0/2] Remove reset GPIO for AW88261

2023-10-03 Thread Mark Brown
On Mon, 02 Oct 2023 16:00:10 +0200, Luca Weiss wrote: > The AW88261 chip doesn't have a reset gpio, so remove it from the > bindings and from the driver. > > Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/2] ASoC: dt-bindings:

Re: [PATCH v5 01/18] cgroup/misc: Add per resource callbacks for CSS events

2023-10-03 Thread Haitao Huang
On Wed, 27 Sep 2023 04:20:55 -0500, Huang, Kai wrote: On Fri, 2023-09-22 at 20:06 -0700, Haitao Huang wrote: From: Kristen Carlson Accardi The misc cgroup controller (subsystem) currently does not perform resource type specific action for Cgroups Subsystem State (CSS) events: the

[PATCH v2 08/14] arm64: dts: qcom: msm8916-alcatel-idol347: Add sound and modem

2023-10-03 Thread Stephan Gerhold
From: Vincent Knecht Enable sound and modem for the Alcatel Idol 3 (4.7"). The setup is similar to most MSM8916 devices, i.e.: - QDSP6 audio - Microphones via digital/analog codec in MSM8916/PM8916 - WWAN Internet via BAM-DMUX except: - Stereo NXP TFA9890 codecs for speakers on Quaternary

[PATCH v2 10/14] arm64: dts: qcom: msm8916-longcheer-l8150: Add sound and modem

2023-10-03 Thread Stephan Gerhold
From: Nikita Travkin Enable sound and modem for the Longcheer L8150 (e.g. Wileyfox Swift). The setup is similar to most MSM8916 devices, i.e.: - QDSP6 audio - Speaker/earpiece/headphones/microphones via digital/analog codec in MSM8916/PM8916 - Audio jack detection via analog codec in

[PATCH v2 09/14] arm64: dts: qcom: msm8916-asus-z00l: Add sound and modem

2023-10-03 Thread Stephan Gerhold
From: "J.R. Divya Antony" Enable sound and modem for the ASUS Zenfone 2 Laser. The setup is similar to most MSM8916 devices, i.e.: - QDSP6 audio - Speakear/earpiece/headphones/microphones via digital/analog codec in MSM8916/PM8916 - Audio jack detection via analog codec in PM8916 - WWAN

[PATCH v2 11/14] arm64: dts: qcom: msm8916-longcheer-l8910: Add sound and modem

2023-10-03 Thread Stephan Gerhold
From: Jonathan Albrieux Enable sound and modem for the Longcheer L8910 (BQ Aquaris X5). The setup is similar to most MSM8916 devices, i.e.: - QDSP6 audio - Earpiece/headphones/microphones via digital/analog codec in MSM8916/PM8916 - Audio jack detection via analog codec in PM8916 - WWAN

[PATCH v2 13/14] arm64: dts: qcom: msm8916-samsung-j5: Add sound and modem

2023-10-03 Thread Stephan Gerhold
From: "Lin, Meng-Bo" Enable sound and modem for the Samsung J5 smartphones. The setup is similar to most MSM8916 devices, i.e.: - QDSP6 audio - Speaker/earpiece/headphones/microphones via digital/analog codec in MSM8916/PM8916 - WWAN Internet via BAM-DMUX except: - There is no

[PATCH v2 14/14] arm64: dts: qcom: msm8939-samsung-a7: Add sound and modem

2023-10-03 Thread Stephan Gerhold
From: "Lin, Meng-Bo" Enable sound and modem for the Samsung A7. The setup is similar to most MSM8916 devices, i.e.: - QDSP6 audio - Earpiece/headphones/microphones via digital/analog codec in MSM8916/PM8916 - WWAN Internet via BAM-DMUX except for the same differences as the MSM8916-based

[PATCH v2 12/14] arm64: dts: qcom: msm8916-samsung-gt5: Add sound and modem

2023-10-03 Thread Stephan Gerhold
From: Jasper Korten Enable sound and modem for the Samsung Galaxy Tab A 2015 tablets. The setup is similar to most MSM8916 devices, i.e.: - QDSP6 audio - Headphones/microphones via digital/analog codec in MSM8916/PM8916. Earpiece exists on samsung-gt58 only. - WWAN Internet via BAM-DMUX

[PATCH v2 07/14] arm64: dts: qcom: msm8916-wingtech-wt88047: Add sound and modem

2023-10-03 Thread Stephan Gerhold
Enable sound and modem for the Xiaomi Redmi 2. The setup is similar to most MSM8916 devices, i.e.: - QDSP6 audio - Earpiece/headphones/microphones via digital/analog codec in MSM8916/PM8916 - Audio jack detection via analog codec in PM8916 - WWAN Internet via BAM-DMUX except: - Speaker

[PATCH v2 03/14] arm64: dts: qcom: msm8939: Add QDSP6

2023-10-03 Thread Stephan Gerhold
MSM8939 does not have a dedicated ADSP. Instead, the audio services via APR are also implemented by the modem DSP. Audio can be either routed via the modem DSP (necessary for voice call audio etc) or directly sent to the LPASS hardware (currently used by DB410c). Bypassing QDSP6 audio is only

[PATCH v2 06/14] arm64: dts: qcom: msm8916-samsung-serranove: Add sound and modem

2023-10-03 Thread Stephan Gerhold
Enable sound and modem for the Samsung S4 Mini Value Edition. The setup is similar to most MSM8916 devices, i.e.: - QDSP6 audio - Speaker/earpiece/headphones/microphones via digital/analog codec in MSM8916/PM8916 - WWAN Internet via BAM-DMUX except: - Samsung-specific audio jack

[PATCH v2 04/14] arm64: dts: qcom: msm8916: Add common msm8916-modem-qdsp6.dtsi

2023-10-03 Thread Stephan Gerhold
Most MSM8916/MSM8939 devices use very similar setups for the modem, because most of the device-specific details are abstracted by the modem firmware. There are several definitions (status switches, DAI links etc) that will be exactly the same for every board. Introduce a common

[PATCH v2 05/14] arm64: dts: qcom: msm8916-samsung-a2015: Add sound and modem

2023-10-03 Thread Stephan Gerhold
Enable sound and modem for the Samsung A2015 based devices (A3, A5, E5, E7, Grand Max). The setup is similar to most MSM8916 devices, i.e.: - QDSP6 audio - Earpiece/headphones/microphones via digital/analog codec in MSM8916/PM8916 - WWAN Internet via BAM-DMUX except: - NXP TFA9895 codec

[PATCH v2 02/14] arm64: dts: qcom: msm8916: Add QDSP6

2023-10-03 Thread Stephan Gerhold
MSM8916 does not have a dedicated ADSP. Instead, the audio services via APR are also implemented by the modem DSP. Audio can be either routed via the modem DSP (necessary for voice call audio etc) or directly sent to the LPASS hardware (currently used by DB410c). Bypassing QDSP6 audio is only

[PATCH v2 00/14] arm64: dts: qcom: msm8916/39: Enable sound and modem with QDSP6

2023-10-03 Thread Stephan Gerhold
Enable sound and modem on most of the MSM8916/MSM8939 smartphones/tablets supported upstream by: - Adding the BAM-DMUX DT nodes to msm8939.dtsi for WWAN Internet - Adding the QDSP6 DT nodes to both msm8916.dtsi and msm8939.dtsi. This is needed because audio must be routed through the QDSP6

[PATCH v2 01/14] arm64: dts: qcom: msm8939: Add BAM-DMUX WWAN

2023-10-03 Thread Stephan Gerhold
From: Vincent Knecht BAM DMUX is used as the network interface to the modem. This is copied as-is from msm8916.dtsi. Signed-off-by: Vincent Knecht Reviewed-by: Konrad Dybcio Signed-off-by: Stephan Gerhold --- arch/arm64/boot/dts/qcom/msm8939.dtsi | 30 ++ 1 file

[PATCH v5] mm: multi-gen LRU: reuse some legacy trace events

2023-10-03 Thread Jaewon Kim
As the legacy lru provides, the mglru needs some trace events for debugging. Let's reuse following legacy events for the mglru. trace_mm_vmscan_lru_isolate trace_mm_vmscan_lru_shrink_inactive Here's an example mm_vmscan_lru_isolate: classzone=2 order=0 nr_requested=4096 nr_scanned=64

Re: [PATCH v1 1/1] ACPI: NFIT: Switch to use acpi_evaluate_dsm_typed()

2023-10-03 Thread Andy Shevchenko
On Mon, Oct 02, 2023 at 10:27:02PM +0200, Wilczynski, Michal wrote: > On 10/2/2023 3:54 PM, Andy Shevchenko wrote: ... > > + out_obj = acpi_evaluate_dsm_typed(handle, guid, revid, func, _obj, > > ACPI_TYPE_BUFFER); > > This line is 90 characters long, wouldn't it be better to split it ? I

Re: [PATCH v5 02/18] cgroup/misc: Add SGX EPC resource type and export APIs for SGX driver

2023-10-03 Thread Haitao Huang
On Wed, 27 Sep 2023 22:59:12 -0500, Huang, Kai wrote: On Fri, 2023-09-22 at 20:06 -0700, Haitao Huang wrote: From: Kristen Carlson Accardi Add SGX EPC memory, MISC_CG_RES_SGX_EPC, to be a valid resource type for the misc controller. Add per resource type private data so that SGX can store

Re: [PATCH v5 09/18] x86/sgx: Store struct sgx_encl when allocating new VA pages

2023-10-03 Thread Haitao Huang
On Wed, 27 Sep 2023 06:35:57 -0500, Huang, Kai wrote: On Fri, 2023-09-22 at 20:06 -0700, Haitao Huang wrote: From: Sean Christopherson In a later patch, when a cgroup has exceeded the max capacity for EPC pages, it may need to identify and OOM kill a less active enclave to make room for