Return-Path: Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3yd0Yj4lhbzDqyH for ; Thu, 16 Nov 2017 23:15:05 +1100 (AEDT) Received: from pps.filterd (m0098393.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id vAGCEeCG049962 for ; Thu, 16 Nov 2017 07:15:03 -0500 Received: from e13.ny.us.ibm.com (e13.ny.us.ibm.com [129.33.205.203]) by mx0a-001b2d01.pphosted.com with ESMTP id 2e99qxagk1-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Thu, 16 Nov 2017 07:15:02 -0500 Received: from localhost by e13.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 16 Nov 2017 07:14:55 -0500 Subject: Re: [PATCH v2] powerpc/powernv: Add pci_reset_phbs parameter to issue a PHB reset To: Balbir Singh Cc: "open list:LINUX FOR POWERPC (32-BIT AND 64-BIT)" , Paul Mackerras References: <20171025152754.25166-1-gpiccoli@linux.vnet.ibm.com> From: "Guilherme G. Piccoli" Date: Thu, 16 Nov 2017 10:14:50 -0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Message-Id: <95c483cf-93dc-6b99-f406-cb59d3263442@linux.vnet.ibm.com> List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 11/16/2017 01:49 AM, Balbir Singh wrote: > On Thu, Oct 26, 2017 at 2:27 AM, Guilherme G. Piccoli > wrote: >> During a kdump kernel boot in PowerPC, we request a reset of the PHBs >> to the FW. It makes sense, since if we are booting a kdump kernel it >> means we had some trouble before and we cannot rely in the adapters' >> health; they could be in a bad state, hence the reset is needed. >> >> But this reset is useful not only in kdump - there are situations, >> specially when debugging drivers, that we could break an adapter in >> a way it requires such reset. One can tell to just go ahead and >> reboot the machine, but happens that many times doing kexec is much >> faster, and so preferable than a full power cycle. >> >> This patch adds the pci_reset_phbs parameter to perform such reset >> when desired by the user. >> > > Do we care to reset specific phbs or all of them? I guess all based on > your description. Exactly Balbir, it does reset all of them. We could add such granularity, but I don't see much usability.. But if somebody feels it's useful, we can change... Thanks! > > Balbir Singh. >