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 0287BCDB46E for ; Thu, 12 Oct 2023 04:40:19 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A7B5910E408; Thu, 12 Oct 2023 04:40:19 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.126]) by gabe.freedesktop.org (Postfix) with ESMTPS id DBA1310E402 for ; Thu, 12 Oct 2023 04:40:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697085616; x=1728621616; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=JBNqvOZBsN6V0M6Ubp2WYzDbUU90j/e0aNP2+dz9FAQ=; b=KAyuBd4UEexGosiiESCNxTEeo+YsPCDhQl5HSQqDpcR8SdGhGwJsxOXs vWsastuvICYfiIRZKZ9grcuZiwhIVAoD5vDhkQZBeG3s9nVMb9z/Tg06U m0dqxkBejgGUnP3ZDaX4AWWnRFPeY460QHKXyeI4kkKqLOVV4lDSB+b3B 5rF+1gTYEIb69ZvP703oEhBi5Wmoz/ZQUOOfLIgBna7dTj8rtcMD6Q576 Cm9i98jmMFDJHT8oydTMVuKQ17CGB6RgMD7nZDxyC/7O18gkmYOBwXrro jROmPdgcvUd8tsObvzVbL2m9FpqTicO9X0yJ2Sr2vTnGcW5WfLSHk4cBo w==; X-IronPort-AV: E=McAfee;i="6600,9927,10860"; a="369896881" X-IronPort-AV: E=Sophos;i="6.03,217,1694761200"; d="scan'208";a="369896881" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Oct 2023 21:40:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10860"; a="819988863" X-IronPort-AV: E=Sophos;i="6.03,217,1694761200"; d="scan'208";a="819988863" Received: from lstrano-desk.jf.intel.com ([10.54.39.91]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Oct 2023 21:40:16 -0700 From: Matthew Brost To: Date: Wed, 11 Oct 2023 21:40:37 -0700 Message-Id: <20231012044038.586386-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 v3 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]. 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/#rev7 [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