Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp5913470rwb; Wed, 7 Sep 2022 09:43:48 -0700 (PDT) X-Google-Smtp-Source: AA6agR48sefSrhnX9KkrTzE1u/i5UdBOc/gjvq2bi0blq+sxE4EdJGnzAuRV1TwcsqP5Hgu+L+Oy X-Received: by 2002:a05:6402:1655:b0:44e:b208:746d with SMTP id s21-20020a056402165500b0044eb208746dmr3880187edx.229.1662569027962; Wed, 07 Sep 2022 09:43:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662569027; cv=none; d=google.com; s=arc-20160816; b=YqhM9GO7MexyY78sIPV5uA1cUyKBpxwcb42PrK+SMn0NUA0HHrrpnWFX0g+MGmpMcy yQp9VVwHv/NwgOB2mssjD3vb76zUedGaIYE/rQFuSUP9VR4HDdMIJQ1yVzWhUELr+oQO 3Wx0eLSf6AOSgmkqA0Zfea6IIsv33wDH7ggojgtfeo0jGdnxWLLUQGg0QOyNFx/v8Kdp Cwql83AIYpY1dAYZWzhVv8cL30C6y9mFyEGzYjTLodWuUl2mDvV7I8oTOGV2t82eyoUN /q84F1Co3voEqxuSCE0Q57fL4vR30Wv11OgkSZJMTLTYi0hzqKUpRUU5u0M/CL3V74xy aPig== 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=A8MeTgqYvTnvvsYx8J15bIEBwXx73g6sZ39VaJaGu/k=; b=RMzPc7RoHhvOURycTV1bkXoaeT8pjYro8lgGvHIFvsdGg0DTEC6kj1Ky8fZDNNLRqf AFiyEarQcCTRUuCW/xfATOVqCe3bS/h2ufSnry+OeV/Eos7PciF3AsAu5vOlR3ezQrCK ssCu2QKwaiPeqpbv3Ebo0MKNhYHN0QyEwlpgYP2JzrATacL3ibposX4raezuw4Feqo4B vaA384l2V24F8HrCxIjqpql+HjZcwXovuaa/2vd4SogSL/WhmSQgOTfplz+ar82Xgb+1 IKCmCZyFTCcuivnBlHslipeOxo7tyAD+JMDN2alqTEMaVfZx1Q5ZhkNl+IyaXKul2EQb /HVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=E1dxf2U9; 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 cs7-20020a0564020c4700b00446eb5c6a3fsi3136520edb.555.2022.09.07.09.43.22; Wed, 07 Sep 2022 09:43:47 -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=E1dxf2U9; 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 S229884AbiIGP7M (ORCPT + 99 others); Wed, 7 Sep 2022 11:59:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229644AbiIGP7K (ORCPT ); Wed, 7 Sep 2022 11:59:10 -0400 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E91E8A7D9 for ; Wed, 7 Sep 2022 08:59:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662566349; x=1694102349; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=TTXR9ShdBo6b3pl//qZEyY3h/5RE4z/vTOv/CpOgz1M=; b=E1dxf2U9tL3du2i79Qi5JV6+uxjyCzOn9iAv48Qs3UKTUmqgSJwevNn4 wS6vMv9ymT2/RT+aWv28j2Ta4OiYF0ncNFW5nTnzjC9Es12vRiWJB4Rj2 JJ/Een43BHfwMvGEf9sJo9vgWUw4FpCLlx+tSZQuv8qJvgD1h+CXgIdHS RHfWu9NKsDFVvVDQY8xqBzjCSDq9qxJxJ7X5IhhenHYfHEWj7mRS2Q30t uol4kevcjY+CiepOlDCSjriCq0aCE7Ynux20eCNU3INAcjpSCR0dmujH8 9SpD3xxYR7EhBS8TRjIYbLOUSQhUodF+Ko/OW/PM6n5ZgDJ3jac66um9i A==; X-IronPort-AV: E=McAfee;i="6500,9779,10463"; a="297701071" X-IronPort-AV: E=Sophos;i="5.93,297,1654585200"; d="scan'208";a="297701071" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Sep 2022 08:58:59 -0700 X-IronPort-AV: E=Sophos;i="5.93,297,1654585200"; d="scan'208";a="676247662" Received: from twinkler-lnx.jer.intel.com ([10.12.87.143]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Sep 2022 08:58:53 -0700 From: Tomas Winkler To: Greg Kroah-Hartman , David Airlie , Daniel Vetter Cc: Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, Tomas Winkler , Alexander Usyskin , Vitaly Lubart , Daniele Ceraolo Spurio Subject: [PATCH v8 04/16] drm/i915/gsc: add slow_firmware flag to the gsc device definition Date: Wed, 7 Sep 2022 18:58:01 +0300 Message-Id: <20220907155813.1427526-5-tomas.winkler@intel.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220907155813.1427526-1-tomas.winkler@intel.com> References: <20220907155813.1427526-1-tomas.winkler@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, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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 From: Alexander Usyskin Add slow_firmware flag to the gsc device definition and pass it to mei auxiliary device, this instructs the driver to use longer operation timeouts. Signed-off-by: Alexander Usyskin Signed-off-by: Tomas Winkler 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..73498c2574c8 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_firmware; }; /* 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_firmware = def->slow_firmware; aux_dev = &adev->aux_dev; aux_dev->name = def->name; -- 2.37.2