Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752057AbdIUIHU (ORCPT ); Thu, 21 Sep 2017 04:07:20 -0400 Received: from mail-cys01nam02on0041.outbound.protection.outlook.com ([104.47.37.41]:23616 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751693AbdIUIHQ (ORCPT ); Thu, 21 Sep 2017 04:07:16 -0400 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jan.Glauber@cavium.com; Date: Thu, 21 Sep 2017 10:06:59 +0200 From: Jan Glauber To: Alex Williamson Cc: Vadim Lomovtsev , Bjorn Helgaas , 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 Subject: Re: [v4,0/3] Workaround for bus/slot reset on Cavium cn8xxx root ports Message-ID: <20170921080659.GA12818@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: AM5PR06CA0026.eurprd06.prod.outlook.com (10.167.168.39) To CO2PR07MB2582.namprd07.prod.outlook.com (10.166.201.21) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 508b006c-4dc7-4ab4-b387-08d500c7c3e8 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(300000502095)(300135100095)(22001)(2017030254152)(300000503095)(300135400095)(2017052603199)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:CO2PR07MB2582; X-Microsoft-Exchange-Diagnostics: 1;C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jvm4V9bGvOEsP/bgBEFKdjVYVw6T73IIUf67qKR/0tzJ9Y8ABcREM2dfvKDrKUTDc2NND6bLwQaBgXzRbxjroTPszy+8gKceILgGg9DTHnKKeTnEzleHxoBIPshvxa5VhmboTSc62AtxO9RNqlYFP+F0wuJSRnSQEUH6jNOMlxz/hVDFKxGXYZaDmYmiQGvSc7YbFmja/rikkdH+8Lvb9+ZXLvs8Zbnr015MoZ1svvWjlJoCOGPp7/1Bbr2av9rFq9q0p1dDblh+1WijWqaqONEWTz3qP/7EWgProty0WJDTmxP9jwqjiPjsAJ8aNWENrWuzLzeam7YnIL/7iFR/ukpPZOl4LGy3GH+H0vhg860Mz3OViptVnt90Df+utcDR7LHRQutS7Uzs2GpaP3UhvIyV8RkYmDbt6Koi/L7FjULmGNkrk5ISGUysBJhNi+fsPC1X9ZQfCaFt+RVrEw=;4:H62ouW5mosGLsoTPxaFfPiJPFEY9GKpfX0PkfB0HbB3LpMF6JRf5VlUgJQl6I8e2Sbeichq+8QhUoRnCU3TO0TdtcWqKH6rpzDMPogltY2jVZbc3s7QPmqbmbE54RTcSgX+b6V0PKh8CSDe0aKb3N2zGafzU/mJSmHDGttIBuBi/uqgc3ozMDBaKwiQL7+/m2T3vcwjs+lIn6MOTkFp3rjSfIWXHUL9/lvTjk/njCl3PD3qORq47yGkPwP9femrz 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)(3002001)(10201501046)(100000703101)(100105400095)(93006095)(6041248)(20161123555025)(20161123558100)(20161123560025)(20161123564025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(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: 04371797A5 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6009001)(346002)(376002)(199003)(53754006)(51914003)(24454002)(189002)(6496005)(25786009)(54356999)(101416001)(50986999)(478600001)(6666003)(72206003)(2950100002)(6916009)(42882006)(229853002)(33656002)(7736002)(97736004)(66066001)(76176999)(189998001)(8676002)(47776003)(8936002)(81166006)(16586007)(105586002)(81156014)(58126008)(316002)(5660300001)(106356001)(2906002)(6246003)(53936002)(55016002)(83506001)(6116002)(33716001)(4326008)(54906003)(68736007)(107886003)(50466002)(1076002)(23726003)(305945005)(9686003)(3846002)(18370500001)(32563001);DIR:OUT;SFP:1101;SCL:1;SRVR:CO2PR07MB2582;H:hc;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CO2PR07MB2582;23:2Cj+mPVhn+Rh7JRpxBvfgAcPNTfyqq+BlUoGHQ/LN?= =?us-ascii?Q?twmWxZ/XCVCGSO2cx0Wz+NK52t6GgMyQFCn+WiO5DRGyjGLVmiLmwd3TRyE9?= =?us-ascii?Q?mFraPWKDzJZRTSQg1MrTvmdRr6TeDkXArs0SeqIt2Zz50xIzU6guqR2uTt/N?= =?us-ascii?Q?787+9X9EtoBl8D75GNxf+su/PPo/rIfed1R6n4khQY8uzL4m9cv8NwrKyXzn?= =?us-ascii?Q?OkATIReQ5aS2w/FBh5kHCzIiRYGM6mCx90iH5gv+9oNX/QGaNfB7VjWngaLj?= =?us-ascii?Q?ILcgkRXER3HLhBTmLllUhvWqR0rJIBuVxQwRzTpSMHMp0qapm7+x0QksPyjo?= =?us-ascii?Q?2CxNcdw3YolNBzXJb3CCLJ62XyQbekFQxFByw/HL1qCzHloFDElpwrKLIAuj?= =?us-ascii?Q?/uefbg/O8zqeHao9lrYPgm8g7tjsx5cs4lH3l9o0Pde8R+pV3BMu3oL6YxyY?= =?us-ascii?Q?arAx5KTdCXAnivmBdfaDN9Z15NUyrJbP5ZvRqX8QbcS15hELtLnu8ivs8wax?= =?us-ascii?Q?WmtbFhLwmmUXSkdvKZVrTu2wE02hYDqHXpy2AItAeqRDb+cuL/ddBx+sQMWj?= =?us-ascii?Q?gxWxeMYH/rjLqSkj05E2v42LSyfWyaQxB2eMapxJrl8Isu0YiruJYECWRmpA?= =?us-ascii?Q?mGHmPXSuLGDb+pQgL0dA74HxnyTMDsJLgX0rsZTkqnjBF0yOq39ghUVggZjR?= =?us-ascii?Q?svRKGxFDB3IHdCjE76sYSlsCYCY1tpITqLDgHITmZxYCg90cjaM1wGa7Rau7?= =?us-ascii?Q?9sMu7XCDR4qNZNCwHrIt7v7qNcgonWMvzoY3lWfQzrVb3LPb2JvkhncCYYus?= =?us-ascii?Q?/QNkax4qrchHFeLh1glBgnZt2GVFzEUwwW5d2UGFYJscIbh0boTjjqfIBBHH?= =?us-ascii?Q?it4bidGkvyDCCOzy1xZly2kh60twxvpeGsgbnfMaV8Hydtsaz/aFqSDZAFnb?= =?us-ascii?Q?wvd7B+6vm/Y3P9fhVlyO2ukbqoAYWhlFbl39LP/C45LXaEobL0PiuoufTTS3?= =?us-ascii?Q?wOApOGpFX36BoqQw8MlCkMTxs1pkg2aNdZWTZeL5YARclenlxC6JypgIlB7O?= =?us-ascii?Q?pucxgiac9xm2lru4BwZwtu3vv3nmVxkb816HfCEX665hYSxt214TWdyz6rdD?= =?us-ascii?Q?cdEqIsj3jsIbpaj6wtn5jNKtMx7Kr86x6JOma80X96ULSaajFO/RexpkwUDt?= =?us-ascii?Q?nH8zVI/aCfIzO4+UXjsDnZY3xuvDER/QXNwwnEHUUZfkz5af7xCLV4lKUu2a?= =?us-ascii?Q?Fg5IxUGQneRthAR9bBEy6bFKIEeNLGeC5BQGkf9VRjRFMPivU1s4aolCGRDM?= =?us-ascii?B?QT09?= X-Microsoft-Exchange-Diagnostics: 1;CO2PR07MB2582;6:THLxmoChYtx01bysRrrgsAyiP+6Q0whtZGAhnRZB9DrvlOWXsror3/moiFMDrVOHsGJPAr+5FSIo114lJkwly4MDyZoyUp0nD4PZqgPBUkUBIb63cnXlUWMJpmWLm2MGAxq94S5ktCXfpqqlWrIV9tgjxaV+3xGC9uQnJpkWpiYcUkWvLl30NTLt3bR40TK7LShoK+yf3YHlRjVRpI4T5HeUcsZ3U5JFKi7fuqHm9kZw7Cc5yWFGaTk1OyFoUDTPE0vZMzCzXZ1+HZV+iJP4SLY5TDNcxx69gZutyQFxKWYiVms6/JsVGSf1Z2puXAyRZHFzt7eo2vW13kxW0TnJ0g==;5:BOyU7YS6dzZxXDR4Un+dT314C++ylGfyzr4pEXFmE9gwvLsirD/SE0hpKBwvgWg0qLFvqQjidmJtaS/VdiMJVSyS0C3sPQUvmjPqhuBBS2qTEFGdolmUGYlHqmFgHRgenA2lgzkivDfZvs7NAjAQZg==;24:Bpu8B85SmHla7QLtcB2hZ/dVEBcSy+T7b6eWemzg/9/yrtvo/gmtXEUHczPqt9LDZfl0qhHcf5hWYyLs6MOQm2il1+GKoXIPB3fWfGELziU=;7:0pHQAw0v27hltc6osKLGhG0ltRu7r1aeNTZ9R9Otwwa7XvQ4CzLKICqSOfYWnrpGWpNpChn+wJbhZD/W9bso6V13Ykc+wh0Q6vsLQ40nzgpTT0SZR+WeGPow10M+8VUHnfvfSor77cCuGQs9HtyloTh+RuntDt1IHGZadm3g1/Ca7vbpqzlslPdzYPp0AUXlOpYKoN4IJ5GknkHIv2QY+JXRGyyJZUgudbMyxJCLNpo= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Sep 2017 08:07:10.5592 (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: 1616 Lines: 47 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 Thanks for the review. And also for being patient with my iterations. > 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, David, please correct me if I'm wrong but I think this problem only exists on cn88xx (device id 0xa100) but not on cn81xx/cn83xx (0xa200, 0xa300). I've seen the bridge causing the problem only on cn88xx. --Jan