All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] devcoredump: increase the device delete timeout to 10 mins
@ 2022-02-08 19:44 ` Abhinav Kumar
  0 siblings, 0 replies; 41+ messages in thread
From: Abhinav Kumar @ 2022-02-08 19:44 UTC (permalink / raw)
  To: johannes, linux-kernel
  Cc: rafael, linux-arm-msm, Abhinav Kumar, dri-devel, swboyd, khsieh,
	nganji, seanpaul, gregkh, dmitry.baryshkov, aravindh, freedreno

There are cases where depending on the size of the devcoredump and the speed
at which the usermode reads the dump, it can take longer than the current 5 mins
timeout.

This can lead to incomplete dumps as the device is deleted once the timeout expires.

One example is below where it took 6 mins for the devcoredump to be completely read.

04:22:24.668 23916 23994 I HWDeviceDRM::DumpDebugData: Opening /sys/class/devcoredump/devcd6/data
04:28:35.377 23916 23994 W HWDeviceDRM::DumpDebugData: Freeing devcoredump node

Increase the timeout to 10 mins to accommodate system delays and large coredump
sizes.

Signed-off-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
---
 drivers/base/devcoredump.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/base/devcoredump.c b/drivers/base/devcoredump.c
index f4d794d..6b83ae5 100644
--- a/drivers/base/devcoredump.c
+++ b/drivers/base/devcoredump.c
@@ -18,8 +18,8 @@ static struct class devcd_class;
 /* global disable flag, for security purposes */
 static bool devcd_disabled;
 
-/* if data isn't read by userspace after 5 minutes then delete it */
-#define DEVCD_TIMEOUT	(HZ * 60 * 5)
+/* if data isn't read by userspace after 10 minutes then delete it */
+#define DEVCD_TIMEOUT	(HZ * 60 * 10)
 
 struct devcd_entry {
 	struct device devcd_dev;
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 41+ messages in thread

end of thread, other threads:[~2022-03-11 11:54 UTC | newest]

Thread overview: 41+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-08 19:44 [PATCH] devcoredump: increase the device delete timeout to 10 mins Abhinav Kumar
2022-02-08 19:44 ` Abhinav Kumar
2022-02-08 20:35 ` Johannes Berg
2022-02-08 20:35   ` Johannes Berg
2022-02-08 21:04   ` Abhinav Kumar
2022-02-08 21:04     ` Abhinav Kumar
2022-02-08 21:12     ` Johannes Berg
2022-02-08 21:12       ` Johannes Berg
2022-02-08 21:40       ` Abhinav Kumar
2022-02-08 21:40         ` Abhinav Kumar
2022-02-08 21:54         ` Johannes Berg
2022-02-09  1:55           ` Abhinav Kumar
2022-02-09  1:55             ` Abhinav Kumar
2022-02-09  7:50             ` Johannes Berg
2022-02-09 16:29               ` Abhinav Kumar
2022-02-09 16:29                 ` Abhinav Kumar
2022-02-11 11:09             ` Greg KH
2022-02-11 11:09               ` Greg KH
2022-02-11 11:09 ` Greg KH
2022-02-11 11:09   ` Greg KH
2022-02-11 18:59   ` Abhinav Kumar
2022-02-11 18:59     ` Abhinav Kumar
2022-02-12  7:04     ` Greg KH
2022-02-12  7:04       ` Greg KH
2022-02-12  7:52       ` Abhinav Kumar
2022-02-12  7:52         ` Abhinav Kumar
2022-02-12  8:24         ` Johannes Berg
2022-02-12  8:24           ` Johannes Berg
2022-02-12  8:35           ` Abhinav Kumar
2022-02-12  8:35             ` Abhinav Kumar
2022-02-28 21:38             ` Abhinav Kumar
2022-02-28 21:38               ` Abhinav Kumar
2022-03-01  6:48               ` David Laight
2022-03-01 17:45                 ` Rob Clark
2022-03-01 17:45                   ` Rob Clark
2022-03-11 11:53                   ` Johannes Berg
2022-03-11 11:53                     ` Johannes Berg
2022-02-12  8:29         ` Greg KH
2022-02-12  8:29           ` Greg KH
2022-02-12  8:33           ` Abhinav Kumar
2022-02-12  8:33             ` Abhinav Kumar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.