I2C ACPI operation region handler support
Subsystems (6)
cover I2C ACPI operation region handler support
ACPI 5.0 spec(5.5.2.4.5) defines GenericSerialBus(i2c, spi, uart) operation region. It allows ACPI aml code able to access such kind of devices to implement some ACPI standard method.
On the Asus T100TA, Bios use GenericSerialBus operation region to access i2c device to get battery info. So battery function depends on the I2C operation region support. Here is the bug link.
https://bugzilla.kernel.org/show_bug.cgi?id=69011
This patchset is to add I2C ACPI operation region handler support.
[PATCH 1/9] ACPICA: Executer: Fix buffer allocation issue for [PATCH 2/9] ACPICA: Export acpi_buffer_to_resource symbol [PATCH 3/9] ACPI: Add acpi_bus_attach_private_data() to facilitate to [PATCH 4/9] ACPI/Thermal: Use acpi_bus_attach_private_data() to [PATCH 5/9] I2C: Add smbus quick read/write helper function [PATCH 6/9] I2C: Add smbus word/block process call helper function [PATCH 7/9] I2C/ACPI: Add i2c ACPI operation region support [PATCH 8/9] I2C/ACPI: Move ACPI related code to i2c-acpi.c [PATCH 9/9] I2C/ACPI: Add CONFIG_I2C_ACPI config
PATCH 1/9 ACPICA: Executer: Fix buffer allocation issue for generic_serial_bus region field accesses.
From: Lv Zheng <[email protected]>
The size of the buffer allocated for generic_serial_bus region access is not correct. This patch introduces acpi_ex_get_serial_access_length() to be invoked to obtain correct data buffer length. Reported by Lan Tianyu, Fixed by Lv Zheng.
--- drivers/acpi/acpica/exfield.c | 104 +++++++++++++++++++++++++++++++++++++++--- 1 file changed, 97 insertions(+), 7 deletions(-)
drivers/acpi/acpica/exfield.c +97 -7
@@ -45,10 +45,71 @@#include "accommon.h" #include "acdispat.h" #include "acinterp.h" +#include "amlcode.h" #define _COMPONENT ACPI_EXECUTERACPI_MODULE_NAME ("exfield" ) +/* Local prototypes */ +static u32 +acpi_ex_get_serial_access_length (u32 accessor_type,u32 access_length); + +/******************************************************************************* +* +* FUNCTION: acpi_get_serial_access_bytes +* +* PARAMETERS: accessor_type - The type of the protocol indicated by region +* field access attributes +* access_length - The access length of the region field +* +* RETURN: Decoded access length +* +* DESCRIPTION: This routine returns the length of the generic_serial_bus +* protocol bytes +* +******************************************************************************/ + +static u32 +acpi_ex_get_serial_access_length (u32 accessor_type,u32 access_length) +{ +u32 length; + +switch (accessor_type) { +case AML_FIELD_ATTRIB_QUICK : + + length =0 ; +break ; + +case AML_FIELD_ATTRIB_SEND_RCV : +case AML_FIELD_ATTRIB_BYTE : + + length =1 ; +break ; + +case AML_FIELD_ATTRIB_WORD : +case AML_FIELD_ATTRIB_WORD_CALL : + + length =2 ; +break ; + +case AML_FIELD_ATTRIB_MULTIBYTE : +case AML_FIELD_ATTRIB_RAW_BYTES : +case AML_FIELD_ATTRIB_RAW_PROCESS : + + length = access_length; +break ; + +case AML_FIELD_ATTRIB_BLOCK : +case AML_FIELD_ATTRIB_BLOCK_CALL : +default : + + length =ACPI_GSBUS_BUFFER_SIZE ; +break ; + } + +return (length); +} +/******************************************************************************* * * FUNCTION: acpi_ex_read_data_from_field
@@ -63,8 +124,9 @@ ACPI_MODULE_NAME("exfield")* Buffer, depending on the size of the field. * ******************************************************************************/ +acpi_status -acpi_ex_read_data_from_field (struct acpi_walk_state *walk_state, +acpi_ex_read_data_from_field (struct acpi_walk_state * walk_state,union acpi_operand_object *obj_desc,union acpi_operand_object **ret_buffer_desc) {
@@ -73,6 +135,7 @@ acpi_ex_read_data_from_field(struct acpi_walk_state *walk_state,acpi_size length;void *buffer;u32 function; +u16 accessor_type;ACPI_FUNCTION_TRACE_PTR (ex_read_data_from_field, obj_desc);
@@ -116,9 +179,22 @@ acpi_ex_read_data_from_field(struct acpi_walk_state *walk_state,ACPI_READ | (obj_desc->field.attribute <<16 ); }else if (obj_desc->field.region_obj->region.space_id ==ACPI_ADR_SPACE_GSBUS ) { - length =ACPI_GSBUS_BUFFER_SIZE ; - function = -ACPI_READ | (obj_desc->field.attribute <<16 ); + accessor_type = obj_desc->field.attribute; + length =acpi_ex_get_serial_access_length (accessor_type, + obj_desc-> + field. + access_length); + +/* +* Add additional 2 bytes for modeled generic_serial_bus data buffer: +* typedef struct { +* BYTEStatus; // Byte 0 of the data buffer +* BYTELength; // Byte 1 of the data buffer +* BYTE[x-1]Data; // Bytes 2-x of the arbitrary length data buffer, +* } +*/ + length +=2 ; + function =ACPI_READ | (accessor_type <<16 ); }else {/* IPMI */ length =ACPI_IPMI_BUFFER_SIZE ;
@@ -231,6 +307,7 @@ acpi_ex_write_data_to_field(union acpi_operand_object *source_desc,void *buffer;union acpi_operand_object *buffer_desc;u32 function; +u16 accessor_type;ACPI_FUNCTION_TRACE_PTR (ex_write_data_to_field, obj_desc);
@@ -284,9 +361,22 @@ acpi_ex_write_data_to_field(union acpi_operand_object *source_desc,ACPI_WRITE | (obj_desc->field.attribute <<16 ); }else if (obj_desc->field.region_obj->region.space_id ==ACPI_ADR_SPACE_GSBUS ) { - length =ACPI_GSBUS_BUFFER_SIZE ; - function = -ACPI_WRITE | (obj_desc->field.attribute <<16 ); + accessor_type = obj_desc->field.attribute; + length =acpi_ex_get_serial_access_length (accessor_type, + obj_desc-> + field. + access_length); + +/* +* Add additional 2 bytes for modeled generic_serial_bus data buffer: +* typedef struct { +* BYTEStatus; // Byte 0 of the data buffer +* BYTELength; // Byte 1 of the data buffer +* BYTE[x-1]Data; // Bytes 2-x of the arbitrary length data buffer, +* } +*/ + length +=2 ; + function =ACPI_WRITE | (accessor_type <<16 ); }else {/* IPMI */ length =ACPI_IPMI_BUFFER_SIZE ;
Signature · 1 line
1.8.4.rc0.1.g8f6a3e5.dirty
PATCH 2/9 ACPICA: Export acpi_buffer_to_resource symbol
In reply to Lan TianyuThe acpi_buffer_to_resource is needed in i2c module to convert aml buffer to struct acpi_resource
--- drivers/acpi/acpica/rscreate.c | 1 + 1 file changed, 1 insertion(+)
drivers/acpi/acpica/rscreate.c +1 -0
@@ -112,6 +112,7 @@ acpi_buffer_to_resource(u8 *aml_buffer,return (status); } +ACPI_EXPORT_SYMBOL (acpi_buffer_to_resource);/******************************************************************************* *
Signature · 1 line
1.8.4.rc0.1.g8f6a3e5.dirty
PATCH 3/9 ACPI: Add acpi_bus_attach_private_data() to facilitate to attach data to ACPI handle
In reply to Lan TianyuThere is already acpi_bus_get_private_data() to get ACPI handle data which is associated with acpi_bus_private_data_handler(). This patch is to add acpi_bus_attach_private_data() to make a pair and facilitate to attach and get data to/from ACPI handle.
--- drivers/acpi/bus.c | 18 +++++++++++++++++- include/acpi/acpi_bus.h | 1 + 2 files changed, 18 insertions(+), 1 deletion(-)
drivers/acpi/bus.c +17 -1
@@ -132,6 +132,22 @@ void acpi_bus_private_data_handler(acpi_handle handle, }EXPORT_SYMBOL (acpi_bus_private_data_handler); +int acpi_bus_attach_private_data (acpi_handle handle,void *data) +{ +acpi_status status; + + status =acpi_attach_data (handle, + acpi_bus_private_data_handler, data); +if (ACPI_FAILURE (status)) { +ACPI_ERROR ((AE_INFO ,"Error attaching device[%p] data\n" , + handle)); +return -ENODEV ; + } + +return 0 ; +} +EXPORT_SYMBOL (acpi_bus_attach_private_data); +int acpi_bus_get_private_data (acpi_handle handle,void **data) {acpi_status status;
@@ -141,7 +157,7 @@ int acpi_bus_get_private_data(acpi_handle handle, void **data) status =acpi_get_data (handle, acpi_bus_private_data_handler, data);if (ACPI_FAILURE (status) || !*data) { -ACPI_DEBUG_PRINT ((ACPI_DB_INFO ,"No context for object [%p]\n" , +ACPI_ERROR ((AE_INFO ,"No context for object [%p]\n" , handle));return -ENODEV ; }
include/acpi/acpi_bus.h +1 -0
@@ -406,6 +406,7 @@ extern struct kobject *acpi_kobj;extern int acpi_bus_generate_netlink_event (const char *,const char *,u8 ,int );void acpi_bus_private_data_handler (acpi_handle ,void *);int acpi_bus_get_private_data (acpi_handle ,void **); +int acpi_bus_attach_private_data (acpi_handle ,void *);void acpi_bus_no_hotplug (acpi_handle handle);extern int acpi_notifier_call_chain (struct acpi_device *,u32 ,u32 );extern int register_acpi_notifier (struct notifier_block *);
Signature · 1 line
1.8.4.rc0.1.g8f6a3e5.dirty
PATCH 4/9 ACPI/Thermal: Use acpi_bus_attach_private_data() to attach private data
In reply to Lan TianyuUse acpi_bus_attach_private_data() to attach private data instead of acpi_attach_data().
--- drivers/acpi/thermal.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-)
drivers/acpi/thermal.c +3 -6
@@ -925,13 +925,10 @@ static int acpi_thermal_register_thermal_zone(struct acpi_thermal *tz)if (result)return result; - status =acpi_attach_data (tz->device->handle, - acpi_bus_private_data_handler, - tz->thermal_zone); -if (ACPI_FAILURE (status)) { -pr_err (PREFIX "Error attaching device data\n" ); + status =acpi_bus_attach_private_data (tz->device->handle, + tz->thermal_zone); +if (ACPI_FAILURE (status))return -ENODEV ; - } tz->tz_enabled =1 ;
Signature · 1 line
1.8.4.rc0.1.g8f6a3e5.dirty
PATCH 5/9 I2C: Add smbus quick read/write helper function
In reply to Lan TianyuAdd i2c_smbus_quick_write/read() helper function. These will be used in the implementation of i2c ACPI address space handler.
--- drivers/i2c/i2c-core.c | 30 ++++++++++++++++++++++++++++++ include/linux/i2c.h | 2 ++ 2 files changed, 32 insertions(+)
drivers/i2c/i2c-core.c +30 -0
@@ -2162,6 +2162,36 @@ static int i2c_smbus_check_pec(u8 cpec, struct i2c_msg *msg) }/** +* i2c_smbus_quick_write - SMBus "quick write" protocol +* @client: Handle to slave device +* +* This executes the SMBus "quick write" protocol, returning negative errno +* else zero on success. +*/ +s32 i2c_smbus_quick_write (const struct i2c_client *client) +{ +return i2c_smbus_xfer (client->adapter, client->addr, client->flags, +I2C_SMBUS_WRITE ,0 , +I2C_SMBUS_QUICK ,NULL ); +} +EXPORT_SYMBOL_GPL (i2c_smbus_quick_write); + +/** +* i2c_smbus_quick_read - SMBus "quick read" protocol +* @client: Handle to slave device +* +* This executes the SMBus "quick read" protocol, returning negative errno +* else zero on success. +*/ +s32 i2c_smbus_quick_read (const struct i2c_client *client) +{ +return i2c_smbus_xfer (client->adapter, client->addr, client->flags, +I2C_SMBUS_READ ,0 , +I2C_SMBUS_QUICK ,NULL ); +} +EXPORT_SYMBOL_GPL (i2c_smbus_quick_read); + +/** * i2c_smbus_read_byte - SMBus "receive byte" protocol * @client: Handle to slave device *
include/linux/i2c.h +2 -0
@@ -82,6 +82,8 @@ extern s32 i2c_smbus_xfer(struct i2c_adapter *adapter, u16 addr,/* Now follow the 'nice' access routines. These also document the calling conventions of i2c_smbus_xfer. */ +extern s32 i2c_smbus_quick_write (const struct i2c_client *client); +extern s32 i2c_smbus_quick_read (const struct i2c_client *client);extern s32 i2c_smbus_read_byte (const struct i2c_client *client);extern s32 i2c_smbus_write_byte (const struct i2c_client *client,u8 value); extern s32 i2c_smbus_read_byte_data(const struct i2c_client *client,
Signature · 1 line
1.8.4.rc0.1.g8f6a3e5.dirty
PATCH 6/9 I2C: Add smbus word/block process call helper function
In reply to Lan TianyuAdd i2c_smbus_word/block_proc_call() helper function. These will be used in the implementation of i2c ACPI address space handler.
--- drivers/i2c/i2c-core.c | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++ include/linux/i2c.h | 4 ++++ 2 files changed, 60 insertions(+)
drivers/i2c/i2c-core.c +56 -0
@@ -2306,6 +2306,30 @@ s32 i2c_smbus_write_word_data(const struct i2c_client *client, u8 command,EXPORT_SYMBOL (i2c_smbus_write_word_data);/** +* i2c_smbus_word_proc_call - SMBus "word proc call" protocol +* @client: Handle to slave device +* @command: Byte interpreted by slave +* @value: 16-bit "word" being written +* +* This executes the SMBus "word proc all" protocol, returning negative errno +* else a 16-bit unsigned "word" received from the device. +*/ +s32 i2c_smbus_word_proc_call (const struct i2c_client *client,u8 command, +u16 value) +{ +union i2c_smbus_data data; +int status; + + data.word = value; + status =i2c_smbus_xfer (client->adapter, client->addr, client->flags, +I2C_SMBUS_READ , command, +I2C_SMBUS_PROC_CALL , &data); + +return (status <0 ) ? status : data.word; +} +EXPORT_SYMBOL (i2c_smbus_word_proc_call); + +/** * i2c_smbus_read_block_data - SMBus "block read" protocol * @client: Handle to slave device * @command: Byte interpreted by slave
@@ -2362,6 +2386,38 @@ s32 i2c_smbus_write_block_data(const struct i2c_client *client, u8 command, }EXPORT_SYMBOL (i2c_smbus_write_block_data); +/** +* i2c_smbus_block_proc_call - SMBus "block write" protocol +* @client: Handle to slave device +* @command: Byte interpreted by slave +* @length: Size of data block; SMBus allows at most 32 bytes +* @values: Byte array which will be written. +* +* This executes the SMBus "block proc call" protocol, returning negative errno +* else the number of read bytes. +*/ +s32 i2c_smbus_block_proc_call (const struct i2c_client *client,u8 command, +u8 length,u8 *values) +{ +union i2c_smbus_data data; +int status; + +if (length >I2C_SMBUS_BLOCK_MAX ) + length =I2C_SMBUS_BLOCK_MAX ; + data.block[0 ] = length; +memcpy (&data.block[1 ], values, length); + status =i2c_smbus_xfer (client->adapter, client->addr, client->flags, +I2C_SMBUS_READ , command, +I2C_SMBUS_BLOCK_PROC_CALL , &data); + +if (status <0 ) +return status; + +memcpy (values, &data.block[1 ], data.block[0 ]); +return data.block[0 ]; +} +EXPORT_SYMBOL (i2c_smbus_block_proc_call); +/* Returns the number of read bytes */ s32 i2c_smbus_read_i2c_block_data (const struct i2c_client *client,u8 command,u8 length,u8 *values)
include/linux/i2c.h +4 -0
@@ -94,6 +94,10 @@ extern s32 i2c_smbus_read_word_data(const struct i2c_client *client, u8 command);extern s32 i2c_smbus_write_word_data (const struct i2c_client *client,u8 command,u16 value); +extern s32 i2c_smbus_word_proc_call (const struct i2c_client *client, +u8 command,u16 value); +extern s32 i2c_smbus_block_proc_call (const struct i2c_client *client, +u8 command,u8 length,u8 *values);static inline s32 i2c_smbus_read_word_swapped (const struct i2c_client *client,u8 command)
Signature · 1 line
1.8.4.rc0.1.g8f6a3e5.dirty
PATCH 7/9 I2C/ACPI: Add i2c ACPI operation region support
In reply to Lan TianyuACPI 5.0 spec(5.5.2.4.5) defines GenericSerialBus(i2c, spi, uart) operation region. It allows ACPI aml code able to access such kind of devices to implement some ACPI standard method.
ACPI Spec defines some access attribute to associate with i2c protocol.
AttribQuick Read/Write Quick Protocol
AttribSendReceive Send/Receive Byte Protocol
AttribByte Read/Write Byte Protocol
AttribWord Read/Write Word Protocol
AttribBlock Read/Write Block Protocol
AttribBytes Read/Write N-Bytes Protocol
AttribProcessCall Process Call Protocol
AttribBlockProcessCall Write Block-Read Block Process Call Protocol
AttribRawBytes Raw Read/Write N-BytesProtocol
AttribRawProcessBytes Raw Process Call Protocol
On the Asus T100TA, Bios use GenericSerialBus operation region to access i2c device to get battery info.
Sample code From Asus T100TA
Scope (_SB.I2C1)
{
Name (UMPC, ResourceTemplate ()
{
I2cSerialBus (0x0066, ControllerInitiated, 0x00061A80,
AddressingMode7Bit, "\\_SB.I2C1",
0x00, ResourceConsumer, ,
)
})
...
OperationRegion (DVUM, GenericSerialBus, Zero, 0x0100)
Field (DVUM, BufferAcc, NoLock, Preserve)
{
Connection (UMPC),
Offset (0x81),
AccessAs (BufferAcc, AttribBytes (0x3E)),
FGC0, 8
}
...
}
Device (BATC)
{
Name (_HID, EisaId ("PNP0C0A")) // _HID: Hardware ID
Name (_UID, One) // _UID: Unique ID
...
Method (_BST, 0, NotSerialized) // _BST: Battery Status
{
If (LEqual (AVBL, One))
{
Store (FGC0, BFFG)
If (LNotEqual (STAT, One))
{
ShiftRight (CHST, 0x04, Local0)
And (Local0, 0x03, Local0)
If (LOr (LEqual (Local0, One), LEqual (Local0, 0x02)))
{
Store (0x02, Local1)
}
...
}The i2c operation region is defined under I2C1 scope. _BST method under battery device BATC read battery status from the field "FCG0". The request would be sent to i2c operation region handler.
This patch is to add i2c ACPI operation region support. Due to there are only "Byte" and "N-Bytes" protocol access on the Asus T100TA, other protocols have not been tested.
About RawBytes and RawProcessBytes protocol, they needs specific drivers to interpret reference data from AML code according ACPI 5.0 SPEC(5.5.2.4.5.3.9 and 5.5.2.4.5.3.10). So far, not found such case and will add when find real case.
--- drivers/i2c/Makefile | 5 +- drivers/i2c/i2c-acpi.c | 282 +++++++++++++++++++++++++++++++++++++++++++++++++ drivers/i2c/i2c-core.c | 2 + include/linux/acpi.h | 11 ++ include/linux/i2c.h | 10 ++ 5 files changed, 309 insertions(+), 1 deletion(-) create mode 100644 drivers/i2c/i2c-acpi.c
drivers/i2c/Makefile +4 -1
@@ -2,8 +2,11 @@ # Makefile for the i2c core. # +i2ccore-y := i2c-core.o +i2ccore-$(CONFIG_ACPI) += i2c-acpi.o + obj-$(CONFIG_I2C_BOARDINFO) += i2c-boardinfo.o -obj-$(CONFIG_I2C) += i2c-core.o +obj-$(CONFIG_I2C) += i2ccore.o obj-$(CONFIG_I2C_SMBUS) += i2c-smbus.o obj-$(CONFIG_I2C_CHARDEV) += i2c-dev.o obj-$(CONFIG_I2C_MUX) += i2c-mux.o
drivers/i2c/i2c-acpi.c new file +282 -0
282 lines not on this page · raw message
drivers/i2c/i2c-core.c +2 -0
@@ -1293,6 +1293,7 @@ exit_recovery:/* create pre-declared device nodes */ of_i2c_register_devices (adap);acpi_i2c_register_devices (adap); +acpi_i2c_install_space_handler (adap);if (adap->nr < __i2c_first_dynamic_bus_num)i2c_scan_static_board_info (adap);
@@ -1466,6 +1467,7 @@ void i2c_del_adapter(struct i2c_adapter *adap)return ; } +acpi_i2c_remove_space_handler (adap);/* Tell drivers about this removal */ mutex_lock (&core_lock); bus_for_each_drv(&i2c_bus_type, NULL, adap,
include/linux/acpi.h +11 -0
@@ -361,6 +361,17 @@ extern bool osc_sb_apei_support_acked;#define OSC_PCI_EXPRESS_CAPABILITY_CONTROL 0x00000010#define OSC_PCI_CONTROL_MASKS 0x0000001f +#define ACPI_GSB_ACCESS_ATTRIB_QUICK 0x00000002 +#define ACPI_GSB_ACCESS_ATTRIB_SEND_RCV 0x00000004 +#define ACPI_GSB_ACCESS_ATTRIB_BYTE 0x00000006 +#define ACPI_GSB_ACCESS_ATTRIB_WORD 0x00000008 +#define ACPI_GSB_ACCESS_ATTRIB_BLOCK 0x0000000A +#define ACPI_GSB_ACCESS_ATTRIB_MULTIBYTE 0x0000000B +#define ACPI_GSB_ACCESS_ATTRIB_WORD_CALL 0x0000000C +#define ACPI_GSB_ACCESS_ATTRIB_BLOCK_CALL 0x0000000D +#define ACPI_GSB_ACCESS_ATTRIB_RAW_BYTES 0x0000000E +#define ACPI_GSB_ACCESS_ATTRIB_RAW_PROCESS 0x0000000F +extern acpi_status acpi_pci_osc_control_set (acpi_handle handle,u32 *mask,u32 req);
include/linux/i2c.h +10 -0
@@ -583,4 +583,14 @@ static inline struct i2c_adapter *of_find_i2c_adapter_by_node(struct device_node }#endif /* CONFIG_OF */ +#ifdef CONFIG_ACPI +int acpi_i2c_install_space_handler (struct i2c_adapter *adapter); +void acpi_i2c_remove_space_handler (struct i2c_adapter *adapter); +#else +static inline void acpi_i2c_remove_space_handler (struct i2c_adapter *adapter) +{ } +static inline int acpi_i2c_install_space_handler (struct i2c_adapter *adapter) +{return 0 ; } +#endif +#endif /* _LINUX_I2C_H */
Signature · 1 line
1.8.4.rc0.1.g8f6a3e5.dirty
PATCH 8/9 I2C/ACPI: Move ACPI related code to i2c-acpi.c
In reply to Lan TianyuClean up ACPI related code in the i2c core.
--- drivers/i2c/i2c-acpi.c | 89 ++++++++++++++++++++++++++++++++++++++++++++++ drivers/i2c/i2c-core.c | 95 -------------------------------------------------- include/linux/i2c.h | 3 ++ 3 files changed, 92 insertions(+), 95 deletions(-)
drivers/i2c/i2c-acpi.c +89 -0
@@ -37,6 +37,95 @@ struct gsb_buffer { }; } __packed; +static int acpi_i2c_add_resource (struct acpi_resource *ares,void *data) +{ +struct i2c_board_info *info = data; + +if (ares->type ==ACPI_RESOURCE_TYPE_SERIAL_BUS ) { +struct acpi_resource_i2c_serialbus *sb; + + sb = &ares->data.i2c_serial_bus; +if (sb->type ==ACPI_RESOURCE_SERIAL_TYPE_I2C ) { + info->addr = sb->slave_address; +if (sb->access_mode ==ACPI_I2C_10BIT_MODE ) + info->flags |=I2C_CLIENT_TEN ; + } + }else if (info->irq <0 ) { +struct resource r; + +if (acpi_dev_resource_interrupt (ares,0 , &r)) + info->irq = r.start; + } + +/* Tell the ACPI core to skip this resource */ +return 1 ; +} + +static acpi_status acpi_i2c_add_device (acpi_handle handle,u32 level, +void *data,void **return_value) +{ +struct i2c_adapter *adapter = data; +struct list_head resource_list; +struct i2c_board_info info; +struct acpi_device *adev; +int ret; + +if (acpi_bus_get_device (handle, &adev)) +return AE_OK ; +if (acpi_bus_get_status (adev) || !adev->status.present) +return AE_OK ; + +memset (&info,0 ,sizeof (info)); + info.acpi_node.companion = adev; + info.irq =-1 ; + +INIT_LIST_HEAD (&resource_list); + ret =acpi_dev_get_resources (adev, &resource_list, + acpi_i2c_add_resource, &info); +acpi_dev_free_resource_list (&resource_list); + +if (ret <0 || !info.addr) +return AE_OK ; + + adev->power.flags.ignore_parent = true; +strlcpy (info.type,dev_name (&adev->dev),sizeof (info.type)); +if (!i2c_new_device (adapter, &info)) { + adev->power.flags.ignore_parent = false; +dev_err (&adapter->dev, +"failed to add I2C device %s from ACPI\n" , +dev_name (&adev->dev)); + } + +return AE_OK ; +} + +/** +* acpi_i2c_register_devices - enumerate I2C slave devices behind adapter +* @adap: pointer to adapter +* +* Enumerate all I2C slave devices behind this adapter by walking the ACPI +* namespace. When a device is found it will be added to the Linux device +* model and bound to the corresponding ACPI handle. +*/ +void acpi_i2c_register_devices (struct i2c_adapter *adap) +{ +acpi_handle handle; +acpi_status status; + +if (!adap->dev.parent) +return ; + + handle =ACPI_HANDLE (adap->dev.parent); +if (!handle) +return ; + + status =acpi_walk_namespace (ACPI_TYPE_DEVICE , handle,1 , + acpi_i2c_add_device,NULL , + adap,NULL ); +if (ACPI_FAILURE (status)) +dev_warn (&adap->dev,"failed to enumerate I2C slaves\n" ); +} +static int acpi_gsb_i2c_read_bytes (struct i2c_client *client,u8 cmd,u8 *data,u8 data_len) {
drivers/i2c/i2c-core.c +0 -95
101 lines not on this page · raw message
include/linux/i2c.h +3 -0
@@ -586,7 +586,10 @@ static inline struct i2c_adapter *of_find_i2c_adapter_by_node(struct device_node#ifdef CONFIG_ACPI int acpi_i2c_install_space_handler (struct i2c_adapter *adapter);void acpi_i2c_remove_space_handler (struct i2c_adapter *adapter); +void acpi_i2c_register_devices (struct i2c_adapter *adap);#else +static inline void acpi_i2c_register_devices (struct i2c_adapter *adap) {}; +static inline void acpi_i2c_remove_space_handler (struct i2c_adapter *adapter) { }static inline int acpi_i2c_install_space_handler (struct i2c_adapter *adapter)
Signature · 1 line
1.8.4.rc0.1.g8f6a3e5.dirty
PATCH 9/9 I2C/ACPI: Add CONFIG_I2C_ACPI config
In reply to Lan TianyuThis patch is to add CONFIG_I2C_ACPI. Current there is a race between removing I2C ACPI operation region and ACPI AML code accessing. So make i2c core built-in if CONFIG_I2C_ACPI is set. The race will be fixed later in the ACPICA.
--- drivers/i2c/Kconfig | 16 +++++++++++++++- drivers/i2c/Makefile | 2 +- include/linux/i2c.h | 2 +- 3 files changed, 17 insertions(+), 3 deletions(-)
drivers/i2c/Kconfig +15 -1
@@ -2,7 +2,9 @@ # I2C subsystem configuration # -menuconfig I2C +menu "I2C support" + +config I2C tristate "I2C support" select RT_MUTEXES ---help---
@@ -21,6 +23,16 @@ menuconfig I2C This I2C support can also be built as a module. If so, the module will be called i2c-core. +config I2C_ACPI + bool "I2C ACPI support" + select I2C + depends on ACPI + help + Say Y here if you want to enable I2C ACPI function. ACPI table + provides I2C slave devices' information to enumerate these devices. + This option also allows ACPI AML code to access I2C slave devices + via I2C ACPI operation region to fulfill ACPI method. + if I2C config I2C_BOARDINFO
@@ -124,3 +136,5 @@ config I2C_DEBUG_BUS on. endif # I2C + +endmenu
drivers/i2c/Makefile +1 -1
@@ -3,7 +3,7 @@ # i2ccore-y := i2c-core.o -i2ccore-$(CONFIG_ACPI) += i2c-acpi.o +i2ccore-$(CONFIG_I2C_ACPI) += i2c-acpi.o obj-$(CONFIG_I2C_BOARDINFO) += i2c-boardinfo.o obj-$(CONFIG_I2C) += i2ccore.o
include/linux/i2c.h +1 -1
@@ -583,7 +583,7 @@ static inline struct i2c_adapter *of_find_i2c_adapter_by_node(struct device_node }#endif /* CONFIG_OF */ -#ifdef CONFIG_ACPI +#ifdef CONFIG_I2C_ACPI int acpi_i2c_install_space_handler (struct i2c_adapter *adapter);void acpi_i2c_remove_space_handler (struct i2c_adapter *adapter);void acpi_i2c_register_devices (struct i2c_adapter *adap);
Signature · 1 line
1.8.4.rc0.1.g8f6a3e5.dirty
Quoted 8 lines · Lan Tianyu
ACPI 5.0 spec(5.5.2.4.5) defines
GenericSerialBus(i2c, spi, uart)operation region. It allows ACPI aml code able to access such kind of devices to implement some ACPI standard method.On the Asus T100TA, Bios use GenericSerialBus operation region to access i2c device to get battery info. So battery function depends on the I2C operation region support. Here is the bug link.
https://bugzilla.kernel.org/show_bug.cgi?id=69011
Completely fixing battery issue on the Asus T100TA also needs ACPI _DEP support. The feature is under developing. Attach a temporary patch for test.
Quoted 14 lines
This patchset is to add I2C ACPI operation region handler support.
[PATCH 1/9] ACPICA: Executer: Fix buffer allocation issue for [PATCH 2/9] ACPICA: Export
acpi_buffer_to_resourcesymbol [PATCH 3/9] ACPI: Addacpi_bus_attach_private_data()to facilitate to [PATCH 4/9] ACPI/Thermal: Useacpi_bus_attach_private_data()to [PATCH 5/9] I2C: Add smbus quick read/write helper function [PATCH 6/9] I2C: Add smbus word/block process call helper function [PATCH 7/9] I2C/ACPI: Add i2c ACPI operation region support [PATCH 8/9] I2C/ACPI: Move ACPI related code toi2c-acpi.c[PATCH 9/9] I2C/ACPI: AddCONFIG_I2C_ACPIconfig
Quoted 1 line
From
bbadbc67de278123e28dd6f9ee7e88b6ada56ce4Mon Sep 17 00:00:00 2001
From: Lan Tianyu <[email protected]>
Date: Fri, 21 Mar 2014 16:42:12 +0800
Subject: [PATCH] ACPI: temporary dep solution for battery support
This is a dep workaround for battery support on Asus T100TA and the formal dep solution is under developing. This patch is just for test and will not be upstreamed.
--- drivers/acpi/scan.c | 64 +++++++++++++++++++++++++++++++++++++++++++++++--- drivers/i2c/i2c-acpi.c | 1 + include/linux/acpi.h | 1 + 3 files changed, 63 insertions(+), 3 deletions(-)
drivers/acpi/scan.c +61 -3
@@ -36,6 +36,7 @@ bool acpi_force_hot_remove;static const char *dummy_hid ="device" ; +static LIST_HEAD (acpi_bus_dep_device_list);static LIST_HEAD (acpi_bus_id_list);static DEFINE_MUTEX (acpi_scan_lock);static LIST_HEAD (acpi_scan_handlers_list);
@@ -43,6 +44,12 @@ DEFINE_MUTEX(acpi_device_lock);LIST_HEAD (acpi_wakeup_device_list);static DEFINE_MUTEX (acpi_hp_context_lock); + +struct acpi_dep_handle { +struct list_head node; +acpi_handle handle; +}; +struct acpi_device_bus_id {char bus_id[15 ];unsigned int instance_no;
@@ -2027,10 +2034,22 @@ static void acpi_scan_init_hotplug(struct acpi_device *adev) } } + +static int acpi_dep_device_check (acpi_handle handle) +{ +struct acpi_dep_handle *dep; + +list_for_each_entry (dep, &acpi_bus_dep_device_list, node) +if (dep->handle == handle) +return -EEXIST ; +return 0 ; +} +static acpi_status acpi_bus_check_add (acpi_handle handle,u32 lvl_not_used,void *not_used,void **return_value) {struct acpi_device *device =NULL ; +struct acpi_dep_handle *dep =NULL ;int type;unsigned long long sta;int result;
@@ -2048,9 +2067,24 @@ static acpi_status acpi_bus_check_add(acpi_handle handle, u32 lvl_not_used,return AE_OK ; } -acpi_add_single_object (&device, handle, type, sta); -if (!device) -return AE_CTRL_DEPTH ; +if (!acpi_dep_device_check (handle) + &&acpi_has_method (handle,"_BIX" ) + &&acpi_has_method (handle,"_DEP" )) { + dep =kmalloc (sizeof (struct acpi_dep_handle ),GFP_KERNEL ); +if (!dep) +return AE_CTRL_DEPTH ; + dep->handle = handle; +list_add_tail (&dep->node , &acpi_bus_dep_device_list); + +acpi_handle_info (dep->handle, +"is added to dep device list.\n" ); + +return AE_OK ; + }else { +acpi_add_single_object (&device, handle, type, sta); +if (!device) +return AE_CTRL_DEPTH ; + }acpi_scan_init_hotplug (device);
@@ -2061,6 +2095,30 @@ static acpi_status acpi_bus_check_add(acpi_handle handle, u32 lvl_not_used,return AE_OK ; } +int acpi_walk_dep_device_list (void ) +{ +struct acpi_dep_handle *dep, *tmp; +acpi_status status; +unsigned long long sta; + +list_for_each_entry_safe (dep, tmp, &acpi_bus_dep_device_list, node) { + status =acpi_evaluate_integer (dep->handle,"_STA" ,NULL , &sta); + +if (ACPI_FAILURE (status)) { +acpi_handle_warn (dep->handle, +"Status check failed (0x%x)\n" , status); + }else if (sta &ACPI_STA_DEVICE_ENABLED ) { +acpi_bus_scan (dep->handle); +acpi_handle_info (dep->handle, +"Device is readly\n" ); +list_del (&dep->node); +kfree (dep); + } + } +return 0 ; +} +EXPORT_SYMBOL_GPL (acpi_walk_dep_device_list); +static int acpi_scan_attach_handler (struct acpi_device *device) {struct acpi_hardware_id *hwid;
drivers/i2c/i2c-acpi.c +1 -0
@@ -349,6 +349,7 @@ int acpi_i2c_install_space_handler(struct i2c_adapter *adapter)return -ENOMEM ; } +acpi_walk_dep_device_list ();return 0 ; }
include/linux/acpi.h +1 -0
@@ -115,6 +115,7 @@ int acpi_boot_init (void);void acpi_boot_table_init (void );int acpi_mps_check (void );int acpi_numa_init (void ); +int acpi_walk_dep_device_list (void );int acpi_table_init (void );int acpi_table_parse (char *id,acpi_tbl_table_handler handler);
Signature · 1 line
1.8.3.1
Quoted 11 lines · Lan Tianyu
ACPI 5.0 spec(5.5.2.4.5) defines
GenericSerialBus(i2c, spi, uart)operation region. It allows ACPI aml code able to access such kind of devices to implement some ACPI standard method.On the Asus T100TA, Bios use GenericSerialBus operation region to access i2c device to get battery info. So battery function depends on the I2C operation region support. Here is the bug link.
https://bugzilla.kernel.org/show_bug.cgi?id=69011This patchset is to add I2C ACPI operation region handler support.
Quoted 9 lines
[PATCH 1/9] ACPICA: Executer: Fix buffer allocation issue for [PATCH 2/9] ACPICA: Export
acpi_buffer_to_resourcesymbol [PATCH 3/9] ACPI: Addacpi_bus_attach_private_data()to facilitate to [PATCH 4/9] ACPI/Thermal: Useacpi_bus_attach_private_data()to [PATCH 5/9] I2C: Add smbus quick read/write helper function [PATCH 6/9] I2C: Add smbus word/block process call helper function [PATCH 7/9] I2C/ACPI: Add i2c ACPI operation region support [PATCH 8/9] I2C/ACPI: Move ACPI related code toi2c-acpi.c[PATCH 9/9] I2C/ACPI: AddCONFIG_I2C_ACPIconfig
I've tested the version of these changes that's available as
https://bugzilla.kernel.org/attachment.cgi?id=131321 on my Venue 8 Pro and found it gives apparently accurate battery stats (and doesn't seem to make anything else explode). I'll try this form of the change out today if I can.
Signature · 4 lines
Adam Williamson Fedora QA Community Monkey IRC: adamw | Twitter: AdamW_Fedora | XMPP: adamw AT happyassassin . net http://www.happyassassin.net
Re: [PATCH 1/9] ACPICA: Executer: Fix buffer allocation issue for generic_serial_bus region field accesses.
In reply to Lan TianyuHi,
Quoted 9 lines · Lan Tianyu
From: Lv Zheng <[email protected]>
The size of the buffer allocated for
generic_serial_busregion access is not correct. This patch introducesacpi_ex_get_serial_access_length()to be invoked to obtain correct data buffer length. Reported by Lan Tianyu, Fixed by Lv Zheng.Signed-off-by Lv Zheng <[email protected]>Signed-off-by Lan Tianyu <[email protected]>
I'm queueing up this patch as a fix for 3.15, but can you please resend the whole series with a CC to linux-acpi?
Quoted 160 lines
--- drivers/acpi/acpica/exfield.c | 104 +++++++++++++++++++++++++++++++++++++++--- 1 file changed, 97 insertions(+), 7 deletions(-)drivers/acpi/acpica/exfield.c +97
-7@@ -45,10 +45,71 @@#include "accommon.h" #include "acdispat.h" #include "acinterp.h" +#include "amlcode.h" #define _COMPONENT ACPI_EXECUTERACPI_MODULE_NAME ("exfield" ) +/* Local prototypes */ +static u32 +acpi_ex_get_serial_access_length (u32 accessor_type,u32 access_length); + +/******************************************************************************* +* +* FUNCTION: acpi_get_serial_access_bytes +* +* PARAMETERS: accessor_type - The type of the protocol indicated by region +* field access attributes +* access_length - The access length of the region field +* +* RETURN: Decoded access length +* +* DESCRIPTION: This routine returns the length of the generic_serial_bus +* protocol bytes +* +******************************************************************************/ + +static u32 +acpi_ex_get_serial_access_length (u32 accessor_type,u32 access_length) +{ +u32 length; + +switch (accessor_type) { +case AML_FIELD_ATTRIB_QUICK : + + length =0 ; +break ; + +case AML_FIELD_ATTRIB_SEND_RCV : +case AML_FIELD_ATTRIB_BYTE : + + length =1 ; +break ; + +case AML_FIELD_ATTRIB_WORD : +case AML_FIELD_ATTRIB_WORD_CALL : + + length =2 ; +break ; + +case AML_FIELD_ATTRIB_MULTIBYTE : +case AML_FIELD_ATTRIB_RAW_BYTES : +case AML_FIELD_ATTRIB_RAW_PROCESS : + + length = access_length; +break ; + +case AML_FIELD_ATTRIB_BLOCK : +case AML_FIELD_ATTRIB_BLOCK_CALL : +default : + + length =ACPI_GSBUS_BUFFER_SIZE ; +break ; + } + +return (length); +} +/******************************************************************************* * * FUNCTION: acpi_ex_read_data_from_field @@ -63,8 +124,9 @@ ACPI_MODULE_NAME("exfield")* Buffer, depending on the size of the field. * ******************************************************************************/ +acpi_status -acpi_ex_read_data_from_field (struct acpi_walk_state *walk_state, +acpi_ex_read_data_from_field (struct acpi_walk_state * walk_state,union acpi_operand_object *obj_desc,union acpi_operand_object **ret_buffer_desc) {@@ -73,6 +135,7 @@ acpi_ex_read_data_from_field(struct acpi_walk_state *walk_state,acpi_size length;void *buffer;u32 function; +u16 accessor_type;ACPI_FUNCTION_TRACE_PTR (ex_read_data_from_field, obj_desc);@@ -116,9 +179,22 @@ acpi_ex_read_data_from_field(struct acpi_walk_state *walk_state,ACPI_READ | (obj_desc->field.attribute <<16 ); }else if (obj_desc->field.region_obj->region.space_id ==ACPI_ADR_SPACE_GSBUS ) { - length =ACPI_GSBUS_BUFFER_SIZE ; - function = -ACPI_READ | (obj_desc->field.attribute <<16 ); + accessor_type = obj_desc->field.attribute; + length =acpi_ex_get_serial_access_length (accessor_type, + obj_desc-> + field. + access_length); + +/* +* Add additional 2 bytes for modeled generic_serial_bus data buffer: +* typedef struct { +* BYTEStatus; // Byte 0 of the data buffer +* BYTELength; // Byte 1 of the data buffer +* BYTE[x-1]Data; // Bytes 2-x of the arbitrary length data buffer, +* } +*/ + length +=2 ; + function =ACPI_READ | (accessor_type <<16 ); }else {/* IPMI */ length =ACPI_IPMI_BUFFER_SIZE ;@@ -231,6 +307,7 @@ acpi_ex_write_data_to_field(union acpi_operand_object *source_desc,void *buffer;union acpi_operand_object *buffer_desc;u32 function; +u16 accessor_type;ACPI_FUNCTION_TRACE_PTR (ex_write_data_to_field, obj_desc);@@ -284,9 +361,22 @@ acpi_ex_write_data_to_field(union acpi_operand_object *source_desc,ACPI_WRITE | (obj_desc->field.attribute <<16 ); }else if (obj_desc->field.region_obj->region.space_id ==ACPI_ADR_SPACE_GSBUS ) { - length =ACPI_GSBUS_BUFFER_SIZE ; - function = -ACPI_WRITE | (obj_desc->field.attribute <<16 ); + accessor_type = obj_desc->field.attribute; + length =acpi_ex_get_serial_access_length (accessor_type, + obj_desc-> + field. + access_length); + +/* +* Add additional 2 bytes for modeled generic_serial_bus data buffer: +* typedef struct { +* BYTEStatus; // Byte 0 of the data buffer +* BYTELength; // Byte 1 of the data buffer +* BYTE[x-1]Data; // Bytes 2-x of the arbitrary length data buffer, +* } +*/ + length +=2 ; + function =ACPI_WRITE | (accessor_type <<16 ); }else {/* IPMI */ length =ACPI_IPMI_BUFFER_SIZE ;
Signature · 2 lines
I speak only for myself. Rafael J. Wysocki, Intel Open Source Technology Center.
Re: [PATCH 1/9] ACPICA: Executer: Fix buffer allocation issue for generic_serial_bus region field accesses.
Quoted 10 lines · Rafael J. Wysocki
Hi,
Quoted 7 lines · Lan Tianyu
From: Lv Zheng <[email protected]>
The size of the buffer allocated for
generic_serial_busregion access is not correct. This patch introducesacpi_ex_get_serial_access_length()to be invoked to obtain correct data buffer length. Reported by Lan Tianyu, Fixed by Lv Zheng.
Quoted 6 lines
Quoted 2 lines
Signed-off-by Lv Zheng <[email protected]>Signed-off-by Lan Tianyu <[email protected]>I'm queueing up this patch as a fix for 3.15, but can you please resend the whole series with a CC to linux-acpi?
Ok. I will do that.
Quoted 162 lines
Quoted 161 lines
--- drivers/acpi/acpica/exfield.c | 104 +++++++++++++++++++++++++++++++++++++++--- 1 file changed, 97 insertions(+), 7 deletions(-)drivers/acpi/acpica/exfield.c +97
-7@@ -45,10 +45,71 @@#include "accommon.h" #include "acdispat.h" #include "acinterp.h" +#include "amlcode.h" #define _COMPONENT ACPI_EXECUTERACPI_MODULE_NAME ("exfield" ) +/* Local prototypes */ +static u32 +acpi_ex_get_serial_access_length (u32 accessor_type,u32 access_length); + +/******************************************************************************* +* +* FUNCTION: acpi_get_serial_access_bytes +* +* PARAMETERS: accessor_type - The type of the protocol indicated by region +* field access attributes +* access_length - The access length of the region field +* +* RETURN: Decoded access length +* +* DESCRIPTION: This routine returns the length of the generic_serial_bus +* protocol bytes +* +******************************************************************************/ + +static u32 +acpi_ex_get_serial_access_length (u32 accessor_type,u32 access_length) +{ +u32 length; + +switch (accessor_type) { +case AML_FIELD_ATTRIB_QUICK : + + length =0 ; +break ; + +case AML_FIELD_ATTRIB_SEND_RCV : +case AML_FIELD_ATTRIB_BYTE : + + length =1 ; +break ; + +case AML_FIELD_ATTRIB_WORD : +case AML_FIELD_ATTRIB_WORD_CALL : + + length =2 ; +break ; + +case AML_FIELD_ATTRIB_MULTIBYTE : +case AML_FIELD_ATTRIB_RAW_BYTES : +case AML_FIELD_ATTRIB_RAW_PROCESS : + + length = access_length; +break ; + +case AML_FIELD_ATTRIB_BLOCK : +case AML_FIELD_ATTRIB_BLOCK_CALL : +default : + + length =ACPI_GSBUS_BUFFER_SIZE ; +break ; + } + +return (length); +} +/******************************************************************************* * * FUNCTION: acpi_ex_read_data_from_field @@ -63,8 +124,9 @@ ACPI_MODULE_NAME("exfield")* Buffer, depending on the size of the field. * ******************************************************************************/ +acpi_status -acpi_ex_read_data_from_field (struct acpi_walk_state *walk_state, +acpi_ex_read_data_from_field (struct acpi_walk_state * walk_state,union acpi_operand_object *obj_desc,union acpi_operand_object **ret_buffer_desc) {@@ -73,6 +135,7 @@ acpi_ex_read_data_from_field(struct acpi_walk_state *walk_state,acpi_size length;void *buffer;u32 function; +u16 accessor_type;ACPI_FUNCTION_TRACE_PTR (ex_read_data_from_field, obj_desc);@@ -116,9 +179,22 @@ acpi_ex_read_data_from_field(struct acpi_walk_state *walk_state,ACPI_READ | (obj_desc->field.attribute <<16 ); }else if (obj_desc->field.region_obj->region.space_id ==ACPI_ADR_SPACE_GSBUS ) { - length =ACPI_GSBUS_BUFFER_SIZE ; - function = -ACPI_READ | (obj_desc->field.attribute <<16 ); + accessor_type = obj_desc->field.attribute; + length =acpi_ex_get_serial_access_length (accessor_type, + obj_desc-> + field. + access_length); + +/* +* Add additional 2 bytes for modeled generic_serial_bus data buffer: +* typedef struct { +* BYTEStatus; // Byte 0 of the data buffer +* BYTELength; // Byte 1 of the data buffer +* BYTE[x-1]Data; // Bytes 2-x of the arbitrary length data buffer, +* } +*/ + length +=2 ; + function =ACPI_READ | (accessor_type <<16 ); }else {/* IPMI */ length =ACPI_IPMI_BUFFER_SIZE ;@@ -231,6 +307,7 @@ acpi_ex_write_data_to_field(union acpi_operand_object *source_desc,void *buffer;union acpi_operand_object *buffer_desc;u32 function; +u16 accessor_type;ACPI_FUNCTION_TRACE_PTR (ex_write_data_to_field, obj_desc);@@ -284,9 +361,22 @@ acpi_ex_write_data_to_field(union acpi_operand_object *source_desc,ACPI_WRITE | (obj_desc->field.attribute <<16 ); }else if (obj_desc->field.region_obj->region.space_id ==ACPI_ADR_SPACE_GSBUS ) { - length =ACPI_GSBUS_BUFFER_SIZE ; - function = -ACPI_WRITE | (obj_desc->field.attribute <<16 ); + accessor_type = obj_desc->field.attribute; + length =acpi_ex_get_serial_access_length (accessor_type, + obj_desc-> + field. + access_length); + +/* +* Add additional 2 bytes for modeled generic_serial_bus data buffer: +* typedef struct { +* BYTEStatus; // Byte 0 of the data buffer +* BYTELength; // Byte 1 of the data buffer +* BYTE[x-1]Data; // Bytes 2-x of the arbitrary length data buffer, +* } +*/ + length +=2 ; + function =ACPI_WRITE | (accessor_type <<16 ); }else {/* IPMI */ length =ACPI_IPMI_BUFFER_SIZE ;
Signature · 6 lines
Best regards Tianyu Lan -- 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
cover I2C ACPI operation region handler support
In reply to Lan TianyuACPI 5.0 spec(5.5.2.4.5) defines GenericSerialBus(i2c, spi, uart) operation region. It allows ACPI aml code able to access such kind of devices to implement some ACPI standard method.
On the Asus T100TA, Bios use GenericSerialBus operation region to access i2c device to get battery info. So battery function depends on the I2C operation region support. Here is the bug link.
https://bugzilla.kernel.org/show_bug.cgi?id=69011
This patchset is to add I2C ACPI operation region handler support.
[Resend Patch 1/9] ACPICA: Executer: Fix buffer allocation issue for [Resend Patch 2/9] ACPICA: Export acpi_buffer_to_resource symbol [Resend Patch 3/9] ACPI: Add acpi_bus_attach_private_data() to [Resend Patch 4/9] ACPI/Thermal: Use acpi_bus_attach_private_data() [Resend Patch 5/9] I2C: Add smbus quick read/write helper function [Resend Patch 6/9] I2C: Add smbus word/block process call helper [Resend Patch 7/9] I2C/ACPI: Add i2c ACPI operation region support [Resend Patch 8/9] I2C/ACPI: Move ACPI related code to i2c-acpi.c [Resend Patch 9/9] I2C/ACPI: Add CONFIG_I2C_ACPI config
drivers/acpi/acpica/exfield.c | 104 +++++++++++++++++++++++++++++++++++++++++++++---- drivers/acpi/acpica/rscreate.c | 1 + drivers/acpi/bus.c | 18 ++++++++- drivers/acpi/thermal.c | 9 ++--- drivers/i2c/Kconfig | 17 +++++++- drivers/i2c/Makefile | 5 ++- drivers/i2c/i2c-acpi.c | 371 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ drivers/i2c/i2c-core.c | 183 +++++++++++++++++++++++++++++++++++++++++-------------------------------------------- include/acpi/acpi_bus.h | 1 + include/linux/acpi.h | 11 ++++++ include/linux/i2c.h | 19 +++++++++ 11 files changed, 628 insertions(+), 111 deletions(-)
PATCH RESEND 1/9 ACPICA: Executer: Fix buffer allocation issue for generic_serial_bus region field accesses.
From: Lv Zheng <[email protected]>
The size of the buffer allocated for generic_serial_bus region access is not correct. This patch introduces acpi_ex_get_serial_access_length() to be invoked to obtain correct data buffer length. Reported by Lan Tianyu, Fixed by Lv Zheng.
--- drivers/acpi/acpica/exfield.c | 104 +++++++++++++++++++++++++++++++++++++++--- 1 file changed, 97 insertions(+), 7 deletions(-)
drivers/acpi/acpica/exfield.c +97 -7
@@ -45,10 +45,71 @@#include "accommon.h" #include "acdispat.h" #include "acinterp.h" +#include "amlcode.h" #define _COMPONENT ACPI_EXECUTERACPI_MODULE_NAME ("exfield" ) +/* Local prototypes */ +static u32 +acpi_ex_get_serial_access_length (u32 accessor_type,u32 access_length); + +/******************************************************************************* +* +* FUNCTION: acpi_get_serial_access_bytes +* +* PARAMETERS: accessor_type - The type of the protocol indicated by region +* field access attributes +* access_length - The access length of the region field +* +* RETURN: Decoded access length +* +* DESCRIPTION: This routine returns the length of the generic_serial_bus +* protocol bytes +* +******************************************************************************/ + +static u32 +acpi_ex_get_serial_access_length (u32 accessor_type,u32 access_length) +{ +u32 length; + +switch (accessor_type) { +case AML_FIELD_ATTRIB_QUICK : + + length =0 ; +break ; + +case AML_FIELD_ATTRIB_SEND_RCV : +case AML_FIELD_ATTRIB_BYTE : + + length =1 ; +break ; + +case AML_FIELD_ATTRIB_WORD : +case AML_FIELD_ATTRIB_WORD_CALL : + + length =2 ; +break ; + +case AML_FIELD_ATTRIB_MULTIBYTE : +case AML_FIELD_ATTRIB_RAW_BYTES : +case AML_FIELD_ATTRIB_RAW_PROCESS : + + length = access_length; +break ; + +case AML_FIELD_ATTRIB_BLOCK : +case AML_FIELD_ATTRIB_BLOCK_CALL : +default : + + length =ACPI_GSBUS_BUFFER_SIZE ; +break ; + } + +return (length); +} +/******************************************************************************* * * FUNCTION: acpi_ex_read_data_from_field
@@ -63,8 +124,9 @@ ACPI_MODULE_NAME("exfield")* Buffer, depending on the size of the field. * ******************************************************************************/ +acpi_status -acpi_ex_read_data_from_field (struct acpi_walk_state *walk_state, +acpi_ex_read_data_from_field (struct acpi_walk_state * walk_state,union acpi_operand_object *obj_desc,union acpi_operand_object **ret_buffer_desc) {
@@ -73,6 +135,7 @@ acpi_ex_read_data_from_field(struct acpi_walk_state *walk_state,acpi_size length;void *buffer;u32 function; +u16 accessor_type;ACPI_FUNCTION_TRACE_PTR (ex_read_data_from_field, obj_desc);
@@ -116,9 +179,22 @@ acpi_ex_read_data_from_field(struct acpi_walk_state *walk_state,ACPI_READ | (obj_desc->field.attribute <<16 ); }else if (obj_desc->field.region_obj->region.space_id ==ACPI_ADR_SPACE_GSBUS ) { - length =ACPI_GSBUS_BUFFER_SIZE ; - function = -ACPI_READ | (obj_desc->field.attribute <<16 ); + accessor_type = obj_desc->field.attribute; + length =acpi_ex_get_serial_access_length (accessor_type, + obj_desc-> + field. + access_length); + +/* +* Add additional 2 bytes for modeled generic_serial_bus data buffer: +* typedef struct { +* BYTEStatus; // Byte 0 of the data buffer +* BYTELength; // Byte 1 of the data buffer +* BYTE[x-1]Data; // Bytes 2-x of the arbitrary length data buffer, +* } +*/ + length +=2 ; + function =ACPI_READ | (accessor_type <<16 ); }else {/* IPMI */ length =ACPI_IPMI_BUFFER_SIZE ;
@@ -231,6 +307,7 @@ acpi_ex_write_data_to_field(union acpi_operand_object *source_desc,void *buffer;union acpi_operand_object *buffer_desc;u32 function; +u16 accessor_type;ACPI_FUNCTION_TRACE_PTR (ex_write_data_to_field, obj_desc);
@@ -284,9 +361,22 @@ acpi_ex_write_data_to_field(union acpi_operand_object *source_desc,ACPI_WRITE | (obj_desc->field.attribute <<16 ); }else if (obj_desc->field.region_obj->region.space_id ==ACPI_ADR_SPACE_GSBUS ) { - length =ACPI_GSBUS_BUFFER_SIZE ; - function = -ACPI_WRITE | (obj_desc->field.attribute <<16 ); + accessor_type = obj_desc->field.attribute; + length =acpi_ex_get_serial_access_length (accessor_type, + obj_desc-> + field. + access_length); + +/* +* Add additional 2 bytes for modeled generic_serial_bus data buffer: +* typedef struct { +* BYTEStatus; // Byte 0 of the data buffer +* BYTELength; // Byte 1 of the data buffer +* BYTE[x-1]Data; // Bytes 2-x of the arbitrary length data buffer, +* } +*/ + length +=2 ; + function =ACPI_WRITE | (accessor_type <<16 ); }else {/* IPMI */ length =ACPI_IPMI_BUFFER_SIZE ;
Signature · 1 line
1.8.4.rc0.1.g8f6a3e5.dirty
PATCH RESEND 2/9 ACPICA: Export acpi_buffer_to_resource symbol
In reply to Lan TianyuThe acpi_buffer_to_resource is needed in i2c module to convert aml buffer to struct acpi_resource
--- drivers/acpi/acpica/rscreate.c | 1 + 1 file changed, 1 insertion(+)
drivers/acpi/acpica/rscreate.c +1 -0
@@ -112,6 +112,7 @@ acpi_buffer_to_resource(u8 *aml_buffer,return (status); } +ACPI_EXPORT_SYMBOL (acpi_buffer_to_resource);/******************************************************************************* *
Signature · 1 line
1.8.4.rc0.1.g8f6a3e5.dirty
PATCH RESEND 3/9 ACPI: Add acpi_bus_attach_private_data() to facilitate to attach data to ACPI handle
In reply to Lan TianyuThere is already acpi_bus_get_private_data() to get ACPI handle data which is associated with acpi_bus_private_data_handler(). This patch is to add acpi_bus_attach_private_data() to make a pair and facilitate to attach and get data to/from ACPI handle.
--- drivers/acpi/bus.c | 18 +++++++++++++++++- include/acpi/acpi_bus.h | 1 + 2 files changed, 18 insertions(+), 1 deletion(-)
drivers/acpi/bus.c +17 -1
@@ -132,6 +132,22 @@ void acpi_bus_private_data_handler(acpi_handle handle, }EXPORT_SYMBOL (acpi_bus_private_data_handler); +int acpi_bus_attach_private_data (acpi_handle handle,void *data) +{ +acpi_status status; + + status =acpi_attach_data (handle, + acpi_bus_private_data_handler, data); +if (ACPI_FAILURE (status)) { +ACPI_ERROR ((AE_INFO ,"Error attaching device[%p] data\n" , + handle)); +return -ENODEV ; + } + +return 0 ; +} +EXPORT_SYMBOL (acpi_bus_attach_private_data); +int acpi_bus_get_private_data (acpi_handle handle,void **data) {acpi_status status;
@@ -141,7 +157,7 @@ int acpi_bus_get_private_data(acpi_handle handle, void **data) status =acpi_get_data (handle, acpi_bus_private_data_handler, data);if (ACPI_FAILURE (status) || !*data) { -ACPI_DEBUG_PRINT ((ACPI_DB_INFO ,"No context for object [%p]\n" , +ACPI_ERROR ((AE_INFO ,"No context for object [%p]\n" , handle));return -ENODEV ; }
include/acpi/acpi_bus.h +1 -0
@@ -406,6 +406,7 @@ extern struct kobject *acpi_kobj;extern int acpi_bus_generate_netlink_event (const char *,const char *,u8 ,int );void acpi_bus_private_data_handler (acpi_handle ,void *);int acpi_bus_get_private_data (acpi_handle ,void **); +int acpi_bus_attach_private_data (acpi_handle ,void *);void acpi_bus_no_hotplug (acpi_handle handle);extern int acpi_notifier_call_chain (struct acpi_device *,u32 ,u32 );extern int register_acpi_notifier (struct notifier_block *);
Signature · 1 line
1.8.4.rc0.1.g8f6a3e5.dirty
PATCH RESEND 4/9 ACPI/Thermal: Use acpi_bus_attach_private_data() to attach private data
In reply to Lan TianyuUse acpi_bus_attach_private_data() to attach private data instead of acpi_attach_data().
--- drivers/acpi/thermal.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-)
drivers/acpi/thermal.c +3 -6
@@ -925,13 +925,10 @@ static int acpi_thermal_register_thermal_zone(struct acpi_thermal *tz)if (result)return result; - status =acpi_attach_data (tz->device->handle, - acpi_bus_private_data_handler, - tz->thermal_zone); -if (ACPI_FAILURE (status)) { -pr_err (PREFIX "Error attaching device data\n" ); + status =acpi_bus_attach_private_data (tz->device->handle, + tz->thermal_zone); +if (ACPI_FAILURE (status))return -ENODEV ; - } tz->tz_enabled =1 ;
Signature · 1 line
1.8.4.rc0.1.g8f6a3e5.dirty
PATCH RESEND 5/9 I2C: Add smbus quick read/write helper function
In reply to Lan TianyuAdd i2c_smbus_quick_write/read() helper function. These will be used in the implementation of i2c ACPI address space handler.
--- drivers/i2c/i2c-core.c | 30 ++++++++++++++++++++++++++++++ include/linux/i2c.h | 2 ++ 2 files changed, 32 insertions(+)
drivers/i2c/i2c-core.c +30 -0
@@ -2162,6 +2162,36 @@ static int i2c_smbus_check_pec(u8 cpec, struct i2c_msg *msg) }/** +* i2c_smbus_quick_write - SMBus "quick write" protocol +* @client: Handle to slave device +* +* This executes the SMBus "quick write" protocol, returning negative errno +* else zero on success. +*/ +s32 i2c_smbus_quick_write (const struct i2c_client *client) +{ +return i2c_smbus_xfer (client->adapter, client->addr, client->flags, +I2C_SMBUS_WRITE ,0 , +I2C_SMBUS_QUICK ,NULL ); +} +EXPORT_SYMBOL_GPL (i2c_smbus_quick_write); + +/** +* i2c_smbus_quick_read - SMBus "quick read" protocol +* @client: Handle to slave device +* +* This executes the SMBus "quick read" protocol, returning negative errno +* else zero on success. +*/ +s32 i2c_smbus_quick_read (const struct i2c_client *client) +{ +return i2c_smbus_xfer (client->adapter, client->addr, client->flags, +I2C_SMBUS_READ ,0 , +I2C_SMBUS_QUICK ,NULL ); +} +EXPORT_SYMBOL_GPL (i2c_smbus_quick_read); + +/** * i2c_smbus_read_byte - SMBus "receive byte" protocol * @client: Handle to slave device *
include/linux/i2c.h +2 -0
@@ -82,6 +82,8 @@ extern s32 i2c_smbus_xfer(struct i2c_adapter *adapter, u16 addr,/* Now follow the 'nice' access routines. These also document the calling conventions of i2c_smbus_xfer. */ +extern s32 i2c_smbus_quick_write (const struct i2c_client *client); +extern s32 i2c_smbus_quick_read (const struct i2c_client *client);extern s32 i2c_smbus_read_byte (const struct i2c_client *client);extern s32 i2c_smbus_write_byte (const struct i2c_client *client,u8 value); extern s32 i2c_smbus_read_byte_data(const struct i2c_client *client,
Signature · 1 line
1.8.4.rc0.1.g8f6a3e5.dirty
PATCH RESEND 6/9 I2C: Add smbus word/block process call helper function
In reply to Lan TianyuAdd i2c_smbus_word/block_proc_call() helper function. These will be used in the implementation of i2c ACPI address space handler.
--- drivers/i2c/i2c-core.c | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++ include/linux/i2c.h | 4 ++++ 2 files changed, 60 insertions(+)
drivers/i2c/i2c-core.c +56 -0
@@ -2306,6 +2306,30 @@ s32 i2c_smbus_write_word_data(const struct i2c_client *client, u8 command,EXPORT_SYMBOL (i2c_smbus_write_word_data);/** +* i2c_smbus_word_proc_call - SMBus "word proc call" protocol +* @client: Handle to slave device +* @command: Byte interpreted by slave +* @value: 16-bit "word" being written +* +* This executes the SMBus "word proc all" protocol, returning negative errno +* else a 16-bit unsigned "word" received from the device. +*/ +s32 i2c_smbus_word_proc_call (const struct i2c_client *client,u8 command, +u16 value) +{ +union i2c_smbus_data data; +int status; + + data.word = value; + status =i2c_smbus_xfer (client->adapter, client->addr, client->flags, +I2C_SMBUS_READ , command, +I2C_SMBUS_PROC_CALL , &data); + +return (status <0 ) ? status : data.word; +} +EXPORT_SYMBOL (i2c_smbus_word_proc_call); + +/** * i2c_smbus_read_block_data - SMBus "block read" protocol * @client: Handle to slave device * @command: Byte interpreted by slave
@@ -2362,6 +2386,38 @@ s32 i2c_smbus_write_block_data(const struct i2c_client *client, u8 command, }EXPORT_SYMBOL (i2c_smbus_write_block_data); +/** +* i2c_smbus_block_proc_call - SMBus "block write" protocol +* @client: Handle to slave device +* @command: Byte interpreted by slave +* @length: Size of data block; SMBus allows at most 32 bytes +* @values: Byte array which will be written. +* +* This executes the SMBus "block proc call" protocol, returning negative errno +* else the number of read bytes. +*/ +s32 i2c_smbus_block_proc_call (const struct i2c_client *client,u8 command, +u8 length,u8 *values) +{ +union i2c_smbus_data data; +int status; + +if (length >I2C_SMBUS_BLOCK_MAX ) + length =I2C_SMBUS_BLOCK_MAX ; + data.block[0 ] = length; +memcpy (&data.block[1 ], values, length); + status =i2c_smbus_xfer (client->adapter, client->addr, client->flags, +I2C_SMBUS_READ , command, +I2C_SMBUS_BLOCK_PROC_CALL , &data); + +if (status <0 ) +return status; + +memcpy (values, &data.block[1 ], data.block[0 ]); +return data.block[0 ]; +} +EXPORT_SYMBOL (i2c_smbus_block_proc_call); +/* Returns the number of read bytes */ s32 i2c_smbus_read_i2c_block_data (const struct i2c_client *client,u8 command,u8 length,u8 *values)
include/linux/i2c.h +4 -0
@@ -94,6 +94,10 @@ extern s32 i2c_smbus_read_word_data(const struct i2c_client *client, u8 command);extern s32 i2c_smbus_write_word_data (const struct i2c_client *client,u8 command,u16 value); +extern s32 i2c_smbus_word_proc_call (const struct i2c_client *client, +u8 command,u16 value); +extern s32 i2c_smbus_block_proc_call (const struct i2c_client *client, +u8 command,u8 length,u8 *values);static inline s32 i2c_smbus_read_word_swapped (const struct i2c_client *client,u8 command)
Signature · 1 line
1.8.4.rc0.1.g8f6a3e5.dirty
PATCH RESEND 7/9 I2C/ACPI: Add i2c ACPI operation region support
In reply to Lan TianyuACPI 5.0 spec(5.5.2.4.5) defines GenericSerialBus(i2c, spi, uart) operation region. It allows ACPI aml code able to access such kind of devices to implement some ACPI standard method.
ACPI Spec defines some access attribute to associate with i2c protocol.
AttribQuick Read/Write Quick Protocol
AttribSendReceive Send/Receive Byte Protocol
AttribByte Read/Write Byte Protocol
AttribWord Read/Write Word Protocol
AttribBlock Read/Write Block Protocol
AttribBytes Read/Write N-Bytes Protocol
AttribProcessCall Process Call Protocol
AttribBlockProcessCall Write Block-Read Block Process Call Protocol
AttribRawBytes Raw Read/Write N-BytesProtocol
AttribRawProcessBytes Raw Process Call Protocol
On the Asus T100TA, Bios use GenericSerialBus operation region to access i2c device to get battery info.
Sample code From Asus T100TA
Scope (_SB.I2C1)
{
Name (UMPC, ResourceTemplate ()
{
I2cSerialBus (0x0066, ControllerInitiated, 0x00061A80,
AddressingMode7Bit, "\\_SB.I2C1",
0x00, ResourceConsumer, ,
)
})
...
OperationRegion (DVUM, GenericSerialBus, Zero, 0x0100)
Field (DVUM, BufferAcc, NoLock, Preserve)
{
Connection (UMPC),
Offset (0x81),
AccessAs (BufferAcc, AttribBytes (0x3E)),
FGC0, 8
}
...
}
Device (BATC)
{
Name (_HID, EisaId ("PNP0C0A")) // _HID: Hardware ID
Name (_UID, One) // _UID: Unique ID
...
Method (_BST, 0, NotSerialized) // _BST: Battery Status
{
If (LEqual (AVBL, One))
{
Store (FGC0, BFFG)
If (LNotEqual (STAT, One))
{
ShiftRight (CHST, 0x04, Local0)
And (Local0, 0x03, Local0)
If (LOr (LEqual (Local0, One), LEqual (Local0, 0x02)))
{
Store (0x02, Local1)
}
...
}The i2c operation region is defined under I2C1 scope. _BST method under battery device BATC read battery status from the field "FCG0". The request would be sent to i2c operation region handler.
This patch is to add i2c ACPI operation region support. Due to there are only "Byte" and "Bytes" protocol access on the Asus T100TA, other protocols have not been tested.
About RawBytes and RawProcessBytes protocol, they needs specific drivers to interpret reference data from AML code according ACPI 5.0 SPEC(5.5.2.4.5.3.9 and 5.5.2.4.5.3.10). So far, not found such case and will add when find real case.
--- drivers/i2c/Makefile | 5 +- drivers/i2c/i2c-acpi.c | 282 +++++++++++++++++++++++++++++++++++++++++++++++++ drivers/i2c/i2c-core.c | 2 + include/linux/acpi.h | 11 ++ include/linux/i2c.h | 10 ++ 5 files changed, 309 insertions(+), 1 deletion(-) create mode 100644 drivers/i2c/i2c-acpi.c
drivers/i2c/Makefile +4 -1
@@ -2,8 +2,11 @@ # Makefile for the i2c core. # +i2ccore-y := i2c-core.o +i2ccore-$(CONFIG_ACPI) += i2c-acpi.o + obj-$(CONFIG_I2C_BOARDINFO) += i2c-boardinfo.o -obj-$(CONFIG_I2C) += i2c-core.o +obj-$(CONFIG_I2C) += i2ccore.o obj-$(CONFIG_I2C_SMBUS) += i2c-smbus.o obj-$(CONFIG_I2C_CHARDEV) += i2c-dev.o obj-$(CONFIG_I2C_MUX) += i2c-mux.o
drivers/i2c/i2c-acpi.c new file +282 -0
282 lines not on this page · raw message
drivers/i2c/i2c-core.c +2 -0
@@ -1293,6 +1293,7 @@ exit_recovery:/* create pre-declared device nodes */ of_i2c_register_devices (adap);acpi_i2c_register_devices (adap); +acpi_i2c_install_space_handler (adap);if (adap->nr < __i2c_first_dynamic_bus_num)i2c_scan_static_board_info (adap);
@@ -1466,6 +1467,7 @@ void i2c_del_adapter(struct i2c_adapter *adap)return ; } +acpi_i2c_remove_space_handler (adap);/* Tell drivers about this removal */ mutex_lock (&core_lock); bus_for_each_drv(&i2c_bus_type, NULL, adap,
include/linux/acpi.h +11 -0
@@ -361,6 +361,17 @@ extern bool osc_sb_apei_support_acked;#define OSC_PCI_EXPRESS_CAPABILITY_CONTROL 0x00000010#define OSC_PCI_CONTROL_MASKS 0x0000001f +#define ACPI_GSB_ACCESS_ATTRIB_QUICK 0x00000002 +#define ACPI_GSB_ACCESS_ATTRIB_SEND_RCV 0x00000004 +#define ACPI_GSB_ACCESS_ATTRIB_BYTE 0x00000006 +#define ACPI_GSB_ACCESS_ATTRIB_WORD 0x00000008 +#define ACPI_GSB_ACCESS_ATTRIB_BLOCK 0x0000000A +#define ACPI_GSB_ACCESS_ATTRIB_MULTIBYTE 0x0000000B +#define ACPI_GSB_ACCESS_ATTRIB_WORD_CALL 0x0000000C +#define ACPI_GSB_ACCESS_ATTRIB_BLOCK_CALL 0x0000000D +#define ACPI_GSB_ACCESS_ATTRIB_RAW_BYTES 0x0000000E +#define ACPI_GSB_ACCESS_ATTRIB_RAW_PROCESS 0x0000000F +extern acpi_status acpi_pci_osc_control_set (acpi_handle handle,u32 *mask,u32 req);
include/linux/i2c.h +10 -0
@@ -583,4 +583,14 @@ static inline struct i2c_adapter *of_find_i2c_adapter_by_node(struct device_node }#endif /* CONFIG_OF */ +#ifdef CONFIG_ACPI +int acpi_i2c_install_space_handler (struct i2c_adapter *adapter); +void acpi_i2c_remove_space_handler (struct i2c_adapter *adapter); +#else +static inline void acpi_i2c_remove_space_handler (struct i2c_adapter *adapter) +{ } +static inline int acpi_i2c_install_space_handler (struct i2c_adapter *adapter) +{return 0 ; } +#endif +#endif /* _LINUX_I2C_H */
Signature · 1 line
1.8.4.rc0.1.g8f6a3e5.dirty
PATCH RESEND 8/9 I2C/ACPI: Move ACPI related code to i2c-acpi.c
In reply to Lan TianyuClean up ACPI related code in the i2c core.
--- drivers/i2c/i2c-acpi.c | 89 ++++++++++++++++++++++++++++++++++++++++++++++ drivers/i2c/i2c-core.c | 95 -------------------------------------------------- include/linux/i2c.h | 3 ++ 3 files changed, 92 insertions(+), 95 deletions(-)
drivers/i2c/i2c-acpi.c +89 -0
@@ -37,6 +37,95 @@ struct gsb_buffer { }; } __packed; +static int acpi_i2c_add_resource (struct acpi_resource *ares,void *data) +{ +struct i2c_board_info *info = data; + +if (ares->type ==ACPI_RESOURCE_TYPE_SERIAL_BUS ) { +struct acpi_resource_i2c_serialbus *sb; + + sb = &ares->data.i2c_serial_bus; +if (sb->type ==ACPI_RESOURCE_SERIAL_TYPE_I2C ) { + info->addr = sb->slave_address; +if (sb->access_mode ==ACPI_I2C_10BIT_MODE ) + info->flags |=I2C_CLIENT_TEN ; + } + }else if (info->irq <0 ) { +struct resource r; + +if (acpi_dev_resource_interrupt (ares,0 , &r)) + info->irq = r.start; + } + +/* Tell the ACPI core to skip this resource */ +return 1 ; +} + +static acpi_status acpi_i2c_add_device (acpi_handle handle,u32 level, +void *data,void **return_value) +{ +struct i2c_adapter *adapter = data; +struct list_head resource_list; +struct i2c_board_info info; +struct acpi_device *adev; +int ret; + +if (acpi_bus_get_device (handle, &adev)) +return AE_OK ; +if (acpi_bus_get_status (adev) || !adev->status.present) +return AE_OK ; + +memset (&info,0 ,sizeof (info)); + info.acpi_node.companion = adev; + info.irq =-1 ; + +INIT_LIST_HEAD (&resource_list); + ret =acpi_dev_get_resources (adev, &resource_list, + acpi_i2c_add_resource, &info); +acpi_dev_free_resource_list (&resource_list); + +if (ret <0 || !info.addr) +return AE_OK ; + + adev->power.flags.ignore_parent = true; +strlcpy (info.type,dev_name (&adev->dev),sizeof (info.type)); +if (!i2c_new_device (adapter, &info)) { + adev->power.flags.ignore_parent = false; +dev_err (&adapter->dev, +"failed to add I2C device %s from ACPI\n" , +dev_name (&adev->dev)); + } + +return AE_OK ; +} + +/** +* acpi_i2c_register_devices - enumerate I2C slave devices behind adapter +* @adap: pointer to adapter +* +* Enumerate all I2C slave devices behind this adapter by walking the ACPI +* namespace. When a device is found it will be added to the Linux device +* model and bound to the corresponding ACPI handle. +*/ +void acpi_i2c_register_devices (struct i2c_adapter *adap) +{ +acpi_handle handle; +acpi_status status; + +if (!adap->dev.parent) +return ; + + handle =ACPI_HANDLE (adap->dev.parent); +if (!handle) +return ; + + status =acpi_walk_namespace (ACPI_TYPE_DEVICE , handle,1 , + acpi_i2c_add_device,NULL , + adap,NULL ); +if (ACPI_FAILURE (status)) +dev_warn (&adap->dev,"failed to enumerate I2C slaves\n" ); +} +static int acpi_gsb_i2c_read_bytes (struct i2c_client *client,u8 cmd,u8 *data,u8 data_len) {
drivers/i2c/i2c-core.c +0 -95
101 lines not on this page · raw message
include/linux/i2c.h +3 -0
@@ -586,7 +586,10 @@ static inline struct i2c_adapter *of_find_i2c_adapter_by_node(struct device_node#ifdef CONFIG_ACPI int acpi_i2c_install_space_handler (struct i2c_adapter *adapter);void acpi_i2c_remove_space_handler (struct i2c_adapter *adapter); +void acpi_i2c_register_devices (struct i2c_adapter *adap);#else +static inline void acpi_i2c_register_devices (struct i2c_adapter *adap) {}; +static inline void acpi_i2c_remove_space_handler (struct i2c_adapter *adapter) { }static inline int acpi_i2c_install_space_handler (struct i2c_adapter *adapter)
Signature · 1 line
1.8.4.rc0.1.g8f6a3e5.dirty
PATCH RESEND 9/9 I2C/ACPI: Add CONFIG_I2C_ACPI config
In reply to Lan TianyuThis patch is to add CONFIG_I2C_ACPI. Current there is a race between removing I2C ACPI operation region and ACPI AML code accessing. So make i2c core built-in if CONFIG_I2C_ACPI is set.
--- drivers/i2c/Kconfig | 17 ++++++++++++++++- drivers/i2c/Makefile | 2 +- include/linux/i2c.h | 2 +- 3 files changed, 18 insertions(+), 3 deletions(-)
drivers/i2c/Kconfig +16 -1
@@ -2,7 +2,9 @@ # I2C subsystem configuration # -menuconfig I2C +menu "I2C support" + +config I2C tristate "I2C support" select RT_MUTEXES ---help---
@@ -21,6 +23,17 @@ menuconfig I2C This I2C support can also be built as a module. If so, the module will be called i2c-core. +config I2C_ACPI + bool "I2C ACPI support" + select I2C + depends on ACPI + default y + help + Say Y here if you want to enable I2C ACPI function. ACPI table + provides I2C slave devices' information to enumerate these devices. + This option also allows ACPI AML code to access I2C slave devices + via I2C ACPI operation region to fulfill ACPI method. + if I2C config I2C_BOARDINFO
@@ -124,3 +137,5 @@ config I2C_DEBUG_BUS on. endif # I2C + +endmenu
drivers/i2c/Makefile +1 -1
@@ -3,7 +3,7 @@ # i2ccore-y := i2c-core.o -i2ccore-$(CONFIG_ACPI) += i2c-acpi.o +i2ccore-$(CONFIG_I2C_ACPI) += i2c-acpi.o obj-$(CONFIG_I2C_BOARDINFO) += i2c-boardinfo.o obj-$(CONFIG_I2C) += i2ccore.o
include/linux/i2c.h +1 -1
@@ -583,7 +583,7 @@ static inline struct i2c_adapter *of_find_i2c_adapter_by_node(struct device_node }#endif /* CONFIG_OF */ -#ifdef CONFIG_ACPI +#ifdef CONFIG_I2C_ACPI int acpi_i2c_install_space_handler (struct i2c_adapter *adapter);void acpi_i2c_remove_space_handler (struct i2c_adapter *adapter);void acpi_i2c_register_devices (struct i2c_adapter *adap);
Signature · 1 line
1.8.4.rc0.1.g8f6a3e5.dirty
Re: [Resend Patch 1/9] ACPICA: Executer: Fix buffer allocation issue for generic_serial_bus region field accesses.
In reply to Lan TianyuQuoted 9 lines · Lan Tianyu
From: Lv Zheng <[email protected]>
The size of the buffer allocated for
generic_serial_busregion access is not correct. This patch introducesacpi_ex_get_serial_access_length()to be invoked to obtain correct data buffer length. Reported by Lan Tianyu, Fixed by Lv Zheng.Signed-off-by Lv Zheng <[email protected]>Signed-off-by Lan Tianyu <[email protected]>
Re: [Resend Patch 2/9] ACPICA: Export acpi_buffer_to_resource symbol
In reply to Lan TianyuQuoted 4 lines · Lan Tianyu
The
acpi_buffer_to_resourceis needed in i2c module to convert aml buffer to structacpi_resourceSigned-off-by Lan Tianyu <[email protected]>
Re: [Resend Patch 3/9] ACPI: Add acpi_bus_attach_private_data() to facilitate to attach data to ACPI handle
In reply to Lan TianyuQuoted 24 lines · Lan Tianyu
There is already
acpi_bus_get_private_data()to get ACPI handle data which is associated withacpi_bus_private_data_handler(). This patch is to addacpi_bus_attach_private_data()to make a pair and facilitate to attach and get data to/from ACPI handle.Signed-off-by Lan Tianyu <[email protected]>--- drivers/acpi/bus.c | 18 +++++++++++++++++- include/acpi/acpi_bus.h | 1 + 2 files changed, 18 insertions(+), 1 deletion(-)drivers/acpi/bus.c +5
-0@@ -132,6 +132,22 @@ void acpi_bus_private_data_handler(acpi_handle handle, }EXPORT_SYMBOL (acpi_bus_private_data_handler); +int acpi_bus_attach_private_data (acpi_handle handle,void *data) +{ +acpi_status status; + + status = acpi_attach_data(handle,
drivers/acpi/bus.c void acpi_bus_private_data_handler(acpi_handle handle, · line 149
Quoted 10 lines
drivers/acpi/bus.c +10
-0+ acpi_bus_private_data_handler, data); +if (ACPI_FAILURE (status)) { +ACPI_ERROR ((AE_INFO ,"Error attaching device[%p] data\n" , + handle)); +return -ENODEV ; + } + +return 0 ; +} +EXPORT_SYMBOL (acpi_bus_attach_private_data);
When I added GPIO operation region support, Rafael mentioned that we might want to add this private data to the struct acpi_device instead.
Either way, looks good to me,
Re: [Resend Patch 4/9] ACPI/Thermal: Use acpi_bus_attach_private_data() to attach private data
In reply to Lan TianyuQuoted 4 lines · Lan Tianyu
Use
acpi_bus_attach_private_data()to attach private data instead ofacpi_attach_data().Signed-off-by Lan Tianyu <[email protected]>
Re: [Resend Patch 5/9] I2C: Add smbus quick read/write helper function
In reply to Lan TianyuQuoted 4 lines · Lan Tianyu
Add i2c_smbus_quick_write/read() helper function. These will be used in the implementation of i2c ACPI address space handler.
Signed-off-by Lan Tianyu <[email protected]>
Re: [Resend Patch 6/9] I2C: Add smbus word/block process call helper function
In reply to Lan TianyuQuoted 4 lines · Lan Tianyu
Add i2c_smbus_word/block_proc_call() helper function. These will be used in the implementation of i2c ACPI address space handler.
Signed-off-by Lan Tianyu <[email protected]>
Re: [Resend Patch 7/9] I2C/ACPI: Add i2c ACPI operation region support
In reply to Lan TianyuQuoted 24 lines · Lan Tianyu
drivers/i2c/i2c-acpi.c new file +18
-0@@ -0,0 +1,282 @@ +/* +* I2C ACPI code +* +* Copyright (C) 2014 Intel Corp +* +* Author: Lan Tianyu <[email protected]> +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 as +* published by the Free Software Foundation. +* +* This program is distributed in the hope that it will be useful, but +* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +* for more details. +*/ +#define pr_fmt (fmt) "I2C/ACPI : " fmt +
drivers/i2c/i2c-acpi.c line 28
Quoted 10 lines
drivers/i2c/i2c-acpi.c new file +10
-0+#include <linux/kernel.h> +#include <linux/errno.h> +#include <linux/err.h> +#include <linux/i2c.h> +#include <linux/acpi.h> + +struct acpi_i2c_handler_data { +struct acpi_connection_info info; +struct i2c_adapter *adapter; +} __packed;
Why __packed?
Quoted 8 lines
drivers/i2c/i2c-acpi.c new file +8
-0+ +struct gsb_buffer { +u8 status; +u8 len; +union { +u16 wdata; +u8 bdata; +u8 data[0 ];
drivers/i2c/i2c-acpi.c line 46
Quoted 10 lines
drivers/i2c/i2c-acpi.c new file +10
-0+ }; +} __packed; + +static int acpi_gsb_i2c_read_bytes (struct i2c_client *client, +u8 cmd,u8 *data,u8 data_len) +{ + +struct i2c_msg msgs[2 ]; +int ret; +u8 *buffer;
You seem to have two spaces here.
Quoted 21 lines
drivers/i2c/i2c-acpi.c new file +21
-0+ + buffer =kzalloc (data_len,GFP_KERNEL ); +if (!buffer) +return AE_NO_MEMORY ; + + msgs[0 ].addr = client->addr; + msgs[0 ].flags = client->flags; + msgs[0 ].len =1 ; + msgs[0 ].buf = &cmd; + + msgs[1 ].addr = client->addr; + msgs[1 ].flags = client->flags |I2C_M_RD ; + msgs[1 ].len = data_len; + msgs[1 ].buf = buffer; + + ret =i2c_transfer (client->adapter, msgs,ARRAY_SIZE (msgs)); +if (ret <0 ) +pr_err ("i2c read failed\n" ); +else +memcpy (data, buffer, data_len); +
drivers/i2c/i2c-acpi.c line 77
Quoted 10 lines
drivers/i2c/i2c-acpi.c new file +10
-0+kfree (buffer); +return ret; +} + +static int acpi_gsb_i2c_write_bytes (struct i2c_client *client, +u8 cmd,u8 *data,u8 data_len) +{ + +struct i2c_msg msgs[1 ]; +u8 *buffer;
Ditto.
Quoted 7 lines
drivers/i2c/i2c-acpi.c new file +7
-0+int ret =AE_OK ; + + buffer =kzalloc (data_len +1 ,GFP_KERNEL ); +if (!buffer) +return AE_NO_MEMORY ; + + buffer[0 ] = cmd;
drivers/i2c/i2c-acpi.c line 94
Quoted 10 lines
drivers/i2c/i2c-acpi.c new file +10
-0+memcpy (buffer +1 , data, data_len); + + msgs[0 ].addr = client->addr; + msgs[0 ].flags = client->flags; + msgs[0 ].len = data_len +1 ; + msgs[0 ].buf = buffer; + + ret =i2c_transfer (client->adapter, msgs,ARRAY_SIZE (msgs)); +if (ret <0 ) +pr_err ("i2c write failed\n" );
Since you have pointer to the adapter, can't you use dev_err() instead?
Quoted 18 lines
drivers/i2c/i2c-acpi.c new file +18
-0+ +kfree (buffer); +return ret; +} + +static acpi_status +acpi_i2c_space_handler (u32 function,acpi_physical_address command, +u32 bits,u64 *value64, +void *handler_context,void *region_context) +{ +struct gsb_buffer *gsb = (struct gsb_buffer *)value64; +struct acpi_i2c_handler_data *data = handler_context; +struct acpi_connection_info *info = &data->info; +struct acpi_resource_i2c_serialbus *sb; +struct i2c_adapter *adapter = data->adapter; +struct i2c_client client; +struct acpi_resource *ares; +u32 accessor_type = function >>16 ;
drivers/i2c/i2c-acpi.c line 122
Quoted 10 lines
drivers/i2c/i2c-acpi.c new file +10
-0+u8 action = function &ACPI_IO_MASK ; +int status; + +acpi_buffer_to_resource (info->connection, info->length, &ares); +if (!value64 || ares->type !=ACPI_RESOURCE_TYPE_SERIAL_BUS ) +return AE_BAD_PARAMETER ; + + sb = &ares->data.i2c_serial_bus; +if (sb->type !=ACPI_RESOURCE_SERIAL_TYPE_I2C ) +return AE_BAD_PARAMETER ;
Do you leak the resource buffer here?
drivers/i2c/i2c-acpi.c line 126
Quoted 4 lines
drivers/i2c/i2c-acpi.c new file +4
-0+ + client.adapter = adapter; + client.addr = sb->slave_address; + client.flags =0 ;
I'm not sure if this is the correct way to use struct i2c_client (allocating it from stack and passing forward to functions that might expect a real i2c_client structure). It has ->dev and all.
I'm wondering if you can use i2c_transfer() and i2c_smbus_xfer() here instead, passing just the adapter pointer?
Quoted 85 lines
drivers/i2c/i2c-acpi.c new file +85
-0+ +if (sb->access_mode ==ACPI_I2C_10BIT_MODE ) + client.flags |=I2C_CLIENT_TEN ; + +switch (accessor_type) { +case ACPI_GSB_ACCESS_ATTRIB_QUICK : +if (action ==ACPI_READ ) + status =i2c_smbus_quick_read (&client); +else + status =i2c_smbus_quick_write (&client); +break ; + +case ACPI_GSB_ACCESS_ATTRIB_SEND_RCV : +if (action ==ACPI_READ ) { + status =i2c_smbus_read_byte (&client); +if (status >=0 ) { + gsb->bdata = status; + status =0 ; + } + }else { + status =i2c_smbus_write_byte (&client, gsb->bdata); + } +break ; + +case ACPI_GSB_ACCESS_ATTRIB_BYTE : +if (action ==ACPI_READ ) { + status =i2c_smbus_read_byte_data (&client, command); +if (status >=0 ) { + gsb->bdata = status; + status =0 ; + } + }else { + status =i2c_smbus_write_byte_data (&client, command, + gsb->bdata); + } +break ; + +case ACPI_GSB_ACCESS_ATTRIB_WORD : +if (action ==ACPI_READ ) { + status =i2c_smbus_read_word_data (&client, command); +if (status >=0 ) { + gsb->wdata = status; + status =0 ; + } + }else { + status =i2c_smbus_write_word_data (&client, command, + gsb->wdata); + } +break ; + +case ACPI_GSB_ACCESS_ATTRIB_BLOCK : +if (action ==ACPI_READ ) { + status =i2c_smbus_read_block_data (&client, command, + gsb->data); +if (status >=0 ) { + gsb->len = status; + status =0 ; + } + }else { + status =i2c_smbus_write_block_data (&client, command, + gsb->len, gsb->data); + } +break ; + +case ACPI_GSB_ACCESS_ATTRIB_MULTIBYTE : +if (action ==ACPI_READ ) { + status =acpi_gsb_i2c_read_bytes (&client, command, + gsb->data, info->access_length); +if (status >0 ) + status =0 ; + }else { + status =acpi_gsb_i2c_write_bytes (&client, command, + gsb->data, info->access_length); + } +break ; + +case ACPI_GSB_ACCESS_ATTRIB_WORD_CALL : + status =i2c_smbus_word_proc_call (&client, command, gsb->wdata); +if (status >=0 ) { + gsb->wdata = status; + status =0 ; + } +break ; + +case ACPI_GSB_ACCESS_ATTRIB_BLOCK_CALL :
drivers/i2c/i2c-acpi.c line 221
Quoted 10 lines
drivers/i2c/i2c-acpi.c new file +10
-0+ status =i2c_smbus_block_proc_call (&client, command, gsb->len, + gsb->data); +if (status >0 ) { + gsb->len = status; + status =0 ; + } +break ; + +default : +pr_info ("protocl(0x%02x) is not supported.\n" , accessor_type);
protocl -> protocol
drivers/i2c/i2c-acpi.c line 227
Quoted 6 lines
drivers/i2c/i2c-acpi.c new file +6
-0+return AE_BAD_PARAMETER ; + } + + gsb->status = status; +return AE_OK ; +}
--
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
Re: [Resend Patch 8/9] I2C/ACPI: Move ACPI related code to i2c-acpi.c
In reply to Lan Tianyuinclude/linux/i2c.h static inline struct i2c_adapter *of_find_i2c_adapter_by_node(struct device_node · line 591
Quoted 11 lines · Lan Tianyu
include/linux/i2c.h +2
-0@@ -586,7 +586,10 @@ static inline struct i2c_adapter *of_find_i2c_adapter_by_node(struct device_node#ifdef CONFIG_ACPI int acpi_i2c_install_space_handler (struct i2c_adapter *adapter);void acpi_i2c_remove_space_handler (struct i2c_adapter *adapter); +void acpi_i2c_register_devices (struct i2c_adapter *adap);#else +static inline void acpi_i2c_register_devices (struct i2c_adapter *adap) {};
Semicolon is not needed here.
Apart from that,
Re: [Resend Patch 9/9] I2C/ACPI: Add CONFIG_I2C_ACPI config
In reply to Lan TianyuQuoted 31 lines · Lan Tianyu
This patch is to add
CONFIG_I2C_ACPI. Current there is a race between removing I2C ACPI operation region and ACPI AML code accessing. So make i2c core built-in ifCONFIG_I2C_ACPIis set.Signed-off-by Lan Tianyu <[email protected]>--- drivers/i2c/Kconfig | 17 ++++++++++++++++- drivers/i2c/Makefile | 2 +- include/linux/i2c.h | 2 +- 3 files changed, 18 insertions(+), 3 deletions(-)drivers/i2c/Kconfig +4
-1@@ -2,7 +2,9 @@ # I2C subsystem configuration # -menuconfig I2C +menu "I2C support" + +config I2C tristate "I2C support" select RT_MUTEXES ---help---@@ -21,6 +23,17 @@ menuconfig I2C This I2C support can also be built as a module. If so, the module will be called i2c-core. +config I2C_ACPI
drivers/i2c/Kconfig menuconfig I2C · line 36
Quoted 10 lines
drivers/i2c/Kconfig +10
-0+ bool "I2C ACPI support" + select I2C + depends on ACPI + default y + help + Say Y here if you want to enable I2C ACPI function. ACPI table + provides I2C slave devices' information to enumerate these devices. + This option also allows ACPI AML code to access I2C slave devices + via I2C ACPI operation region to fulfill ACPI method. +
I'm wondering, can we provide some sort of wrapper function from ACPI core that is guaranteed to be built in to the kernel image and use it instead of adding new Kconfig options?
Re: [Resend Patch 7/9] I2C/ACPI: Add i2c ACPI operation region support
In reply to Mika WesterbergHi Mika:
Thanks a lot for your review.
Quoted 7 lines · Mika Westerberg
Quoted 4 lines
drivers/i2c/i2c-acpi.c line 126
Quoted 4 lines
drivers/i2c/i2c-acpi.c new file +4
-0+ + client.adapter = adapter; + client.addr = sb->slave_address; + client.flags =0 ;I'm not sure if this is the correct way to use struct
i2c_client(allocating it from stack and passing forward to functions that might expect a reali2c_clientstructure). It has ->dev and all.
I check all i2c_smbus_xxx helper functions and they are simple wrappers of i2c_smbus_xfer(). Only adapter, addr and flags of struct client are used in these functions.
Quoted 4 lines
I'm wondering if you can use
i2c_transfer()andi2c_smbus_xfer()here instead, passing just the adapter pointer?
Yes, I can do that but this needs to copy all codes of i2c_smbus_xxx helper function in the i2c-core.c here. This seems duplicated?
Signature · 6 lines
Best regards Tianyu Lan -- 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
Re: [Resend Patch 9/9] I2C/ACPI: Add CONFIG_I2C_ACPI config
In reply to Mika WesterbergQuoted 31 lines · Mika Westerberg
Quoted 30 lines · Lan Tianyu
This patch is to add
CONFIG_I2C_ACPI. Current there is a race between removing I2C ACPI operation region and ACPI AML code accessing. So make i2c core built-in ifCONFIG_I2C_ACPIis set.Signed-off-by Lan Tianyu <[email protected]>--- drivers/i2c/Kconfig | 17 ++++++++++++++++- drivers/i2c/Makefile | 2 +- include/linux/i2c.h | 2 +- 3 files changed, 18 insertions(+), 3 deletions(-)drivers/i2c/Kconfig +3
-1@@ -2,7 +2,9 @@ # I2C subsystem configuration # -menuconfig I2C +menu "I2C support" + +config I2C tristate "I2C support" select RT_MUTEXES ---help---@@ -21,6 +23,17 @@ menuconfig I2C This I2C support can also be built as a module. If so, the module will be called i2c-core.
Quoted 16 lines
drivers/i2c/Kconfig menuconfig I2C · line 36
Quoted 11 lines
drivers/i2c/Kconfig +11
-0+config I2C_ACPI + bool "I2C ACPI support" + select I2C + depends on ACPI + default y + help + Say Y here if you want to enable I2C ACPI function. ACPI table + provides I2C slave devices' information to enumerate these devices. + This option also allows ACPI AML code to access I2C slave devices + via I2C ACPI operation region to fulfill ACPI method. +I'm wondering, can we provide some sort of wrapper function from ACPI core that is guaranteed to be built in to the kernel image and use it instead of adding new
Kconfigoptions?
LV tried to fix the issue via wrapper solution in the ACPI code before.
https://lkml.org/lkml/2013/7/23/87
He has a plan to resolve the issue in ACPICA later.
Other choice is to increase the i2c-core module count to prevent it being unloaded when i2c operation region handler is installed. Remove the code When LV finish his job.
Signature · 2 lines
Best regards Tianyu Lan
RE: [Resend Patch 9/9] I2C/ACPI: Add CONFIG_I2C_ACPI config
Hi, Tianyu
Quoted 53 lines
From: Lan, Tianyu
Sent: Wednesday, April 23, 2014 1:40 PMQuoted 31 lines · Mika Westerberg
Quoted 30 lines · Lan Tianyu
This patch is to add
CONFIG_I2C_ACPI. Current there is a race between removing I2C ACPI operation region and ACPI AML code accessing. So make i2c core built-in ifCONFIG_I2C_ACPIis set.Signed-off-by Lan Tianyu <[email protected]>--- drivers/i2c/Kconfig | 17 ++++++++++++++++- drivers/i2c/Makefile | 2 +- include/linux/i2c.h | 2 +- 3 files changed, 18 insertions(+), 3 deletions(-)drivers/i2c/Kconfig +3
-1@@ -2,7 +2,9 @@ # I2C subsystem configuration # -menuconfig I2C +menu "I2C support" + +config I2C tristate "I2C support" select RT_MUTEXES ---help---@@ -21,6 +23,17 @@ menuconfig I2C This I2C support can also be built as a module. If so, the module will be called i2c-core.Quoted 16 lines
drivers/i2c/Kconfig menuconfig I2C · line 36
Quoted 11 lines
drivers/i2c/Kconfig +11
-0+config I2C_ACPI + bool "I2C ACPI support" + select I2C + depends on ACPI + default y + help + Say Y here if you want to enable I2C ACPI function. ACPI table + provides I2C slave devices' information to enumerate these devices. + This option also allows ACPI AML code to access I2C slave devices + via I2C ACPI operation region to fulfill ACPI method. +I'm wondering, can we provide some sort of wrapper function from ACPI core that is guaranteed to be built in to the kernel image and use it instead of adding new
Kconfigoptions?Cc LV
Quoted 8 lines
LV tried to fix the issue via wrapper solution in the ACPI code before.
https://lkml.org/lkml/2013/7/23/87He has a plan to resolve the issue in ACPICA later.
Other choice is to increase the i2c-core module count to prevent it being unloaded when i2c operation region handler is installed. Remove the code When LV finish his job.
You may see it implemented in ACPICA after several release.
If you need a fix for now, you can use the patch pointed to by the link you've provided, Or you could find an updated one here:
acpi-ipmi13.patch archived in (https://bugzilla.kernel.org/attachment.cgi?id=112611)
I think the solution you've provided in this patch is also reasonable for now. IPMI also uses a similar solution to solve this issue.
Please refer to the CONFIG_ACPI_IPMI.
The story can be found at:
http://www.spinics.net/lists/linux-acpi/msg49044.html
And the similar solution can be found at:
http://www.spinics.net/lists/linux-acpi/msg49184.html
Thanks and best regards
-Lv
Quoted 4 lines
--
Best regards
Tianyu Lan
Re: [Resend Patch 7/9] I2C/ACPI: Add i2c ACPI operation region support
In reply to Mika WesterbergQuoted 13 lines · Mika Westerberg
Quoted 12 lines · Lan Tianyu
Hi Mika:
Thanks a lot for your review.Quoted 7 lines · Mika Westerberg
Quoted 4 lines
drivers/i2c/i2c-acpi.c line 126
Quoted 4 lines
drivers/i2c/i2c-acpi.c new file +4
-0+ + client.adapter = adapter; + client.addr = sb->slave_address; + client.flags =0 ;I'm not sure if this is the correct way to use struct
i2c_client(allocating it from stack and passing forward to functions that might expect a reali2c_clientstructure). It has ->dev and all.
Quoted 9 lines
Quoted 3 lines
I check all
i2c_smbus_xxxhelper functions and they are simple wrappers ofi2c_smbus_xfer(). Only adapter, addr and flags of struct client are used in these functions.In that case I suppose it is OK to (ab)use the client structure like this.
I think you still want to initialize the whole structure (unused fields with zero) before passing it to the wrappers.
Ok. I will do that.
Signature · 6 lines
Best regards Tianyu Lan -- 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
Re: [Resend Patch 7/9] I2C/ACPI: Add i2c ACPI operation region support
In reply to Lan TianyuQuoted 12 lines · Lan Tianyu
Hi Mika:
Thanks a lot for your review.Quoted 7 lines · Mika Westerberg
Quoted 4 lines
drivers/i2c/i2c-acpi.c line 126
Quoted 4 lines
drivers/i2c/i2c-acpi.c new file +4
-0+ + client.adapter = adapter; + client.addr = sb->slave_address; + client.flags =0 ;I'm not sure if this is the correct way to use struct
i2c_client(allocating it from stack and passing forward to functions that might expect a reali2c_clientstructure). It has ->dev and all.
Quoted 3 lines
I check all
i2c_smbus_xxxhelper functions and they are simple wrappers ofi2c_smbus_xfer(). Only adapter, addr and flags of struct client are used in these functions.
In that case I suppose it is OK to (ab)use the client structure like this.
I think you still want to initialize the whole structure (unused fields with zero) before passing it to the wrappers.
--
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
Re: [Resend Patch 9/9] I2C/ACPI: Add CONFIG_I2C_ACPI config
In reply to Zheng, LvQuoted 69 lines · Lv
Hi, Tianyu
Quoted 53 lines
From: Lan, Tianyu
Sent: Wednesday, April 23, 2014 1:40 PMQuoted 31 lines · Mika Westerberg
Quoted 30 lines · Lan Tianyu
This patch is to add
CONFIG_I2C_ACPI. Current there is a race between removing I2C ACPI operation region and ACPI AML code accessing. So make i2c core built-in ifCONFIG_I2C_ACPIis set.Signed-off-by Lan Tianyu <[email protected]>--- drivers/i2c/Kconfig | 17 ++++++++++++++++- drivers/i2c/Makefile | 2 +- include/linux/i2c.h | 2 +- 3 files changed, 18 insertions(+), 3 deletions(-)drivers/i2c/Kconfig +3
-1@@ -2,7 +2,9 @@ # I2C subsystem configuration # -menuconfig I2C +menu "I2C support" + +config I2C tristate "I2C support" select RT_MUTEXES ---help---@@ -21,6 +23,17 @@ menuconfig I2C This I2C support can also be built as a module. If so, the module will be called i2c-core.Quoted 16 lines
drivers/i2c/Kconfig menuconfig I2C · line 36
Quoted 11 lines
drivers/i2c/Kconfig +11
-0+config I2C_ACPI + bool "I2C ACPI support" + select I2C + depends on ACPI + default y + help + Say Y here if you want to enable I2C ACPI function. ACPI table + provides I2C slave devices' information to enumerate these devices. + This option also allows ACPI AML code to access I2C slave devices + via I2C ACPI operation region to fulfill ACPI method. +I'm wondering, can we provide some sort of wrapper function from ACPI core that is guaranteed to be built in to the kernel image and use it instead of adding new
Kconfigoptions?Cc LVQuoted 8 lines
LV tried to fix the issue via wrapper solution in the ACPI code before.
https://lkml.org/lkml/2013/7/23/87He has a plan to resolve the issue in ACPICA later.
Other choice is to increase the i2c-core module count to prevent it being unloaded when i2c operation region handler is installed. Remove the code When LV finish his job.
You may see it implemented in ACPICA after several release.
If you need a fix for now, you can use the patch pointed to by the link you've provided, Or you could find an updated one here:
acpi-ipmi13.patch archived in (https://bugzilla.kernel.org/attachment.cgi?id=112611)
Quoted 8 lines
I think the solution you've provided in this patch is also reasonable for now. IPMI also uses a similar solution to solve this issue.
Please refer to theCONFIG_ACPI_IPMI.The story can be found at:
http://www.spinics.net/lists/linux-acpi/msg49044.html
And the similar solution can be found at:
http://www.spinics.net/lists/linux-acpi/msg49184.html
Thanks for the pointers.
Given that the IPMI problem was solved like this I guess I2C operation regions can follow the same pattern if there is no better solution available.
Out of curiousity: how did you plan to fix this in ACPICA? --
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
Quoted 10 lines · Lan Tianyu
ACPI 5.0 spec(5.5.2.4.5) defines
GenericSerialBus(i2c, spi, uart)operation region. It allows ACPI aml code able to access such kind of devices to implement some ACPI standard method.On the Asus T100TA, Bios use GenericSerialBus operation region to access i2c device to get battery info. So battery function depends on the I2C operation region support. Here is the bug link.
https://bugzilla.kernel.org/show_bug.cgi?id=69011This patchset is to add I2C ACPI operation region handler support.
For what it's worth, I've tested this patchset with the exception of patch 9/9 - which I leave out because it would require annoying fiddling with my kernel builds - and it gives apparently-accurate battery/AC information on my Venue 8 Pro.
It doesn't *obviously* cause any other problems, though there are a few other issues I'm dealing with ATM. If any of them turn out to be related to this patch set, I'll send a follow-up.
Signature · 4 lines
Adam Williamson Fedora QA Community Monkey IRC: adamw | Twitter: AdamW_Fedora | XMPP: adamw AT happyassassin . net http://www.happyassassin.net
v2 cover I2C ACPI operation region handler support
In reply to Lan TianyuACPI 5.0 spec(5.5.2.4.5) defines GenericSerialBus(i2c, spi, uart) operation region. It allows ACPI aml code able to access such kind of devices to implement some ACPI standard method.
On the Asus T100TA, Bios use GenericSerialBus operation region to access i2c device to get battery info. So battery function depends on the I2C operation region support. Here is the bug link.
https://bugzilla.kernel.org/show_bug.cgi?id=69011
This patchset is to add I2C ACPI operation region handler support.
Change Since V1:
Fix some code style and memory leak issues in Patch 7
[Patch V2 1/9] ACPICA: Executer: Fix buffer allocation issue for [Patch V2 2/9] ACPICA: Export acpi_buffer_to_resource symbol [Patch V2 3/9] ACPI: Add acpi_bus_attach_private_data() to facilitate [Patch V2 4/9] ACPI/Thermal: Use acpi_bus_attach_private_data() to [Patch V2 5/9] I2C: Add smbus quick read/write helper function [Patch V2 6/9] I2C: Add smbus word/block process call helper function [Patch V2 7/9] I2C/ACPI: Add i2c ACPI operation region support [Patch V2 8/9] I2C/ACPI: Move ACPI related code to i2c-acpi.c [Patch V2 9/9] I2C/ACPI: Add CONFIG_I2C_ACPI config
drivers/acpi/acpica/exfield.c | 104 ++++++++++++++++++++++++++++++++++--- drivers/acpi/acpica/rscreate.c | 1 + drivers/acpi/bus.c | 18 ++++++- drivers/acpi/thermal.c | 9 ++-- drivers/i2c/Kconfig | 17 ++++++- drivers/i2c/Makefile | 5 +- drivers/i2c/i2c-acpi.c | 384 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ drivers/i2c/i2c-core.c | 183 ++++++++++++++++++++++++++++++++--------------------------------- include/acpi/acpi_bus.h | 1 + include/linux/acpi.h | 11 ++++ include/linux/i2c.h | 18 +++++++ 11 files changed, 640 insertions(+), 111 deletions(-)
PATCH v2 1/9 ACPICA: Executer: Fix buffer allocation issue for generic_serial_bus region field accesses.
From: Lv Zheng <[email protected]>
The size of the buffer allocated for generic_serial_bus region access is not correct. This patch introduces acpi_ex_get_serial_access_length() to be invoked to obtain correct data buffer length. Reported by Lan Tianyu, Fixed by Lv Zheng.
--- drivers/acpi/acpica/exfield.c | 104 +++++++++++++++++++++++++++++++++++++++--- 1 file changed, 97 insertions(+), 7 deletions(-)
drivers/acpi/acpica/exfield.c +97 -7
@@ -45,10 +45,71 @@#include "accommon.h" #include "acdispat.h" #include "acinterp.h" +#include "amlcode.h" #define _COMPONENT ACPI_EXECUTERACPI_MODULE_NAME ("exfield" ) +/* Local prototypes */ +static u32 +acpi_ex_get_serial_access_length (u32 accessor_type,u32 access_length); + +/******************************************************************************* +* +* FUNCTION: acpi_get_serial_access_bytes +* +* PARAMETERS: accessor_type - The type of the protocol indicated by region +* field access attributes +* access_length - The access length of the region field +* +* RETURN: Decoded access length +* +* DESCRIPTION: This routine returns the length of the generic_serial_bus +* protocol bytes +* +******************************************************************************/ + +static u32 +acpi_ex_get_serial_access_length (u32 accessor_type,u32 access_length) +{ +u32 length; + +switch (accessor_type) { +case AML_FIELD_ATTRIB_QUICK : + + length =0 ; +break ; + +case AML_FIELD_ATTRIB_SEND_RCV : +case AML_FIELD_ATTRIB_BYTE : + + length =1 ; +break ; + +case AML_FIELD_ATTRIB_WORD : +case AML_FIELD_ATTRIB_WORD_CALL : + + length =2 ; +break ; + +case AML_FIELD_ATTRIB_MULTIBYTE : +case AML_FIELD_ATTRIB_RAW_BYTES : +case AML_FIELD_ATTRIB_RAW_PROCESS : + + length = access_length; +break ; + +case AML_FIELD_ATTRIB_BLOCK : +case AML_FIELD_ATTRIB_BLOCK_CALL : +default : + + length =ACPI_GSBUS_BUFFER_SIZE ; +break ; + } + +return (length); +} +/******************************************************************************* * * FUNCTION: acpi_ex_read_data_from_field
@@ -63,8 +124,9 @@ ACPI_MODULE_NAME("exfield")* Buffer, depending on the size of the field. * ******************************************************************************/ +acpi_status -acpi_ex_read_data_from_field (struct acpi_walk_state *walk_state, +acpi_ex_read_data_from_field (struct acpi_walk_state * walk_state,union acpi_operand_object *obj_desc,union acpi_operand_object **ret_buffer_desc) {
@@ -73,6 +135,7 @@ acpi_ex_read_data_from_field(struct acpi_walk_state *walk_state,acpi_size length;void *buffer;u32 function; +u16 accessor_type;ACPI_FUNCTION_TRACE_PTR (ex_read_data_from_field, obj_desc);
@@ -116,9 +179,22 @@ acpi_ex_read_data_from_field(struct acpi_walk_state *walk_state,ACPI_READ | (obj_desc->field.attribute <<16 ); }else if (obj_desc->field.region_obj->region.space_id ==ACPI_ADR_SPACE_GSBUS ) { - length =ACPI_GSBUS_BUFFER_SIZE ; - function = -ACPI_READ | (obj_desc->field.attribute <<16 ); + accessor_type = obj_desc->field.attribute; + length =acpi_ex_get_serial_access_length (accessor_type, + obj_desc-> + field. + access_length); + +/* +* Add additional 2 bytes for modeled generic_serial_bus data buffer: +* typedef struct { +* BYTEStatus; // Byte 0 of the data buffer +* BYTELength; // Byte 1 of the data buffer +* BYTE[x-1]Data; // Bytes 2-x of the arbitrary length data buffer, +* } +*/ + length +=2 ; + function =ACPI_READ | (accessor_type <<16 ); }else {/* IPMI */ length =ACPI_IPMI_BUFFER_SIZE ;
@@ -231,6 +307,7 @@ acpi_ex_write_data_to_field(union acpi_operand_object *source_desc,void *buffer;union acpi_operand_object *buffer_desc;u32 function; +u16 accessor_type;ACPI_FUNCTION_TRACE_PTR (ex_write_data_to_field, obj_desc);
@@ -284,9 +361,22 @@ acpi_ex_write_data_to_field(union acpi_operand_object *source_desc,ACPI_WRITE | (obj_desc->field.attribute <<16 ); }else if (obj_desc->field.region_obj->region.space_id ==ACPI_ADR_SPACE_GSBUS ) { - length =ACPI_GSBUS_BUFFER_SIZE ; - function = -ACPI_WRITE | (obj_desc->field.attribute <<16 ); + accessor_type = obj_desc->field.attribute; + length =acpi_ex_get_serial_access_length (accessor_type, + obj_desc-> + field. + access_length); + +/* +* Add additional 2 bytes for modeled generic_serial_bus data buffer: +* typedef struct { +* BYTEStatus; // Byte 0 of the data buffer +* BYTELength; // Byte 1 of the data buffer +* BYTE[x-1]Data; // Bytes 2-x of the arbitrary length data buffer, +* } +*/ + length +=2 ; + function =ACPI_WRITE | (accessor_type <<16 ); }else {/* IPMI */ length =ACPI_IPMI_BUFFER_SIZE ;
Signature · 1 line
1.8.3.1
PATCH v2 2/9 ACPICA: Export acpi_buffer_to_resource symbol
In reply to Lan TianyuThe acpi_buffer_to_resource is needed in i2c module to convert aml buffer to struct acpi_resource
--- drivers/acpi/acpica/rscreate.c | 1 + 1 file changed, 1 insertion(+)
drivers/acpi/acpica/rscreate.c +1 -0
@@ -112,6 +112,7 @@ acpi_buffer_to_resource(u8 *aml_buffer,return (status); } +ACPI_EXPORT_SYMBOL (acpi_buffer_to_resource);/******************************************************************************* *
Signature · 1 line
1.8.3.1
PATCH v2 3/9 ACPI: Add acpi_bus_attach_private_data() to facilitate to attach data to ACPI handle
In reply to Lan TianyuThere is already acpi_bus_get_private_data() to get ACPI handle data which is associated with acpi_bus_private_data_handler(). This patch is to add acpi_bus_attach_private_data() to make a pair and facilitate to attach and get data to/from ACPI handle.
--- drivers/acpi/bus.c | 18 +++++++++++++++++- include/acpi/acpi_bus.h | 1 + 2 files changed, 18 insertions(+), 1 deletion(-)
drivers/acpi/bus.c +17 -1
@@ -132,6 +132,22 @@ void acpi_bus_private_data_handler(acpi_handle handle, }EXPORT_SYMBOL (acpi_bus_private_data_handler); +int acpi_bus_attach_private_data (acpi_handle handle,void *data) +{ +acpi_status status; + + status =acpi_attach_data (handle, + acpi_bus_private_data_handler, data); +if (ACPI_FAILURE (status)) { +ACPI_ERROR ((AE_INFO ,"Error attaching device[%p] data\n" , + handle)); +return -ENODEV ; + } + +return 0 ; +} +EXPORT_SYMBOL (acpi_bus_attach_private_data); +int acpi_bus_get_private_data (acpi_handle handle,void **data) {acpi_status status;
@@ -141,7 +157,7 @@ int acpi_bus_get_private_data(acpi_handle handle, void **data) status =acpi_get_data (handle, acpi_bus_private_data_handler, data);if (ACPI_FAILURE (status) || !*data) { -ACPI_DEBUG_PRINT ((ACPI_DB_INFO ,"No context for object [%p]\n" , +ACPI_ERROR ((AE_INFO ,"No context for object [%p]\n" , handle));return -ENODEV ; }
include/acpi/acpi_bus.h +1 -0
@@ -406,6 +406,7 @@ extern struct kobject *acpi_kobj;extern int acpi_bus_generate_netlink_event (const char *,const char *,u8 ,int );void acpi_bus_private_data_handler (acpi_handle ,void *);int acpi_bus_get_private_data (acpi_handle ,void **); +int acpi_bus_attach_private_data (acpi_handle ,void *);void acpi_bus_no_hotplug (acpi_handle handle);extern int acpi_notifier_call_chain (struct acpi_device *,u32 ,u32 );extern int register_acpi_notifier (struct notifier_block *);
Signature · 1 line
1.8.3.1
PATCH v2 4/9 ACPI/Thermal: Use acpi_bus_attach_private_data() to attach private data
In reply to Lan TianyuUse acpi_bus_attach_private_data() to attach private data instead of acpi_attach_data().
--- drivers/acpi/thermal.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-)
drivers/acpi/thermal.c +3 -6
@@ -925,13 +925,10 @@ static int acpi_thermal_register_thermal_zone(struct acpi_thermal *tz)if (result)return result; - status =acpi_attach_data (tz->device->handle, - acpi_bus_private_data_handler, - tz->thermal_zone); -if (ACPI_FAILURE (status)) { -pr_err (PREFIX "Error attaching device data\n" ); + status =acpi_bus_attach_private_data (tz->device->handle, + tz->thermal_zone); +if (ACPI_FAILURE (status))return -ENODEV ; - } tz->tz_enabled =1 ;
Signature · 1 line
1.8.3.1
PATCH v2 5/9 I2C: Add smbus quick read/write helper function
In reply to Lan TianyuAdd i2c_smbus_quick_write/read() helper function. These will be used in the implementation of i2c ACPI address space handler.
--- drivers/i2c/i2c-core.c | 30 ++++++++++++++++++++++++++++++ include/linux/i2c.h | 2 ++ 2 files changed, 32 insertions(+)
drivers/i2c/i2c-core.c +30 -0
@@ -2162,6 +2162,36 @@ static int i2c_smbus_check_pec(u8 cpec, struct i2c_msg *msg) }/** +* i2c_smbus_quick_write - SMBus "quick write" protocol +* @client: Handle to slave device +* +* This executes the SMBus "quick write" protocol, returning negative errno +* else zero on success. +*/ +s32 i2c_smbus_quick_write (const struct i2c_client *client) +{ +return i2c_smbus_xfer (client->adapter, client->addr, client->flags, +I2C_SMBUS_WRITE ,0 , +I2C_SMBUS_QUICK ,NULL ); +} +EXPORT_SYMBOL_GPL (i2c_smbus_quick_write); + +/** +* i2c_smbus_quick_read - SMBus "quick read" protocol +* @client: Handle to slave device +* +* This executes the SMBus "quick read" protocol, returning negative errno +* else zero on success. +*/ +s32 i2c_smbus_quick_read (const struct i2c_client *client) +{ +return i2c_smbus_xfer (client->adapter, client->addr, client->flags, +I2C_SMBUS_READ ,0 , +I2C_SMBUS_QUICK ,NULL ); +} +EXPORT_SYMBOL_GPL (i2c_smbus_quick_read); + +/** * i2c_smbus_read_byte - SMBus "receive byte" protocol * @client: Handle to slave device *
include/linux/i2c.h +2 -0
@@ -82,6 +82,8 @@ extern s32 i2c_smbus_xfer(struct i2c_adapter *adapter, u16 addr,/* Now follow the 'nice' access routines. These also document the calling conventions of i2c_smbus_xfer. */ +extern s32 i2c_smbus_quick_write (const struct i2c_client *client); +extern s32 i2c_smbus_quick_read (const struct i2c_client *client);extern s32 i2c_smbus_read_byte (const struct i2c_client *client);extern s32 i2c_smbus_write_byte (const struct i2c_client *client,u8 value); extern s32 i2c_smbus_read_byte_data(const struct i2c_client *client,
Signature · 1 line
1.8.3.1
PATCH v2 6/9 I2C: Add smbus word/block process call helper function
In reply to Lan TianyuAdd i2c_smbus_word/block_proc_call() helper function. These will be used in the implementation of i2c ACPI address space handler.
--- drivers/i2c/i2c-core.c | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++ include/linux/i2c.h | 4 ++++ 2 files changed, 60 insertions(+)
drivers/i2c/i2c-core.c +56 -0
@@ -2306,6 +2306,30 @@ s32 i2c_smbus_write_word_data(const struct i2c_client *client, u8 command,EXPORT_SYMBOL (i2c_smbus_write_word_data);/** +* i2c_smbus_word_proc_call - SMBus "word proc call" protocol +* @client: Handle to slave device +* @command: Byte interpreted by slave +* @value: 16-bit "word" being written +* +* This executes the SMBus "word proc all" protocol, returning negative errno +* else a 16-bit unsigned "word" received from the device. +*/ +s32 i2c_smbus_word_proc_call (const struct i2c_client *client,u8 command, +u16 value) +{ +union i2c_smbus_data data; +int status; + + data.word = value; + status =i2c_smbus_xfer (client->adapter, client->addr, client->flags, +I2C_SMBUS_READ , command, +I2C_SMBUS_PROC_CALL , &data); + +return (status <0 ) ? status : data.word; +} +EXPORT_SYMBOL (i2c_smbus_word_proc_call); + +/** * i2c_smbus_read_block_data - SMBus "block read" protocol * @client: Handle to slave device * @command: Byte interpreted by slave
@@ -2362,6 +2386,38 @@ s32 i2c_smbus_write_block_data(const struct i2c_client *client, u8 command, }EXPORT_SYMBOL (i2c_smbus_write_block_data); +/** +* i2c_smbus_block_proc_call - SMBus "block write" protocol +* @client: Handle to slave device +* @command: Byte interpreted by slave +* @length: Size of data block; SMBus allows at most 32 bytes +* @values: Byte array which will be written. +* +* This executes the SMBus "block proc call" protocol, returning negative errno +* else the number of read bytes. +*/ +s32 i2c_smbus_block_proc_call (const struct i2c_client *client,u8 command, +u8 length,u8 *values) +{ +union i2c_smbus_data data; +int status; + +if (length >I2C_SMBUS_BLOCK_MAX ) + length =I2C_SMBUS_BLOCK_MAX ; + data.block[0 ] = length; +memcpy (&data.block[1 ], values, length); + status =i2c_smbus_xfer (client->adapter, client->addr, client->flags, +I2C_SMBUS_READ , command, +I2C_SMBUS_BLOCK_PROC_CALL , &data); + +if (status <0 ) +return status; + +memcpy (values, &data.block[1 ], data.block[0 ]); +return data.block[0 ]; +} +EXPORT_SYMBOL (i2c_smbus_block_proc_call); +/* Returns the number of read bytes */ s32 i2c_smbus_read_i2c_block_data (const struct i2c_client *client,u8 command,u8 length,u8 *values)
include/linux/i2c.h +4 -0
@@ -94,6 +94,10 @@ extern s32 i2c_smbus_read_word_data(const struct i2c_client *client, u8 command);extern s32 i2c_smbus_write_word_data (const struct i2c_client *client,u8 command,u16 value); +extern s32 i2c_smbus_word_proc_call (const struct i2c_client *client, +u8 command,u16 value); +extern s32 i2c_smbus_block_proc_call (const struct i2c_client *client, +u8 command,u8 length,u8 *values);static inline s32 i2c_smbus_read_word_swapped (const struct i2c_client *client,u8 command)
Signature · 1 line
1.8.3.1
PATCH v2 7/9 I2C/ACPI: Add i2c ACPI operation region support
In reply to Lan TianyuACPI 5.0 spec(5.5.2.4.5) defines GenericSerialBus(i2c, spi, uart) operation region. It allows ACPI aml code able to access such kind of devices to implement some ACPI standard method.
ACPI Spec defines some access attribute to associate with i2c protocol.
AttribQuick Read/Write Quick Protocol
AttribSendReceive Send/Receive Byte Protocol
AttribByte Read/Write Byte Protocol
AttribWord Read/Write Word Protocol
AttribBlock Read/Write Block Protocol
AttribBytes Read/Write N-Bytes Protocol
AttribProcessCall Process Call Protocol
AttribBlockProcessCall Write Block-Read Block Process Call Protocol
AttribRawBytes Raw Read/Write N-BytesProtocol
AttribRawProcessBytes Raw Process Call Protocol
On the Asus T100TA, Bios use GenericSerialBus operation region to access i2c device to get battery info.
Sample code From Asus T100TA
Scope (_SB.I2C1)
{
Name (UMPC, ResourceTemplate ()
{
I2cSerialBus (0x0066, ControllerInitiated, 0x00061A80,
AddressingMode7Bit, "\\_SB.I2C1",
0x00, ResourceConsumer, ,
)
})
...
OperationRegion (DVUM, GenericSerialBus, Zero, 0x0100)
Field (DVUM, BufferAcc, NoLock, Preserve)
{
Connection (UMPC),
Offset (0x81),
AccessAs (BufferAcc, AttribBytes (0x3E)),
FGC0, 8
}
...
}
Device (BATC)
{
Name (_HID, EisaId ("PNP0C0A")) // _HID: Hardware ID
Name (_UID, One) // _UID: Unique ID
...
Method (_BST, 0, NotSerialized) // _BST: Battery Status
{
If (LEqual (AVBL, One))
{
Store (FGC0, BFFG)
If (LNotEqual (STAT, One))
{
ShiftRight (CHST, 0x04, Local0)
And (Local0, 0x03, Local0)
If (LOr (LEqual (Local0, One), LEqual (Local0, 0x02)))
{
Store (0x02, Local1)
}
...
}The i2c operation region is defined under I2C1 scope. _BST method under battery device BATC read battery status from the field "FCG0". The request would be sent to i2c operation region handler.
This patch is to add i2c ACPI operation region support. Due to there are only "Byte" and "Bytes" protocol access on the Asus T100TA, other protocols have not been tested.
About RawBytes and RawProcessBytes protocol, they needs specific drivers to interpret reference data from AML code according ACPI 5.0 SPEC(5.5.2.4.5.3.9 and 5.5.2.4.5.3.10). So far, not found such case and will add when find real case.
--- drivers/i2c/Makefile | 5 +- drivers/i2c/i2c-acpi.c | 295 +++++++++++++++++++++++++++++++++++++++++++++++++ drivers/i2c/i2c-core.c | 2 + include/linux/acpi.h | 11 ++ include/linux/i2c.h | 10 ++ 5 files changed, 322 insertions(+), 1 deletion(-) create mode 100644 drivers/i2c/i2c-acpi.c
drivers/i2c/Makefile +4 -1
@@ -2,8 +2,11 @@ # Makefile for the i2c core. # +i2ccore-y := i2c-core.o +i2ccore-$(CONFIG_ACPI) += i2c-acpi.o + obj-$(CONFIG_I2C_BOARDINFO) += i2c-boardinfo.o -obj-$(CONFIG_I2C) += i2c-core.o +obj-$(CONFIG_I2C) += i2ccore.o obj-$(CONFIG_I2C_SMBUS) += i2c-smbus.o obj-$(CONFIG_I2C_CHARDEV) += i2c-dev.o obj-$(CONFIG_I2C_MUX) += i2c-mux.o
drivers/i2c/i2c-acpi.c new file +295 -0
295 lines not on this page · raw message
drivers/i2c/i2c-core.c +2 -0
@@ -1293,6 +1293,7 @@ exit_recovery:/* create pre-declared device nodes */ of_i2c_register_devices (adap);acpi_i2c_register_devices (adap); +acpi_i2c_install_space_handler (adap);if (adap->nr < __i2c_first_dynamic_bus_num)i2c_scan_static_board_info (adap);
@@ -1466,6 +1467,7 @@ void i2c_del_adapter(struct i2c_adapter *adap)return ; } +acpi_i2c_remove_space_handler (adap);/* Tell drivers about this removal */ mutex_lock (&core_lock); bus_for_each_drv(&i2c_bus_type, NULL, adap,
include/linux/acpi.h +11 -0
@@ -361,6 +361,17 @@ extern bool osc_sb_apei_support_acked;#define OSC_PCI_EXPRESS_CAPABILITY_CONTROL 0x00000010#define OSC_PCI_CONTROL_MASKS 0x0000001f +#define ACPI_GSB_ACCESS_ATTRIB_QUICK 0x00000002 +#define ACPI_GSB_ACCESS_ATTRIB_SEND_RCV 0x00000004 +#define ACPI_GSB_ACCESS_ATTRIB_BYTE 0x00000006 +#define ACPI_GSB_ACCESS_ATTRIB_WORD 0x00000008 +#define ACPI_GSB_ACCESS_ATTRIB_BLOCK 0x0000000A +#define ACPI_GSB_ACCESS_ATTRIB_MULTIBYTE 0x0000000B +#define ACPI_GSB_ACCESS_ATTRIB_WORD_CALL 0x0000000C +#define ACPI_GSB_ACCESS_ATTRIB_BLOCK_CALL 0x0000000D +#define ACPI_GSB_ACCESS_ATTRIB_RAW_BYTES 0x0000000E +#define ACPI_GSB_ACCESS_ATTRIB_RAW_PROCESS 0x0000000F +extern acpi_status acpi_pci_osc_control_set (acpi_handle handle,u32 *mask,u32 req);
include/linux/i2c.h +10 -0
@@ -583,4 +583,14 @@ static inline struct i2c_adapter *of_find_i2c_adapter_by_node(struct device_node }#endif /* CONFIG_OF */ +#ifdef CONFIG_ACPI +int acpi_i2c_install_space_handler (struct i2c_adapter *adapter); +void acpi_i2c_remove_space_handler (struct i2c_adapter *adapter); +#else +static inline void acpi_i2c_remove_space_handler (struct i2c_adapter *adapter) +{ } +static inline int acpi_i2c_install_space_handler (struct i2c_adapter *adapter) +{return 0 ; } +#endif +#endif /* _LINUX_I2C_H */
Signature · 1 line
1.8.3.1
PATCH v2 8/9 I2C/ACPI: Move ACPI related code to i2c-acpi.c
In reply to Lan TianyuClean up ACPI related code in the i2c core.
--- drivers/i2c/i2c-acpi.c | 89 ++++++++++++++++++++++++++++++++++++++++++++++ drivers/i2c/i2c-core.c | 95 -------------------------------------------------- include/linux/i2c.h | 2 ++ 3 files changed, 91 insertions(+), 95 deletions(-)
drivers/i2c/i2c-acpi.c +89 -0
@@ -37,6 +37,95 @@ struct gsb_buffer { }; } __packed; +static int acpi_i2c_add_resource (struct acpi_resource *ares,void *data) +{ +struct i2c_board_info *info = data; + +if (ares->type ==ACPI_RESOURCE_TYPE_SERIAL_BUS ) { +struct acpi_resource_i2c_serialbus *sb; + + sb = &ares->data.i2c_serial_bus; +if (sb->type ==ACPI_RESOURCE_SERIAL_TYPE_I2C ) { + info->addr = sb->slave_address; +if (sb->access_mode ==ACPI_I2C_10BIT_MODE ) + info->flags |=I2C_CLIENT_TEN ; + } + }else if (info->irq <0 ) { +struct resource r; + +if (acpi_dev_resource_interrupt (ares,0 , &r)) + info->irq = r.start; + } + +/* Tell the ACPI core to skip this resource */ +return 1 ; +} + +static acpi_status acpi_i2c_add_device (acpi_handle handle,u32 level, +void *data,void **return_value) +{ +struct i2c_adapter *adapter = data; +struct list_head resource_list; +struct i2c_board_info info; +struct acpi_device *adev; +int ret; + +if (acpi_bus_get_device (handle, &adev)) +return AE_OK ; +if (acpi_bus_get_status (adev) || !adev->status.present) +return AE_OK ; + +memset (&info,0 ,sizeof (info)); + info.acpi_node.companion = adev; + info.irq =-1 ; + +INIT_LIST_HEAD (&resource_list); + ret =acpi_dev_get_resources (adev, &resource_list, + acpi_i2c_add_resource, &info); +acpi_dev_free_resource_list (&resource_list); + +if (ret <0 || !info.addr) +return AE_OK ; + + adev->power.flags.ignore_parent = true; +strlcpy (info.type,dev_name (&adev->dev),sizeof (info.type)); +if (!i2c_new_device (adapter, &info)) { + adev->power.flags.ignore_parent = false; +dev_err (&adapter->dev, +"failed to add I2C device %s from ACPI\n" , +dev_name (&adev->dev)); + } + +return AE_OK ; +} + +/** +* acpi_i2c_register_devices - enumerate I2C slave devices behind adapter +* @adap: pointer to adapter +* +* Enumerate all I2C slave devices behind this adapter by walking the ACPI +* namespace. When a device is found it will be added to the Linux device +* model and bound to the corresponding ACPI handle. +*/ +void acpi_i2c_register_devices (struct i2c_adapter *adap) +{ +acpi_handle handle; +acpi_status status; + +if (!adap->dev.parent) +return ; + + handle =ACPI_HANDLE (adap->dev.parent); +if (!handle) +return ; + + status =acpi_walk_namespace (ACPI_TYPE_DEVICE , handle,1 , + acpi_i2c_add_device,NULL , + adap,NULL ); +if (ACPI_FAILURE (status)) +dev_warn (&adap->dev,"failed to enumerate I2C slaves\n" ); +} +static int acpi_gsb_i2c_read_bytes (struct i2c_client *client,u8 cmd,u8 *data,u8 data_len) {
drivers/i2c/i2c-core.c +0 -95
101 lines not on this page · raw message
include/linux/i2c.h +2 -0
@@ -586,7 +586,9 @@ static inline struct i2c_adapter *of_find_i2c_adapter_by_node(struct device_node#ifdef CONFIG_ACPI int acpi_i2c_install_space_handler (struct i2c_adapter *adapter);void acpi_i2c_remove_space_handler (struct i2c_adapter *adapter); +void acpi_i2c_register_devices (struct i2c_adapter *adap);#else +static inline void acpi_i2c_register_devices (struct i2c_adapter *adap) { }static inline void acpi_i2c_remove_space_handler (struct i2c_adapter *adapter) { }static inline int acpi_i2c_install_space_handler (struct i2c_adapter *adapter)
Signature · 1 line
1.8.3.1
PATCH v2 9/9 I2C/ACPI: Add CONFIG_I2C_ACPI config
In reply to Lan TianyuThis patch is to add CONFIG_I2C_ACPI. Current there is a race between removing I2C ACPI operation region and ACPI AML code accessing. So make i2c core built-in if CONFIG_I2C_ACPI is set.
--- drivers/i2c/Kconfig | 17 ++++++++++++++++- drivers/i2c/Makefile | 2 +- include/linux/i2c.h | 2 +- 3 files changed, 18 insertions(+), 3 deletions(-)
drivers/i2c/Kconfig +16 -1
@@ -2,7 +2,9 @@ # I2C subsystem configuration # -menuconfig I2C +menu "I2C support" + +config I2C tristate "I2C support" select RT_MUTEXES ---help---
@@ -21,6 +23,17 @@ menuconfig I2C This I2C support can also be built as a module. If so, the module will be called i2c-core. +config I2C_ACPI + bool "I2C ACPI support" + select I2C + depends on ACPI + default y + help + Say Y here if you want to enable I2C ACPI function. ACPI table + provides I2C slave devices' information to enumerate these devices. + This option also allows ACPI AML code to access I2C slave devices + via I2C ACPI operation region to fulfill ACPI method. + if I2C config I2C_BOARDINFO
@@ -124,3 +137,5 @@ config I2C_DEBUG_BUS on. endif # I2C + +endmenu
drivers/i2c/Makefile +1 -1
@@ -3,7 +3,7 @@ # i2ccore-y := i2c-core.o -i2ccore-$(CONFIG_ACPI) += i2c-acpi.o +i2ccore-$(CONFIG_I2C_ACPI) += i2c-acpi.o obj-$(CONFIG_I2C_BOARDINFO) += i2c-boardinfo.o obj-$(CONFIG_I2C) += i2ccore.o
include/linux/i2c.h +1 -1
@@ -583,7 +583,7 @@ static inline struct i2c_adapter *of_find_i2c_adapter_by_node(struct device_node }#endif /* CONFIG_OF */ -#ifdef CONFIG_ACPI +#ifdef CONFIG_I2C_ACPI int acpi_i2c_install_space_handler (struct i2c_adapter *adapter);void acpi_i2c_remove_space_handler (struct i2c_adapter *adapter);void acpi_i2c_register_devices (struct i2c_adapter *adap);
Signature · 1 line
1.8.3.1
Re: [Patch V2 1/9] ACPICA: Executer: Fix buffer allocation issue for generic_serial_bus region field accesses.
In reply to Lan TianyuQuoted 10 lines · Lan Tianyu
From: Lv Zheng <[email protected]>
The size of the buffer allocated for
generic_serial_busregion access is not correct. This patch introducesacpi_ex_get_serial_access_length()to be invoked to obtain correct data buffer length. Reported by Lan Tianyu, Fixed by Lv Zheng.Reviewed-by Mika Westerberg <[email protected]>Signed-off-by Lv Zheng <[email protected]>Signed-off-by Lan Tianyu <[email protected]>
Very superficial issue, and sorry I forgot to mention it for v1, but the summary line for this patch (1/9) ends with a period - "...region field accesses." - which I think is not the correct style?
Signature · 4 lines
Adam Williamson Fedora QA Community Monkey IRC: adamw | Twitter: AdamW_Fedora | XMPP: adamw AT happyassassin . net http://www.happyassassin.net
Re: [Patch V2 1/9] ACPICA: Executer: Fix buffer allocation issue for generic_serial_bus region field accesses.
Quoted 8 lines · Adam Williamson
Quoted 7 lines · Lan Tianyu
From: Lv Zheng <[email protected]>
The size of the buffer allocated for
generic_serial_busregion access is not correct. This patch introducesacpi_ex_get_serial_access_length()to be invoked to obtain correct data buffer length. Reported by Lan Tianyu, Fixed by Lv Zheng.
Quoted 7 lines
Quoted 3 lines
Reviewed-by Mika Westerberg <[email protected]>Signed-off-by Lv Zheng <[email protected]>Signed-off-by Lan Tianyu <[email protected]>Very superficial issue, and sorry I forgot to mention it for v1, but the summary line for this patch (1/9) ends with a period - "...region field accesses." - which I think is not the correct style?
In fact, it seems this patch already got merged into Linus' tree somehow:
the others do not seem to have been merged yet.
Signature · 4 lines
Adam Williamson Fedora QA Community Monkey IRC: adamw | Twitter: AdamW_Fedora | XMPP: adamw AT happyassassin . net http://www.happyassassin.net
Re: [Patch V2 1/9] ACPICA: Executer: Fix buffer allocation issue for generic_serial_bus region field accesses.
Quoted 9 lines · Adam Williamson
Quoted 8 lines · Adam Williamson
Quoted 7 lines · Lan Tianyu
From: Lv Zheng <[email protected]>
The size of the buffer allocated for
generic_serial_busregion access is not correct. This patch introducesacpi_ex_get_serial_access_length()to be invoked to obtain correct data buffer length. Reported by Lan Tianyu, Fixed by Lv Zheng.
Quoted 7 lines
Quoted 7 lines
Quoted 3 lines
Reviewed-by Mika Westerberg <[email protected]>Signed-off-by Lv Zheng <[email protected]>Signed-off-by Lan Tianyu <[email protected]>Very superficial issue, and sorry I forgot to mention it for v1, but the summary line for this patch (1/9) ends with a period - "...region field accesses." - which I think is not the correct style?
Well, some people do that, but is it really a problem?
Quoted 4 lines
In fact, it seems this patch already got merged into Linus' tree somehow:
Yes, I wanted to have it in there now.
Quoted 1 line
the others do not seem to have been merged yet.
The rest has been queued up for 3.16.
Signature · 2 lines
I speak only for myself. Rafael J. Wysocki, Intel Open Source Technology Center.
Quoted 9 lines · Lan Tianyu
ACPI 5.0 spec(5.5.2.4.5) defines
GenericSerialBus(i2c, spi, uart)operation region. It allows ACPI aml code able to access such kind of devices to implement some ACPI standard method.On the Asus T100TA, Bios use GenericSerialBus operation region to access i2c device to get battery info. So battery function depends on the I2C operation region support. Here is the bug link.
https://bugzilla.kernel.org/show_bug.cgi?id=69011
Quoted 4 lines
This patchset is to add I2C ACPI operation region handler support.
Change Since V1:
Fix some code style and memory leak issues in Patch 7
Is it the only patch that has changed from v1?
Rafael
Quoted 10 lines · Rafael J. Wysocki
Quoted 9 lines · Lan Tianyu
ACPI 5.0 spec(5.5.2.4.5) defines
GenericSerialBus(i2c, spi, uart)operation region. It allows ACPI aml code able to access such kind of devices to implement some ACPI standard method.On the Asus T100TA, Bios use GenericSerialBus operation region to access i2c device to get battery info. So battery function depends on the I2C operation region support. Here is the bug link.
https://bugzilla.kernel.org/show_bug.cgi?id=69011
Quoted 6 lines
Quoted 4 lines
This patchset is to add I2C ACPI operation region handler support.
Change Since V1:
Fix some code style and memory leak issues in Patch 7Is it the only patch that has changed from v1?
I also remove a redundant semicolon in the PATCH 8. Sorry. I didn't notice these patches are already in your tree. I will produce divergence patches based on your bleeding-edge branch.
Quoted 3 lines
Rafael
Signature · 2 lines
Best regards Tianyu Lan
Re: [Patch V2 7/9] I2C/ACPI: Add i2c ACPI operation region support
In reply to Lan TianyuQuoted 3 lines · Lan Tianyu
ACPI 5.0 spec(5.5.2.4.5) defines
GenericSerialBus(i2c, spi, uart)operation region. It allows ACPI aml code able to access such kind of devices to implement some ACPI standard method.
Looks good to me now,
Re: [Patch V2 9/9] I2C/ACPI: Add CONFIG_I2C_ACPI config
In reply to Lan TianyuQuoted 30 lines · Lan Tianyu
This patch is to add
CONFIG_I2C_ACPI. Current there is a race between removing I2C ACPI operation region and ACPI AML code accessing. So make i2c core built-in ifCONFIG_I2C_ACPIis set.Signed-off-by Lan Tianyu <[email protected]>--- drivers/i2c/Kconfig | 17 ++++++++++++++++- drivers/i2c/Makefile | 2 +- include/linux/i2c.h | 2 +- 3 files changed, 18 insertions(+), 3 deletions(-)drivers/i2c/Kconfig +3
-1@@ -2,7 +2,9 @@ # I2C subsystem configuration # -menuconfig I2C +menu "I2C support" + +config I2C tristate "I2C support" select RT_MUTEXES ---help---@@ -21,6 +23,17 @@ menuconfig I2C This I2C support can also be built as a module. If so, the module will be called i2c-core.
drivers/i2c/Kconfig menuconfig I2C · line 35
Quoted 10 lines
drivers/i2c/Kconfig +10
-0+config I2C_ACPI + bool "I2C ACPI support" + select I2C + depends on ACPI + default y + help + Say Y here if you want to enable I2C ACPI function. ACPI table + provides I2C slave devices' information to enumerate these devices. + This option also allows ACPI AML code to access I2C slave devices + via I2C ACPI operation region to fulfill ACPI method.
I would prefer something like:
Say Y here if you want to enable ACPI I2C support. This includes support for automatic enumeration of I2C slave devices and support for ACPI I2C Operation Regions. Operation Regions allow firmware (BIOS) code to access I2C slave devices, such as smart batteries through an I2C host controller driver.
But it is really up to you so,
Re: [Patch V2 1/9] ACPICA: Executer: Fix buffer allocation issue for generic_serial_bus region field accesses.
In reply to Rafael J. WysockiQuoted 2 lines
The rest has been queued up for 3.16.
I also aim for 3.16, yet it may take 1 or 2 weeks more until I'll be able to review the I2C part of those patches.
Quoted 16 lines · Lan Tianyu
Quoted 15 lines · Rafael J. Wysocki
Quoted 13 lines · Lan Tianyu
ACPI 5.0 spec(5.5.2.4.5) defines
GenericSerialBus(i2c, spi, uart)operation region. It allows ACPI aml code able to access such kind of devices to implement some ACPI standard method.On the Asus T100TA, Bios use GenericSerialBus operation region to access i2c device to get battery info. So battery function depends on the I2C operation region support. Here is the bug link.
https://bugzilla.kernel.org/show_bug.cgi?id=69011This patchset is to add I2C ACPI operation region handler support.
Change Since V1:
Fix some code style and memory leak issues in Patch 7
Quoted 6 lines
Quoted 1 line
Is it the only patch that has changed from v1?
I also remove a redundant semicolon in the PATCH 8. Sorry. I didn't notice these patches are already in your tree. I will produce divergence patches based on your bleeding-edge branch.
No need for that, I'll use the new versions.
Signature · 2 lines
I speak only for myself. Rafael J. Wysocki, Intel Open Source Technology Center.
Re: [Patch V2 1/9] ACPICA: Executer: Fix buffer allocation issue for generic_serial_bus region field accesses.
In reply to Wolfram SangQuoted 10 lines · Wolfram Sang
--3MwIy2ne0vdjdPXF
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inlineQuoted 1 line
The rest has been queued up for 3.16.
I also aim for 3.16, yet it may take 1 or 2 weeks more until I'll be able to review the I2C part of those patches.
That's fine, they can stay in my bleeding-edge branch till then.
Signature · 2 lines
I speak only for myself. Rafael J. Wysocki, Intel Open Source Technology Center.
Am Montag, 28. April 2014, 22:27:39 schrieb Lan Tianyu:
Quoted 8 lines
ACPI 5.0 spec(5.5.2.4.5) defines
GenericSerialBus(i2c, spi, uart)operation region. It allows ACPI aml code able to access such kind of devices to implement some ACPI standard method.On the Asus T100TA, Bios use GenericSerialBus operation region to access i2c device to get battery info. So battery function depends on the I2C operation region support. Here is the bug link.
https://bugzilla.kernel.org/show_bug.cgi?id=69011
Hi all,
I have tested this series and got some errors, but no additional functionality:
[ 0.607442] ACPI Error: Error attaching device[f60238a0] data [ 0.607460] (20140214/bus-143) [ 0.607708] ACPI Error: Error attaching device[f60238a0] data [ 0.607724] (20140214/bus-143) [ 0.607987] ACPI Error: Error attaching device[f60238a0] data [ 0.608003] (20140214/bus-143) [ 0.608251] ACPI Error: Error attaching device[f60238a0] data [ 0.608267] (20140214/bus-143) [ 0.608515] ACPI Error: Error attaching device[f60238a0] data [ 0.608531] (20140214/bus-143)
A bit more output, e.g. the error code if such is present or the device path, could probably help when identifyint the device in question.
Also this still looks incomplete, as on other places one still gets those warnings:
[ 0.314944] pnp 00:08: Plug and Play ACPI device, IDs INT33fc (active) [ 0.316122] pnp 00:09: unknown resource type 19 in _CRS [ 0.316136] pnp 00:09: can't evaluate _CRS: 1
I don't know if looking on them at this place has any value, maybe something like this is correct?
commit 52e2822c4c8b09180e5eb3dd94e4e9aea0d25eff
Author: Rolf Eike Beer <[email protected]> Date: Tue Feb 18 11:11:10 2014 +0100
ACPI: ignore GPIO and SERIAL_BUS resources in PNP init code
drivers/pnp/pnpacpi/rsparser.c +2 -0
@@ -240,6 +240,8 @@ static acpi_status pnpacpi_allocated_resource(struct acpi_resource *res,break ;case ACPI_RESOURCE_TYPE_GENERIC_REGISTER : +case ACPI_RESOURCE_TYPE_GPIO : +case ACPI_RESOURCE_TYPE_SERIAL_BUS :break ;default :
Greetings,
Eike
Signature · 7 lines
Rolf Eike Beer, emlix GmbH, http://www.emlix.com Fon +49 551 30664-0, Fax +49 551 30664-11 Bertha-von-Suttner-Str. 9, 37085 Göttingen, Germany Sitz der Gesellschaft: Göttingen, Amtsgericht Göttingen HR B 3160 Geschäftsführung: Dr. Uwe Kracke, Ust-IdNr.: DE 205 198 055 emlix - smart embedded open source
Quoted 5 lines · Rolf Eike Beer
Am Montag, 28. April 2014, 22:27:39 schrieb Lan Tianyu:
Quoted 4 lines
ACPI 5.0 spec(5.5.2.4.5) defines
GenericSerialBus(i2c, spi, uart)operation region. It allows ACPI aml code able to access such kind of devices to implement some ACPI standard method.
Quoted 9 lines
Quoted 4 lines
On the Asus T100TA, Bios use GenericSerialBus operation region to access i2c device to get battery info. So battery function depends on the I2C operation region support. Here is the bug link.
https://bugzilla.kernel.org/show_bug.cgi?id=69011Hi all,
I have tested this series and got some errors, but no additional functionality:
Hi Rolf:
Thanks for test. Could you attach the output of dmesg and acpidump?
Which machine you are testing on?
Quoted 48 lines
[ 0.607442] ACPI Error: Error attaching device[f60238a0] data [ 0.607460] (20140214/bus-143) [ 0.607708] ACPI Error: Error attaching device[f60238a0] data [ 0.607724] (20140214/bus-143) [ 0.607987] ACPI Error: Error attaching device[f60238a0] data [ 0.608003] (20140214/bus-143) [ 0.608251] ACPI Error: Error attaching device[f60238a0] data [ 0.608267] (20140214/bus-143) [ 0.608515] ACPI Error: Error attaching device[f60238a0] data [ 0.608531] (20140214/bus-143)A bit more output, e.g. the error code if such is present or the device path, could probably help when identifyint the device in question.
Also this still looks incomplete, as on other places one still gets those warnings:
[ 0.314944] pnp 00:08: Plug and Play ACPI device, IDs INT33fc (active) [ 0.316122] pnp 00:09: unknown resource type 19 in _CRS [ 0.316136] pnp 00:09: can't evaluate _CRS: 1I don't know if looking on them at this place has any value, maybe something like this is correct?
commit
52e2822c4c8b09180e5eb3dd94e4e9aea0d25effAuthor: Rolf Eike Beer <[email protected]> Date: Tue Feb 18 11:11:10 2014 +0100ACPI: ignore GPIO and
SERIAL_BUSresources in PNP init codedrivers/pnp/pnpacpi/rsparser.c +2
-0@@ -240,6 +240,8 @@ static acpi_status pnpacpi_allocated_resource(struct acpi_resource *res,break ;case ACPI_RESOURCE_TYPE_GENERIC_REGISTER : +case ACPI_RESOURCE_TYPE_GPIO : +case ACPI_RESOURCE_TYPE_SERIAL_BUS :break ;default :Greetings,
Eike
Quoted 7 lines · Lan Tianyu
Quoted 6 lines · Rolf Eike Beer
Am Montag, 28. April 2014, 22:27:39 schrieb Lan Tianyu:
Quoted 5 lines
ACPI 5.0 spec(5.5.2.4.5) defines
GenericSerialBus(i2c, spi, uart)operation
region. It allows ACPI aml code able to access such kind of devices to implement some ACPI standard method.
Quoted 8 lines
Quoted 8 lines
Quoted 4 lines
On the Asus T100TA, Bios use GenericSerialBus operation region to access i2c device to get battery info. So battery function depends on the I2C operation region support. Here is the bug link.
https://bugzilla.kernel.org/show_bug.cgi?id=69011Hi all,
I have tested this series and got some errors, but no additional
functionality:
Quoted 3 lines
Hi Rolf:
Thanks for test. Could you attach the output of dmesg and acpidump?
Which machine you are testing on?
Hi,
this is an Aava Inari 8 tablet (pre-release hardware). Please find the DSDT and the dmesg.log attached.
In case of any further questions don't hesitate to ask, I'll try to be more responsible.
Regards,
Eike
Signature · 7 lines
Rolf Eike Beer, emlix GmbH, http://www.emlix.com Fon +49 551 30664-0, Fax +49 551 30664-11 Bertha-von-Suttner-Str. 9, 37085 Göttingen, Germany Sitz der Gesellschaft: Göttingen, Amtsgericht Göttingen HR B 3160 Geschäftsführung: Dr. Uwe Kracke, Ust-IdNr.: DE 205 198 055 emlix - smart embedded open source
[ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Initializing cgroup subsys cpuacct [ 0.000000] Linux version 3.15.0-rc5-Inari (root@devpool02) (gcc version 4.6.4 (Emlix Linux Inari) ) #1 SMP Tue May 13 08:40:31 UTC 2014 [ 0.000000] e820: BIOS-provided physical RAM map: [ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000008efff] usable [ 0.000000] BIOS-e820: [mem 0x000000000008f000-0x000000000008ffff] ACPI NVS [ 0.000000] BIOS-e820: [mem 0x0000000000090000-0x000000000009dfff] usable [ 0.000000] BIOS-e820: [mem 0x000000000009e000-0x000000000009ffff] reserved [ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x000000001fffffff] usable [ 0.000000] BIOS-e820: [mem 0x0000000020000000-0x00000000200fffff] reserved [ 0.000000] BIOS-e820: [mem 0x0000000020100000-0x0000000078345fff] usable [ 0.000000] BIOS-e820: [mem 0x0000000078346000-0x0000000078c45fff] reserved [ 0.000000] BIOS-e820: [mem 0x0000000078c46000-0x0000000078d45fff] ACPI NVS [ 0.000000] BIOS-e820: [mem 0x0000000078d46000-0x0000000078d85fff] ACPI data [ 0.000000] BIOS-e820: [mem 0x0000000078d86000-0x00000000794c7fff] usable [ 0.000000] BIOS-e820: [mem 0x00000000794c8000-0x0000000079dc7fff] ACPI NVS [ 0.000000] BIOS-e820: [mem 0x0000000079dc8000-0x0000000079ffffff] usable [ 0.000000] BIOS-e820: [mem 0x00000000e00f8000-0x00000000e00f8fff] reserved [ 0.000000] BIOS-e820: [mem 0x00000000fed01000-0x00000000fed01fff] reserved [ 0.000000] BIOS-e820: [mem 0x00000000ffd00000-0x00000000ffffffff] reserved [ 0.000000] Notice: NX (Execute Disable) protection cannot be enabled: non-PAE kernel! [ 0.000000] efi: EFI v2.31 by INSYDE Corp. [ 0.000000] efi: ACPI 2.0=0x78d85014 SMBIOS=0x78c45000 [ 0.000000] efi: mem00: type=7, attr=0xf, range=[0x0000000000000000-0x0000000000001000) (0MB) [ 0.000000] efi: mem01: type=2, attr=0xf, range=[0x0000000000001000-0x0000000000007000) (0MB) [ 0.000000] efi: mem02: type=7, attr=0xf, range=[0x0000000000007000-0x000000000008f000) (0MB) [ 0.000000] efi: mem03: type=10, attr=0xf, range=[0x000000000008f000-0x0000000000090000) (0MB) [ 0.000000] efi: mem04: type=7, attr=0xf, range=[0x0000000000090000-0x000000000009e000) (0MB) [ 0.000000] efi: mem05: type=0, attr=0xf, range=[0x000000000009e000-0x00000000000a0000) (0MB) [ 0.000000] efi: mem06: type=7, attr=0xf, range=[0x0000000000100000-0x0000000001000000) (15MB) [ 0.000000] efi: mem07: type=2, attr=0xf, range=[0x0000000001000000-0x0000000001ded000) (13MB) [ 0.000000] efi: mem08: type=7, attr=0xf, range=[0x0000000001ded000-0x0000000020000000) (482MB) [ 0.000000] efi: mem09: type=0, attr=0xf, range=[0x0000000020000000-0x0000000020100000) (1MB) [ 0.000000] efi: mem10: type=7, attr=0xf, range=[0x0000000020100000-0x0000000071dc0000) (1308MB) [ 0.000000] efi: mem11: type=4, attr=0xf, range=[0x0000000071dc0000-0x0000000071de0000) (0MB) [ 0.000000] efi: mem12: type=7, attr=0xf, range=[0x0000000071de0000-0x0000000073356000) (21MB) [ 0.000000] efi: mem13: type=2, attr=0xf, range=[0x0000000073356000-0x0000000073358000) (0MB) [ 0.000000] efi: mem14: type=1, attr=0xf, range=[0x0000000073358000-0x0000000073b46000) (7MB) [ 0.000000] efi: mem15: type=7, attr=0xf, range=[0x0000000073b46000-0x0000000076a92000) (47MB) [ 0.000000] efi: mem16: type=4, attr=0xf, range=[0x0000000076a92000-0x00000000774ec000) (10MB) [ 0.000000] efi: mem17: type=7, attr=0xf, range=[0x00000000774ec000-0x00000000774f9000) (0MB) [ 0.000000] efi: mem18: type=4, attr=0xf, range=[0x00000000774f9000-0x0000000077d46000) (8MB) [ 0.000000] efi: mem19: type=7, attr=0xf, range=[0x0000000077d46000-0x0000000078161000) (4MB) [ 0.000000] efi: mem20: type=3, attr=0xf, range=[0x0000000078161000-0x0000000078346000) (1MB) [ 0.000000] efi: mem21: type=5, attr=0x800000000000000f, range=[0x0000000078346000-0x0000000078546000) (2MB) [ 0.000000] efi: mem22: type=6, attr=0x800000000000000f, range=[0x0000000078546000-0x0000000078846000) (3MB) [ 0.000000] efi: mem23: type=0, attr=0xf, range=[0x0000000078846000-0x0000000078c46000) (4MB) [ 0.000000] efi: mem24: type=10, attr=0xf, range=[0x0000000078c46000-0x0000000078d46000) (1MB) [ 0.000000] efi: mem25: type=9, attr=0xf, range=[0x0000000078d46000-0x0000000078d86000) (0MB) [ 0.000000] efi: mem26: type=4, attr=0xf, range=[0x0000000078d86000-0x00000000794c8000) (7MB) [ 0.000000] efi: mem27: type=10, attr=0xf, range=[0x00000000794c8000-0x0000000079dc8000) (9MB) [ 0.000000] efi: mem28: type=4, attr=0xf, range=[0x0000000079dc8000-0x000000007a000000) (2MB) [ 0.000000] efi: mem29: type=11, attr=0x8000000000000001, range=[0x00000000e00f8000-0x00000000e00f9000) (0MB) [ 0.000000] efi: mem30: type=11, attr=0x8000000000000000, range=[0x00000000fed01000-0x00000000fed02000) (0MB) [ 0.000000] efi: mem31: type=11, attr=0x8000000000000000, range=[0x00000000ffd00000-0x0000000100000000) (3MB) [ 0.000000] SMBIOS 2.7 present. [ 0.000000] DMI: Aava Mobile Oy Inari 8 2GB/Type2 - Board Product Name, BIOS BYT.5.03.47.0033-022 01/16/2014 [ 0.000000] e820: update [mem 0x00000000-0x00000fff] usable ==> reserved [ 0.000000] e820: remove [mem 0x000a0000-0x000fffff] usable [ 0.000000] e820: last_pfn = 0x7a000 max_arch_pfn = 0x100000 [ 0.000000] MTRR default type: uncachable [ 0.000000] MTRR fixed ranges enabled: [ 0.000000] 00000-9FFFF write-back [ 0.000000] A0000-FFFFF write-protect [ 0.000000] MTRR variable ranges enabled: [ 0.000000] 0 base 0FFD00000 mask FFFC00000 write-protect [ 0.000000] 1 base 000000000 mask FC0000000 write-back [ 0.000000] 2 base 040000000 mask FE0000000 write-back [ 0.000000] 3 base 060000000 mask FF0000000 write-back [ 0.000000] 4 base 070000000 mask FF8000000 write-back [ 0.000000] 5 base 078000000 mask FFC000000 write-back [ 0.000000] 6 base 07B000000 mask FFF000000 uncachable [ 0.000000] 7 base 07AE00000 mask FFFE00000 uncachable [ 0.000000] x86 PAT enabled: cpu 0, old 0x7040600070406, new 0x7010600070106 [ 0.000000] Scanning 1 areas for low memory corruption [ 0.000000] initial memory mapped: [mem 0x00000000-0x01ffffff] [ 0.000000] Base memory trampoline at [c009a000] 9a000 size 16384 [ 0.000000] init_memory_mapping: [mem 0x00000000-0x000fffff] [ 0.000000] [mem 0x00000000-0x000fffff] page 4k [ 0.000000] init_memory_mapping: [mem 0x37000000-0x373fffff] [ 0.000000] [mem 0x37000000-0x373fffff] page 2M [ 0.000000] init_memory_mapping: [mem 0x30000000-0x36ffffff] [ 0.000000] [mem 0x30000000-0x36ffffff] page 2M [ 0.000000] init_memory_mapping: [mem 0x00100000-0x1fffffff] [ 0.000000] [mem 0x00100000-0x003fffff] page 4k [ 0.000000] [mem 0x00400000-0x1fffffff] page 2M [ 0.000000] init_memory_mapping: [mem 0x20100000-0x2fffffff] [ 0.000000] [mem 0x20100000-0x203fffff] page 4k [ 0.000000] [mem 0x20400000-0x2fffffff] page 2M [ 0.000000] BRK [0x01cd0000, 0x01cd0fff] PGTABLE [ 0.000000] init_memory_mapping: [mem 0x37400000-0x377fdfff] [ 0.000000] [mem 0x37400000-0x377fdfff] page 4k [ 0.000000] BRK [0x01cd1000, 0x01cd1fff] PGTABLE [ 0.000000] ACPI: RSDP 0x78D85014 000024 (v02 INSYDE) [ 0.000000] ACPI: XSDT 0x78D61188 0000D4 (v01 INSYDE INSYDE 00000003 01000013) [ 0.000000] ACPI: FACP 0x78D7F000 00010C (v05 INSYDE INSYDE 00000003 ACPI 00040000) [ 0.000000] ACPI: DSDT 0x78D6E000 00BAEC (v02 INSYDE INSYDE 00000003 ACPI 00040000) [ 0.000000] ACPI: UEFI 0x78D84000 000236 (v01 INSYDE INSYDE 00000001 ACPI 00040000) [ 0.000000] ACPI: TCPA 0x78D83000 000032 (v02 INSYDE INSYDE 00000000 ACPI 00040000) [ 0.000000] ACPI: UEFI 0x78D81000 000042 (v01 INSYDE INSYDE 00000000 ACPI 00040000) [ 0.000000] ACPI: DBG2 0x78D80000 000072 (v00 INSYDE INSYDE 00000003 ACPI 00040000) [ 0.000000] ACPI: HPET 0x78D7E000 000038 (v01 INSYDE INSYDE 00000003 ACPI 00040000) [ 0.000000] ACPI: LPIT 0x78D7D000 000104 (v01 INSYDE INSYDE 00000003 ACPI 00040000) [ 0.000000] ACPI: APIC 0x78D7C000 00006C (v03 INSYDE INSYDE 00000003 ACPI 00040000) [ 0.000000] ACPI: MCFG 0x78D7B000 00003C (v01 INSYDE INSYDE 00000003 ACPI 00040000) [ 0.000000] ACPI: SLIC 0x78D7A000 000176 (v01 INSYDE INSYDE 00000003 ACPI 00040000) [ 0.000000] ACPI: SSDT 0x78D6D000 0005FB (v01 INSYDE CpuDptf 00000003 ACPI 00040000) [ 0.000000] ACPI: SSDT 0x78D6B000 0018C2 (v01 INSYDE DptfTab 00000003 ACPI 00040000) [ 0.000000] ACPI: SSDT 0x78D6A000 000058 (v01 INSYDE LowPwrM 00000003 ACPI 00040000) [ 0.000000] ACPI: SSDT 0x78D69000 0000FF (v01 INSYDE SoCDptf 00000003 ACPI 00040000) [ 0.000000] ACPI: SSDT 0x78D68000 00043A (v01 INSYDE Tpm2Tabl 00001000 ACPI 00040000) [ 0.000000] ACPI: TPM2 0x78D67000 000034 (v03 INSYDE INSYDE 00000000 ACPI 00040000) [ 0.000000] ACPI: SSDT 0x78D66000 000763 (v01 INSYDE CpuPm 00003000 ACPI 00040000) [ 0.000000] ACPI: SSDT 0x78D65000 000290 (v01 INSYDE Cpu0Tst 00003000 ACPI 00040000) [ 0.000000] ACPI: SSDT 0x78D64000 00017A (v01 INSYDE ApTst 00003000 ACPI 00040000) [ 0.000000] ACPI: FPDT 0x78D63000 000044 (v01 INSYDE INSYDE 00000001 ACPI 00040000) [ 0.000000] ACPI: CSRT 0x78D62000 00014C (v00 INSYDE INSYDE 00000005 ACPI 00040000) [ 0.000000] ACPI: BGRT 0x78D60000 000038 (v01 INSYDE INSYDE 00000001 ACPI 00040000) [ 0.000000] ACPI: Local APIC address 0xfee00000 [ 0.000000] 1064MB HIGHMEM available. [ 0.000000] 887MB LOWMEM available. [ 0.000000] mapped low ram: 0 - 377fe000 [ 0.000000] low ram: 0 - 377fe000 [ 0.000000] BRK [0x01cd2000, 0x01cd2fff] PGTABLE [ 0.000000] Zone ranges: [ 0.000000] DMA [mem 0x00001000-0x00ffffff] [ 0.000000] Normal [mem 0x01000000-0x377fdfff] [ 0.000000] HighMem [mem 0x377fe000-0x79ffffff] [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x00001000-0x0008efff] [ 0.000000] node 0: [mem 0x00090000-0x0009dfff] [ 0.000000] node 0: [mem 0x00100000-0x1fffffff] [ 0.000000] node 0: [mem 0x20100000-0x78345fff] [ 0.000000] node 0: [mem 0x78d86000-0x794c7fff] [ 0.000000] node 0: [mem 0x79dc8000-0x79ffffff] [ 0.000000] On node 0 totalpages: 494428 [ 0.000000] free_area_init_node: node 0, pgdat c17500c0, node_mem_map f68be020 [ 0.000000] DMA zone: 32 pages used for memmap [ 0.000000] DMA zone: 0 pages reserved [ 0.000000] DMA zone: 3996 pages, LIFO batch:0 [ 0.000000] Normal zone: 1744 pages used for memmap [ 0.000000] Normal zone: 222974 pages, LIFO batch:31 [ 0.000000] HighMem zone: 2129 pages used for memmap [ 0.000000] HighMem zone: 267458 pages, LIFO batch:31 [ 0.000000] Using APIC driver default [ 0.000000] x86/hpet: Will disable the HPET for this platform because it's not reliable [ 0.000000] Reserving Intel graphics stolen memory at 0x7af00000-0x7eefffff [ 0.000000] ACPI: Local APIC address 0xfee00000 [ 0.000000] ACPI: LAPIC (acpi_id[0x01] lapic_id[0x00] enabled) [ 0.000000] ACPI: LAPIC (acpi_id[0x02] lapic_id[0x02] enabled) [ 0.000000] ACPI: LAPIC (acpi_id[0x03] lapic_id[0x04] enabled) [ 0.000000] ACPI: LAPIC (acpi_id[0x04] lapic_id[0x06] enabled) [ 0.000000] ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0]) [ 0.000000] IOAPIC[0]: apic_id 2, version 32, address 0xfec00000, GSI 0-86 [ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl) [ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level) [ 0.000000] ACPI: IRQ0 used by override. [ 0.000000] ACPI: IRQ2 used by override. [ 0.000000] ACPI: IRQ9 used by override. [ 0.000000] Using ACPI (MADT) for SMP configuration information [ 0.000000] ACPI: HPET id: 0x8086a201 base: 0xfed00000 [ 0.000000] smpboot: Allowing 4 CPUs, 0 hotplug CPUs [ 0.000000] nr_irqs_gsi: 103 [ 0.000000] PM: Registered nosave memory: [mem 0x0008f000-0x0008ffff] [ 0.000000] PM: Registered nosave memory: [mem 0x0009e000-0x0009ffff] [ 0.000000] PM: Registered nosave memory: [mem 0x000a0000-0x000fffff] [ 0.000000] PM: Registered nosave memory: [mem 0x20000000-0x200fffff] [ 0.000000] e820: [mem 0x7ef00000-0xe00f7fff] available for PCI devices [ 0.000000] setup_percpu: NR_CPUS:4 nr_cpumask_bits:4 nr_cpu_ids:4 nr_node_ids:1 [ 0.000000] PERCPU: Embedded 12 pages/cpu @f6882000 s27200 r0 d21952 u49152 [ 0.000000] pcpu-alloc: s27200 r0 d21952 u49152 alloc=12*4096 [ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 492652 [ 0.000000] Kernel command line: root=/dev/sda2 video=HDMI-A-1:1200x1920e drm_kms_helper.edid_firmware=HDMI-A-1:edid/1200x1920.bin [ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes) [ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes) [ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes) [ 0.000000] Initializing CPU#0 [ 0.000000] Initializing HighMem for node 0 (000377fe:0007a000) [ 0.000000] Initializing Movable for node 0 (00000000:00000000) [ 0.000000] Memory: 1916980K/1977712K available (5569K kernel code, 331K rwdata, 1640K rodata, 4280K init, 1232K bss, 60732K reserved, 1038956K highmem) [ 0.000000] virtual kernel memory layout: [ 0.000000] fixmap : 0xfff66000 - 0xfffff000 ( 612 kB) [ 0.000000] pkmap : 0xff800000 - 0xffc00000 (4096 kB) [ 0.000000] vmalloc : 0xf7ffe000 - 0xff7fe000 ( 120 MB) [ 0.000000] lowmem : 0xc0000000 - 0xf77fe000 ( 887 MB) [ 0.000000] .init : 0xc1760000 - 0xc1b8e000 (4280 kB) [ 0.000000] .data : 0xc1570a99 - 0xc175eec0 (1977 kB) [ 0.000000] .text : 0xc1000000 - 0xc1570a99 (5570 kB) [ 0.000000] Checking if this processor honours the WP bit even in supervisor mode...Ok. [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1 [ 0.000000] Hierarchical RCU implementation. [ 0.000000] NR_IRQS:2304 nr_irqs:1024 16 [ 0.000000] CPU 0 irqstacks, hard=f600c000 soft=f600e000 [ 0.000000] Console: colour dummy device 80x25 [ 0.000000] console [tty0] enabled [ 0.000000] Maximum core-clock to bus-clock ratio: 0xa [ 0.000000] Resolved frequency ID: 2, frequency: 133200 KHz [ 0.000000] TSC runs at 1332000 KHz [ 0.000000] lapic_timer_frequency = 133200 [ 0.000000] tsc: Detected 1332.000 MHz processor [ 0.000038] Calibrating delay loop (skipped), value calculated using timer frequency.. 2664.00 BogoMIPS (lpj=1332000) [ 0.000056] pid_max: default: 32768 minimum: 301 [ 0.000073] ACPI: Core revision 20140214 [ 0.045134] ACPI: All ACPI Tables successfully acquired [ 0.048115] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.048134] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.048462] Initializing cgroup subsys freezer [ 0.048505] CPU: Physical Processor ID: 0 [ 0.048515] CPU: Processor Core ID: 0 [ 0.048525] ENERGY_PERF_BIAS: Set to 'normal', was 'performance' [ 0.048525] ENERGY_PERF_BIAS: View and update with x86_energy_perf_policy(8) [ 0.060656] mce: CPU supports 6 MCE banks [ 0.060675] CPU0: Thermal monitoring enabled (TM1) [ 0.060696] Last level iTLB entries: 4KB 48, 2MB 0, 4MB 0 [ 0.060696] Last level dTLB entries: 4KB 128, 2MB 16, 4MB 16, 1GB 0 [ 0.060696] tlb_flushall_shift: 6 [ 0.060903] Freeing SMP alternatives memory: 20K (c1b8e000 - c1b93000) [ 0.060940] ------------[ cut here ]------------ [ 0.060959] WARNING: CPU: 0 PID: 0 at /tmp/e2/build/linux-git/mm/early_ioremap.c:136 __early_ioremap+0xbe/0x1c2() [ 0.060972] Modules linked in: [ 0.060985] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 3.15.0-rc5-Inari #1 [ 0.060995] Hardware name: Aava Mobile Oy Inari 8 2GB/Type2 - Board Product Name, BIOS BYT.5.03.47.0033-022 01/16/2014 [ 0.061009] 00000000 00000000 c170df00 c1564914 c16631ec c170df30 c103e4aa c165b654 [ 0.061047] 00000000 00000000 c16631ec 00000088 c177cdf5 c177cdf5 00041ee6 00005800 [ 0.061069] c1b97800 c170df40 c103e4ed 00000009 00000000 c170df98 c177cdf5 00000000 [ 0.061090] Call Trace: [ 0.061105] [<c1564914>] dump_stack+0x41/0x52 [ 0.061119] [<c103e4aa>] warn_slowpath_common+0x7a/0xa0 [ 0.061132] [<c177cdf5>] ? __early_ioremap+0xbe/0x1c2 [ 0.061144] [<c177cdf5>] ? __early_ioremap+0xbe/0x1c2 [ 0.061156] [<c103e4ed>] warn_slowpath_null+0x1d/0x20 [ 0.061168] [<c177cdf5>] __early_ioremap+0xbe/0x1c2 [ 0.061182] [<c10c4b42>] ? __get_free_pages+0x22/0x30 [ 0.061196] [<c10f217a>] ? __kmalloc+0xea/0xf0 [ 0.061209] [<c177d0b8>] early_memremap+0xd/0xf [ 0.061221] [<c1773828>] efi_bgrt_init+0xf0/0x135 [ 0.061234] [<c1773150>] efi_late_init+0x8/0xa [ 0.061247] [<c1760a34>] start_kernel+0x34f/0x35f [ 0.061259] [<c1760520>] ? repair_env_string+0x51/0x51 [ 0.061272] [<c176036b>] i386_start_kernel+0x139/0x13c [ 0.061294] ---[ end trace d7b23e2954b99569 ]--- [ 0.064345] Enabling APIC mode: Flat. Using 1 I/O APICs [ 0.065379] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1 [ 0.075406] ..MP-BIOS bug: 8254 timer not connected to IO-APIC [ 0.075416] ...trying to set up timer (IRQ0) through the 8259A ... [ 0.075425] ..... (found apic 0 pin 2) ... [ 0.085441] ....... works. [ 0.085450] smpboot: CPU0: Intel(R) Atom(TM) CPU Z3745 @ 1.33GHz (fam: 06, model: 37, stepping: 08) [ 0.085489] TSC deadline timer enabled [ 0.085505] Performance Events: PEBS fmt2+, 8-deep LBR, Silvermont events, full-width counters, Intel PMU driver. [ 0.085531] ... version: 3 [ 0.085539] ... bit width: 40 [ 0.085547] ... generic registers: 2 [ 0.085555] ... value mask: 000000ffffffffff [ 0.085563] ... max period: 000000ffffffffff [ 0.085571] ... fixed-purpose events: 3 [ 0.085579] ... event mask: 0000000700000003 [ 0.087178] CPU 1 irqstacks, hard=f60a6000 soft=f60b0000 [ 0.087184] x86: Booting SMP configuration: [ 0.087195] .... node #0, CPUs: #1 [ 0.097309] Initializing CPU#1 [ 0.112526] CPU 2 irqstacks, hard=f60ba000 soft=f60bc000 [ 0.112545] #2 [ 0.122597] Initializing CPU#2 [ 0.137915] CPU 3 irqstacks, hard=f60c6000 soft=f60c8000 [ 0.137929] #3 [ 0.147984] Initializing CPU#3 [ 0.163166] x86: Booted up 1 node, 4 CPUs [ 0.163186] smpboot: Total of 4 processors activated (10656.00 BogoMIPS) [ 0.164201] devtmpfs: initialized [ 0.164699] PM: Registering ACPI NVS region [mem 0x0008f000-0x0008ffff] (4096 bytes) [ 0.164716] PM: Registering ACPI NVS region [mem 0x78c46000-0x78d45fff] (1048576 bytes) [ 0.164769] PM: Registering ACPI NVS region [mem 0x794c8000-0x79dc7fff] (9437184 bytes) [ 0.165321] pinctrl core: initialized pinctrl subsystem [ 0.165383] RTC time: 2:41:48, date: 05/13/14 [ 0.165472] NET: Registered protocol family 16 [ 0.165800] cpuidle: using governor ladder [ 0.165812] cpuidle: using governor menu [ 0.165887] ACPI: bus type PCI registered [ 0.166044] PCI: MMCONFIG for domain 0000 [bus 00-3f] at [mem 0xe0000000-0xe3ffffff] (base 0xe0000000) [ 0.166062] PCI: not using MMCONFIG [ 0.166410] PCI: Using configuration type 1 for base access [ 0.171661] ACPI: Added _OSI(Module Device) [ 0.171676] ACPI: Added _OSI(Processor Device) [ 0.171686] ACPI: Added _OSI(3.0 _SCP Extensions) [ 0.171695] ACPI: Added _OSI(Processor Aggregator Device) [ 0.207365] ACPI: SSDT 0x78BCAA90 000353 (v01 PmRef Cpu0Ist 00003000 INTL 20130117) [ 0.208929] ACPI: Dynamic OEM Table Load: [ 0.208943] ACPI: SSDT 0x00000000 000353 (v01 PmRef Cpu0Ist 00003000 INTL 20130117) [ 0.209485] ACPI: SSDT 0x78BC9910 000433 (v01 PmRef Cpu0Cst 00003001 INTL 20130117) [ 0.211341] ACPI: Dynamic OEM Table Load: [ 0.211354] ACPI: SSDT 0x00000000 000433 (v01 PmRef Cpu0Cst 00003001 INTL 20130117) [ 0.219899] ACPI: SSDT 0x78BCBD90 00015F (v01 PmRef ApIst 00003000 INTL 20130117) [ 0.221480] ACPI: Dynamic OEM Table Load: [ 0.221494] ACPI: SSDT 0x00000000 00015F (v01 PmRef ApIst 00003000 INTL 20130117) [ 0.224032] ACPI: SSDT 0x78BCBF10 00008D (v01 PmRef ApCst 00003000 INTL 20130117) [ 0.225433] ACPI: Dynamic OEM Table Load: [ 0.225447] ACPI: SSDT 0x00000000 00008D (v01 PmRef ApCst 00003000 INTL 20130117) [ 0.231309] ACPI: Interpreter enabled [ 0.231344] ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S1_] (20140214/hwxface-580) [ 0.231369] ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S2_] (20140214/hwxface-580) [ 0.231391] ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S3_] (20140214/hwxface-580) [ 0.231413] ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S4_] (20140214/hwxface-580) [ 0.231434] ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S5_] (20140214/hwxface-580) [ 0.231452] ACPI: (supports S0) [ 0.231461] ACPI: Using IOAPIC for interrupt routing [ 0.231553] PCI: MMCONFIG for domain 0000 [bus 00-3f] at [mem 0xe0000000-0xe3ffffff] (base 0xe0000000) [ 0.239081] [Firmware Info]: PCI: MMCONFIG at [mem 0xe0000000-0xe3ffffff] not reserved in ACPI motherboard resources [ 0.239099] PCI: not using MMCONFIG [ 0.239157] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug [ 0.242534] ACPI: Power Resource [USBC] (on) [ 0.246624] ACPI: Power Resource [WWPR] (off) [ 0.257294] ACPI: Power Resource [PLPE] (on) [ 0.269398] ACPI: Power Resource [CLK0] (on) [ 0.269544] ACPI: Power Resource [CLK1] (on) [ 0.269912] ACPI: Power Resource [P28X] (off) [ 0.270071] ACPI: Power Resource [P18X] (off) [ 0.272628] ACPI: Power Resource [TCPR] (off) [ 0.279832] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff]) [ 0.279860] acpi PNP0A08:00: _OSC: OS supports [ASPM ClockPM Segments MSI] [ 0.280083] \_SB_.PCI0:_OSC invalid UUID [ 0.280088] _OSC request data:1 1e 0 [ 0.280100] acpi PNP0A08:00: _OSC failed (AE_ERROR); disabling ASPM [ 0.281420] acpi PNP0A08:00: fail to add MMCONFIG information, can't access extended PCI configuration space under this bridge. [ 0.281505] PCI host bridge to bus 0000:00 [ 0.281520] pci_bus 0000:00: root bus resource [bus 00-ff] [ 0.281533] pci_bus 0000:00: root bus resource [io 0x0000-0x006f] [ 0.281545] pci_bus 0000:00: root bus resource [io 0x0078-0x0cf7] [ 0.281557] pci_bus 0000:00: root bus resource [io 0x0d00-0xffff] [ 0.281569] pci_bus 0000:00: root bus resource [mem 0x000a0000-0x000bffff] [ 0.281581] pci_bus 0000:00: root bus resource [mem 0x000c0000-0x000dffff] [ 0.281593] pci_bus 0000:00: root bus resource [mem 0x000e0000-0x000fffff] [ 0.281606] pci_bus 0000:00: root bus resource [mem 0x90c00000-0x90ffffff] [ 0.281618] pci_bus 0000:00: root bus resource [mem 0x7af00001-0x7ef00000] [ 0.281630] pci_bus 0000:00: root bus resource [mem 0x80000000-0x908ffffe] [ 0.281642] pci_bus 0000:00: root bus resource [mem 0xfed40000-0xfed40fff] [ 0.281667] pci 0000:00:00.0: [8086:0f00] type 00 class 0x060000 [ 0.281861] pci 0000:00:02.0: [8086:0f31] type 00 class 0x030000 [ 0.281886] pci 0000:00:02.0: reg 0x10: [mem 0x90000000-0x903fffff] [ 0.281906] pci 0000:00:02.0: reg 0x18: [mem 0x80000000-0x8fffffff pref] [ 0.281924] pci 0000:00:02.0: reg 0x20: [io 0x1000-0x1007] [ 0.282151] pci 0000:00:14.0: [8086:0f35] type 00 class 0x0c0330 [ 0.282182] pci 0000:00:14.0: reg 0x10: [mem 0x90800000-0x9080ffff 64bit] [ 0.282262] pci 0000:00:14.0: PME# supported from D3hot D3cold [ 0.282440] pci 0000:00:1a.0: [8086:0f18] type 00 class 0x108000 [ 0.282472] pci 0000:00:1a.0: reg 0x10: [mem 0x90700000-0x907fffff] [ 0.282489] pci 0000:00:1a.0: reg 0x14: [mem 0x90600000-0x906fffff] [ 0.282590] pci 0000:00:1a.0: PME# supported from D0 D3hot [ 0.282765] pci 0000:00:1f.0: [8086:0f1c] type 00 class 0x060100 [ 0.282991] pci_bus 0000:00: on NUMA node 0 [ 0.284118] ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 10 11 12 14 15) *0, disabled. [ 0.284441] ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 10 11 12 14 15) *0, disabled. [ 0.284761] ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 6 10 11 12 14 15) *0, disabled. [ 0.285090] ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 10 11 12 14 15) *0, disabled. [ 0.285410] ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 6 10 11 12 14 15) *0, disabled. [ 0.285730] ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 6 10 11 12 14 15) *0, disabled. [ 0.286050] ACPI: PCI Interrupt Link [LNKG] (IRQs 3 4 5 6 10 11 12 14 15) *0, disabled. [ 0.286379] ACPI: PCI Interrupt Link [LNKH] (IRQs 3 4 5 6 10 11 12 14 15) *0, disabled. [ 0.298870] dw_dmac INTL9C60:00: DesignWare DMA Controller, 8 channels [ 0.299585] dw_dmac INTL9C60:01: DesignWare DMA Controller, 8 channels [ 0.300369] vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none [ 0.300387] vgaarb: loaded [ 0.300394] vgaarb: bridge control possible 0000:00:02.0 [ 0.300615] SCSI subsystem initialized [ 0.300634] ACPI: bus type USB registered [ 0.300722] usbcore: registered new interface driver usbfs [ 0.300766] usbcore: registered new interface driver hub [ 0.300847] usbcore: registered new device driver usb [ 0.310724] pps_core: LinuxPPS API ver. 1 registered [ 0.310737] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <[email protected]> [ 0.310766] PTP clock support registered [ 0.311025] Advanced Linux Sound Architecture Driver Initialized. [ 0.311037] PCI: Using ACPI for IRQ routing [ 0.311047] PCI: pci_cache_line_size set to 64 bytes [ 0.311072] Expanded resource reserved due to conflict with PCI Bus 0000:00 [ 0.311085] e820: reserve RAM buffer [mem 0x0008f000-0x0008ffff] [ 0.311090] e820: reserve RAM buffer [mem 0x0009e000-0x0009ffff] [ 0.311095] e820: reserve RAM buffer [mem 0x78346000-0x7bffffff] [ 0.311100] e820: reserve RAM buffer [mem 0x794c8000-0x7bffffff] [ 0.311105] e820: reserve RAM buffer [mem 0x7a000000-0x7bffffff] [ 0.311559] cfg80211: Calling CRDA to update world regulatory domain [ 0.311786] Switched to clocksource refined-jiffies [ 0.311915] pnp: PnP ACPI init [ 0.311939] ACPI: bus type PNP registered [ 0.312056] pnp 00:00: Plug and Play ACPI device, IDs PNP0b00 (active) [ 0.312247] pnp 00:01: Plug and Play ACPI device, IDs PNP0103 (active) [ 0.312343] pnp 00:02: Plug and Play ACPI device, IDs INT0800 (active) [ 0.312471] system 00:03: [io 0x0680-0x069f] has been reserved [ 0.312487] system 00:03: [io 0x0400-0x047f] has been reserved [ 0.312500] system 00:03: [io 0x0500-0x05fe] has been reserved [ 0.312513] system 00:03: [io 0x0600-0x061f] has been reserved [ 0.312525] system 00:03: [io 0x164e-0x164f] has been reserved [ 0.312539] system 00:03: Plug and Play ACPI device, IDs PNP0c02 (active) [ 0.312898] pnp 00:04: Plug and Play ACPI device, IDs PNP0501 (active) [ 0.314419] pnp 00:05: Plug and Play ACPI device, IDs INT0002 (active) [ 0.314596] pnp 00:06: Plug and Play ACPI device, IDs INT33fc (active) [ 0.314770] pnp 00:07: Plug and Play ACPI device, IDs INT33fc (active) [ 0.314944] pnp 00:08: Plug and Play ACPI device, IDs INT33fc (active) [ 0.316122] pnp 00:09: unknown resource type 19 in _CRS [ 0.316136] pnp 00:09: can't evaluate _CRS: 1 [ 0.316211] pnp 00:09: Plug and Play ACPI device, IDs BCM2e3a (active) [ 0.323337] pnp 00:0a: unknown resource type 17 in _CRS [ 0.323352] pnp 00:0a: can't evaluate _CRS: 1 [ 0.323447] pnp 00:0a: Plug and Play ACPI device, IDs INTcfd9 PNP0c40 (active) [ 0.323599] pnp 00:0b: Plug and Play ACPI device, IDs INT33bd (active) [ 0.323947] pnp 00:0c: Plug and Play ACPI device, IDs INT3401 (active) [ 0.324267] pnp 00:0d: unknown resource type 17 in _CRS [ 0.324281] pnp 00:0d: can't evaluate _CRS: 1 [ 0.324361] pnp 00:0d: Plug and Play ACPI device, IDs INT3403 (active) [ 0.324502] pnp 00:0e: unknown resource type 17 in _CRS [ 0.324515] pnp 00:0e: can't evaluate _CRS: 1 [ 0.324594] pnp 00:0e: Plug and Play ACPI device, IDs INT3403 (active) [ 0.324790] pnp 00:0f: unknown resource type 17 in _CRS [ 0.324804] pnp 00:0f: can't evaluate _CRS: 1 [ 0.324888] pnp 00:0f: Plug and Play ACPI device, IDs INT3409 (active) [ 0.325189] pnp: PnP ACPI: found 16 devices [ 0.325200] ACPI: bus type PNP unregistered [ 0.330327] pci_bus 0000:00: resource 4 [io 0x0000-0x006f] [ 0.330335] pci_bus 0000:00: resource 5 [io 0x0078-0x0cf7] [ 0.330342] pci_bus 0000:00: resource 6 [io 0x0d00-0xffff] [ 0.330348] pci_bus 0000:00: resource 7 [mem 0x000a0000-0x000bffff] [ 0.330354] pci_bus 0000:00: resource 8 [mem 0x000c0000-0x000dffff] [ 0.330361] pci_bus 0000:00: resource 9 [mem 0x000e0000-0x000fffff] [ 0.330367] pci_bus 0000:00: resource 10 [mem 0x90c00000-0x90ffffff] [ 0.330373] pci_bus 0000:00: resource 11 [mem 0x7af00001-0x7ef00000] [ 0.330379] pci_bus 0000:00: resource 12 [mem 0x80000000-0x908ffffe] [ 0.330386] pci_bus 0000:00: resource 13 [mem 0xfed40000-0xfed40fff] [ 0.330439] NET: Registered protocol family 2 [ 0.330776] TCP established hash table entries: 8192 (order: 3, 32768 bytes) [ 0.330825] TCP bind hash table entries: 8192 (order: 4, 65536 bytes) [ 0.330892] TCP: Hash tables configured (established 8192 bind 8192) [ 0.330933] TCP: reno registered [ 0.330945] UDP hash table entries: 512 (order: 2, 16384 bytes) [ 0.330967] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes) [ 0.331076] NET: Registered protocol family 1 [ 0.331114] pci 0000:00:02.0: Boot video device [ 0.331512] PCI: CLS 0 bytes, default 64 [ 0.514091] microcode: CPU0 sig=0x30678, pf=0x2, revision=0x808 [ 0.514123] microcode: CPU1 sig=0x30678, pf=0x2, revision=0x808 [ 0.514152] microcode: CPU2 sig=0x30678, pf=0x2, revision=0x808 [ 0.514181] microcode: CPU3 sig=0x30678, pf=0x2, revision=0x808 [ 0.514325] microcode: Microcode Update Driver: v2.00 <tigran-ppwZ4lME3+KI6QP4U9MhSdBc4/[email protected]>, Peter Oruba [ 0.515032] Scanning for low memory corruption every 60 seconds [ 0.515717] futex hash table entries: 1024 (order: 4, 65536 bytes) [ 0.515772] audit: initializing netlink subsys (disabled) [ 0.515816] audit: type=2000 audit(1399948908.496:1): initialized [ 0.553602] bounce pool size: 64 pages [ 0.553620] HugeTLB registered 4 MB page size, pre-allocated 0 pages [ 0.559083] msgmni has been set to 1775 [ 0.559837] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251) [ 0.559853] io scheduler noop registered [ 0.559862] io scheduler deadline registered [ 0.560024] io scheduler cfq registered (default) [ 0.560385] intel_idle: MWAIT substates: 0x33000020 [ 0.560391] intel_idle: v0.4 model 0x37 [ 0.560395] intel_idle: lapic_timer_reliable_states 0xffffffff [ 0.567555] ACPI: AC Adapter [ADP1] (on-line) [ 0.567897] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0 [ 0.567919] ACPI: Power Button [PWRF] [ 0.567932] ACPI Warning: Could not enable fixed event - PowerButton (2) (20140214/evxface-628) [ 0.571549] button: probe of LNXPWRBN:00 failed with error -22 [ 0.577570] [Firmware Bug]: No valid trip found [ 0.577864] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled [ 0.598273] 00:04: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A [ 0.599334] 80860F0A:00: ttyS1 at MMIO 0x9091d000 (irq = 39, base_baud = 2764800) is a 16550A [ 0.599604] 80860F0A:01: ttyS2 at MMIO 0x9091f000 (irq = 40, base_baud = 2764800) is a 16550A [ 0.599962] hpet: number irqs doesn't agree with number of timers [ 0.600113] Non-volatile memory driver v1.3 [ 0.600193] [drm] Initialized drm 1.1.0 20060810 [ 0.602197] [drm] Memory usable by graphics device = 2048M [ 0.607442] ACPI Error: Error attaching device[f60238a0] data [ 0.607460] (20140214/bus-143) [ 0.607708] ACPI Error: Error attaching device[f60238a0] data [ 0.607724] (20140214/bus-143) [ 0.607987] ACPI Error: Error attaching device[f60238a0] data [ 0.608003] (20140214/bus-143) [ 0.608251] ACPI Error: Error attaching device[f60238a0] data [ 0.608267] (20140214/bus-143) [ 0.608515] ACPI Error: Error attaching device[f60238a0] data [ 0.608531] (20140214/bus-143) [ 0.610972] i915 0000:00:02.0: irq 103 for MSI/MSI-X [ 0.610990] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013). [ 0.611001] [drm] Driver supports precise vblank timestamp query. [ 0.661459] vgaarb: device changed decodes: PCI:0000:00:02.0,olddecodes=io+mem,decodes=io+mem:owns=io+mem [ 0.662265] ACPI Error: Error attaching device[f60238a0] data [ 0.662282] (20140214/bus-143) [ 0.662679] ACPI Error: Error attaching device[f60238a0] data [ 0.662696] (20140214/bus-143) [ 1.172920] [drm] forcing HDMI-A-1 connector ON [ 1.246457] [drm] GMBUS [i915 gmbus vga] timed out, falling back to bit banging on pin 2 [ 1.267084] [drm] Got external EDID base block and 0 extensions from "edid/1200x1920.bin" for connector "HDMI-A-1" [ 1.408227] [drm] GMBUS [i915 gmbus dpc] timed out, falling back to bit banging on pin 4 [ 1.501620] fbcon: inteldrmfb (fb0) is primary device [ 1.624664] Switched to clocksource tsc [ 2.012203] Console: switching to colour frame buffer device 150x120 [ 2.041805] i915 0000:00:02.0: fb0: inteldrmfb frame buffer device [ 2.041936] i915 0000:00:02.0: registered panic notifier [ 2.046235] ACPI: Video Device [GFX0] (multi-head: yes rom: no post: no) [ 2.048005] acpi device:1a: registered as cooling_device4 [ 2.049449] acpi device:21: registered as cooling_device5 [ 2.049750] input: Video Bus as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input1 [ 2.050029] [drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 0 [ 2.050526] brd: module loaded [ 2.051083] loop: module loaded [ 2.051814] xhci_hcd 0000:00:14.0: xHCI Host Controller [ 2.052059] xhci_hcd 0000:00:14.0: new USB bus registered, assigned bus number 1 [ 2.052384] xhci_hcd 0000:00:14.0: cache line size of 64 is not supported [ 2.052427] xhci_hcd 0000:00:14.0: irq 104 for MSI/MSI-X [ 2.052569] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 [ 2.052718] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 2.052870] usb usb1: Product: xHCI Host Controller [ 2.052985] usb usb1: Manufacturer: Linux 3.15.0-rc5-Inari xhci_hcd [ 2.053119] usb usb1: SerialNumber: 0000:00:14.0 [ 2.053529] hub 1-0:1.0: USB hub found [ 2.053640] hub 1-0:1.0: 6 ports detected [ 2.055344] xhci_hcd 0000:00:14.0: xHCI Host Controller [ 2.055551] xhci_hcd 0000:00:14.0: new USB bus registered, assigned bus number 2 [ 2.055801] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003 [ 2.055948] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 2.056173] usb usb2: Product: xHCI Host Controller [ 2.056281] usb usb2: Manufacturer: Linux 3.15.0-rc5-Inari xhci_hcd [ 2.056414] usb usb2: SerialNumber: 0000:00:14.0 [ 2.056825] hub 2-0:1.0: USB hub found [ 2.056928] hub 2-0:1.0: 1 port detected [ 2.057430] usbcore: registered new interface driver usb-storage [ 2.057694] i8042: PNP: No PS/2 controller found. Probing ports directly. [ 2.825230] [drm] Enabling RC6 states: RC6 off, RC6p off, RC6pp off [ 3.101867] i8042: No controller found [ 3.102091] mousedev: PS/2 mouse device common for all mice [ 3.102390] ACPI Warning: Could not enable fixed event - RealTimeClock (4) (20140214/evxface-628) [ 3.102794] rtc_cmos 00:00: rtc core: registered rtc_cmos as rtc0 [ 3.102963] rtc_cmos 00:00: alarms up to one day, 242 bytes nvram [ 3.103164] i2c /dev entries driver [ 3.104656] Intel P-state driver initializing. [ 3.104782] Intel pstate controlling: cpu 0 [ 3.104913] Intel pstate controlling: cpu 1 [ 3.105039] Intel pstate controlling: cpu 2 [ 3.105167] Intel pstate controlling: cpu 3 [ 3.105381] sdhci: Secure Digital Host Controller Interface driver [ 3.105514] sdhci: Copyright(c) Pierre Ossman [ 3.106808] mmc0: no vqmmc regulator found [ 3.106900] mmc0: no vmmc regulator found [ 3.108138] mmc0: SDHCI controller on ACPI [80860F14:00] using ADMA [ 3.109672] mmc1: no vqmmc regulator found [ 3.109765] mmc1: no vmmc regulator found [ 3.111002] mmc1: SDHCI controller on ACPI [INT33BB:00] using ADMA [ 3.111624] sdhci-acpi 80860F14:01: failed to setup card detect gpio [ 3.112767] mmc2: no vqmmc regulator found [ 3.112857] mmc2: no vmmc regulator found [ 3.114086] mmc2: SDHCI controller on ACPI [80860F14:01] using ADMA [ 3.114270] sdhci-pltfm: SDHCI platform and OF driver helper [ 3.114403] EFI Variables Facility v0.08 2004-May-17 [ 3.124197] hidraw: raw HID events driver (C) Jiri Kosina [ 3.124699] usbcore: registered new interface driver usbhid [ 3.124801] usbhid: USB HID core driver [ 3.125249] TCP: cubic registered [ 3.125328] Initializing XFRM netlink socket [ 3.125678] NET: Registered protocol family 10 [ 3.126149] sit: IPv6 over IPv4 tunneling driver [ 3.126519] NET: Registered protocol family 17 [ 3.128471] Using IPI No-Shortcut mode [ 3.128835] registered taskstats version 1 [ 3.129457] Magic number: 14:311:662 [ 3.129606] console [netcon0] enabled [ 3.129673] netconsole: network logging started [ 3.129949] PM: Hibernation image not present or could not be loaded. [ 3.129958] ALSA device list: [ 3.130014] No soundcards found. [ 3.130135] Warning: unable to open an initial console. [ 3.132093] Freeing unused kernel memory: 4280K (c1760000 - c1b8e000) [ 3.152787] udevd[950]: starting version 173 [ 3.221479] mmc0: BKOPS_EN bit is not set [ 3.291604] mmc0: new HS200 MMC card at address 0001 [ 3.293171] mmcblk0: mmc0:0001 HCG8e 58.2 GiB [ 3.299431] mmcblk0boot0: mmc0:0001 HCG8e partition 1 4.00 MiB [ 3.306618] mmcblk0boot1: mmc0:0001 HCG8e partition 2 4.00 MiB [ 3.308595] mmcblk0rpmb: mmc0:0001 HCG8e partition 3 4.00 MiB [ 3.310774] mmcblk0: p1 p2 [ 3.314502] usb 2-1: new SuperSpeed USB device number 2 using xhci_hcd [ 3.315181] mmcblk0boot1: unknown partition table [ 3.318619] mmcblk0boot0: [ 3.325628] usb 2-1: New USB device found, idVendor=0451, idProduct=8046 [ 3.325736] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 3.326706] hub 2-1:1.0: USB hub found [ 3.326807] hub 2-1:1.0: 4 ports detected [ 3.457397] usb 1-1: new high-speed USB device number 2 using xhci_hcd [ 3.614821] usb 1-1: New USB device found, idVendor=0451, idProduct=8044 [ 3.638906] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=1 [ 3.662978] usb 1-1: SerialNumber: 420208698DA1 [ 3.687826] hub 1-1:1.0: USB hub found [ 3.711486] Clocksource tsc unstable (delta = 86056090 ns) [ 3.735632] Switched to clocksource refined-jiffies [ 3.735695] hub 1-1:1.0: 4 ports detected [ 3.871722] usb 1-3: new high-speed USB device number 3 using xhci_hcd [ 4.046409] usb 1-3: New USB device found, idVendor=12d1, idProduct=1570 [ 4.070299] usb 1-3: New USB device strings: Mfr=5, Product=4, SerialNumber=0 [ 4.094161] usb 1-3: Product: HUAWEI Mobile Broadband Module [ 4.117914] usb 1-3: Manufacturer: Huawei Technologies Co., Ltd. [ 4.287085] usb 1-4: new high-speed USB device number 4 using xhci_hcd [ 4.469915] usb 1-4: New USB device found, idVendor=0951, idProduct=1603 [ 4.493603] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 4.517281] usb 1-4: Product: DataTraveler 2.0 [ 4.540866] usb 1-4: Manufacturer: Kingston [ 4.564397] usb 1-4: SerialNumber: 89900000000000000000017E [ 4.588912] usb-storage 1-4:1.0: USB Mass Storage device detected [ 4.612720] scsi0 : usb-storage 1-4:1.0 [ 4.707537] usb 1-1.2: new high-speed USB device number 5 using xhci_hcd [ 4.814374] usb 1-1.2: New USB device found, idVendor=0424, idProduct=7500 [ 4.837670] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 4.860860] usb 1-1.2: Product: LAN7500 [ 4.883907] usb 1-1.2: Manufacturer: SMSC [ 4.906875] usb 1-1.2: SerialNumber: 00800f11700e [ 5.005944] usb 1-1.3: new low-speed USB device number 6 using xhci_hcd [ 5.120893] usb 1-1.3: New USB device found, idVendor=046d, idProduct=c312 [ 5.143940] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 5.166934] usb 1-1.3: Product: USB Multimedia Keyboard [ 5.189795] usb 1-1.3: Manufacturer: LITEON Technology [ 5.213180] usb 1-1.3: ep 0x81 - rounding interval to 128 microframes, ep desc says 192 microframes [ 5.240839] input: LITEON Technology USB Multimedia Keyboard as /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.3/1-1.3:1.0/0003:046D:C312.0001/input/input2 [ 5.288118] hid-generic 0003:046D:C312.0001: input,hidraw0: USB HID v1.10 Keyboard [LITEON Technology USB Multimedia Keyboard] on usb-0000:00:14.0-1.3/input0 [ 6.046665] scsi 0:0:0:0: Direct-Access Kingston DataTraveler 2.0 1.00 PQ: 0 ANSI: 2 [ 6.072550] sd 0:0:0:0: Attached scsi generic sg0 type 0 [ 6.097262] sd 0:0:0:0: [sda] 7856128 512-byte logical blocks: (4.02 GB/3.74 GiB) [ 6.122493] sd 0:0:0:0: [sda] Write Protect is off [ 6.147054] sd 0:0:0:0: [sda] Mode Sense: 23 00 00 00 [ 6.147419] sd 0:0:0:0: [sda] No Caching mode page found [ 6.171970] sd 0:0:0:0: [sda] Assuming drive cache: write through [ 6.199476] sda: sda1 sda2 [ 6.234277] sd 0:0:0:0: [sda] Attached SCSI removable disk [ 6.565533] EXT4-fs (sda2): couldn't mount as ext3 due to feature incompatibilities [ 6.594874] EXT4-fs (sda2): couldn't mount as ext2 due to feature incompatibilities [ 6.633506] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null) [ 6.912041] random: nonblocking pool is initialized [ 7.850402] udevd[1663]: starting version 173 [ 7.985774] sst-acpi 80860F28:00: Direct firmware load failed with error -2 [ 7.996052] sst-acpi 80860F28:00: Falling back to user helper [ 8.073790] smsc75xx v1.0.0 [ 8.088302] sst-acpi 80860F28:00: Cannot load firmware intel/fw_sst_0f28.bin-i2s_master [ 8.088802] byt-rt5640 byt-rt5640: ASoC: CPU DAI Front-cpu-dai not registered [ 8.088820] platform byt-rt5640: Driver byt-rt5640 requests probe deferral [ 8.097125] byt-rt5640 byt-rt5640: ASoC: CPU DAI Front-cpu-dai not registered [ 8.097140] platform byt-rt5640: Driver byt-rt5640 requests probe deferral [ 8.136577] smsc75xx 1-1.2:1.0 eth0: register 'smsc75xx' at usb-0000:00:14.0-1.2, smsc75xx USB 2.0 Gigabit Ethernet, 70:2f:97:00:22:4f [ 8.145263] usbcore: registered new interface driver smsc75xx [ 8.145392] byt-rt5640 byt-rt5640: ASoC: CPU DAI Front-cpu-dai not registered [ 8.145429] platform byt-rt5640: Driver byt-rt5640 requests probe deferral [ 16.314692] mmc0: Got data interrupt 0x00000002 even though no data operation was in progress. [ 16.343169] mmcblk0rpmb: error -110 transferring data, sector 8064, nr 8, cmd response 0x900, card status 0xb00 [ 16.369905] mmcblk0rpmb: retrying using single block read [ 16.398887] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 16.428174] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 16.457259] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 16.486166] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 16.514941] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 16.543616] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 16.569984] end_request: I/O error, dev mmcblk0rpmb, sector 8064 [ 16.596349] Buffer I/O error on device mmcblk0rpmb, logical block 1008 [ 24.832319] mmc0: Got data interrupt 0x00000002 even though no data operation was in progress. [ 24.861222] mmcblk0rpmb: error -110 transferring data, sector 8064, nr 8, cmd response 0x900, card status 0xb00 [ 24.888253] mmcblk0rpmb: retrying using single block read [ 24.917282] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 24.946559] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 24.975652] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 25.004522] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 25.033198] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 25.061704] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 25.087896] end_request: I/O error, dev mmcblk0rpmb, sector 8064 [ 25.114126] Buffer I/O error on device mmcblk0rpmb, logical block 1008 [ 33.349878] mmc0: Got data interrupt 0x00000002 even though no data operation was in progress. [ 33.378699] mmcblk0rpmb: error -110 transferring data, sector 0, nr 16, cmd response 0x900, card status 0xb00 [ 33.405713] mmcblk0rpmb: retrying using single block read [ 33.434832] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 33.464123] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 33.493276] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 33.522318] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 33.551240] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 33.580067] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 33.606641] end_request: I/O error, dev mmcblk0rpmb, sector 0 [ 33.633265] Buffer I/O error on device mmcblk0rpmb, logical block 0 [ 33.660054] end_request: I/O error, dev mmcblk0rpmb, sector 8 [ 33.686867] Buffer I/O error on device mmcblk0rpmb, logical block 1 [ 41.927437] mmc0: Got data interrupt 0x00000002 even though no data operation was in progress. [ 41.956639] mmcblk0rpmb: error -110 transferring data, sector 0, nr 8, cmd response 0x900, card status 0xb00 [ 41.984021] mmcblk0rpmb: retrying using single block read [ 42.013480] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 42.043118] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 42.072609] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 42.102063] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 42.131355] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 42.160452] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 42.187206] end_request: I/O error, dev mmcblk0rpmb, sector 0 [ 42.213908] Buffer I/O error on device mmcblk0rpmb, logical block 0 [ 46.035190] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 47.575941] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready [ 47.602582] smsc75xx 1-1.2:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0x45E1 [ 47.633581] smsc75xx 1-1.2:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
Quoted 21 lines · Rolf Eike Beer
Quoted 7 lines · Lan Tianyu
Quoted 6 lines · Rolf Eike Beer
Am Montag, 28. April 2014, 22:27:39 schrieb Lan Tianyu:
Quoted 5 lines
ACPI 5.0 spec(5.5.2.4.5) defines
GenericSerialBus(i2c, spi, uart)operation
region. It allows ACPI aml code able to access such kind of devices to implement some ACPI standard method.Quoted 8 lines
Quoted 8 lines
Quoted 4 lines
On the Asus T100TA, Bios use GenericSerialBus operation region to access i2c device to get battery info. So battery function depends on the I2C operation region support. Here is the bug link.
https://bugzilla.kernel.org/show_bug.cgi?id=69011Hi all,
I have tested this series and got some errors, but no additional
functionality:
Quoted 3 lines
Hi Rolf:
Thanks for test. Could you attach the output of dmesg and acpidump?
Which machine you are testing on?
Quoted 8 lines
Hi,
this is an Aava Inari 8 tablet (pre-release hardware). Please find the DSDT and the dmesg.log attached.
In case of any further questions don't hesitate to ask, I'll try to be more responsible.
Hi Eike:
Could you apply the patch in the attachment and attach the output of dmesg?
Quoted 4 lines
Regards,
Eike
drivers/acpi/bus.c +1 -2
@@ -139,8 +139,7 @@ int acpi_bus_attach_private_data(acpi_handle handle, void *data) status =acpi_attach_data (handle, acpi_bus_private_data_handler, data);if (ACPI_FAILURE (status)) { -ACPI_ERROR ((AE_INFO ,"Error attaching device[%p] data\n" , - handle)); +acpi_handle_err (handle,"Error attaching device data %d\n" , status);return -ENODEV ; }
Am Donnerstag, 15. Mai 2014, 22:49:37 schrieb Lan Tianyu:
Quoted 31 lines · Rolf Eike Beer
Quoted 30 lines
Quoted 13 lines · Lan Tianyu
Quoted 12 lines · Rolf Eike Beer
Am Montag, 28. April 2014, 22:27:39 schrieb Lan Tianyu:
Quoted 10 lines
ACPI 5.0 spec(5.5.2.4.5) defines
GenericSerialBus(i2c, spi, uart)operation
region. It allows ACPI aml code able to access such kind of devices to implement some ACPI standard method.On the Asus T100TA, Bios use GenericSerialBus operation region to access
i2c device to get battery info. So battery function depends on the I2C operation region support. Here is the bug link.
https://bugzilla.kernel.org/show_bug.cgi?id=69011Quoted 3 lines
Quoted 3 lines
Hi all,
I have tested this series and got some errors, but no additional
functionality:
Quoted 4 lines
Hi Rolf:
Thanks for test. Could you attach the output of dmesg and acpidump?Which machine you are testing on?
Hi,
this is an Aava Inari 8 tablet (pre-release hardware). Please find the DSDT
and the dmesg.log attached.
Quoted 7 lines
Quoted 3 lines
In case of any further questions don't hesitate to ask, I'll try to be more
responsible.Hi Eike:
Could you apply the patch in the attachment and attach the output of dmesg?
Sure, here it is.
Regards,
Eike
Signature · 7 lines
Rolf Eike Beer, emlix GmbH, http://www.emlix.com Fon +49 551 30664-0, Fax +49 551 30664-11 Bertha-von-Suttner-Str. 9, 37085 Göttingen, Germany Sitz der Gesellschaft: Göttingen, Amtsgericht Göttingen HR B 3160 Geschäftsführung: Dr. Uwe Kracke, Ust-IdNr.: DE 205 198 055 emlix - smart embedded open source
[ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Initializing cgroup subsys cpuacct [ 0.000000] Linux version 3.15.0-rc5-Inari (root@devpool02) (gcc version 4.8.2 (Emlix Linux Inari) ) #1 SMP Fri May 16 08:25:11 UTC 2014 [ 0.000000] e820: BIOS-provided physical RAM map: [ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000008efff] usable [ 0.000000] BIOS-e820: [mem 0x000000000008f000-0x000000000008ffff] ACPI NVS [ 0.000000] BIOS-e820: [mem 0x0000000000090000-0x000000000009dfff] usable [ 0.000000] BIOS-e820: [mem 0x000000000009e000-0x000000000009ffff] reserved [ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x000000001fffffff] usable [ 0.000000] BIOS-e820: [mem 0x0000000020000000-0x00000000200fffff] reserved [ 0.000000] BIOS-e820: [mem 0x0000000020100000-0x0000000078345fff] usable [ 0.000000] BIOS-e820: [mem 0x0000000078346000-0x0000000078c45fff] reserved [ 0.000000] BIOS-e820: [mem 0x0000000078c46000-0x0000000078d45fff] ACPI NVS [ 0.000000] BIOS-e820: [mem 0x0000000078d46000-0x0000000078d85fff] ACPI data [ 0.000000] BIOS-e820: [mem 0x0000000078d86000-0x00000000794c7fff] usable [ 0.000000] BIOS-e820: [mem 0x00000000794c8000-0x0000000079dc7fff] ACPI NVS [ 0.000000] BIOS-e820: [mem 0x0000000079dc8000-0x0000000079ffffff] usable [ 0.000000] BIOS-e820: [mem 0x00000000e00f8000-0x00000000e00f8fff] reserved [ 0.000000] BIOS-e820: [mem 0x00000000fed01000-0x00000000fed01fff] reserved [ 0.000000] BIOS-e820: [mem 0x00000000ffd00000-0x00000000ffffffff] reserved [ 0.000000] Notice: NX (Execute Disable) protection cannot be enabled: non-PAE kernel! [ 0.000000] efi: EFI v2.31 by INSYDE Corp. [ 0.000000] efi: ACPI 2.0=0x78d85014 SMBIOS=0x78c45000 [ 0.000000] efi: mem00: type=7, attr=0xf, range=[0x0000000000000000-0x0000000000001000) (0MB) [ 0.000000] efi: mem01: type=2, attr=0xf, range=[0x0000000000001000-0x0000000000007000) (0MB) [ 0.000000] efi: mem02: type=7, attr=0xf, range=[0x0000000000007000-0x000000000008f000) (0MB) [ 0.000000] efi: mem03: type=10, attr=0xf, range=[0x000000000008f000-0x0000000000090000) (0MB) [ 0.000000] efi: mem04: type=7, attr=0xf, range=[0x0000000000090000-0x000000000009e000) (0MB) [ 0.000000] efi: mem05: type=0, attr=0xf, range=[0x000000000009e000-0x00000000000a0000) (0MB) [ 0.000000] efi: mem06: type=7, attr=0xf, range=[0x0000000000100000-0x0000000001000000) (15MB) [ 0.000000] efi: mem07: type=2, attr=0xf, range=[0x0000000001000000-0x000000000257f000) (21MB) [ 0.000000] efi: mem08: type=7, attr=0xf, range=[0x000000000257f000-0x0000000020000000) (474MB) [ 0.000000] efi: mem09: type=0, attr=0xf, range=[0x0000000020000000-0x0000000020100000) (1MB) [ 0.000000] efi: mem10: type=7, attr=0xf, range=[0x0000000020100000-0x0000000071dc0000) (1308MB) [ 0.000000] efi: mem11: type=4, attr=0xf, range=[0x0000000071dc0000-0x0000000071de0000) (0MB) [ 0.000000] efi: mem12: type=7, attr=0xf, range=[0x0000000071de0000-0x0000000072bca000) (13MB) [ 0.000000] efi: mem13: type=2, attr=0xf, range=[0x0000000072bca000-0x0000000072bcc000) (0MB) [ 0.000000] efi: mem14: type=1, attr=0xf, range=[0x0000000072bcc000-0x0000000073b46000) (15MB) [ 0.000000] efi: mem15: type=7, attr=0xf, range=[0x0000000073b46000-0x0000000076a92000) (47MB) [ 0.000000] efi: mem16: type=4, attr=0xf, range=[0x0000000076a92000-0x00000000774ec000) (10MB) [ 0.000000] efi: mem17: type=7, attr=0xf, range=[0x00000000774ec000-0x00000000774f9000) (0MB) [ 0.000000] efi: mem18: type=4, attr=0xf, range=[0x00000000774f9000-0x0000000077d46000) (8MB) [ 0.000000] efi: mem19: type=7, attr=0xf, range=[0x0000000077d46000-0x0000000078161000) (4MB) [ 0.000000] efi: mem20: type=3, attr=0xf, range=[0x0000000078161000-0x0000000078346000) (1MB) [ 0.000000] efi: mem21: type=5, attr=0x800000000000000f, range=[0x0000000078346000-0x0000000078546000) (2MB) [ 0.000000] efi: mem22: type=6, attr=0x800000000000000f, range=[0x0000000078546000-0x0000000078846000) (3MB) [ 0.000000] efi: mem23: type=0, attr=0xf, range=[0x0000000078846000-0x0000000078c46000) (4MB) [ 0.000000] efi: mem24: type=10, attr=0xf, range=[0x0000000078c46000-0x0000000078d46000) (1MB) [ 0.000000] efi: mem25: type=9, attr=0xf, range=[0x0000000078d46000-0x0000000078d86000) (0MB) [ 0.000000] efi: mem26: type=4, attr=0xf, range=[0x0000000078d86000-0x00000000794c8000) (7MB) [ 0.000000] efi: mem27: type=10, attr=0xf, range=[0x00000000794c8000-0x0000000079dc8000) (9MB) [ 0.000000] efi: mem28: type=4, attr=0xf, range=[0x0000000079dc8000-0x000000007a000000) (2MB) [ 0.000000] efi: mem29: type=11, attr=0x8000000000000001, range=[0x00000000e00f8000-0x00000000e00f9000) (0MB) [ 0.000000] efi: mem30: type=11, attr=0x8000000000000000, range=[0x00000000fed01000-0x00000000fed02000) (0MB) [ 0.000000] efi: mem31: type=11, attr=0x8000000000000000, range=[0x00000000ffd00000-0x0000000100000000) (3MB) [ 0.000000] SMBIOS 2.7 present. [ 0.000000] DMI: Aava Mobile Oy Inari 8 2GB/Type2 - Board Product Name, BIOS BYT.5.03.47.0033-022 01/16/2014 [ 0.000000] e820: update [mem 0x00000000-0x00000fff] usable ==> reserved [ 0.000000] e820: remove [mem 0x000a0000-0x000fffff] usable [ 0.000000] e820: last_pfn = 0x7a000 max_arch_pfn = 0x100000 [ 0.000000] MTRR default type: uncachable [ 0.000000] MTRR fixed ranges enabled: [ 0.000000] 00000-9FFFF write-back [ 0.000000] A0000-FFFFF write-protect [ 0.000000] MTRR variable ranges enabled: [ 0.000000] 0 base 0FFD00000 mask FFFC00000 write-protect [ 0.000000] 1 base 000000000 mask FC0000000 write-back [ 0.000000] 2 base 040000000 mask FE0000000 write-back [ 0.000000] 3 base 060000000 mask FF0000000 write-back [ 0.000000] 4 base 070000000 mask FF8000000 write-back [ 0.000000] 5 base 078000000 mask FFC000000 write-back [ 0.000000] 6 base 07B000000 mask FFF000000 uncachable [ 0.000000] 7 base 07AE00000 mask FFFE00000 uncachable [ 0.000000] x86 PAT enabled: cpu 0, old 0x7040600070406, new 0x7010600070106 [ 0.000000] Scanning 1 areas for low memory corruption [ 0.000000] initial memory mapped: [mem 0x00000000-0x027fffff] [ 0.000000] Base memory trampoline at [c009a000] 9a000 size 16384 [ 0.000000] init_memory_mapping: [mem 0x00000000-0x000fffff] [ 0.000000] [mem 0x00000000-0x000fffff] page 4k [ 0.000000] init_memory_mapping: [mem 0x37000000-0x373fffff] [ 0.000000] [mem 0x37000000-0x373fffff] page 2M [ 0.000000] init_memory_mapping: [mem 0x30000000-0x36ffffff] [ 0.000000] [mem 0x30000000-0x36ffffff] page 2M [ 0.000000] init_memory_mapping: [mem 0x00100000-0x1fffffff] [ 0.000000] [mem 0x00100000-0x003fffff] page 4k [ 0.000000] [mem 0x00400000-0x1fffffff] page 2M [ 0.000000] init_memory_mapping: [mem 0x20100000-0x2fffffff] [ 0.000000] [mem 0x20100000-0x203fffff] page 4k [ 0.000000] [mem 0x20400000-0x2fffffff] page 2M [ 0.000000] BRK [0x02464000, 0x02464fff] PGTABLE [ 0.000000] init_memory_mapping: [mem 0x37400000-0x377fdfff] [ 0.000000] [mem 0x37400000-0x377fdfff] page 4k [ 0.000000] BRK [0x02465000, 0x02465fff] PGTABLE [ 0.000000] ACPI: RSDP 0x78D85014 000024 (v02 INSYDE) [ 0.000000] ACPI: XSDT 0x78D61188 0000D4 (v01 INSYDE INSYDE 00000003 01000013) [ 0.000000] ACPI: FACP 0x78D7F000 00010C (v05 INSYDE INSYDE 00000003 ACPI 00040000) [ 0.000000] ACPI: DSDT 0x78D6E000 00BAEC (v02 INSYDE INSYDE 00000003 ACPI 00040000) [ 0.000000] ACPI: UEFI 0x78D84000 000236 (v01 INSYDE INSYDE 00000001 ACPI 00040000) [ 0.000000] ACPI: TCPA 0x78D83000 000032 (v02 INSYDE INSYDE 00000000 ACPI 00040000) [ 0.000000] ACPI: UEFI 0x78D81000 000042 (v01 INSYDE INSYDE 00000000 ACPI 00040000) [ 0.000000] ACPI: DBG2 0x78D80000 000072 (v00 INSYDE INSYDE 00000003 ACPI 00040000) [ 0.000000] ACPI: HPET 0x78D7E000 000038 (v01 INSYDE INSYDE 00000003 ACPI 00040000) [ 0.000000] ACPI: LPIT 0x78D7D000 000104 (v01 INSYDE INSYDE 00000003 ACPI 00040000) [ 0.000000] ACPI: APIC 0x78D7C000 00006C (v03 INSYDE INSYDE 00000003 ACPI 00040000) [ 0.000000] ACPI: MCFG 0x78D7B000 00003C (v01 INSYDE INSYDE 00000003 ACPI 00040000) [ 0.000000] ACPI: SLIC 0x78D7A000 000176 (v01 INSYDE INSYDE 00000003 ACPI 00040000) [ 0.000000] ACPI: SSDT 0x78D6D000 0005FB (v01 INSYDE CpuDptf 00000003 ACPI 00040000) [ 0.000000] ACPI: SSDT 0x78D6B000 0018C2 (v01 INSYDE DptfTab 00000003 ACPI 00040000) [ 0.000000] ACPI: SSDT 0x78D6A000 000058 (v01 INSYDE LowPwrM 00000003 ACPI 00040000) [ 0.000000] ACPI: SSDT 0x78D69000 0000FF (v01 INSYDE SoCDptf 00000003 ACPI 00040000) [ 0.000000] ACPI: SSDT 0x78D68000 00043A (v01 INSYDE Tpm2Tabl 00001000 ACPI 00040000) [ 0.000000] ACPI: TPM2 0x78D67000 000034 (v03 INSYDE INSYDE 00000000 ACPI 00040000) [ 0.000000] ACPI: SSDT 0x78D66000 000763 (v01 INSYDE CpuPm 00003000 ACPI 00040000) [ 0.000000] ACPI: SSDT 0x78D65000 000290 (v01 INSYDE Cpu0Tst 00003000 ACPI 00040000) [ 0.000000] ACPI: SSDT 0x78D64000 00017A (v01 INSYDE ApTst 00003000 ACPI 00040000) [ 0.000000] ACPI: FPDT 0x78D63000 000044 (v01 INSYDE INSYDE 00000001 ACPI 00040000) [ 0.000000] ACPI: CSRT 0x78D62000 00014C (v00 INSYDE INSYDE 00000005 ACPI 00040000) [ 0.000000] ACPI: BGRT 0x78D60000 000038 (v01 INSYDE INSYDE 00000001 ACPI 00040000) [ 0.000000] ACPI: Local APIC address 0xfee00000 [ 0.000000] 1064MB HIGHMEM available. [ 0.000000] 887MB LOWMEM available. [ 0.000000] mapped low ram: 0 - 377fe000 [ 0.000000] low ram: 0 - 377fe000 [ 0.000000] BRK [0x02466000, 0x02466fff] PGTABLE [ 0.000000] Zone ranges: [ 0.000000] DMA [mem 0x00001000-0x00ffffff] [ 0.000000] Normal [mem 0x01000000-0x377fdfff] [ 0.000000] HighMem [mem 0x377fe000-0x79ffffff] [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x00001000-0x0008efff] [ 0.000000] node 0: [mem 0x00090000-0x0009dfff] [ 0.000000] node 0: [mem 0x00100000-0x1fffffff] [ 0.000000] node 0: [mem 0x20100000-0x78345fff] [ 0.000000] node 0: [mem 0x78d86000-0x794c7fff] [ 0.000000] node 0: [mem 0x79dc8000-0x79ffffff] [ 0.000000] On node 0 totalpages: 494428 [ 0.000000] free_area_init_node: node 0, pgdat c17401c0, node_mem_map f68be020 [ 0.000000] DMA zone: 32 pages used for memmap [ 0.000000] DMA zone: 0 pages reserved [ 0.000000] DMA zone: 3996 pages, LIFO batch:0 [ 0.000000] Normal zone: 1744 pages used for memmap [ 0.000000] Normal zone: 222974 pages, LIFO batch:31 [ 0.000000] HighMem zone: 2129 pages used for memmap [ 0.000000] HighMem zone: 267458 pages, LIFO batch:31 [ 0.000000] Using APIC driver default [ 0.000000] x86/hpet: Will disable the HPET for this platform because it's not reliable [ 0.000000] Reserving Intel graphics stolen memory at 0x7af00000-0x7eefffff [ 0.000000] ACPI: Local APIC address 0xfee00000 [ 0.000000] ACPI: LAPIC (acpi_id[0x01] lapic_id[0x00] enabled) [ 0.000000] ACPI: LAPIC (acpi_id[0x02] lapic_id[0x02] enabled) [ 0.000000] ACPI: LAPIC (acpi_id[0x03] lapic_id[0x04] enabled) [ 0.000000] ACPI: LAPIC (acpi_id[0x04] lapic_id[0x06] enabled) [ 0.000000] ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0]) [ 0.000000] IOAPIC[0]: apic_id 2, version 32, address 0xfec00000, GSI 0-86 [ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl) [ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level) [ 0.000000] ACPI: IRQ0 used by override. [ 0.000000] ACPI: IRQ2 used by override. [ 0.000000] ACPI: IRQ9 used by override. [ 0.000000] Using ACPI (MADT) for SMP configuration information [ 0.000000] ACPI: HPET id: 0x8086a201 base: 0xfed00000 [ 0.000000] smpboot: Allowing 4 CPUs, 0 hotplug CPUs [ 0.000000] nr_irqs_gsi: 103 [ 0.000000] PM: Registered nosave memory: [mem 0x0008f000-0x0008ffff] [ 0.000000] PM: Registered nosave memory: [mem 0x0009e000-0x0009ffff] [ 0.000000] PM: Registered nosave memory: [mem 0x000a0000-0x000fffff] [ 0.000000] PM: Registered nosave memory: [mem 0x20000000-0x200fffff] [ 0.000000] e820: [mem 0x7ef00000-0xe00f7fff] available for PCI devices [ 0.000000] setup_percpu: NR_CPUS:4 nr_cpumask_bits:4 nr_cpu_ids:4 nr_node_ids:1 [ 0.000000] PERCPU: Embedded 12 pages/cpu @f6882000 s27264 r0 d21888 u49152 [ 0.000000] pcpu-alloc: s27264 r0 d21888 u49152 alloc=12*4096 [ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 492652 [ 0.000000] Kernel command line: root=/dev/sda2 video=HDMI-A-1:1200x1920e drm_kms_helper.edid_firmware=HDMI-A-1:edid/1200x1920.bin [ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes) [ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes) [ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes) [ 0.000000] Initializing CPU#0 [ 0.000000] Initializing HighMem for node 0 (000377fe:0007a000) [ 0.000000] Initializing Movable for node 0 (00000000:00000000) [ 0.000000] Memory: 1909220K/1977712K available (5505K kernel code, 331K rwdata, 1640K rodata, 12092K init, 1236K bss, 68492K reserved, 1038956K highmem) [ 0.000000] virtual kernel memory layout: [ 0.000000] fixmap : 0xfff66000 - 0xfffff000 ( 612 kB) [ 0.000000] pkmap : 0xff800000 - 0xffc00000 (4096 kB) [ 0.000000] vmalloc : 0xf7ffe000 - 0xff7fe000 ( 120 MB) [ 0.000000] lowmem : 0xc0000000 - 0xf77fe000 ( 887 MB) [ 0.000000] .init : 0xc1750000 - 0xc231f000 (12092 kB) [ 0.000000] .data : 0xc1560b12 - 0xc174efc0 (1977 kB) [ 0.000000] .text : 0xc1000000 - 0xc1560b12 (5506 kB) [ 0.000000] Checking if this processor honours the WP bit even in supervisor mode...Ok. [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1 [ 0.000000] Hierarchical RCU implementation. [ 0.000000] NR_IRQS:2304 nr_irqs:1024 16 [ 0.000000] CPU 0 irqstacks, hard=f600c000 soft=f600e000 [ 0.000000] Console: colour dummy device 80x25 [ 0.000000] console [tty0] enabled [ 0.000000] Maximum core-clock to bus-clock ratio: 0xa [ 0.000000] Resolved frequency ID: 2, frequency: 133200 KHz [ 0.000000] TSC runs at 1332000 KHz [ 0.000000] lapic_timer_frequency = 133200 [ 0.000000] tsc: Detected 1332.000 MHz processor [ 0.000037] Calibrating delay loop (skipped), value calculated using timer frequency.. 2664.00 BogoMIPS (lpj=1332000) [ 0.000054] pid_max: default: 32768 minimum: 301 [ 0.000071] ACPI: Core revision 20140214 [ 0.044032] ACPI: All ACPI Tables successfully acquired [ 0.046878] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.046898] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.047248] Initializing cgroup subsys freezer [ 0.047290] CPU: Physical Processor ID: 0 [ 0.047300] CPU: Processor Core ID: 0 [ 0.047311] ENERGY_PERF_BIAS: Set to 'normal', was 'performance' [ 0.047311] ENERGY_PERF_BIAS: View and update with x86_energy_perf_policy(8) [ 0.059441] mce: CPU supports 6 MCE banks [ 0.059460] CPU0: Thermal monitoring enabled (TM1) [ 0.059480] Last level iTLB entries: 4KB 48, 2MB 0, 4MB 0 [ 0.059480] Last level dTLB entries: 4KB 128, 2MB 16, 4MB 16, 1GB 0 [ 0.059480] tlb_flushall_shift: 6 [ 0.059673] Freeing SMP alternatives memory: 20K (c231f000 - c2324000) [ 0.059708] ------------[ cut here ]------------ [ 0.059727] WARNING: CPU: 0 PID: 0 at /tmp/e2/build/linux-git/mm/early_ioremap.c:136 __early_ioremap+0xee/0x1a6() [ 0.059739] Modules linked in: [ 0.059752] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 3.15.0-rc5-Inari #1 [ 0.059762] Hardware name: Aava Mobile Oy Inari 8 2GB/Type2 - Board Product Name, BIOS BYT.5.03.47.0033-022 01/16/2014 [ 0.059775] 00000000 00000000 c16fdf0c c155483e 00000000 c16fdf3c c103d194 c164be20 [ 0.059797] 00000000 00000000 c16539b8 00000088 c176cc03 c176cc03 00000042 77526000 [ 0.059819] 00000000 c16fdf4c c103d22d 00000009 00000000 c16fdfa0 c176cc03 c1740ec0 [ 0.059840] Call Trace: [ 0.059854] [<c155483e>] dump_stack+0x41/0x52 [ 0.059867] [<c103d194>] warn_slowpath_common+0x74/0x90 [ 0.059880] [<c176cc03>] ? __early_ioremap+0xee/0x1a6 [ 0.059892] [<c176cc03>] ? __early_ioremap+0xee/0x1a6 [ 0.059903] [<c103d22d>] warn_slowpath_null+0x1d/0x20 [ 0.059915] [<c176cc03>] __early_ioremap+0xee/0x1a6 [ 0.059928] [<c10368df>] ? __native_set_fixmap+0x1f/0x30 [ 0.059941] [<c176ce70>] early_memremap+0xd/0xf [ 0.059953] [<c1763743>] efi_bgrt_init+0xe6/0x129 [ 0.059965] [<c1763067>] efi_late_init+0x8/0xa [ 0.059978] [<c1750a3b>] start_kernel+0x34f/0x35f [ 0.059990] [<c1750523>] ? repair_env_string+0x51/0x51 [ 0.060003] [<c1750369>] i386_start_kernel+0x137/0x13a [ 0.060040] ---[ end trace 27ffb688a5381019 ]--- [ 0.062989] Enabling APIC mode: Flat. Using 1 I/O APICs [ 0.064018] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1 [ 0.074045] ..MP-BIOS bug: 8254 timer not connected to IO-APIC [ 0.074054] ...trying to set up timer (IRQ0) through the 8259A ... [ 0.074063] ..... (found apic 0 pin 2) ... [ 0.084079] ....... works. [ 0.084087] smpboot: CPU0: Intel(R) Atom(TM) CPU Z3745 @ 1.33GHz (fam: 06, model: 37, stepping: 08) [ 0.084126] TSC deadline timer enabled [ 0.084141] Performance Events: PEBS fmt2+, 8-deep LBR, Silvermont events, full-width counters, Intel PMU driver. [ 0.084168] ... version: 3 [ 0.084176] ... bit width: 40 [ 0.084183] ... generic registers: 2 [ 0.084191] ... value mask: 000000ffffffffff [ 0.084199] ... max period: 000000ffffffffff [ 0.084207] ... fixed-purpose events: 3 [ 0.084214] ... event mask: 0000000700000003 [ 0.085792] CPU 1 irqstacks, hard=f60a6000 soft=f60b0000 [ 0.085798] x86: Booting SMP configuration: [ 0.085809] .... node #0, CPUs: #1 [ 0.095924] Initializing CPU#1 [ 0.111134] CPU 2 irqstacks, hard=f60ba000 soft=f60bc000 [ 0.111153] #2 [ 0.121206] Initializing CPU#2 [ 0.136519] CPU 3 irqstacks, hard=f60c6000 soft=f60c8000 [ 0.136533] #3 [ 0.146587] Initializing CPU#3 [ 0.161772] x86: Booted up 1 node, 4 CPUs [ 0.161791] smpboot: Total of 4 processors activated (10656.00 BogoMIPS) [ 0.162741] devtmpfs: initialized [ 0.163227] PM: Registering ACPI NVS region [mem 0x0008f000-0x0008ffff] (4096 bytes) [ 0.163242] PM: Registering ACPI NVS region [mem 0x78c46000-0x78d45fff] (1048576 bytes) [ 0.163294] PM: Registering ACPI NVS region [mem 0x794c8000-0x79dc7fff] (9437184 bytes) [ 0.163841] pinctrl core: initialized pinctrl subsystem [ 0.163902] RTC time: 0:40:53, date: 05/16/14 [ 0.163989] NET: Registered protocol family 16 [ 0.164313] cpuidle: using governor ladder [ 0.164324] cpuidle: using governor menu [ 0.164398] ACPI: bus type PCI registered [ 0.164551] PCI: MMCONFIG for domain 0000 [bus 00-3f] at [mem 0xe0000000-0xe3ffffff] (base 0xe0000000) [ 0.164568] PCI: not using MMCONFIG [ 0.164920] PCI: Using configuration type 1 for base access [ 0.170069] ACPI: Added _OSI(Module Device) [ 0.170084] ACPI: Added _OSI(Processor Device) [ 0.170094] ACPI: Added _OSI(3.0 _SCP Extensions) [ 0.170103] ACPI: Added _OSI(Processor Aggregator Device) [ 0.204674] ACPI: SSDT 0x78BCAA90 000353 (v01 PmRef Cpu0Ist 00003000 INTL 20130117) [ 0.206249] ACPI: Dynamic OEM Table Load: [ 0.206264] ACPI: SSDT 0x00000000 000353 (v01 PmRef Cpu0Ist 00003000 INTL 20130117) [ 0.206799] ACPI: SSDT 0x78BC9910 000433 (v01 PmRef Cpu0Cst 00003001 INTL 20130117) [ 0.208647] ACPI: Dynamic OEM Table Load: [ 0.208661] ACPI: SSDT 0x00000000 000433 (v01 PmRef Cpu0Cst 00003001 INTL 20130117) [ 0.215236] ACPI: SSDT 0x78BCBD90 00015F (v01 PmRef ApIst 00003000 INTL 20130117) [ 0.216837] ACPI: Dynamic OEM Table Load: [ 0.216851] ACPI: SSDT 0x00000000 00015F (v01 PmRef ApIst 00003000 INTL 20130117) [ 0.219400] ACPI: SSDT 0x78BCBF10 00008D (v01 PmRef ApCst 00003000 INTL 20130117) [ 0.220819] ACPI: Dynamic OEM Table Load: [ 0.220832] ACPI: SSDT 0x00000000 00008D (v01 PmRef ApCst 00003000 INTL 20130117) [ 0.226624] ACPI: Interpreter enabled [ 0.226659] ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S1_] (20140214/hwxface-580) [ 0.226683] ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S2_] (20140214/hwxface-580) [ 0.226705] ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S3_] (20140214/hwxface-580) [ 0.226726] ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S4_] (20140214/hwxface-580) [ 0.226746] ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S5_] (20140214/hwxface-580) [ 0.226764] ACPI: (supports S0) [ 0.226773] ACPI: Using IOAPIC for interrupt routing [ 0.226862] PCI: MMCONFIG for domain 0000 [bus 00-3f] at [mem 0xe0000000-0xe3ffffff] (base 0xe0000000) [ 0.234470] [Firmware Info]: PCI: MMCONFIG at [mem 0xe0000000-0xe3ffffff] not reserved in ACPI motherboard resources [ 0.234487] PCI: not using MMCONFIG [ 0.234540] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug [ 0.237741] ACPI: Power Resource [USBC] (on) [ 0.241990] ACPI: Power Resource [WWPR] (off) [ 0.252641] ACPI: Power Resource [PLPE] (on) [ 0.264429] ACPI: Power Resource [CLK0] (on) [ 0.264566] ACPI: Power Resource [CLK1] (on) [ 0.264924] ACPI: Power Resource [P28X] (off) [ 0.265067] ACPI: Power Resource [P18X] (off) [ 0.267582] ACPI: Power Resource [TCPR] (off) [ 0.274577] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff]) [ 0.274601] acpi PNP0A08:00: _OSC: OS supports [ASPM ClockPM Segments MSI] [ 0.274806] \_SB_.PCI0:_OSC invalid UUID [ 0.274811] _OSC request data:1 1e 0 [ 0.274824] acpi PNP0A08:00: _OSC failed (AE_ERROR); disabling ASPM [ 0.276129] acpi PNP0A08:00: fail to add MMCONFIG information, can't access extended PCI configuration space under this bridge. [ 0.276204] PCI host bridge to bus 0000:00 [ 0.276218] pci_bus 0000:00: root bus resource [bus 00-ff] [ 0.276231] pci_bus 0000:00: root bus resource [io 0x0000-0x006f] [ 0.276242] pci_bus 0000:00: root bus resource [io 0x0078-0x0cf7] [ 0.276254] pci_bus 0000:00: root bus resource [io 0x0d00-0xffff] [ 0.276266] pci_bus 0000:00: root bus resource [mem 0x000a0000-0x000bffff] [ 0.276277] pci_bus 0000:00: root bus resource [mem 0x000c0000-0x000dffff] [ 0.276289] pci_bus 0000:00: root bus resource [mem 0x000e0000-0x000fffff] [ 0.276301] pci_bus 0000:00: root bus resource [mem 0x90c00000-0x90ffffff] [ 0.276313] pci_bus 0000:00: root bus resource [mem 0x7af00001-0x7ef00000] [ 0.276325] pci_bus 0000:00: root bus resource [mem 0x80000000-0x908ffffe] [ 0.276337] pci_bus 0000:00: root bus resource [mem 0xfed40000-0xfed40fff] [ 0.276361] pci 0000:00:00.0: [8086:0f00] type 00 class 0x060000 [ 0.276562] pci 0000:00:02.0: [8086:0f31] type 00 class 0x030000 [ 0.276588] pci 0000:00:02.0: reg 0x10: [mem 0x90000000-0x903fffff] [ 0.276607] pci 0000:00:02.0: reg 0x18: [mem 0x80000000-0x8fffffff pref] [ 0.276625] pci 0000:00:02.0: reg 0x20: [io 0x1000-0x1007] [ 0.276833] pci 0000:00:14.0: [8086:0f35] type 00 class 0x0c0330 [ 0.276864] pci 0000:00:14.0: reg 0x10: [mem 0x90800000-0x9080ffff 64bit] [ 0.276943] pci 0000:00:14.0: PME# supported from D3hot D3cold [ 0.277123] pci 0000:00:1a.0: [8086:0f18] type 00 class 0x108000 [ 0.277154] pci 0000:00:1a.0: reg 0x10: [mem 0x90700000-0x907fffff] [ 0.277171] pci 0000:00:1a.0: reg 0x14: [mem 0x90600000-0x906fffff] [ 0.277272] pci 0000:00:1a.0: PME# supported from D0 D3hot [ 0.277437] pci 0000:00:1f.0: [8086:0f1c] type 00 class 0x060100 [ 0.277671] pci_bus 0000:00: on NUMA node 0 [ 0.278783] ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 10 11 12 14 15) *0, disabled. [ 0.279101] ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 10 11 12 14 15) *0, disabled. [ 0.279417] ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 6 10 11 12 14 15) *0, disabled. [ 0.279746] ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 10 11 12 14 15) *0, disabled. [ 0.280062] ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 6 10 11 12 14 15) *0, disabled. [ 0.280378] ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 6 10 11 12 14 15) *0, disabled. [ 0.280706] ACPI: PCI Interrupt Link [LNKG] (IRQs 3 4 5 6 10 11 12 14 15) *0, disabled. [ 0.281031] ACPI: PCI Interrupt Link [LNKH] (IRQs 3 4 5 6 10 11 12 14 15) *0, disabled. [ 0.293311] dw_dmac INTL9C60:00: DesignWare DMA Controller, 8 channels [ 0.294019] dw_dmac INTL9C60:01: DesignWare DMA Controller, 8 channels [ 0.294793] vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none [ 0.294809] vgaarb: loaded [ 0.294817] vgaarb: bridge control possible 0000:00:02.0 [ 0.295019] SCSI subsystem initialized [ 0.295037] ACPI: bus type USB registered [ 0.295110] usbcore: registered new interface driver usbfs [ 0.295156] usbcore: registered new interface driver hub [ 0.295258] usbcore: registered new device driver usb [ 0.302206] pps_core: LinuxPPS API ver. 1 registered [ 0.302219] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <[email protected]> [ 0.302246] PTP clock support registered [ 0.302485] Advanced Linux Sound Architecture Driver Initialized. [ 0.302497] PCI: Using ACPI for IRQ routing [ 0.302507] PCI: pci_cache_line_size set to 64 bytes [ 0.302532] Expanded resource reserved due to conflict with PCI Bus 0000:00 [ 0.302544] e820: reserve RAM buffer [mem 0x0008f000-0x0008ffff] [ 0.302549] e820: reserve RAM buffer [mem 0x0009e000-0x0009ffff] [ 0.302554] e820: reserve RAM buffer [mem 0x78346000-0x7bffffff] [ 0.302559] e820: reserve RAM buffer [mem 0x794c8000-0x7bffffff] [ 0.302564] e820: reserve RAM buffer [mem 0x7a000000-0x7bffffff] [ 0.303000] cfg80211: Calling CRDA to update world regulatory domain [ 0.303235] Switched to clocksource refined-jiffies [ 0.303367] pnp: PnP ACPI init [ 0.303389] ACPI: bus type PNP registered [ 0.303499] pnp 00:00: Plug and Play ACPI device, IDs PNP0b00 (active) [ 0.303670] pnp 00:01: Plug and Play ACPI device, IDs PNP0103 (active) [ 0.303776] pnp 00:02: Plug and Play ACPI device, IDs INT0800 (active) [ 0.303895] system 00:03: [io 0x0680-0x069f] has been reserved [ 0.303911] system 00:03: [io 0x0400-0x047f] has been reserved [ 0.303923] system 00:03: [io 0x0500-0x05fe] has been reserved [ 0.303935] system 00:03: [io 0x0600-0x061f] has been reserved [ 0.303947] system 00:03: [io 0x164e-0x164f] has been reserved [ 0.303961] system 00:03: Plug and Play ACPI device, IDs PNP0c02 (active) [ 0.304307] pnp 00:04: Plug and Play ACPI device, IDs PNP0501 (active) [ 0.305812] pnp 00:05: Plug and Play ACPI device, IDs INT0002 (active) [ 0.305988] pnp 00:06: Plug and Play ACPI device, IDs INT33fc (active) [ 0.306155] pnp 00:07: Plug and Play ACPI device, IDs INT33fc (active) [ 0.306328] pnp 00:08: Plug and Play ACPI device, IDs INT33fc (active) [ 0.307495] pnp 00:09: unknown resource type 19 in _CRS [ 0.307509] pnp 00:09: can't evaluate _CRS: 1 [ 0.307579] pnp 00:09: Plug and Play ACPI device, IDs BCM2e3a (active) [ 0.314223] pnp 00:0a: unknown resource type 17 in _CRS [ 0.314237] pnp 00:0a: can't evaluate _CRS: 1 [ 0.314321] pnp 00:0a: Plug and Play ACPI device, IDs INTcfd9 PNP0c40 (active) [ 0.314481] pnp 00:0b: Plug and Play ACPI device, IDs INT33bd (active) [ 0.314809] pnp 00:0c: Plug and Play ACPI device, IDs INT3401 (active) [ 0.315136] pnp 00:0d: unknown resource type 17 in _CRS [ 0.315150] pnp 00:0d: can't evaluate _CRS: 1 [ 0.315224] pnp 00:0d: Plug and Play ACPI device, IDs INT3403 (active) [ 0.315362] pnp 00:0e: unknown resource type 17 in _CRS [ 0.315375] pnp 00:0e: can't evaluate _CRS: 1 [ 0.315448] pnp 00:0e: Plug and Play ACPI device, IDs INT3403 (active) [ 0.315643] pnp 00:0f: unknown resource type 17 in _CRS [ 0.315656] pnp 00:0f: can't evaluate _CRS: 1 [ 0.315730] pnp 00:0f: Plug and Play ACPI device, IDs INT3409 (active) [ 0.316029] pnp: PnP ACPI: found 16 devices [ 0.316040] ACPI: bus type PNP unregistered [ 0.321422] pci_bus 0000:00: resource 4 [io 0x0000-0x006f] [ 0.321433] pci_bus 0000:00: resource 5 [io 0x0078-0x0cf7] [ 0.321440] pci_bus 0000:00: resource 6 [io 0x0d00-0xffff] [ 0.321446] pci_bus 0000:00: resource 7 [mem 0x000a0000-0x000bffff] [ 0.321453] pci_bus 0000:00: resource 8 [mem 0x000c0000-0x000dffff] [ 0.321459] pci_bus 0000:00: resource 9 [mem 0x000e0000-0x000fffff] [ 0.321466] pci_bus 0000:00: resource 10 [mem 0x90c00000-0x90ffffff] [ 0.321472] pci_bus 0000:00: resource 11 [mem 0x7af00001-0x7ef00000] [ 0.321479] pci_bus 0000:00: resource 12 [mem 0x80000000-0x908ffffe] [ 0.321485] pci_bus 0000:00: resource 13 [mem 0xfed40000-0xfed40fff] [ 0.321549] NET: Registered protocol family 2 [ 0.321890] TCP established hash table entries: 8192 (order: 3, 32768 bytes) [ 0.321938] TCP bind hash table entries: 8192 (order: 4, 65536 bytes) [ 0.322013] TCP: Hash tables configured (established 8192 bind 8192) [ 0.322056] TCP: reno registered [ 0.322068] UDP hash table entries: 512 (order: 2, 16384 bytes) [ 0.322090] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes) [ 0.322183] NET: Registered protocol family 1 [ 0.322218] pci 0000:00:02.0: Boot video device [ 0.322632] PCI: CLS 0 bytes, default 64 [ 0.800023] microcode: CPU0 sig=0x30678, pf=0x2, revision=0x808 [ 0.800048] microcode: CPU1 sig=0x30678, pf=0x2, revision=0x808 [ 0.800075] microcode: CPU2 sig=0x30678, pf=0x2, revision=0x808 [ 0.800104] microcode: CPU3 sig=0x30678, pf=0x2, revision=0x808 [ 0.800208] microcode: Microcode Update Driver: v2.00 <tigran-ppwZ4lME3+KI6QP4U9MhSdBc4/[email protected]>, Peter Oruba [ 0.800940] Scanning for low memory corruption every 60 seconds [ 0.801569] futex hash table entries: 1024 (order: 4, 65536 bytes) [ 0.801616] audit: initializing netlink subsys (disabled) [ 0.801648] audit: type=2000 audit(1400200853.766:1): initialized [ 0.837558] bounce pool size: 64 pages [ 0.837578] HugeTLB registered 4 MB page size, pre-allocated 0 pages [ 0.843189] msgmni has been set to 1760 [ 0.843903] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251) [ 0.843919] io scheduler noop registered [ 0.843928] io scheduler deadline registered [ 0.844106] io scheduler cfq registered (default) [ 0.844447] intel_idle: MWAIT substates: 0x33000020 [ 0.844452] intel_idle: v0.4 model 0x37 [ 0.844457] intel_idle: lapic_timer_reliable_states 0xffffffff [ 0.852001] ACPI: AC Adapter [ADP1] (on-line) [ 0.852326] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0 [ 0.852347] ACPI: Power Button [PWRF] [ 0.852359] ACPI Warning: Could not enable fixed event - PowerButton (2) (20140214/evxface-628) [ 0.858350] button: probe of LNXPWRBN:00 failed with error -22 [ 0.864025] [Firmware Bug]: No valid trip found [ 0.864273] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled [ 0.884668] 00:04: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A [ 0.885698] 80860F0A:00: ttyS1 at MMIO 0x9091d000 (irq = 39, base_baud = 2764800) is a 16550A [ 0.885954] 80860F0A:01: ttyS2 at MMIO 0x9091f000 (irq = 40, base_baud = 2764800) is a 16550A [ 0.886308] hpet: number irqs doesn't agree with number of timers [ 0.886438] Non-volatile memory driver v1.3 [ 0.886514] [drm] Initialized drm 1.1.0 20060810 [ 0.888432] [drm] Memory usable by graphics device = 2048M [ 0.893120] ACPI: \_SB_.PCI0.GFX0: Error attaching device data 7 [ 0.893372] ACPI: \_SB_.PCI0.GFX0: Error attaching device data 7 [ 0.893636] ACPI: \_SB_.PCI0.GFX0: Error attaching device data 7 [ 0.893887] ACPI: \_SB_.PCI0.GFX0: Error attaching device data 7 [ 0.894138] ACPI: \_SB_.PCI0.GFX0: Error attaching device data 7 [ 0.896821] i915 0000:00:02.0: irq 103 for MSI/MSI-X [ 0.896839] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013). [ 0.896849] [drm] Driver supports precise vblank timestamp query. [ 0.949327] vgaarb: device changed decodes: PCI:0000:00:02.0,olddecodes=io+mem,decodes=io+mem:owns=io+mem [ 0.950125] ACPI: \_SB_.PCI0.GFX0: Error attaching device data 7 [ 0.950523] ACPI: \_SB_.PCI0.GFX0: Error attaching device data 7 [ 1.478205] [drm] forcing HDMI-A-1 connector ON [ 1.554441] [drm] GMBUS [i915 gmbus vga] timed out, falling back to bit banging on pin 2 [ 1.575805] [drm] Got external EDID base block and 0 extensions from "edid/1200x1920.bin" for connector "HDMI-A-1" [ 1.722033] [drm] GMBUS [i915 gmbus dpc] timed out, falling back to bit banging on pin 4 [ 1.818338] fbcon: inteldrmfb (fb0) is primary device [ 1.955080] Switched to clocksource tsc [ 2.331727] Console: switching to colour frame buffer device 150x120 [ 2.365253] i915 0000:00:02.0: fb0: inteldrmfb frame buffer device [ 2.365400] i915 0000:00:02.0: registered panic notifier [ 2.369617] ACPI: Video Device [GFX0] (multi-head: yes rom: no post: no) [ 2.371353] acpi device:1a: registered as cooling_device4 [ 2.372792] acpi device:21: registered as cooling_device5 [ 2.373108] input: Video Bus as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input1 [ 2.373395] [drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 0 [ 2.373911] brd: module loaded [ 2.374464] loop: module loaded [ 2.375205] xhci_hcd 0000:00:14.0: xHCI Host Controller [ 2.375451] xhci_hcd 0000:00:14.0: new USB bus registered, assigned bus number 1 [ 2.375778] xhci_hcd 0000:00:14.0: cache line size of 64 is not supported [ 2.375815] xhci_hcd 0000:00:14.0: irq 104 for MSI/MSI-X [ 2.375961] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 [ 2.376124] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 2.376295] usb usb1: Product: xHCI Host Controller [ 2.376412] usb usb1: Manufacturer: Linux 3.15.0-rc5-Inari xhci_hcd [ 2.376568] usb usb1: SerialNumber: 0000:00:14.0 [ 2.376973] hub 1-0:1.0: USB hub found [ 2.377087] hub 1-0:1.0: 6 ports detected [ 2.378757] xhci_hcd 0000:00:14.0: xHCI Host Controller [ 2.378979] xhci_hcd 0000:00:14.0: new USB bus registered, assigned bus number 2 [ 2.379241] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003 [ 2.379405] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 2.379583] usb usb2: Product: xHCI Host Controller [ 2.379702] usb usb2: Manufacturer: Linux 3.15.0-rc5-Inari xhci_hcd [ 2.379850] usb usb2: SerialNumber: 0000:00:14.0 [ 2.380239] hub 2-0:1.0: USB hub found [ 2.380351] hub 2-0:1.0: 1 port detected [ 2.380860] usbcore: registered new interface driver usb-storage [ 2.381142] i8042: PNP: No PS/2 controller found. Probing ports directly. [ 3.425347] i8042: No controller found [ 3.425565] mousedev: PS/2 mouse device common for all mice [ 3.425675] [drm] Enabling RC6 states: RC6 off, RC6p off, RC6pp off [ 3.426041] ACPI Warning: Could not enable fixed event - RealTimeClock (4) (20140214/evxface-628) [ 3.426464] rtc_cmos 00:00: rtc core: registered rtc_cmos as rtc0 [ 3.426649] rtc_cmos 00:00: alarms up to one day, 242 bytes nvram [ 3.426883] i2c /dev entries driver [ 3.428313] Intel P-state driver initializing. [ 3.428446] Intel pstate controlling: cpu 0 [ 3.428587] Intel pstate controlling: cpu 1 [ 3.428725] Intel pstate controlling: cpu 2 [ 3.428886] Intel pstate controlling: cpu 3 [ 3.429124] sdhci: Secure Digital Host Controller Interface driver [ 3.429272] sdhci: Copyright(c) Pierre Ossman [ 3.430578] mmc0: no vqmmc regulator found [ 3.430681] mmc0: no vmmc regulator found [ 3.431936] mmc0: SDHCI controller on ACPI [80860F14:00] using ADMA [ 3.433476] mmc1: no vqmmc regulator found [ 3.433579] mmc1: no vmmc regulator found [ 3.434830] mmc1: SDHCI controller on ACPI [INT33BB:00] using ADMA [ 3.435453] sdhci-acpi 80860F14:01: failed to setup card detect gpio [ 3.436623] mmc2: no vqmmc regulator found [ 3.436724] mmc2: no vmmc regulator found [ 3.437966] mmc2: SDHCI controller on ACPI [80860F14:01] using ADMA [ 3.438148] sdhci-pltfm: SDHCI platform and OF driver helper [ 3.438273] EFI Variables Facility v0.08 2004-May-17 [ 3.448100] hidraw: raw HID events driver (C) Jiri Kosina [ 3.448546] usbcore: registered new interface driver usbhid [ 3.448660] usbhid: USB HID core driver [ 3.449146] TCP: cubic registered [ 3.449218] Initializing XFRM netlink socket [ 3.449576] NET: Registered protocol family 10 [ 3.450087] sit: IPv6 over IPv4 tunneling driver [ 3.450438] NET: Registered protocol family 17 [ 3.450890] Using IPI No-Shortcut mode [ 3.451197] registered taskstats version 1 [ 3.451596] Magic number: 14:324:658 [ 3.451761] console [netcon0] enabled [ 3.451837] netconsole: network logging started [ 3.452124] PM: Hibernation image not present or could not be loaded. [ 3.452133] ALSA device list: [ 3.452195] No soundcards found. [ 3.452325] Warning: unable to open an initial console. [ 3.458742] Freeing unused kernel memory: 12092K (c1750000 - c231f000) [ 3.472576] udevd[949]: starting version 173 [ 3.545752] mmc0: BKOPS_EN bit is not set [ 3.622230] mmc0: new HS200 MMC card at address 0001 [ 3.624057] mmcblk0: mmc0:0001 HCG8e 58.2 GiB [ 3.624598] mmcblk0boot0: mmc0:0001 HCG8e partition 1 4.00 MiB [ 3.624750] mmcblk0boot1: mmc0:0001 HCG8e partition 2 4.00 MiB [ 3.625057] mmcblk0rpmb: mmc0:0001 HCG8e partition 3 4.00 MiB [ 3.625994] mmcblk0: p1 p2 [ 3.630611] mmcblk0boot1: unknown partition table [ 3.633735] mmcblk0boot0: [ 3.640096] usb 2-1: new SuperSpeed USB device number 2 using xhci_hcd [ 3.651068] usb 2-1: New USB device found, idVendor=0451, idProduct=8046 [ 3.651186] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 3.651671] hub 2-1:1.0: USB hub found [ 3.651758] hub 2-1:1.0: 4 ports detected [ 3.779948] usb 1-1: new high-speed USB device number 2 using xhci_hcd [ 3.943266] usb 1-1: New USB device found, idVendor=0451, idProduct=8044 [ 3.969159] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=1 [ 3.994984] usb 1-1: SerialNumber: 420208698DA1 [ 4.021771] hub 1-1:1.0: USB hub found [ 4.047612] hub 1-1:1.0: 4 ports detected [ 4.094961] Clocksource tsc unstable (delta = 139070527 ns) [ 4.120773] Switched to clocksource refined-jiffies [ 4.143425] usb 1-3: new high-speed USB device number 3 using xhci_hcd [ 4.235688] usb 1-3: New USB device found, idVendor=12d1, idProduct=1570 [ 4.262187] usb 1-3: New USB device strings: Mfr=5, Product=4, SerialNumber=0 [ 4.288823] usb 1-3: Product: HUAWEI Mobile Broadband Module [ 4.315372] usb 1-3: Manufacturer: Huawei Technologies Co., Ltd. [ 4.454809] usb 1-4: new high-speed USB device number 4 using xhci_hcd [ 4.615088] usb 1-4: New USB device found, idVendor=0951, idProduct=1603 [ 4.641469] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 4.667779] usb 1-4: Product: DataTraveler 2.0 [ 4.694205] usb 1-4: Manufacturer: Kingston [ 4.720492] usb 1-4: SerialNumber: 89900000000000000000017E [ 4.747830] usb-storage 1-4:1.0: USB Mass Storage device detected [ 4.774449] scsi0 : usb-storage 1-4:1.0 [ 4.833239] usb 1-1.1: new low-speed USB device number 5 using xhci_hcd [ 4.904523] usb 1-1.1: New USB device found, idVendor=046d, idProduct=c03e [ 4.930590] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 4.956550] usb 1-1.1: Product: USB-PS/2 Optical Mouse [ 4.982418] usb 1-1.1: Manufacturer: Logitech [ 5.008663] usb 1-1.1: ep 0x81 - rounding interval to 64 microframes, ep desc says 80 microframes [ 5.039453] input: Logitech USB-PS/2 Optical Mouse as /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.1/1-1.1:1.0/0003:046D:C03E.0001/input/input2 [ 5.067114] hid-generic 0003:046D:C03E.0001: input,hidraw0: USB HID v1.10 Mouse [Logitech USB-PS/2 Optical Mouse] on usb-0000:00:14.0-1.1/input0 [ 5.132430] usb 1-1.2: new high-speed USB device number 6 using xhci_hcd [ 5.203734] usb 1-1.2: New USB device found, idVendor=0424, idProduct=7500 [ 5.230739] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 5.257917] usb 1-1.2: Product: LAN7500 [ 5.284761] usb 1-1.2: Manufacturer: SMSC [ 5.311315] usb 1-1.2: SerialNumber: 00800f11700e [ 5.381679] usb 1-1.3: new low-speed USB device number 7 using xhci_hcd [ 5.462341] usb 1-1.3: New USB device found, idVendor=046d, idProduct=c312 [ 5.489081] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 5.515839] usb 1-1.3: Product: USB Multimedia Keyboard [ 5.542443] usb 1-1.3: Manufacturer: LITEON Technology [ 5.569572] usb 1-1.3: ep 0x81 - rounding interval to 128 microframes, ep desc says 192 microframes [ 5.600996] input: LITEON Technology USB Multimedia Keyboard as /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.3/1-1.3:1.0/0003:046D:C312.0002/input/input3 [ 5.656590] hid-generic 0003:046D:C312.0002: input,hidraw1: USB HID v1.10 Keyboard [LITEON Technology USB Multimedia Keyboard] on usb-0000:00:14.0-1.3/input0 [ 5.768892] scsi 0:0:0:0: Direct-Access Kingston DataTraveler 2.0 1.00 PQ: 0 ANSI: 2 [ 5.799079] sd 0:0:0:0: [sda] 7856128 512-byte logical blocks: (4.02 GB/3.74 GiB) [ 5.799096] sd 0:0:0:0: Attached scsi generic sg0 type 0 [ 5.857532] sd 0:0:0:0: [sda] Write Protect is off [ 5.886444] sd 0:0:0:0: [sda] Mode Sense: 23 00 00 00 [ 5.886816] sd 0:0:0:0: [sda] No Caching mode page found [ 5.915622] sd 0:0:0:0: [sda] Assuming drive cache: write through [ 5.947408] sda: sda1 sda2 [ 5.986433] sd 0:0:0:0: [sda] Attached SCSI removable disk [ 6.043333] EXT4-fs (sda2): couldn't mount as ext3 due to feature incompatibilities [ 6.076814] EXT4-fs (sda2): couldn't mount as ext2 due to feature incompatibilities [ 6.119661] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null) [ 6.280069] random: nonblocking pool is initialized [ 7.357011] udevd[1689]: starting version 173 [ 7.477008] sst-acpi 80860F28:00: Direct firmware load failed with error -2 [ 7.484948] sst-acpi 80860F28:00: Falling back to user helper [ 7.577743] sst-acpi 80860F28:00: Cannot load firmware intel/fw_sst_0f28.bin-i2s_master [ 7.586076] byt-rt5640 byt-rt5640: ASoC: CPU DAI Front-cpu-dai not registered [ 7.592798] smsc75xx v1.0.0 [ 7.601973] platform byt-rt5640: Driver byt-rt5640 requests probe deferral [ 7.629938] smsc75xx 1-1.2:1.0 eth0: register 'smsc75xx' at usb-0000:00:14.0-1.2, smsc75xx USB 2.0 Gigabit Ethernet, 70:2f:97:00:22:4f [ 7.660544] usbcore: registered new interface driver smsc75xx [ 7.660554] byt-rt5640 byt-rt5640: ASoC: CPU DAI Front-cpu-dai not registered [ 7.660598] platform byt-rt5640: Driver byt-rt5640 requests probe deferral [ 15.786357] mmc0: Got data interrupt 0x00000002 even though no data operation was in progress. [ 15.819492] mmcblk0rpmb: error -110 transferring data, sector 8064, nr 8, cmd response 0x900, card status 0xb00 [ 15.850882] mmcblk0rpmb: retrying using single block read [ 15.884298] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 15.917928] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 15.951471] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 15.984802] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 16.017890] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 16.050737] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 16.081372] end_request: I/O error, dev mmcblk0rpmb, sector 8064 [ 16.112006] Buffer I/O error on device mmcblk0rpmb, logical block 1008 [ 24.373945] mmc0: Got data interrupt 0x00000002 even though no data operation was in progress. [ 24.407032] mmcblk0rpmb: error -110 transferring data, sector 8064, nr 8, cmd response 0x900, card status 0xb00 [ 24.438318] mmcblk0rpmb: retrying using single block read [ 24.471644] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 24.505126] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 24.538515] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 24.571758] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 24.604838] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 24.637751] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 24.668398] end_request: I/O error, dev mmcblk0rpmb, sector 8064 [ 24.699120] Buffer I/O error on device mmcblk0rpmb, logical block 1008 [ 32.940422] mmc0: Got data interrupt 0x00000002 even though no data operation was in progress. [ 32.973781] mmcblk0rpmb: error -110 transferring data, sector 0, nr 16, cmd response 0x900, card status 0xb00 [ 33.005431] mmcblk0rpmb: retrying using single block read [ 33.039167] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 33.073116] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 33.106965] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 33.140652] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 33.174081] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 33.207244] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 33.238143] end_request: I/O error, dev mmcblk0rpmb, sector 0 [ 33.269079] Buffer I/O error on device mmcblk0rpmb, logical block 0 [ 33.300138] end_request: I/O error, dev mmcblk0rpmb, sector 8 [ 33.331221] Buffer I/O error on device mmcblk0rpmb, logical block 1 [ 41.566672] mmc0: Got data interrupt 0x00000002 even though no data operation was in progress. [ 41.600468] mmcblk0rpmb: error -110 transferring data, sector 0, nr 8, cmd response 0x900, card status 0xb00 [ 41.632451] mmcblk0rpmb: retrying using single block read [ 41.666526] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 41.700864] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 41.734945] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 41.768811] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 41.802498] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 41.835947] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 41.867201] end_request: I/O error, dev mmcblk0rpmb, sector 0 [ 41.898423] Buffer I/O error on device mmcblk0rpmb, logical block 0 [ 45.972615] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 47.603164] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready [ 47.634111] smsc75xx 1-1.2:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0x45E1 [ 47.668901] smsc75xx 1-1.2:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
Re: [Patch V2 5/9] I2C: Add smbus quick read/write helper function
In reply to Lan TianyuQuoted 5 lines · Lan Tianyu
Add i2c_smbus_quick_write/read() helper function. These will be used in the implementation of i2c ACPI address space handler.
Signed-off-by Lan Tianyu <[email protected]>
We had such a function once but removed because of no users. Please check 67c2e66571c383404a5acd08189194da660da942 what it takes to bring them back. Especially missing are documentation updates...
Quoted 1 line
+s32
i2c_smbus_quick_write(const struct i2c_client *client)
... and I like the original function much better.
1) It is named *_write_quick which follows other function name patterns
2) It uses a parameter for the r/w bit. Make sense to me, since this bit is the information we send to the device. quick_read doesn't make sense to me. We don't receive a bit from the device.
Re: [Patch V2 6/9] I2C: Add smbus word/block process call helper function
In reply to Lan TianyuQuoted 32 lines · Lan Tianyu
Add i2c_smbus_word/block_proc_call() helper function. These will be used in the implementation of i2c ACPI address space handler.
Reviewed-by Mika Westerberg <[email protected]>Signed-off-by Lan Tianyu <[email protected]>--- drivers/i2c/i2c-core.c | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++ include/linux/i2c.h | 4 ++++ 2 files changed, 60 insertions(+)drivers/i2c/i2c-core.c +14
-0@@ -2306,6 +2306,30 @@ s32 i2c_smbus_write_word_data(const struct i2c_client *client, u8 command,EXPORT_SYMBOL (i2c_smbus_write_word_data);/** +* i2c_smbus_word_proc_call - SMBus "word proc call" protocol +* @client: Handle to slave device +* @command: Byte interpreted by slave +* @value: 16-bit "word" being written +* +* This executes the SMBus "word proc all" protocol, returning negative errno +* else a 16-bit unsigned "word" received from the device. +*/ +s32 i2c_smbus_word_proc_call (const struct i2c_client *client,u8 command, +u16 value) +{ +union i2c_smbus_data data; +int status; +
drivers/i2c/i2c-core.c s32 i2c_smbus_write_word_data(const struct i2c_client *client, u8 command, · line 2332
Quoted 10 lines
drivers/i2c/i2c-core.c +10
-0+ data.word = value; + status =i2c_smbus_xfer (client->adapter, client->addr, client->flags, +I2C_SMBUS_READ , command, +I2C_SMBUS_PROC_CALL , &data); + +return (status <0 ) ? status : data.word; +} +EXPORT_SYMBOL (i2c_smbus_word_proc_call); + +/**
Same as smbus_quick function before, documentation updates are missing. Also similar, we had such a function before which was removed due to no users? It looks very much like the function here, so we should stick to the old naming IMO. Is it the old one? Such information would be nice since it affects reviewing.
Quoted 9 lines
drivers/i2c/i2c-core.c +2
-0* i2c_smbus_read_block_data - SMBus "block read" protocol * @client: Handle to slave device * @command: Byte interpreted by slave @@ -2362,6 +2386,38 @@ s32 i2c_smbus_write_block_data(const struct i2c_client *client, u8 command, }EXPORT_SYMBOL (i2c_smbus_write_block_data); +/** +* i2c_smbus_block_proc_call - SMBus "block write" protocol
drivers/i2c/i2c-core.c s32 i2c_smbus_write_block_data(const struct i2c_client *client, u8 command, · line 2400
Quoted 10 lines
drivers/i2c/i2c-core.c +10
-0+* @client: Handle to slave device +* @command: Byte interpreted by slave +* @length: Size of data block; SMBus allows at most 32 bytes +* @values: Byte array which will be written. +* +* This executes the SMBus "block proc call" protocol, returning negative errno +* else the number of read bytes. +*/ +s32 i2c_smbus_block_proc_call (const struct i2c_client *client,u8 command, +u8 length,u8 *values)
Please rename to "i2c_smbus_block_process_call" as the old function was named. Needs documentation updates.
drivers/i2c/i2c-core.c s32 i2c_smbus_write_block_data(const struct i2c_client *client, u8 command, · line 2406
Quoted 2 lines
drivers/i2c/i2c-core.c +2
-0+if (length >I2C_SMBUS_BLOCK_MAX ) + length =I2C_SMBUS_BLOCK_MAX ;
I think we should return an error here.
BTW what were your test scenarios for these functions and smbus quick?
Re: [Patch V2 5/9] I2C: Add smbus quick read/write helper function
In reply to Wolfram SangQuoted 11 lines · Wolfram Sang
Quoted 5 lines · Lan Tianyu
Add i2c_smbus_quick_write/read() helper function. These will be used in the implementation of i2c ACPI address space handler.
Signed-off-by Lan Tianyu <[email protected]>We had such a function once but removed because of no users. Please check
67c2e66571c383404a5acd08189194da660da942what it takes to bring them back. Especially missing are documentation updates...
Quoted 9 lines
Quoted 1 line
+s32
i2c_smbus_quick_write(const struct i2c_client *client)... and I like the original function much better.
1) It is named
*_write_quickwhich follows other function name patterns
2) It uses a parameter for the r/w bit. Make sense to me, since this bit is the information we send to the device.quick_readdoesn't make sense to me. We don't receive a bit from the device.
Hi Wolfram:
Great thanks for your review. Ok. I will follow commit 67c2e665 to bringi2c_smbus_write_quick(struct i2c_client *client, u8 value) back.
BTW, how about i2c_probe_func_quick_read()? Should we replace it with the original i2c_smbus_write_quick()?
Re: [Patch V2 6/9] I2C: Add smbus word/block process call helper function
In reply to Wolfram SangQuoted 41 lines · Wolfram Sang
Quoted 40 lines · Lan Tianyu
Add i2c_smbus_word/block_proc_call() helper function. These will be used in the implementation of i2c ACPI address space handler.
Reviewed-by Mika Westerberg <[email protected]>Signed-off-by Lan Tianyu <[email protected]>--- drivers/i2c/i2c-core.c | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++ include/linux/i2c.h | 4 ++++ 2 files changed, 60 insertions(+)drivers/i2c/i2c-core.c +22
-0@@ -2306,6 +2306,30 @@ s32 i2c_smbus_write_word_data(const struct i2c_client *client, u8 command,EXPORT_SYMBOL (i2c_smbus_write_word_data);/** +* i2c_smbus_word_proc_call - SMBus "word proc call" protocol +* @client: Handle to slave device +* @command: Byte interpreted by slave +* @value: 16-bit "word" being written +* +* This executes the SMBus "word proc all" protocol, returning negative errno +* else a 16-bit unsigned "word" received from the device. +*/ +s32 i2c_smbus_word_proc_call (const struct i2c_client *client,u8 command, +u16 value) +{ +union i2c_smbus_data data; +int status; + + data.word = value; + status =i2c_smbus_xfer (client->adapter, client->addr, client->flags, +I2C_SMBUS_READ , command, +I2C_SMBUS_PROC_CALL , &data); + +return (status <0 ) ? status : data.word; +} +EXPORT_SYMBOL (i2c_smbus_word_proc_call);
Quoted 8 lines
drivers/i2c/i2c-core.c s32 i2c_smbus_write_word_data(const struct i2c_client *client, u8 command, · line 2332
Quoted 2 lines
drivers/i2c/i2c-core.c +2
-0+ +/** Same as
smbus_quickfunction before, documentation updates are missing. Also similar, we had such a function before which was removed due to no users? It looks very much like the function here, so we should stick to the old naming IMO. Is it the old one? Such information would be nice since it affects reviewing.
Yes, there was an old function and commit c8110933 removed it. Sorry, I didn't that before. I will bring the old one back.
Quoted 24 lines
Quoted 10 lines
drivers/i2c/i2c-core.c +2
-0* i2c_smbus_read_block_data - SMBus "block read" protocol * @client: Handle to slave device * @command: Byte interpreted by slave @@ -2362,6 +2386,38 @@ s32 i2c_smbus_write_block_data(const struct i2c_client *client, u8 command, }EXPORT_SYMBOL (i2c_smbus_write_block_data); +/** +* i2c_smbus_block_proc_call - SMBus "block write" protocol drivers/i2c/i2c-core.c s32 i2c_smbus_write_block_data(const struct i2c_client *client, u8 command, · line 2400
Quoted 10 lines
drivers/i2c/i2c-core.c +10
-0+* @client: Handle to slave device +* @command: Byte interpreted by slave +* @length: Size of data block; SMBus allows at most 32 bytes +* @values: Byte array which will be written. +* +* This executes the SMBus "block proc call" protocol, returning negative errno +* else the number of read bytes. +*/ +s32 i2c_smbus_block_proc_call (const struct i2c_client *client,u8 command, +u8 length,u8 *values)Please rename to "
i2c_smbus_block_process_call" as the old function was named. Needs documentation updates.
Quoted 4 lines
drivers/i2c/i2c-core.c s32 i2c_smbus_write_block_data(const struct i2c_client *client, u8 command, · line 2406
Quoted 2 lines
drivers/i2c/i2c-core.c +2
-0+if (length >I2C_SMBUS_BLOCK_MAX ) + length =I2C_SMBUS_BLOCK_MAX ;I think we should return an error here.
Ok.
Quoted 3 lines
BTW what were your test scenarios for these functions and smbus quick?
From ACPI spec, Read/Write quick and Word/Block process call protocol will be used by Bios ACPI code. But so far, I don't find such machines. So these functions has not been tested.
Re: [Patch V2 5/9] I2C: Add smbus quick read/write helper function
In reply to Lan TianyuQuoted 6 lines
Quoted 5 lines
2) It uses a parameter for the r/w bit. Make sense to me, since this bit is the information we send to the device.
quick_readdoesn't make sense to me. We don't receive a bit from the device.
Quoted 7 lines
Hi Wolfram:
Great thanks for your review. Ok. I will follow commit67c2e665to
bringi2c_smbus_write_quick(struct i2c_client *client, u8 value)back.BTW, how about
i2c_probe_func_quick_read()? Should we replace it with the originali2c_smbus_write_quick()?
As said above "quick_read doesn't make sense to me. We don't receive a bit from the device."
Start implementing and you will see why we don't need it :)
Re: [Patch V2 6/9] I2C: Add smbus word/block process call helper function
In reply to Lan TianyuQuoted 7 lines
Quoted 3 lines
BTW what were your test scenarios for these functions and smbus quick?
From ACPI spec, Read/Write quick and Word/Block process call protocol will be used by Bios ACPI code. But so far, I don't find such machines. So these functions has not been tested.
Uh oh, I have some trouble adding untested code. Can't we add until we have a user to verify it?
BTW I have to review the other patches later, so please wait before resending the series.
Re: [Patch V2 9/9] I2C/ACPI: Add CONFIG_I2C_ACPI config
In reply to Mika WesterbergQuoted 50 lines · Mika Westerberg
Quoted 30 lines · Lan Tianyu
This patch is to add
CONFIG_I2C_ACPI. Current there is a race between removing I2C ACPI operation region and ACPI AML code accessing. So make i2c core built-in ifCONFIG_I2C_ACPIis set.Signed-off-by Lan Tianyu <[email protected]>--- drivers/i2c/Kconfig | 17 ++++++++++++++++- drivers/i2c/Makefile | 2 +- include/linux/i2c.h | 2 +- 3 files changed, 18 insertions(+), 3 deletions(-)drivers/i2c/Kconfig +3
-1@@ -2,7 +2,9 @@ # I2C subsystem configuration # -menuconfig I2C +menu "I2C support" + +config I2C tristate "I2C support" select RT_MUTEXES ---help---@@ -21,6 +23,17 @@ menuconfig I2C This I2C support can also be built as a module. If so, the module will be called i2c-core.drivers/i2c/Kconfig menuconfig I2C · line 35
Quoted 10 lines
drivers/i2c/Kconfig +10
-0+config I2C_ACPI + bool "I2C ACPI support" + select I2C + depends on ACPI + default y + help + Say Y here if you want to enable I2C ACPI function. ACPI table + provides I2C slave devices' information to enumerate these devices. + This option also allows ACPI AML code to access I2C slave devices + via I2C ACPI operation region to fulfill ACPI method.I would prefer something like:
Say Y here if you want to enable ACPI I2C support. This includes support for automatic enumeration of I2C slave devices and support for ACPI I2C Operation Regions. Operation Regions allow firmware (BIOS) code to access I2C slave devices, such as smart batteries through an I2C host controller driver.
Quoted 3 lines
But it is really up to you so,
Reviewed-by Mika Westerberg <[email protected]>
How does this fit into the context of 55e71edb81b2b45273e7b284cce13ff24bde846f ("i2c: move ACPI helpers into the core")?
Re: [Patch V2 9/9] I2C/ACPI: Add CONFIG_I2C_ACPI config
Quoted 51 lines · Wolfram Sang
Quoted 50 lines · Mika Westerberg
Quoted 30 lines · Lan Tianyu
This patch is to add
CONFIG_I2C_ACPI. Current there is a race between removing I2C ACPI operation region and ACPI AML code accessing. So make i2c core built-in ifCONFIG_I2C_ACPIis set.Signed-off-by Lan Tianyu <[email protected]>--- drivers/i2c/Kconfig | 17 ++++++++++++++++- drivers/i2c/Makefile | 2 +- include/linux/i2c.h | 2 +- 3 files changed, 18 insertions(+), 3 deletions(-)drivers/i2c/Kconfig +3
-1@@ -2,7 +2,9 @@ # I2C subsystem configuration # -menuconfig I2C +menu "I2C support" + +config I2C tristate "I2C support" select RT_MUTEXES ---help---@@ -21,6 +23,17 @@ menuconfig I2C This I2C support can also be built as a module. If so, the module will be called i2c-core.drivers/i2c/Kconfig menuconfig I2C · line 35
Quoted 10 lines
drivers/i2c/Kconfig +10
-0+config I2C_ACPI + bool "I2C ACPI support" + select I2C + depends on ACPI + default y + help + Say Y here if you want to enable I2C ACPI function. ACPI table + provides I2C slave devices' information to enumerate these devices. + This option also allows ACPI AML code to access I2C slave devices + via I2C ACPI operation region to fulfill ACPI method.I would prefer something like:
Say Y here if you want to enable ACPI I2C support. This includes support for automatic enumeration of I2C slave devices and support for ACPI I2C Operation Regions. Operation Regions allow firmware (BIOS) code to access I2C slave devices, such as smart batteries through an I2C host controller driver.
Quoted 7 lines
Quoted 3 lines
But it is really up to you so,
Reviewed-by Mika Westerberg <[email protected]>How does this fit into the context of
55e71edb81b2b45273e7b284cce13ff24bde846f("i2c: move ACPI helpers into the core")?
With that commit we moved ACPI code to live inside I2C module (given that it was compiled as a module). However, you still can remove that module from userspace.
With this patch we make sure that the I2C core can't be removed if you have ACPI enabled. This prevents the potential race.
Re: [Patch V2 6/9] I2C: Add smbus word/block process call helper function
In reply to Wolfram SangQuoted 10 lines · Wolfram Sang
Quoted 7 lines
Quoted 3 lines
BTW what were your test scenarios for these functions and smbus quick?
From ACPI spec, Read/Write quick and Word/Block process call
protocol will be used by Bios ACPI code. But so far, I don't find such machines. So these functions has not been tested.Uh oh, I have some trouble adding untested code. Can't we add until we have a user to verify it?
Ok. I will remove these patches from this patchset since currently there are no users.
Quoted 4 lines
BTW I have to review the other patches later, so please wait before resending the series.
Re: [Patch V2 9/9] I2C/ACPI: Add CONFIG_I2C_ACPI config
In reply to Mika WesterbergQuoted 60 lines · Mika Westerberg
Quoted 51 lines · Wolfram Sang
Quoted 50 lines · Mika Westerberg
Quoted 30 lines · Lan Tianyu
This patch is to add
CONFIG_I2C_ACPI. Current there is a race between removing I2C ACPI operation region and ACPI AML code accessing. So make i2c core built-in ifCONFIG_I2C_ACPIis set.Signed-off-by Lan Tianyu <[email protected]>--- drivers/i2c/Kconfig | 17 ++++++++++++++++- drivers/i2c/Makefile | 2 +- include/linux/i2c.h | 2 +- 3 files changed, 18 insertions(+), 3 deletions(-)drivers/i2c/Kconfig +3
-1@@ -2,7 +2,9 @@ # I2C subsystem configuration # -menuconfig I2C +menu "I2C support" + +config I2C tristate "I2C support" select RT_MUTEXES ---help---@@ -21,6 +23,17 @@ menuconfig I2C This I2C support can also be built as a module. If so, the module will be called i2c-core.drivers/i2c/Kconfig menuconfig I2C · line 35
Quoted 10 lines
drivers/i2c/Kconfig +10
-0+config I2C_ACPI + bool "I2C ACPI support" + select I2C + depends on ACPI + default y + help + Say Y here if you want to enable I2C ACPI function. ACPI table + provides I2C slave devices' information to enumerate these devices. + This option also allows ACPI AML code to access I2C slave devices + via I2C ACPI operation region to fulfill ACPI method.I would prefer something like:
Say Y here if you want to enable ACPI I2C support. This includes support for automatic enumeration of I2C slave devices and support for ACPI I2C Operation Regions. Operation Regions allow firmware (BIOS) code to access I2C slave devices, such as smart batteries through an I2C host controller driver.
Quoted 7 lines
Quoted 3 lines
But it is really up to you so,
How does this fit into the context of
55e71edb81b2b45273e7b284cce13ff24bde846f("i2c: move ACPI helpers into the core")?
Quoted 7 lines
With that commit we moved ACPI code to live inside I2C module (given that it was compiled as a module). However, you still can remove that module from userspace.
With this patch we make sure that the I2C core can't be removed if you have ACPI enabled. This prevents the potential race.
Yes, these are the two patches' purposes. Thanks Mika's explanation. If you like, I can merge them into one patch.
Re: [Patch V2 9/9] I2C/ACPI: Add CONFIG_I2C_ACPI config
Quoted 65 lines · Lan Tianyu
Quoted 64 lines · Mika Westerberg
Quoted 51 lines · Wolfram Sang
Quoted 50 lines · Mika Westerberg
Quoted 30 lines · Lan Tianyu
This patch is to add
CONFIG_I2C_ACPI. Current there is a race between removing I2C ACPI operation region and ACPI AML code accessing. So make i2c core built-in ifCONFIG_I2C_ACPIis set.Signed-off-by Lan Tianyu <[email protected]>--- drivers/i2c/Kconfig | 17 ++++++++++++++++- drivers/i2c/Makefile | 2 +- include/linux/i2c.h | 2 +- 3 files changed, 18 insertions(+), 3 deletions(-)drivers/i2c/Kconfig +3
-1@@ -2,7 +2,9 @@ # I2C subsystem configuration # -menuconfig I2C +menu "I2C support" + +config I2C tristate "I2C support" select RT_MUTEXES ---help---@@ -21,6 +23,17 @@ menuconfig I2C This I2C support can also be built as a module. If so, the module will be called i2c-core.drivers/i2c/Kconfig menuconfig I2C · line 35
Quoted 10 lines
drivers/i2c/Kconfig +10
-0+config I2C_ACPI + bool "I2C ACPI support" + select I2C + depends on ACPI + default y + help + Say Y here if you want to enable I2C ACPI function. ACPI table + provides I2C slave devices' information to enumerate these devices. + This option also allows ACPI AML code to access I2C slave devices + via I2C ACPI operation region to fulfill ACPI method.I would prefer something like:
Say Y here if you want to enable ACPI I2C support. This includes support for automatic enumeration of I2C slave devices and support for ACPI I2C Operation Regions. Operation Regions allow firmware (BIOS) code to access I2C slave devices, such as smart batteries through an I2C host controller driver.
Quoted 7 lines
Quoted 3 lines
But it is really up to you so,
Reviewed-by Mika Westerberg <[email protected]>How does this fit into the context of
55e71edb81b2b45273e7b284cce13ff24bde846f("i2c: move ACPI helpers into the core")?With that commit we moved ACPI code to live inside I2C module (given that it was compiled as a module). However, you still can remove that module from userspace.
Quoted 6 lines
Quoted 3 lines
With this patch we make sure that the I2C core can't be removed if you have ACPI enabled. This prevents the potential race.
Yes, these are the two patches' purposes. Thanks Mika's explanation. If you like, I can merge them into one patch.
I think that would be easier to follow.
Thanks!
Signature · 2 lines
I speak only for myself. Rafael J. Wysocki, Intel Open Source Technology Center.
Quoted 14 lines · Rolf Eike Beer
Quoted 12 lines · Lan Tianyu
Quoted 11 lines · Rolf Eike Beer
Am Montag, 28. April 2014, 22:27:39 schrieb Lan Tianyu:
Quoted 10 lines
ACPI 5.0 spec(5.5.2.4.5) defines
GenericSerialBus(i2c, spi, uart)operation
region. It allows ACPI aml code able to access such kind of devices to implement some ACPI standard method.On the Asus T100TA, Bios use GenericSerialBus operation region to access
i2c device to get battery info. So battery function depends on the I2C operation region support. Here is the bug link.
https://bugzilla.kernel.org/show_bug.cgi?id=69011
Quoted 5 lines
Quoted 2 lines
Quoted 2 lines
I have tested this series and got some errors, but no additional functionality:
this is an Aava Inari 8 tablet (pre-release hardware). Please find the DSDT and the dmesg.log attached.
It may be that I have taken the wrong ACPI files. This is the result of a fresh run of acpidump, together with the most recent dmesg.log, just in case I messed it up.
Kernel now is at 60b5f90+some patches:
8e7bd6f pinctrl: baytrail: Register GPIO chip after chip->to_irq is set c4b2230 pinctrl: baytrail: Add back Baytrail-T ACPI ID
32f3364 gpio: Add support for Intel SoC PMIC (Crystal Cove)
088ee81 mfd: intel_soc_pmic: Build files
5315135 mfd: intel_soc_pmic: Crystal Cove support
8b5ed0b mfd: intel_soc_pmic: I2C interface
b18979f mfd: intel_soc_pmic: Core driver
5200b75 add debugging
(This is the debug patch Lan Tianyu sent as reply to the previous mail)
bd3e6c6 I2C/ACPI: Add CONFIG_I2C_ACPI config
947f0a1 I2C/ACPI: Move ACPI related code to i2c-acpi.c
534f182 I2C/ACPI: Add i2c ACPI operation region support
32384d4 I2C: Add smbus word/block process call helper function
aa6459e I2C: Add smbus quick read/write helper function
51825ed ACPI/Thermal: Use acpi_bus_attach_private_data() to attach private data 95e9e92 ACPI: Add acpi_bus_attach_private_data() to facilitate to attach data to ACPI handle cc6fecb ACPICA: Export acpi_buffer_to_resource symbol
ad38de6 ACPI / LPSS: custom power domain for LPSS
b0caadf ACPI / PM: Export rest of the subsys functions
22a7210 ACPI / platform: add another ID for Broadcom Bluetooth and GPS chips
(this just adds AAM4752 as another platform id)
000627d ACPI / platform: add IDs for Broadcom Bluetooth and GPS chips
Eike
Signature · 7 lines
Rolf Eike Beer, emlix GmbH, http://www.emlix.com Fon +49 551 30664-0, Fax +49 551 30664-11 Bertha-von-Suttner-Str. 9, 37085 Göttingen, Germany Sitz der Gesellschaft: Göttingen, Amtsgericht Göttingen HR B 3160 Geschäftsführung: Dr. Uwe Kracke, Ust-IdNr.: DE 205 198 055 emlix - smart embedded open source
[ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Initializing cgroup subsys cpuacct [ 0.000000] Linux version 3.15.0-rc5-Inari (root@devpool02) (gcc version 4.8.2 (Emlix Linux Inari) ) #1 SMP Tue May 20 13:33:31 UTC 2014 [ 0.000000] e820: BIOS-provided physical RAM map: [ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000008efff] usable [ 0.000000] BIOS-e820: [mem 0x000000000008f000-0x000000000008ffff] ACPI NVS [ 0.000000] BIOS-e820: [mem 0x0000000000090000-0x000000000009dfff] usable [ 0.000000] BIOS-e820: [mem 0x000000000009e000-0x000000000009ffff] reserved [ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x000000001fffffff] usable [ 0.000000] BIOS-e820: [mem 0x0000000020000000-0x00000000200fffff] reserved [ 0.000000] BIOS-e820: [mem 0x0000000020100000-0x0000000078345fff] usable [ 0.000000] BIOS-e820: [mem 0x0000000078346000-0x0000000078c45fff] reserved [ 0.000000] BIOS-e820: [mem 0x0000000078c46000-0x0000000078d45fff] ACPI NVS [ 0.000000] BIOS-e820: [mem 0x0000000078d46000-0x0000000078d85fff] ACPI data [ 0.000000] BIOS-e820: [mem 0x0000000078d86000-0x00000000794c7fff] usable [ 0.000000] BIOS-e820: [mem 0x00000000794c8000-0x0000000079dc7fff] ACPI NVS [ 0.000000] BIOS-e820: [mem 0x0000000079dc8000-0x0000000079ffffff] usable [ 0.000000] BIOS-e820: [mem 0x00000000e00f8000-0x00000000e00f8fff] reserved [ 0.000000] BIOS-e820: [mem 0x00000000fed01000-0x00000000fed01fff] reserved [ 0.000000] BIOS-e820: [mem 0x00000000ffd00000-0x00000000ffffffff] reserved [ 0.000000] Notice: NX (Execute Disable) protection cannot be enabled: non-PAE kernel! [ 0.000000] efi: EFI v2.31 by INSYDE Corp. [ 0.000000] efi: ACPI 2.0=0x78d85014 SMBIOS=0x78c45000 [ 0.000000] efi: mem00: type=7, attr=0xf, range=[0x0000000000000000-0x0000000000001000) (0MB) [ 0.000000] efi: mem01: type=2, attr=0xf, range=[0x0000000000001000-0x0000000000007000) (0MB) [ 0.000000] efi: mem02: type=7, attr=0xf, range=[0x0000000000007000-0x000000000008f000) (0MB) [ 0.000000] efi: mem03: type=10, attr=0xf, range=[0x000000000008f000-0x0000000000090000) (0MB) [ 0.000000] efi: mem04: type=7, attr=0xf, range=[0x0000000000090000-0x000000000009e000) (0MB) [ 0.000000] efi: mem05: type=0, attr=0xf, range=[0x000000000009e000-0x00000000000a0000) (0MB) [ 0.000000] efi: mem06: type=7, attr=0xf, range=[0x0000000000100000-0x0000000001000000) (15MB) [ 0.000000] efi: mem07: type=2, attr=0xf, range=[0x0000000001000000-0x0000000002585000) (21MB) [ 0.000000] efi: mem08: type=7, attr=0xf, range=[0x0000000002585000-0x0000000020000000) (474MB) [ 0.000000] efi: mem09: type=0, attr=0xf, range=[0x0000000020000000-0x0000000020100000) (1MB) [ 0.000000] efi: mem10: type=7, attr=0xf, range=[0x0000000020100000-0x0000000071dc0000) (1308MB) [ 0.000000] efi: mem11: type=4, attr=0xf, range=[0x0000000071dc0000-0x0000000071de0000) (0MB) [ 0.000000] efi: mem12: type=7, attr=0xf, range=[0x0000000071de0000-0x0000000072bc7000) (13MB) [ 0.000000] efi: mem13: type=2, attr=0xf, range=[0x0000000072bc7000-0x0000000072bc9000) (0MB) [ 0.000000] efi: mem14: type=1, attr=0xf, range=[0x0000000072bc9000-0x0000000073b46000) (15MB) [ 0.000000] efi: mem15: type=7, attr=0xf, range=[0x0000000073b46000-0x0000000076a92000) (47MB) [ 0.000000] efi: mem16: type=4, attr=0xf, range=[0x0000000076a92000-0x00000000774ec000) (10MB) [ 0.000000] efi: mem17: type=7, attr=0xf, range=[0x00000000774ec000-0x00000000774f9000) (0MB) [ 0.000000] efi: mem18: type=4, attr=0xf, range=[0x00000000774f9000-0x0000000077d46000) (8MB) [ 0.000000] efi: mem19: type=7, attr=0xf, range=[0x0000000077d46000-0x0000000078161000) (4MB) [ 0.000000] efi: mem20: type=3, attr=0xf, range=[0x0000000078161000-0x0000000078346000) (1MB) [ 0.000000] efi: mem21: type=5, attr=0x800000000000000f, range=[0x0000000078346000-0x0000000078546000) (2MB) [ 0.000000] efi: mem22: type=6, attr=0x800000000000000f, range=[0x0000000078546000-0x0000000078846000) (3MB) [ 0.000000] efi: mem23: type=0, attr=0xf, range=[0x0000000078846000-0x0000000078c46000) (4MB) [ 0.000000] efi: mem24: type=10, attr=0xf, range=[0x0000000078c46000-0x0000000078d46000) (1MB) [ 0.000000] efi: mem25: type=9, attr=0xf, range=[0x0000000078d46000-0x0000000078d86000) (0MB) [ 0.000000] efi: mem26: type=4, attr=0xf, range=[0x0000000078d86000-0x00000000794c8000) (7MB) [ 0.000000] efi: mem27: type=10, attr=0xf, range=[0x00000000794c8000-0x0000000079dc8000) (9MB) [ 0.000000] efi: mem28: type=4, attr=0xf, range=[0x0000000079dc8000-0x000000007a000000) (2MB) [ 0.000000] efi: mem29: type=11, attr=0x8000000000000001, range=[0x00000000e00f8000-0x00000000e00f9000) (0MB) [ 0.000000] efi: mem30: type=11, attr=0x8000000000000000, range=[0x00000000fed01000-0x00000000fed02000) (0MB) [ 0.000000] efi: mem31: type=11, attr=0x8000000000000000, range=[0x00000000ffd00000-0x0000000100000000) (3MB) [ 0.000000] SMBIOS 2.7 present. [ 0.000000] DMI: Aava Mobile Oy Inari 8 2GB/Type2 - Board Product Name, BIOS BYT.5.03.47.0033-022 01/16/2014 [ 0.000000] e820: update [mem 0x00000000-0x00000fff] usable ==> reserved [ 0.000000] e820: remove [mem 0x000a0000-0x000fffff] usable [ 0.000000] e820: last_pfn = 0x7a000 max_arch_pfn = 0x100000 [ 0.000000] MTRR default type: uncachable [ 0.000000] MTRR fixed ranges enabled: [ 0.000000] 00000-9FFFF write-back [ 0.000000] A0000-FFFFF write-protect [ 0.000000] MTRR variable ranges enabled: [ 0.000000] 0 base 0FFD00000 mask FFFC00000 write-protect [ 0.000000] 1 base 000000000 mask FC0000000 write-back [ 0.000000] 2 base 040000000 mask FE0000000 write-back [ 0.000000] 3 base 060000000 mask FF0000000 write-back [ 0.000000] 4 base 070000000 mask FF8000000 write-back [ 0.000000] 5 base 078000000 mask FFC000000 write-back [ 0.000000] 6 base 07B000000 mask FFF000000 uncachable [ 0.000000] 7 base 07AE00000 mask FFFE00000 uncachable [ 0.000000] x86 PAT enabled: cpu 0, old 0x7040600070406, new 0x7010600070106 [ 0.000000] Scanning 1 areas for low memory corruption [ 0.000000] initial memory mapped: [mem 0x00000000-0x027fffff] [ 0.000000] Base memory trampoline at [c009a000] 9a000 size 16384 [ 0.000000] init_memory_mapping: [mem 0x00000000-0x000fffff] [ 0.000000] [mem 0x00000000-0x000fffff] page 4k [ 0.000000] init_memory_mapping: [mem 0x37000000-0x373fffff] [ 0.000000] [mem 0x37000000-0x373fffff] page 2M [ 0.000000] init_memory_mapping: [mem 0x30000000-0x36ffffff] [ 0.000000] [mem 0x30000000-0x36ffffff] page 2M [ 0.000000] init_memory_mapping: [mem 0x00100000-0x1fffffff] [ 0.000000] [mem 0x00100000-0x003fffff] page 4k [ 0.000000] [mem 0x00400000-0x1fffffff] page 2M [ 0.000000] init_memory_mapping: [mem 0x20100000-0x2fffffff] [ 0.000000] [mem 0x20100000-0x203fffff] page 4k [ 0.000000] [mem 0x20400000-0x2fffffff] page 2M [ 0.000000] BRK [0x0246a000, 0x0246afff] PGTABLE [ 0.000000] init_memory_mapping: [mem 0x37400000-0x377fdfff] [ 0.000000] [mem 0x37400000-0x377fdfff] page 4k [ 0.000000] BRK [0x0246b000, 0x0246bfff] PGTABLE [ 0.000000] ACPI: RSDP 0x78D85014 000024 (v02 INSYDE) [ 0.000000] ACPI: XSDT 0x78D61188 0000D4 (v01 INSYDE INSYDE 00000003 01000013) [ 0.000000] ACPI: FACP 0x78D7F000 00010C (v05 INSYDE INSYDE 00000003 ACPI 00040000) [ 0.000000] ACPI: DSDT 0x78D6E000 00BAEC (v02 INSYDE INSYDE 00000003 ACPI 00040000) [ 0.000000] ACPI: UEFI 0x78D84000 000236 (v01 INSYDE INSYDE 00000001 ACPI 00040000) [ 0.000000] ACPI: TCPA 0x78D83000 000032 (v02 INSYDE INSYDE 00000000 ACPI 00040000) [ 0.000000] ACPI: UEFI 0x78D81000 000042 (v01 INSYDE INSYDE 00000000 ACPI 00040000) [ 0.000000] ACPI: DBG2 0x78D80000 000072 (v00 INSYDE INSYDE 00000003 ACPI 00040000) [ 0.000000] ACPI: HPET 0x78D7E000 000038 (v01 INSYDE INSYDE 00000003 ACPI 00040000) [ 0.000000] ACPI: LPIT 0x78D7D000 000104 (v01 INSYDE INSYDE 00000003 ACPI 00040000) [ 0.000000] ACPI: APIC 0x78D7C000 00006C (v03 INSYDE INSYDE 00000003 ACPI 00040000) [ 0.000000] ACPI: MCFG 0x78D7B000 00003C (v01 INSYDE INSYDE 00000003 ACPI 00040000) [ 0.000000] ACPI: SLIC 0x78D7A000 000176 (v01 INSYDE INSYDE 00000003 ACPI 00040000) [ 0.000000] ACPI: SSDT 0x78D6D000 0005FB (v01 INSYDE CpuDptf 00000003 ACPI 00040000) [ 0.000000] ACPI: SSDT 0x78D6B000 0018C2 (v01 INSYDE DptfTab 00000003 ACPI 00040000) [ 0.000000] ACPI: SSDT 0x78D6A000 000058 (v01 INSYDE LowPwrM 00000003 ACPI 00040000) [ 0.000000] ACPI: SSDT 0x78D69000 0000FF (v01 INSYDE SoCDptf 00000003 ACPI 00040000) [ 0.000000] ACPI: SSDT 0x78D68000 00043A (v01 INSYDE Tpm2Tabl 00001000 ACPI 00040000) [ 0.000000] ACPI: TPM2 0x78D67000 000034 (v03 INSYDE INSYDE 00000000 ACPI 00040000) [ 0.000000] ACPI: SSDT 0x78D66000 000763 (v01 INSYDE CpuPm 00003000 ACPI 00040000) [ 0.000000] ACPI: SSDT 0x78D65000 000290 (v01 INSYDE Cpu0Tst 00003000 ACPI 00040000) [ 0.000000] ACPI: SSDT 0x78D64000 00017A (v01 INSYDE ApTst 00003000 ACPI 00040000) [ 0.000000] ACPI: FPDT 0x78D63000 000044 (v01 INSYDE INSYDE 00000001 ACPI 00040000) [ 0.000000] ACPI: CSRT 0x78D62000 00014C (v00 INSYDE INSYDE 00000005 ACPI 00040000) [ 0.000000] ACPI: BGRT 0x78D60000 000038 (v01 INSYDE INSYDE 00000001 ACPI 00040000) [ 0.000000] ACPI: Local APIC address 0xfee00000 [ 0.000000] 1064MB HIGHMEM available. [ 0.000000] 887MB LOWMEM available. [ 0.000000] mapped low ram: 0 - 377fe000 [ 0.000000] low ram: 0 - 377fe000 [ 0.000000] BRK [0x0246c000, 0x0246cfff] PGTABLE [ 0.000000] Zone ranges: [ 0.000000] DMA [mem 0x00001000-0x00ffffff] [ 0.000000] Normal [mem 0x01000000-0x377fdfff] [ 0.000000] HighMem [mem 0x377fe000-0x79ffffff] [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x00001000-0x0008efff] [ 0.000000] node 0: [mem 0x00090000-0x0009dfff] [ 0.000000] node 0: [mem 0x00100000-0x1fffffff] [ 0.000000] node 0: [mem 0x20100000-0x78345fff] [ 0.000000] node 0: [mem 0x78d86000-0x794c7fff] [ 0.000000] node 0: [mem 0x79dc8000-0x79ffffff] [ 0.000000] On node 0 totalpages: 494428 [ 0.000000] free_area_init_node: node 0, pgdat c17447c0, node_mem_map f68be020 [ 0.000000] DMA zone: 32 pages used for memmap [ 0.000000] DMA zone: 0 pages reserved [ 0.000000] DMA zone: 3996 pages, LIFO batch:0 [ 0.000000] Normal zone: 1744 pages used for memmap [ 0.000000] Normal zone: 222974 pages, LIFO batch:31 [ 0.000000] HighMem zone: 2129 pages used for memmap [ 0.000000] HighMem zone: 267458 pages, LIFO batch:31 [ 0.000000] Using APIC driver default [ 0.000000] x86/hpet: Will disable the HPET for this platform because it's not reliable [ 0.000000] Reserving Intel graphics stolen memory at 0x7af00000-0x7eefffff [ 0.000000] ACPI: Local APIC address 0xfee00000 [ 0.000000] ACPI: LAPIC (acpi_id[0x01] lapic_id[0x00] enabled) [ 0.000000] ACPI: LAPIC (acpi_id[0x02] lapic_id[0x02] enabled) [ 0.000000] ACPI: LAPIC (acpi_id[0x03] lapic_id[0x04] enabled) [ 0.000000] ACPI: LAPIC (acpi_id[0x04] lapic_id[0x06] enabled) [ 0.000000] ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0]) [ 0.000000] IOAPIC[0]: apic_id 2, version 32, address 0xfec00000, GSI 0-86 [ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl) [ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level) [ 0.000000] ACPI: IRQ0 used by override. [ 0.000000] ACPI: IRQ2 used by override. [ 0.000000] ACPI: IRQ9 used by override. [ 0.000000] Using ACPI (MADT) for SMP configuration information [ 0.000000] ACPI: HPET id: 0x8086a201 base: 0xfed00000 [ 0.000000] smpboot: Allowing 4 CPUs, 0 hotplug CPUs [ 0.000000] nr_irqs_gsi: 103 [ 0.000000] PM: Registered nosave memory: [mem 0x0008f000-0x0008ffff] [ 0.000000] PM: Registered nosave memory: [mem 0x0009e000-0x0009ffff] [ 0.000000] PM: Registered nosave memory: [mem 0x000a0000-0x000fffff] [ 0.000000] PM: Registered nosave memory: [mem 0x20000000-0x200fffff] [ 0.000000] e820: [mem 0x7ef00000-0xe00f7fff] available for PCI devices [ 0.000000] setup_percpu: NR_CPUS:4 nr_cpumask_bits:4 nr_cpu_ids:4 nr_node_ids:1 [ 0.000000] PERCPU: Embedded 12 pages/cpu @f6882000 s27264 r0 d21888 u49152 [ 0.000000] pcpu-alloc: s27264 r0 d21888 u49152 alloc=12*4096 [ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 492652 [ 0.000000] Kernel command line: root=/dev/sda2 video=HDMI-A-1:1200x1920e drm_kms_helper.edid_firmware=HDMI-A-1:edid/1200x1920.bin [ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes) [ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes) [ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes) [ 0.000000] Initializing CPU#0 [ 0.000000] Initializing HighMem for node 0 (000377fe:0007a000) [ 0.000000] Initializing Movable for node 0 (00000000:00000000) [ 0.000000] Memory: 1909196K/1977712K available (5512K kernel code, 337K rwdata, 1644K rodata, 12096K init, 1236K bss, 68516K reserved, 1038956K highmem) [ 0.000000] virtual kernel memory layout: [ 0.000000] fixmap : 0xfff66000 - 0xfffff000 ( 612 kB) [ 0.000000] pkmap : 0xff800000 - 0xffc00000 (4096 kB) [ 0.000000] vmalloc : 0xf7ffe000 - 0xff7fe000 ( 120 MB) [ 0.000000] lowmem : 0xc0000000 - 0xf77fe000 ( 887 MB) [ 0.000000] .init : 0xc1755000 - 0xc2325000 (12096 kB) [ 0.000000] .data : 0xc1562492 - 0xc1753640 (1988 kB) [ 0.000000] .text : 0xc1000000 - 0xc1562492 (5513 kB) [ 0.000000] Checking if this processor honours the WP bit even in supervisor mode...Ok. [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1 [ 0.000000] Hierarchical RCU implementation. [ 0.000000] NR_IRQS:2304 nr_irqs:1024 16 [ 0.000000] CPU 0 irqstacks, hard=f600c000 soft=f600e000 [ 0.000000] Console: colour dummy device 80x25 [ 0.000000] console [tty0] enabled [ 0.000000] Maximum core-clock to bus-clock ratio: 0xa [ 0.000000] Resolved frequency ID: 2, frequency: 133200 KHz [ 0.000000] TSC runs at 1332000 KHz [ 0.000000] lapic_timer_frequency = 133200 [ 0.000000] tsc: Detected 1332.000 MHz processor [ 0.000037] Calibrating delay loop (skipped), value calculated using timer frequency.. 2664.00 BogoMIPS (lpj=1332000) [ 0.000055] pid_max: default: 32768 minimum: 301 [ 0.000071] ACPI: Core revision 20140214 [ 0.044283] ACPI: All ACPI Tables successfully acquired [ 0.046946] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.046966] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.047312] Initializing cgroup subsys freezer [ 0.047355] CPU: Physical Processor ID: 0 [ 0.047365] CPU: Processor Core ID: 0 [ 0.047376] ENERGY_PERF_BIAS: Set to 'normal', was 'performance' [ 0.047376] ENERGY_PERF_BIAS: View and update with x86_energy_perf_policy(8) [ 0.059505] mce: CPU supports 6 MCE banks [ 0.059523] CPU0: Thermal monitoring enabled (TM1) [ 0.059544] Last level iTLB entries: 4KB 48, 2MB 0, 4MB 0 [ 0.059544] Last level dTLB entries: 4KB 128, 2MB 16, 4MB 16, 1GB 0 [ 0.059544] tlb_flushall_shift: 6 [ 0.059737] Freeing SMP alternatives memory: 20K (c2325000 - c232a000) [ 0.059772] ------------[ cut here ]------------ [ 0.059792] WARNING: CPU: 0 PID: 0 at /tmp/e2/build/linux-git/mm/early_ioremap.c:136 __early_ioremap+0xee/0x1a6() [ 0.059804] Modules linked in: [ 0.059817] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 3.15.0-rc5-Inari #1 [ 0.059827] Hardware name: Aava Mobile Oy Inari 8 2GB/Type2 - Board Product Name, BIOS BYT.5.03.47.0033-022 01/16/2014 [ 0.059840] 00000000 00000000 c1701f0c c15561be 00000000 c1701f3c c103d194 c164e24c [ 0.059862] 00000000 00000000 c1655de4 00000088 c1771c13 c1771c13 00000042 77526000 [ 0.059883] 00000000 c1701f4c c103d22d 00000009 00000000 c1701fa0 c1771c13 c17454c0 [ 0.059904] Call Trace: [ 0.059919] [<c15561be>] dump_stack+0x41/0x52 [ 0.059932] [<c103d194>] warn_slowpath_common+0x74/0x90 [ 0.059945] [<c1771c13>] ? __early_ioremap+0xee/0x1a6 [ 0.059957] [<c1771c13>] ? __early_ioremap+0xee/0x1a6 [ 0.059968] [<c103d22d>] warn_slowpath_null+0x1d/0x20 [ 0.059981] [<c1771c13>] __early_ioremap+0xee/0x1a6 [ 0.059993] [<c10368df>] ? __native_set_fixmap+0x1f/0x30 [ 0.060021] [<c1771e80>] early_memremap+0xd/0xf [ 0.060034] [<c1768753>] efi_bgrt_init+0xe6/0x129 [ 0.060046] [<c1768077>] efi_late_init+0x8/0xa [ 0.060058] [<c1755a3b>] start_kernel+0x34f/0x35f [ 0.060070] [<c1755523>] ? repair_env_string+0x51/0x51 [ 0.060081] [<c1755369>] i386_start_kernel+0x137/0x13a [ 0.060104] ---[ end trace 840e1cff9080aa63 ]--- [ 0.063071] Enabling APIC mode: Flat. Using 1 I/O APICs [ 0.064118] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1 [ 0.074144] ..MP-BIOS bug: 8254 timer not connected to IO-APIC [ 0.074153] ...trying to set up timer (IRQ0) through the 8259A ... [ 0.074162] ..... (found apic 0 pin 2) ... [ 0.084178] ....... works. [ 0.084186] smpboot: CPU0: Intel(R) Atom(TM) CPU Z3745 @ 1.33GHz (fam: 06, model: 37, stepping: 08) [ 0.084226] TSC deadline timer enabled [ 0.084241] Performance Events: PEBS fmt2+, 8-deep LBR, Silvermont events, full-width counters, Intel PMU driver. [ 0.084267] ... version: 3 [ 0.084275] ... bit width: 40 [ 0.084283] ... generic registers: 2 [ 0.084290] ... value mask: 000000ffffffffff [ 0.084299] ... max period: 000000ffffffffff [ 0.084306] ... fixed-purpose events: 3 [ 0.084314] ... event mask: 0000000700000003 [ 0.085895] CPU 1 irqstacks, hard=f60a6000 soft=f60b0000 [ 0.085901] x86: Booting SMP configuration: [ 0.085911] .... node #0, CPUs: #1 [ 0.096027] Initializing CPU#1 [ 0.111238] CPU 2 irqstacks, hard=f60ba000 soft=f60bc000 [ 0.111257] #2 [ 0.121310] Initializing CPU#2 [ 0.136523] CPU 3 irqstacks, hard=f60c6000 soft=f60c8000 [ 0.136537] #3 [ 0.146591] Initializing CPU#3 [ 0.161676] x86: Booted up 1 node, 4 CPUs [ 0.161696] smpboot: Total of 4 processors activated (10656.00 BogoMIPS) [ 0.162646] devtmpfs: initialized [ 0.163134] PM: Registering ACPI NVS region [mem 0x0008f000-0x0008ffff] (4096 bytes) [ 0.163150] PM: Registering ACPI NVS region [mem 0x78c46000-0x78d45fff] (1048576 bytes) [ 0.163202] PM: Registering ACPI NVS region [mem 0x794c8000-0x79dc7fff] (9437184 bytes) [ 0.163750] pinctrl core: initialized pinctrl subsystem [ 0.163810] RTC time: 6:00:32, date: 05/20/14 [ 0.163897] NET: Registered protocol family 16 [ 0.164225] cpuidle: using governor ladder [ 0.164236] cpuidle: using governor menu [ 0.164310] ACPI: bus type PCI registered [ 0.164463] PCI: MMCONFIG for domain 0000 [bus 00-3f] at [mem 0xe0000000-0xe3ffffff] (base 0xe0000000) [ 0.164480] PCI: not using MMCONFIG [ 0.164835] PCI: Using configuration type 1 for base access [ 0.169934] ACPI: Added _OSI(Module Device) [ 0.169949] ACPI: Added _OSI(Processor Device) [ 0.169958] ACPI: Added _OSI(3.0 _SCP Extensions) [ 0.169967] ACPI: Added _OSI(Processor Aggregator Device) [ 0.205576] ACPI: SSDT 0x78BCAA90 000353 (v01 PmRef Cpu0Ist 00003000 INTL 20130117) [ 0.207151] ACPI: Dynamic OEM Table Load: [ 0.207166] ACPI: SSDT 0x00000000 000353 (v01 PmRef Cpu0Ist 00003000 INTL 20130117) [ 0.207698] ACPI: SSDT 0x78BC9910 000433 (v01 PmRef Cpu0Cst 00003001 INTL 20130117) [ 0.209556] ACPI: Dynamic OEM Table Load: [ 0.209570] ACPI: SSDT 0x00000000 000433 (v01 PmRef Cpu0Cst 00003001 INTL 20130117) [ 0.216146] ACPI: SSDT 0x78BCBD90 00015F (v01 PmRef ApIst 00003000 INTL 20130117) [ 0.217742] ACPI: Dynamic OEM Table Load: [ 0.217756] ACPI: SSDT 0x00000000 00015F (v01 PmRef ApIst 00003000 INTL 20130117) [ 0.220317] ACPI: SSDT 0x78BCBF10 00008D (v01 PmRef ApCst 00003000 INTL 20130117) [ 0.221740] ACPI: Dynamic OEM Table Load: [ 0.221754] ACPI: SSDT 0x00000000 00008D (v01 PmRef ApCst 00003000 INTL 20130117) [ 0.227520] ACPI: Interpreter enabled [ 0.227556] ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S1_] (20140214/hwxface-580) [ 0.227580] ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S2_] (20140214/hwxface-580) [ 0.227601] ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S3_] (20140214/hwxface-580) [ 0.227622] ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S4_] (20140214/hwxface-580) [ 0.227642] ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S5_] (20140214/hwxface-580) [ 0.227660] ACPI: (supports S0) [ 0.227668] ACPI: Using IOAPIC for interrupt routing [ 0.227757] PCI: MMCONFIG for domain 0000 [bus 00-3f] at [mem 0xe0000000-0xe3ffffff] (base 0xe0000000) [ 0.235389] [Firmware Info]: PCI: MMCONFIG at [mem 0xe0000000-0xe3ffffff] not reserved in ACPI motherboard resources [ 0.235406] PCI: not using MMCONFIG [ 0.235464] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug [ 0.238750] ACPI: Power Resource [USBC] (on) [ 0.242935] ACPI: Power Resource [WWPR] (off) [ 0.253593] ACPI: Power Resource [PLPE] (on) [ 0.265552] ACPI: Power Resource [CLK0] (on) [ 0.265698] ACPI: Power Resource [CLK1] (on) [ 0.266063] ACPI: Power Resource [P28X] (off) [ 0.266206] ACPI: Power Resource [P18X] (off) [ 0.268756] ACPI: Power Resource [TCPR] (off) [ 0.275852] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff]) [ 0.275877] acpi PNP0A08:00: _OSC: OS supports [ASPM ClockPM Segments MSI] [ 0.276078] \_SB_.PCI0:_OSC invalid UUID [ 0.276083] _OSC request data:1 1e 0 [ 0.276096] acpi PNP0A08:00: _OSC failed (AE_ERROR); disabling ASPM [ 0.277397] acpi PNP0A08:00: fail to add MMCONFIG information, can't access extended PCI configuration space under this bridge. [ 0.277495] PCI host bridge to bus 0000:00 [ 0.277510] pci_bus 0000:00: root bus resource [bus 00-ff] [ 0.277522] pci_bus 0000:00: root bus resource [io 0x0000-0x006f] [ 0.277534] pci_bus 0000:00: root bus resource [io 0x0078-0x0cf7] [ 0.277545] pci_bus 0000:00: root bus resource [io 0x0d00-0xffff] [ 0.277557] pci_bus 0000:00: root bus resource [mem 0x000a0000-0x000bffff] [ 0.277569] pci_bus 0000:00: root bus resource [mem 0x000c0000-0x000dffff] [ 0.277581] pci_bus 0000:00: root bus resource [mem 0x000e0000-0x000fffff] [ 0.277593] pci_bus 0000:00: root bus resource [mem 0x90c00000-0x90ffffff] [ 0.277604] pci_bus 0000:00: root bus resource [mem 0x7af00001-0x7ef00000] [ 0.277616] pci_bus 0000:00: root bus resource [mem 0x80000000-0x908ffffe] [ 0.277628] pci_bus 0000:00: root bus resource [mem 0xfed40000-0xfed40fff] [ 0.277652] pci 0000:00:00.0: [8086:0f00] type 00 class 0x060000 [ 0.277844] pci 0000:00:02.0: [8086:0f31] type 00 class 0x030000 [ 0.277870] pci 0000:00:02.0: reg 0x10: [mem 0x90000000-0x903fffff] [ 0.277889] pci 0000:00:02.0: reg 0x18: [mem 0x80000000-0x8fffffff pref] [ 0.277907] pci 0000:00:02.0: reg 0x20: [io 0x1000-0x1007] [ 0.278123] pci 0000:00:14.0: [8086:0f35] type 00 class 0x0c0330 [ 0.278154] pci 0000:00:14.0: reg 0x10: [mem 0x90800000-0x9080ffff 64bit] [ 0.278234] pci 0000:00:14.0: PME# supported from D3hot D3cold [ 0.278409] pci 0000:00:1a.0: [8086:0f18] type 00 class 0x108000 [ 0.278451] pci 0000:00:1a.0: reg 0x10: [mem 0x90700000-0x907fffff] [ 0.278469] pci 0000:00:1a.0: reg 0x14: [mem 0x90600000-0x906fffff] [ 0.278570] pci 0000:00:1a.0: PME# supported from D0 D3hot [ 0.278744] pci 0000:00:1f.0: [8086:0f1c] type 00 class 0x060100 [ 0.278969] pci_bus 0000:00: on NUMA node 0 [ 0.280068] ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 10 11 12 14 15) *0, disabled. [ 0.280384] ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 10 11 12 14 15) *0, disabled. [ 0.280709] ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 6 10 11 12 14 15) *0, disabled. [ 0.281023] ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 10 11 12 14 15) *0, disabled. [ 0.281343] ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 6 10 11 12 14 15) *0, disabled. [ 0.281666] ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 6 10 11 12 14 15) *0, disabled. [ 0.281977] ACPI: PCI Interrupt Link [LNKG] (IRQs 3 4 5 6 10 11 12 14 15) *0, disabled. [ 0.282289] ACPI: PCI Interrupt Link [LNKH] (IRQs 3 4 5 6 10 11 12 14 15) *0, disabled. [ 0.296031] dw_dmac INTL9C60:00: DesignWare DMA Controller, 8 channels [ 0.296777] dw_dmac INTL9C60:01: DesignWare DMA Controller, 8 channels [ 0.297560] vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none [ 0.297576] vgaarb: loaded [ 0.297584] vgaarb: bridge control possible 0000:00:02.0 [ 0.297838] SCSI subsystem initialized [ 0.297856] ACPI: bus type USB registered [ 0.297942] usbcore: registered new interface driver usbfs [ 0.297987] usbcore: registered new interface driver hub [ 0.298068] usbcore: registered new device driver usb [ 0.308808] intel_soc_pmic_i2c i2c-INT33FD:00: Can't enable IRQ as wake source: -6 [ 0.309261] pps_core: LinuxPPS API ver. 1 registered [ 0.309273] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <[email protected]> [ 0.309301] PTP clock support registered [ 0.309569] Advanced Linux Sound Architecture Driver Initialized. [ 0.309581] PCI: Using ACPI for IRQ routing [ 0.309591] PCI: pci_cache_line_size set to 64 bytes [ 0.309617] Expanded resource reserved due to conflict with PCI Bus 0000:00 [ 0.309630] e820: reserve RAM buffer [mem 0x0008f000-0x0008ffff] [ 0.309635] e820: reserve RAM buffer [mem 0x0009e000-0x0009ffff] [ 0.309640] e820: reserve RAM buffer [mem 0x78346000-0x7bffffff] [ 0.309645] e820: reserve RAM buffer [mem 0x794c8000-0x7bffffff] [ 0.309650] e820: reserve RAM buffer [mem 0x7a000000-0x7bffffff] [ 0.310156] cfg80211: Calling CRDA to update world regulatory domain [ 0.310342] Switched to clocksource refined-jiffies [ 0.310498] pnp: PnP ACPI init [ 0.310525] ACPI: bus type PNP registered [ 0.310655] pnp 00:00: Plug and Play ACPI device, IDs PNP0b00 (active) [ 0.310880] pnp 00:01: Plug and Play ACPI device, IDs PNP0103 (active) [ 0.310971] pnp 00:02: Plug and Play ACPI device, IDs INT0800 (active) [ 0.311091] system 00:03: [io 0x0680-0x069f] has been reserved [ 0.311106] system 00:03: [io 0x0400-0x047f] has been reserved [ 0.311118] system 00:03: [io 0x0500-0x05fe] has been reserved [ 0.311130] system 00:03: [io 0x0600-0x061f] has been reserved [ 0.311142] system 00:03: [io 0x164e-0x164f] has been reserved [ 0.311156] system 00:03: Plug and Play ACPI device, IDs PNP0c02 (active) [ 0.311511] pnp 00:04: Plug and Play ACPI device, IDs PNP0501 (active) [ 0.313011] pnp 00:05: Plug and Play ACPI device, IDs INT0002 (active) [ 0.314238] pnp 00:06: unknown resource type 19 in _CRS [ 0.314252] pnp 00:06: can't evaluate _CRS: 1 [ 0.314322] pnp 00:06: Plug and Play ACPI device, IDs BCM2e3a (active) [ 0.321212] pnp 00:07: unknown resource type 17 in _CRS [ 0.321227] pnp 00:07: can't evaluate _CRS: 1 [ 0.321349] pnp 00:07: Plug and Play ACPI device, IDs INTcfd9 PNP0c40 (active) [ 0.321500] pnp 00:08: Plug and Play ACPI device, IDs INT33bd (active) [ 0.321847] pnp 00:09: Plug and Play ACPI device, IDs INT3401 (active) [ 0.322163] pnp 00:0a: unknown resource type 17 in _CRS [ 0.322176] pnp 00:0a: can't evaluate _CRS: 1 [ 0.322254] pnp 00:0a: Plug and Play ACPI device, IDs INT3403 (active) [ 0.322393] pnp 00:0b: unknown resource type 17 in _CRS [ 0.322405] pnp 00:0b: can't evaluate _CRS: 1 [ 0.322482] pnp 00:0b: Plug and Play ACPI device, IDs INT3403 (active) [ 0.322677] pnp 00:0c: unknown resource type 17 in _CRS [ 0.322690] pnp 00:0c: can't evaluate _CRS: 1 [ 0.322768] pnp 00:0c: Plug and Play ACPI device, IDs INT3409 (active) [ 0.323066] pnp: PnP ACPI: found 13 devices [ 0.323077] ACPI: bus type PNP unregistered [ 0.328160] pci_bus 0000:00: resource 4 [io 0x0000-0x006f] [ 0.328169] pci_bus 0000:00: resource 5 [io 0x0078-0x0cf7] [ 0.328175] pci_bus 0000:00: resource 6 [io 0x0d00-0xffff] [ 0.328182] pci_bus 0000:00: resource 7 [mem 0x000a0000-0x000bffff] [ 0.328188] pci_bus 0000:00: resource 8 [mem 0x000c0000-0x000dffff] [ 0.328195] pci_bus 0000:00: resource 9 [mem 0x000e0000-0x000fffff] [ 0.328201] pci_bus 0000:00: resource 10 [mem 0x90c00000-0x90ffffff] [ 0.328208] pci_bus 0000:00: resource 11 [mem 0x7af00001-0x7ef00000] [ 0.328214] pci_bus 0000:00: resource 12 [mem 0x80000000-0x908ffffe] [ 0.328221] pci_bus 0000:00: resource 13 [mem 0xfed40000-0xfed40fff] [ 0.328276] NET: Registered protocol family 2 [ 0.328574] TCP established hash table entries: 8192 (order: 3, 32768 bytes) [ 0.328622] TCP bind hash table entries: 8192 (order: 4, 65536 bytes) [ 0.328689] TCP: Hash tables configured (established 8192 bind 8192) [ 0.328729] TCP: reno registered [ 0.328741] UDP hash table entries: 512 (order: 2, 16384 bytes) [ 0.328763] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes) [ 0.328859] NET: Registered protocol family 1 [ 0.328905] pci 0000:00:02.0: Boot video device [ 0.329302] PCI: CLS 0 bytes, default 64 [ 0.603872] byt_gpio INT33FC:02: Gpio 18 interrupt flood, disabling [ 0.809288] microcode: CPU0 sig=0x30678, pf=0x2, revision=0x808 [ 0.809323] microcode: CPU1 sig=0x30678, pf=0x2, revision=0x808 [ 0.809351] microcode: CPU2 sig=0x30678, pf=0x2, revision=0x808 [ 0.809379] microcode: CPU3 sig=0x30678, pf=0x2, revision=0x808 [ 0.809501] microcode: Microcode Update Driver: v2.00 <[email protected]>, Peter Oruba [ 0.810143] Scanning for low memory corruption every 60 seconds [ 0.810759] futex hash table entries: 1024 (order: 4, 65536 bytes) [ 0.810811] audit: initializing netlink subsys (disabled) [ 0.810853] audit: type=2000 audit(1400565632.776:1): initialized [ 0.846786] bounce pool size: 64 pages [ 0.846804] HugeTLB registered 4 MB page size, pre-allocated 0 pages [ 0.852277] msgmni has been set to 1760 [ 0.852992] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251) [ 0.853007] io scheduler noop registered [ 0.853016] io scheduler deadline registered [ 0.853177] io scheduler cfq registered (default) [ 0.857446] intel_idle: MWAIT substates: 0x33000020 [ 0.857452] intel_idle: v0.4 model 0x37 [ 0.857457] intel_idle: lapic_timer_reliable_states 0xffffffff [ 0.863915] ACPI: AC Adapter [ADP1] (on-line) [ 0.864239] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0 [ 0.864260] ACPI: Power Button [PWRF] [ 0.864272] ACPI Warning: Could not enable fixed event - PowerButton (2) (20140214/evxface-628) [ 0.868088] button: probe of LNXPWRBN:00 failed with error -22 [ 0.873934] ACPI Exception: AE_ERROR, Returned by Handler for [GeneralPurposeIo] (20140214/evregion-282) [ 0.873966] ACPI Error: Method parse/execution failed [\_TZ_.TZ00._TMP] (Node f602ae40), AE_ERROR (20140214/psparse-536) [ 0.874012] [Firmware Bug]: No valid trip found [ 0.874275] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled [ 0.894687] 00:04: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A [ 0.895709] 80860F0A:00: ttyS1 at MMIO 0x9091d000 (irq = 39, base_baud = 2764800) is a 16550A [ 0.895963] 80860F0A:01: ttyS2 at MMIO 0x9091f000 (irq = 40, base_baud = 2764800) is a 16550A [ 0.896298] hpet: number irqs doesn't agree with number of timers [ 0.896437] Non-volatile memory driver v1.3 [ 0.896509] [drm] Initialized drm 1.1.0 20060810 [ 0.898464] [drm] Memory usable by graphics device = 2048M [ 0.904214] ACPI: \_SB_.PCI0.GFX0: Error attaching device data 7 [ 0.904467] ACPI: \_SB_.PCI0.GFX0: Error attaching device data 7 [ 0.904726] ACPI: \_SB_.PCI0.GFX0: Error attaching device data 7 [ 0.904973] ACPI: \_SB_.PCI0.GFX0: Error attaching device data 7 [ 0.905220] ACPI: \_SB_.PCI0.GFX0: Error attaching device data 7 [ 0.907934] i915 0000:00:02.0: irq 128 for MSI/MSI-X [ 0.907951] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013). [ 0.907962] [drm] Driver supports precise vblank timestamp query. [ 0.960460] vgaarb: device changed decodes: PCI:0000:00:02.0,olddecodes=io+mem,decodes=io+mem:owns=io+mem [ 0.961250] ACPI: \_SB_.PCI0.GFX0: Error attaching device data 7 [ 0.961636] ACPI: \_SB_.PCI0.GFX0: Error attaching device data 7 [ 1.489394] [drm] forcing HDMI-A-1 connector ON [ 1.565640] [drm] GMBUS [i915 gmbus vga] timed out, falling back to bit banging on pin 2 [ 1.587008] [drm] Got external EDID base block and 0 extensions from "edid/1200x1920.bin" for connector "HDMI-A-1" [ 1.733267] [drm] GMBUS [i915 gmbus dpc] timed out, falling back to bit banging on pin 4 [ 1.829666] fbcon: inteldrmfb (fb0) is primary device [ 1.962432] Switched to clocksource tsc [ 2.342020] Console: switching to colour frame buffer device 150x120 [ 2.375486] i915 0000:00:02.0: fb0: inteldrmfb frame buffer device [ 2.375632] i915 0000:00:02.0: registered panic notifier [ 2.379824] ACPI: Video Device [GFX0] (multi-head: yes rom: no post: no) [ 2.381561] acpi device:1a: registered as cooling_device4 [ 2.382998] acpi device:21: registered as cooling_device5 [ 2.383305] input: Video Bus as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input1 [ 2.383597] [drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 0 [ 2.384114] brd: module loaded [ 2.384656] loop: module loaded [ 2.385372] xhci_hcd 0000:00:14.0: xHCI Host Controller [ 2.385595] xhci_hcd 0000:00:14.0: new USB bus registered, assigned bus number 1 [ 2.385935] xhci_hcd 0000:00:14.0: cache line size of 64 is not supported [ 2.385972] xhci_hcd 0000:00:14.0: irq 129 for MSI/MSI-X [ 2.386111] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 [ 2.386275] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 2.386445] usb usb1: Product: xHCI Host Controller [ 2.386562] usb usb1: Manufacturer: Linux 3.15.0-rc5-Inari xhci_hcd [ 2.386709] usb usb1: SerialNumber: 0000:00:14.0 [ 2.387133] hub 1-0:1.0: USB hub found [ 2.387248] hub 1-0:1.0: 6 ports detected [ 2.882952] [drm] Enabling RC6 states: RC6 off, RC6p off, RC6pp off [ 2.902145] xhci_hcd 0000:00:14.0: xHCI Host Controller [ 2.902373] xhci_hcd 0000:00:14.0: new USB bus registered, assigned bus number 2 [ 2.902645] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003 [ 2.902808] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 2.902986] usb usb2: Product: xHCI Host Controller [ 2.903106] usb usb2: Manufacturer: Linux 3.15.0-rc5-Inari xhci_hcd [ 2.903253] usb usb2: SerialNumber: 0000:00:14.0 [ 2.903648] hub 2-0:1.0: USB hub found [ 2.903759] hub 2-0:1.0: 1 port detected [ 2.904266] usbcore: registered new interface driver usb-storage [ 2.904542] i8042: PNP: No PS/2 controller found. Probing ports directly. [ 3.948735] i8042: No controller found [ 3.948957] mousedev: PS/2 mouse device common for all mice [ 3.949282] ACPI Warning: Could not enable fixed event - RealTimeClock (4) (20140214/evxface-628) [ 3.949709] rtc_cmos 00:00: rtc core: registered rtc_cmos as rtc0 [ 3.949891] rtc_cmos 00:00: alarms up to one day, 242 bytes nvram [ 3.950106] i2c /dev entries driver [ 3.951549] Intel P-state driver initializing. [ 3.951683] Intel pstate controlling: cpu 0 [ 3.951828] Intel pstate controlling: cpu 1 [ 3.951964] Intel pstate controlling: cpu 2 [ 3.952098] Intel pstate controlling: cpu 3 [ 3.952325] sdhci: Secure Digital Host Controller Interface driver [ 3.952472] sdhci: Copyright(c) Pierre Ossman [ 3.953782] mmc0: no vqmmc regulator found [ 3.953884] mmc0: no vmmc regulator found [ 3.955125] mmc0: SDHCI controller on ACPI [80860F14:00] using ADMA [ 3.956666] mmc1: no vqmmc regulator found [ 3.956769] mmc1: no vmmc regulator found [ 3.958012] mmc1: SDHCI controller on ACPI [INT33BB:00] using ADMA [ 3.959650] mmc2: no vqmmc regulator found [ 3.959753] mmc2: no vmmc regulator found [ 3.961088] mmc2: SDHCI controller on ACPI [80860F14:01] using ADMA [ 3.961302] sdhci-pltfm: SDHCI platform and OF driver helper [ 3.961404] EFI Variables Facility v0.08 2004-May-17 [ 3.970815] hidraw: raw HID events driver (C) Jiri Kosina [ 3.971281] usbcore: registered new interface driver usbhid [ 3.971409] usbhid: USB HID core driver [ 3.971909] TCP: cubic registered [ 3.971966] Initializing XFRM netlink socket [ 3.972273] NET: Registered protocol family 10 [ 3.972656] sit: IPv6 over IPv4 tunneling driver [ 3.972948] NET: Registered protocol family 17 [ 3.973305] Using IPI No-Shortcut mode [ 3.973521] registered taskstats version 1 [ 3.973853] Magic number: 14:92:14 [ 3.973984] console [netcon0] enabled [ 3.974044] netconsole: network logging started [ 3.974282] PM: Hibernation image not present or could not be loaded. [ 3.974290] ALSA device list: [ 3.974340] No soundcards found. [ 3.974452] Warning: unable to open an initial console. [ 3.981024] Freeing unused kernel memory: 12096K (c1755000 - c2325000) [ 4.001010] udevd[966]: starting version 173 [ 4.071412] mmc0: BKOPS_EN bit is not set [ 4.149730] mmc0: new HS200 MMC card at address 0001 [ 4.151250] mmcblk0: mmc0:0001 HCG8e 58.2 GiB [ 4.151465] mmcblk0boot0: mmc0:0001 HCG8e partition 1 4.00 MiB [ 4.151620] mmcblk0boot1: mmc0:0001 HCG8e partition 2 4.00 MiB [ 4.151925] mmcblk0rpmb: mmc0:0001 HCG8e partition 3 4.00 MiB [ 4.152736] mmcblk0: p1 p2 [ 4.157969] mmcblk0boot1: unknown partition table [ 4.161515] usb 2-1: new SuperSpeed USB device number 2 using xhci_hcd [ 4.161749] mmcblk0boot0: [ 4.174061] usb 2-1: New USB device found, idVendor=0451, idProduct=8046 [ 4.174187] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 4.174928] hub 2-1:1.0: USB hub found [ 4.175026] hub 2-1:1.0: 4 ports detected [ 4.304448] usb 1-1: new high-speed USB device number 2 using xhci_hcd [ 4.445836] usb 1-1: New USB device found, idVendor=0451, idProduct=8044 [ 4.472022] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=1 [ 4.498081] usb 1-1: SerialNumber: 420208698DA1 [ 4.524922] hub 1-1:1.0: USB hub found [ 4.527445] Clocksource tsc unstable (delta = 64078296 ns) [ 4.575235] Switched to clocksource refined-jiffies [ 4.575303] hub 1-1:1.0: 4 ports detected [ 4.665948] usb 1-3: new high-speed USB device number 3 using xhci_hcd [ 4.812017] usb 1-3: New USB device found, idVendor=12d1, idProduct=1570 [ 4.838515] usb 1-3: New USB device strings: Mfr=5, Product=4, SerialNumber=0 [ 4.865162] usb 1-3: Product: HUAWEI Mobile Broadband Module [ 4.891982] usb 1-3: Manufacturer: Huawei Technologies Co., Ltd. [ 5.057359] usb 1-4: new high-speed USB device number 4 using xhci_hcd [ 5.244834] usb 1-4: New USB device found, idVendor=0951, idProduct=1603 [ 5.271614] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 5.298249] usb 1-4: Product: DataTraveler 2.0 [ 5.324706] usb 1-4: Manufacturer: Kingston [ 5.351290] usb 1-4: SerialNumber: 89900000000000000000017E [ 5.379013] usb-storage 1-4:1.0: USB Mass Storage device detected [ 5.405930] scsi0 : usb-storage 1-4:1.0 [ 5.472462] usb 1-1.2: new high-speed USB device number 5 using xhci_hcd [ 5.546109] usb 1-1.2: New USB device found, idVendor=0424, idProduct=7500 [ 5.572517] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 5.598796] usb 1-1.2: Product: LAN7500 [ 5.624817] usb 1-1.2: Manufacturer: SMSC [ 5.650709] usb 1-1.2: SerialNumber: 00800f11700e [ 5.722888] usb 1-1.3: new low-speed USB device number 6 using xhci_hcd [ 5.799500] usb 1-1.3: New USB device found, idVendor=046d, idProduct=c312 [ 5.825439] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 5.851433] usb 1-1.3: Product: USB Multimedia Keyboard [ 5.877277] usb 1-1.3: Manufacturer: LITEON Technology [ 5.903455] usb 1-1.3: ep 0x81 - rounding interval to 128 microframes, ep desc says 192 microframes [ 5.934342] input: LITEON Technology USB Multimedia Keyboard as /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.3/1-1.3:1.0/0003:046D:C312.0001/input/input2 [ 5.987841] hid-generic 0003:046D:C312.0001: input,hidraw0: USB HID v1.10 Keyboard [LITEON Technology USB Multimedia Keyboard] on usb-0000:00:14.0-1.3/input0 [ 6.283845] scsi 0:0:0:0: Direct-Access Kingston DataTraveler 2.0 1.00 PQ: 0 ANSI: 2 [ 6.312670] sd 0:0:0:0: Attached scsi generic sg0 type 0 [ 6.340500] sd 0:0:0:0: [sda] 7856128 512-byte logical blocks: (4.02 GB/3.74 GiB) [ 6.368763] sd 0:0:0:0: [sda] Write Protect is off [ 6.396559] sd 0:0:0:0: [sda] Mode Sense: 23 00 00 00 [ 6.396951] sd 0:0:0:0: [sda] No Caching mode page found [ 6.424634] sd 0:0:0:0: [sda] Assuming drive cache: write through [ 6.455250] sda: sda1 sda2 [ 6.493244] sd 0:0:0:0: [sda] Attached SCSI removable disk [ 7.133143] EXT4-fs (sda2): couldn't mount as ext3 due to feature incompatibilities [ 7.165576] EXT4-fs (sda2): couldn't mount as ext2 due to feature incompatibilities [ 7.377686] random: nonblocking pool is initialized [ 8.465142] EXT4-fs (sda2): recovery complete [ 8.498270] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null) [ 9.397075] udevd[1685]: starting version 173 [ 9.575548] sst-acpi 80860F28:00: Direct firmware load failed with error -2 [ 9.586011] sst-acpi 80860F28:00: Falling back to user helper [ 9.659046] smsc75xx v1.0.0 [ 9.663697] byt-rt5640 byt-rt5640: ASoC: CPU DAI Front-cpu-dai not registered [ 9.663727] platform byt-rt5640: Driver byt-rt5640 requests probe deferral [ 9.665590] input: gpio-keys as /devices/platform/gpio-keys.0.auto/input/input3 [ 9.665813] byt-rt5640 byt-rt5640: ASoC: CPU DAI Front-cpu-dai not registered [ 9.665830] platform byt-rt5640: Driver byt-rt5640 requests probe deferral [ 9.665963] input: gpio-keys as /devices/platform/gpio-keys.1.auto/input/input4 [ 9.666173] byt-rt5640 byt-rt5640: ASoC: CPU DAI Front-cpu-dai not registered [ 9.666201] platform byt-rt5640: Driver byt-rt5640 requests probe deferral [ 9.687821] sst-acpi 80860F28:00: Cannot load firmware intel/fw_sst_0f28.bin-i2s_master [ 9.740744] byt-rt5640 byt-rt5640: ASoC: CPU DAI Front-cpu-dai not registered [ 9.748565] platform byt-rt5640: Driver byt-rt5640 requests probe deferral [ 9.802203] smsc75xx 1-1.2:1.0 eth0: register 'smsc75xx' at usb-0000:00:14.0-1.2, smsc75xx USB 2.0 Gigabit Ethernet, 70:2f:97:00:22:4f [ 9.832548] byt-rt5640 byt-rt5640: ASoC: CPU DAI Front-cpu-dai not registered [ 9.832576] usbcore: registered new interface driver smsc75xx [ 9.893278] platform byt-rt5640: Driver byt-rt5640 requests probe deferral [ 17.848198] mmc0: Got data interrupt 0x00000002 even though no data operation was in progress. [ 17.881105] mmcblk0rpmb: error -110 transferring data, sector 8064, nr 8, cmd response 0x900, card status 0xb00 [ 17.912406] mmcblk0rpmb: retrying using single block read [ 17.945754] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 17.979175] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 18.012512] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 18.045642] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 18.078551] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 18.111376] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 18.141842] end_request: I/O error, dev mmcblk0rpmb, sector 8064 [ 18.172280] Buffer I/O error on device mmcblk0rpmb, logical block 1008 [ 26.412192] mmc0: Got data interrupt 0x00000002 even though no data operation was in progress. [ 26.445097] mmcblk0rpmb: error -110 transferring data, sector 8064, nr 8, cmd response 0x900, card status 0xb00 [ 26.476216] mmcblk0rpmb: retrying using single block read [ 26.509384] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 26.542804] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 26.576088] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 26.609213] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 26.642197] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 26.675018] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 26.705569] end_request: I/O error, dev mmcblk0rpmb, sector 8064 [ 26.736209] Buffer I/O error on device mmcblk0rpmb, logical block 1008 [ 34.976372] mmc0: Got data interrupt 0x00000002 even though no data operation was in progress. [ 35.009672] mmcblk0rpmb: error -110 transferring data, sector 0, nr 16, cmd response 0x900, card status 0xb00 [ 35.041225] mmcblk0rpmb: retrying using single block read [ 35.074866] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 35.108774] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 35.142514] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 35.175989] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 35.209198] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 35.242265] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 35.273048] end_request: I/O error, dev mmcblk0rpmb, sector 0 [ 35.303872] Buffer I/O error on device mmcblk0rpmb, logical block 0 [ 35.334799] end_request: I/O error, dev mmcblk0rpmb, sector 8 [ 35.365938] Buffer I/O error on device mmcblk0rpmb, logical block 1 [ 43.617294] mmc0: Got data interrupt 0x00000002 even though no data operation was in progress. [ 43.650980] mmcblk0rpmb: error -110 transferring data, sector 0, nr 8, cmd response 0x900, card status 0xb00 [ 43.682898] mmcblk0rpmb: retrying using single block read [ 43.716786] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 43.750783] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 43.784503] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 43.818029] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 43.851320] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 43.884543] mmcblk0rpmb: timed out sending r/w cmd command, card status 0x400900 [ 43.915400] end_request: I/O error, dev mmcblk0rpmb, sector 0 [ 43.946246] Buffer I/O error on device mmcblk0rpmb, logical block 0 [ 48.209694] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 49.750189] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready [ 49.780667] smsc75xx 1-1.2:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0x45E1 [ 49.815109] smsc75xx 1-1.2:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
Quoted 18 lines · Rolf Eike Beer
Quoted 16 lines · Rolf Eike Beer
Quoted 15 lines · Lan Tianyu
Quoted 14 lines · Rolf Eike Beer
Am Montag, 28. April 2014, 22:27:39 schrieb Lan Tianyu:
Quoted 10 lines
ACPI 5.0 spec(5.5.2.4.5) defines
GenericSerialBus(i2c, spi, uart)operation
region. It allows ACPI aml code able to access such kind of devices to implement some ACPI standard method.On the Asus T100TA, Bios use GenericSerialBus operation region to access
i2c device to get battery info. So battery function depends on the I2C operation region support. Here is the bug link.
https://bugzilla.kernel.org/show_bug.cgi?id=69011I have tested this series and got some errors, but no additional functionality:
Quoted 6 lines
Quoted 2 lines
this is an Aava Inari 8 tablet (pre-release hardware). Please find the DSDT and the dmesg.log attached.
It may be that I have taken the wrong ACPI files. This is the result of a fresh run of acpidump, together with the most recent dmesg.log, just in case I messed it up.
Hi Rolf:
I have check the log. I2C ACPI operation region targets to I2C controller which
has one ACPI node in the ACPI table and is associated with one I2C adapter. Graphic with one ACPI handle registers several I2C adapters. This causes attach data to the ACPI handle with the same handler several time. The ACPICA function will return ALREADY EXIST error code and causes the log you mentioned. There is no I2C ACPI operation region under graphic device node and so not break function. To avoid these noise logs, I make them only appear under dynamic debug mode in the my V3 patchset.
Quoted 28 lines
Kernel now is at 60b5f90+some patches:
8e7bd6f pinctrl: baytrail: Register GPIO chip after
chip->to_irqis set c4b2230 pinctrl: baytrail: Add back Baytrail-T ACPI ID
32f3364 gpio: Add support for Intel SoC PMIC (Crystal Cove)
088ee81 mfd:intel_soc_pmic: Build files
5315135 mfd:intel_soc_pmic: Crystal Cove support
8b5ed0b mfd:intel_soc_pmic: I2C interface
b18979f mfd:intel_soc_pmic: Core driver
5200b75 add debugging
(This is the debug patch Lan Tianyu sent as reply to the previous mail)
bd3e6c6 I2C/ACPI: AddCONFIG_I2C_ACPIconfig
947f0a1 I2C/ACPI: Move ACPI related code toi2c-acpi.c
534f182 I2C/ACPI: Add i2c ACPI operation region support
32384d4 I2C: Add smbus word/block process call helper function
aa6459e I2C: Add smbus quick read/write helper function
51825ed ACPI/Thermal: Useacpi_bus_attach_private_data()to attach private data 95e9e92 ACPI: Addacpi_bus_attach_private_data()to facilitate to attach data to ACPI handle cc6fecb ACPICA: Exportacpi_buffer_to_resourcesymbol
ad38de6 ACPI / LPSS: custom power domain for LPSS
b0caadf ACPI / PM: Export rest of the subsys functions
22a7210 ACPI / platform: add another ID for Broadcom Bluetooth and GPS chips
(this just adds AAM4752 as another platform id)
000627d ACPI / platform: add IDs for Broadcom Bluetooth and GPS chipsEike
Quoted 6 lines · Lan Tianyu
Quoted 3 lines · Rolf Eike Beer
It may be that I have taken the wrong ACPI files. This is the result of a fresh run of acpidump, together with the most recent dmesg.log, just in case I messed it up.
Quoted 8 lines
I have check the log. I2C ACPI operation region targets to I2C controller
which has one ACPI node in the ACPI table and is associated with one I2C adapter. Graphic with one ACPI handle registers several I2C adapters. This causes attach data to the ACPI handle with the same handler several time. The ACPICA function will return ALREADY EXIST error code and causes the log you mentioned. There is no I2C ACPI operation region under graphic device node and so not break function. To avoid these noise logs, I make them only appear under dynamic debug mode in the my V3 patchset.
Hi,
thanks for the clarification.
Greetings,
Eike
Signature · 7 lines
Rolf Eike Beer, emlix GmbH, http://www.emlix.com Fon +49 551 30664-0, Fax +49 551 30664-11 Bertha-von-Suttner-Str. 9, 37085 Göttingen, Germany Sitz der Gesellschaft: Göttingen, Amtsgericht Göttingen HR B 3160 Geschäftsführung: Dr. Uwe Kracke, Ust-IdNr.: DE 205 198 055 emlix - smart embedded open source