From patchwork Tue Apr 4 20:06:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Thomas Hellstrom X-Patchwork-Id: 13200944 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 736DAC77B62 for ; Tue, 4 Apr 2023 20:07:39 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4ABC910E79D; Tue, 4 Apr 2023 20:07:34 +0000 (UTC) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9E67110E210; Tue, 4 Apr 2023 20:07:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1680638851; x=1712174851; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=1WOwJNrllFLYlpaiANrZvSOegglsBpvBUSsVkr968ek=; b=ZAQ2VU2QCauhqsoSG/KgcAxGFwG2VLK7vXso9pIQzrN4OVMB+m4Pm7vx vYdx0UaC9/2uodSMFeUVG9rUAv6nHc5BWDhZ4mr7LTMLivnRJBxmbm0UR ZDLHCYgOXLhnJ3ShrfbliTfCQz6Ls27lO9xKNN6MIVwwZIQzCxlGRaklT JRNLdOXg3ngrHg+eOSTIy3h6tLg2teV7+QSJkfz1STYNUmyt6wK8w3rW3 XTACB/hhGCKwoLYy0lGHD5Qm0UvlsyloXaf6DPqlli1dja+Wayb0P4fzl 2sVYF8pBHumLj1MFUMcDThR68n0OsxGJxrnWcRovcUd9L+pxu02urKSF9 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10670"; a="326324681" X-IronPort-AV: E=Sophos;i="5.98,318,1673942400"; d="scan'208";a="326324681" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Apr 2023 13:07:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10670"; a="689021874" X-IronPort-AV: E=Sophos;i="5.98,318,1673942400"; d="scan'208";a="689021874" Received: from therrane-mobl1.ger.corp.intel.com (HELO thellstr-mobl1.intel.com) ([10.249.33.67]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Apr 2023 13:07:09 -0700 From: =?utf-8?q?Thomas_Hellstr=C3=B6m?= To: dri-devel@lists.freedesktop.org Date: Tue, 4 Apr 2023 22:06:47 +0200 Message-Id: <20230404200650.11043-1-thomas.hellstrom@linux.intel.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH RESEND v3 0/3] drm/ttm: Small fixes / cleanups in prep for shrinking 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?= , intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org, Christian Koenig , Matthew Auld Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" I collected the, from my POW, uncontroversial patches from V1 of the TTM shrinker series, some corrected after the initial patch submission, one patch added from the Xe RFC ("drm/ttm: Don't print error message if eviction was interrupted"). It would be nice to have these reviewed and merged while reworking the rest. v2: - Simplify __ttm_pool_free(). - Fix the TTM_TT_FLAG bit numbers. - Keep all allocation orders for TTM pages at or below PMD order v3: - Rename __tm_pool_free() to ttm_pool_free_range(). Document. - Compile-fix. Thomas Hellström (3): drm/ttm/pool: Fix ttm_pool_alloc error path drm/ttm: Reduce the number of used allocation orders for TTM pages drm/ttm: Make the call to ttm_tt_populate() interruptible when faulting drivers/gpu/drm/ttm/ttm_bo_vm.c | 13 +++- drivers/gpu/drm/ttm/ttm_pool.c | 111 ++++++++++++++++++++------------ 2 files changed, 80 insertions(+), 44 deletions(-) Reviewed-by: Christian König for the series.