From patchwork Sun Sep 17 21:19:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Previn X-Patchwork-Id: 13388652 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 219D5CD37B4 for ; Sun, 17 Sep 2023 21:19:47 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id BF50E10E198; Sun, 17 Sep 2023 21:19:38 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6AF5710E102; Sun, 17 Sep 2023 21:19:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1694985577; x=1726521577; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=2SkqyqxyrBl0WpxBD5/sSA3jqfuMpbrEe5bfVY0JinY=; b=e1A7KSMU56UoUluxeWnLuk4PmWds9WL6HhFSILrxkqk1V1GUY+V3XSPa 9kOvOoytuV6+9RGUAz1dXa7az4/3bvrZsOZXLVDhgxDQKF7YtZtxcUk4L uX57uoHnTp+Jo7illaiXjkBigY77iJ6hs+FOGXabOqqGyEp/CF0+NO1OP EtFBpipmf5uZsXu16OUOScKb1IUYQSeuMSJzdN2uUaI6SxYDZ9YAmMX89 U31/OyQKZ1xFkHYAbBjCPjqxCO5VM+0rkmTdhLDFK5vj0Bq50GPREt55W fHM8gsdVLMW2D8zMeRdBVFVlUrxqRr7h+8jfhuiLjagGFNfvCV+Ixml7o w==; X-IronPort-AV: E=McAfee;i="6600,9927,10836"; a="410487904" X-IronPort-AV: E=Sophos;i="6.02,155,1688454000"; d="scan'208";a="410487904" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Sep 2023 14:19:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10836"; a="860825084" X-IronPort-AV: E=Sophos;i="6.02,155,1688454000"; d="scan'208";a="860825084" Received: from aalteres-desk.fm.intel.com ([10.80.57.53]) by fmsmga002.fm.intel.com with ESMTP; 17 Sep 2023 14:19:36 -0700 From: Alan Previn To: intel-gfx@lists.freedesktop.org Date: Sun, 17 Sep 2023 14:19:30 -0700 Message-Id: <20230917211933.1407559-1-alan.previn.teres.alexis@intel.com> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH v7 0/3] drm/i915/pxp/mtl: Update gsc-heci cmd submission to align with fw/hw spec X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: dri-devel@lists.freedesktop.org, Alan Previn Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" For MTL, update the GSC-HECI packet size and the max firmware response timeout to match internal fw specs. Enforce setting run-alone bit in LRC for protected contexts. Changes from prio revs: v6: - fix build error with PXP config (Alan) v5: - PAGE_ALIGN typo fix (Alan). - Use macro for runalone bit (Vivaik) - Spec alignment with system overhead, increase fw timeout to 500ms (Alan) v4: - PAGE_ALIGN the max heci packet size (Alan). v3: - Patch #1. Only start counting the request completion timeout from after the request has started (Daniele). v2: - Patch #3: fix sparse warning reported by kernel test robot. v1: - N/A (Re-test) Signed-off-by: Alan Previn Alan Previn (3): drm/i915/pxp/mtl: Update pxp-firmware response timeout drm/i915/pxp/mtl: Update pxp-firmware packet size drm/i915/lrc: User PXP contexts requires runalone bit in lrc drivers/gpu/drm/i915/gt/intel_engine_regs.h | 1 + drivers/gpu/drm/i915/gt/intel_lrc.c | 23 +++++++++++++++++++ .../i915/gt/uc/intel_gsc_uc_heci_cmd_submit.c | 20 ++++++++++++++-- .../i915/gt/uc/intel_gsc_uc_heci_cmd_submit.h | 6 +++++ .../drm/i915/pxp/intel_pxp_cmd_interface_43.h | 4 ++-- drivers/gpu/drm/i915/pxp/intel_pxp_gsccs.c | 2 +- drivers/gpu/drm/i915/pxp/intel_pxp_gsccs.h | 10 ++++---- 7 files changed, 55 insertions(+), 11 deletions(-) base-commit: dc4cd6e4e53d46211952fe7c0e408fce3e212993