From patchwork Thu Jun 22 10:14:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Thomas Hellstrom X-Patchwork-Id: 13288963 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 60C96EB64D8 for ; Thu, 22 Jun 2023 10:19:58 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id DD1C110E52D; Thu, 22 Jun 2023 10:19:57 +0000 (UTC) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by gabe.freedesktop.org (Postfix) with ESMTPS id 27D3210E52D; Thu, 22 Jun 2023 10:19:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1687429196; x=1718965196; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=9jam3CMoVZ6A/N5nfAjGK/fytBzu9GaWl/y16AysgMI=; b=Gy/z+/ZlUj6MHC5ATHyWD5pXGz/tmDNBcNpmLoYUGHOzko4rNOgdsxIN TGvkXgbTFoUXI/4ciPnPKFDhSRy/hoEHVDo4vTg3pnVyzd3I70ycrmkFQ P09T3/5kxIBWILgtglTAn0fk4kXg9jK2S7XIuJn2w5AF7RycoevD/Ii3f mFBcgb/DnuAYJagk1XCHd3ct80R8tyePh1hrnYa6b5bOLMc/K4hD4DOLI 4et4+KiTkC6H8xu5AR3+QYRLFPiR/3Ttwc/J4fvOteZt5LOHNCpBDMMFG JofSoNHnNP57OOhmgIdBtFcKYNLMPZSgX+wsStD9RYV+943G/dCHeydku g==; X-IronPort-AV: E=McAfee;i="6600,9927,10748"; a="345181952" X-IronPort-AV: E=Sophos;i="6.00,263,1681196400"; d="scan'208";a="345181952" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jun 2023 03:14:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10748"; a="692193726" X-IronPort-AV: E=Sophos;i="6.00,263,1681196400"; d="scan'208";a="692193726" Received: from shari19x-mobl1.gar.corp.intel.com (HELO thellstr-mobl1.intel.com) ([10.249.254.173]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jun 2023 03:14:29 -0700 From: =?utf-8?q?Thomas_Hellstr=C3=B6m?= To: intel-xe@lists.freedesktop.org Date: Thu, 22 Jun 2023 12:14:08 +0200 Message-Id: <20230622101412.78426-1-thomas.hellstrom@linux.intel.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH 0/4] drm/ttm: Fixes around resources and bulk moves 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: =?utf-8?q?Thomas_Hellstr=C3=B6m?= , =?utf-8?q?Christian_K=C3=B6nig?= , intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, =?utf-8?q?Christian_K=C3=B6nig?= Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A couple of ttm fixes for issues that either were hit while developing the xe driver or, for the resource leak patches, discovered during code inspection. Thomas Hellström (4): drm/ttm: Fix ttm_lru_bulk_move_pos_tail() drm/ttm: Don't shadow the operation context drm/ttm: Don't leak a resource on eviction error drm/ttm: Don't leak a resource on swapout move error drivers/gpu/drm/ttm/ttm_bo.c | 20 ++++++++++---------- drivers/gpu/drm/ttm/ttm_resource.c | 2 ++ 2 files changed, 12 insertions(+), 10 deletions(-)