From mboxrd@z Thu Jan 1 00:00:00 1970 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 3BDD6EB64D7 for ; Mon, 26 Jun 2023 09:15:05 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B4DC510E052; Mon, 26 Jun 2023 09:15:04 +0000 (UTC) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by gabe.freedesktop.org (Postfix) with ESMTPS id 68FF510E1CC; Mon, 26 Jun 2023 09:15:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1687770903; x=1719306903; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=oI+iy54Hh6AlX2ttyHvrxT6tZDNwd+hp/2whYhQ4P/w=; b=k647b5F4jvP7L3sC+TYH3KjvPMswFnNLIWcdzOd0+hC8Ye+m3ZLDELMY sHe7D17I9NJNyym7jcZl2jSQB8YKJKZhU9/GD2qyuaQZ1PSShW7RALLjz G+U5dH5OZlfzwsMp6VvIBKLFXydsS+o5mPQNyUaZN5bAH+OpyqC4ujtYX XIAx0Wr2SB4pjqEoypBu4cAqdLi+LONlOUzGwwYB2IRwGIJmI/eNFdWOO sfmXuBHYhxuUWujVaePr6v+GgcXD+7IE5Ije6ANt4YhGfZPDt48VOnfo5 iPBHcbhkBXtVTSEZQM+FUIfnCGC45q8y+iR1W2Aah4YGvcW6Mn/sjdnjz Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10752"; a="345974061" X-IronPort-AV: E=Sophos;i="6.01,159,1684825200"; d="scan'208";a="345974061" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jun 2023 02:15:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10752"; a="781357702" X-IronPort-AV: E=Sophos;i="6.01,159,1684825200"; d="scan'208";a="781357702" Received: from ettammin-mobl1.ger.corp.intel.com (HELO thellstr-mobl1.intel.com) ([10.249.254.105]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jun 2023 02:15:00 -0700 From: =?UTF-8?q?Thomas=20Hellstr=C3=B6m?= To: intel-xe@lists.freedesktop.org Date: Mon, 26 Jun 2023 11:14:46 +0200 Message-Id: <20230626091450.14757-1-thomas.hellstrom@linux.intel.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Intel-gfx] [PATCH v2 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=20Hellstr=C3=B6m?= , =?UTF-8?q?Christian=20K=C3=B6nig?= , intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, =?UTF-8?q?Christian=20K=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. v2: - Avoid a goto in patch 3 (Andi Shyti) - Add some RB's 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 | 26 +++++++++++++------------- drivers/gpu/drm/ttm/ttm_resource.c | 2 ++ 2 files changed, 15 insertions(+), 13 deletions(-) -- 2.40.1 From mboxrd@z Thu Jan 1 00:00:00 1970 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 D6828EB64DC for ; Mon, 26 Jun 2023 09:15:05 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6321810E1C1; Mon, 26 Jun 2023 09:15:05 +0000 (UTC) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by gabe.freedesktop.org (Postfix) with ESMTPS id 68FF510E1CC; Mon, 26 Jun 2023 09:15:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1687770903; x=1719306903; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=oI+iy54Hh6AlX2ttyHvrxT6tZDNwd+hp/2whYhQ4P/w=; b=k647b5F4jvP7L3sC+TYH3KjvPMswFnNLIWcdzOd0+hC8Ye+m3ZLDELMY sHe7D17I9NJNyym7jcZl2jSQB8YKJKZhU9/GD2qyuaQZ1PSShW7RALLjz G+U5dH5OZlfzwsMp6VvIBKLFXydsS+o5mPQNyUaZN5bAH+OpyqC4ujtYX XIAx0Wr2SB4pjqEoypBu4cAqdLi+LONlOUzGwwYB2IRwGIJmI/eNFdWOO sfmXuBHYhxuUWujVaePr6v+GgcXD+7IE5Ije6ANt4YhGfZPDt48VOnfo5 iPBHcbhkBXtVTSEZQM+FUIfnCGC45q8y+iR1W2Aah4YGvcW6Mn/sjdnjz Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10752"; a="345974061" X-IronPort-AV: E=Sophos;i="6.01,159,1684825200"; d="scan'208";a="345974061" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jun 2023 02:15:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10752"; a="781357702" X-IronPort-AV: E=Sophos;i="6.01,159,1684825200"; d="scan'208";a="781357702" Received: from ettammin-mobl1.ger.corp.intel.com (HELO thellstr-mobl1.intel.com) ([10.249.254.105]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jun 2023 02:15:00 -0700 From: =?UTF-8?q?Thomas=20Hellstr=C3=B6m?= To: intel-xe@lists.freedesktop.org Date: Mon, 26 Jun 2023 11:14:46 +0200 Message-Id: <20230626091450.14757-1-thomas.hellstrom@linux.intel.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Intel-xe] [PATCH v2 0/4] drm/ttm: Fixes around resources and bulk moves X-BeenThere: intel-xe@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Xe graphics driver List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Christian=20K=C3=B6nig?= , intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, =?UTF-8?q?Christian=20K=C3=B6nig?= Errors-To: intel-xe-bounces@lists.freedesktop.org Sender: "Intel-xe" 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. v2: - Avoid a goto in patch 3 (Andi Shyti) - Add some RB's 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 | 26 +++++++++++++------------- drivers/gpu/drm/ttm/ttm_resource.c | 2 ++ 2 files changed, 15 insertions(+), 13 deletions(-) -- 2.40.1 From mboxrd@z Thu Jan 1 00:00:00 1970 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 D7327EB64D7 for ; Mon, 26 Jun 2023 09:15:08 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7785910E0A2; Mon, 26 Jun 2023 09:15:06 +0000 (UTC) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by gabe.freedesktop.org (Postfix) with ESMTPS id 68FF510E1CC; Mon, 26 Jun 2023 09:15:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1687770903; x=1719306903; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=oI+iy54Hh6AlX2ttyHvrxT6tZDNwd+hp/2whYhQ4P/w=; b=k647b5F4jvP7L3sC+TYH3KjvPMswFnNLIWcdzOd0+hC8Ye+m3ZLDELMY sHe7D17I9NJNyym7jcZl2jSQB8YKJKZhU9/GD2qyuaQZ1PSShW7RALLjz G+U5dH5OZlfzwsMp6VvIBKLFXydsS+o5mPQNyUaZN5bAH+OpyqC4ujtYX XIAx0Wr2SB4pjqEoypBu4cAqdLi+LONlOUzGwwYB2IRwGIJmI/eNFdWOO sfmXuBHYhxuUWujVaePr6v+GgcXD+7IE5Ije6ANt4YhGfZPDt48VOnfo5 iPBHcbhkBXtVTSEZQM+FUIfnCGC45q8y+iR1W2Aah4YGvcW6Mn/sjdnjz Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10752"; a="345974061" X-IronPort-AV: E=Sophos;i="6.01,159,1684825200"; d="scan'208";a="345974061" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jun 2023 02:15:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10752"; a="781357702" X-IronPort-AV: E=Sophos;i="6.01,159,1684825200"; d="scan'208";a="781357702" Received: from ettammin-mobl1.ger.corp.intel.com (HELO thellstr-mobl1.intel.com) ([10.249.254.105]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jun 2023 02:15:00 -0700 From: =?UTF-8?q?Thomas=20Hellstr=C3=B6m?= To: intel-xe@lists.freedesktop.org Subject: [PATCH v2 0/4] drm/ttm: Fixes around resources and bulk moves Date: Mon, 26 Jun 2023 11:14:46 +0200 Message-Id: <20230626091450.14757-1-thomas.hellstrom@linux.intel.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Thomas=20Hellstr=C3=B6m?= , =?UTF-8?q?Christian=20K=C3=B6nig?= , intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Andi Shyti , =?UTF-8?q?Christian=20K=C3=B6nig?= Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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. v2: - Avoid a goto in patch 3 (Andi Shyti) - Add some RB's 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 | 26 +++++++++++++------------- drivers/gpu/drm/ttm/ttm_resource.c | 2 ++ 2 files changed, 15 insertions(+), 13 deletions(-) -- 2.40.1 From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 747E9EB64D7 for ; Mon, 26 Jun 2023 09:19:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229534AbjFZJTa (ORCPT ); Mon, 26 Jun 2023 05:19:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229562AbjFZJTC (ORCPT ); Mon, 26 Jun 2023 05:19:02 -0400 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE5E5297A for ; Mon, 26 Jun 2023 02:16:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1687770987; x=1719306987; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=oI+iy54Hh6AlX2ttyHvrxT6tZDNwd+hp/2whYhQ4P/w=; b=dUO274w+RHVHbSrvBKpcP9NweEvKoiemESoOLY0czBa6rzeYumB4h9gR wQVb9VXZhA5vToYdyrkQ7/AtEj3xPUIuAkTrp8zqCt9zIkbZxepKapmH+ WzIV7bAkoMnVlZGcMC5eTpDSdC5h3wf4vuLTvThV3euXrO75ptu5HcW6C obugMU6RV7XwRT8l+o6WWsiO4qDfGeIsR3gTFP6p3ZMbZEU8B5QLrFyXK SiXbIVYYAz0/lD3JPrfopYnWEmwsx+Nm+EpAPuw+JMtOTk7tOtiCGr/Qh FaXPtXQO6za84aGygQmw20VePvV8+/j6IcELKEArJ/+NrRaaJlp4CjlIj g==; X-IronPort-AV: E=McAfee;i="6600,9927,10752"; a="345974058" X-IronPort-AV: E=Sophos;i="6.01,159,1684825200"; d="scan'208";a="345974058" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jun 2023 02:15:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10752"; a="781357702" X-IronPort-AV: E=Sophos;i="6.01,159,1684825200"; d="scan'208";a="781357702" Received: from ettammin-mobl1.ger.corp.intel.com (HELO thellstr-mobl1.intel.com) ([10.249.254.105]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jun 2023 02:15:00 -0700 From: =?UTF-8?q?Thomas=20Hellstr=C3=B6m?= To: intel-xe@lists.freedesktop.org Cc: =?UTF-8?q?Thomas=20Hellstr=C3=B6m?= , dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Christian=20K=C3=B6nig?= , =?UTF-8?q?Christian=20K=C3=B6nig?= , "Andi Shyti" Subject: [PATCH v2 0/4] drm/ttm: Fixes around resources and bulk moves Date: Mon, 26 Jun 2023 11:14:46 +0200 Message-Id: <20230626091450.14757-1-thomas.hellstrom@linux.intel.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. v2: - Avoid a goto in patch 3 (Andi Shyti) - Add some RB's 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 | 26 +++++++++++++------------- drivers/gpu/drm/ttm/ttm_resource.c | 2 ++ 2 files changed, 15 insertions(+), 13 deletions(-) -- 2.40.1