[PATCH v16 0/5] Enable automatic SVN updates for SGX enclaves

2025-10-10 Thread Elena Reshetova
Changes since v15: - rebased on x86_tip master - added tested-by tags Changes since v14 following reviews by Dave ad Kai: - added mutex to sgx_dec_usage_count() - fixed a formatting issue pointed by Kai - added review-by from Kai on patches 4-5 Changes since v13 following reviews by Kai:

[PATCH v16 2/5] x86/cpufeatures: Add X86_FEATURE_SGX_EUPDATESVN feature flag

2025-10-10 Thread Elena Reshetova
Add a flag indicating whenever ENCLS[EUPDATESVN] SGX instruction is supported. This will be used by SGX driver to perform CPU SVN updates. Reviewed-by: Jarkko Sakkinen Reviewed-by: Kai Huang Reviewed-by: Dave Hansen Signed-off-by: Elena Reshetova Tested-by: Nataliia Bondarevska --- arch/x86/

[PATCH v16 3/5] x86/sgx: Define error codes for use by ENCLS[EUPDATESVN]

2025-10-10 Thread Elena Reshetova
Add error codes for ENCLS[EUPDATESVN], then SGX CPUSVN update process can know the execution state of EUPDATESVN and notify userspace. EUPDATESVN will be called when no active SGX users is guaranteed. Only add the error codes that can legally happen. E.g., it could also fail due to "SGX not ready"

Re: [PATCH RESENT v4 4/6] vdpa: validate device feature provisioning against supported class

2025-10-10 Thread Eugenio Perez Martin
On Fri, Oct 10, 2025 at 6:44 AM Si-Wei Liu wrote: > > > > On 10/2/2025 12:27 AM, Eugenio Perez Martin wrote: > > On Thu, Oct 2, 2025 at 1:27 AM Si-Wei Liu wrote: > >> Hi Eugenio, > >> > >> On 10/1/2025 6:26 AM, Eugenio Perez Martin wrote: > >>> On Tue, Feb 7, 2023 at 12:15 AM Si-Wei Liu wrote: >

Re: [RFC 1/2] vduse: support feature provisioning

2025-10-10 Thread Eugenio Perez Martin
On Fri, Oct 10, 2025 at 6:40 AM Si-Wei Liu wrote: > > > > On 10/2/2025 3:35 AM, Eugenio Pérez wrote: > > This patch implements features provisioning for vduse devices. This > > allows the device provisioner to clear the features exposed by the > > userland device, so the driver never see them. T

[PATCH RFC 6/6] arm64: dts: qcom: sm7225-fairphone-fp4: Add battery temperature node

2025-10-10 Thread Luca Weiss
Add a generic-adc-thermal node to convert the voltage read by the battery temperature ADC into degree Celsius using the provided lookup table. This will later be used as input for the fuel gauge node (QGauge on the PM7250B). Signed-off-by: Luca Weiss --- arch/arm64/boot/dts/qcom/sm7225-fairphon

[PATCH v2 0/7] remoteproc: core: misc update

2025-10-10 Thread Peng Fan
This patchset is a misc update of remoteproc_core.c. Patch 1: Drop a pointless initialization to variable ret Patch 2-3: Cleanup the included headers Patch 4: Use cleanup.h to simplify code Patch 5: Remove export of rproc_va_to_pa Patch 6: Update stm32_rproc auto_boot assignment. Patch 7: Use 1-bit

Re: [PATCH v3 3/4] gpio: imx-rpmsg: add imx-rpmsg GPIO driver

2025-10-10 Thread Mathieu Poirier
On Fri, Oct 10, 2025 at 12:58:38AM +0200, Andrew Lunn wrote: > On Thu, Oct 09, 2025 at 05:27:15PM -0500, Shenwei Wang wrote: > > On i.MX SoCs, the system may include two processors: > > - An MCU running an RTOS > > - An MPU running Linux > > > > These processors communicate via the RPMSG p

Re: [PATCH v8 7/8] modpost: Create modalias for builtin modules

2025-10-10 Thread Alexey Gladkov
On Thu, Oct 09, 2025 at 10:37:36PM -0700, Nathan Chancellor wrote: > On Thu, Oct 09, 2025 at 09:52:08PM +0200, Nicolas Schier wrote: > > On Tue, Oct 07, 2025 at 12:15:21PM +0200, Alexey Gladkov wrote: > > > Hm. Indeed. I haven't found a good solution yet, but you can use the > > > following patch t

Re: [PATCH v2] Fix to avoid the usage of the `res` variable uninitialized in the following macro expansions.

2025-10-10 Thread Jason Gunthorpe
On Wed, Oct 08, 2025 at 03:24:29PM +0200, Alessandro Zanni wrote: > Let me know which version is preferable. I already applied your fix for this, no need to resend Jason

Re: [PATCH v2 4/7] remoteproc: core: Use cleanup.h macros to simplify lock handling

2025-10-10 Thread Andrew Davis
On 10/10/25 7:24 AM, Peng Fan wrote: Replace manual mutex_lock/unlock and error-handling patterns with cleanup.h macros (ACQUIRE, ACQUIRE_ERR, and scoped_guard) to streamline lock management. As a result, several goto labels and redundant error paths are eliminated. No functional changes. Signe

Re: [PATCH v2 1/7] remoteproc: core: Drop redundant initialization of 'ret' in rproc_shutdown()

2025-10-10 Thread Andrew Davis
On 10/10/25 7:24 AM, Peng Fan wrote: The variable ret is immediately assigned the return value of mutex_lock_interruptible(), making its prior initialization to zero unnecessary. Remove the redundant assignment No functional changes. Signed-off-by: Peng Fan --- Acked-by: Andrew Davis dr