Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1107993ybh; Thu, 12 Mar 2020 17:29:08 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuMWSxmqxEHOtSlVEVrc8/3AX0A4oeCiQdkhqNWQXl/Ny/cE4GAYiqrMIl4/tGqC+Xv0YMK X-Received: by 2002:aca:1108:: with SMTP id 8mr4885695oir.93.1584059348275; Thu, 12 Mar 2020 17:29:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584059348; cv=none; d=google.com; s=arc-20160816; b=lKyhPQ6Ix2DO2OpsJHjG1AB2VqbUl7jlMI2mS5Zw/HrK9oO7mPmswI8d2gSoOnBlye xnWdQgVYoD8XEAVlDIKrBan4z8DTvc2bY9B8VcpX2tRzDs6cuLdmiJxnYsDUdexeucLK E3OgYjXnXvaaDXyV2aSCuqUkak4hxYQNEzES2IdkS/cVdW9jqsb/dy5YfXkmrmtT38cE ojZINQRpBrrNq8fksnw3m9m39zEXrL+iEBdX2QqTq4Tk3MEwh9jqWDV22t6tnDRI2LI7 4GZgDNH8QDG4aujcKra0TJQK3jfLDyzlo+2bxTVRMQcvRCR4ChUmNUMDzZhwNSRPlUnQ nSQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Be5NEGu4YJrkQL2c7HnPWgWIEPjdYRo2oZeDR69bUv0=; b=XzZMtm5tjMbn8IFkommgRQR36oUs32y/7LAaFdKI4DF+h1F3r2bdcDGvdwzhFAZoJJ a0SiaqLjPubzpzRose+iYD+p2EGhX0X2ete6LipDVg7cIKRKkizJ+TcqGgXzEgEL04pO AzV5wxvDmKEQWlDCITvL/rZKPEI4btvbBXLQfefEJC+vBJpB2jNqEv1L6aRchXeBtmuV 7JAM3CqHiLShrM0WnccGsy796/0gOZN++x34TNmXUekNqI1HfCWzpoV7/HMDJg5FjqAA WiVg7b5hwCEC7qra6sQduOgra+sQJ7eSPqg5MPlwGgOveoc56VfcDe+8tovuVmATKyHH K0Qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kudzu-us.20150623.gappssmtp.com header.s=20150623 header.b="XxIq/hao"; 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 a185si3622570oii.252.2020.03.12.17.28.40; Thu, 12 Mar 2020 17:29:08 -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; dkim=pass header.i=@kudzu-us.20150623.gappssmtp.com header.s=20150623 header.b="XxIq/hao"; 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 S1726986AbgCMAZ2 (ORCPT + 99 others); Thu, 12 Mar 2020 20:25:28 -0400 Received: from mail-qk1-f196.google.com ([209.85.222.196]:39224 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726830AbgCMAZ2 (ORCPT ); Thu, 12 Mar 2020 20:25:28 -0400 Received: by mail-qk1-f196.google.com with SMTP id e16so9639045qkl.6 for ; Thu, 12 Mar 2020 17:25:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kudzu-us.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Be5NEGu4YJrkQL2c7HnPWgWIEPjdYRo2oZeDR69bUv0=; b=XxIq/haoKjduf+BA9w1pR4C7xvp+kb3qC797Hi+oF9ZQqnFUMeHUZCYzvxCVRjznRE xrNnbTVZ/zsPV2F93YTBrRDZWp7E1Suh6nASu3LYt3hXLkiWwcDbngFXniE0qMKqAuAc 8w8ZtlQdbsSUMDueNcSTXhqeDxQvaa2Md8wHjd5IST8TxVXdGgSn/PjibjC4kBEMeybU B7CYzuL5Nmkx1mMC59jO4mD3rLZmt5Z7lkINg/oDk63rZXp0LLPOpWtsM4GIZBSvuG+0 j5KYzHyEg1BAZwVMV2/U3B7FG7CArtZlQ+E9fVPjtduMvqHTHUUEzC7idIp51QGyYXns 2i5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Be5NEGu4YJrkQL2c7HnPWgWIEPjdYRo2oZeDR69bUv0=; b=WTEMJQiOFoq5i040ma+2m5TtVUOY7EXGpOkOUuv7Fu5zbXKFeEtpRaUYj4GKRtCaC1 u+La67ohfTo+uCCPx0cZTP8wOz8TN/6eyRbTDccdT7vqD5ZbCXfNMsbEeDnAHwohDdU/ Uf+eYc7RaW4uogPHnIVUuCSQq5xINiPixxhjpUdXnhewLfBVxXhlOPt77TrwA8eyeJIt MbE04ZW/z8B77M7bJ/+OGmdtQLvuH2qszONM3uWzleX8KlEdzpOxLmvz4zw3wpPgSNlZ tj9cQKb7GCbi5BTGQJMrWn2MJRUn2vbCY4XdsiD9wih8KY/BbRxTOtVjxdVfAkSbpr6/ DRew== X-Gm-Message-State: ANhLgQ2TC3aVAbcegMPe1SO0/hZC+Ms1qMsOhQri4B8G/P17Zn0qr0l/ WX5+7t5GfL+sAbzUZpceknm2URN+O7vK7TSo X-Received: by 2002:a37:9a82:: with SMTP id c124mr10384195qke.193.1584059127227; Thu, 12 Mar 2020 17:25:27 -0700 (PDT) Received: from kudzu.us ([2605:a601:a664:2e00:38a9:cfd2:746b:b1f5]) by smtp.gmail.com with ESMTPSA id 18sm4147091qkk.84.2020.03.12.17.25.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Mar 2020 17:25:26 -0700 (PDT) Date: Thu, 12 Mar 2020 20:25:25 -0400 From: Jon Mason To: Sanjay R Mehta Cc: Arindam Nath , Shyam Sundar S K , Dave Jiang , Allen Hubbe , Jiasen Lin , Sanjay R Mehta , linux-ntb@googlegroups.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 00/15] AMD ntb driver fixes and improvements Message-ID: <20200313002524.GB13046@kudzu.us> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 07, 2020 at 04:28:53PM +0530, Sanjay R Mehta wrote: > > > On 2/5/2020 9:24 PM, Arindam Nath wrote: > > [CAUTION: External Email] > > > > This patch series fixes some bugs in the existing > > AMD NTB driver, cleans-up code, and modifies the > > code to handle NTB link-up/down events. The series > > is based on Linus' tree, > > > > git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > > > > Arindam Nath (15): > > NTB: Fix access to link status and control register > > NTB: clear interrupt status register > > NTB: Enable link up and down event notification > > NTB: define a new function to get link status > > NTB: return the side info status from amd_poll_link > > NTB: set peer_sta within event handler itself > > NTB: remove handling of peer_sta from amd_link_is_up > > NTB: handle link down event correctly > > NTB: handle link up, D0 and D3 events correctly > > NTB: move ntb_ctrl handling to init and deinit > > NTB: add helper functions to set and clear sideinfo > > NTB: return link up status correctly for PRI and SEC > > NTB: remove redundant setting of DB valid mask > > NTB: send DB event when driver is loaded or un-loaded > > NTB: add pci shutdown handler for AMD NTB > > The patch series looks good to me. Thanks for the changes. > > For all the ntb_hw_amd changes: > > Reviewed-by: Sanjay R Mehta I had to rework the first patch, since Jiasen's patch was already in my tree for a couple months. The rest applied fine and will be in my git trees on github in a couple of hours (sanity build pending). Thanks, Jon > > > > > > drivers/ntb/hw/amd/ntb_hw_amd.c | 290 ++++++++++++++++++++++++++------ > > drivers/ntb/hw/amd/ntb_hw_amd.h | 8 +- > > 2 files changed, 247 insertions(+), 51 deletions(-) > > > > -- > > 2.17.1 > >