ACPI / IPMI: change warning to debug on timeout
Subsystems (2)
PATCH 1/1 ACPI / IPMI: change warning to debug on timeout
Getting timeout message from BMC when trying to read from a non-existent FRU. This is expected but warning is not.
Let's reduce the warning to debug.
--- drivers/acpi/acpi_ipmi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/acpi/acpi_ipmi.c +1 -2
@@ -429,8 +429,7 @@ static void ipmi_msg_handler(struct ipmi_recv_msg *msg, void *user_msg_data)if (msg->recv_type ==IPMI_RESPONSE_RECV_TYPE && msg->msg.data_len ==1 ) {if (msg->msg.data[0 ] ==IPMI_TIMEOUT_COMPLETION_CODE ) { -dev_WARN_ONCE (dev, true, -"Unexpected response (timeout).\n" ); +dev_dbg_once (dev,"Unexpected response (timeout).\n" ); tx_msg->msg_done =ACPI_IPMI_TIMEOUT ; } goto out_comp;
Signature · 1 line
1.9.1
Why would a timeout for a message be expected? The BMC should at least respond with an error for an incorrect message.
-corey
Quoted 24 lines · Sinan Kaya
Getting timeout message from BMC when trying to read from a non-existent FRU. This is expected but warning is not.
Let's reduce the warning to debug.
Signed-off-by Sinan Kaya <[email protected]>--- drivers/acpi/acpi_ipmi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/acpi/acpi_ipmi.c +1
-2@@ -429,8 +429,7 @@ static void ipmi_msg_handler(struct ipmi_recv_msg *msg, void *user_msg_data)if (msg->recv_type ==IPMI_RESPONSE_RECV_TYPE && msg->msg.data_len ==1 ) {if (msg->msg.data[0 ] ==IPMI_TIMEOUT_COMPLETION_CODE ) { -dev_WARN_ONCE (dev, true, -"Unexpected response (timeout).\n" ); +dev_dbg_once (dev,"Unexpected response (timeout).\n" ); tx_msg->msg_done =ACPI_IPMI_TIMEOUT ; } goto out_comp;
Quoted 2 lines · Corey Minyard
Why would a timeout for a message be expected? The BMC should at least respond with an error for an incorrect message.
Let me add some more context...
In this particular case, the FRU ID that I was trying to access was correct.
Platform supports PCIe hotplug. The FRU is embedded into the HW that is being removed. That's what I mean by non-existent.
When the device is ejected and a FRU command is executed, BMC times out reaching to the FRU on the device.
When the device is inserted, everything works as expected.
Quoted 31 lines
-corey
Quoted 24 lines · Sinan Kaya
Getting timeout message from BMC when trying to read from a non-existent FRU. This is expected but warning is not.
Let's reduce the warning to debug.
Signed-off-by Sinan Kaya <[email protected]>--- drivers/acpi/acpi_ipmi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/acpi/acpi_ipmi.c +1
-2@@ -429,8 +429,7 @@ static void ipmi_msg_handler(struct ipmi_recv_msg *msg, void *user_msg_data)if (msg->recv_type ==IPMI_RESPONSE_RECV_TYPE && msg->msg.data_len ==1 ) {if (msg->msg.data[0 ] ==IPMI_TIMEOUT_COMPLETION_CODE ) { -dev_WARN_ONCE (dev, true, -"Unexpected response (timeout).\n" ); +dev_dbg_once (dev,"Unexpected response (timeout).\n" ); tx_msg->msg_done =ACPI_IPMI_TIMEOUT ; } goto out_comp;
Signature · 3 lines
Sinan Kaya Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.
Corey Minyard
Acked-byQuoted 8 lines · Sinan Kaya
Quoted 2 lines · Corey Minyard
Why would a timeout for a message be expected? The BMC should at least respond with an error for an incorrect message.
Let me add some more context...
In this particular case, the FRU ID that I was trying to access was correct.
Quoted 7 lines
Platform supports PCIe hotplug. The FRU is embedded into the HW that is being removed. That's what I mean by non-existent.
When the device is ejected and a FRU command is executed, BMC times out reaching to the FRU on the device.
When the device is inserted, everything works as expected.
I haven't added this yet. Someone who knows more about the ACPI side of IPMI should probably comment. So I've added Lv Zheng.
This is ok with me, though. If you remove a management controller, a timeout is expected. However, if the management controller is still present, a timeout is probably not the best error code, "destination unavailable" is probably a better choice.
So:
-corey
Quoted 31 lines
Quoted 30 lines
-corey
Quoted 24 lines · Sinan Kaya
Getting timeout message from BMC when trying to read from a non-existent FRU. This is expected but warning is not.
Let's reduce the warning to debug.
Signed-off-by Sinan Kaya <[email protected]>--- drivers/acpi/acpi_ipmi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/acpi/acpi_ipmi.c +1
-2@@ -429,8 +429,7 @@ static void ipmi_msg_handler(struct ipmi_recv_msg *msg, void *user_msg_data)if (msg->recv_type ==IPMI_RESPONSE_RECV_TYPE && msg->msg.data_len ==1 ) {if (msg->msg.data[0 ] ==IPMI_TIMEOUT_COMPLETION_CODE ) { -dev_WARN_ONCE (dev, true, -"Unexpected response (timeout).\n" ); +dev_dbg_once (dev,"Unexpected response (timeout).\n" ); tx_msg->msg_done =ACPI_IPMI_TIMEOUT ; } goto out_comp;
Rafael J. Wysocki
maintainerQuoted 33 lines · Corey Minyard
Quoted 11 lines · Sinan Kaya
Quoted 3 lines · Corey Minyard
Why would a timeout for a message be expected? The BMC should at least respond with an error for an incorrect message.
Let me add some more context...
In this particular case, the FRU ID that I was trying to access was correct.
Quoted 7 lines
Platform supports PCIe hotplug. The FRU is embedded into the HW that is being removed. That's what I mean by non-existent.
When the device is ejected and a FRU command is executed, BMC times out reaching to the FRU on the device.
When the device is inserted, everything works as expected.
I haven't added this yet. Someone who knows more about the ACPI side of IPMI
should probably comment. So I've added Lv Zheng.This is ok with me, though. If you remove a management controller, a timeout is
expected. However, if the management controller is still present, a timeout is
probably not the best error code, "destination unavailable" is probably a better
choice.
Quoted 5 lines
So:
Acked-by Corey Minyard <[email protected]>-corey
FWIW, this change is fine by me, so please feel free to route this through the IPMI tree along with the other patch from Sinan.
Thanks,
Rafael
Quoted 30 lines · Rafael J. Wysocki
Quoted 29 lines · Corey Minyard
Quoted 8 lines · Sinan Kaya
Quoted 2 lines · Corey Minyard
Why would a timeout for a message be expected? The BMC should at least respond with an error for an incorrect message.
Let me add some more context...
In this particular case, the FRU ID that I was trying to access was correct.
Quoted 7 lines
Platform supports PCIe hotplug. The FRU is embedded into the HW that is being removed. That's what I mean by non-existent.
When the device is ejected and a FRU command is executed, BMC times out reaching to the FRU on the device.
When the device is inserted, everything works as expected.
I haven't added this yet. Someone who knows more about the ACPI side of IPMI
should probably comment. So I've added Lv Zheng.This is ok with me, though. If you remove a management controller, a timeout is
expected. However, if the management controller is still present, a timeout is
probably not the best error code, "destination unavailable" is probably a better
choice.
Quoted 7 lines
Quoted 5 lines
So:
Acked-by Corey Minyard <[email protected]>-corey
FWIW, this change is fine by me, so please feel free to route this through the IPMI tree along with the other patch from Sinan.
Ok, done, with your ack added.
Thanks,
-corey
Quoted 2 lines
Thanks,
Rafael