[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20191209235520.18727-9-pierre-louis.bossart@linux.intel.com>
Date: Mon, 9 Dec 2019 17:55:16 -0600
From: Pierre-Louis Bossart <pierre-louis.bossart@...ux.intel.com>
To: alsa-devel@...a-project.org
Cc: linux-kernel@...r.kernel.org, tiwai@...e.de, broonie@...nel.org,
vkoul@...nel.org, gregkh@...uxfoundation.org, jank@...ence.com,
srinivas.kandagatla@...aro.org, slawomir.blauciak@...el.com,
Bard liao <yung-chuan.liao@...ux.intel.com>,
Rander Wang <rander.wang@...ux.intel.com>,
Ranjani Sridharan <ranjani.sridharan@...ux.intel.com>,
Pierre-Louis Bossart <pierre-louis.bossart@...ux.intel.com>,
Sanyog Kale <sanyog.r.kale@...el.com>
Subject: [PATCH v4 08/11] soundwire: intel: add link_list to handle interrupts with a single thread
From: Bard Liao <yung-chuan.liao@...ux.intel.com>
In MSI mode, the use of separate handlers and threads for the Intel
IPC, stream and SoundWire shared interrupt leads to timeouts and lost
interrupts.
The solution is to merge all interrupt handling across all links with
a single thread function. The use of a linked list enables this thread
function to walk through all contexts and figure out which link needs
attention.
Signed-off-by: Bard Liao <yung-chuan.liao@...ux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@...ux.intel.com>
---
include/linux/soundwire/sdw_intel.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/linux/soundwire/sdw_intel.h b/include/linux/soundwire/sdw_intel.h
index 47b7678ca2ab..2cf92724864c 100644
--- a/include/linux/soundwire/sdw_intel.h
+++ b/include/linux/soundwire/sdw_intel.h
@@ -68,6 +68,7 @@ struct sdw_intel_link_res;
* @handle: ACPI parent handle
* @links: information for each link (controller-specific and kept
* opaque here)
+ * @link_list: list to handle interrupts across all links
*/
struct sdw_intel_ctx {
int count;
@@ -75,6 +76,7 @@ struct sdw_intel_ctx {
u32 link_mask;
acpi_handle handle;
struct sdw_intel_link_res *links;
+ struct list_head link_list;
};
/**
--
2.20.1
Powered by blists - more mailing lists