Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp213629rwn; Wed, 7 Sep 2022 15:22:23 -0700 (PDT) X-Google-Smtp-Source: AA6agR43U/wktYEdpcPWyqnL8QM29I93+uMRyvNxAL1K8n/CMF8wSe4dQJwRTNnJ/8J92vi+oLJ4 X-Received: by 2002:a17:907:1b1f:b0:72f:56db:cce9 with SMTP id mp31-20020a1709071b1f00b0072f56dbcce9mr3598616ejc.605.1662589342941; Wed, 07 Sep 2022 15:22:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662589342; cv=none; d=google.com; s=arc-20160816; b=xQpkMmDLaL6ukAA9AwElPxK9FVqfsV6j2TVcXTl2w9UpLohpphYP8h3/lRU9gy3KfV P8AqLqEdMGOR5keqS5RNG7o64aR1a3NVmkwtbG64p1I/oi1eU7CoaAyJ1p0qCcXkcyQU rR99Y+J6q+3DcO0QDRkkKiwxJi912jQxZx3mE9Q+Skg+b9g10ZGadVMmJk1nlp2UaMTF QmgqNBxfMW5nGs49eO4dDTXj79RPHFR+WWylYnQ48vCN9DDzsO9MaFxToGw69Fykey9U KrdAjaAD8M3NBoNpC78KhRAxnod0kjW8MQPGtPVbzmaNj4PZSZtPCS46sOwc0TtDEyex a5Yg== 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=PqM/FROPR1hqcjqOQS8HEEM8DTG59Gn+siMwRXo/Lu0=; b=oX7d83TqyhTKZq2rgT/i/57CDDhA2GQ61bAYMFJCGoaSMhZStM2xHElIYtpzbaPpFO DfMmwWjaJgBVr8AX2zAGlb9x77jZ6t4HctP6KTBP3bqZUlTJQ8nqLV/v7elTh1+qEnGw NoF9DgrXctfArsJZRlj+6t0a8PN3xFPNEECxF3bryDo0e6WnusNDD3/il/N9kCWgufwm J7wNyrVDOgxNYrrRe1Ytlki+QmnZ5tV2cS53XhA9385cXBmgLk1qe7i2H2pb/KeO+3/D ickhCmnvIZkecHHuIWzUOxgCsRdU2LGAfw5QvpIRmdkATwrFl5oUveOk8P8qfeJfYDvz HP0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=TXiM0eJF; 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 hk17-20020a170906c9d100b0072ab5d0fc33si343028ejb.863.2022.09.07.15.21.58; Wed, 07 Sep 2022 15:22:22 -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=TXiM0eJF; 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 S230388AbiIGVwC (ORCPT + 99 others); Wed, 7 Sep 2022 17:52:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230337AbiIGVv5 (ORCPT ); Wed, 7 Sep 2022 17:51:57 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7523BBC9E for ; Wed, 7 Sep 2022 14:51:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662587516; x=1694123516; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=XpL0iOQ4ux+sfLhmUe6gUOmb++/+QHM06dKBcLpqo1A=; b=TXiM0eJFdfA62gFRa/56sU+AcEW0jr5x2ehbqzVxrta7RLzuAzNDarr6 clDqH5paG8a/bc9zzQUk81l2x7GIK8fP2d//YgWRMEIXP5dRPI+am0J/+ pLeMsJdTDaNSB/LkYkF/DbA5mU439m7FpST6y/qQzfA8zDZ0yVdfN3W9I bdWB6xZAcFc+Z8qsvdZ93FJb4oY09RsdyGuUpT9ZxdFNS5+4dxbcOiD43 ivL21p15FpelTwoFOxMY/yIWVXum9u9XrAhR6Fg/e3dUWzfApGsewMDSf rWEuF2vYRjBbmsavJ9TS6ud5JS5wTU5/Kh3FoiqETXpOAvMvLX29xjcS1 g==; X-IronPort-AV: E=McAfee;i="6500,9779,10463"; a="295740280" X-IronPort-AV: E=Sophos;i="5.93,298,1654585200"; d="scan'208";a="295740280" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Sep 2022 14:51:46 -0700 X-IronPort-AV: E=Sophos;i="5.93,298,1654585200"; d="scan'208";a="790207859" Received: from twinkler-lnx.jer.intel.com ([10.12.87.143]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Sep 2022 14:51:43 -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 v9 04/16] drm/i915/gsc: add slow_firmware flag to the gsc device definition Date: Thu, 8 Sep 2022 00:51:01 +0300 Message-Id: <20220907215113.1596567-5-tomas.winkler@intel.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220907215113.1596567-1-tomas.winkler@intel.com> References: <20220907215113.1596567-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, 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 --- V9: Rebase 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