From patchwork Tue Dec 10 21:09:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniele Ceraolo Spurio X-Patchwork-Id: 11283305 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0A679138C for ; Tue, 10 Dec 2019 21:16:30 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id E691B205C9 for ; Tue, 10 Dec 2019 21:16:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E691B205C9 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=intel-gfx-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1FB886E95C; Tue, 10 Dec 2019 21:16:29 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org X-Greylist: delayed 426 seconds by postgrey-1.36 at gabe; Tue, 10 Dec 2019 21:16:28 UTC Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by gabe.freedesktop.org (Postfix) with ESMTPS id 44C2A6E95C for ; Tue, 10 Dec 2019 21:16:28 +0000 (UTC) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Dec 2019 13:09:22 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,300,1571727600"; d="scan'208";a="244990512" Received: from dceraolo-linux.fm.intel.com ([10.1.27.145]) by fmsmga002.fm.intel.com with ESMTP; 10 Dec 2019 13:09:21 -0800 From: Daniele Ceraolo Spurio To: intel-gfx@lists.freedesktop.org Date: Tue, 10 Dec 2019 13:09:14 -0800 Message-Id: <20191210210919.30846-1-daniele.ceraolospurio@intel.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH 0/5] Simplify GuC communication handling 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: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" Since H2G communication will be in the hot path of GuC submission, the main aim of this series is to get rid of the function pointers to speed things up and avoid retpolines (in case the compiler decides they're required). While at it, simplify the general communication enabling/disabling by removing support for multiple channels since it is extremely unlikely that we'll ever use more than one. Cc: Michal Wajdeczko Cc: John Harrison Cc: Matthew Brost Daniele Ceraolo Spurio (5): drm/i915/guc: Merge communication_stop and communication_disable drm/i915/guc/ct: stop expecting multiple CT channels drm/i915/guc: remove function pointers for send/receive calls drm/i915/guc: unify notify() functions HAX: force enable_guc=2 and WA i915#571 drivers/gpu/drm/i915/gt/intel_gt_irq.c | 2 +- drivers/gpu/drm/i915/gt/selftest_gt_pm.c | 9 + drivers/gpu/drm/i915/gt/uc/intel_guc.c | 43 +-- drivers/gpu/drm/i915/gt/uc/intel_guc.h | 41 +-- drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c | 298 +++++++----------- drivers/gpu/drm/i915/gt/uc/intel_guc_ct.h | 55 ++-- drivers/gpu/drm/i915/gt/uc/intel_guc_log.c | 6 +- .../gpu/drm/i915/gt/uc/intel_guc_submission.c | 1 - drivers/gpu/drm/i915/gt/uc/intel_uc.c | 36 +-- drivers/gpu/drm/i915/i915_params.h | 2 +- 10 files changed, 186 insertions(+), 307 deletions(-)