Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B348A606A32C for ; Thu, 3 Dec 2026 10:31:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=TB01LWAo Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 77019112697; Thu, 3 Dec 2026 10:31:37 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) by gabe.freedesktop.org (Postfix) with ESMTPS id 684EC112697; Thu, 3 Dec 2026 10:31:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796293892; x=1827829892; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=yOm8u9WPF+w8E82+wNLYAqH6EZ4ptZeD2bfW1Ref9G0=; b=TB01LWAocctf/J2mtS7OB1Ib13Zs7PsgWBExBXnf6hfhJ6jm+GxgxhL9 5WNe7UynTawxNKfoXlFeuNAJ9MQOTB1TKl7RBlmjTVGtYjrWjuWGGU6+w x/ThoTaGVLRlAYovZdgi3U830G3QDNgXaZ6Urj2IjMNR83w/WkGhB0u9U beQaLDOuTMEvbd7HDujLLOBbDPmZjtORJsJarucZCs9AlflrRgM2SaiOC nPJAZ7mPwAK2CZBfqcw+M705juOCvEsMRWR1zBY+Ck38Asi7xsIYyg+ih XOTHoekO3+4IyRFIpE+UXcOaAS+9gSNSYtmMC7WevRgeaEEnnBPFDWKbx g==; X-CSE-ConnectionGUID: LT0HHCRpQsysxRw3KCA+gw== X-CSE-MsgGUID: dukAjsRUT2W4L4LmKOQ3kg== X-IronPort-AV: E=McAfee;i="6800,10657,11984"; a="5328273" X-IronPort-AV: E=Sophos;i="6.27,248,1787036400"; d="scan'208";a="5328273" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Dec 2026 02:31:32 -0800 X-CSE-ConnectionGUID: aolTWjCJT2irXU1rq4HZ/A== X-CSE-MsgGUID: Mbg7qRvIQj+ouEhgjUYyqQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,248,1787036400"; d="scan'208";a="13580685" Received: from alekseim-mobl.ger.corp.intel.com (HELO [10.245.244.94]) ([10.245.244.94]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Dec 2026 02:31:29 -0800 Message-ID: Date: Thu, 3 Dec 2026 10:31:27 +0000 X-Archived-By: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 35/36] drm/xe: Add bo_defrag debugfs entry To: Matthew Brost , intel-xe@lists.freedesktop.org, dri-devel@lists.freedesktop.org Cc: Carlos Santa , Ryan Neph , =?UTF-8?Q?Thomas_Hellstr=C3=B6m?= , Natalie Vock , Arun Pravin References: <20261202233323.3743190-1-matthew.brost@intel.com> <20261202233323.3743190-36-matthew.brost@intel.com> Content-Language: en-GB From: Matthew Auld In-Reply-To: <20261202233323.3743190-36-matthew.brost@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: intel-xe@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Xe graphics driver List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Intel-xe" X-Spam-Status: No, score=-12.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On 02/12/2026 23:33, Matthew Brost wrote: > Add a bo_defrag debugfs file to inspect the state of the BO > defragmentation worker. It reports whether defrag is supported, the > beneficial page order, the per-run size limit, the current (possibly > backed-off) worker interval along with its default and maximum, whether > the worker is pending (and when it will next run), running or idle, and > the number of BOs on the defrag list. > > Each BO on the defrag list is then printed with its size, the number of > bytes still backed below the beneficial order (the bytes a defrag move > would reallocate) and whether it still needs defrag, followed by totals. > > A reference to each listed BO is taken under the defrag list lock and > the BO is then locked to sample its backing, as the tt can be torn down > while the BO is still on the list. The per-BO output is therefore a > best-effort snapshot. > > Cc: Carlos Santa > Cc: Ryan Neph > Cc: Matthew Auld > Cc: Thomas Hellström > Cc: Natalie Vock > Cc: Arun Pravin > Signed-off-by: Matthew Brost Reviewed-by: Matthew Auld