Linux Perf Users
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Zhanpeng Zhang" <zhangzhanpeng.jasper@bytedance.com>
Cc: linux-perf-users@vger.kernel.org
Subject: Re: [PATCH v14 04/10] drivers: firmware: add riscv SSE support
Date: Wed, 02 Dec 2026 07:25:22 +0000	[thread overview]
Message-ID: <sashiko-outbox-245062@kernel.org> (raw)
In-Reply-To: <20261202070003.42491-16-zhangzhanpeng.jasper@bytedance.com>

Thank you for your contribution! Sashiko AI review found 8 potential
issues to consider:
- [High] firmware: riscv_sbi_sse: sse_event_cleanup() leaks retained SSE
  events
- [High] firmware: riscv_sbi_sse: sse_cpu_teardown() mishandles CPU-up
  rollback
- [High] firmware: riscv_sbi_sse: sse_pm_notifier() unmasks SSE on
  unready/dying CPUs
- [High] firmware: riscv_sbi_sse: missing IRQ/teardown sync in
  sse_event_*_local()
- [Medium] firmware: riscv_sbi_sse: broken rollback in
  sse_event_set_target_cpu_nolock()
- [Medium] firmware: riscv_sbi_sse: sse_reboot_notifier() races with CPU
  hotplug
- [Medium] firmware: riscv_sbi_sse: missing hart and CPU bounds check in
  sse_event_register()
- [Medium] firmware: riscv_sbi_sse: sse_event_setup_all_cpus() can
  return -EOPNOTSUPP with enabled state
--

commit 21297c4ce7a4baabbefef62919213248bc5ce15c
Author: Clément Léger <cleger@rivosinc.com>

drivers: firmware: add riscv SSE support

This commit adds a firmware driver interface for RISC-V Supervisor Software
Events (SSE), allowing kernel clients to register, enable, disable, migrate,
and unregister global and per-CPU SSE events across CPU hotplug, power
management, and reboot transitions.

> diff --git a/drivers/firmware/riscv/riscv_sbi_sse.c b/drivers/firmware/riscv/riscv_sbi_sse.c
> new file mode 100644
> index 0000000000000..0cb738bab6c39
> --- /dev/null
> +++ b/drivers/firmware/riscv/riscv_sbi_sse.c
[ ... ]
> +static int sse_sbi_event_func(struct sse_event *event, unsigned long func)
> +{
> +	struct sbiret ret;
> +	u32 evt = event->evt_id;
> +	struct sse_registered_event *reg_evt = sse_get_reg_evt(event);
> +
> +	ret = sbi_ecall(SBI_EXT_SSE, func, evt, 0, 0, 0, 0, 0);
> +	if (ret.error) {
> +		pr_warn("Failed to execute func %lx, event %x, error %ld\n",
> +			func, evt, ret.error);
> +		return sse_err_map_linux_errno(ret.error);
> +	}
> +
> +	if (func == SBI_SSE_EVENT_DISABLE)
> +		reg_evt->is_enabled = false;
> +	else if (func == SBI_SSE_EVENT_ENABLE)
> +		reg_evt->is_enabled = true;
> +
> +	return 0;
> +}
> +
> +int sse_event_disable_local(struct sse_event *event)
> +{
> +	if (!sse_event_is_global(event->evt_id))
> +		lockdep_assert_preemption_disabled();
> +
> +	if (!sse_get_reg_evt(event)->is_enabled)
> +		return 0;
> +
> +	return sse_sbi_event_func(event, SBI_SSE_EVENT_DISABLE);
> +}
> +EXPORT_SYMBOL_GPL(sse_event_disable_local);
> +
> +int sse_event_enable_local(struct sse_event *event)
> +{
> +	struct sse_registered_event *reg_evt = sse_get_reg_evt(event);
> +	int ret;
> +
> +	if (!sse_event_is_global(event->evt_id))
> +		lockdep_assert_preemption_disabled();
> +
> +	rcu_read_lock();
> +	if (READ_ONCE(sse_shutting_down)) {
> +		ret = -ESHUTDOWN;
> +		goto out;
> +	}
> +
> +	if (!reg_evt->is_registered) {
> +		ret = -EINVAL;
> +		goto out;
> +	}
> +
> +	if (reg_evt->is_enabled) {
> +		ret = 0;
> +		goto out;
> +	}
> +
> +	ret = sse_sbi_event_func(event, SBI_SSE_EVENT_ENABLE);
> +out:
> +	rcu_read_unlock();
> +
> +	return ret;
> +}
> +EXPORT_SYMBOL_GPL(sse_event_enable_local);

