From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Herrmann Subject: [PATCH 0/4] DRM: Remove MM "Pre-Alloc" Date: Thu, 25 Jul 2013 15:55:58 +0200 Message-ID: <1374760562-6096-1-git-send-email-dh.herrmann@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ee0-f43.google.com (mail-ee0-f43.google.com [74.125.83.43]) by gabe.freedesktop.org (Postfix) with ESMTP id 8B4E0E5C5D for ; Thu, 25 Jul 2013 06:56:33 -0700 (PDT) Received: by mail-ee0-f43.google.com with SMTP id l10so937354eei.16 for ; Thu, 25 Jul 2013 06:56:32 -0700 (PDT) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: dri-devel@lists.freedesktop.org Cc: Dave Airlie , Daniel Vetter List-Id: dri-devel@lists.freedesktop.org Hi See patch 4/4 for a more detailed explanation of this series. I basically kill off the whole drm_mm pre-alloc code as it really doesn't make any sense with todays infrastructure. No drm_mm user runs in atomic context. We use pre-alloc only to allow allocation while holding a spin-lock. But we can easily kzalloc() the node before taking the spinlock and use the drm_mm_insert_*() helpers directly. This series converts the last pre-alloc users (ttm and i915-gem-stolen) to use the already established kzalloc()+drm_mm_insert_*() helpers. The last patch removes a bunch of old drm_mm code, so Daniel can tackle his "drm_mm documentation" TODO list. Cheers David David Herrmann (4): drm/mm: add "best_match" to drm_mm_insert_node() drm/ttm: replace drm_mm_pre_get() by direct alloc drm/i915: pre-alloc instead of drm_mm search/get_block drm/mm: remove unused API drivers/gpu/drm/drm_mm.c | 183 +++++---------------------------- drivers/gpu/drm/drm_vma_manager.c | 4 +- drivers/gpu/drm/i915/i915_gem.c | 3 +- drivers/gpu/drm/i915/i915_gem_stolen.c | 72 ++++++++----- drivers/gpu/drm/sis/sis_mm.c | 4 +- drivers/gpu/drm/ttm/ttm_bo_manager.c | 40 ++++--- drivers/gpu/drm/via/via_mm.c | 4 +- include/drm/drm_mm.h | 131 +++++------------------ 8 files changed, 123 insertions(+), 318 deletions(-) -- 1.8.3.3