Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5226818yba; Tue, 30 Apr 2019 11:07:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqxSQ+NioBA84lMWcti3HBpdMsXhRuaVHCuJLJZs5by3IKy7TF4RCmF9hH4vkHDp45GWPbSb X-Received: by 2002:aa7:99c7:: with SMTP id v7mr13429368pfi.103.1556647648611; Tue, 30 Apr 2019 11:07:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556647648; cv=none; d=google.com; s=arc-20160816; b=OuWqDtS2Jsjg94BEYtthb8/CF+1TuN4ZvBQWbk7jTr6yiUll+9itSDijOdpgJdmkgL EuymP3NI6tz1khPuaYw19mxQ0M+cEz4JIgrONdhJQ+UIbkC2I/6LK9QhsRmo0hY4r61j aPTpU32KQWD0MYxjibIVOToKR+1Qx9xWd4whlx8R597XwSntiu+xUFtOUvDOWRMX1ykN MbDn9TREAXjpjdBB6dYmDOs7hyalW0J9LbzmKLumXfghFKZBOrmQgzmpuzgdBATq6W9Q 3DDqPp2SHIr3zJR5OOxW6Nuer/ovaFJP1wzsUCI8E2wstbz+sCXPIrRKrsj94/ziYDr3 DfiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=GLEaAPioKNhgakYzi/b+mdwte2eUNz9iElJ6x2G/VYA=; b=0N6fIGxheodjhG0+rNBFrcwXGi7L4rD93QSS79SnhKxCPWMsiJ6bmPpqVxgsBuQfwj 7FWHJzpXYEz+xYwV/1nCs4VCjE9SzGGuZshyd253N5Yp6Dl0dKMthFVJwcyEUo2Jh2jB sXHYk7Dhk/eg8eJ3zzSpi4uiBtbCSf9S39mO38g70exHX6FdIK5mPhh2k/CVuwIOyhau lVg41+fqzBsokEZqNKYCCYaxcL3hDP4n/+k00NuA02Xjc3Kpp5+Up8nBvkSVW3kkoznI MiBIU/6cUFfazoOBYv3ee53jD2W5jKY2FzHTWESMcnoLNQIIB4ZDpFAC8XqLpWtt490p o+KQ== 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cm19si9155201plb.202.2019.04.30.11.07.12; Tue, 30 Apr 2019 11:07:28 -0700 (PDT) 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726557AbfD3SFH (ORCPT + 99 others); Tue, 30 Apr 2019 14:05:07 -0400 Received: from mga18.intel.com ([134.134.136.126]:49225 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725950AbfD3SFH (ORCPT ); Tue, 30 Apr 2019 14:05:07 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 Apr 2019 11:05:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,414,1549958400"; d="scan'208";a="138785887" Received: from unknown (HELO localhost.localdomain) ([10.232.112.69]) by orsmga008.jf.intel.com with ESMTP; 30 Apr 2019 11:05:05 -0700 Date: Tue, 30 Apr 2019 11:59:17 -0600 From: Keith Busch To: Alex Williamson Cc: Sinan Kaya , Bjorn Helgaas , mr.nuke.me@gmail.com, linux-pci@vger.kernel.org, austin_bolen@dell.com, alex_gagniuc@dellteam.com, keith.busch@intel.com, Shyam_Iyer@Dell.com, lukas@wunner.de, torvalds@linux-foundation.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] PCI: Add link_change error handler and vfio-pci user Message-ID: <20190430175917.GA25654@localhost.localdomain> References: <155605909349.3575.13433421148215616375.stgit@gimli.home> <20190424175758.GC244134@google.com> <20190429085104.728aee75@x1.home> <76169da9-36cd-6754-41e7-47c8ef668648@kernel.org> <20190429105926.209d17d3@x1.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190429105926.209d17d3@x1.home> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 29, 2019 at 10:59:26AM -0600, Alex Williamson wrote: > On Mon, 29 Apr 2019 09:45:28 -0700 > Sinan Kaya wrote: > > > On 4/29/2019 10:51 AM, Alex Williamson wrote: > > > So where do we go from here? I agree that dmesg is not necessarily a > > > great choice for these sorts of events and if they went somewhere else, > > > maybe I wouldn't have the same concerns about them generating user > > > confusion or contributing to DoS vectors from userspace drivers. As it > > > is though, we have known cases where benign events generate confusing > > > logging messages, which seems like a regression. Drivers didn't ask > > > for a link_change handler, but nor did they ask that the link state to > > > their device be monitored so closely. Maybe this not only needs some > > > sort of change to the logging mechanism, but also an opt-in by the > > > driver if they don't expect runtime link changes. Thanks, > > > > Is there anyway to detect autonomous hardware management support and > > not report link state changes in that situation? > > > > I thought there were some capability bits for these. > > Not that we can find, this doesn't trigger the separate autonomous > bandwidth notification interrupt. Thanks, I think the only control is to disable automomous lane and link rate changes. When set, any changes to either should only be in response to errors, so enabling those controls might be the right thing to do with this feature.