[Severity: High]
Can an interrupt calling sse_event_disable_local() or
sse_event_enable_local() race with an in-progress local operation or
sse_teardown_event() and trigger SBI_ERR_INVALID_STATE (-EINVAL)?

sse_event_disable_local(), sse_event_enable_local(), and
sse_cpu_teardown() only disable preemption, not local interrupts, and
sse_sbi_event_func() updates reg_evt->is_enabled after sbi_ecall()
returns:

sse_cpu_teardown()
  sse_teardown_event()
    sse_event_disable_local()
      sse_sbi_event_func(..., SBI_SSE_EVENT_DISABLE)
        sbi_ecall(..., SBI_SSE_EVENT_DISABLE, ...)
        <hardirq: perf_mux_hrtimer_handler() -> pmu_sbi_sse_disable()>
          sse_event_disable_local()
            if (!reg_evt->is_enabled)  /* still true */
            sbi_ecall(..., SBI_SSE_EVENT_DISABLE, ...)  <-- returns -EINVAL

During reboot or kexec, sse_reboot_nb runs before perf is torn down, so a
perf timer interrupt can race with sse_teardown_event() and cause
SBI_SSE_EVENT_DISABLE to fail with -EINVAL, aborting teardown before
sse_sbi_unregister_event(), setting sse_teardown_failed, and panicking on
kexec.

Similarly, during normal CPU offline (when sse_shutting_down is false) or
global event migration in sse_event_set_target_cpu_nolock(), an interrupt
firing after sse_event_disable_local() while reg_evt->is_registered is
still true can re-enable the event via sse_event_enable_local() before
SBI_SSE_EVENT_UNREGISTER or SBI_SSE_EVENT_ATTR_WRITE runs, causing
firmware to reject the unregister or attribute write with -EINVAL.

Also, in sse_event_enable_local(), sse_get_reg_evt(event) calls
smp_processor_id() before lockdep_assert_preemption_disabled(), and in
sse_restore_local_events(), an aborted CPU offline restores per-CPU enable
state from event->enable_requested rather than the per-CPU state that was
active before sse_cpu_teardown() disabled it.

[ ... ]
> +static int sse_event_set_target_cpu_nolock(struct sse_event *event,
> +					   unsigned int cpu)
> +{
[ ... ]
> +	was_enabled = reg_evt->is_enabled;
> +	if (was_enabled) {
> +		ret = sse_event_disable_local(event);
> +		if (ret)
> +			return ret;
> +	}
> +
> +	ret = sse_event_attr_set_nolock(reg_evt, SBI_SSE_ATTR_PREFERRED_HART,
> +					hart_id);
> +	if (ret == 0)
> +		sse_global_event_update_cpu(event, cpu);
> +
> +	if (was_enabled) {
> +		int enable_ret;
> +
> +		enable_ret = sse_event_enable_local(event);
> +		if (enable_ret) {
> +			int rollback_ret;
> +
> +			/*
> +			 * The preferred hart was already changed. Restore both the
> +			 * firmware attribute and Linux's cached target before reporting
> +			 * the failed migration.
> +			 */
> +			rollback_ret = sse_event_attr_set_nolock(reg_evt,
> +								 SBI_SSE_ATTR_PREFERRED_HART,
> +								 old_hart_id);
> +			if (!rollback_ret) {
> +				sse_global_event_update_cpu(event, old_cpu);
> +				rollback_ret = sse_event_enable_local(event);
> +			}
> +			if (!rollback_ret)
> +				return enable_ret;
> +
> +			pr_warn("Failed to restore global event %x to CPU %u: %d\n",
> +				evt, old_cpu, rollback_ret);
> +			event->enable_requested = false;
> +			return enable_ret;
> +		}
> +	}
> +
> +	return ret;
> +}

