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 B17D1606A322 for ; Thu, 3 Dec 2026 16:17:40 +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=Npw1Ugka Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id ED8B410E7C4; Thu, 3 Dec 2026 16:17:34 +0000 (UTC) X-Greylist: delayed 430 seconds by postgrey-1.36 at gabe; Thu, 03 Dec 2026 16:17:28 UTC Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.4]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1861B10E4DE; Thu, 3 Dec 2026 16:17:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796314648; x=1827850648; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=IcpsKsXOwJvyjTFGeJFk4V1wWen77cTgkoRDvLDxtSA=; b=Npw1Ugka1S50FiMoQ0OLhvwewIeDMG3BWoxm/jkP432he9802uUikuga 1VzNp/FzlrKmIcOTVWtiRj2NOnZ2ox9yhvz+G5TOnoOR/iEFp7E71GO82 Nn2+HI9axp+o6Unb14xvmp8Q2Ts5HZ2kNz3ZO+Af9yqRqxTTvZbrkDI9C OdVb0miY9MWr+RB7vfErT08dd7IdK+T27oI/dZ530s1xR23VqHkKkO05s k++BJgkgOnZ2I3o+AdEac7vf61IYuPYNUEoW4ful+eObET4brhMTyFE7y ey6Y6Wh+5U86cHurCZWEXj8jgHbkQXwm2xL9t0yNF5dIHNS5OSEmhtoaA Q==; X-CSE-ConnectionGUID: +AcNJ6IRRiCx0/qb5PWwGg== X-CSE-MsgGUID: NO0GmIsHQpeCu0OYWT73JQ== X-IronPort-AV: E=McAfee;i="6800,10657,11985"; a="33444" X-IronPort-AV: E=Sophos;i="6.29,248,1794902400"; d="scan'208";a="33444" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by fmvoesa114.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Dec 2026 08:10:16 -0800 X-CSE-ConnectionGUID: nrKJ0ufnTD6ejZ7PRWxFtA== X-CSE-MsgGUID: MeuWIE4mQ86lmne0mSD4/A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.29,248,1794902400"; d="scan'208";a="13882684" 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 08:10:15 -0800 Message-ID: Date: Thu, 3 Dec 2026 16:10:12 +0000 X-Archived-By: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 36/36] drm/xe: Make BO defrag tunables configurable via sysfs 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-37-matthew.brost@intel.com> Content-Language: en-GB From: Matthew Auld In-Reply-To: <20261202233323.3743190-37-matthew.brost@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "dri-devel" 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: > The BO defrag per-run size limit, default worker interval and maximum > backed off worker interval are currently fixed at build time via > Kconfig. Tuning them requires a rebuild, which makes experimenting with > defrag behaviour on a running system painful. > > Add defrag_size_limit, defrag_interval_ms and defrag_interval_max_ms > device sysfs attributes, defaulting to the Kconfig values. Writes are > validated against the Kconfig ranges, the size limit must be 2M aligned, > and the default interval may not exceed the maximum interval. Lowering > the size limit below 2M (disabling defrag) remains a build time only > decision, so the attributes are only exposed when defrag is supported. > Report the runtime values in the bo_defrag debugfs entry. > > 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