From patchwork Mon Feb 14 23:56:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Kasireddy, Vivek" X-Patchwork-Id: 12746279 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 2E7DCC433EF for ; Tue, 15 Feb 2022 00:14:24 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 72C1310E383; Tue, 15 Feb 2022 00:14:23 +0000 (UTC) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by gabe.freedesktop.org (Postfix) with ESMTPS id D110710E383; Tue, 15 Feb 2022 00:14:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644884062; x=1676420062; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=H7pqK1mdwtiBeTD8NETC8XVfR/V1CXdH8O5xpQ042W0=; b=bOCqwOR1UbPNhFOSLkaaZBsv1mmDnUMS51C1aVsIccLjv455Ty8x0OjP Pd5x8TCx6LOfEk+JQxXw+6QyOFFavKW2+1LF6TTeeiH4fRsckAZe4+woh ZZAoIX9lLLV0tzw8fsQbuPo1BrYFlZ2IvYVQidU/h2+p1MgU9EXO0Y0dW EYxQt9eFfCxTuw5/YTe4xzKSs0HETRdbzuXfDveYjs7xl0KEcKFsff4al 8Ea0R8pOy9w8sOhng/Uz+ncEw9N0VMTu3GSmY5Cz5qLBBqTnz2aRQQfbN eNWSY1lIELRJPOJRXn/EkT++OFnbD08iMULd+d0hWCx443nlR/LcE6aRF g==; X-IronPort-AV: E=McAfee;i="6200,9189,10258"; a="230852152" X-IronPort-AV: E=Sophos;i="5.88,368,1635231600"; d="scan'208";a="230852152" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Feb 2022 16:14:22 -0800 X-IronPort-AV: E=Sophos;i="5.88,368,1635231600"; d="scan'208";a="775515244" Received: from vkasired-desk2.fm.intel.com ([10.105.128.127]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Feb 2022 16:14:22 -0800 From: Vivek Kasireddy To: intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Date: Mon, 14 Feb 2022 15:56:23 -0800 Message-Id: <20220214235625.864939-1-vivek.kasireddy@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH 0/2] drm/mm: Add an iterator to optimally walk over holes suitable for an allocation 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?Christian_K=C3=B6nig?= , Nirmoy Das Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" The first patch is a drm core patch that replaces the for loop in drm_mm_insert_node_in_range() with the iterator and would not cause any functional changes. The second patch is a i915 driver specific patch that also uses the iterator but solves a different problem. Cc: Tvrtko Ursulin Cc: Nirmoy Das Cc: Christian König Vivek Kasireddy (2): drm/mm: Add an iterator to optimally walk over holes for an allocation (v3) drm/i915/gem: Don't try to map and fence large scanout buffers (v7) drivers/gpu/drm/drm_mm.c | 32 ++++----- drivers/gpu/drm/i915/i915_gem.c | 120 +++++++++++++++++++++++--------- include/drm/drm_mm.h | 36 ++++++++++ 3 files changed, 137 insertions(+), 51 deletions(-)