Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751415AbdILJk5 (ORCPT ); Tue, 12 Sep 2017 05:40:57 -0400 Received: from mail-cys01nam02on0073.outbound.protection.outlook.com ([104.47.37.73]:52304 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751214AbdILJkz (ORCPT ); Tue, 12 Sep 2017 05:40:55 -0400 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Vadim.Lomovtsev@cavium.com; Date: Tue, 12 Sep 2017 02:40:49 -0700 From: Vadim Lomovtsev To: Jan Glauber , Bjorn Helgaas , kvm@vger.kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Alex Williamson , Jon Masters , linux-arm-kernel@lists.infradead.org Cc: david.daney@cavium.com, Robert Richter Subject: Re: [v4,0/3] Workaround for bus/slot reset on Cavium cn8xxx root ports Message-ID: <20170912094049.GA14111@localhost.localdomain> References: <20170908081033.3025-1-jglauber@cavium.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170908081033.3025-1-jglauber@cavium.com> User-Agent: Mutt/1.6.1 (2016-04-27) X-Originating-IP: [50.233.148.156] X-ClientProxiedBy: CO2PR05CA0056.namprd05.prod.outlook.com (10.166.88.152) To MWHPR07MB3008.namprd07.prod.outlook.com (10.172.96.14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0b59b5c1-63ea-4c29-63c5-08d4f9c25bf8 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(300000503095)(300135400095)(2017052603199)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:MWHPR07MB3008; X-Microsoft-Exchange-Diagnostics: 1;MWHPR07MB3008;3:qCg0T9t45xmMr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MHG3cWkPgjcQRNU9HThQYhSP6XJ+ob3zjanMTpIZxgi5vMz2fRibbcmfztn8mFAX4h11a43mtfxi3rPyjuPIFMFGAcXvpyYcOMfYAEMjU3fBthHaDl8OQSRBQMLCtlMWA72p3c/TZB8pKb2T8EpiLc4STADhY/yARRagDxeVMNhKcelqa5lwOSBrWCh4P1HQi4DhvLz/3eUkRd9eP/MLQSiQd0U0gNABzwSPtGXBSavAivwdPMQQIODZCe5DqxEGSYd1JTbO3cwOec69JJ1dd4g9HOtJ30vT2NDdlG+VuUQ04zW26MflX1Q9tcDATXPV8qm8iOdu5jFsxv2FMmA3UobnsUwudRrDLE4dmXctVYos9X4yqNuyGCthbmDYS2JY2/j/Ivt3bhBi2hKXbRhSCl3rPPGzFTb9m88PJ8PoU42xv0NjeLvqg2FoC6DkI=;4:swUooNgvJhX4ihy7otwAOZbsL2nCNNuJ77xwglg+eesruT5yAFtM1Oe4WyJ2PZWlg5XiI8LnOzebbUzswRLcsNKZUzCCENBNYUJkcH71FvlAK7A47LsvThqYio1kUga5n1+I6TBhY5ELR8EupsanD1cqXuy7HPdzDUm0eziubWaQQkyvWRxPMS9GuZXruxbzZDjMfHZ1Hm0fiKNYliXuJj3ieWLmJxYshJaWbcr8h/ln+Ass96d2iYL+q0YYjAlM 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)(10201501046)(3002001)(93006095)(6041248)(20161123555025)(20161123560025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123558100)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:MWHPR07MB3008;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:MWHPR07MB3008; X-Forefront-PRVS: 042857DBB5 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6069001)(6009001)(53754006)(199003)(189002)(24454002)(5660300001)(305945005)(42882006)(72206003)(2950100002)(7736002)(54356999)(6506006)(2906002)(189998001)(50986999)(25786009)(106356001)(33656002)(76176999)(105586002)(4326008)(101416001)(9686003)(4001350100001)(229853002)(81166006)(8936002)(42186005)(83506001)(23726003)(68736007)(478600001)(107886003)(1076002)(61506002)(55016002)(6116002)(3846002)(97736004)(6246003)(6666003)(53936002)(8676002)(47776003)(50466002)(316002)(66066001)(81156014)(18370500001)(32563001);DIR:OUT;SFP:1101;SCL:1;SRVR:MWHPR07MB3008;H:localhost.localdomain;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;MWHPR07MB3008;23:sbogK+mZjW978lBMUe9L1+wqz94/4i/ey4/LU8vGB?= =?us-ascii?Q?RKsUVYzVFhrHBO929CS4bCEOZhExzmSaSpLYpDgvdzThExhl9clD9GCuJSIZ?= =?us-ascii?Q?fMK4jgqRQGxDDA+NItTgw8gYb87qKZSsFCwoybsdxQl2LNId0TqcVRkyrZjS?= =?us-ascii?Q?/MxXqT2ylVmG2262+dM+LD9LLUn8tNRTAXZknpr6kYGa0PSdoXE6gM4pIqD1?= =?us-ascii?Q?xBW1AizSVvrWpbwIgs+B9sA/58HsG21LLNuTZ6bBAi8QyC4Hui/QOAmEFm1O?= =?us-ascii?Q?M5RCCrNAYcKRPmg+OVUKTYZbtP+6EroaKONsGzqnXEgAphu4r8CIbTHphroj?= =?us-ascii?Q?U9sxB2/Q1Fha7m3SFwyPdf+w0YY11R861KXTVjwdvLYBBhaH+TzhWiKqYB2m?= =?us-ascii?Q?SzZxpZkljGl0+cYd7J6+9DGLtTi1lRKvS2SUcVQBdUU/EG36x35Yqe37AY8v?= =?us-ascii?Q?E1nO3Ku1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l1bofu8C5ky2ykkV2IT7irPTIxWpObiMUK0GMOtvn/aJNPEEHON6v91VMZypLNrPQ3AMG/knhHXYLixqg7B7jEcmZPHCZNwyPHdmfyCw6YA1Sfsf1c7rp9sm3IKNHcWlAIdIPND7rRX37JgsZ81L9TXlhQkJZXnC1rsXzqH5OEnB4R2ao+oyNjSGz7QO5TMp/A0BMd4y0ZuskaLQHQZXfAVIrzNn1jaWd71UgTQhhiTLuNRW5xDG+As/PSRUSFwHRbAmA==;5:2vSvaggkuz+6C1bmsAKd9YJbiFwjuryJMKSWHvbGLqm7ZO6K1z2TAp5E2AknilZNJa7hhuzQxO/jvdeJxm20jWS5Jxana8HEQSeVhEUV80Si3kCGBuu4Xz99CJABK/SIGJ6yAfnZHbW41O0kdan4Tg==;24:GX1yY4tkydLt/hvhaWNKXv91L251f7h+kep5qhCTCseDPj6Dg+fDecjTtAImvtd/YkKU4me6M1LE8aPEdCj7PqRU82rqI+ZkRizPxuOXrXM=;7:vpvS4Y6Ti+QfMHJYZxicwioOtOsSfdIAWzc1rRKh51Hr5OzDIqJJCsNcVczCBh57xy3MctXSf7oCj/A9Hx8YAqh/k4U1bG96yxKScQlCQILZUqXrIeLogyeyqfAo4kSpMc/VXVclvjZaCNuzb7NT2VAxwjDSjypUS29D9ID554/H5CVNLOYo1aUDGc1K6Pv2vGa0w5/ekK7SvuY5zgosx02AN8J5csTPJPe5I7qUnEc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Sep 2017 09:40:52.4778 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR07MB3008 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 754 Lines: 26 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(+)