Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1701085ybt; Mon, 15 Jun 2020 07:17:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyu/2C0KoIZHEH//lPXLmdCuuHLzN6TPCXw3Y4PQu0glnriUN1ld1O4LKTOkjcoX4fOQtz6 X-Received: by 2002:a50:8b44:: with SMTP id l62mr24289408edl.72.1592230678789; Mon, 15 Jun 2020 07:17:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592230678; cv=none; d=google.com; s=arc-20160816; b=pSS8UGgNVqQXmYYuvkNI7MN4DkRZS3RMI3ZJNhkTf7lhxJRCGpY16uNBs6AzGtYHCr CIj6H3YjhY3htHSK0itbaB8doY72pUiUsl0nhctQd24uBBV5CmY37cr6ygJigW7xb+9f vTgo/8ZOFgjY9F/fbk/hj8lDeF/1/QIC2dECedQOXoostMcZE3apuEwD91C2pJ/VUrRf n172roSXbjxIVESJhkNbhEJ7DjHDKpD9X9DVweuoLvTr4C2KjSdVLk953m91t7pz61W+ Qs1ugVQ75cqTlGimwYRtnSvccGpHZBxWD+ivC99I3XCjIK1hG9DPGJ2RjtYW6HPaAUda BHWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:ironport-sdr:ironport-sdr; bh=vVbe63mnzHnDrN1t2WLsae4lY1ZlBVJGTbINr7QuLqg=; b=dYLu4TQlEL2OAJxffMlI4waKGSuyrbsRrUasY9g/tct+1jFJnXv9ggfmY/kvpJPPYC Dv4VmePHQOKBN6wNRJGyA8VaDG28J72Dca+IPUaUDw1Kg7nfQ6mJHBXvXlvHWe5jsmxT 0kR+EXdyJbdYklZKJeQ1evu7CX9ei52gTNR5+/IokghMBa0uQHSJQTczfIyCcg7CMuu/ 5F34AKUmidDdrPA3LzPSkM6ZyS1g1iwv/NpcGsKGq2CGYksIhcybYH9DGlBcDesFsXee /qRQRmel7EqaXISdKQHHEwBFQqmy1O4tuw28NlJ+Zqn0qW50ualicjQtiymATEAEkeRG 4/OA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g25si2739597ejp.240.2020.06.15.07.17.35; Mon, 15 Jun 2020 07:17:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730328AbgFOOOL (ORCPT + 99 others); Mon, 15 Jun 2020 10:14:11 -0400 Received: from mga01.intel.com ([192.55.52.88]:34462 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730188AbgFOOOI (ORCPT ); Mon, 15 Jun 2020 10:14:08 -0400 IronPort-SDR: wJxOVjZsTrHC0HBGL3w40OpYSufr4wYXnmDs+CgOCpVWnWiSZTKuX7lBVr2e++4/5xptmENDJz BhHSIoLQGOgA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jun 2020 07:14:07 -0700 IronPort-SDR: VMFAbqlG3HsC0h9Lxy5iKDnfcb9snWiqle4sfQgTgfndouU3IFxKi6Q5HaslbBTXiFcR46i4QS D6iYULVNE5eA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,514,1583222400"; d="scan'208";a="476029197" Received: from marshy.an.intel.com ([10.122.105.159]) by fmsmga006.fm.intel.com with ESMTP; 15 Jun 2020 07:14:07 -0700 From: richard.gong@linux.intel.com To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, dinguyen@kernel.org, richard.gong@linux.intel.com, Richard Gong Subject: [PATCH 1/4] firmware: stratix10-svc: correct reconfig flag and timeout values Date: Mon, 15 Jun 2020 09:29:05 -0500 Message-Id: <1592231348-31334-2-git-send-email-richard.gong@linux.intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1592231348-31334-1-git-send-email-richard.gong@linux.intel.com> References: <1592231348-31334-1-git-send-email-richard.gong@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Richard Gong Correct the incorrect flag value for COMMAND_RECONFIG_FLAG_PARTIAL and increase FPGA reconfig timeout values so that Intel service layer and FPGA manager drivers can work with all versions of firmware. Signed-off-by: Richard Gong --- include/linux/firmware/intel/stratix10-svc-client.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/include/linux/firmware/intel/stratix10-svc-client.h b/include/linux/firmware/intel/stratix10-svc-client.h index 64213c3..040bc3f 100644 --- a/include/linux/firmware/intel/stratix10-svc-client.h +++ b/include/linux/firmware/intel/stratix10-svc-client.h @@ -54,18 +54,17 @@ * Flag bit for COMMAND_RECONFIG * * COMMAND_RECONFIG_FLAG_PARTIAL: - * Set to FPGA configuration type (full or partial), the default - * is full reconfig. + * Set to FPGA configuration type (full or partial). */ -#define COMMAND_RECONFIG_FLAG_PARTIAL 0 +#define COMMAND_RECONFIG_FLAG_PARTIAL 1 /** * Timeout settings for service clients: * timeout value used in Stratix10 FPGA manager driver. * timeout value used in RSU driver */ -#define SVC_RECONFIG_REQUEST_TIMEOUT_MS 100 -#define SVC_RECONFIG_BUFFER_TIMEOUT_MS 240 +#define SVC_RECONFIG_REQUEST_TIMEOUT_MS 300 +#define SVC_RECONFIG_BUFFER_TIMEOUT_MS 720 #define SVC_RSU_REQUEST_TIMEOUT_MS 300 struct stratix10_svc_chan; -- 2.7.4