Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp5765360rwl; Sun, 8 Jan 2023 22:26:47 -0800 (PST) X-Google-Smtp-Source: AMrXdXuSjsgYozmiWTJ6wLFdtNtMguR/jPY8P4LlQ7b/q/YKQ2ASPE00rRSIVxDJj0qoJ/GvUbbH X-Received: by 2002:a17:906:b1c5:b0:84d:14c8:b669 with SMTP id bv5-20020a170906b1c500b0084d14c8b669mr10525417ejb.77.1673245607681; Sun, 08 Jan 2023 22:26:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673245607; cv=none; d=google.com; s=arc-20160816; b=Gz0j1Qz+8ECnGf+KZZorGLcU7HLlh8tIVv/ECf8POv4ZUzuS+Ue2rB/tVJGS3hUuFq pLOIedsr+Mcam3ut+uVy2Ccy+1On47QW/jD2ToIQlAp2hTl5d/8PIFaogZcX+4ai1IO0 dub8Q1a3IgzpW8XY+9NJ4Zm/7IL+OPmuYfPLUPpEjXaEKHKBYcE2KhjizkzwtNUM4Vdf MtSqsiD2wFW6Y0v0rh7qTBOHPF0UqA/0tItjvyg2TX3wa7MaeNu6wJdAaldXiNK99/fR eGlMXz5a0Wb2ig8tg3cfFXtjWGSzmQ5GUvy35q6X90Su3Z9tn2pT2U44QIRA6O5CXwTD //4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=cbyjCLuNPMH8UxCTI1E6rwuEWk6AEFhfzpXObR6YKi0=; b=CdPCZGzAASne9Th86z2DKuiWDrsKEea97Bpgp2Skh/ZQIPmLmUuhnjoO0T5ewa4Yi7 Kcf1+bcH+gxvNF0ijInaGkUrJ+ZvPh1fpZSGhuHDruCFQffKJIYx1wmVK3qeZjudXuga Nxus7H0HpNBaT3kWYK781JEE7w2AU5Re3pqPG9ORLQ8aqZeRpBa8TOnwRQRtW8IZ74uV zcpjvzEOJ0W7UZwj8WboRKqnSfXT6UsFrBo2bXdexGEP09WjP81aJTjtaRYZx3Et3FXv XoZHN/WxxoYKYR+7rGsf7XnCOk+8c6IrArhGZP2lpl+b1o/oEOYPWqC0om0lwe6L0I/V PGgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="TXG/k2G1"; 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 xh7-20020a170906da8700b0077fc66b581esi8056176ejb.688.2023.01.08.22.26.35; Sun, 08 Jan 2023 22:26:47 -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=pass header.i=@intel.com header.s=Intel header.b="TXG/k2G1"; 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 S229988AbjAIGXi (ORCPT + 53 others); Mon, 9 Jan 2023 01:23:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230175AbjAIGXg (ORCPT ); Mon, 9 Jan 2023 01:23:36 -0500 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F366ABE13; Sun, 8 Jan 2023 22:23:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1673245415; x=1704781415; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=99wwgki3vDnEuMvkqt8gVpIBfAzSTXbaAFnjD0Am8uM=; b=TXG/k2G1zpRCIiXnwkuyIceCGcUQ+ZtORd2/8z91bG5M28QxdhUgtPrO NYKDCfzdU7GegSGOte3dKTFspB5MJr9Qod/VFMwb0SYfm8M/GGTOOwa42 6gtACUS52Wz0Dk23hsfZKU99uocLhQUeEBqw6xshDPdf/X+aJbAh4IiDI YpUvvJbvM6A+mbXkrxwEBSwk5vSqB7nBhdS818P5Jn1LFmCkYr8HTD2Ux qUQFSgH0cqSBzHRo2RPnTWQQlrsZfih9DGja8VYlDGa9A7EpLESxWK4XV H2UgTouRSXpTdmSp3VhSES2qP2PVr82xS2+uq/w6lekm6FmKGGCMx708Z w==; X-IronPort-AV: E=McAfee;i="6500,9779,10584"; a="302501575" X-IronPort-AV: E=Sophos;i="5.96,311,1665471600"; d="scan'208";a="302501575" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jan 2023 22:23:35 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10584"; a="649919372" X-IronPort-AV: E=Sophos;i="5.96,311,1665471600"; d="scan'208";a="649919372" Received: from yilunxu-optiplex-7050.sh.intel.com (HELO localhost) ([10.239.159.165]) by orsmga007.jf.intel.com with ESMTP; 08 Jan 2023 22:23:32 -0800 Date: Mon, 9 Jan 2023 14:13:16 +0800 From: Xu Yilun To: Ivan Bornyakov Cc: linux-fpga@vger.kernel.org, Conor Dooley , Moritz Fischer , Wu Hao , Tom Rix , Ilpo =?iso-8859-1?Q?J=E4rvinen?= , linux-kernel@vger.kernel.org, system@metrotek.ru Subject: Re: [PATCH v5 0/3] Reliability improvements for Microchip MPF FPGA manager Message-ID: References: <20221230092922.18822-1-i.bornyakov@metrotek.ru> <20230109054742.ola6gafnn2ikyuqa@x260> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230109054742.ola6gafnn2ikyuqa@x260> 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_PASS,SPF_NONE 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 On 2023-01-09 at 08:47:42 +0300, Ivan Bornyakov wrote: > On Fri, Dec 30, 2022 at 12:29:19PM +0300, Ivan Bornyakov wrote: > > 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() > > [https://lore.kernel.org/linux-fpga/20221229104604.2496-1-i.bornyakov@metrotek.ru/] > > v5: > > * revord "fpga: microchip-spi: move SPI I/O buffers out of stack" > > commit message "Use allocated buffers" -> "Use cacheline aligned > > buffers" > > * drop __aligned(ARCH_KMALLOC_MINALIGN) attribute of struct mpf_priv > > member "rx". tx and rx are used synchronously by dma, they could > > share a cacheline. > > > > 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(-) > > > > -- > > 2.38.2 > > > > Friendly ping. > Patch #1 is good to me now. And applied this series to for-next Thanks, Yilun