Received: by 2002:a05:7208:13ca:b0:7f:395a:35b6 with SMTP id r10csp6651rbe; Wed, 28 Feb 2024 08:58:25 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUfZcDdYgUbXNn1wdYNLPQraBT4gOJziya6Xx2SDmX0udIAX2rsqSFFtWvrzuO3iZsbGFkVilLz/VQSm67Ch2GE8rjP4K6X3VsGI4XUvw== X-Google-Smtp-Source: AGHT+IGgsqR4Cyn2OGs7e+rC2R9M67i1a9W3Lhm2w5Aejeaa9nCX3W/uCjJdhcqujFfPmee0He4T X-Received: by 2002:a17:906:2c4a:b0:a43:a4a1:1945 with SMTP id f10-20020a1709062c4a00b00a43a4a11945mr180921ejh.75.1709139505298; Wed, 28 Feb 2024 08:58:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709139505; cv=pass; d=google.com; s=arc-20160816; b=cabUxiCi0oif0zVepD31RVLHPlPHZJTweQBHFqkPA71ZBXjTBE5X6hnHiHd/TD9M4M JsZwzGI0QZLHbEBOAC9xGCsM5XCVGK9Jbn1TPRz2yFOujFWqbL+QdbJJmCJF51SGvRIe kiwZ5WSVoYJjbnZ/3RehiB5e8ogExR9CgRGELmk2YlKyIlzA583ZklzSY1T3icW2L1YM BagZT/ba/94NOhk2I2dBmx8wDOYrp6PCJCLEVibWrNq/qQCX86N4Z4KsOKk4u4guS/YS EmF1LrartPEu7jCtC3KgJOxvII3k0QkXGpeNJryGpqgymLBj9jryYZqvwS7ANU31dWM6 iDOg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=HwhAUp87s5q9FoPutXxfvNUi0FHzKQky4klhr+teCNU=; fh=iWkGsoy7TPTmscZDaNwAhCaNzZd4htfetWN3qPRQ3vU=; b=Y8Bjh7cv+073s+8wJ6C2HKpoa+fFMXBwurL3KiJHq9qZx9IgcQBaUkttwkmv8+vgfu e/UPwaKNbSnUUpH3hLlmvzJmBxZzor8iXBggHspUXQsh7TNZx9yrmzSltwsX75NIZdo/ vv1vVu2K3+B1cozMJQVSOt74Kope8/abEOnfYShPGWlHZQc5cQQrdihV4ks+zHxt+vOY GDbdoejuKOLVTqN2aomRs/qxgFx5Nd6wLeobtMEoTaooG7LFBksb4TibupKjwXQ6xaAy QJvDXIUvz0nB2o8JECO06phlB4d2t2ffolDQWzA/ZhUPi5ylJH2vT2lzue1+AlCqJ9Yj v4ww==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=NphCj0O2; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-85399-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85399-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id k6-20020a170906680600b00a43ffa55983si749298ejr.748.2024.02.28.08.58.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 08:58:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-85399-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=NphCj0O2; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-85399-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85399-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id DCA261F26BF9 for ; Wed, 28 Feb 2024 16:58:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C1B5D208D7; Wed, 28 Feb 2024 16:57:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="NphCj0O2" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 872EA3FBB7 for ; Wed, 28 Feb 2024 16:57:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.17 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709139449; cv=none; b=LIWVybOIrJ8EBrNsrdDqGVwJ35H4l0YzLVIBV6fSTqpMW3W4LYWzx0A/Y9Xe12lSCdS5K8N9y1d4Gl5Rqth2zRjbCgDH0V7aIZU2rQlI7CoVzorTLYeQPuox0KAiYfkkvUXAN2bFNrwZPMV0Q4h0RS5yq4QVVmyQv90yZpY4qMY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709139449; c=relaxed/simple; bh=Ztn1ISsr+ww0L63y9IS9gk+ABQmLXaSuSOq9U/IgZcw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=tlZf4ZGsHKQuXi/izIpJTEdfjPQe3xZZn728tF6buiN/Fak/Knufeve+SUUttdzBViKrItYCv73EXNtVI6Uz5AL2SP79s70AHBrdwzD4jrhC77MMbJYCo0lkzHW0LLHi8xHsFzePOME7igA0IcouEP+JCyhXU/GwUqkydcd6dxU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=NphCj0O2; arc=none smtp.client-ip=192.198.163.17 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1709139444; x=1740675444; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Ztn1ISsr+ww0L63y9IS9gk+ABQmLXaSuSOq9U/IgZcw=; b=NphCj0O27vmOkoye8GYhb2ipqFpRZd3solMba4NCGxmEbJ2uBua8FUpz Mism33QNIGPQ8E1mW111fp1eUfkA5eTjWLwtjT+3NivJOGuJ2Rro9Ieaj rLBvAMqHS/XiBBBswnqu+lRp1DJAQFvRY8z7m56D5tC8m95b0ndLza3nP GJy9DydCVgSVkHTcNiAJjEEfSyfDT9NzyUvzzGu7dzRMfykBIfqhyZlZ2 hBNIUH62s4tZTrKUWTuUj12isMItolKGFCs9c+acBiJoN3TltVf6fM1LV irCMaTNOLAP0Rwq2r+FUeV7fvdl45LKR3spgDmwo5D8YC7480BwzeRIB+ Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10998"; a="3401222" X-IronPort-AV: E=Sophos;i="6.06,190,1705392000"; d="scan'208";a="3401222" Received: from orviesa005.jf.intel.com ([10.64.159.145]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Feb 2024 08:57:24 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,190,1705392000"; d="scan'208";a="12213455" Received: from josouza-mobl2.bz.intel.com ([10.87.243.88]) by orviesa005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Feb 2024 08:57:23 -0800 From: =?UTF-8?q?Jos=C3=A9=20Roberto=20de=20Souza?= To: linux-kernel@vger.kernel.org, intel-xe@lists.freedesktop.org Cc: Rodrigo Vivi , Jonathan Cavitt , =?UTF-8?q?Jos=C3=A9=20Roberto=20de=20Souza?= Subject: [PATCH v2 4/4] drm/xe: Increase devcoredump timeout Date: Wed, 28 Feb 2024 08:57:09 -0800 Message-ID: <20240228165709.82089-4-jose.souza@intel.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240228165709.82089-1-jose.souza@intel.com> References: <20240228165709.82089-1-jose.souza@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 5 minutes is too short for a regular user to search and understand what he needs to do to report capture devcoredump and report a bug to us, so here increasing this timeout to 1 hour. Cc: Rodrigo Vivi Cc: Jonathan Cavitt Signed-off-by: José Roberto de Souza --- drivers/gpu/drm/xe/xe_devcoredump.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/xe/xe_devcoredump.c b/drivers/gpu/drm/xe/xe_devcoredump.c index 3fef81396fe8a..a26aac63d6ecf 100644 --- a/drivers/gpu/drm/xe/xe_devcoredump.c +++ b/drivers/gpu/drm/xe/xe_devcoredump.c @@ -52,6 +52,9 @@ #ifdef CONFIG_DEV_COREDUMP +/* 1 hour timeout */ +#define XE_COREDUMP_TIMEOUT_JIFFIES (60 * 60 * HZ) + static struct xe_device *coredump_to_xe(const struct xe_devcoredump *coredump) { return container_of(coredump, struct xe_device, devcoredump); @@ -230,8 +233,9 @@ void xe_devcoredump(struct xe_sched_job *job) drm_info(&xe->drm, "Check your /sys/class/drm/card%d/device/devcoredump/data\n", xe->drm.primary->index); - dev_coredumpm(xe->drm.dev, THIS_MODULE, coredump, 0, GFP_KERNEL, - xe_devcoredump_read, xe_devcoredump_free); + dev_coredumpm_timeout(xe->drm.dev, THIS_MODULE, coredump, 0, GFP_KERNEL, + xe_devcoredump_read, xe_devcoredump_free, + XE_COREDUMP_TIMEOUT_JIFFIES); } static void xe_driver_devcoredump_fini(struct drm_device *drm, void *arg) -- 2.44.0