From patchwork Tue Aug 27 23:14:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Summers, Stuart" X-Patchwork-Id: 11117611 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 700B813B1 for ; Tue, 27 Aug 2019 23:13:51 +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 59799214DA for ; Tue, 27 Aug 2019 23:13:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 59799214DA 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 D021D89BF6; Tue, 27 Aug 2019 23:13:50 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0DFA189BF1 for ; Tue, 27 Aug 2019 23:13:42 +0000 (UTC) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Aug 2019 16:13:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,439,1559545200"; d="scan'208";a="185444177" Received: from jssummer-xeon.ra.intel.com ([10.23.184.90]) by orsmga006.jf.intel.com with ESMTP; 27 Aug 2019 16:13:41 -0700 From: Stuart Summers To: Date: Tue, 27 Aug 2019 16:14:33 -0700 Message-Id: <20190827231435.398-1-stuart.summers@intel.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH 0/2] Add module parameter to reduce engine instances X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: intel-gfx@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" Add a new module parameter, ring_mask, to allow users to disable certain engines for a platform. By default this mask is set to all engines enabled. Bits in the mask are aligned with the intel_engine_id enums. As a prerequisite to the patch which adds the module parameter, change the BUG_ON to a WARN_ON in the event a VDbox or VEbox engine for a platform does not match the total number of engines of these catagories supported in the corresponding fuses. Stuart Summers (2): drm/i915: WARN rather than BUG with unexpected media engines drm/i915: Add ring_mask module parameter drivers/gpu/drm/i915/i915_params.c | 3 +++ drivers/gpu/drm/i915/i915_params.h | 3 ++- drivers/gpu/drm/i915/intel_device_info.c | 10 ++++++++-- 3 files changed, 13 insertions(+), 3 deletions(-)