Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp514639lqp; Tue, 11 Jun 2024 10:47:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWlY+H9H6VdKI8cu0pYEsaYIX+EuNAjzDkaGuaKKT7msGoloZb3OloV1n9m7ap3nJoT0qmX52oWSLBDlR63/1s4ufRBIICQk3XBeG0l/w== X-Google-Smtp-Source: AGHT+IEGwnuRAmtc0icXyxOry3OVx5OjYBvwHE2YkiYtgobhAGX5wvHwtNCF2rPGUfzSkIgcBm1L X-Received: by 2002:a05:620a:4404:b0:795:d7d4:219c with SMTP id af79cd13be357-795d7d4258bmr699476485a.16.1718128062881; Tue, 11 Jun 2024 10:47:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718128062; cv=pass; d=google.com; s=arc-20160816; b=BeEEKlvZSJick1BOmmZR3TwU3Gmb9VTkF0pbE6UK3VO3JO8L3jgCAcOD8U5Jv/UcXU w0t0jfIIKaw+3IXqQfdpGd64tef6BeQ8h17d061gmBustnb9r3Dcemmlvh/g+ZzXugAd 8SHv415JGmNqSeAqxn+58O/ECmxZkUjLSLSVVMICbHriDBAGwsXXEe9Cb9W2wEpR+QAC +FjuZQ7TNBGhD+0rn/F1aEEnGbWA2el+Dk+Xiyw+QgItAhgmg0uNbgNzes/jnwyXAXEJ ytUC3Sj1eVoPuYFzszQq1BRT08zz2EPEZ4nSxhqdWy57qZfjHIPbP/US9moblXXo1L3X rsRg== 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=i7HhpgEHT7i+IuzLW91CamSx061HYIzUVgeHk/ZXFqU=; fh=iWkGsoy7TPTmscZDaNwAhCaNzZd4htfetWN3qPRQ3vU=; b=0KICq+DsGngQjLAjdYxfmevWFrqynqRWuISlYVJ4wdjfX7a4O29Q26UACk9Ct4b4ur wdwqDRJ5HEYr5q/40oFM0mvvkf+aW0Bi4q7TzVSiwYCOMlnL5byFrI83kH9LYf/JgDo8 gVUtehxSP9rbuLksPjfKxCXg44EjUKq99Ep+ZjrlSfgYSUs6z2MgQlNTYvEiFX414ICD 6VftekFVuAfw1ysvWyw3L6UxuFZKpEoPB5yjT6AfFQIZiT435sBTvfVRqz/TVOymtQ3c 4RCwAP3Z1sOAxmURWKupsU2sO1tAPsc0K7+8227GxrynKNMQF3Hu+pkiTCs9CXfvr0gV Do6A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=J7UcGnXD; 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-210351-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210351-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-440d57e7ab9si54519021cf.104.2024.06.11.10.47.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 10:47:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-210351-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=J7UcGnXD; 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-210351-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210351-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 934761C24D63 for ; Tue, 11 Jun 2024 17:47:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6DD885B5B6; Tue, 11 Jun 2024 17:47:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="J7UcGnXD" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.15]) (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 BEA061CD2B for ; Tue, 11 Jun 2024 17:47:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.15 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718128049; cv=none; b=FKZpTOXW3Tr6BG+RNzmqJGZz+3Bb494bV7dcOURq+AEiPSpzvsgJ0UCzUlmUi+J8JApYzXskqeQF12MgnCanl0XFqFe0DuOAolAeL2VUccR0alXbzYsCEKf+JRq9Ys1QC+dgMugA1GmlgGNNaHx346SOaK6HBl2l1RRg6Hf2p9U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718128049; c=relaxed/simple; bh=/XdZHubJ6eMhZ1fMCUnTP4sNv9CCswIT96ACgXjCY40=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=WoOU4XhN/prD5DR2pv0rh0MRzmGRUmEH7CEgsks4H5ULQ7ERowZICQw/jpPbSb2BjMEM2dxRmiZ9tkXZq2qi/FQ9sVMNBAqeB185xV0DY8cohpllDVvDJzB+eqHrxv51c+UQZZu/5dM9TxLZgrg+Tc1f2Gy637LUYqa5Eaxo3wI= 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=J7UcGnXD; arc=none smtp.client-ip=198.175.65.15 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=1718128048; x=1749664048; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=/XdZHubJ6eMhZ1fMCUnTP4sNv9CCswIT96ACgXjCY40=; b=J7UcGnXDRGcG5u9uU8/j5axv17yQCXlFf2FZKfNOr0CQy0BK3idQSk8B obAZvrfxBPPWVQXYOZuj7elqmilUflQGwXjLXKLvz10CTDyD8OyF8lWIx oOfUGAlN7Ugj+mUhgTcxhtBxhZZSzFIuFFnPAqB2Id1ZrehVuLmGKmkd8 bf65SrZHxQ7619NktrK9PF7hjkbEEYIL1BrOERptGDlOvTWIguIayoy7j aNpBEMIF5xFMGTuG0g+ikkRPD1lXwzqix1GwC2f73DyhsfwyGwysJCONs EjuWaoRRBnVa2Nrb7wa+fcXLLh5PwVKVbsg+widOFO4EHiEfZhmCjK4OD A==; X-CSE-ConnectionGUID: WgfVSMV2QseJBp/TD6EhSQ== X-CSE-MsgGUID: 6t3xF0BsST6kFZqkWXTd0g== X-IronPort-AV: E=McAfee;i="6600,9927,11100"; a="18635931" X-IronPort-AV: E=Sophos;i="6.08,230,1712646000"; d="scan'208";a="18635931" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by orvoesa107.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jun 2024 10:47:28 -0700 X-CSE-ConnectionGUID: vH1GHzfDR7mOoi0oxXIJDg== X-CSE-MsgGUID: XsipVPqERVCrj4cZFTfp+w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,230,1712646000"; d="scan'208";a="39614180" Received: from josouza-mobl2.bz.intel.com ([10.87.243.88]) by orviesa009-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jun 2024 10:47:26 -0700 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 v6 2/2] drm/xe: Increase devcoredump timeout Date: Tue, 11 Jun 2024 10:47:16 -0700 Message-ID: <20240611174716.72660-2-jose.souza@intel.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240611174716.72660-1-jose.souza@intel.com> References: <20240611174716.72660-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 Reviewed-by: Rodrigo Vivi Reviewed-by: 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 d7f2d19a77c10..62c2b10fbf1d2 100644 --- a/drivers/gpu/drm/xe/xe_devcoredump.c +++ b/drivers/gpu/drm/xe/xe_devcoredump.c @@ -53,6 +53,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); @@ -247,8 +250,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(void *arg) -- 2.45.2