Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp872853imm; Thu, 13 Sep 2018 09:01:00 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbKG6Ly/IM+5goQEcBFzFnuLVI/HjCI8S3D+fSL2LzZbDO7B3j1t/0knXNhUjAkNXoSbsx3 X-Received: by 2002:a62:858c:: with SMTP id m12-v6mr8136673pfk.173.1536854460757; Thu, 13 Sep 2018 09:01:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536854460; cv=none; d=google.com; s=arc-20160816; b=jqrICHwFsAB8cDoZEz3iRJU1zmPTyW/fs3vKYVSPu+UCmsrNR99aCgFk37zZ/ShDTY qdV2CTprPsXFdmdn37CObt4aF1ZJFO2UX2ew/t00p+Sd0lsf4hHwqoG765KrtFMArt16 DmbiG7cP5VXy+NY7kNrV40nXP+1m74dUz9PVGcUEtHfgb0WRCy6xgvtvOdfcWeiHV69j WP+UwOOSBv5izfVD9a+R4EyxB3wLW4w1nQejCvrFeAhe+atekRtJtBX99VxeahpR05fr F4wg8HPAyFlaaLAEFJFlCSVE4NkbcQW4I6ygjytsUEhVbjuAmOL1YON/L6feI6yUYPhF nglw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to; bh=qG+pVW6Nk8+xeJeHRgQHrm/ZGvRNjMLrVEGvHn+UAtM=; b=T5TUzlVwk1s0iZBi8q64+DG+faMVXWC5HP/JI0MqaSeNkLdw3iNaQ2yiEaC0tkpVTp E8/HVKzcBgUxNH+41RidTnrBp9gmZLk1pnSQfnGbBvYGEe/Oty0Fh6jrK6j9hcdEp11j oGDcztyG5XwTiElib1Usk/7hmF4l0NRXSWd+AVTFP7HexDKE9a5i97u7gAGniuMxxe6w vFaqE+j5qoFzygl5e2+SndqJBg8qtD1UZwgEJoaoZ1auMy3jgpoiFIhsD1FtqpTMVeTQ 5tVzZq4EqhEF5VoO6ZZPSFaT7wXt3gs+a4o4ViQXijx/yZFca9T3KkRSaEjsM+1DZY9p s+CA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r7-v6si4404286pfi.147.2018.09.13.09.00.40; Thu, 13 Sep 2018 09:01:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728544AbeIMVKN (ORCPT + 99 others); Thu, 13 Sep 2018 17:10:13 -0400 Received: from ale.deltatee.com ([207.54.116.67]:44102 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727843AbeIMVKN (ORCPT ); Thu, 13 Sep 2018 17:10:13 -0400 Received: from guinness.priv.deltatee.com ([172.16.1.162]) by ale.deltatee.com with esmtp (Exim 4.89) (envelope-from ) id 1g0U2D-0000rp-Px; Thu, 13 Sep 2018 10:00:02 -0600 To: Wesley.Sheng@microchip.com, kurt.schwemmer@microsemi.com, Kurt.Schwemmer@microchip.com, bhelgaas@google.com Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org References: From: Logan Gunthorpe Message-ID: Date: Thu, 13 Sep 2018 10:00:00 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 172.16.1.162 X-SA-Exim-Rcpt-To: linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, bhelgaas@google.com, Kurt.Schwemmer@microchip.com, kurt.schwemmer@microsemi.com, Wesley.Sheng@microchip.com X-SA-Exim-Mail-From: logang@deltatee.com X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on ale.deltatee.com X-Spam-Level: X-Spam-Status: No, score=-8.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, GREYLIST_ISWHITE autolearn=ham autolearn_force=no version=3.4.1 Subject: Re: [PATCH] switchtec: Remove immediate status check after submit a MRPC command X-SA-Exim-Version: 4.2.1 (built Tue, 02 Aug 2016 21:08:31 +0000) X-SA-Exim-Scanned: Yes (on ale.deltatee.com) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 13/09/18 12:43 AM, Wesley.Sheng@microchip.com wrote: > From: Wesley Sheng You've done something wrong here. The sign-off line below says its signed off by Kelvin, who was the original author (on the github repo) but the From: line indicates you were the author. Also, please start using 'git send-email' as your patches are being mangled by your email client. > To avoid this, the immediate check of status is removed > in this patch, and driver delays the status check to the > occurrence of MSIx or MRPC timeout. In the meanwhile, user > must not initiate any gas access during a firmware download. s/meanwhile/meantime/ > Note: For NTB function, the memory window access is handled > by switchtec hardware. So it's not affected by this firmware > limitation. But the GAS accesses, like for doorbell registers, > in the NTB function are affected by this firmware limitation. > > Signed-off-by: Kelvin Cao We also need a Signed-off-by from you. Anyone who handled the patch needs to sign off on it. At least for the contents of the changes, modulo the above fixes: Reviewed-by: Logan Gunthorpe > --- > drivers/pci/switch/switchtec.c | 4 ---- > 1 file changed, 4 deletions(-) > > diff --git a/drivers/pci/switch/switchtec.c b/drivers/pci/switch/switchtec.c > index 4591f15..b759228 100644 > --- a/drivers/pci/switch/switchtec.c > +++ b/drivers/pci/switch/switchtec.c > @@ -142,10 +142,6 @@ static void mrpc_cmd_submit(struct switchtec_dev *stdev) > stuser->data, stuser->data_len); > iowrite32(stuser->cmd, &stdev->mmio_mrpc->cmd); > > - stuser->status = ioread32(&stdev->mmio_mrpc->status); > - if (stuser->status != SWITCHTEC_MRPC_STATUS_INPROGRESS) > - mrpc_complete_cmd(stdev); > - > schedule_delayed_work(&stdev->mrpc_timeout, > msecs_to_jiffies(500)); > } >