[Severity: Medium]
In sse_event_set_target_cpu_nolock(), does the if (enable_ret) rollback
path run even when sse_event_attr_set_nolock() failed (ret != 0) and the
preferred hart was never changed?

When ret != 0 and re-enabling the event on the original hart also fails,
this path redundantly writes old_hart_id back to
SBI_SSE_ATTR_PREFERRED_HART, retries sse_event_enable_local(), and returns
enable_ret instead of the initial attribute-write error ret.

Conversely, when ret == 0 (so sse_global_event_update_cpu() has already
updated event->cpu to cpu) and both sse_event_enable_local() and the
rollback sse_event_attr_set_nolock() fail, the function returns enable_ret
with event->cpu left set to the new cpu, causing sse_cpu_teardown() to
abort CPU offline even though the event was already moved to next_cpu and
disabled.

[ ... ]
> +void sse_event_cleanup(struct sse_event *event)
> +{
> +	guard(mutex)(&sse_mutex);
> +	guard(cpus_read_lock)();
> +
> +	if (event->cleanup_pending)
> +		return;
> +
> +	/*
> +	 * Firmware may still enter the old callback after disable or unregister
> +	 * fails. Publish a core-owned callback, then wait before the client frees
> +	 * its callback data.
> +	 */
> +	event->cleanup_pending = true;
> +	rcu_assign_pointer(event->handler, sse_cleanup_event_handler);
> +	synchronize_rcu();
> +}
> +EXPORT_SYMBOL_GPL(sse_event_cleanup);
> +
> +static void sse_release_cleanup_event(struct sse_event *event)
> +{
> +	if (!event->cleanup_pending || sse_event_is_registered(event))
> +		return;
> +
> +	list_del(&event->list);
> +	sse_event_free(event);
> +}

[Severity: High]
Does sse_event_cleanup() leak struct sse_event and leave its evt_id
permanently blocked on the global events list when all instances are
already unregistered or when called after a disable failure?

Per include/linux/riscv_sbi_sse.h, sse_event_cleanup() transfers a
retained event to the SSE core so the caller never accesses it again.
However, sse_event_cleanup() never calls sse_release_cleanup_event(event).
If the event is already unregistered when sse_event_cleanup() acquires
sse_mutex (for example, when sse_reboot_notifier() has already run
cpuhp_remove_state() and the client's teardown then hits -ESHUTDOWN in
sse_event_unregister(), or when the last registered CPU goes offline
between a failed sse_event_unregister() and sse_event_cleanup()),
sse_cpu_teardown() ran while event->cleanup_pending was still false, and
sse_event_cleanup() sets event->cleanup_pending = true without freeing the
event.

In addition, if a client calls sse_event_cleanup() after
sse_event_disable() fails without calling sse_event_unregister(),
sse_event_cleanup() does not clear event->enable_requested or tear down
the online instances that can still be disabled and unregistered.  Those
instances remain registered in firmware, keeping the event allocated and
causing future sse_event_register() calls for that evt_id to fail with
-EEXIST.

