Message ID | 20221229104604.2496-1-i.bornyakov@metrotek.ru |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp2338146wrt; Thu, 29 Dec 2022 02:51:17 -0800 (PST) X-Google-Smtp-Source: AMrXdXtTrRT+ClbqNusXVjfaIjRKOez7xeSepPokr3AaguHExJ2jgJlv2dPovX+Lg4sVZRDRmsON X-Received: by 2002:a05:6a20:e187:b0:aa:c42:bab with SMTP id ks7-20020a056a20e18700b000aa0c420babmr35566335pzb.59.1672311077040; Thu, 29 Dec 2022 02:51:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672311077; cv=none; d=google.com; s=arc-20160816; b=p6JU4AlU8K1WG4cmxzoLt4061btMj7VrLiNQ3Op1tlBmiQ4HeM7+UGhMMg2XtC/CD6 XCWseLxGVW3wbCqijkFJWQoLD+BWyyAphHuzRRfwfdcbAsFZVw0fBDi5Nrg0YOwOG92i 9tvoy/OzIMSrJ5twRvkXfZpy1TlxubfYPJgEHbXaW7Spdq+YCQZDHC/GC69//+bHNwSg 0D2HrxPCEnvvnbk9UspAe9k0maUSkaI1kTVmgIYMY/jQ2dpJF5go7x55jMqfD6Yu45Xk i0FthxIqOl8bQJg5UsSjLe/mo5PE5jUHdumIGTZ9HGTRYFkyX2pffaIC2wPZTZwRduIQ WY/Q== 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=qMTnwXAK0p7zKPg7isOP8AapM6EcsavV59FjxqiVsZ0=; b=rD7V+Rv88v8Wt2Cjl8MDcEK+cX9Xix4soJIrCkjQ8HMPnjhtKD4guIuk1KzGZ8iPmr pPNzjrOsszgbXlJkg+MaCW2ncEvjtArzRJy0N1P70Hc326ikoLARBn87X7N+cfC78l9u ztEYGXN10trtnL0CF8u9bPVHy532zwytJILkgLh+2gKM4B4RbngTuO3HfJQlgPyqYNv6 +POcQkjnyI/vHtU2HX+Q7yVudr/gpCMRmgYaTepQIUGVLwC9qx3xZ612I3ckMvLzRsQ8 FBwS8bYwlA3u2xS0jOr2WptPbc/LeF9TphtR2xcYeYA8hs5PhARzV61or3gRB8oHZzvK +7GQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@metrotek.ru header.s=mail header.b=Kd4kxdR1; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i185-20020a6387c2000000b00478da14e043si18985153pge.10.2022.12.29.02.51.04; Thu, 29 Dec 2022 02:51:17 -0800 (PST) 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=fail header.i=@metrotek.ru header.s=mail header.b=Kd4kxdR1; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233213AbiL2Kt2 (ORCPT <rfc822;eddaouddi.ayoub@gmail.com> + 99 others); Thu, 29 Dec 2022 05:49:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36252 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233208AbiL2KtL (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 29 Dec 2022 05:49:11 -0500 Received: from mail.pr-group.ru (mail.pr-group.ru [178.18.215.3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D028912AD1; Thu, 29 Dec 2022 02:49:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=metrotek.ru; s=mail; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding; bh=k7gYzabHTTDOgCUDLMX/MCE9I6z53Uh/Rqs9+rbTYgw=; b=Kd4kxdR1DBRC3NGS3lN/pJ0MghskClEHZ/wqg0SEQwH9Ian9HiJXgUGyCTWmbTzWvSRK21OHalW4p DWFMOKazoEj5yC2o7Av3S001/eXUI75L/hon3NtnNfFfzKG7WYV38QUfg51O4W1CjAPeGQe+1F3cR5 Pi5SEZQa1dDkvGNjMAESVCm3Z/jwG21119cYnb0d/6RtD34se3JG0P2WVrPDo/2p6yMtt54WgV1fot UgbfG/sJLUtFV+MfEcMYraQawkInW8mqObW1gf5+cRGVyl8Iplf72wRCgYvf2untBPl4bpFWRZc0fx qEBnFAl9tC95Y62LXNhCLp2Lhmj4lMA== X-Kerio-Anti-Spam: Build: [Engines: 2.16.5.1460, Stamp: 3], Multi: [Enabled, t: (0.000008,0.006695)], BW: [Enabled, t: (0.000016,0.000001)], RTDA: [Enabled, t: (0.091441), Hit: No, Details: v2.42.0; Id: 15.52k8sc.1glenv90a.id64; mclb], total: 0(700) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Level: X-Footer: bWV0cm90ZWsucnU= Received: from h-e2.ddg ([85.143.252.66]) (authenticated user i.bornyakov@metrotek.ru) by mail.pr-group.ru with ESMTPSA (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256 bits)); Thu, 29 Dec 2022 13:48:42 +0300 From: Ivan Bornyakov <i.bornyakov@metrotek.ru> To: linux-fpga@vger.kernel.org Cc: Ivan Bornyakov <i.bornyakov@metrotek.ru>, Conor Dooley <conor.dooley@microchip.com>, Moritz Fischer <mdf@kernel.org>, Wu Hao <hao.wu@intel.com>, Xu Yilun <yilun.xu@intel.com>, Tom Rix <trix@redhat.com>, =?utf-8?q?Ilpo_J=C3=A4rvinen?= <ilpo.jarvinen@linux.intel.com>, linux-kernel@vger.kernel.org, system@metrotek.ru Subject: [PATCH v4 0/3] Reliability improvements for Microchip MPF FPGA manager Date: Thu, 29 Dec 2022 13:46:01 +0300 Message-Id: <20221229104604.2496-1-i.bornyakov@metrotek.ru> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1753545259807968578?= X-GMAIL-MSGID: =?utf-8?q?1753545259807968578?= |
Series |
Reliability improvements for Microchip MPF FPGA manager
|
|
Message
Ivan Bornyakov
Dec. 29, 2022, 10:46 a.m. UTC
A couple of reliability improvements for Microchip Polarfire FPGA manager: * move SPI I/O buffers out of stack * rewrite status polling routine in a time measurable way Also improve mpf_ops_write() code readability by separating single data frame writing routine. ChangeLog: v1: [https://lore.kernel.org/linux-fpga/20221223123854.8023-1-i.bornyakov@metrotek.ru/] v2: * split into 3 distinct patches [https://lore.kernel.org/linux-fpga/20221226142326.8111-1-i.bornyakov@metrotek.ru/] v3: * fix polling stop condition in mpf_poll_status() as Ilpo suggested. [https://lore.kernel.org/linux-fpga/20221227100450.2257-1-i.bornyakov@metrotek.ru/] v4: * more verbose comment for mpf_poll_status() Ivan Bornyakov (3): fpga: microchip-spi: move SPI I/O buffers out of stack fpga: microchip-spi: rewrite status polling in a time measurable way fpga: microchip-spi: separate data frame write routine drivers/fpga/microchip-spi.c | 145 +++++++++++++++++++---------------- 1 file changed, 79 insertions(+), 66 deletions(-)