Skip to content

Commit

Permalink
Merge branch 'acpica' into acpi-pm
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafael J. Wysocki committed Sep 30, 2014
2 parents e4cb0c9 + e0fa975 commit e1253e5
Show file tree
Hide file tree
Showing 7 changed files with 69 additions and 10 deletions.
32 changes: 32 additions & 0 deletions drivers/acpi/acpica/evxfgpe.c
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,38 @@ acpi_status acpi_enable_all_runtime_gpes(void)

ACPI_EXPORT_SYMBOL(acpi_enable_all_runtime_gpes)

/******************************************************************************
*
* FUNCTION: acpi_enable_all_wakeup_gpes
*
* PARAMETERS: None
*
* RETURN: Status
*
* DESCRIPTION: Enable all "wakeup" GPEs and disable all of the other GPEs, in
* all GPE blocks.
*
******************************************************************************/

acpi_status acpi_enable_all_wakeup_gpes(void)
{
acpi_status status;

ACPI_FUNCTION_TRACE(acpi_enable_all_wakeup_gpes);

status = acpi_ut_acquire_mutex(ACPI_MTX_EVENTS);
if (ACPI_FAILURE(status)) {
return_ACPI_STATUS(status);
}

status = acpi_hw_enable_all_wakeup_gpes();
(void)acpi_ut_release_mutex(ACPI_MTX_EVENTS);

return_ACPI_STATUS(status);
}

ACPI_EXPORT_SYMBOL(acpi_enable_all_wakeup_gpes)

/*******************************************************************************
*
* FUNCTION: acpi_install_gpe_block
Expand Down
8 changes: 4 additions & 4 deletions drivers/acpi/acpica/hwgpe.c
Original file line number Diff line number Diff line change
Expand Up @@ -396,11 +396,11 @@ acpi_hw_enable_wakeup_gpe_block(struct acpi_gpe_xrupt_info *gpe_xrupt_info,
/* Examine each GPE Register within the block */

for (i = 0; i < gpe_block->register_count; i++) {
if (!gpe_block->register_info[i].enable_for_wake) {
continue;
}

/* Enable all "wake" GPEs in this register */
/*
* Enable all "wake" GPEs in this register and disable the
* remaining ones.
*/

status =
acpi_hw_write(gpe_block->register_info[i].enable_for_wake,
Expand Down
4 changes: 3 additions & 1 deletion drivers/acpi/acpica/utresrc.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ const char *acpi_gbl_io_decode[] = {

const char *acpi_gbl_ll_decode[] = {
"ActiveHigh",
"ActiveLow"
"ActiveLow",
"ActiveBoth",
"Reserved"
};

const char *acpi_gbl_max_decode[] = {
Expand Down
4 changes: 4 additions & 0 deletions include/acpi/acnames.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@
#define METHOD_NAME__PRS "_PRS"
#define METHOD_NAME__PRT "_PRT"
#define METHOD_NAME__PRW "_PRW"
#define METHOD_NAME__PS0 "_PS0"
#define METHOD_NAME__PS1 "_PS1"
#define METHOD_NAME__PS2 "_PS2"
#define METHOD_NAME__PS3 "_PS3"
#define METHOD_NAME__REG "_REG"
#define METHOD_NAME__SB_ "_SB_"
#define METHOD_NAME__SEG "_SEG"
Expand Down
3 changes: 2 additions & 1 deletion include/acpi/acpixf.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

/* Current ACPICA subsystem version in YYYYMMDD format */

#define ACPI_CA_VERSION 0x20140724
#define ACPI_CA_VERSION 0x20140828

#include <acpi/acconfig.h>
#include <acpi/actypes.h>
Expand Down Expand Up @@ -692,6 +692,7 @@ ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
*event_status))
ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status acpi_disable_all_gpes(void))
ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status acpi_enable_all_runtime_gpes(void))
ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status acpi_enable_all_wakeup_gpes(void))

ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
acpi_get_gpe_device(u32 gpe_index,
Expand Down
19 changes: 17 additions & 2 deletions include/acpi/actbl1.h
Original file line number Diff line number Diff line change
Expand Up @@ -952,7 +952,8 @@ enum acpi_srat_type {
ACPI_SRAT_TYPE_CPU_AFFINITY = 0,
ACPI_SRAT_TYPE_MEMORY_AFFINITY = 1,
ACPI_SRAT_TYPE_X2APIC_CPU_AFFINITY = 2,
ACPI_SRAT_TYPE_RESERVED = 3 /* 3 and greater are reserved */
ACPI_SRAT_TYPE_GICC_AFFINITY = 3,
ACPI_SRAT_TYPE_RESERVED = 4 /* 4 and greater are reserved */
};

/*
Expand All @@ -968,7 +969,7 @@ struct acpi_srat_cpu_affinity {
u32 flags;
u8 local_sapic_eid;
u8 proximity_domain_hi[3];
u32 reserved; /* Reserved, must be zero */
u32 clock_domain;
};

/* Flags */
Expand Down Expand Up @@ -1010,6 +1011,20 @@ struct acpi_srat_x2apic_cpu_affinity {

#define ACPI_SRAT_CPU_ENABLED (1) /* 00: Use affinity structure */

/* 3: GICC Affinity (ACPI 5.1) */

struct acpi_srat_gicc_affinity {
struct acpi_subtable_header header;
u32 proximity_domain;
u32 acpi_processor_uid;
u32 flags;
u32 clock_domain;
};

/* Flags for struct acpi_srat_gicc_affinity */

#define ACPI_SRAT_GICC_ENABLED (1) /* 00: Use affinity structure */

/* Reset to default packing */

#pragma pack()
Expand Down
9 changes: 7 additions & 2 deletions include/acpi/actbl3.h
Original file line number Diff line number Diff line change
Expand Up @@ -310,10 +310,15 @@ struct acpi_gtdt_timer_entry {
u32 common_flags;
};

/* Flag Definitions: timer_flags and virtual_timer_flags above */

#define ACPI_GTDT_GT_IRQ_MODE (1)
#define ACPI_GTDT_GT_IRQ_POLARITY (1<<1)

/* Flag Definitions: common_flags above */

#define ACPI_GTDT_GT_IS_SECURE_TIMER (1)
#define ACPI_GTDT_GT_ALWAYS_ON (1<<1)
#define ACPI_GTDT_GT_IS_SECURE_TIMER (1)
#define ACPI_GTDT_GT_ALWAYS_ON (1<<1)

/* 1: SBSA Generic Watchdog Structure */

Expand Down

0 comments on commit e1253e5

Please sign in to comment.