提交 1e2776c3 编写于 作者: T Tomas Winkler 提交者: Greg Kroah-Hartman

mei: fix max number of open handles

There was internal confusion in wether bus message
clinet (0) is counted in or not

The bitmap me_clients_map that accomodate
was initialized w/o it (255) but later on it
the clinet 0 was reserved

Thus were able to open only 252 instead of 253 clients
Signed-off-by: NTomas Winkler <tomas.winkler@intel.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 daed6b5e
...@@ -55,20 +55,22 @@ extern const uuid_le mei_wd_guid; ...@@ -55,20 +55,22 @@ extern const uuid_le mei_wd_guid;
*/ */
extern const u8 mei_wd_state_independence_msg[3][4]; extern const u8 mei_wd_state_independence_msg[3][4];
/*
* Number of Maximum MEI Clients
*/
#define MEI_CLIENTS_MAX 256
/* /*
* Number of File descriptors/handles * Number of File descriptors/handles
* that can be opened to the driver. * that can be opened to the driver.
* *
* Limit to 253: 255 Total Clients * Limit to 253: 256 Total Clients
* minus internal client for MEI Bus Messags
* minus internal client for AMTHI * minus internal client for AMTHI
* minus internal client for Watchdog * minus internal client for Watchdog
*/ */
#define MEI_MAX_OPEN_HANDLE_COUNT 253 #define MEI_MAX_OPEN_HANDLE_COUNT (MEI_CLIENTS_MAX - 3)
/*
* Number of Maximum MEI Clients
*/
#define MEI_CLIENTS_MAX 255
/* File state */ /* File state */
enum file_state { enum file_state {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册