Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2407002imw; Wed, 6 Jul 2022 05:32:19 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t9GMCPAruwXvbJYMr/Wlmlm9YA11mhSrp/wW2KyzvJle4qqvnCFVPHYRuIcRjv16qn4bPU X-Received: by 2002:a17:90a:5101:b0:1ef:7fbb:7a22 with SMTP id t1-20020a17090a510100b001ef7fbb7a22mr23877817pjh.24.1657110739765; Wed, 06 Jul 2022 05:32:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657110739; cv=none; d=google.com; s=arc-20160816; b=N3ZHtxTm6AK59MTg01o88B0c+8NrZaE7ebR0eO6q32ro6jbpFOK4VvMV/W+C4lH5mO oDqt/8yTKunwqcI71nPSkjkOFENRBe/BJMsZeeK01cvqObo3fgPci90153WZ475xiREY C+pafyf67BLyuC1+xny8rHt5pmDG4yigKw88v41H1++mfiwozcJvEu9KRsVDYSANTWq3 ibhrX6PjdtsTaHhESvMvAVvTfq2PF0xVx+zJzq9MD/+CWtJPYtOfIwTvxClfbcZQMpk0 Ew92SL/jIZiRpHPK6Q1H6+liezXYJY4Qnx+qHrSH8Lmste+9MTCx0jkqaIx3DD9NgRfI hw4g== 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=jnxKy8WHSTcmpRb+UHNuFN//TmnnPvRDUG+oZ+UtT9k=; b=nk/WHCq/SFPKTXXSKo/bi+28BkRXeh4J0wcndAcZkqVrF9XEb9/Z2lqUR4aSmByeUb 2FZm4G/xLB/ORk+Y1xBzcn6/jERFUwPsxSDR27wiFuZGbCHYQNXL2Dwa43upcTpzEpQq svncbWRsPVqf2vllmFHZettcdWdJwWqRPIu9Dp8auvR6830bD30ORkk64IsR5ciHuE0M RFlHbtIZAMGAuSFkc3mEkblZdm+rNFNeSmLqnb5oWMjYurvafxM0oE3lc9F20rHiWJYQ S6vb/A8J3ErG+mw6frsBRFrifsvekRbUR8wPA8fUxzS6sKfUKo/ssBiXsrZMzpBulL8p iSpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=VBPRzRGK; 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 rm1-20020a17090b3ec100b001e34f58374fsi15878926pjb.129.2022.07.06.05.32.07; Wed, 06 Jul 2022 05:32:19 -0700 (PDT) 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=VBPRzRGK; 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 S233266AbiGFLoq (ORCPT + 99 others); Wed, 6 Jul 2022 07:44:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233113AbiGFLob (ORCPT ); Wed, 6 Jul 2022 07:44:31 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21A65286EB for ; Wed, 6 Jul 2022 04:44:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1657107864; x=1688643864; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=hJ7/0NMQ+bhhK7LrA8d3+wDuEzwTVfD+Czxxn93mcY0=; b=VBPRzRGK780qfGXmFUVTctxGxOvTOr02uL9Q51deYLTL19EO2MyzWqeY 1IUdkWs+5cv3vyM/RTcWOr0qiEu248QYTvHxnQ1erOZx04/uAyuSGT30B TmX7HcIrqeHlqr5B+shV3iYF1sRU9FO53jSxj3s1/yIKLFrAZyNSS52Zk 2alc08T7Qv3URtpolvuNDMvZ+sphCy6v/Q+MzN0CDauM5y0+hpcN8Fsrw a4qw53eD6GlY93whQVQNBpHktCeahpm5samOgg9Hn5XYAmqBULYZ/o+KV xgxq8CB1CilxMMyEzjf4IKEPCjOyFQXmdWg/rxuHiHXsVOcLIXx0DLPiA w==; X-IronPort-AV: E=McAfee;i="6400,9594,10399"; a="347707458" X-IronPort-AV: E=Sophos;i="5.92,249,1650956400"; d="scan'208";a="347707458" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jul 2022 04:44:09 -0700 X-IronPort-AV: E=Sophos;i="5.92,249,1650956400"; d="scan'208";a="650630136" Received: from sannilnx.jer.intel.com ([10.12.26.175]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jul 2022 04:44:05 -0700 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, Daniele Ceraolo Spurio Subject: [PATCH v5 03/14] drm/i915/gsc: add slow_fw flag to the gsc device definition Date: Wed, 6 Jul 2022 14:43:34 +0300 Message-Id: <20220706114345.1128018-4-alexander.usyskin@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220706114345.1128018-1-alexander.usyskin@intel.com> References: <20220706114345.1128018-1-alexander.usyskin@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.1 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 Reviewed-by: Daniele Ceraolo Spurio --- 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 e0236ff1d072..f963c220bbff 100644 --- a/drivers/gpu/drm/i915/gt/intel_gsc.c +++ b/drivers/gpu/drm/i915/gt/intel_gsc.c @@ -41,6 +41,7 @@ struct gsc_def { unsigned long bar; size_t bar_size; bool use_polling; + bool slow_fw; }; /* gsc resources and definitions (HECI1 and HECI2) */ @@ -145,6 +146,7 @@ static void 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.34.1