All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 0/3] ACPI: OSL/EC: Use spin locks without disabling interrupts
@ 2023-12-15 11:23 Rafael J. Wysocki
  2023-12-15 11:25 ` [PATCH v1 1/3] ACPI: OSL: " Rafael J. Wysocki
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Rafael J. Wysocki @ 2023-12-15 11:23 UTC (permalink / raw)
  To: Linux ACPI
  Cc: LKML, Zhang Rui, Srinivas Pandruvada, Michal Wilczynski,
	Hans de Goede, Andy Shevchenko, Mika Westerberg, Heikki Krogerus,
	Mario Limonciello, Daniel Drake

Hi Everyone,

After

https://patchwork.kernel.org/project/linux-acpi/patch/5745568.DvuYhMxLoT@kreacher/

the SCI interrupt handler is threaded, so ACPICA spin locks can be used without
disabling interrupts, because they cannot be acquired from a hardirq handler
running on the same CPU as any code already holding the spin lock.  This patch
[1/3] removes disabling interrupts from acpi_os_acquire_lock() and updates
acpi_os_release_lock() accordingly.

Patch [2/2] uses the observation that if acpi_handle_interrupt() can run
in a threaded interrupt handler in the GPE case, it can also run in a threaded
interrupt handler in the dedicated IRQ case, so it makes the EC driver use a
threaded handler for the dedicated EC interrupt.

Patch [3/3], in analogy with patch [1/3], uses the observation that after patch
[2/2] all of the EC code runs in thread context, so it need not disable
interrupts on the local CPU before acquiring a spin lock, so the EC driver is
updated to operate its spin lock without disabling interrupts.

Thanks!




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-12-28 13:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-15 11:23 [PATCH v1 0/3] ACPI: OSL/EC: Use spin locks without disabling interrupts Rafael J. Wysocki
2023-12-15 11:25 ` [PATCH v1 1/3] ACPI: OSL: " Rafael J. Wysocki
2023-12-15 11:26 ` [PATCH v1 2/3] ACPI: EC: Use a threaded handler for dedicated IRQ Rafael J. Wysocki
2023-12-15 11:27 ` [PATCH v1 3/3] ACPI: EC: Use a spin lock without disabing interrupts Rafael J. Wysocki
2023-12-28 13:18 ` [PATCH v1 0/3] ACPI: OSL/EC: Use spin locks without disabling interrupts Rafael J. Wysocki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.