Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1545386pxf; Fri, 19 Mar 2021 09:25:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwSDvDB3sJol/rDAkilYHiT8FCCz+4nKz4DNxSBlSx+nbW+KyuLXAtlMEWeGDXy736qKkxQ X-Received: by 2002:a50:f38f:: with SMTP id g15mr10412325edm.262.1616171102983; Fri, 19 Mar 2021 09:25:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616171102; cv=none; d=google.com; s=arc-20160816; b=nA8sNz4s6CNGeh+QaUmadMUr5aDjfUt/TQc47hkm/jojeJcERA6QcWwPjFLGNeNyQW XJy0ptDCb4xS/EHD83Hlets0ag5b5bVYSRyAu5ILzDhBIAih8Cw65Wxe2sHoAcbed9+C MG32TW/0emuJz5fc1TWnErNYnVq6AmzPXt03Z7bnQJqiYaPizB/HkZFKV38lMg/aVMLS DAaHqhXUEwwh4JDg8C4j13DtqshpWvOz6DBHc0SwjLAhuF8tqRc50NOAn32eqN9MKZzc PJN/PBUZUtwTrZM5wTMQ5MYDG0E5g/9KQZ7ztu8eZV//elHRU50eW82KklZIRmZU5w4c /N0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=4yMSSQE+266qMvhoobx6hI2uloJNeAdSSRsEhmgkNvM=; b=ao/DLBgvPicQuBZXLLsDtd/zWo+3RvXoU+JUtgR1W19DV79jdBJBJUHfsAjKcmVekX xUw1NiNp2i1tedABtkmu1qAW6CnrRX4h9IRbPwwkqCTgPFFZ6igiV6S33QyeZ7i6RMHa V9Wh0MggHs/yUh59M+jZpiykchI3MggamdB7pUmRVSsOfo//Kn48sQ6Sz1/uTwMIZ5qi F0J+7JF1W3QgPve8E4i7E08kBnXeF+jwGxy8xoL2WOLAlFXkSKvNzPqs8cGO/AixFeyW qa4afQG14D5Cwzl4XKu8pUjMmkWeLDprpM+ZUJ9dCLCdOESe6u3ECPXutLw2WA4CUveB QYVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="TVvg1RA/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q17si4608162ejj.672.2021.03.19.09.24.40; Fri, 19 Mar 2021 09:25:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="TVvg1RA/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229960AbhCSQX0 (ORCPT + 99 others); Fri, 19 Mar 2021 12:23:26 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:39118 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230015AbhCSQXU (ORCPT ); Fri, 19 Mar 2021 12:23:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1616170999; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4yMSSQE+266qMvhoobx6hI2uloJNeAdSSRsEhmgkNvM=; b=TVvg1RA/NkAxFxUMzwNUll9glBFOvE73ZTw6JH4fbBy2af3/0GAiw9kUDIKvZkWgLpTSMX zAyvQhLUCr10he4oUR0kroh5gLrWG3xeHHm36rIDRMlYqokVPTgjJ1CvykWRfjx3ev/o/9 ptXlxQ9BXMiLAbkLrFdYTKMa5PNyCPs= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-275-ND2CEfwjMq-no1d6SPdBxw-1; Fri, 19 Mar 2021 12:23:16 -0400 X-MC-Unique: ND2CEfwjMq-no1d6SPdBxw-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 7B6E81044804; Fri, 19 Mar 2021 16:23:14 +0000 (UTC) Received: from omen.home.shazbot.org (ovpn-112-120.phx2.redhat.com [10.3.112.120]) by smtp.corp.redhat.com (Postfix) with ESMTP id AF0DA1A86F; Fri, 19 Mar 2021 16:23:13 +0000 (UTC) Date: Fri, 19 Mar 2021 10:23:13 -0600 From: Alex Williamson To: Leon Romanovsky Cc: "Enrico Weigelt, metux IT consult" , Amey Narkhede , raphael.norwitz@nutanix.com, linux-pci@vger.kernel.org, bhelgaas@google.com, linux-kernel@vger.kernel.org, alay.shah@nutanix.com, suresh.gumpula@nutanix.com, shyam.rajendran@nutanix.com, felipe@nutanix.com Subject: Re: [PATCH 4/4] PCI/sysfs: Allow userspace to query and set device reset mechanism Message-ID: <20210319102313.179e9969@omen.home.shazbot.org> In-Reply-To: References: <20210317112309.nborigwfd26px2mj@archlinux> <20210317131718.3uz7zxnvoofpunng@archlinux> <20210317113140.3de56d6c@omen.home.shazbot.org> <20210318103935.2ec32302@omen.home.shazbot.org> 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.23 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 19 Mar 2021 14:59:47 +0200 Leon Romanovsky wrote: > On Thu, Mar 18, 2021 at 07:34:56PM +0100, Enrico Weigelt, metux IT consult wrote: > > On 18.03.21 18:22, Leon Romanovsky wrote: > > > > > Which email client do you use? > > > Your responses are grouped as one huge block without any chance to respond > > > to you on specific point or answer to your question. > > > > I'm reading this thread in Tbird, and threading / quoting all looks > > nice. > > I'm not talking about threading or quoting but about response itself. > See it here https://lore.kernel.org/lkml/20210318103935.2ec32302@omen.home.shazbot.org/ > Alex's response is one big chunk without any separations to paragraphs. I've never known paragraph breaks to be required to interject a reply. Back on topic... > > > > > I see your flow and understand your position, but will repeat my > > > position. We need to make sure that vendors will have incentive to > > > supply quirks. What if we taint the kernel or pci_warn() for cases where either all the reset methods are disabled, ie. 'echo none > reset_method', or any time a device specific method is disabled? I'd almost go so far as to prevent disabling a device specific reset altogether, but for example should a device specific reset that fixes an aspect of FLR behavior prevent using a bus reset? I'd prefer in that case if direct FLR were disabled via a device flag introduced with the quirk and the remaining resets can still be selected by preference. Theoretically all the other reset methods work and are available, it's only a policy decision which to use, right? If a device probes for a reset that's broken and distros start including systemd scripts to apply a preference to avoid it, (a) that enables them to work with existing kernels, and (b) indicates to us to add the trivial quirk to flag that reset as broken. The other side of the argument that this discourages quirks is that this interface actually makes it significantly easier to report specific reset methods as broken for a given device. Thanks, Alex