From 5a3a0664b63feba8aff288a5691a9f873e4ea6eb Mon Sep 17 00:00:00 2001 From: Suraj Jitindar Singh Date: Thu, 27 Apr 2017 11:55:26 +1000 Subject: mboxd: Implement timeout return value in GET_MBOX_INFO The previous patch added a new return field in GET_MBOX_INFO called "suggested timeout" to be used to provide a suggested maximum timeout value to the host. Add this to the return arguments of GET_MBOX_INFO. Note that the host is free to ignore the value and the daemon can leave this blank if it doesn't want to provide a timeout. We hard code a milliseconds per megabyte value which was determined to be approximately 8000 based on testing and is close to linear as the access size changes. Testing was conducted on an Aspeed ast2500 on a Witherspoon with the dev-4.7 OpenBMC branch. Signed-off-by: Suraj Jitindar Singh Change-Id: If24e41ebb1d9f03c2bdcca84819f9430fd3eeff6 --- mboxd_windows.h | 1 + 1 file changed, 1 insertion(+) (limited to 'mboxd_windows.h') diff --git a/mboxd_windows.h b/mboxd_windows.h index 3625521..925697c 100644 --- a/mboxd_windows.h +++ b/mboxd_windows.h @@ -40,6 +40,7 @@ void close_current_window(struct mbox_context *context, bool set_bmc_event, void reset_window(struct mbox_context *context, struct window_context *window); void reset_all_windows(struct mbox_context *context, bool set_bmc_event); struct window_context *find_oldest_window(struct mbox_context *context); +struct window_context *find_largest_window(struct mbox_context *context); struct window_context *search_windows(struct mbox_context *context, uint32_t offset, bool exact); int create_map_window(struct mbox_context *context, -- cgit v1.2.1