Async Event test
Hello.
I want to test the asynchronous event xith my controller. Has this feature been implemented in the Linux driver ?
I want to request asynchronous event to my controller, then I will instrument my controller to simulate event.
I don't know what is going to do the driver in such case and how to have access to the asynchronous event information.
Do you have any solutions to test it ?
Thanks.
Regards.
Olivier.
Hi, Olivier.
Cannot speak for everyone or even suggest a specific Linux solution for that matter, but here's what "I" did to test other vendor's async event handling:
- Started one or more Asynchronous Event Request operations, then
- Issued operations in error to insure that the AER ended and contained a valid response.
Amongst other things, I tried writing an invalid doorbell value (past the queue length), and an invalid LBA (past the size of the device).
I suggest this so that you do not have to make any specific changes on the controller side to support this "black box" test (well, other than to make sure the controller works in the first place).
Good luck.
Jim B.
-----Original Message-----
From: Linux-nvme [mailto:[email protected]] On Behalf Of Olivier Mallinger
Sent: Wednesday, February 18, 2015 8:50 AM
To: linux-nvme at lists.infradead.org
Subject: Async Event test
Hello.
I want to test the asynchronous event xith my controller. Has this feature been implemented in the Linux driver ?
I want to request asynchronous event to my controller, then I will instrument my controller to simulate event.
I don't know what is going to do the driver in such case and how to have access to the asynchronous event information.
Do you have any solutions to test it ?
Thanks.
Regards.
Olivier.
_______________________________________________
Linux-nvme mailing list
Linux-nvme at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-nvme
Quoted 10 lines · Olivier Mallinger
Hello.
I want to test the asynchronous event xith my controller. Has this feature been implemented in the Linux driver ?
I want to request asynchronous event to my controller, then I will instrument my controller to simulate event.
I don't know what is going to do the driver in such case and how to have access to the asynchronous event information.
Do you have any solutions to test it ?
The driver submits mutliple async requests. The number sent is either the device's max or 8, which ever is smaller. When the driver sees a completion, it writes a message to the kernel log then submits another request. If anyone has a better idea how to report async events, I'm all for it.
To test, I just set the temperature threshold to below the current temparature to trigger the smart async event.
Hello.
Thanks for you answer. I will try your solutions.
Regards.
Olivier.
Le 18/02/2015 23:45, Keith Busch a ?crit :
Quoted 20 lines · Olivier Mallinger
Quoted 10 lines
Hello.
I want to test the asynchronous event xith my controller. Has this feature been implemented in the Linux driver ?
I want to request asynchronous event to my controller, then I will instrument my controller to simulate event.
I don't know what is going to do the driver in such case and how to have access to the asynchronous event information.
Do you have any solutions to test it ?The driver submits mutliple async requests. The number sent is either the device's max or 8, which ever is smaller. When the driver sees a completion, it writes a message to the kernel log then submits another request. If anyone has a better idea how to report async events, I'm all for it.
To test, I just set the temperature threshold to below the current temparature to trigger the smart async event.