Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp4688398pxb; Tue, 22 Feb 2022 04:16:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJxAMERwRI8npCQ5F4rCNGqC4Ey9jy6X0xnmzL0i53d5GD6N8LqCto3wt7hkucBIRgRGUOzp X-Received: by 2002:aa7:c612:0:b0:40f:2a41:bddb with SMTP id h18-20020aa7c612000000b0040f2a41bddbmr26016157edq.291.1645532216752; Tue, 22 Feb 2022 04:16:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645532216; cv=none; d=google.com; s=arc-20160816; b=ciyM18H1KnN7YI5ozi+G+jD7vTbyRXga58wo2LaNY5nE+HVucFiVyGZwoOIc2ip2UI H2+iJZ2USfqIod9gdjTBo4jIUJTDk++AZtg4FPIQpSQnJf450olkv5Kr3UzBxgs1dtef kEBfdwO5kNYqTpEsXMC5mhSbRniLjC5892KKb6Hw1d2iPqt6sLlw+DF/+a1rNk+Vt4xO Tx/WkL/8vIk+tdQgACdN/t/uw6Xucqb0YyuE8UNux7Sm7RAfB2IOnrYC4w/V5MeEPDYW XlJHA43qABiqMu/R3zJa9j/6GLNcGhbe7oXOSbbjBgn1/Hs/j9K6YnvqyZarc0tN7e8l T6tA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=TuaX+/iWwVWj8gIfn/OebMAi7Wbzv1P7k0750aS2ZJY=; b=ltMDoHMD5jRFN61Iie9/Z1D9FPeau5/DB9psK2kFMDVkD8Z2Mc+BZseXVvteQk1lzE jKxtqznjXLnmKuUVS7X7MkVcJCxekKdDzn/hw1UjIZFSaKy18GQimI2I7UNBaAq1IxSx jK4PDohmLMVfpDjqHrcaVnmpHNBKYqyTWqNJA8HEKvb7Id+WgP/5A6ZlqFHRMpnOlubn vBEjVwLwFwOSY/Pegb4laE9jkPZOXKTcDGYPFsL5daaAu4cChY6JgqiGtY2ZRvCBxEc2 W+WSm2X/kynqsGD0Zd2DPaaEhZiVPIEnPezo9V6wS3o6MYejdwADPtINYCJT8ne8vMdP +q2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=edu8fAd7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g19si10206924edu.433.2022.02.22.04.16.33; Tue, 22 Feb 2022 04:16:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=edu8fAd7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231528AbiBVKud (ORCPT + 99 others); Tue, 22 Feb 2022 05:50:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231536AbiBVKuH (ORCPT ); Tue, 22 Feb 2022 05:50:07 -0500 Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D4FC15D3BD for ; Tue, 22 Feb 2022 02:49:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1645526974; x=1677062974; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=CJaVHk7pq1piWj3OOHpdgpcurcwUUzead39PyDmUoWg=; b=edu8fAd7ZqrU3a/C5Ln/1b7ElKnyTFhFwnbBbKPZNzH7JjWGi6wIzuwY B0iXA1bgNZHennC45Nie1f1Ue3Te2xlY0T4CNRePdawZ0mkgJOxD141yn 8VtIrhDVxBaQ8YzuHNTeGx3ss5s6OfRJCtf9J4pxtvSQwn9Or+rvJ58Wm pyOrRkTt63Da0Z/wWpM6lKkjoUIjKhgeibz/nLjHwYnguKB86fnsIBswe 4vJARhWNCPeyVT48NKtg+Ds5Tpedqh4T/K/IWEIBmeCyu3JZ4yUmMhbj8 jSBu4rwvikAIdQKKO2f9/PNmndwc9lNQEvOAgAfide1+ljkXNe/otagEr Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10265"; a="312405410" X-IronPort-AV: E=Sophos;i="5.88,387,1635231600"; d="scan'208";a="312405410" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Feb 2022 02:49:31 -0800 X-IronPort-AV: E=Sophos;i="5.88,387,1635231600"; d="scan'208";a="706569591" Received: from sannilnx.jer.intel.com ([10.12.231.79]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Feb 2022 02:49:28 -0800 From: Alexander Usyskin To: Greg Kroah-Hartman , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , David Airlie , Daniel Vetter , Tvrtko Ursulin Cc: Tomas Winkler , Alexander Usyskin , Vitaly Lubart , intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/7] drm/i915/gsc: add slow_fw flag to the gsc device definition Date: Tue, 22 Feb 2022 12:48:50 +0200 Message-Id: <20220222104854.3188643-4-alexander.usyskin@intel.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220222104854.3188643-1-alexander.usyskin@intel.com> References: <20220222104854.3188643-1-alexander.usyskin@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add slow_fw flag to the gsc device definition and pass it to mei auxiliary device. Signed-off-by: Alexander Usyskin --- drivers/gpu/drm/i915/gt/intel_gsc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/i915/gt/intel_gsc.c b/drivers/gpu/drm/i915/gt/intel_gsc.c index db01cfda78f1..1cbad9248f7c 100644 --- a/drivers/gpu/drm/i915/gt/intel_gsc.c +++ b/drivers/gpu/drm/i915/gt/intel_gsc.c @@ -41,6 +41,7 @@ struct intel_gsc_def { unsigned long bar; size_t bar_size; bool use_polling; + bool slow_fw; }; /* gscfi (graphics system controller firmware interface) resources */ @@ -125,6 +126,7 @@ static void intel_gsc_init_one(struct drm_i915_private *i915, adev->bar.end = adev->bar.start + def->bar_size - 1; adev->bar.flags = IORESOURCE_MEM; adev->bar.desc = IORES_DESC_NONE; + adev->slow_fw = def->slow_fw; aux_dev = &adev->aux_dev; aux_dev->name = def->name; -- 2.32.0