ACPI / scan: Don't create platform device for INT3515 ACPI nodes
Subsystems (2)
PATCH 1/1 ACPI / scan: Don't create platform device for INT3515 ACPI nodes
There are several reports about the tps6598x causing interrupt flood on boards with the INT3515 ACPI node, which then causes instability. There appears to be several problems with the interrupt. One problem is that the I2CSerialBus resources do not always map to the Interrupt resource with the same index, but that is not the only problem. We have not been able to come up with a solution for all the issues, and because of that disabling the device for now.
The PD controller on these platforms is autonomous, and the purpose for the driver is primarily to supply status to the userspace, so this will not affect any functionality.
--- drivers/platform/x86/i2c-multi-instantiate.c | 31 +++++++++++++++----- 1 file changed, 23 insertions(+), 8 deletions(-)
drivers/platform/x86/i2c-multi-instantiate.c +23 -8
@@ -166,13 +166,29 @@ static const struct i2c_inst_data bsg2150_data[] = { {} }; -static const struct i2c_inst_data int3515_data[] = { - {"tps6598x" ,IRQ_RESOURCE_APIC ,0 }, - {"tps6598x" ,IRQ_RESOURCE_APIC ,1 }, - {"tps6598x" ,IRQ_RESOURCE_APIC ,2 }, - {"tps6598x" ,IRQ_RESOURCE_APIC ,3 }, - {} -}; +/* +* Device with _HID INT3515 (TI PD controllers) has some unresolved interrupt +* issues. The most common problem seen is interrupt flood. +* +* There are at least two known causes. Firstly, on some boards, the +* I2CSerialBus resource index does not match the Interrupt resource, i.e. they +* are not one-to-one mapped like in the array below. Secondly, on some boards +* the irq line from the PD controller is not actually connected at all. But the +* interrupt flood is also seen on some boards where those are not a problem, so +* there are some other problems as well. +* +* Because of the issues with the interrupt, the device is disabled for now. If +* you wish to debug the issues, uncomment the below, and add an entry for the +* INT3515 device to the i2c_multi_instance__ids table. +* +* static const struct i2c_inst_data int3515_data[] = { +* { "tps6598x", IRQ_RESOURCE_APIC, 0 }, +* { "tps6598x", IRQ_RESOURCE_APIC, 1 }, +* { "tps6598x", IRQ_RESOURCE_APIC, 2 }, +* { "tps6598x", IRQ_RESOURCE_APIC, 3 }, +* { } +* }; +*/ /* * Note new device-ids must also be added to i2c_multi_instantiate_ids in
@@ -181,7 +197,6 @@ static const struct i2c_inst_data int3515_data[] = {static const struct acpi_device_id i2c_multi_inst_acpi_ids[] = { {"BSG1160" , (unsigned long )bsg1160_data }, {"BSG2150" , (unsigned long )bsg2150_data }, - {"INT3515" , (unsigned long )int3515_data }, { } };MODULE_DEVICE_TABLE (acpi, i2c_multi_inst_acpi_ids);
Signature · 1 line
2.29.2
Quoted 15 lines · Heikki Krogerus
There are several reports about the tps6598x causing interrupt flood on boards with the INT3515 ACPI node, which then causes instability. There appears to be several problems with the interrupt. One problem is that the I2CSerialBus resources do not always map to the Interrupt resource with the same index, but that is not the only problem. We have not been able to come up with a solution for all the issues, and because of that disabling the device for now.
The PD controller on these platforms is autonomous, and the purpose for the driver is primarily to supply status to the userspace, so this will not affect any functionality.
Quoted 5 lines
Reported-by Moody Salem <[email protected]>Fixes a3dd034a1707 ("ACPI / scan: Create platform device for INT3515 ACPI nodes")
BugLink: ?
Quoted 18 lines
Signed-off-by Heikki Krogerus <[email protected]>--- drivers/platform/x86/i2c-multi-instantiate.c | 31 +++++++++++++++----- 1 file changed, 23 insertions(+), 8 deletions(-)drivers/platform/x86/i2c-multi-instantiate.c +0
-5@@ -166,13 +166,29 @@ static const struct i2c_inst_data bsg2150_data[] = { {} }; -static const struct i2c_inst_data int3515_data[] = { - {"tps6598x" ,IRQ_RESOURCE_APIC ,0 }, - {"tps6598x" ,IRQ_RESOURCE_APIC ,1 }, - {"tps6598x" ,IRQ_RESOURCE_APIC ,2 }, - {"tps6598x" ,IRQ_RESOURCE_APIC ,3 },
drivers/platform/x86/i2c-multi-instantiate.c static const struct i2c_inst_data bsg2150_data[] = { · line 176
Quoted 10 lines
drivers/platform/x86/i2c-multi-instantiate.c +8
-2- {} -}; +/* +* Device with _HID INT3515 (TI PD controllers) has some unresolved interrupt +* issues. The most common problem seen is interrupt flood. +* +* There are at least two known causes. Firstly, on some boards, the +* I2CSerialBus resource index does not match the Interrupt resource, i.e. they +* are not one-to-one mapped like in the array below. Secondly, on some boards +* the irq line from the PD controller is not actually connected at all. But the
irq -> IRQ
drivers/platform/x86/i2c-multi-instantiate.c static const struct i2c_inst_data bsg2150_data[] = { · line 182
Quoted 6 lines
drivers/platform/x86/i2c-multi-instantiate.c +6
-0+* interrupt flood is also seen on some boards where those are not a problem, so +* there are some other problems as well. +* +* Because of the issues with the interrupt, the device is disabled for now. If +* you wish to debug the issues, uncomment the below, and add an entry for the +* INT3515 device to the i2c_multi_instance__ids table.
Extra _ (underscore).
Quoted 13 lines
drivers/platform/x86/i2c-multi-instantiate.c +9
-0+* +* static const struct i2c_inst_data int3515_data[] = { +* { "tps6598x", IRQ_RESOURCE_APIC, 0 }, +* { "tps6598x", IRQ_RESOURCE_APIC, 1 }, +* { "tps6598x", IRQ_RESOURCE_APIC, 2 }, +* { "tps6598x", IRQ_RESOURCE_APIC, 3 }, +* { } +* }; +*/ /* * Note new device-ids must also be added to i2c_multi_instantiate_ids in
drivers/platform/x86/i2c-multi-instantiate.c static const struct i2c_inst_data int3515_data[] = { · line 184
Quoted 4 lines
drivers/platform/x86/i2c-multi-instantiate.c +0
-1@@ -181,7 +197,6 @@ static const struct i2c_inst_data int3515_data[] = {static const struct acpi_device_id i2c_multi_inst_acpi_ids[] = { {"BSG1160" , (unsigned long )bsg1160_data }, {"BSG2150" , (unsigned long )bsg2150_data }, - {"INT3515" , (unsigned long )int3515_data },
Perhaps also comment it out and refer to the above note?
Quoted 6 lines
drivers/platform/x86/i2c-multi-instantiate.c +0
-1{ } };MODULE_DEVICE_TABLE (acpi, i2c_multi_inst_acpi_ids); --2.29.2
Signature · 2 lines
With Best Regards, Andy Shevchenko
Hi,
Quoted 14 lines · Heikki Krogerus
There are several reports about the tps6598x causing interrupt flood on boards with the INT3515 ACPI node, which then causes instability. There appears to be several problems with the interrupt. One problem is that the I2CSerialBus resources do not always map to the Interrupt resource with the same index, but that is not the only problem. We have not been able to come up with a solution for all the issues, and because of that disabling the device for now.
The PD controller on these platforms is autonomous, and the purpose for the driver is primarily to supply status to the userspace, so this will not affect any functionality.
Quoted 5 lines
Reported-by Moody Salem <[email protected]>Fixes a3dd034a1707 ("ACPI / scan: Create platform device for INT3515 ACPI nodes")Signed-off-by Heikki Krogerus <[email protected]>
Thank you for your patch, I've applied this patch to my review-hans branch:
https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/log/?h=review-hans
Note it will show up in my review-hans branch once I've pushed my local branch there, which might take a while.
Once I've run some tests on this branch the patches there will be added to the platform-drivers-x86/for-next branch and eventually will be included in the pdx86 pull-request to Linus for the next merge-window.
Regards,
Hans
Quoted 54 lines
--- drivers/platform/x86/i2c-multi-instantiate.c | 31 +++++++++++++++----- 1 file changed, 23 insertions(+), 8 deletions(-)drivers/platform/x86/i2c-multi-instantiate.c +23
-8@@ -166,13 +166,29 @@ static const struct i2c_inst_data bsg2150_data[] = { {} }; -static const struct i2c_inst_data int3515_data[] = { - {"tps6598x" ,IRQ_RESOURCE_APIC ,0 }, - {"tps6598x" ,IRQ_RESOURCE_APIC ,1 }, - {"tps6598x" ,IRQ_RESOURCE_APIC ,2 }, - {"tps6598x" ,IRQ_RESOURCE_APIC ,3 }, - {} -}; +/* +* Device with _HID INT3515 (TI PD controllers) has some unresolved interrupt +* issues. The most common problem seen is interrupt flood. +* +* There are at least two known causes. Firstly, on some boards, the +* I2CSerialBus resource index does not match the Interrupt resource, i.e. they +* are not one-to-one mapped like in the array below. Secondly, on some boards +* the irq line from the PD controller is not actually connected at all. But the +* interrupt flood is also seen on some boards where those are not a problem, so +* there are some other problems as well. +* +* Because of the issues with the interrupt, the device is disabled for now. If +* you wish to debug the issues, uncomment the below, and add an entry for the +* INT3515 device to the i2c_multi_instance__ids table. +* +* static const struct i2c_inst_data int3515_data[] = { +* { "tps6598x", IRQ_RESOURCE_APIC, 0 }, +* { "tps6598x", IRQ_RESOURCE_APIC, 1 }, +* { "tps6598x", IRQ_RESOURCE_APIC, 2 }, +* { "tps6598x", IRQ_RESOURCE_APIC, 3 }, +* { } +* }; +*/ /* * Note new device-ids must also be added to i2c_multi_instantiate_ids in @@ -181,7 +197,6 @@ static const struct i2c_inst_data int3515_data[] = {static const struct acpi_device_id i2c_multi_inst_acpi_ids[] = { {"BSG1160" , (unsigned long )bsg1160_data }, {"BSG2150" , (unsigned long )bsg2150_data }, - {"INT3515" , (unsigned long )int3515_data }, { } };MODULE_DEVICE_TABLE (acpi, i2c_multi_inst_acpi_ids);
Quoted 25 lines · Hans de Goede
Quoted 14 lines · Heikki Krogerus
There are several reports about the tps6598x causing interrupt flood on boards with the INT3515 ACPI node, which then causes instability. There appears to be several problems with the interrupt. One problem is that the I2CSerialBus resources do not always map to the Interrupt resource with the same index, but that is not the only problem. We have not been able to come up with a solution for all the issues, and because of that disabling the device for now.
The PD controller on these platforms is autonomous, and the purpose for the driver is primarily to supply status to the userspace, so this will not affect any functionality.
Quoted 5 lines
Reported-by Moody Salem <[email protected]>Fixes a3dd034a1707 ("ACPI / scan: Create platform device for INT3515 ACPI nodes")Signed-off-by Heikki Krogerus <[email protected]>Thank you for your patch, I've applied this patch to my review-hans branch:
https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/log/?h=review-hans
Quoted 7 lines
Note it will show up in my review-hans branch once I've pushed my local branch there, which might take a while.
Once I've run some tests on this branch the patches there will be added to the platform-drivers-x86/for-next branch and eventually will be included in the pdx86 pull-request to Linus for the next merge-window.
I'm wondering if my reply has been seen...
Signature · 2 lines
With Best Regards, Andy Shevchenko
Hi,
Quoted 29 lines · Andy Shevchenko
Quoted 28 lines · Hans de Goede
Quoted 14 lines · Heikki Krogerus
There are several reports about the tps6598x causing interrupt flood on boards with the INT3515 ACPI node, which then causes instability. There appears to be several problems with the interrupt. One problem is that the I2CSerialBus resources do not always map to the Interrupt resource with the same index, but that is not the only problem. We have not been able to come up with a solution for all the issues, and because of that disabling the device for now.
The PD controller on these platforms is autonomous, and the purpose for the driver is primarily to supply status to the userspace, so this will not affect any functionality.
Quoted 5 lines
Reported-by Moody Salem <[email protected]>Fixes a3dd034a1707 ("ACPI / scan: Create platform device for INT3515 ACPI nodes")Signed-off-by Heikki Krogerus <[email protected]>Thank you for your patch, I've applied this patch to my review-hans branch:
https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/log/?h=review-hansNote it will show up in my review-hans branch once I've pushed my local branch there, which might take a while.
Quoted 8 lines
Quoted 4 lines
Once I've run some tests on this branch the patches there will be added to the platform-drivers-x86/for-next branch and eventually will be included in the pdx86 pull-request to Linus for the next merge-window.
I'm wondering if my reply has been seen...
Yes I've done the s/Link/BugLink/ in the commit msg and fixed up the typo-s in the comment block locally. I should have mentioned that in my reply instead of just blindly using the template-reply which I have for this, sorry; and thank you for the review.
Regards,
Hans
Quoted 1 line · Hans de Goede
On 1/4/21 1:23 PM, Andy Shevchenko wrote:
...
Quoted 8 lines
Quoted 3 lines
I'm wondering if my reply has been seen...
Yes I've done the s/Link/BugLink/ in the commit msg and fixed up the typo-s in the comment block locally. I should have mentioned that in my reply instead of just blindly using the template-reply which I have for this, sorry; and thank you for the review.
Ah, thanks!
No problem.
Signature · 2 lines
With Best Regards, Andy Shevchenko