From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751478AbeEKRzl (ORCPT ); Fri, 11 May 2018 13:55:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:40650 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750711AbeEKRzj (ORCPT ); Fri, 11 May 2018 13:55:39 -0400 Date: Fri, 11 May 2018 12:55:38 -0500 From: Bjorn Helgaas To: Keith Busch Cc: Jesse Vincent , Sagi Grimberg , linux-pci@vger.kernel.org, Andrew Lutomirski , linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, Jens Axboe , Bjorn Helgaas , Christoph Hellwig Subject: Re: Another NVMe failure, this time with AER info Message-ID: <20180511175538.GH190385@bhelgaas-glaptop.roam.corp.google.com> References: <20180511165752.GG190385@bhelgaas-glaptop.roam.corp.google.com> <20180511172610.GB7344@localhost.localdomain> <20180511174241.GC7344@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180511174241.GC7344@localhost.localdomain> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 11, 2018 at 11:42:42AM -0600, Keith Busch wrote: > On Fri, May 11, 2018 at 11:26:11AM -0600, Keith Busch wrote: > > I trust you know the offsets here, but it's hard to tell what this > > is doing with hard-coded addresses. Just to be safe and for clarity, > > I recommend the 'CAP_*+' with a mask. > > > > For example, disabling ASPM L1.2 can look like: > > > > # setpci -s CAP_PM+8.l=0:4 > > My mistake above: CAP_PM is a different capability, not the intended > one. It looks like setpci doesn't even have a convenient symbol for the > L1 PM extended capability, so the hard-coded offsets are the only way > for this setting. Sorry about the mistake. No problem, would be a nice janitor job to add more of those symbolic offsets to setpci. I recently added more cap ID decoding to lspci, but didn't think about updating these things for setpci. Using the symbols would definitely make this easier and better!