> +static int sse_event_setup_all_cpus(struct sse_event *event,
> +				    unsigned long func,
> +				    unsigned long rollback_func)
> +{
> +	struct sse_per_cpu_evt cpu_evt;
> +	int rollback_ret;
> +	int ret;
> +
> +	cpu_evt.event = event;
> +	atomic_set(&cpu_evt.first_error, 0);
> +	atomic_set(&cpu_evt.nonfallback_error, 0);
> +	cpumask_clear(&cpu_evt.changed);
> +	cpu_evt.func = func;
> +	on_each_cpu(sse_event_per_cpu_func, &cpu_evt, 1);
> +	/* IRQ fallback is safe only if every failing CPU reports unsupported. */
> +	ret = atomic_read(&cpu_evt.nonfallback_error);
> +	if (!ret)
> +		ret = atomic_read(&cpu_evt.first_error);
> +	/*
> +	 * A previous attempt may already have changed some CPUs. Roll back only
> +	 * instances changed by this invocation.
> +	 */
> +	if (ret) {
> +		cpu_evt.func = rollback_func;
> +		atomic_set(&cpu_evt.first_error, 0);
> +		atomic_set(&cpu_evt.nonfallback_error, 0);
> +		on_each_cpu_mask(&cpu_evt.changed, sse_event_per_cpu_func, &cpu_evt, 1);
> +
> +		rollback_ret = atomic_read(&cpu_evt.nonfallback_error);
> +		if (!rollback_ret)
> +			rollback_ret = atomic_read(&cpu_evt.first_error);
> +
> +		/* A rollback failure leaves the firmware state uncertain. */
> +		return rollback_ret ?: ret;
> +	}
> +
> +	return 0;
> +}
[ ... ]
> +int sse_event_enable(struct sse_event *event)
> +{
> +	int ret = 0;
> +
> +	scoped_guard(mutex, &sse_mutex) {
> +		if (READ_ONCE(sse_shutting_down))
> +			return -ESHUTDOWN;
> +
> +		scoped_guard(cpus_read_lock) {
> +			if (sse_event_is_global(event->evt_id)) {
> +				ret = sse_event_enable_local(event);
> +			} else {
> +				ret = sse_event_setup_all_cpus(event,
> +							       SBI_SSE_EVENT_ENABLE,
> +							       SBI_SSE_EVENT_DISABLE);
> +			}
> +			event->enable_requested = !ret;
> +		}
> +	}
> +
> +	return ret;
> +}
> +EXPORT_SYMBOL_GPL(sse_event_enable);

[Severity: Medium]
Can sse_event_setup_all_cpus() and sse_event_enable() return -EOPNOTSUPP
while local event instances remain enabled in firmware?

If the forward pass in sse_event_setup_all_cpus() enables the event on one
CPU and fails on another (even with a non-fallback error such as -EINVAL),
and the rollback SBI_SSE_EVENT_DISABLE call then fails with
SBI_ERR_NOT_SUPPORTED (-EOPNOTSUPP), returning rollback_ret ?: ret
overwrites ret with -EOPNOTSUPP.  Similarly, if any CPU was already
enabled before sse_event_enable() was called (so it was not added to
cpu_evt.changed) and another CPU fails with -EOPNOTSUPP,
sse_event_enable() returns -EOPNOTSUPP without checking
sse_event_is_enabled(event), telling clients that IRQ fallback is safe
while firmware still has the SSE event enabled on at least one hart.

