Re: [PATCH v14 14/14] selftests/sgx: Add scripts for EPC cgroup testing

2024-06-05 Thread Jarkko Sakkinen
On Wed Jun 5, 2024 at 6:33 PM EEST, Haitao Huang wrote: > sgx_cgroup_try_charge() expects sgx_cg_wq, so it would break unless we > check and return 0 which was the initially implemented in v12. But then > Kai had some concern on that we expose all the interface files to allow > user to set

[jlayton:mgtime] [fs] 0dd26047b0: unixbench.throughput -1.5% regression

2024-06-05 Thread kernel test robot
Hello, kernel test robot noticed a -1.5% regression of unixbench.throughput on: commit: 0dd26047b0b803f7a196f0aee91d22116fdb82d3 ("fs: add tracepoints around multigrain timestamp changes") https://git.kernel.org/cgit/linux/kernel/git/jlayton/linux.git mgtime testcase: unixbench test

Re: (subset) [PATCH 0/2] Add HTC One (M8) support

2024-06-05 Thread Bjorn Andersson
On Mon, 03 Jun 2024 02:28:55 -0400, Alexandre Messier wrote: > Add an initial device tree to support the HTC One (M8) smartphone, > aka "htc,m8". > > Applied, thanks! [2/2] ARM: dts: qcom: Add initial support for HTC One (M8) commit: 0e8a41e511c98f5f5796c0dca8ff983d1c967b93 Best

回复: Re: [PATCH] tools/virtio: Use the __GFP_ZERO flag of kmalloc to complete the memory initialization.

2024-06-05 Thread 崔涛
Sorry, this is a stupid mistake.   I wonder if the gfp parameter in static inline void *kmalloc(size_t s, gfp_t gfp) can be deleted if it is not used.   Or would be better to move memset to kmalloc. Like this: #define __GFP_ZERO 0x1 static inline void *kmalloc(size_t s, gfp_t gfp) { void *p; if

Re: [PATCH] fgraph: Remove some unused functions

2024-06-05 Thread Steven Rostedt
On Thu, 6 Jun 2024 10:10:53 +0800 Jiapeng Chong wrote: > These functions are defined in the fgraph.c file, but not > called elsewhere, so delete these unused functions. > > kernel/trace/fgraph.c:273:1: warning: unused function 'set_bitmap_bits'. > kernel/trace/fgraph.c:259:19: warning: unused

[PATCH] fgraph: Remove some unused functions

2024-06-05 Thread Jiapeng Chong
These functions are defined in the fgraph.c file, but not called elsewhere, so delete these unused functions. kernel/trace/fgraph.c:273:1: warning: unused function 'set_bitmap_bits'. kernel/trace/fgraph.c:259:19: warning: unused function 'get_fgraph_type'. Reported-by: Abaci Robot Closes:

Re: [PATCH] ftrace: adding the missing parameter descriptions of unregister_ftrace_direct

2024-06-05 Thread Steven Rostedt
On Mon, 27 May 2024 21:50:46 -0300 MarileneGarcia wrote: The subject for the tracing subsystem should start with a capital letter, but it is a bit confusing anyway. Should be: ftrace: Add missing kerneldoc parameters to unregister_ftrace_direct() > Adding the description of the parameters

[PATCH] ftrace: Add back ftrace_update_trampoline() to ftrace_update_pid_func()

2024-06-05 Thread Steven Rostedt
From: "Steven Rostedt (Google)" The update to the ops trampoline done by the function ftrace_update_trampoline() was accidentally removed from ftrace_update_pid_func(). Add it back. Fixes: df3ec5da6a1e ("function_graph: Add pid tracing back to function graph tracer") Signed-off-by: Steven

Re: [PATCH v8 2/5] soc: qcom: pdr: fix parsing of domains lists

