From patchwork Fri Nov 18 10:42:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Janusz Krzysztofik X-Patchwork-Id: 13048038 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D1B35C4332F for ; Fri, 18 Nov 2022 10:43:29 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 65CBD10E22E; Fri, 18 Nov 2022 10:43:17 +0000 (UTC) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by gabe.freedesktop.org (Postfix) with ESMTPS id C161E10E22E; Fri, 18 Nov 2022 10:43:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1668768191; x=1700304191; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=4hF6EH9szqPAAzwvJNvLoutYbdoI2iKcXrJV8Zzbx/g=; b=AUvKlklQStETZ/jobE1rtBsyNRVCEIb0f5tWsikT7DjjmVPJCkrXRDUK TUN7E9nqLU1qcPlfQmSttxJ1mqLSI7r4FzKXWTrQFvl20Rz2iYumGKWzS c9j5mRQ0UeW6d+nNK5jbDvxgIjyj4vny9amLZUSYMubzHJeQbzJb8suhI mHiB0qEuTgC8sPVpQEf29tpiu0eb0qoHohayaqJgTbtikF+ic5rttc9nF 6CEPU8e+4b43+a+HEU/m8mSgdSm6LP37LetHcdLHLRNwg71pADSoGhyoZ j+tqXPzC1N7Op3OY1WZdcyUuijEErpAox7BWWcVeKTqR574GreM98vsyV Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10534"; a="311812863" X-IronPort-AV: E=Sophos;i="5.96,174,1665471600"; d="scan'208";a="311812863" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Nov 2022 02:43:11 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10534"; a="729188056" X-IronPort-AV: E=Sophos;i="5.96,174,1665471600"; d="scan'208";a="729188056" Received: from jkrzyszt-mobl1.ger.corp.intel.com ([10.213.29.15]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Nov 2022 02:43:06 -0800 From: Janusz Krzysztofik To: Tvrtko Ursulin , Joonas Lahtinen Date: Fri, 18 Nov 2022 11:42:20 +0100 Message-Id: <20221118104222.57328-1-janusz.krzysztofik@linux.intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH v2 0/2] drm/i915: Fix timeout handling when retiring requests X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Daniel Vetter , intel-gfx@lists.freedesktop.org, Chris Wilson , dri-devel@lists.freedesktop.org, Andrzej Hajda , Nirmoy Das Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" Fixes for issues discovered via code review while working on https://gitlab.freedesktop.org/drm/intel/issues/7349. v2: PATCH 1: fix the issue on the caller side, not the provider, reword commit message and description. PATCH 2: move the added lines down so flush_submission() is not affected, reword commit message and description. PATCH 3: drop -- controversial, not needed. Janusz Krzysztofik (2): drm/i915: Fix negative value passed as remaining time drm/i915: Never return 0 if not all requests retired drivers/gpu/drm/i915/gt/intel_gt.c | 11 +++++++++-- drivers/gpu/drm/i915/gt/intel_gt_requests.c | 3 +++ 2 files changed, 12 insertions(+), 2 deletions(-)