From patchwork Tue Apr 12 03:35:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Zack Rusin X-Patchwork-Id: 12809992 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 E4549C433F5 for ; Tue, 12 Apr 2022 03:35:36 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A5EAB10FB46; Tue, 12 Apr 2022 03:35:35 +0000 (UTC) Received: from letterbox.kde.org (letterbox.kde.org [46.43.1.242]) by gabe.freedesktop.org (Postfix) with ESMTPS id D983210FB44 for ; Tue, 12 Apr 2022 03:35:33 +0000 (UTC) Received: from vertex.localdomain (pool-108-36-85-85.phlapa.fios.verizon.net [108.36.85.85]) (Authenticated sender: zack) by letterbox.kde.org (Postfix) with ESMTPSA id EA48C28384A; Tue, 12 Apr 2022 04:35:29 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kde.org; s=users; t=1649734531; bh=zeXqbMyw19upqvuRse9PP4tjiDeNJdVG04pi6PjiS7s=; h=From:To:Cc:Subject:Date:From; b=hiLOU45Cbf6L+jdxydwQWMWxULpOSIxUiQOd/ZfOYy2sfPH/AbMoDlAp7AJGI87uP jpEnwGRrAq0sY5eSajxnIq7QXsjympALAwiafGxunYSFX9w4+SihQZi+cNH57xQB+i fNmvt9jOs9uiZBUylTaEMBNEA52jqUOjEMefn8oNIe3Zg/7SA2zV+TW4ONhiuJtjpY Oz0tCRr2pyzeG3ZAi8CehLNGGSFK5OiNiwnw+GZN/VXu1wpYPrzKJB+U/Rfav4rbwL gSiDtHADlAjhVx/62q/xJJeRMVMOQTB8AFBESoaZDJnYYt0s98SkRl2zXwUW8JllJ1 ve13836WIBnEA== From: Zack Rusin To: dri-devel@lists.freedesktop.org Subject: [PATCH v2 0/5] drm/ttm: Introduce TTM res manager debugfs helpers Date: Mon, 11 Apr 2022 23:35:21 -0400 Message-Id: <20220412033526.369115-1-zack@kde.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 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: , Reply-To: Zack Rusin Cc: David Airlie , krastevm@vmware.com, Huang Rui , Christian Koenig , mombasawalam@vmware.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Zack Rusin v2: Switch to using ttm_resource_manager's directly in the debugfs callbacks This series introduces generic TTM resource manager debugfs helpers and refactors TTM drivers which have been using hand rolled out versions of those to use the new code. Zack Rusin (5): drm/ttm: Add common debugfs code for resource managers drm/vmwgfx: Add debugfs entries for various ttm resource managers drm/amdgpu: Use TTM builtin resource manager debugfs code drm/qxl: Use TTM builtin resource manager debugfs code drm/radeon: Use TTM builtin resource manager debugfs code drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 86 +++++-------------------- drivers/gpu/drm/qxl/qxl_ttm.c | 39 ++--------- drivers/gpu/drm/radeon/radeon_ttm.c | 36 ++--------- drivers/gpu/drm/ttm/ttm_resource.c | 34 ++++++++++ drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 18 ++++++ include/drm/ttm/ttm_resource.h | 4 ++ 6 files changed, 84 insertions(+), 133 deletions(-) Reviewed-by: Christian König for the entire