Received: by 2002:a05:6512:3a82:0:0:0:0 with SMTP id q2csp536913lfu; Mon, 25 Apr 2022 04:14:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzjowKnGtA10nAiZqDbwkJZpq0uk6jkhfn71Ic1oAo5Bq3UQBDcuJ9AnWfRotuCs4aq9y7D X-Received: by 2002:a17:902:c952:b0:15d:150f:344c with SMTP id i18-20020a170902c95200b0015d150f344cmr4512833pla.40.1650885259460; Mon, 25 Apr 2022 04:14:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650885259; cv=none; d=google.com; s=arc-20160816; b=b9is3OjqJY47eF0KahzABEY0VG/8JkTIGWGGsyCU8Aqzc/htvFni35IW4QISVhkO4d 50t+0SHTnQA7VXBHrBozlQurlhBznO1TD9SJTqKarfk5THMAH1hc+z3KIAA5FGHgJiS5 8ovN05IC6Z7F10+ZQi+zU9QCUoa/UvxqPRBL7NUWjfz4wdCceRT3Bh76UtCx4j6+nEmA Y9Pf9vxvUbSaXbdNp2cHFSc1qZyZ9YGHaPvWuoym5w5EsrAVtd8dQPuM+anW3eag31c8 E8hRSAWONqEchwMe1EHO28G8jH8hvYoxZd1xyAHyWiMzuGGZFDy13A6JnZRTHc1eIEAO Gi6g== 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=UIz9QrZjGoutlz8/wHhjlMjQrSgyPaIZDyerv2pWqYg=; b=b31NaWAmYw8aC1mCRTR0eeTSmkRH7nTAehaQFZS4pslQo7yhZEOuw38pOlMJy0MrRy T3rgTmLtMNN1YDkN3MzgVGw5i5jA/YLsu3y7Gpvj2dhleRgJ6JWjlf0PQvOiEbz8u1cp 0qRkSgNVxmrWeegxOnE+M/lb3fjuRvEQ5ji87kTRkO0ciMfup+8LTAOdYVFCTPHkA5Bt gfUCaIebWk/EtZlqLG2jXoGju6MCS6hdnlpu/Vgxm16/Fhe3+HiiZ+MJ1KK/dYyHnD6w XnoBX19yiO/AO2sZVmOIAgqODpZo2Mh2ySKUocXjiTLBgz+SRC4xVBE0BQ+jpeJpDzNx cnnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=niK6O4Zd; 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 i63-20020a638742000000b003aa7f30fcaasi2600965pge.516.2022.04.25.04.14.04; Mon, 25 Apr 2022 04:14: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=niK6O4Zd; 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 S241495AbiDYHxP (ORCPT + 99 others); Mon, 25 Apr 2022 03:53:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241404AbiDYHwa (ORCPT ); Mon, 25 Apr 2022 03:52:30 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E4BD132 for ; Mon, 25 Apr 2022 00:49:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1650872967; x=1682408967; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=YSmcXoZx1tsMcQcOYD1yikOteulbwH8GaQawx8yjFP0=; b=niK6O4ZdBmsyddrTojpudU3N4GLM3vxSJxP5OQnUz95S1nzJjWxGP9cV cCYCf/cPWKSSMZn31UkmM7iOK8n1XXPOdt7BGJ7cjKSPsk5fVCfrCzOHV VXsyWVK+ehcTJZuJVrv41QwrNLgGc0KAOk7Sfp2kbZIM8GtFZUHwKN2+7 87sKOrjkW8bHWKia5mhOZgE9wwe6puppIZwD6TsKxalofbvf+etgIggT2 8duUMl0f0yOWHKaBIYE7/hUNKDCHa6zR2UPxQavso9GFjT05rR6J7sux/ j1aoBePQTROqGZpGFaYyZAz1hgNC+ocAvhnXnYyw7f7zUCjIGCNn207M7 A==; X-IronPort-AV: E=McAfee;i="6400,9594,10327"; a="264973687" X-IronPort-AV: E=Sophos;i="5.90,287,1643702400"; d="scan'208";a="264973687" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Apr 2022 00:49:26 -0700 X-IronPort-AV: E=Sophos;i="5.90,287,1643702400"; d="scan'208";a="557599901" Received: from sannilnx.jer.intel.com ([10.12.231.73]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Apr 2022 00:49:23 -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 v2 04/14] drm/i915/gsc: add slow_fw flag to the gsc device definition Date: Mon, 25 Apr 2022 10:48:51 +0300 Message-Id: <20220425074901.3991274-5-alexander.usyskin@intel.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220425074901.3991274-1-alexander.usyskin@intel.com> References: <20220425074901.3991274-1-alexander.usyskin@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.0 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 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.32.0