From patchwork Wed Apr 5 08:01:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ilpo_J=C3=A4rvinen?= X-Patchwork-Id: 7735 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp135213vqo; Wed, 5 Apr 2023 01:16:22 -0700 (PDT) X-Google-Smtp-Source: AKy350bohNPegEog9lPEapL9nZgvWD4Syt86iMp5SoWJRXS9pXnvqRmTvClMJJIiy7Uxm6Y77uqo X-Received: by 2002:a17:906:6c88:b0:91f:32f9:82f0 with SMTP id s8-20020a1709066c8800b0091f32f982f0mr2368881ejr.29.1680682582691; Wed, 05 Apr 2023 01:16:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680682582; cv=none; d=google.com; s=arc-20160816; b=jThWZfwRKmOdDfegZRzV6Scx/mGnTNASz1wO8wGtoFy0ru1mQXoOl73nM9996/mub5 PYNGS9DDMs7oBykmMzTdkFkgSmy+iai+wWBiXab03Tgn84NSMU9iYbIMhcx+CzBmcS91 ODKv22WRuFi5d8CZqZF7ZNwjNEqq2Md9PAF2ebh9Q7zTxWqY8ReEw3wGMmKqXzP+c7HG lBEVWFWu/yr5ln2FlJzi7VyTq0x2reqqeoErgf7CVJ/7sp1BbLvJ3r5Ksrks+/0KXCTL YOLKxMbX/G6rdZQ5kIQ0DtAMVP2uynIDsK0Wym+SbxTqPYdGPt4sgFl920zTFL7XfzRX rcSg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=IrrcPpMoeNiaIKy+OMwPbMHeYYEReLVUvX2HHECnxvM=; b=BNvXng1A3iNiQTKrkYdCES3kzqIAy5iWXMUTnNwbrTKGporxgBHVp+GkTZQa/t84Ve I6LDnBTOv/YEP8ukHeMhNEGbPmRbSa6XPKCCPs14OKOZ1HltXcKdCab3JAMfjb+gXFvF HdZKhmZNa9elutufXPcAdXYwWlTBM/QMR9nC/VEWeLiiVZJQfRmbhjyB4sjBVduBV3Pa GYY8z9wCnkPAM0mMtjKD0jbEZ6hCy8iMpxfg5u31Wkj3tr7TYfVepCkj6TzH+RIlQtWg 3pwwkQAnAgQg6eEEPffFy4vBalEOzxJYqQi21cqkPMSnlnkcZi58TJKhdJoNqG2l7pTD XPYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=dcDuqcfl; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hu15-20020a170907a08f00b00949562c1163si1110701ejc.957.2023.04.05.01.15.58; Wed, 05 Apr 2023 01:16: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=dcDuqcfl; 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 S237258AbjDEICX (ORCPT + 99 others); Wed, 5 Apr 2023 04:02:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236881AbjDEICS (ORCPT ); Wed, 5 Apr 2023 04:02:18 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62BCB30ED; Wed, 5 Apr 2023 01:02:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1680681734; x=1712217734; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Hjp80/410tmJHmpO6rGQObwfiLzMo70h6PwRGNv+znI=; b=dcDuqcflk8dxNJIB2EeoV4LYYUlEukO25gI5CXxaXwX2hcUoe7CWlOM4 kV8hcKbyUnX9yGFWnqiQi9BGGA7Io0JkLPfitRVC0cjMfosd5yFNjutBE N48wSjSbaeNgvSLLcG6JQoyG1jnZtg6nRo9gBm2kwpOfz6rcEFWIJrXx9 C7hI5gmErVwU38jN52vlEH+UTYLr/8OWxKuDBi806pr55DsHnzJZrNz6A bPFO5/almOaknut/42dvayoxpgtA4Lw0lp2VAix5cbsSZumiKYaiHrfTF 5/CHXUd5+9ShdxMmb3SMBzinQFkR0WGNayx/Arup9ubK33CS998D4fkwS g==; X-IronPort-AV: E=McAfee;i="6600,9927,10670"; a="428680206" X-IronPort-AV: E=Sophos;i="5.98,319,1673942400"; d="scan'208";a="428680206" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Apr 2023 01:02:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10670"; a="775959618" X-IronPort-AV: E=Sophos;i="5.98,319,1673942400"; d="scan'208";a="775959618" Received: from wtedesch-mobl1.ger.corp.intel.com (HELO ijarvine-MOBL2.ger.corp.intel.com) ([10.252.53.134]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Apr 2023 01:01:59 -0700 From: =?utf-8?q?Ilpo_J=C3=A4rvinen?= To: Wu Hao , Tom Rix , Moritz Fischer , Xu Yilun , linux-fpga@vger.kernel.org, Lee Jones , Jean Delvare , Guenter Roeck , linux-hwmon@vger.kernel.org, Russ Weight Cc: linux-kernel@vger.kernel.org, =?utf-8?q?Ilpo_J=C3=A4rvinen?= Subject: [PATCH 0/4] Manage register access to control delay during sec update Date: Wed, 5 Apr 2023 11:01:48 +0300 Message-Id: <20230405080152.6732-1-ilpo.jarvinen@linux.intel.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Spam-Status: No, score=-2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762323419728276419?= X-GMAIL-MSGID: =?utf-8?q?1762323419728276419?= Manage handshake register access on Max 10 FPGA cards that have a major slowdown on reading handshake registers during secure update prepare and write phases. The problem does not occur with PMCI-based cards. Ilpo Järvinen (4): mfd: intel-m10-bmc: Move core symbols to own namespace mfd: intel-m10-bmc: Create m10bmc_sys_update_bits() mfd: intel-m10-bmc: Move m10bmc_sys_read() away from header mfd: intel-m10-bmc: Manage access to MAX 10 fw handshake registers drivers/fpga/intel-m10-bmc-sec-update.c | 47 ++++++++------ drivers/hwmon/intel-m10-bmc-hwmon.c | 1 + drivers/mfd/intel-m10-bmc-core.c | 84 ++++++++++++++++++++++++- drivers/mfd/intel-m10-bmc-pmci.c | 5 ++ drivers/mfd/intel-m10-bmc-spi.c | 15 +++++ include/linux/mfd/intel-m10-bmc.h | 42 +++++++++---- 6 files changed, 161 insertions(+), 33 deletions(-)