[ ... ]
> +struct sse_event *sse_event_register(u32 evt, u32 priority,
> +				     sse_event_handler_fn *handler, void *arg)
> +{
[ ... ]
> +	if (sse_event_is_global(evt)) {
> +		unsigned long preferred_hart;
> +
> +		ret = sse_event_attr_get_no_lock(event->global,
> +						 SBI_SSE_ATTR_PREFERRED_HART,
> +						 &preferred_hart);
> +		if (ret)
> +			return sse_register_failed(event, ret);
> +
> +		cpu = riscv_hartid_to_cpuid(preferred_hart);
> +		if (cpu < 0 || !cpu_online(cpu)) {
> +			cpu = cpumask_first(cpu_online_mask);

[Severity: Medium]
Can cpu_online(cpu) read past nr_cpu_ids when firmware reports
preferred_hart == INVALID_HARTID or a hart ID mapped at an index >=
nr_cpu_ids?

In arch/riscv/kernel/smp.c, __cpuid_to_hartid_map[NR_CPUS] initializes all
NR_CPUS slots to INVALID_HARTID and riscv_hartid_to_cpuid() scans all
NR_CPUS entries:

arch/riscv/kernel/smp.c:riscv_hartid_to_cpuid() {
	for (i = 0; i < NR_CPUS; i++)
		if (cpuid_to_hartid_map(i) == hartid)
			return i;

	return -ENOENT;
}

When nr_cpu_ids < NR_CPUS, unpopulated slots at index >= nr_cpu_ids still
contain INVALID_HARTID, so riscv_hartid_to_cpuid(INVALID_HARTID) returns
an index >= nr_cpu_ids rather than -ENOENT.  Passing cpu >= nr_cpu_ids to
cpu_online(cpu) triggers WARN_ON_ONCE(cpu >= small_cpumask_bits) in
cpumask_check() (under CONFIG_DEBUG_PER_CPU_MAPS) and accesses
cpu_online_mask out of bounds; checking cpu >= nr_cpu_ids before
cpu_online(cpu) (as sse_event_set_target_cpu_nolock() does) avoids this.

[ ... ]
> +static int sse_cpu_teardown(unsigned int cpu)
> +{
> +	/* Only a regular CPU-offline callback may abort the CPUHP operation. */
> +	bool regular_offline = READ_ONCE(sse_available) &&
> +			       !READ_ONCE(sse_shutting_down);
> +	unsigned int next_cpu;
> +	struct sse_event *event, *tmp;
> +	int first_error = 0;
> +	int ret;
> +
> +	/* Do not dismantle CPU state while firmware can still deliver SSE. */
> +	ret = sse_events_mask();
> +	if (ret) {
> +		pr_warn("Failed to mask SSE on CPU %u during teardown: %d\n",
> +			cpu, ret);
> +		if (READ_ONCE(sse_shutting_down))
> +			atomic_set(&sse_teardown_failed, 1);
> +		/* CPUHP installation rollback and state removal cannot fail. */
> +		return regular_offline ? ret : 0;
> +	}
> +
> +	list_for_each_entry_safe(event, tmp, &events, list) {
> +		if (sse_event_is_global(event->evt_id))
> +			continue;
> +
> +		scoped_guard(preempt)
> +			ret = sse_teardown_event(event, cpu);
> +		if (ret && !first_error)
> +			first_error = ret;
> +		sse_release_cleanup_event(event);
> +		if (ret && regular_offline)
> +			goto restore_cpu;
> +	}
[ ... ]
> +	if (first_error) {
> +		/* An offline CPU is not revisited when this CPUHP state is removed. */
> +		atomic_set(&sse_teardown_failed, 1);
> +	}
> +
> +	return 0;
> +
> +restore_cpu:
> +	/*
> +	 * CPUHP leaves this CPU online when teardown returns an error. Restore
> +	 * every client-owned local event before making SSE delivery visible again.
> +	 */
> +	ret = sse_restore_local_events(cpu);
> +	if (!ret)
> +		ret = sse_events_unmask();
> +	if (ret) {
> +		atomic_set(&sse_teardown_failed, 1);
> +		pr_warn("Failed to restore SSE after aborting CPU %u offline: %d\n",
> +			cpu, ret);
> +	} else {
> +		pr_warn("Aborted CPU %u offline after SSE teardown failed: %d\n",
> +			cpu, first_error);
> +	}
> +
> +	return first_error;
> +}

[Severity: High]
What happens in sse_cpu_teardown() when a post-boot _cpu_up() fails at a
hotplug state after CPUHP_AP_RISCV_SSE_ONLINE and rolls back?

After sse_init() sets sse_available = true, regular_offline is true during
a post-boot CPU-up rollback.  If a teardown call fails in
sse_cpu_teardown() during that rollback, jumping to restore_cpu
re-registers and re-enables local events, unmasks SSE on the hart, leaves
sse_teardown_failed unset if restore_cpu succeeds, and returns non-zero
first_error.  In kernel/cpu.c, returning an error from a teardown callback
during rollback triggers WARN_ON_ONCE(st->rollback) in cpuhp_thread_fun()
and stops remaining AP teardown callbacks, while cpuhp_up_callbacks()
proceeds to take the CPU down via takedown_cpu() with SSE unmasked and
events still registered in firmware.  Similarly, if sse_events_mask()
fails during a post-boot rollback, sse_cpu_teardown() returns ret without
setting sse_teardown_failed.

> +static int sse_pm_notifier(struct notifier_block *nb, unsigned long action,
> +			   void *data)
> +{
> +	int ret;
> +
> +	WARN_ON_ONCE(preemptible());
> +
> +	switch (action) {
> +	case CPU_PM_ENTER:
> +		ret = sse_events_mask();
> +		break;
> +	case CPU_PM_EXIT:
> +	case CPU_PM_ENTER_FAILED:
> +		if (READ_ONCE(sse_shutting_down))
> +			return NOTIFY_OK;
> +		ret = sse_events_unmask();
> +		break;
> +	default:
> +		return NOTIFY_DONE;
> +	}
> +
> +	if (ret)
> +		return notifier_from_errno(ret);
> +
> +	return NOTIFY_OK;
> +}

[Severity: High]
Does sse_pm_notifier() unmask SSE on a CPU before sse_cpu_online() has
initialized it or after sse_cpu_teardown() has already masked it?

sse_pm_notifier() unconditionally calls sse_events_unmask() on CPU_PM_EXIT
and CPU_PM_ENTER_FAILED whenever sse_shutting_down is false, without
checking whether SSE is currently active on this CPU:

_cpu_down()
  /* CPUHP_AP_RISCV_SSE_ONLINE */
  sse_cpu_teardown()
    sse_events_mask()
    /* tears down local events, migrates global events */
  /* cpuhp/%u parks at CPUHP_AP_ONLINE_IDLE; idle task runs until
   * takedown_cpu() at CPUHP_TEARDOWN_CPU (above CPUHP_AP_CPU_PM_STARTING)
   */
  do_idle()
    cpuidle_idle_call()
      cpu_pm_enter()
      cpu_pm_exit()
        sse_pm_notifier(..., CPU_PM_EXIT, ...)
          sse_events_unmask()  <-- unmasks SSE after teardown

The same premature unmasking can happen on CPU_PM_EXIT before
sse_cpu_online() runs (between cpu_pm_register_notifier() and
cpuhp_setup_state() in sse_init(), or on a newly onlined CPU idling at
CPUHP_AP_ONLINE_IDLE before cpuhp/%u reaches CPUHP_AP_RISCV_SSE_ONLINE,
before arch_sse_init_cpu() has set __sbi_sse_entry_task), or after an
aborted CPU offline where sse_restore_local_events() failed and
intentionally left the hart masked.

[ ... ]
> +/*
> + * Mask all CPUs and unregister all events on reboot or kexec.
> + */
> +static int sse_reboot_notifier(struct notifier_block *nb, unsigned long action,
> +			       void *data)
> +{
> +	int ret;
> +
> +	scoped_guard(mutex, &sse_mutex) {
> +		if (!sse_shutting_down) {
> +			WRITE_ONCE(sse_shutting_down, true);
> +			ret = cpu_pm_unregister_notifier(&sse_pm_nb);
> +			if (ret) {
> +				pr_warn("Failed to unregister CPU PM notifier: %d\n",
> +					ret);
> +				atomic_set(&sse_teardown_failed, 1);
> +			}
> +			/* Drain CPU PM callbacks and client enables before teardown. */
> +			synchronize_rcu();
> +			cpuhp_remove_state(CPUHP_AP_RISCV_SSE_ONLINE);
> +		}
> +	}
> +
> +	/* Normal kexec preserves firmware state but discards old kernel memory. */
> +	if (kexec_in_progress && atomic_read(&sse_teardown_failed))
> +		panic("SSE teardown failed; refusing unsafe kexec");
> +
> +	return NOTIFY_OK;
> +}

[Severity: Medium]
Can setting sse_shutting_down in sse_reboot_notifier() without holding
cpus_read_lock() race with an in-progress sse_cpu_teardown() or
sse_cpu_online() and trigger a kexec panic?

Normal CPU hotplug callbacks hold cpus_write_lock() but not sse_mutex, and
reboot notifiers run before migrate_to_reboot_cpu() disables CPU hotplug:

CPU0 (sse_cpu_teardown)           CPU1 (sse_reboot_notifier)
regular_offline = true;
...
                                  mutex_lock(&sse_mutex);
                                  WRITE_ONCE(sse_shutting_down, true);
sse_event_set_target_cpu_nolock()
  sse_event_enable_local()
    /* returns -ESHUTDOWN */
goto restore_cpu;
sse_restore_local_events()
  sse_event_enable_local()
    /* returns -ESHUTDOWN */
atomic_set(&sse_teardown_failed, 1);
                                  cpuhp_remove_state(...);
                                  if (kexec_in_progress &&
                                      atomic_read(&sse_teardown_failed))
                                    panic(...);  <-- panics on kexec

Even when no firmware call fails, sse_shutting_down flipping to true in
the middle of sse_cpu_teardown() causes sse_event_enable_local() to fail
with -ESHUTDOWN during global event migration and restore_cpu rollback,
leaving SSE masked on the CPU, setting sse_teardown_failed, and panicking
if kexec_in_progress is set.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261202070003.42491-12-zhangzhanpeng.jasper@bytedance.com?part=4

  reply	other threads:[~2026-12-02  7:25 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-02  7:00 [PATCH v14 00/10] riscv: add SBI Supervisor Software Events support Zhanpeng Zhang
2026-12-02  7:00 ` [PATCH v14 01/10] riscv: add SBI SSE extension definitions Zhanpeng Zhang
2026-12-02  7:00 ` [PATCH v14 02/10] riscv: add support for SBI Supervisor Software Events extension Zhanpeng Zhang
2026-12-02  7:21   ` sashiko-bot
2026-12-02  7:00 ` [PATCH v14 03/10] riscv: sse: mask events during shutdown and kexec Zhanpeng Zhang
2026-12-02  7:29   ` sashiko-bot
2026-12-02  7:00 ` [PATCH v14 04/10] drivers: firmware: add riscv SSE support Zhanpeng Zhang
2026-12-02  7:25   ` sashiko-bot [this message]
2026-12-02  7:00 ` [PATCH v14 05/10] riscv: mm: avoid enabling interrupts for nofault page faults Zhanpeng Zhang
2026-12-02  7:00 ` [PATCH v14 06/10] perf: RISC-V: support callchains with SSE delivery Zhanpeng Zhang
2026-12-02  7:47   ` sashiko-bot
2026-12-02  7:00 ` [PATCH v14 07/10] perf: RISC-V: add support for SSE event Zhanpeng Zhang
2026-12-02  7:33   ` sashiko-bot
2026-12-02  7:00 ` [PATCH v14 08/10] MAINTAINERS: add RISC-V SSE maintainers and file coverage Zhanpeng Zhang
2026-12-02  7:00 ` [PATCH v14 09/10] selftests/riscv: add SSE test module Zhanpeng Zhang
2026-12-02  7:26   ` sashiko-bot
2026-12-02  7:00 ` [PATCH v14 10/10] selftests/riscv: add perf user-stack SSE copy regression test Zhanpeng Zhang
2026-12-02  7:24   ` sashiko-bot
2026-12-02  7:47 ` [PATCH v14 00/10] riscv: add SBI Supervisor Software Events support sashiko-bot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=sashiko-outbox-245062@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=zhangzhanpeng.jasper@bytedance.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox