Skip to contentSkip to conversation

ACPICA: Don't switch task then not allowed

PATCH Applied Alexey Starikovskiy 2 participants 6 messages Aug 28, 2009 – Aug 29, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/3 ACPICA: Don't switch task then not allowed

---

 include/acpi/platform/aclinux.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
include/acpi/platform/aclinux.h +2 -2
index fcb8e4b..9d7febd 100644
@@ -149,10 +149,10 @@ static inline void *acpi_os_acquire_object(acpi_cache_t * cache)
 #define ACPI_FREE(a)            kfree(a)
 
 /* Used within ACPICA to show where it is safe to preempt execution */
-
+#include <linux/hardirq.h>
 #define ACPI_PREEMPTION_POINT() \
 	do { \
-		if (!irqs_disabled()) \
+		if (!in_atomic_preempt_off()) \
 			cond_resched(); \
 	} while (0)
 
#1 lore raw

PATCH 2/3 ACPI: EC: use BURST mode only for MSI notebooks

---

 drivers/acpi/ec.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
drivers/acpi/ec.c +4 -2
index 78f8380..829e62e 100644
@@ -627,7 +627,8 @@ acpi_ec_space_handler(u32 function, acpi_physical_address address,
 	if (bits != 8 && acpi_strict)
 		return AE_BAD_PARAMETER;
 
-	acpi_ec_burst_enable(ec);
+	if (EC_FLAGS_MSI)
+		acpi_ec_burst_enable(ec);
 
 	if (function == ACPI_READ) {
 		result = acpi_ec_read(ec, address, &temp);
@@ -648,7 +649,8 @@ acpi_ec_space_handler(u32 function, acpi_physical_address address,
 		}
 	}
 
-	acpi_ec_burst_disable(ec);
+	if (EC_FLAGS_MSI)
+		acpi_ec_burst_disable(ec);
 
 	switch (result) {
 	case -EINVAL:
reviewer
#2 lore raw

Re: [PATCH 2/3] ACPI: EC: use BURST mode only for MSI notebooks

applied to ec branch in acpi-test for 2.6.32

The patch needs a check-in comment before it goes upstream, however.

thanks,
Len Brown, Intel Open Source Technology Center

Quoted 37 lines · Alexey Starikovskiy

---

 drivers/acpi/ec.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
drivers/acpi/ec.c +4 -3
index 78f8380..829e62e 100644
@@ -627,7 +627,8 @@ acpi_ec_space_handler(u32 function, acpi_physical_address address,
 	if (bits != 8 && acpi_strict)
 		return AE_BAD_PARAMETER;
 
-	acpi_ec_burst_enable(ec);
+	if (EC_FLAGS_MSI)
+		acpi_ec_burst_enable(ec);
 
 	if (function == ACPI_READ) {
 		result = acpi_ec_read(ec, address, &temp);
@@ -648,7 +649,8 @@ acpi_ec_space_handler(u32 function, acpi_physical_address address,
 		}
 	}
 
-	acpi_ec_burst_disable(ec);
+	if (EC_FLAGS_MSI)
+		acpi_ec_burst_disable(ec);
 
 	switch (result) {
 	case -EINVAL:
 
--

To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw

PATCH 3/3 ACPI: EC: Drop orphan comment

In reply to Alexey Starikovskiy

---

 drivers/acpi/ec.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
drivers/acpi/ec.c +0 -4
index 829e62e..6ccb18b 100644
@@ -354,10 +354,6 @@ unlock:
 	return status;
 }
 
-/*
- * Note: samsung nv5000 doesn't work with ec burst mode.
- * http://bugzilla.kernel.org/show_bug.cgi?id=4980
- */
 static int acpi_ec_burst_enable(struct acpi_ec *ec)
 {
 	u8 d;
reviewer Applied
#4 lore raw

Re: [PATCH 3/3] ACPI: EC: Drop orphan comment

applied

thanks,
Len Brown, Intel Open Source Technology Center

reviewer
#5 lore raw
In reply to Alexey Starikovskiy

applied to acpi-test

again, this could use a check-in commment,
eg. citing the e-mail discussion of the failure
that this addresses

thanks,
Len Brown, Intel Open Source Technology Center