From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2B8493EC2C7 for ; Tue, 31 Mar 2026 09:20:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.19 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774948851; cv=none; b=OMsk10WtFA0nK6dKVDe3AhlQyc1ZaE4j3rlNtd6+3SOuVACzcgX3lapscpzeSNI1DTLYZL52FWjC+8XeZunIFMhkxMCKINzcujvsF/jgMk99Ldw/bTXmjdR1xipm04/l/Wd5dqnWHeqD6k+YOvKHHDPVsl6+KmhGwPvjXyTzB6o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774948851; c=relaxed/simple; bh=VZ6UZpRCisDZ0WrxY1YID/gtq9IPO92Nbhk/YRRgjAE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=CNTCSfYceo4AMBuD6aPQLIfkpTTXciJmyouuaXL2FsS/9K/96Hx4OLHZ6/ZBhCdKkFwe4uzmqGWV+wN4iJ921aty8u8yQUZn9SzJNhonIpl0Z26rlpEFIrFiJwiGMZ/6RTIkLxzoz3e/TqlBlbiVqc3gk3p4Ftz4TZevvozZF2I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=LSqVvFyE; arc=none smtp.client-ip=192.198.163.19 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="LSqVvFyE" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1774948850; x=1806484850; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=VZ6UZpRCisDZ0WrxY1YID/gtq9IPO92Nbhk/YRRgjAE=; b=LSqVvFyETniaQUyeV4ES8EEqh+7uPh0cJX1d4ZLKOYGsA9jix8eYYuv9 DnClljOCY/nELcuWQuMqZ+h4Tu/TbF+RzXpayjEzQDoa9/k28ZfpPt2zF I18jONDpwDKKM7OdQ09pCY90QlYuRVPgsDcJDAR0KXch/i9mH5utPKJQx 8tRi6+iGxejZaiXYOtUFBsaaIFLgnwP4nwIsFsDS7weIL/WURukZ1gEPt 5zGtHIK92eWX/4laWI+nN7udmpXPH/w+wlMkaKiupR1nZR/kQY8+9euX0 ja1mThD7+EptkZRiJeACPqryK0KTf7VlNHd7hIYGF9dFELr76frzyIuSA w==; X-CSE-ConnectionGUID: 0D9xBj3XSQyOLgblW6AYGg== X-CSE-MsgGUID: Cxp0Uk2JSMqQR1653KcGlQ== X-IronPort-AV: E=McAfee;i="6800,10657,11744"; a="74988485" X-IronPort-AV: E=Sophos;i="6.23,151,1770624000"; d="scan'208";a="74988485" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Mar 2026 02:20:49 -0700 X-CSE-ConnectionGUID: Q+og3cpcR76uQamTbuu8iQ== X-CSE-MsgGUID: FjVXI9zhQQ2Rk63Ki5ODOQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.23,151,1770624000"; d="scan'208";a="226288492" Received: from smoticic-mobl1.ger.corp.intel.com (HELO fedora) ([10.245.244.28]) by orviesa008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Mar 2026 02:20:45 -0700 From: =?UTF-8?q?Thomas=20Hellstr=C3=B6m?= To: intel-xe@lists.freedesktop.org Cc: =?UTF-8?q?Thomas=20Hellstr=C3=B6m?= , Felix Kuehling , Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , David Airlie , Simona Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Danilo Krummrich , Matthew Brost , Alice Ryhl , Rob Clark , Dmitry Baryshkov , Abhinav Kumar , Jessica Zhang , Sean Paul , Marijn Suijten , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org Subject: [PATCH 0/5] drm/exec: drm_exec polishing Date: Tue, 31 Mar 2026 11:20:18 +0200 Message-ID: <20260331092023.81616-1-thomas.hellstrom@linux.intel.com> X-Mailer: git-send-email 2.53.0 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit During the work towards enabling exhaustive eviction using full ww locking in TTM, Christian indicated that the path for the drm_exec moving forward was to be a full drm_exec helper with things like userptr validation rather than a WW transaction abstraction. The idea was then briefly discussed to craft a WW transaction helper and then subclass that with drm_exec with the idea that the WW transaction helper could be used in TTM for eviction and for other uses that didn't mandate a full exec sequence. Regardless whether that actually happens or not, this series aims to clean up abuses of drm_exec internals in drivers so that future development of drm_exec isn't blocked by such driver usage. Except for patch 3 which is a small cleanup only. Thomas Hellström (5): drm/exec: Remove the index parameter from drm_exec_for_each_locked_obj[_reverse] drm/msm: Remove abuse of drm_exec internals drm/exec: Make the drm_exec_until_all_locked() macro more readable drm/exec, drm/xe: Avoid abusing the drm_exec retry pointer drm/exec, drm/xe, drm/amdgpu: Add an accessor for struct drm_exec::ticket .../gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c | 4 +- drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 15 ++--- .../drm/amd/amdgpu/amdgpu_eviction_fence.c | 3 +- drivers/gpu/drm/drm_exec.c | 6 +- drivers/gpu/drm/drm_gpuvm.c | 3 +- drivers/gpu/drm/msm/msm_gem.h | 1 + drivers/gpu/drm/msm/msm_gem_submit.c | 4 +- drivers/gpu/drm/xe/xe_validation.c | 4 +- drivers/gpu/drm/xe/xe_validation.h | 2 +- drivers/gpu/drm/xe/xe_vm.c | 3 +- include/drm/drm_exec.h | 55 +++++++++++++------ 11 files changed, 58 insertions(+), 42 deletions(-) -- 2.53.0