2024-06-05 Thread Chris Lew
On 5/11/2024 2:56 PM, Dmitry Baryshkov wrote: While parsing the domains list, start offsets from 0 rather than from domains_read. The domains_read is equal to the total count of the domains we have seen, while the domains list in the message starts from offset 0. Fixes: fbe639b44a82 ("soc:

Re: [PATCH] tools/virtio: Use the __GFP_ZERO flag of kmalloc to complete the memory initialization.

2024-06-05 Thread Jason Wang
On Wed, Jun 5, 2024 at 9:56 PM cuitao wrote: > > Use the __GFP_ZERO flag of kmalloc to initialize memory while allocating it, > without the need for an additional memset call. > > Signed-off-by: cuitao > --- > tools/virtio/linux/kernel.h | 5 + > 1 file changed, 1 insertion(+), 4

Re: [PATCH net-next V2] virtio-net: synchronize operstate with admin state on up/down

2024-06-05 Thread Jason Wang
On Fri, May 31, 2024 at 8:18 AM Jason Wang wrote: > > On Thu, May 30, 2024 at 9:09 PM Michael S. Tsirkin wrote: > > > > On Thu, May 30, 2024 at 06:29:51PM +0800, Jason Wang wrote: > > > On Thu, May 30, 2024 at 2:10 PM Michael S. Tsirkin > > > wrote: > > > > > > > > On Thu, May 30, 2024 at

[ANNOUNCE] 5.10.218-rt110

2024-06-05 Thread Luis Claudio R. Goncalves
Hello RT-list! I'm pleased to announce the 5.10.218-rt110 stable release. This release is just an update to the new stable 5.10.218 version and no other changes have been made. You can get this release via the git tree at: git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt.git

Re: [PATCH v3 13/27] function_graph: Add pid tracing back to function graph tracer

2024-06-05 Thread Steven Rostedt
On Mon, 03 Jun 2024 15:07:17 -0400 Steven Rostedt wrote: > +++ b/kernel/trace/ftrace.c > @@ -100,7 +100,7 @@ struct ftrace_ops *function_trace_op __read_mostly = > _list_end; > /* What to set function_trace_op to */ > static struct ftrace_ops *set_function_trace_op; > > -static bool

Re: [RFC v3 net-next 1/7] net: add rx_sk to trace_kfree_skb

2024-06-05 Thread Steven Rostedt
On Tue, 4 Jun 2024 14:47:38 -0700 Yan Zhai wrote: > skb does not include enough information to find out receiving > sockets/services and netns/containers on packet drops. In theory > skb->dev tells about netns, but it can get cleared/reused, e.g. by TCP > stack for OOO packet lookup. Similarly,

Re: [PATCH v2 0/5] ftrace: Clean up and comment code

2024-06-05 Thread Google
On Wed, 05 Jun 2024 14:03:34 -0400 Steven Rostedt wrote: > While working on the function_graph multiple users code, I realized > that I was struggling with how the ftrace code worked. Being the > author of such code meant that it wasn't very intuitive. Namely, the > function names were not

Re: [PATCH v2 1/5] ftrace: Rename dup_hash() and comment it

2024-06-05 Thread Google
On Wed, 05 Jun 2024 14:03:35 -0400 Steven Rostedt wrote: > From: "Steven Rostedt (Google)" > > The name "dup_hash()" is a misnomer as it does not duplicate the hash that > is passed in, but instead moves its entities from that hash to a newly > allocated one. Rename it to "__move_hash()"

Re: [PATCH v8 1/5] soc: qcom: pdr: protect locator_addr with the main mutex

2024-06-05 Thread Chris Lew
Hi Dmitry, On 5/11/2024 2:56 PM, Dmitry Baryshkov wrote: ... @@ -76,12 +76,12 @@ static int pdr_locator_new_server(struct qmi_handle *qmi, locator_hdl); struct pdr_service *pds; + mutex_lock(>lock); /* Create a local client port

Re: [PATCH v14 14/14] selftests/sgx: Add scripts for EPC cgroup testing

2024-06-05 Thread Huang, Kai
Reorg: void sgx_cgroup_init(void) { struct workqueue_struct *wq; /* eagerly allocate the workqueue: */ wq = alloc_workqueue("sgx_cg_wq", wq_unbound | wq_freezable, wq_unbound_max_active); if (!wq) {     pr_warn("sgx_cg_wq creation failed\n");     return;

Re: [PATCH 3/5] ftrace: Remove "filter_hash" parameter from ftrace_hash_rec_disable/enable()

2024-06-05 Thread Steven Rostedt
On Thu, 6 Jun 2024 06:50:18 +0900 Masami Hiramatsu (Google) wrote: > On Tue, 04 Jun 2024 17:28:20 -0400 > Steven Rostedt wrote: > > > From: "Steven Rostedt (Google)" > > > > The functions ftrace_hash_rec_disable() and ftrace_hash_rec_enable() > > always has 1 passed to its "ftrace_hash"

Re: [PATCH 0/6] ftrace: Minor fixes for sparse and kernel test robot

2024-06-05 Thread Google
On Wed, 05 Jun 2024 16:26:44 -0400 Steven Rostedt wrote: > > Recieved some minor bug reports from the kernel test robot. First I started > cleaning up some of the sparse warnings. There's many more, but most changes > are not really helping anything, but just quieting the warnings. > > But the

Re: [PATCH 3/5] ftrace: Remove "filter_hash" parameter from ftrace_hash_rec_disable/enable()

2024-06-05 Thread Google
On Tue, 04 Jun 2024 17:28:20 -0400 Steven Rostedt wrote: > From: "Steven Rostedt (Google)" > > The functions ftrace_hash_rec_disable() and ftrace_hash_rec_enable() > always has 1 passed to its "ftrace_hash" parameter. Remove the parameter > and pass in true to __ftrace_hash_rec_update(). > >

Re: [PATCH 1/5] ftrace: Rename dup_hash() and comment it

2024-06-05 Thread Google
On Tue, 04 Jun 2024 17:28:18 -0400 Steven Rostedt wrote: > From: "Steven Rostedt (Google)" > > The name "dup_hash()" is a misnomer as it does not duplicate the hash that > is passed in, but instead moves its entities from that hash to a newly > allocated one. Rename it to "__move_hash()"

Re: [RFC bpf-next 01/10] uprobe: Add session callbacks to uprobe_consumer

2024-06-05 Thread Oleg Nesterov
On 06/05, Andrii Nakryiko wrote: > > WDYT? It's still fast, and it's simpler than the shadow stack idea, IMO. Andrii. I am alredy sleeping, I'll try to read your email tomorrow. Right now I can only say that everything is simpler than the shadow stack ;) > P.S. Regardless, maybe we should change

Re: [RFC bpf-next 01/10] uprobe: Add session callbacks to uprobe_consumer

2024-06-05 Thread Jiri Olsa
On Wed, Jun 05, 2024 at 01:47:00PM -0700, Andrii Nakryiko wrote: > On Wed, Jun 5, 2024 at 10:57 AM Oleg Nesterov wrote: > > > > On 06/05, Andrii Nakryiko wrote: > > > > > > so any such > > > limitations will cause problems, issue reports, investigation, etc. > > > > Agreed... > > > > > As one

Re: [RFC bpf-next 01/10] uprobe: Add session callbacks to uprobe_consumer

2024-06-05 Thread Oleg Nesterov
On 06/05, Jiri Olsa wrote: > > > And the comment about the return value looks confusing too. I mean, the > > logic doesn't differ from the ret-code from ->handler(). > > > > "DO NOT install/execute the return uprobe" is not true if another > > non-session-consumer returns 0. > > well they are

Re: [RFC bpf-next 01/10] uprobe: Add session callbacks to uprobe_consumer

2024-06-05 Thread Jiri Olsa
On Wed, Jun 05, 2024 at 10:25:56AM -0700, Andrii Nakryiko wrote: SNIP > > --- > > include/linux/uprobes.h | 18 +++ > > kernel/events/uprobes.c | 69 +++-- > > 2 files changed, 78 insertions(+), 9 deletions(-) > > > > diff --git

Re: [RFC bpf-next 01/10] uprobe: Add session callbacks to uprobe_consumer

2024-06-05 Thread Jiri Olsa
On Wed, Jun 05, 2024 at 07:56:19PM +0200, Oleg Nesterov wrote: > On 06/05, Andrii Nakryiko wrote: > > > > so any such > > limitations will cause problems, issue reports, investigation, etc. > > Agreed... > > > As one possible solution, what if we do > > > > struct return_instance { > > ... >

Re: [RFC bpf-next 01/10] uprobe: Add session callbacks to uprobe_consumer

2024-06-05 Thread Andrii Nakryiko
On Wed, Jun 5, 2024 at 10:57 AM Oleg Nesterov wrote: > > On 06/05, Andrii Nakryiko wrote: > > > > so any such > > limitations will cause problems, issue reports, investigation, etc. > > Agreed... > > > As one possible solution, what if we do > > > > struct return_instance { > > ... > >

[PATCH 5/6] function_graph: Make fgraph_do_direct static key static

2024-06-05 Thread Steven Rostedt
From: "Steven Rostedt (Google)" The static branch key "fgraph_do_direct" was not declared static but is only used in one file. Change it to a static variable. Fixes: cc60ee813b503 ("function_graph: Use static_call and branch to optimize entry function") Reported-by: kernel test robot Closes:

[PATCH 4/6] ftrace: Fix prototypes for ftrace_startup/shutdown_subops()

2024-06-05 Thread Steven Rostedt
From: "Steven Rostedt (Google)" The ftrace_startup_subops() was in the wrong header, and both functions were not defined on !CONFIG_DYNAMIC_FTRACE. Fixes: 5fccc7552ccbc ("ftrace: Add subops logic to allow one ops to manage many") Reported-by: kernel test robot Closes:

[PATCH 6/6] function_graph: Do not update pid func if CONFIG_DYNAMIC_FTRACE not enabled

2024-06-05 Thread Steven Rostedt
From: "Steven Rostedt (Google)" The ftrace subops is only defined if CONFIG_DYNAMIC_FTRACE is enabled. If it is not, function tracing is extremely limited, and the subops in the ftrace_ops structure is not defined (and will fail to compile). If DYNAMIC_FTRACE is not enabled, then function graph

[PATCH 3/6] ftrace: Assign RCU list variable with rcu_assign_ptr()

2024-06-05 Thread Steven Rostedt
From: "Steven Rostedt (Google)" Use rcu_assign_ptr() to assign the list pointer as it is marked as RCU, and this quiets the sparse warning: kernel/trace/ftrace.c:313:23: warning: incorrect type in assignment (different address spaces) kernel/trace/ftrace.c:313:23:expected struct

[PATCH 2/6] ftrace: Assign ftrace_list_end to ftrace_ops_list type cast to RCU

2024-06-05 Thread Steven Rostedt
From: "Steven Rostedt (Google)" Use a type cast to convert ftrace_list_end to RCU when assigning ftrace_ops_list. This will quiet the sparse warning: kernel/trace/ftrace.c:125:59: warning: incorrect type in initializer (different address spaces) kernel/trace/ftrace.c:125:59:expected

[PATCH 0/6] ftrace: Minor fixes for sparse and kernel test robot

2024-06-05 Thread Steven Rostedt
Recieved some minor bug reports from the kernel test robot. First I started cleaning up some of the sparse warnings. There's many more, but most changes are not really helping anything, but just quieting the warnings. But the reports from kernel test robot need to be fixed. Steven Rostedt

[PATCH 1/6] ftrace: Declare function_trace_op in header to quiet sparse warning

2024-06-05 Thread Steven Rostedt
From: "Steven Rostedt (Google)" Sparse complains that function_trace_op is not static but is not declared in a header file. It is used only in assembly code. But add it to a header so that sparse no longer complains: kernel/trace/ftrace.c:99:19: warning: symbol 'function_trace_op' was not

Re: [RFC bpf-next 01/10] uprobe: Add session callbacks to uprobe_consumer

2024-06-05 Thread Jiri Olsa
On Wed, Jun 05, 2024 at 06:36:25PM +0200, Oleg Nesterov wrote: > On 06/05, Oleg Nesterov wrote: > > > > On 06/05, Oleg Nesterov wrote: > > > > > > > +/* > > > > + * Make sure all the uprobe consumers have only one type of entry > > > > + * callback registered (either handler or handler_session)

[PATCH] remoteproc: mediatek: Don't print error when optional scp handle is missing

2024-06-05 Thread Nícolas F . R . A . Prado
r(dev, "can't get SCP node\n"); + if (!scp_node) return NULL; - } scp_pdev = of_find_device_by_node(scp_node); of_node_put(scp_node); --- base-commit: d97496ca23a2d4ee80b7302849404859d9058bcd change-id: 20240605-mt8195-dma-scp-node-err-6a8

[PATCH 1/1] dt-bindings: remoteproc: imx_rproc: add minItems for power-domain

2024-06-05 Thread Frank Li
"fsl,imx8qxp-cm4" just need 2 power domains. Keep the same restriction for other compatible string. Signed-off-by: Frank Li --- Notes: pass dt_binding_check. make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- -j8 dt_binding_check DT_SCHEMA_FILES=fsl,imx-rproc.yaml SCHEMA

Re: [PATCH 3/5] ftrace: Remove "filter_hash" parameter from ftrace_hash_rec_disable/enable()

2024-06-05 Thread Steven Rostedt
On Wed, 5 Jun 2024 11:17:31 +0100 Mark Rutland wrote: > On Tue, Jun 04, 2024 at 05:28:20PM -0400, Steven Rostedt wrote: > > From: "Steven Rostedt (Google)" > > > > The functions ftrace_hash_rec_disable() and ftrace_hash_rec_enable() > > always has 1 passed to its "ftrace_hash" parameter.

[PATCH v2 5/5] ftrace: Add comments to ftrace_hash_move() and friends

2024-06-05 Thread Steven Rostedt
From: "Steven Rostedt (Google)" Describe what ftrace_hash_move() does and add some more comments to some other functions to make it easier to understand. Signed-off-by: Steven Rostedt (Google) --- kernel/trace/ftrace.c | 24 +++- 1 file changed, 23 insertions(+), 1

[PATCH v2 3/5] ftrace: Add comments to ftrace_hash_rec_disable/enable()

2024-06-05 Thread Steven Rostedt
From: "Steven Rostedt (Google)" Add comments to describe what the functions ftrace_hash_rec_disable() and ftrace_hash_rec_enable() do. Also change the passing of the "inc" variable to __ftrace_hash_rec_update() to a boolean value as that is what it is supposed to take. Acked-by: Mark Rutland

[PATCH v2 4/5] ftrace: Convert "inc" parameter to bool in ftrace_hash_rec_update_modify()

2024-06-05 Thread Steven Rostedt
From: "Steven Rostedt (Google)" The parameter "inc" in the function ftrace_hash_rec_update_modify() is boolean. Change it to be such. Also add documentation to what the function does. Signed-off-by: Steven Rostedt (Google) --- kernel/trace/ftrace.c | 23 --- 1 file

[PATCH v2 2/5] ftrace: Remove "ftrace_hash" parameter from __ftrace_hash_rec_update()

2024-06-05 Thread Steven Rostedt
From: "Steven Rostedt (Google)" While adding comments to the function __ftrace_hash_rec_update() and trying to describe in detail what the parameter for "ftrace_hash" does, I realized that it basically does exactly the same thing (but differently) if it is set or not! If it is set, the idea was

[PATCH v2 0/5] ftrace: Clean up and comment code

2024-06-05 Thread Steven Rostedt
While working on the function_graph multiple users code, I realized that I was struggling with how the ftrace code worked. Being the author of such code meant that it wasn't very intuitive. Namely, the function names were not descriptive enough, or at least, they needed comments. This series

[PATCH v2 1/5] ftrace: Rename dup_hash() and comment it

2024-06-05 Thread Steven Rostedt
From: "Steven Rostedt (Google)" The name "dup_hash()" is a misnomer as it does not duplicate the hash that is passed in, but instead moves its entities from that hash to a newly allocated one. Rename it to "__move_hash()" (using starting underscores as it is an internal function), and add some

Re: [RFC bpf-next 01/10] uprobe: Add session callbacks to uprobe_consumer

2024-06-05 Thread Oleg Nesterov
On 06/05, Andrii Nakryiko wrote: > > so any such > limitations will cause problems, issue reports, investigation, etc. Agreed... > As one possible solution, what if we do > > struct return_instance { > ... > u64 session_cookies[]; > }; > > and allocate sizeof(struct return_instance) + 8

[PATCH] dax: add missing MODULE_DESCRIPTION() macros

2024-06-05 Thread Jeff Johnson
); diff --git a/drivers/dax/super.c b/drivers/dax/super.c index aca71d7fccc1..e16d1d40d773 100644 --- a/drivers/dax/super.c +++ b/drivers/dax/super.c @@ -606,6 +606,7 @@ static void __exit dax_core_exit(void) } MODULE_AUTHOR("Intel Corporation"); +MODULE_DESCRIPTION("DAX: direct access to

Re: [PATCH v4] drivers: remoteproc: xlnx: add attach detach support

2024-06-05 Thread Tanmay Shah
On 6/4/24 3:23 PM, Bjorn Andersson wrote: > On Mon, Jun 03, 2024 at 01:34:38PM -0700, Tanmay Shah wrote: >> It is possible that remote processor is already running before >> linux boot or remoteproc platform driver probe. Implement required >> remoteproc framework ops to provide resource table

Re: [PATCH v4] drivers: remoteproc: xlnx: add attach detach support

2024-06-05 Thread Tanmay Shah
On 6/4/24 10:34 AM, Mathieu Poirier wrote: Hi Mathieu, Thanks for reviews. Please find my comments below. > Hi Tanmay, > > On Mon, Jun 03, 2024 at 01:34:38PM -0700, Tanmay Shah wrote: >> It is possible that remote processor is already running before >> linux boot or remoteproc platform

Re: [RFC bpf-next 01/10] uprobe: Add session callbacks to uprobe_consumer

2024-06-05 Thread Andrii Nakryiko
On Tue, Jun 4, 2024 at 1:02 PM Jiri Olsa wrote: > > Adding new set of callbacks that are triggered on entry and return > uprobe execution for the attached function. > > The session means that those callbacks are 'connected' in a way > that allows to: > - control execution of return callback

[PATCH v3 5/5] arm64: dts: qcom: sa8775p-ride: enable remoteprocs

2024-06-05 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Enable all remoteproc nodes on the sa8775p-ride board and point to the appropriate firmware files. Reviewed-by: Dmitry Baryshkov Signed-off-by: Bartosz Golaszewski --- arch/arm64/boot/dts/qcom/sa8775p-ride.dts | 25 + 1 file changed, 25

[PATCH v3 4/5] arm64: dts: qcom: sa8775p: add ADSP, CDSP and GPDSP nodes

2024-06-05 Thread Bartosz Golaszewski
From: Tengfei Fan Add nodes for remoteprocs: ADSP, CDSP0, CDSP1, GPDSP0 and GPDSP1 for SA8775p SoCs. Reviewed-by: Dmitry Baryshkov Signed-off-by: Tengfei Fan Co-developed-by: Bartosz Golaszewski Signed-off-by: Bartosz Golaszewski --- arch/arm64/boot/dts/qcom/sa8775p.dtsi | 332

[PATCH v3 3/5] remoteproc: qcom_q6v5_pas: Add support for SA8775p ADSP, CDSP and GPDSP

2024-06-05 Thread Bartosz Golaszewski
From: Tengfei Fan Add support for PIL loading on ADSP, CDSP0, CDSP1, GPDSP0 and GPDSP1 on SA8775p SoCs. Signed-off-by: Tengfei Fan Co-developed-by: Bartosz Golaszewski Signed-off-by: Bartosz Golaszewski --- drivers/remoteproc/qcom_q6v5_pas.c | 92 ++ 1

[PATCH v3 2/5] dt-bindings: mailbox: qcom-ipcc: Add GPDSP0 and GPDSP1 clients

2024-06-05 Thread Bartosz Golaszewski
From: Tengfei Fan Add GPDSP0 and GPDSP1 clients for SA8775p platform. Signed-off-by: Tengfei Fan Acked-by: Krzysztof Kozlowski Signed-off-by: Bartosz Golaszewski --- include/dt-bindings/mailbox/qcom-ipcc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH v3 0/5] arm64: qcom: sa8775p: enable remoteprocs - ADSP, CDSP and GPDSP

2024-06-05 Thread Bartosz Golaszewski
Add DT bindings, relevant DT defines, DTS nodes and driver changes required to enable the remoteprocs on sa8775p. To: Bjorn Andersson To: Mathieu Poirier To: Rob Herring To: Krzysztof Kozlowski To: Conor Dooley To: Manivannan Sadhasivam To: Jassi Brar To: Konrad Dybcio Cc:

[PATCH v3 1/5] dt-bindings: remoteproc: qcom,sa8775p-pas: Document the SA8775p ADSP, CDSP and GPDSP

2024-06-05 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Document the components used to boot the ADSP, CDSP0, CDSP1, GPDSP0 and GPDSP1 on the SA8775p SoC. Signed-off-by: Bartosz Golaszewski --- .../bindings/remoteproc/qcom,sa8775p-pas.yaml | 160 + 1 file changed, 160 insertions(+) diff --git

Re: [PATCHv7 bpf-next 0/9] uprobe: uretprobe speed up

2024-06-05 Thread Andrii Nakryiko
On Fri, May 31, 2024 at 10:52 AM Andrii Nakryiko wrote: > > On Thu, May 23, 2024 at 5:11 AM Jiri Olsa wrote: > > > > hi, > > as part of the effort on speeding up the uprobes [0] coming with > > return uprobe optimization by using syscall instead of the trap > > on the uretprobe trampoline. > > >

Re: [RFC bpf-next 01/10] uprobe: Add session callbacks to uprobe_consumer

2024-06-05 Thread Oleg Nesterov
On 06/05, Oleg Nesterov wrote: > > On 06/05, Oleg Nesterov wrote: > > > > > +/* > > > + * Make sure all the uprobe consumers have only one type of entry > > > + * callback registered (either handler or handler_session) due to > > > + * different return value actions. > > > + */ > > > +static int

Re: [PATCH 2/5] ftrace: Comment __ftrace_hash_rec_update() and make filter_hash bool

2024-06-05 Thread Steven Rostedt
On Wed, 5 Jun 2024 10:18:32 -0400 Steven Rostedt wrote: > > > + * > > > + * @filter_hash: True if for the filter hash is udpated, false for the > > > + * notrace hash > > > > Typo: s/udpated/updated/ > > > > ... though I couldn't parse this regardless; maybe: > > > >

Re: [RFC bpf-next 01/10] uprobe: Add session callbacks to uprobe_consumer

2024-06-05 Thread Oleg Nesterov
On 06/05, Oleg Nesterov wrote: > > > +/* > > + * Make sure all the uprobe consumers have only one type of entry > > + * callback registered (either handler or handler_session) due to > > + * different return value actions. > > + */ > > +static int consumer_check(struct uprobe_consumer *curr,

Re: [PATCH v14 14/14] selftests/sgx: Add scripts for EPC cgroup testing

2024-06-05 Thread Haitao Huang
Hi Jarkko Thanks for your review. On Tue, 04 Jun 2024 17:00:34 -0500, Jarkko Sakkinen wrote: On Sat Jun 1, 2024 at 1:26 AM EEST, Haitao Huang wrote: With different cgroups, the script starts one or multiple concurrent SGX selftests (test_sgx), each to run the

Re: [RFC bpf-next 01/10] uprobe: Add session callbacks to uprobe_consumer

2024-06-05 Thread Oleg Nesterov
I'll try to read this code tomorrow, right now I don't really understand what does it do and why. However, On 06/04, Jiri Olsa wrote: > > struct uprobe_consumer { > + /* > + * The handler callback return value controls removal of the uprobe. > + * 0 on success, uprobe stays > +

Re: [PATCH v5 1/2] sched/rt: Clean up usage of rt_task()

2024-06-05 Thread Daniel Bristot de Oliveira
On 6/5/24 15:24, Qais Yousef wrote: >>> But rt is a shortened version of realtime, and so it is making *it less* >>> clear that we also have DL here. >> Can SCHED_DL be considered a real-time scheduling class as in opposite >> to SCHED_BATCH for instance? Due to its requirements it fits for a real

Re: [PATCH 2/5] ftrace: Comment __ftrace_hash_rec_update() and make filter_hash bool

2024-06-05 Thread Steven Rostedt
On Wed, 5 Jun 2024 11:15:38 +0100 Mark Rutland wrote: > > diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c > > index 9dcdefe9d1aa..93c7c5fd4249 100644 > > --- a/kernel/trace/ftrace.c > > +++ b/kernel/trace/ftrace.c > > @@ -1701,8 +1701,20 @@ static bool skip_record(struct dyn_ftrace

Re: [PATCH v3 00/27] function_graph: Allow multiple users for function graph tracing

2024-06-05 Thread Mark Rutland
On Mon, Jun 03, 2024 at 03:07:04PM -0400, Steven Rostedt wrote: > This is a continuation of the function graph multi user code. > I wrote a proof of concept back in 2019 of this code[1] and > Masami started cleaning it up. I started from Masami's work v10 > that can be found here: > > >

[PATCH net-next v6 06/15] mm: page_frag: add '_va' suffix to page_frag API

2024-06-05 Thread Yunsheng Lin
Currently the page_frag API is returning 'virtual address' or 'va' when allocing and expecting 'virtual address' or 'va' as input when freeing. As we are about to support new use cases that the caller need to deal with 'struct page' or need to deal with both 'va' and 'struct page'. In order to

Re: [PATCH v5 1/2] sched/rt: Clean up usage of rt_task()

2024-06-05 Thread Qais Yousef
On 06/05/24 11:32, Sebastian Andrzej Siewior wrote: > On 2024-06-04 17:57:46 [+0200], Daniel Bristot de Oliveira wrote: > > On 6/4/24 16:42, Qais Yousef wrote: > > > - (wakeup_rt && !dl_task(p) && !rt_task(p)) || > > > + (wakeup_rt && !realtime_task(p)) || > > > > I do not like

Re: [PATCH v5 1/2] sched/rt: Clean up usage of rt_task()

2024-06-05 Thread Daniel Bristot de Oliveira
On 6/5/24 11:32, Sebastian Andrzej Siewior wrote: > On 2024-06-04 17:57:46 [+0200], Daniel Bristot de Oliveira wrote: >> On 6/4/24 16:42, Qais Yousef wrote: >>> - (wakeup_rt && !dl_task(p) && !rt_task(p)) || >>> + (wakeup_rt && !realtime_task(p)) || >> >> I do not like bikeshedding,

[PATCH] tools/virtio: Use the __GFP_ZERO flag of kmalloc to complete the memory initialization.

2024-06-05 Thread cuitao
Use the __GFP_ZERO flag of kmalloc to initialize memory while allocating it, without the need for an additional memset call. Signed-off-by: cuitao --- tools/virtio/linux/kernel.h | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tools/virtio/linux/kernel.h

[PATCH net-next v6 07/15] mm: page_frag: avoid caller accessing 'page_frag_cache' directly

2024-06-05 Thread Yunsheng Lin
Use appropriate frag_page API instead of caller accessing 'page_frag_cache' directly. CC: Alexander Duyck Signed-off-by: Yunsheng Lin --- drivers/vhost/net.c | 2 +- include/linux/page_frag_cache.h | 10 ++ mm/page_frag_test.c | 2 +- net/core/skbuff.c

[PATCH AUTOSEL 6.6 4/4] vhost-scsi: Handle vhost_vq_work_queue failures for events

2024-06-05 Thread Sasha Levin
From: Mike Christie [ Upstream commit b1b2ce58ed23c5d56e0ab299a5271ac01f95b75c ] Currently, we can try to queue an event's work before the vhost_task is created. When this happens we just drop it in vhost_scsi_do_plug before even calling vhost_vq_work_queue. During a device shutdown we do the

[PATCH AUTOSEL 6.8 6/6] vhost-scsi: Handle vhost_vq_work_queue failures for events

2024-06-05 Thread Sasha Levin
From: Mike Christie [ Upstream commit b1b2ce58ed23c5d56e0ab299a5271ac01f95b75c ] Currently, we can try to queue an event's work before the vhost_task is created. When this happens we just drop it in vhost_scsi_do_plug before even calling vhost_vq_work_queue. During a device shutdown we do the

[PATCH AUTOSEL 6.9 6/6] vhost-scsi: Handle vhost_vq_work_queue failures for events

2024-06-05 Thread Sasha Levin
From: Mike Christie [ Upstream commit b1b2ce58ed23c5d56e0ab299a5271ac01f95b75c ] Currently, we can try to queue an event's work before the vhost_task is created. When this happens we just drop it in vhost_scsi_do_plug before even calling vhost_vq_work_queue. During a device shutdown we do the

[PATCH v4 11/11] riscv: Enable DAX VMEMMAP optimization

2024-06-05 Thread Björn Töpel
From: Björn Töpel Now that DAX is usable, enable the DAX VMEMMAP optimization as well. Signed-off-by: Björn Töpel --- arch/riscv/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index 8a49b5f4c017..1631bf568158 100644 --- a/arch/riscv/Kconfig

[PATCH v4 10/11] riscv: mm: Add support for ZONE_DEVICE

2024-06-05 Thread Björn Töpel
From: Björn Töpel ZONE_DEVICE pages need DEVMAP PTEs support to function (ARCH_HAS_PTE_DEVMAP). Claim another RSW (reserved for software) bit in the PTE for DEVMAP mark, add the corresponding helpers, and enable ARCH_HAS_PTE_DEVMAP for riscv64. Reviewed-by: Alexandre Ghiti Signed-off-by: Björn

[PATCH v4 09/11] virtio-mem: Enable virtio-mem for RISC-V

2024-06-05 Thread Björn Töpel
From: Björn Töpel Now that RISC-V has memory hotplugging support, virtio-mem can be used on the platform. Acked-by: David Hildenbrand Signed-off-by: Björn Töpel --- drivers/virtio/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/virtio/Kconfig

[PATCH v4 05/11] riscv: mm: Add pfn_to_kaddr() implementation

2024-06-05 Thread Björn Töpel
From: Björn Töpel The pfn_to_kaddr() function is used by KASAN's memory hotplugging path. Add the missing function to the RISC-V port, so that it can be built with MHP and CONFIG_KASAN. Signed-off-by: Björn Töpel --- arch/riscv/include/asm/page.h | 5 + 1 file changed, 5 insertions(+)

[PATCH v4 08/11] riscv: Enable memory hotplugging for RISC-V

2024-06-05 Thread Björn Töpel
From: Björn Töpel Enable ARCH_ENABLE_MEMORY_HOTPLUG and ARCH_ENABLE_MEMORY_HOTREMOVE for RISC-V. Reviewed-by: Alexandre Ghiti Signed-off-by: Björn Töpel --- arch/riscv/Kconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index

[PATCH v4 07/11] riscv: mm: Take memory hotplug read-lock during kernel page table dump

2024-06-05 Thread Björn Töpel
From: Björn Töpel During memory hot remove, the ptdump functionality can end up touching stale data. Avoid any potential crashes (or worse), by holding the memory hotplug read-lock while traversing the page table. This change is analogous to arm64's commit bf2b59f60ee1 ("arm64/mm: Hold memory

[PATCH v4 06/11] riscv: mm: Add memory hotplugging support

2024-06-05 Thread Björn Töpel
From: Björn Töpel For an architecture to support memory hotplugging, a couple of callbacks needs to be implemented: arch_add_memory() This callback is responsible for adding the physical memory into the direct map, and call into the memory hotplugging generic code via __add_pages() that

[PATCH v4 04/11] riscv: mm: Refactor create_linear_mapping_range() for memory hot add

2024-06-05 Thread Björn Töpel
From: Björn Töpel Add a parameter to the direct map setup function, so it can be used in arch_add_memory() later. Reviewed-by: Alexandre Ghiti Reviewed-by: David Hildenbrand Reviewed-by: Oscar Salvador Signed-off-by: Björn Töpel --- arch/riscv/mm/init.c | 15 ++- 1 file

[PATCH v4 03/11] riscv: mm: Change attribute from __init to __meminit for page functions

2024-06-05 Thread Björn Töpel
From: Björn Töpel Prepare for memory hotplugging support by changing from __init to __meminit for the page table functions that are used by the upcoming architecture specific callbacks. Changing the __init attribute to __meminit, avoids that the functions are removed after init. The __meminit

[PATCH v4 02/11] riscv: mm: Pre-allocate vmemmap/direct map/kasan PGD entries

2024-06-05 Thread Björn Töpel
From: Björn Töpel The RISC-V port copies the PGD table from init_mm/swapper_pg_dir to all userland page tables, which means that if the PGD level table is changed, other page tables has to be updated as well. Instead of having the PGD changes ripple out to all tables, the synchronization can be

[PATCH v4 00/11] riscv: Memory Hot(Un)Plug support

2024-06-05 Thread Björn Töpel
From: Björn Töpel Memory Hot(Un)Plug support (and ZONE_DEVICE) for the RISC-V port (For the restless folks: change log in the bottom!) Introduction To

[PATCH v4 01/11] riscv: mm: Properly forward vmemmap_populate() altmap parameter

2024-06-05 Thread Björn Töpel
From: Björn Töpel Make sure that the altmap parameter is properly passed on to vmemmap_populate_hugepages(). Reviewed-by: Alexandre Ghiti Signed-off-by: Björn Töpel --- arch/riscv/mm/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/riscv/mm/init.c

Re: [PATCH v2 2/3] remoteproc: k3-r5: Acquire mailbox handle during probe

2024-06-05 Thread Beleswar Prasad Padhi
Hi Andrew, On 04/06/24 22:40, Andrew Davis wrote: On 6/4/24 12:17 AM, Beleswar Padhi wrote: Acquire the mailbox handle during device probe and do not release handle in stop/detach routine or error paths. This removes the redundant requests for mbox handle later during rproc start/attach. This

Re: [PATCH 4/5] ftrace: Convert "filter_hash" and "inc" to bool in ftrace_hash_rec_update_modify()

2024-06-05 Thread Mark Rutland
On Tue, Jun 04, 2024 at 05:28:21PM -0400, Steven Rostedt wrote: > From: "Steven Rostedt (Google)" > > The parameters "filter_hash" and "inc" in the function > ftrace_hash_rec_update_modify() are boolean. Change them to be such. > > Also add documentation to what the function does. > >

Re: [PATCH 3/5] ftrace: Remove "filter_hash" parameter from ftrace_hash_rec_disable/enable()

2024-06-05 Thread Mark Rutland
On Tue, Jun 04, 2024 at 05:28:20PM -0400, Steven Rostedt wrote: > From: "Steven Rostedt (Google)" > > The functions ftrace_hash_rec_disable() and ftrace_hash_rec_enable() > always has 1 passed to its "ftrace_hash" parameter. Remove the parameter > and pass in true to __ftrace_hash_rec_update().

Re: [PATCH 2/5] ftrace: Comment __ftrace_hash_rec_update() and make filter_hash bool

2024-06-05 Thread Mark Rutland
On Tue, Jun 04, 2024 at 05:28:19PM -0400, Steven Rostedt wrote: > From: "Steven Rostedt (Google)" > > The function __ftrace_hash_rec_update() parameter "filter_hash" is only > used for true or false (boolean), but is of type int. It already has an > "inc" parameter that is boolean. This is

Re: [PATCH] ftrace/selftests: Fix pid test with function graph not showing pids

2024-06-05 Thread Mark Rutland
On Tue, Jun 04, 2024 at 03:25:50PM -0400, Steven Rostedt wrote: > From: "Steven Rostedt (Google)" > > The pid filtering test will set the pid filters and make sure that both > function and function_graph tracing honors the filters. But the > function_graph tracer test was failing because the PID

Re: [PATCH v5 0/2] Clean up usage of rt_task()

2024-06-05 Thread Sebastian Andrzej Siewior
On 2024-06-04 15:42:26 [+0100], Qais Yousef wrote: > Make rt_task() return true only for RT class and add new realtime_task() to > return true for RT and DL classes to avoid some confusion the old API can > cause. Reviewed-by: Sebastian Andrzej Siewior Sebastian

Re: [PATCH v5 1/2] sched/rt: Clean up usage of rt_task()

2024-06-05 Thread Sebastian Andrzej Siewior
On 2024-06-04 17:57:46 [+0200], Daniel Bristot de Oliveira wrote: > On 6/4/24 16:42, Qais Yousef wrote: > > - (wakeup_rt && !dl_task(p) && !rt_task(p)) || > > + (wakeup_rt && !realtime_task(p)) || > > I do not like bikeshedding, and no hard feelings... > > But rt is a shortened

Re: [PATCH v3] dt-bindings: remoteproc: k3-dsp: correct optional sram properties for AM62A SoCs

2024-06-05 Thread Krzysztof Kozlowski
On 04/06/2024 19:14, Hari Nagalla wrote: > The C7xv-dsp on AM62A have 32KB L1 I-cache and a 64KB L1 D-cache. It > does not have an addressable l1dram . So, remove this optional sram > property from the bindings to fix device tree build warnings. > > Signed-off-by: Hari Nagalla > --- > Changes in

Re: [PATCH v5 2/2] sched/rt, dl: Convert functions to return bool

2024-06-05 Thread Metin Kaya
On 04/06/2024 3:42 pm, Qais Yousef wrote: {rt, realtime, dl}_{task, prio}() functions return value is actually Super-nit: s/functions/functions'/ ? With that, Reviewed-by: Metin Kaya a bool. Convert their return type to reflect that. Suggested-by: Steven Rostedt (Google) Signed-off-by: