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 051B9CDB47E for ; Wed, 11 Oct 2023 23:51:10 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id BF25810E30A; Wed, 11 Oct 2023 23:51:09 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.24]) by gabe.freedesktop.org (Postfix) with ESMTPS id A925F10E2E4 for ; Wed, 11 Oct 2023 23:51:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697068265; x=1728604265; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=wJiOkpnZ5oRIZFE4KL+eFCkuHOnewIpRIabhH1YvATg=; b=AlTftiZYe73vF+MQCQCE7ROXYzxw7fOLZguQ0JSPDbipOPBthTYGd7yj DZYru1ZvBFhnHrODWKrZtoRvJcvxVfGDFtmR+YsM0/I1glz7ZkM/e/KVa WnhQzPr4+XTsGeyIlUWnbn6bja8g3dY9CfO8M9r4ZTUiBgklaofG2uOXu JLg+5vHIlgbdXZnV1zaIKzDPbkBu6jA/gQ9EgJ+SFGveTKB8WvIctoVPe 2Wu6JntZXl/IiwzvZDK+3AmxFoSooRHDbF3cM6ahuXbEGBndIE6zgUvzJ IPWamSQCtnN14zKzrUz+qcJkY8KERoZybM9tTsao0t7kxysidSiSJsqzl g==; X-IronPort-AV: E=McAfee;i="6600,9927,10860"; a="387636663" X-IronPort-AV: E=Sophos;i="6.03,217,1694761200"; d="scan'208";a="387636663" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Oct 2023 16:51:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10860"; a="824366178" X-IronPort-AV: E=Sophos;i="6.03,217,1694761200"; d="scan'208";a="824366178" Received: from lstrano-desk.jf.intel.com ([10.54.39.91]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Oct 2023 16:51:04 -0700 From: Matthew Brost To: Date: Wed, 11 Oct 2023 16:51:25 -0700 Message-Id: <20231011235126.585242-1-matthew.brost@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Intel-xe] [RFC PATCH v2 0/1] DRM scheduler update X-BeenThere: intel-xe@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Xe graphics driver List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-xe-bounces@lists.freedesktop.org Sender: "Intel-xe" Update DRM scheduler in Xe to pending upstream post [1]. Upstream post should be rev7. Want feedback on introducing Xe scheduler layer. This looks to be required as Xe must implement the message interface rather than the DRM scheduler [2]. Matt [1] https://patchwork.freedesktop.org/series/121745/ [2] https://patchwork.freedesktop.org/patch/556934/?series=121745&rev=5 Matthew Brost (1): drm/xe: Update to upstream DRM scheduler code drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 8 +- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +- drivers/gpu/drm/etnaviv/etnaviv_sched.c | 2 +- drivers/gpu/drm/lima/lima_sched.c | 2 +- drivers/gpu/drm/msm/adreno/adreno_device.c | 4 +- drivers/gpu/drm/msm/msm_ringbuffer.c | 2 +- drivers/gpu/drm/nouveau/nouveau_sched.c | 2 +- drivers/gpu/drm/panfrost/panfrost_job.c | 2 +- drivers/gpu/drm/scheduler/sched_entity.c | 13 +- drivers/gpu/drm/scheduler/sched_main.c | 524 ++++++++++--------- drivers/gpu/drm/v3d/v3d_sched.c | 10 +- drivers/gpu/drm/xe/Makefile | 1 + drivers/gpu/drm/xe/xe_gpu_scheduler.c | 102 ++++ drivers/gpu/drm/xe/xe_gpu_scheduler.h | 75 +++ drivers/gpu/drm/xe/xe_gpu_scheduler_types.h | 58 ++ drivers/gpu/drm/xe/xe_guc_exec_queue_types.h | 8 +- drivers/gpu/drm/xe/xe_guc_submit.c | 142 +++-- drivers/gpu/drm/xe/xe_trace.h | 13 +- include/drm/gpu_scheduler.h | 54 +- 19 files changed, 625 insertions(+), 399 deletions(-) create mode 100644 drivers/gpu/drm/xe/xe_gpu_scheduler.c create mode 100644 drivers/gpu/drm/xe/xe_gpu_scheduler.h create mode 100644 drivers/gpu/drm/xe/xe_gpu_scheduler_types.h -- 2.34.1