Skip to contentSkip to conversation

ACPI / LPSS: enable hard LLP for DMA

PATCH Superseded Andy Shevchenko 3 participants 4 messages Nov 8, 2016 – Nov 17, 2016 ACPI

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ACPI / LPSS: enable hard LLP for DMA

Right now the DMA support of hard LLP is fused. Enable it via specific message sent to SoC at run time.

---
 drivers/acpi/acpi_lpss.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
drivers/acpi/acpi_lpss.c +5 -3
index 5520102..c471239 100644
@@ -724,13 +724,14 @@ static int acpi_lpss_resume_early(struct device *dev)
 #define LPSS_GPIODEF0_DMA1_D3		BIT(2)
 #define LPSS_GPIODEF0_DMA2_D3		BIT(3)
 #define LPSS_GPIODEF0_DMA_D3_MASK	GENMASK(3, 2)
+#define LPSS_GPIODEF0_DMA_LLP		BIT(13)
 
 static DEFINE_MUTEX(lpss_iosf_mutex);
 
 static void lpss_iosf_enter_d3_state(void)
 {
 	u32 value1 = 0;
-	u32 mask1 = LPSS_GPIODEF0_DMA_D3_MASK;
+	u32 mask1 = LPSS_GPIODEF0_DMA_D3_MASK | LPSS_GPIODEF0_DMA_LLP;
 	u32 value2 = LPSS_PMCSR_D3hot;
 	u32 mask2 = LPSS_PMCSR_Dx_MASK;
 	/*
@@ -774,8 +775,9 @@ static void lpss_iosf_enter_d3_state(void)
 
 static void lpss_iosf_exit_d3_state(void)
 {
-	u32 value1 = LPSS_GPIODEF0_DMA1_D3 | LPSS_GPIODEF0_DMA2_D3;
-	u32 mask1 = LPSS_GPIODEF0_DMA_D3_MASK;
+	u32 value1 = LPSS_GPIODEF0_DMA1_D3 | LPSS_GPIODEF0_DMA2_D3 |
+		     LPSS_GPIODEF0_DMA_LLP;
+	u32 mask1 = LPSS_GPIODEF0_DMA_D3_MASK | LPSS_GPIODEF0_DMA_LLP;
 	u32 value2 = LPSS_PMCSR_D0;
 	u32 mask2 = LPSS_PMCSR_Dx_MASK;
 
Signature · 1 line
2.9.3
Tested-by on v1 1/1
#1 lore raw
Quoted 2 lines · Andy Shevchenko

Right now the DMA support of hard LLP is fused. Enable it via specific message sent to SoC at run time.

It would help the reviewer if you explain what hard LLP actually means ;-)

Quoted 1 line

I tested this on Minnowboard MAX using SPI and DMA still works fine even if using larger (>4k) blocks.

#2 lore raw
Quoted 7 lines · Mika Westerberg
Quoted 3 lines · Andy Shevchenko

Right now the DMA support of hard LLP is fused. Enable it via specific message
sent to SoC at run time.

It would help the reviewer if you explain what hard LLP actually means ;-)

Rafael, shall I fix commit message and resend?

Quoted 8 lines
Quoted 2 lines

I tested this on Minnowboard MAX using SPI and DMA still works fine even
if using larger (>4k) blocks.

Thanks!

Signature · 2 lines
Andy Shevchenko <[email protected]>
Intel Finland Oy
#3 lore raw
Quoted 10 lines · Andy Shevchenko
Quoted 7 lines · Mika Westerberg
Quoted 3 lines · Andy Shevchenko

Right now the DMA support of hard LLP is fused. Enable it via specific message
sent to SoC at run time.

It would help the reviewer if you explain what hard LLP actually means ;-)

Rafael, shall I fix commit message and resend?

Not strictly necessary, but if you can do that, it would be nice. :-)

Thanks,
Rafael