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 67500C35274 for ; Mon, 18 Dec 2023 19:07:20 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2DBE810E3BF; Mon, 18 Dec 2023 19:07:20 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.65]) by gabe.freedesktop.org (Postfix) with ESMTPS id 40E1410E370 for ; Mon, 18 Dec 2023 19:06:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1702926398; x=1734462398; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=zeVIsdTdVntCdY5jOKYG55JKrmHR2Gxc8OvwcuFmDVE=; b=IRE/8zEEXfB4zIUUthZGchj8nrcRUqtkczH1MK7DEVr54QSsUxrWk2zY 9vliScugnPqCh7ImDfRwqjVPFBuN5OWid8e/ieLSFHTH1yFK5ljel8gh2 W67gWupHpzDEE7ORL/+J28i3FWBnN34vmK5sf3qKYAd1dFYXOGyP6D0xW 9Q11TQ9asPHngkN14moCY5YS444mQN4uQY2najeGDw6OzRUc+5agmK9rX P4FJ6XdPLqZJWFppcvXaljxQ0iz7O+4iyPtruQMVCrcNUcwq+xtNTWAlh kmSRJKyhCmaIQJdCJYtK+jRoIU9bYiQ4HsdHID56HdBcb5EvYNXT1oei5 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10928"; a="399382177" X-IronPort-AV: E=Sophos;i="6.04,286,1695711600"; d="scan'208";a="399382177" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Dec 2023 11:06:37 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10928"; a="866330860" X-IronPort-AV: E=Sophos;i="6.04,286,1695711600"; d="scan'208";a="866330860" Received: from mwajdecz-mobl.ger.corp.intel.com ([10.249.130.107]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Dec 2023 11:06:36 -0800 From: Michal Wajdeczko To: intel-xe@lists.freedesktop.org Subject: [PATCH RESEND v5 00/10] Introduce GuC Doorbells Manager Date: Mon, 18 Dec 2023 20:06:19 +0100 Message-Id: <20231218190629.502-1-michal.wajdeczko@intel.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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" Introduce simple GuC doorbells ID manager that will be used by the PF driver for VFs provisioning and can later be used by submission code once we are ready to switch from H2G based notifications to doorbells mechanism. As preparation steps, improve existing logging and kunit code that is used by the new code. v5: rename drm printfn helpers to follow the header name (Lucas) Michal Wajdeczko (10): drm/xe: Add GT oriented drm_printers drm/xe: Report TLB timeout using GT oriented functions drm/xe: Introduce GuC Doorbells Manager drm/xe/kunit: Set SR-IOV mode of the fake device drm/xe/kunit: Define helper functions to allocate fake xe device drm/xe/kunit: Restore test->priv when done with fake xe device drm/xe/kunit: Use xe kunit helper in RTP test drm/xe/kunit: Use xe kunit helper in WA test drm/xe/kunit: Enable CONFIG_LOCKDEP in tests drm/xe/kunit: Add GuC Doorbells Manager tests drivers/gpu/drm/xe/.kunitconfig | 5 + drivers/gpu/drm/xe/Makefile | 4 + drivers/gpu/drm/xe/tests/xe_guc_db_mgr_test.c | 201 ++++++++++++++ drivers/gpu/drm/xe/tests/xe_kunit_helpers.c | 90 ++++++ drivers/gpu/drm/xe/tests/xe_kunit_helpers.h | 17 ++ drivers/gpu/drm/xe/tests/xe_pci.c | 3 + drivers/gpu/drm/xe/tests/xe_pci_test.h | 2 + drivers/gpu/drm/xe/tests/xe_rtp_test.c | 5 +- drivers/gpu/drm/xe/tests/xe_wa_test.c | 5 +- drivers/gpu/drm/xe/xe_gt_printk.h | 44 +++ drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c | 13 +- drivers/gpu/drm/xe/xe_guc_db_mgr.c | 261 ++++++++++++++++++ drivers/gpu/drm/xe/xe_guc_db_mgr.h | 22 ++ drivers/gpu/drm/xe/xe_guc_types.h | 15 + drivers/gpu/drm/xe/xe_uc.c | 5 + 15 files changed, 680 insertions(+), 12 deletions(-) create mode 100644 drivers/gpu/drm/xe/tests/xe_guc_db_mgr_test.c create mode 100644 drivers/gpu/drm/xe/tests/xe_kunit_helpers.c create mode 100644 drivers/gpu/drm/xe/tests/xe_kunit_helpers.h create mode 100644 drivers/gpu/drm/xe/xe_guc_db_mgr.c create mode 100644 drivers/gpu/drm/xe/xe_guc_db_mgr.h -- 2.25.1