Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3879607yba; Mon, 29 Apr 2019 10:01:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqwq8WnmsKwUHomB8ogB8AV3QDsrcRXpqQ6zjHfMhNOnkrOFmgnodauE7LErsfJHJ82AMz+Q X-Received: by 2002:a63:c746:: with SMTP id v6mr60268234pgg.401.1556557264638; Mon, 29 Apr 2019 10:01:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556557264; cv=none; d=google.com; s=arc-20160816; b=cLxwQw7P0qRrZX76vIColu65j8Ba4p68+ArQeoPPzWoyfcvqbBsq5TVZQvEYIT5Lx6 8iaLG9mCTUvDS6fXTN0P4rza0RXsPwCrFHh4pHFy0c6H7sGsq/LkRgW3gPQRCNeU5HaI 1pW5mDiUYnJyhawSWJbpP+NrPygOXqLP8sSoeeAiUMVwLMc3SlAVcMWDnxU4sV/52WC0 81Hgig5poDYaEDua2lYQg9ecvEVprEZx96X+EP/X1eDTROf13gY51VqKk86nGEqkuL1v DUcbRJz40abMu4YLrq4m5WVF02JocFmCTniPZcg3sgOq7IkcMNpxwmMoDZPL/nvD5qsP JceA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=WwTUDpE0opMfg6FBlxyyk+j4UW71WgufSLtyoZzWQhY=; b=stXqFpBRsls4IvhfRYHUmn9EXT4PHkVxKzUX4vz5BI8swNpVMLJmv8XLJyCnQRyIbX S+VcaR7QPpm3cLuqG/fGB2QURts9wMpEY7lRg3GjLlSLI89ogPfA3R/VBUysMxLZD+N2 BMR5XOQv7qv/BqFuxkscvXZI00qztsqN/sgkivQRr8ZhnY16pjyG3b9SJgqZMOUDWPjd OUjxzXQgxQKw9+0+B6U8b7JrrMPlQmj3Fh9GfrtvR/xjDM4ra8jAG19sMCExIn9oktTe 5JGTH4MrFWsm40SghmCQLPdGNSeHbH3dfPTEg/k1oR4Mvw51Kkasnq4jrs2/gRaemNKJ qxrg== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m3si25361716pgp.562.2019.04.29.10.00.47; Mon, 29 Apr 2019 10:01:04 -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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728879AbfD2Q72 (ORCPT + 99 others); Mon, 29 Apr 2019 12:59:28 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46278 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728695AbfD2Q72 (ORCPT ); Mon, 29 Apr 2019 12:59:28 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 214813091784; Mon, 29 Apr 2019 16:59:28 +0000 (UTC) Received: from x1.home (ovpn-116-122.phx2.redhat.com [10.3.116.122]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4406B1001E63; Mon, 29 Apr 2019 16:59:27 +0000 (UTC) Date: Mon, 29 Apr 2019 10:59:26 -0600 From: Alex Williamson To: Sinan Kaya Cc: 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: <20190429105926.209d17d3@x1.home> In-Reply-To: <76169da9-36cd-6754-41e7-47c8ef668648@kernel.org> References: <155605909349.3575.13433421148215616375.stgit@gimli.home> <20190424175758.GC244134@google.com> <20190429085104.728aee75@x1.home> <76169da9-36cd-6754-41e7-47c8ef668648@kernel.org> Organization: Red Hat MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.41]); Mon, 29 Apr 2019 16:59:28 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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, Alex