Received: by 10.223.164.202 with SMTP id h10csp4701171wrb; Wed, 29 Nov 2017 10:23:53 -0800 (PST) X-Google-Smtp-Source: AGs4zMbbeb/SNuTpw+hEDfmlcPZAbrLVQTHrYJRHb4uWsYyiORWbqEvSAwdWYPb9JcyGEyy0/Pna X-Received: by 10.84.216.81 with SMTP id f17mr3731710plj.330.1511979833177; Wed, 29 Nov 2017 10:23:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511979833; cv=none; d=google.com; s=arc-20160816; b=kLVhrbab9fOvUsgbSJAnSTV14IwKK/VmVwSnh64x6hS8YH1vdHZT4mcpIrth5o4wjZ ZMGgg0olpSYwLC/a4FfGtnQkhJlWoY/97lj9zTAG/8BsCAi05XFtTYh0QXN2gwyv9kIG 8hQl3GJIJET/xVsGss0JwW0n6elkMR5qndA3c8qN6EXkku0IJ5EQ+MYtcEslSq4mQSfZ XKBBmKu67/OqT9Zi+/ptBLYbjqsaveaEbSo4z4RHS4tCpND/lJrqlOBG58Ui8wK06Wwe 1PnvTqIkO1cqBUPpOworECM0jZbbRF+mKOIbcHor5aI4j3WxxPIoo4ffCs1AhBOFORic +sPA== 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=h6NKo9tnVYh+U4cegY2tEvFM1nLDcdaNHcLkF05zgl0=; b=RqC2UhLRiBoJYFfRDR1ybHMID+gnDwybgxupLOsFJcNl/wof7jWiE0SrliKzOpO9oU 6A+weVoS0dmowof2OnvHhUh/sqIPpjL2cqNyCxwkbKq3D9uVVzZOhU7huaLL63yVfsml 6neAl/E535SPHc3JbwbwQXAV8B5qNM+k6uZKbVhwjW1LlRK17ja9ZHJByZqvrWFl1UDD tAo+02sDxHLaQJw+pjvOLaKESJxseji03vrxAkVW+nqTlbx8Jeftf7la0T4FQhRT0vkP 6i9757ccr50CENq1RtqzYfdbQRWE0CrR3CzvptKGMk6zljLZ8ln3C9xjAuNfIikwQw0S qBLA== 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 a15si1648748pll.616.2017.11.29.10.23.42; Wed, 29 Nov 2017 10:23:53 -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 S1755630AbdK2RZW (ORCPT + 70 others); Wed, 29 Nov 2017 12:25:22 -0500 Received: from userp1040.oracle.com ([156.151.31.81]:45381 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753571AbdK2RZT (ORCPT ); Wed, 29 Nov 2017 12:25:19 -0500 Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id vATHPEZC000855 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 29 Nov 2017 17:25:14 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id vATHPEv6003886 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 29 Nov 2017 17:25:14 GMT Received: from abhmp0005.oracle.com (abhmp0005.oracle.com [141.146.116.11]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id vATHPDLY003853; Wed, 29 Nov 2017 17:25:13 GMT Received: from [10.135.190.159] (/10.135.190.159) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 29 Nov 2017 09:25:13 -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> <5A1EE1D50200007800193318@prv-mh.provo.novell.com> From: Govinda Tatti Organization: Oracle Corporation Message-ID: Date: Wed, 29 Nov 2017 11:25:09 -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: <5A1EE1D50200007800193318@prv-mh.provo.novell.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Source-IP: aserv0021.oracle.com [141.146.126.233] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >>> 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) > While related in a certain way, I can't really see how this addresses > the comment. pcistub_reset_dev() just tries slot or bus reset but not FLR since it is being checked and executed by pci_reset_function_locked() if supported. May be we can add FLR reset code to pcistub_reset_dev() and try FLR first before fall-back to slot/bus reset. Cheers GOVINDA From 1585419315216668036@xxx Wed Nov 29 16:41:21 +0000 2017 X-GM-THRID: 1583346318922306893 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread