Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S968473AbdIZMAv (ORCPT ); Tue, 26 Sep 2017 08:00:51 -0400 Received: from mail-co1nam03on0086.outbound.protection.outlook.com ([104.47.40.86]:15936 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S964827AbdIZMAs (ORCPT ); Tue, 26 Sep 2017 08:00:48 -0400 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jan.Glauber@cavium.com; Date: Tue, 26 Sep 2017 14:00:32 +0200 From: Jan Glauber To: Bjorn Helgaas Cc: Vadim Lomovtsev , kvm@vger.kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Jon Masters , linux-arm-kernel@lists.infradead.org, david.daney@cavium.com, Robert Richter , Alex Williamson Subject: Re: [v4,0/3] Workaround for bus/slot reset on Cavium cn8xxx root ports Message-ID: <20170926120032.GA29861@hc> References: <20170908081033.3025-1-jglauber@cavium.com> <20170912094049.GA14111@localhost.localdomain> <20170920120912.7544420d@t450s.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170920120912.7544420d@t450s.home> User-Agent: Mutt/1.5.21 (2010-09-15) X-Originating-IP: [88.67.130.225] X-ClientProxiedBy: VI1PR0102CA0014.eurprd01.prod.exchangelabs.com (10.170.224.27) To CO2PR07MB2582.namprd07.prod.outlook.com (10.166.201.21) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 891568d4-8fb5-448a-82c5-08d504d638a1 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(2017030254152)(2017052603199)(201703131423075)(201703031133081)(201702281549075);SRVR:CO2PR07MB2582; X-Microsoft-Exchange-Diagnostics: 1;CO2PR07MB2582;3:rspOJftFNffaXdplbxPwKCg32MKZ6mKpZ7bBt58U0R4xFzP0abO66O4H+vfviwB2LhHkvyJ4hRxZ8bhW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/62j2BTDXg28GjmNMnn7j39VNwPlWqCAwaX0voXS4/BDr56NtBhytbPvDNjAmrKizJ+djhA6zDgVjYNqHL/hHXt/Z5kpag7NxtZTKsqLHi3W9+dqg/fiCh0iw8zfrL+sMqYMECPRLFrCT9Av+cJyxpKzjWocVXomOpxmZKe14H/qglFZMGbwchmMmTctQF/naQhPGbuKU2gOQPVPjaHyFHsEO1d3lIbD6qAGFGupo1cdEd0qs1i20eAcBy9MiB2eOp4rVMpX0eFUy0Wn1UAn0j08dRja/yuJYf6Khe0S/QqUtaBNu3nv0McxK0qhPoJV0b/PzKOYixC6Xa2g8n6GRQR3Eic3f13BtkKZ6IhJBrdej0GSiv63kdImzw=;4:4QbLV2Emii7cTcJyD6lEQPSBqez+nV4jKLP8zshMx17uuWfJKFEmBRyPOuq+YWqm/s4sjvZo4G22zvbEU4j9hCnOsVfo8asbVptT5C4EKz9VmN5iddimqqrF3MR7LdAXr1JDirIs1j5EJw3xe9ja7I2WDBV/746udeL46d7sro/QLW+1oPp4clo0qdvpq72CGhT6XtggN+m5UrWsxfWrWefbt9g9HlIRKKvq546DDyYJjGwMY+u3MGnSZ4mzI1iI X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(100000703101)(100105400095)(3002001)(10201501046)(93006095)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123560025)(20161123555025)(20161123562025)(20161123558100)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:CO2PR07MB2582;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:CO2PR07MB2582; X-Forefront-PRVS: 0442E569BC X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6009001)(346002)(376002)(189002)(53754006)(199003)(24454002)(6666003)(316002)(5660300001)(16586007)(81166006)(81156014)(3846002)(4326008)(54906003)(53936002)(23726003)(9686003)(1076002)(6246003)(2906002)(106356001)(305945005)(68736007)(58126008)(33716001)(6116002)(50986999)(229853002)(42882006)(6916009)(2950100002)(72206003)(83506001)(50466002)(66066001)(105586002)(55016002)(54356999)(478600001)(101416001)(6496005)(189998001)(8676002)(25786009)(33656002)(76176999)(8936002)(97736004)(47776003)(7736002)(18370500001)(32563001);DIR:OUT;SFP:1101;SCL:1;SRVR:CO2PR07MB2582;H:hc;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CO2PR07MB2582;23:+84+jKd2f6X1M1QCC/vpyRj/DLmfGF9pH+/hntim7?= =?us-ascii?Q?qVVWFLit3MLgctqjM4F5ovO/H1B0ezWmo7XqvqM0PJK2FMrwy4KvOMDdVfIh?= =?us-ascii?Q?rimZ5wp2OLPGTyBom/B2gJrkOrcZDPvOYRcDkbR1vb83z42ax96zj9jVyrGr?= =?us-ascii?Q?5iQqAK9ggL4MZ7SRVDvMXN6PaUM+4Ps0bYvkrNZ1+blSJpHf/pUDZEQ47Fhr?= =?us-ascii?Q?8vKZpSFXcfnss9GUYembC13913mqHOLOsGef6TEnOP8fNBZIgwcnhyRuWffA?= =?us-ascii?Q?/Y23LB5x2hvwqy0ekyTne904Ru2t8uMyH7KCPDKj+X01W9IWxbofotiMlLpb?= =?us-ascii?Q?1Aw2RO8qf4lZAftkcN5xfw0q8X93bBVzTDsgpuMQjPKZ2nN96odYp9CjRAz8?= =?us-ascii?Q?PoiTHICdytmIZWsQh2ORBDaV/1G4jo3MDlHtknJGsi3i/G71fy6oeY6VjRpy?= =?us-ascii?Q?WY3M8yFKkOkMBeW4Khu/HhhOq5qmlDm/+9/bqawdBFCxxq5vwmmTGK33paNh?= =?us-ascii?Q?YTl8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5+XlGMiyV4BchRyfqSDLfegS922ryHKIpzBRstTeisWl2eIq6SrpKTf4yscPWPJmSBz16oacqWm9KafS0Dysun+NHjiroC8wysY6rgsDwUazofdZ4HBm1EuzcxpY8WFoR/iZ8++FhD4lTNW+S9t/WVoZdbAl1YLbt5cz45fEEJJyBoFExwHETeZGua3hNeVVI8x27rfKUeLAAtOqpgVZ8zW/qQ8A==;5:wBJHjp2s9Hm7td5/oGHWNMhFhLA/JeAgjnKyNYrR71gn/PWsH+K/NlELc28jDEGXSSJoRZA24/iE19hktN8ZV2AJIZ52iBBXMterx57zPm/sR1ZXQaJ1S5UUPdZdUzh1bqBXXfrDFOlvEV30q/fa6A==;24:Y2lwrShJ53HD8HIN6yjSVLvbU6tE407kziHVPr6BbtAnOMLPGYfj8xNlTtg9iA0SCRTMzeOKuv9UucUzbmJ3TIDTuAbcufBxgonQkeJKwMI=;7:SAyP3u4AOFaBqnFd8zOylkWCwl/2SHIoGA105zNct+wY8lLxSg03U937ebDEmkxUPBEvRFVqyYLU173b4kCK417ePGsgU8n1lhym+HpS5ltLG0R+Ee8UXshZPEfG3yRZfmCuTG4fsLcDKpy9HHW3Dmx+vqFoWvqujLZGKnUnrk3/e6MoDHPWPeCfshd9YEiIaNOWJ7P3E1xxB0iUYtR07fiIDNqO2SKfNIxhZ0ZYjWo= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Sep 2017 12:00:43.8164 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR07MB2582 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1614 Lines: 52 On Wed, Sep 20, 2017 at 12:09:12PM -0600, Alex Williamson wrote: > On Tue, 12 Sep 2017 02:40:49 -0700 > Vadim Lomovtsev wrote: > > > Hi all, > > > > Are there any updates on this ? > > Comments/objections/acks/nacks ? > > > > WBBR, > > Vadim > > > > On Fri, Sep 08, 2017 at 10:10:30AM +0200, Jan Glauber wrote: > > > Using vfio-pci on a combination of cn8xxx and some PCI devices results in > > > a kernel panic. This is triggered by issuing a bus or a slot reset > > > on the PCI device. > > > > > > With this series both checks indicate that the reset is not possible > > > preventing the kernel panic. > > > > > > David Daney (2): > > > PCI: Allow PCI_DEV_FLAGS_NO_BUS_RESET to be used on bus device > > > PCI: Avoid bus reset for Cavium cn8xxx root ports > > > > > > Jan Glauber (1): > > > PCI: Avoid slot reset if bus reset is not possible > > > > > > drivers/pci/pci.c | 8 ++++++++ > > > drivers/pci/quirks.c | 8 ++++++++ > > > 2 files changed, 16 insertions(+) > > > Looks ok to me, for series: > > Reviewed-by: Alex Williamson > > I am curious why we're happy targeting this quirk at a single device ID > while at the same time trying to expand the ACS quirk to a notable > fraction of the Cavium PCI device ID address space. Thanks, > > Alex Bjorn, would you take these patches? We might need to extend the quirk to cover more cn8xxx variants, this is not yet entirely clear on our side. Therefore I'd like to ask if we could merge this patches now to solve the long-standing issue for cn88xx. thanks, Jan