Re: [PATCH] Revert "arm64: dts: qcom: msm8939-longcheer-l9100: Add rear flash"

2024-08-30 Thread Bjorn Andersson
On Fri, 30 Aug 2024 22:49:50 +0200, André Apitzsch wrote: > Patch "arm64: dts: qcom: msm8939-longcheer-l9100: Add rear flash" has > been applied twice. This reverts the older version of the patch. > > Revert the commit f98bdb21cfc9 ("arm64: dts: qcom: > msm8939-longcheer-l9100: Add rear flash")

Re: [PATCH v2 16/19] gendwarfksyms: Add support for reserved structure fields

2024-08-30 Thread Sami Tolvanen
Hi Miroslav, On Fri, Aug 30, 2024 at 9:34 AM Miroslav Benes wrote: > > yes, this is one of the approaches we use in SLES. We add kabi paddings > to some structures in advance (see [1] as a random example) and then use > it later if needed. > > It is not the only approach. Much more often we do no

Re: [PATCH bpf-next 2/2] selftests/bpf: Add uprobe pid filter test for multiple processes

2024-08-30 Thread Andrii Nakryiko
On Thu, Aug 29, 2024 at 12:45 PM Jiri Olsa wrote: > > The idea is to create and monitor 3 uprobes, each trigered in separate typo: triggered > process and make sure the bpf program gets executed just for the proper > PID specified via pid filter. > > Signed-off-by: Jiri Olsa > --- > .../bpf/pr

[PATCH] Revert "arm64: dts: qcom: msm8939-longcheer-l9100: Add rear flash"

2024-08-30 Thread André Apitzsch via B4 Relay
lt: camera-rear-flash-default-state { - pins = "gpio9", "gpio16", "gpio51"; - function = "gpio"; - drive-strength = <2>; - bias-disable; - }; - gpio_hall_sensor_default: gpio-hall-s

Re: [PATCH v4 4/8] uprobes: travers uprobe's consumer list locklessly under SRCU protection

2024-08-30 Thread Andrii Nakryiko
On Fri, Aug 30, 2024 at 1:21 PM Oleg Nesterov wrote: > > On 08/30, Andrii Nakryiko wrote: > > > > Andrii, let me reply to your email "out of order". First of all: > > > Can we please let me land these patches first? It's been a while. I > > don't think anything is really broken with the logic. > >

Re: [PATCH v4 8/8] uprobes: switch to RCU Tasks Trace flavor for better performance

2024-08-30 Thread kernel test robot
Hi Andrii, kernel test robot noticed the following build errors: [auto build test ERROR on tip/perf/core] [also build test ERROR on next-20240830] [cannot apply to perf-tools-next/perf-tools-next perf-tools/perf-tools linus/master acme/perf/core v6.11-rc5] [If your patch is applied to the wrong

Re: [PATCH v4 4/8] uprobes: travers uprobe's consumer list locklessly under SRCU protection

2024-08-30 Thread Oleg Nesterov
On 08/30, Andrii Nakryiko wrote: > Andrii, let me reply to your email "out of order". First of all: > Can we please let me land these patches first? It's been a while. I > don't think anything is really broken with the logic. OK, agreed. I'll probably write another email (too late for me today)

Re: [PATCH v4 8/8] uprobes: switch to RCU Tasks Trace flavor for better performance

2024-08-30 Thread Andrii Nakryiko
On Fri, Aug 30, 2024 at 10:42 AM kernel test robot wrote: > > Hi Andrii, > > kernel test robot noticed the following build errors: > > [auto build test ERROR on tip/perf/core] > [also build test ERROR on next-20240830] > [cannot apply to perf-tools-next/perf-tools-ne

Re: [PATCH v4 8/8] uprobes: switch to RCU Tasks Trace flavor for better performance

2024-08-30 Thread kernel test robot
Hi Andrii, kernel test robot noticed the following build errors: [auto build test ERROR on tip/perf/core] [also build test ERROR on next-20240830] [cannot apply to perf-tools-next/perf-tools-next perf-tools/perf-tools linus/master acme/perf/core v6.11-rc5] [If your patch is applied to the wrong

[PATCH v5] remoteproc: xlnx: add sram support

2024-08-30 Thread Tanmay Shah
AMD-Xilinx zynqmp platform contains on-chip sram memory (OCM). R5 cores can access OCM and access is faster than DDR memory but slower than TCM memories available. Sram region can have optional multiple power-domains. Platform management firmware is responsible to operate these power-domains. Sign

Re: [PATCH bpf-next 0/2] selftests/bpf: Add uprobe pid filter test

2024-08-30 Thread Stanislav Fomichev
On 08/29, Jiri Olsa wrote: > hi, > in response to [1] patch, I'm adding bpf selftest that confirms the > change fixes problem for bpf programs trigered by return uprobe created > over perf event. > > Oleg pointed out other issues with uprobe_multi pid filter, > I plan to send another patchset for

[PATCH v17 15/16] Docs/x86/sgx: Add description for cgroup support

2024-08-30 Thread Haitao Huang
From: Sean Christopherson Add initial documentation of how to regulate the distribution of SGX Enclave Page Cache (EPC) memory via the Miscellaneous cgroup controller. Signed-off-by: Sean Christopherson Co-developed-by: Kristen Carlson Accardi Signed-off-by: Kristen Carlson Accardi Co-develop

[PATCH v17 14/16] x86/sgx: Turn on per-cgroup EPC reclamation

2024-08-30 Thread Haitao Huang
From: Kristen Carlson Accardi Previous patches have implemented all infrastructure needed for per-cgroup EPC page tracking and reclaiming. But all reclaimable EPC pages are still tracked in the global LRU as sgx_epc_page_lru() always returns reference to the global LRU. Change sgx_epc_page_lru()

[PATCH v17 10/16] x86/sgx: Implement async reclamation for cgroup

2024-08-30 Thread Haitao Huang
From: Kristen Carlson Accardi In cases EPC pages need be allocated during a page fault and the cgroup usage is near its limit, an asynchronous reclamation needs to be triggered to avoid blocking the page fault handling. To keep implementation simple, use a workqueue instead of kthread to schedul

[PATCH v17 07/16] x86/sgx: Abstract tracking reclaimable pages in LRU

2024-08-30 Thread Haitao Huang
From: Kristen Carlson Accardi The SGX driver tracks reclaimable EPC pages by adding a newly allocated page into the global LRU list in sgx_mark_page_reclaimable(), and doing the opposite in sgx_unmark_page_reclaimable(). To support SGX EPC cgroup, the SGX driver will need to maintain an LRU list

[PATCH v17 16/16] selftests/sgx: Add scripts for EPC cgroup testing

2024-08-30 Thread Haitao Huang
With different cgroups, the script starts one or multiple concurrent SGX selftests (test_sgx), each to run the unclobbered_vdso_oversubscribed test case, which loads an enclave of EPC size equal to the EPC capacity available on the platform. The script checks results against the expectation set for

[PATCH v17 13/16] x86/sgx: Revise global reclamation for EPC cgroups

2024-08-30 Thread Haitao Huang
With EPC cgroups, the global reclamation function, sgx_reclaim_pages_global(), can no longer apply to the global LRU as pages are now in per-cgroup LRUs. Create a wrapper, sgx_cgroup_reclaim_global() to invoke sgx_cgroup_reclaim_pages() passing in the root cgroup. The wrapper will scan and attemp

[PATCH v17 06/16] x86/sgx: Add sgx_epc_lru_list to encapsulate LRU list

2024-08-30 Thread Haitao Huang
From: Sean Christopherson Introduce a data structure to wrap the existing reclaimable list and its spinlock. Each cgroup later will have one instance of this structure to track EPC pages allocated for processes associated with the same cgroup. Just like the global SGX reclaimer (ksgxd), an EPC cg

[PATCH v17 05/16] x86/sgx: Implement basic EPC misc cgroup functionality

2024-08-30 Thread Haitao Huang
From: Kristen Carlson Accardi SGX Enclave Page Cache (EPC) memory allocations are separate from normal RAM allocations, and are managed solely by the SGX subsystem. The existing cgroup memory controller cannot be used to limit or account for SGX EPC memory, which is a desirable feature in some en

[PATCH v17 12/16] x86/sgx: Implement direct reclamation for cgroups

2024-08-30 Thread Haitao Huang
sgx_reclaim_direct() was introduced to preemptively reclaim some pages as the best effort to avoid on-demand reclamation that can stall forward progress in some situations, e.g., allocating pages to load previously reclaimed page to perform EDMM operations on [1]. Currently when the global usage i

[PATCH v17 11/16] x86/sgx: Charge mem_cgroup for per-cgroup reclamation

2024-08-30 Thread Haitao Huang
Enclave Page Cache(EPC) memory can be swapped out to regular system memory, and the consumed memory should be charged to a proper mem_cgroup. Currently the selection of mem_cgroup to charge is done in sgx_encl_get_mem_cgroup(). But it considers all contexts other than the ksgxd thread are user proc

[PATCH v17 09/16] x86/sgx: Add basic EPC reclamation flow for cgroup

2024-08-30 Thread Haitao Huang
Currently in the EPC page allocation, the kernel simply fails the allocation when the current EPC cgroup fails to charge due to its usage reaching limit. This is not ideal. When that happens, a better way is to reclaim EPC page(s) from the current EPC cgroup to reduce its usage so the new allocat

[PATCH v17 04/16] cgroup/misc: Add SGX EPC resource type

2024-08-30 Thread Haitao Huang
From: Kristen Carlson Accardi Add SGX EPC memory, MISC_CG_RES_SGX_EPC, to be a valid resource type for the misc controller. Signed-off-by: Kristen Carlson Accardi Co-developed-by: Haitao Huang Signed-off-by: Haitao Huang Reviewed-by: Jarkko Sakkinen Reviewed-by: Kai Huang Tested-by: Jarkko

[PATCH v17 03/16] cgroup/misc: Expose APIs for SGX driver

2024-08-30 Thread Haitao Huang
From: Kristen Carlson Accardi The SGX EPC cgroup will reclaim EPC pages when usage in a cgroup reaches its or ancestor's limit. This requires a walk from the current cgroup up to the root similar to misc_cg_try_charge(). Expose misc_cg_parent() to enable this walk. The SGX driver also needs star

[PATCH v17 08/16] x86/sgx: Encapsulate uses of the global LRU

2024-08-30 Thread Haitao Huang
To support the per-cgroup reclamation, each cgroup will have its own "per-cgroup LRU" and EPC pages will be in its owner cgroup's LRU instead of the global LRU. Abstract the code that is directly working with the global LRU into functions reusable with per-cgroup LRUs. Currently the basic reclamat

[PATCH v17 02/16] cgroup/misc: Add per resource callbacks for CSS events

2024-08-30 Thread Haitao Huang
From: Kristen Carlson Accardi The misc cgroup controller (subsystem) currently does not perform resource type specific action for Cgroups Subsystem State (CSS) events: the 'css_alloc' event when a cgroup is created and the 'css_free' event when a cgroup is destroyed. Define callbacks for those e

[PATCH v17 01/16] x86/sgx: Replace boolean parameters with enums

2024-08-30 Thread Haitao Huang
Replace boolean parameters for 'reclaim' in the function sgx_alloc_epc_page() and its callers with an enum. Also opportunistically remove non-static declaration of __sgx_alloc_epc_page() and a typo Signed-off-by: Haitao Huang Suggested-by: Jarkko Sakkinen Suggested-by: Dave Hansen Reviewed-by:

[PATCH v17 00/16] Add Cgroup support for SGX EPC memory

2024-08-30 Thread Haitao Huang
SGX Enclave Page Cache (EPC) memory allocations are separate from normal RAM allocations, and are managed solely by the SGX subsystem. The existing cgroup memory controller cannot be used to limit or account for SGX EPC memory, which is a desirable feature in some environments, e.g., support for po

Re: [PATCH v4 4/8] uprobes: travers uprobe's consumer list locklessly under SRCU protection

2024-08-30 Thread Andrii Nakryiko
On Fri, Aug 30, 2024 at 7:33 AM Oleg Nesterov wrote: > > On 08/30, Jiri Olsa wrote: > > > > with this change the probe will not get removed in the attached test, > > it'll get 2 hits, without this change just 1 hit > > I don't understand the code in tools/...bpf../ at all, can't comment, > > > but

Re: [PATCH] vdpa/mlx5: Use random MAC address when no nic vport MAC set

2024-08-30 Thread Dragos Tatulea
Hi Cindy, On 30.08.24 15:52, Dragos Tatulea wrote: > > > On 30.08.24 11:12, Cindy Lu wrote: >> On Thu, 29 Aug 2024 at 18:00, Dragos Tatulea wrote: >>> >>> >>> >>> On 29.08.24 11:05, Cindy Lu wrote: On Wed, 28 Aug 2024 at 17:37, Dragos Tatulea wrote: > > > > On 28.08.24 11:

Re: [PATCH v4 4/8] uprobes: travers uprobe's consumer list locklessly under SRCU protection

2024-08-30 Thread Oleg Nesterov
On 08/30, Jiri Olsa wrote: > > with this change the probe will not get removed in the attached test, > it'll get 2 hits, without this change just 1 hit I don't understand the code in tools/...bpf../ at all, can't comment, > but I'm not sure it's a big problem, because seems like that's not the >

Re: [PATCH v4 4/8] uprobes: travers uprobe's consumer list locklessly under SRCU protection

2024-08-30 Thread Oleg Nesterov
On 08/29, Andrii Nakryiko wrote: > > On Thu, Aug 29, 2024 at 4:10 PM Jiri Olsa wrote: > > > > > @@ -2101,17 +2110,24 @@ static void handler_chain(struct uprobe *uprobe, > > > struct pt_regs *regs) > > > need_prep = true; > > > > > > remove &= rc; > > > +

Re: [PATCH] x86/sgx: Fix deadloop in __sgx_alloc_epc_page()

2024-08-30 Thread Dave Hansen
On 8/29/24 23:02, Aaron Lu wrote: >> Also, I do think we should probably add some kind of sanity warning to >> the SGX code in another patch. If a node on an SGX system has CPUs and >> memory, it's very likely it will also have some EPC. It can be >> something soft like a pr_info(), but I think i

Re: [PATCH v3 0/2] Fix kallsyms with CONFIG_LTO_CLANG

2024-08-30 Thread Miroslav Benes
Hi, On Wed, 7 Aug 2024, Song Liu wrote: > With CONFIG_LTO_CLANG, the compiler/linker adds .llvm. suffix to > local symbols to avoid duplications. Existing scripts/kallsyms sorts > symbols without .llvm. suffix. However, this causes quite some > issues later on. Some users of kallsyms, such as liv

Re: [PATCH] vdpa/mlx5: Use random MAC address when no nic vport MAC set

2024-08-30 Thread Dragos Tatulea
On 30.08.24 11:12, Cindy Lu wrote: > On Thu, 29 Aug 2024 at 18:00, Dragos Tatulea wrote: >> >> >> >> On 29.08.24 11:05, Cindy Lu wrote: >>> On Wed, 28 Aug 2024 at 17:37, Dragos Tatulea wrote: On 28.08.24 11:00, Cindy Lu wrote: > On Wed, 28 Aug 2024 at 09:51, Jason Wang

Re: [PATCH v4 4/8] uprobes: travers uprobe's consumer list locklessly under SRCU protection

2024-08-30 Thread Jiri Olsa
On Thu, Aug 29, 2024 at 04:31:18PM -0700, Andrii Nakryiko wrote: > On Thu, Aug 29, 2024 at 4:10 PM Jiri Olsa wrote: > > > > On Thu, Aug 29, 2024 at 11:37:37AM -0700, Andrii Nakryiko wrote: > > > uprobe->register_rwsem is one of a few big bottlenecks to scalability of > > > uprobes, so we need to g

Re: [PATCH 2/2] vdpa: Add support to update speed/duplex in vDPA/mlx5_vnet

2024-08-30 Thread Carlos Bilbao
Hello, On 8/29/24 9:31 PM, Jason Wang wrote: > On Fri, Aug 30, 2024 at 5:08 AM Dragos Tatulea wrote: >> (resending as I accidentally replied only to Carlos) >> >> On 29.08.24 18:16, Carlos Bilbao wrote: >>> From: Carlos Bilbao >>> >>> Include support to update the vDPA configuration fields of sp

Re: [PATCH vhost 1/7] vdpa/mlx5: Create direct MKEYs in parallel

2024-08-30 Thread Dragos Tatulea
On 29.08.24 17:15, Eugenio Perez Martin wrote: > On Thu, Aug 29, 2024 at 3:54 PM Dragos Tatulea wrote: >> >> >> >> On 29.08.24 15:10, Eugenio Perez Martin wrote: >>> On Wed, Aug 21, 2024 at 1:41 PM Dragos Tatulea wrote: Use the async interface to issue MTT MKEY creation. Extra c

[PATCH vhost v2 5/7] vdpa/mlx5: Rename mr_mtx -> lock

2024-08-30 Thread Dragos Tatulea
Now that the mr resources have their own namespace in the struct, give the lock a clearer name. Signed-off-by: Dragos Tatulea Reviewed-by: Cosmin Ratiu Acked-by: Eugenio Pérez --- drivers/vdpa/mlx5/core/mlx5_vdpa.h | 2 +- drivers/vdpa/mlx5/core/mr.c| 20 ++-- drivers/

[PATCH vhost v2 7/7] vdpa/mlx5: Postpone MR deletion

2024-08-30 Thread Dragos Tatulea
Currently, when a new MR is set up, the old MR is deleted. MR deletion is about 30-40% the time of MR creation. As deleting the old MR is not important for the process of setting up the new MR, this operation can be postponed. This series adds a workqueue that does MR garbage collection at a later

[PATCH vhost v2 3/7] vdpa/mlx5: Rename function

2024-08-30 Thread Dragos Tatulea
A followup patch will use this name for something else. Signed-off-by: Dragos Tatulea Reviewed-by: Cosmin Ratiu --- drivers/vdpa/mlx5/core/mlx5_vdpa.h | 2 +- drivers/vdpa/mlx5/core/mr.c| 2 +- drivers/vdpa/mlx5/net/mlx5_vnet.c | 8 3 files changed, 6 insertions(+), 6 deletion

[PATCH vhost v2 6/7] vdpa/mlx5: Introduce init/destroy for MR resources

2024-08-30 Thread Dragos Tatulea
There's currently not a lot of action happening during the init/destroy of MR resources. But more will be added in the upcoming patches. As the mr mutex lock init/destroy has been moved to these new functions, the lifetime has now shifted away from mlx5_vdpa_alloc_resources() / mlx5_vdpa_free_reso

[PATCH vhost v2 4/7] vdpa/mlx5: Extract mr members in own resource struct

2024-08-30 Thread Dragos Tatulea
Group all mapping related resources into their own structure. Upcoming patches will add more members in this new structure. Signed-off-by: Dragos Tatulea Reviewed-by: Cosmin Ratiu Acked-by: Eugenio Pérez --- drivers/vdpa/mlx5/core/mlx5_vdpa.h | 13 ++- drivers/vdpa/mlx5/core/mr.c

[PATCH vhost v2 2/7] vdpa/mlx5: Delete direct MKEYs in parallel

2024-08-30 Thread Dragos Tatulea
Use the async interface to issue MTT MKEY deletion. This makes destroy_user_mr() on average 8x times faster. This number is also dependent on the size of the MR being deleted. Signed-off-by: Dragos Tatulea Reviewed-by: Cosmin Ratiu Acked-by: Eugenio Pérez --- drivers/vdpa/mlx5/core/mr.c | 64

[PATCH vhost v2 1/7] vdpa/mlx5: Create direct MKEYs in parallel

2024-08-30 Thread Dragos Tatulea
Use the async interface to issue MTT MKEY creation. Extra care is taken at the allocation of FW input commands due to the MTT tables having variable sizes depending on MR. The indirect MKEY is still created synchronously at the end as the direct MKEYs need to be filled in. This makes create_user_

[PATCH vhost v2 0/7] vdpa/mlx5: Optimze MKEY operations

2024-08-30 Thread Dragos Tatulea
This series improves the time of .set_map() operations by parallelizing the MKEY creation and deletion for direct MKEYs. Looking at the top level MKEY creation/deletion functions, the following improvement can be seen: |---+-| | operation | improvement | |--

Re: [PATCH v4 0/8] uprobes: RCU-protected hot path optimizations

2024-08-30 Thread Oleg Nesterov
On 08/29, Andrii Nakryiko wrote: > > v3->v4: > - added back consumer_rwsem into consumer_del(), which was accidentally > omitted earlier (Jiri); still, Reviewed-by: Oleg Nesterov

[PATCH v9 3/7] remoteproc: core: Refactor resource table cleanup into rproc_release_fw

2024-08-30 Thread Arnaud Pouliquen
This patch centralizing the cleanup of the resource table into a new helper function rproc_release_fw(). Suggested-by: Mathieu Poirier Signed-off-by: Arnaud Pouliquen --- drivers/remoteproc/remoteproc_core.c | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-) diff --g

[PATCH v9 5/7] dt-bindings: remoteproc: Add compatibility for TEE support

2024-08-30 Thread Arnaud Pouliquen
The "st,stm32mp1-m4-tee" compatible is utilized in a system configuration where the Cortex-M4 firmware is loaded by the Trusted Execution Environment (TEE). For instance, this compatible is used in both the Linux and OP-TEE device trees: - In OP-TEE, a node is defined in the device tree with the

[PATCH v9 4/7] remoteproc: core: Add TEE interface support for firmware release

2024-08-30 Thread Arnaud Pouliquen
Add support for releasing remote processor firmware through the Trusted Execution Environment (TEE) interface. The tee_rproc_release_fw() function is called in the following cases: - An error occurs in rproc_start() between the loading of the segments and the start of the remote processor. - Wh

[PATCH v9 7/7] remoteproc: stm32: Add support of an OP-TEE TA to load the firmware

2024-08-30 Thread Arnaud Pouliquen
The new TEE remoteproc driver is used to manage remote firmware in a secure, trusted context. The 'st,stm32mp1-m4-tee' compatibility is introduced to delegate the loading of the firmware to the trusted execution context. In such cases, the firmware should be signed and adhere to the image format de

[PATCH v9 2/7] remoteproc: Add TEE support

2024-08-30 Thread Arnaud Pouliquen
Add a remoteproc TEE (Trusted Execution Environment) driver that will be probed by the TEE bus. If the associated Trusted application is supported on secure part this driver offers a client interface to load a firmware by the secure part. This firmware could be authenticated by the secure trusted a

[PATCH v9 6/7] remoteproc: stm32: Create sub-functions to request shutdown and release

2024-08-30 Thread Arnaud Pouliquen
To prepare for the support of TEE remoteproc, create sub-functions that can be used in both cases, with and without remoteproc TEE support. Signed-off-by: Arnaud Pouliquen --- drivers/remoteproc/stm32_rproc.c | 84 +++- 1 file changed, 51 insertions(+), 33 deletions(-

[PATCH v9 1/7] remoteproc: core: Introduce rproc_pa_to_va helper

2024-08-30 Thread Arnaud Pouliquen
When a resource table is loaded by an external entity such as U-boot or OP-TEE, we do not necessarily get the device address(da) but the physical address(pa). This helper performs similar translation than the rproc_da_to_va() but based on a physical address. Signed-off-by: Arnaud Pouliquen --- d

[PATCH v9 0/7] Introduction of a remoteproc tee to load signed firmware

2024-08-30 Thread Arnaud Pouliquen
Main updates from version V8[1]: Add support for tee_rproc_release_fw(), which allows releasing firmware that has been loaded. This service is used if an error occurs between the loading of the firmware image and the start of the remote processor. It is also called on remote processor shutdown. A

Re: [PATCH] vdpa/mlx5: Use random MAC address when no nic vport MAC set

2024-08-30 Thread Dragos Tatulea
Hi Cindy, On 30.08.24 11:29, Cindy Lu wrote: > On Fri, 30 Aug 2024 at 03:03, Dragos Tatulea wrote: >> >> >> >> On 29.08.24 12:00, Dragos Tatulea wrote: >>> >>> >>> On 29.08.24 11:05, Cindy Lu wrote: On Wed, 28 Aug 2024 at 17:37, Dragos Tatulea wrote: > > > > On 28.08.24 11

Re: [PATCH v2 16/19] gendwarfksyms: Add support for reserved structure fields

2024-08-30 Thread Miroslav Benes
Hi, On Thu, 15 Aug 2024, Sami Tolvanen wrote: > Distributions that want to maintain a stable kABI need the ability to > add reserved fields to kernel data structures that they anticipate > will be modified during the ABI support timeframe, either by LTS > updates or backports. > > With genksyms,

[PATCH v8 3/3] irqchip/loongson-eiointc: Add extioi virt extension support

2024-08-30 Thread Bibo Mao
Interrupts can be routed to maximal four virtual CPUs with one HW EIOINTC interrupt controller model, since interrupt routing is encoded with CPU bitmap and EIOINTC node combined method. Here add the EIOINTC virt extension support so that interrupts can be routed to 256 vCPUs on hypervisor mode. CP

[PATCH v8 1/3] LoongArch: KVM: Enable paravirt feature control from VMM

2024-08-30 Thread Bibo Mao
Export kernel paravirt features to user space, so that VMM can control the single paravirt feature. By default paravirt features will be the same with kvm supported features if VMM does not set it. Also a new feature KVM_FEATURE_VIRT_EXTIOI is added which can be set from user space. This feature i

[PATCH v8 2/3] LoongArch: KVM: Implement function kvm_para_has_feature

2024-08-30 Thread Bibo Mao
Function kvm_para_has_feature() is to detect supported paravirt features, it can be used by device driver to detect and enable paravirt features, such as extioi irqchip driver can detect KVM_FEATURE_VIRT_EXTIOI and do some optimization. Signed-off-by: Bibo Mao --- arch/loongarch/include/asm/kvm_

[PATCH v8 0/3] Add extioi virt extension support

2024-08-30 Thread Bibo Mao
KVM_FEATURE_VIRT_EXTIOI is paravirt feature defined with EXTIOI interrupt controller, it can route interrupt to 256 vCPUs and CPU interrupt pin IP0-IP7. Now EXTIOI irqchip is emulated in user space rather than kernel space, here interface is provided for VMM to pass this feature to KVM hypervisor.

Re: [PATCH] vdpa/mlx5: Use random MAC address when no nic vport MAC set

2024-08-30 Thread Cindy Lu
On Fri, 30 Aug 2024 at 03:03, Dragos Tatulea wrote: > > > > On 29.08.24 12:00, Dragos Tatulea wrote: > > > > > > On 29.08.24 11:05, Cindy Lu wrote: > >> On Wed, 28 Aug 2024 at 17:37, Dragos Tatulea wrote: > >>> > >>> > >>> > >>> On 28.08.24 11:00, Cindy Lu wrote: > On Wed, 28 Aug 2024 at 09:

Re: [PATCH] arm64: insn: Simulate nop and push instruction for better uprobe performance

2024-08-30 Thread Liao, Chang
在 2024/8/30 3:26, Andrii Nakryiko 写道: > On Tue, Aug 27, 2024 at 4:34 AM Liao, Chang wrote: >> >> Hi, Mark >> >> Would you like to discuss this patch further, or do you still believe >> emulating >> STP to push FP/LR into the stack in kernel is not a good idea? >> > > Please send an updated ve

Re: [PATCH] vdpa/mlx5: Use random MAC address when no nic vport MAC set

2024-08-30 Thread Cindy Lu
On Thu, 29 Aug 2024 at 18:00, Dragos Tatulea wrote: > > > > On 29.08.24 11:05, Cindy Lu wrote: > > On Wed, 28 Aug 2024 at 17:37, Dragos Tatulea wrote: > >> > >> > >> > >> On 28.08.24 11:00, Cindy Lu wrote: > >>> On Wed, 28 Aug 2024 at 09:51, Jason Wang wrote: > > On Wed, Aug 28, 2024 a

Re: [PATCH V2 2/4] remoteproc: qcom: add hexagon based WCSS secure PIL driver

2024-08-30 Thread Dmitry Baryshkov
On Thu, Aug 29, 2024 at 07:10:19PM GMT, Gokul Sriram Palanisamy wrote: > From: Vignesh Viswanathan > > Add support to bring up hexagon based WCSS secure PIL remoteproc. > IPQ5332, IPQ9574 supports secure PIL remoteproc. Could you please clarify, why this can't be handled by the qcom_q6v5_pas dri

Re: [PATCH V2 1/4] dt-bindings: remoteproc: qcom: document hexagon based WCSS secure PIL

2024-08-30 Thread Dmitry Baryshkov
On Thu, Aug 29, 2024 at 07:10:18PM GMT, Gokul Sriram Palanisamy wrote: > From: Manikanta Mylavarapu > > Add new binding document for hexagon based WCSS secure PIL remoteproc. > IPQ5332, IPQ9574 follows secure PIL remoteproc. What is the difference between PAS and secure PIL? > > Signed-off-by: