From patchwork Fri Dec 1 04:21:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Vivi, Rodrigo" X-Patchwork-Id: 13475340 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 ECC21C4167B for ; Fri, 1 Dec 2023 04:24:45 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 97B7510E7B5; Fri, 1 Dec 2023 04:24:41 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3CE5410E7AE; Fri, 1 Dec 2023 04:22:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701404550; x=1732940550; h=from:to:cc:subject:date:message-id:in-reply-to: references:content-transfer-encoding:mime-version; bh=GS+/7DsvU/AV2MzCCRQ7A9blEuT5+BlpwPKUYTVZUFw=; b=QLPaf1431RGMOWqmNmNgdnKgYheQN9A4ek7osTU6Bkwoa82wBcWwDHmc tTLGpzimdPLSrEPj3yNenmKxIVtPOpCDVL8xTJc3JT3n6dcag0zsFBDSl abHcUyFvpqTN0+znY7hsoQyegRj4p2VjoPpS57cLm8OHh9etw7JlWh+q1 Fg/aFqYMBQOEHuKWKlhgYX0WcZ+o81H5RlvsD7tHFFEfF7FXjkaCVEV9A rAqbBis2kbUm6iX4ieycnE//GCqnCeG7YZAHIqWTDJ1/1kKDPjZu//U2J d49148JJoU+FL7w3XEpfVb3dYomGAtJHeb+Sv//kASzQ2YT3vCvgyvbiw w==; X-IronPort-AV: E=McAfee;i="6600,9927,10910"; a="12145970" X-IronPort-AV: E=Sophos;i="6.04,240,1695711600"; d="scan'208";a="12145970" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Nov 2023 20:22:28 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10910"; a="860435359" X-IronPort-AV: E=Sophos;i="6.04,240,1695711600"; d="scan'208";a="860435359" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by FMSMGA003.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 30 Nov 2023 20:22:16 -0800 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Thu, 30 Nov 2023 20:22:15 -0800 Received: from orsmsx602.amr.corp.intel.com (10.22.229.15) by ORSMSX610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Thu, 30 Nov 2023 20:22:15 -0800 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34 via Frontend Transport; Thu, 30 Nov 2023 20:22:15 -0800 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.101) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.34; Thu, 30 Nov 2023 20:22:15 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nturgCTk8BMcZjIoJ929kkfZ2BT+7Gbg06qFmrwUl4YYrSSWtopDj/zan1PxbO5o1PIvyFGyaW2Y9AkeIIzjGndlPV9NQrTNEeW4VZizERTt+HEjFnjH0DC7pNPRhviSQ6KWTT1Z+3MuifrVJ7nCQzkmTxcDvkn3vYuaYgmTmUQ3q+RQj1NcL3J+RWLCkMETUYDp7EQxtAEltsg/PP47jFhCjXtXFCH+H/UHteg1iOmYqPmV7/oEaVBhjNa65E6h8/4RxEW544aiO+Q+koXAtAR3vhZs/0giovz1QVts4RYIK+CqDhO7Orv+pgfNGaLNvFz4i4plR5ndw1xHayFrwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=j6ifDW8y+YdAHVn7Mp3B9LXXA3luNp0HBOdqOxVb2f0=; b=Dyt+zCscG3AS+sAFOYzlTRAEbFVPld6vPBPirfu9lpwjEca0S7bHXj//9ehnXlYQpfXM85txcchm1Q4CKBvvkNUDPLkIAQTUqPrP0n5ndWywtLz9GO2U0vzzWxnriYX1eXoqmS19X53LNhXA8h8uVysL95CcRgif2X9vtK4R9i6lg/es62tzOW9mz4fNf8LcRp8K3OjWXw3eV6EY2I1VyQc/m+GzCUebnHVnpxmkvq6nar04iFX8IwJxPGvdCWGbDm5CQ8i3IDPyv7ihI81z5nXnX3esRnN/fMMNlZ72pbJJW5zhYefP+N4qZSjzAM45M11ijrVUbpT7dY0DbN22KA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from MN0PR11MB6059.namprd11.prod.outlook.com (2603:10b6:208:377::9) by MW3PR11MB4666.namprd11.prod.outlook.com (2603:10b6:303:56::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7046.24; Fri, 1 Dec 2023 04:22:14 +0000 Received: from MN0PR11MB6059.namprd11.prod.outlook.com ([fe80::ada2:f954:a3a5:6179]) by MN0PR11MB6059.namprd11.prod.outlook.com ([fe80::ada2:f954:a3a5:6179%5]) with mapi id 15.20.7046.023; Fri, 1 Dec 2023 04:22:14 +0000 From: Rodrigo Vivi To: , , , , , , , , , Subject: [PATCH 2/5] drm/doc/rfc: Mark drm_scheduler as completed Date: Thu, 30 Nov 2023 23:21:52 -0500 Message-ID: <20231201042158.80009-3-rodrigo.vivi@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231201042158.80009-1-rodrigo.vivi@intel.com> References: <20231201042158.80009-1-rodrigo.vivi@intel.com> X-ClientProxiedBy: SJ0PR03CA0132.namprd03.prod.outlook.com (2603:10b6:a03:33c::17) To MN0PR11MB6059.namprd11.prod.outlook.com (2603:10b6:208:377::9) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN0PR11MB6059:EE_|MW3PR11MB4666:EE_ X-MS-Office365-Filtering-Correlation-Id: 813bb30c-cd7a-4613-d7f8-08dbf2251848 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: aPEOQMPJHGg2LwR8wmxRCL65bCARM1rpkHCZpJl5LCwWH8/gaK3619aRGiSxitSnxPorzvkMnOTk/EObynQYZLzSKkULnGrn3A7oA6590teFNx+o/6f/4aGeIcgM/UAh3WKXzTYY1ffAoQ6MaV2zttn13jFyL2+V6dqo5aZ7IGf8kwb0xx7xvOlPjd0stwfs/1d1JrUTVF3vJBrYDhwSIANsY6vekQrNGdv6jN2XLtE8lsd4fw1aXD0K5c/XUZAm+YjE4rbz5wd47xEuu5Qs+lVT4BuP0eDiWxupQdrVpjACmM8udQsqHUi7EzB/36aVJpuXeeFriaFkyGNOnMKxvlKrwR6vyGNm3bc7BBVKBaA0FHqvv2DDc69JPyeTu/9AEJ2GYudH1xrYZS/ZZ8gZLMfQkay9k2Yxz7aDoGz4v/6wIO3ekVStYFj3oO0FJC1fO315zVKPuOZNSqWdSbBKI2flqoq5ZdGRA42KzMFzebyzHjXt1aKL+WbMa3x4KxMXhQUVbF5hXRrHpwW3JfBeUwaMqXdGBIxrFZaS1dFt7hhzJKLiawHs+ro2NkwJu5I+F8twhg9/K2yguIi75ey/5BmNMOelLLFe7FChpCBZUbk= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN0PR11MB6059.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(39860400002)(346002)(376002)(366004)(396003)(136003)(230922051799003)(1800799012)(186009)(64100799003)(451199024)(26005)(6512007)(6506007)(1076003)(107886003)(44832011)(6666004)(2616005)(83380400001)(478600001)(4326008)(41300700001)(8676002)(8936002)(7416002)(5660300002)(2906002)(6486002)(316002)(66556008)(66476007)(66946007)(36756003)(38100700002)(82960400001)(86362001)(921008); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?iYaPl+p7pL/bFvZc+cZnmwIG7cbU?= =?utf-8?q?NwTeVRoSrlkZUtBaZqZSkN2EaC1C/G1Op65wW2IT3rOybM8iIqk7iu9Jc14ML90QF?= =?utf-8?q?fYylv7CjGt57/eSDQ101HA1kdf7Ku+/4z+pk0czwFESYETptERlWR+mNQBAPsbPdU?= =?utf-8?q?rLwRlurhd/DDJq291Ms5ZMIfXDrML13dxkd2Pt3mWekZ2986BcT2vpFEjMrJ2BpoC?= =?utf-8?q?aElihXCoZ3rcC91DvHq46/SELNzg6sAdqRwIHF0x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fs14RT9HYgIB?= =?utf-8?q?KvslzOKR84on2xt+Ofcz4F9dUHJR1KzdeqIKmmbtG8ROJGDrYV2vJjlCzrC4QOmMK?= =?utf-8?q?TODR8Vfk0CFBB37C+IaOeLjAcVySG2l9jtGa+tRUFHvja7NpSwXTWWWB0d8gcaYt1?= =?utf-8?q?ReZcaAH7Utzi4fcrx5eP3g9BJeI5okPNDsttWHLFrGUQ/c0APYLZdN5YnMIUxyANg?= =?utf-8?q?fMYJaKi8886HcAEdV1MzC7XrK3q+I3RVL8W7YA5+WudbYBvJnT9Z4Vgxqb1RItmai?= =?utf-8?q?LjjnryqqfjMdqMbYFhT9IZ6DBbpW5QWDcGw2i4W5S4AQK6xQ6M5qZ2gL9kDOxWEWQ?= =?utf-8?q?piQTeH5zdMQ/Ect1XOoi/rAoFiX0lyOuvMVAslarx8kSbkaRY7Y3d0DTWTkR4yg/J?= =?utf-8?q?4PvNXR2cOGkYK/Ke5+fZyAwMRs3JligAXA=3D=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: 813bb30c-cd7a-4613-d7f8-08dbf2251848 X-MS-Exchange-CrossTenant-AuthSource: MN0PR11MB6059.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Dec 2023 04:22:13.9867 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: pL2BVOSKUSJkxlK0KQ1M2f/iaAWZCvs61jG2Mxo1JPz81bUQmq0icLJqFt7M1GmSdhW7yErh95gi/b9qbYuYmQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW3PR11MB4666 X-OriginatorOrg: intel.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rodrigo Vivi Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Current drm-xe-next doesn't have any drm/scheduler patch that is not already accepted in drm-misc-next. This completed this goal with the consensus of how the drm/scheduler fits to the fw scheduling and the relationship between drm_gpu_scheduler and drm_sched_entity. Signed-off-by: Rodrigo Vivi --- Documentation/gpu/rfc/xe.rst | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/Documentation/gpu/rfc/xe.rst b/Documentation/gpu/rfc/xe.rst index 2a5132327617..9f3afab6c06a 100644 --- a/Documentation/gpu/rfc/xe.rst +++ b/Documentation/gpu/rfc/xe.rst @@ -70,24 +70,6 @@ When the time comes for Xe, the protection will be lifted on Xe and kept in i915 Xe – Pre-Merge Goals - Work-in-Progress ======================================= -Drm_scheduler -------------- -Xe primarily uses Firmware based scheduling (GuC FW). However, it will use -drm_scheduler as the scheduler ‘frontend’ for userspace submission in order to -resolve syncobj and dma-buf implicit sync dependencies. However, drm_scheduler is -not yet prepared to handle the 1-to-1 relationship between drm_gpu_scheduler and -drm_sched_entity. - -Deeper changes to drm_scheduler should *not* be required to get Xe accepted, but -some consensus needs to be reached between Xe and other community drivers that -could also benefit from this work, for coupling FW based/assisted submission such -as the ARM’s new Mali GPU driver, and others. - -As a key measurable result, the patch series introducing Xe itself shall not -depend on any other patch touching drm_scheduler itself that was not yet merged -through drm-misc. This, by itself, already includes the reach of an agreement for -uniform 1 to 1 relationship implementation / usage across drivers. - ASYNC VM_BIND ------------- Although having a common DRM level IOCTL for VM_BIND is not a requirement to get @@ -169,6 +151,24 @@ Xe – uAPI high level overview Xe – Pre-Merge Goals - Completed ================================ +Drm_scheduler +------------- +Xe primarily uses Firmware based scheduling (GuC FW). However, it will use +drm_scheduler as the scheduler ‘frontend’ for userspace submission in order to +resolve syncobj and dma-buf implicit sync dependencies. However, drm_scheduler is +not yet prepared to handle the 1-to-1 relationship between drm_gpu_scheduler and +drm_sched_entity. + +Deeper changes to drm_scheduler should *not* be required to get Xe accepted, but +some consensus needs to be reached between Xe and other community drivers that +could also benefit from this work, for coupling FW based/assisted submission such +as the ARM’s new Mali GPU driver, and others. + +As a key measurable result, the patch series introducing Xe itself shall not +depend on any other patch touching drm_scheduler itself that was not yet merged +through drm-misc. This, by itself, already includes the reach of an agreement for +uniform 1 to 1 relationship implementation / usage across drivers. + Long running compute: minimal data structure/scaffolding -------------------------------------------------------- The generic scheduler code needs to include the handling of endless compute