Received: by 10.223.164.202 with SMTP id h10csp4489837wrb; Wed, 29 Nov 2017 07:10:50 -0800 (PST) X-Google-Smtp-Source: AGs4zMYgNz8/IeYvcGbnqHM9M7HNRWFllbZwH0hVBd1fx/oh3LpgCjj3XLKbrKFkFfzYyONMpvqL X-Received: by 10.84.168.37 with SMTP id e34mr3307752plb.10.1511968250387; Wed, 29 Nov 2017 07:10:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511968250; cv=none; d=google.com; s=arc-20160816; b=ZnjoXXaj2fBOlgcjqWGjKxIoDUkwLdAxGq+01MZwJSjlw8RzhH88PLJT/43TeloBOY q0vTxUhMc2k5h4tCVJryJaOpych8W3/GX/gW9l2WhwRb2H6qn4VYYi/k9SDWBE3OJcl1 ruUWfmC5c9l0KpI2nTAjRF8Apgco6qMv/c4mWcN1F3K1YHuK3vFyQrl7qMn/m09+KBWb hhNDLAerAmNYyZ7QJiVDtpfpNJa2zbUynZpbt5cNkldybJYxtpWHz9opHabhJjWyHc8a Yk3s06ZygyTYVdci0KSSCTfqoO5IGcZHJOtEc9s3HbQ65G+PjI7ngXM5+gv91ETv84ZQ Kifg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject :arc-authentication-results; bh=IX+/chtWUXNwQ1tsNYeeyFPqNcowRpB8XFhtLiSI3Bo=; b=j0kKnW4uF0VE35wkLCAm7GZlq3c0RYbv/TBfCXfoIc4q60l6fKz5wdyTH1ync0+K+e ZQB3wNSSAg/jSsMPlfrz4SpCwGxpYC03Hoktw3Nu60YiJ60DJFWSmTZStfxFo1y1Rkl7 U0RBSiikpnGpHR41OieS/joBoXe9oGtl0U8F3TViFJRhawICJuBpb/dbGLDKtZe5dzL/ 3wf9PxE/tp90KP4Y6ROP0LuYl2EGbLUlLASLhT4HbQRJY2bNPrpOQTtwy9e3E/eHQlA4 14OHZN7ZuzDWnbbmIFnK0JE5bOwGdOC52OGBlcCxxNyFUDrWrIsrs6NYq9o7eDwIFcmD rzXw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t19si1421723plj.431.2017.11.29.07.10.38; Wed, 29 Nov 2017 07:10:50 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755417AbdK2PJH (ORCPT + 69 others); Wed, 29 Nov 2017 10:09:07 -0500 Received: from userp1040.oracle.com ([156.151.31.81]:23708 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751997AbdK2PJF (ORCPT ); Wed, 29 Nov 2017 10:09:05 -0500 Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id vATF8TlI010104 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 29 Nov 2017 15:08:30 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id vATF8T8Z025158 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 29 Nov 2017 15:08:29 GMT Received: from abhmp0014.oracle.com (abhmp0014.oracle.com [141.146.116.20]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id vATF8SVE002979; Wed, 29 Nov 2017 15:08:28 GMT Received: from [10.135.190.159] (/10.135.190.159) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 29 Nov 2017 07:08:28 -0800 Subject: Re: [Xen-devel] [PATCH] Xen/pciback: Implement PCI slot or bus reset with 'do_flr' SysFS attribute To: Jan Beulich , Konrad Wilk 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> From: Govinda Tatti Organization: Oracle Corporation Message-ID: Date: Wed, 29 Nov 2017 09:08:18 -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: <5A041FB9020000780018D6E8@prv-mh.provo.novell.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Source-IP: userv0022.oracle.com [156.151.31.74] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Jan, Sorry for the late response. Please see below for my comments. On 11/9/2017 2:28 AM, Jan Beulich wrote: >>>> On 08.11.17 at 16:44, wrote: >> On 11/7/2017 8:40 AM, Jan Beulich wrote: >>>>>> On 06.11.17 at 18:48, wrote: >>>> --- a/Documentation/ABI/testing/sysfs-driver-pciback >>>> +++ b/Documentation/ABI/testing/sysfs-driver-pciback >>>> @@ -11,3 +11,15 @@ Description: >>>> #echo 00:19.0-E0:2:FF > /sys/bus/pci/drivers/pciback/quirks >>>> will allow the guest to read and write to the configuration >>>> register 0x0E. >>>> + >>>> +What: /sys/bus/pci/drivers/pciback/do_flr >>>> +Date: Nov 2017 >>>> +KernelVersion: 4.15 >>>> +Contact: xen-devel@lists.xenproject.org >>>> +Description: >>>> + An option to perform a slot or bus reset when a PCI device >>>> + is owned by Xen PCI backend. Writing a string of DDDD:BB:DD.F >>>> + will cause the pciback driver to perform a slot or bus reset >>>> + if the device supports it. It also checks to make sure that >>>> + all of the devices under the bridge are owned by Xen PCI >>>> + backend. >>> Why do you name this "do_flr" when you don't even try FLR, but >>> go to slot or then bus reset right away. >> Yes, I agree but xen toolstack has already been modified to >> consume"do_flr" attribute. Hence, we are using the >> function that matches with sysfs attribute. > That's not a valid reason imo: Right now the driver doesn't expose > such an attribute, so if the tool stack was trying to use it, it would > not do what is intended at present anyway (i.e. the code could at > best be called dead). Sure, we can consider renaming "do_flr" attribute to "pci reset" or "bus reset". Please let me knowyour preference. > Furthermore, contrary to what you claim in > your reply to Pasi, I can't see where you try an actual FLR first - > you go straight to pci_probe_reset_{slot,bus}(). If you actually > tried FLR first, only falling back to the other methods as "emulation", > I could certainly agree with the file name chosen. Currently, multiple resets are being invoked (independently) in the context of "xl attach/detach/shutdown/reboot". - pci_reset_function_locked (invoked by pcistub_put_pci_dev())   This function tries various PCI reset methods including FLR. - pcistub_reset_dev (called by toolsstack based on "do_flr" attribute) > And btw - I don't consider it too good an idea to post the next > version of a patch when discussion of the prior one hasn't really > settled yet. Sure, In future I will not post next version of the patch until we complete agree on all the review comment/fixes.Thanks. Cheers GOVINDA From 1583576537884058269@xxx Thu Nov 09 08:31:12 +0000 2017 X-GM-THRID: 1583346318922306893 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread