From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752808AbdK2To7 (ORCPT ); Wed, 29 Nov 2017 14:44:59 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:35032 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752189AbdK2Toy (ORCPT ); Wed, 29 Nov 2017 14:44:54 -0500 Subject: Re: [Xen-devel] [PATCH] Xen/pciback: Implement PCI slot or bus reset with 'do_flr' SysFS attribute To: Konrad Rzeszutek Wilk , Jan Beulich Cc: Juergen Gross , xen-devel@lists.xenproject.org, Boris Ostrovsky , linux-kernel@vger.kernel.org References: <20171106174842.20276-1-Govinda.Tatti@Oracle.COM> <5A01D3F3020000780018CE86@prv-mh.provo.novell.com> <8940b38d-715c-9fcb-cc74-46574d416703@oracle.com> <5A041FB9020000780018D6E8@prv-mh.provo.novell.com> <5A1EE1D50200007800193318@prv-mh.provo.novell.com> <20171129162907.GO31092@char.us.oracle.com> <5A1EF1040200007800193425@prv-mh.provo.novell.com> <20171129192630.GS31092@char.us.oracle.com> From: Govinda Tatti Organization: Oracle Corporation Message-ID: Date: Wed, 29 Nov 2017 13:44:43 -0600 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <20171129192630.GS31092@char.us.oracle.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Source-IP: aserv0021.oracle.com [141.146.126.233] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks Konrad for your response. Please see below for my comments. >>>> Well, that's more a question to Konrad as the maintainer. >>>> Personally I'd prefer just "reset", as "pci" is redundant and "bus" >>> Can't do 'reset'. >> Why? > B/c I forgot that this attribute is not per device, but on the module sub-directory: > > /sys/bus/pci/drivers/pciback/do_flr > > It can be indeed called 'reset'. Good.  We will rename sysfs attribute from "do_flr" to "reset" >>>> doesn't cover the slot variant. >>> 'bus_reset' sounds lovely? >> Lovely sounding or not, it may end up misleading, and even more so >> if - like asked for - FLR would be tried first. > Fair enough. Reset should work then. So, we will use the following sequence to reset the requested device/function. - FLR (as first option) - BUS/SLOT reset (as fall-back option) if FLR is not supported or any issue with FLR Cheers GOVINDA