Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2671132imm; Thu, 16 Aug 2018 13:34:04 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxxmIX3PTAhH0JaaiAhxyQ11BU8EZkQxlPduzMWyDq4eUDXBtrrLajAJsdhb7m+WjPnIwWQ X-Received: by 2002:a62:225d:: with SMTP id i90-v6mr33240315pfi.246.1534451644355; Thu, 16 Aug 2018 13:34:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534451644; cv=none; d=google.com; s=arc-20160816; b=vaMS3hi0WYYfspZCGU/NzcxRKOCCZwhT2VwOPLIGizrc6yzs9Ui7S1XIC/TofXNVwA JtX9GOym8PBzb6EC7uA8z6ge+BVAqg99k6r3qCcdng/vWpIicmjKAOv2KUm5wYPWvGxm HLIY0KO2Z3qr+vq87e46wsh6uXA+p0LqsysD1pZ48bVMiIZpKZn5a5V3K4XuixLY7M9s KeUHVjWC7OVRK4MxErd8G5Ga9858G9x2E9nN4Lv9x+Mo13WO7tNe+JWjBSMMxXcYsdwN F7/MA9YVi7SnRM5OVrU9wn9dzuCCilLngzo9XXpc8k4wLpF9oYP2CsOP7QBaaanh2YJg VF7Q== 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:dkim-signature:arc-authentication-results; bh=de/MYd0aNnOliSEzKv97TSqp0yTv93v4cqgfwxCetRA=; b=eTFi5b84/ChKZZYgZ20ezDKbYDQBwZCCtWtuQmwJhljeKVFi3ReVCBfsj4+EFTNZcE /SqZ1PtEvTEBmoXPDCRthr3pOIheHHZg1vkzpgdwWMzmOl5Bxl0fD2LUL/3C9AAT0wKS 12rQIKMbB3glVftTiF9QtC2f+YSZXwkRqbH1hbPJVDuNpHppgabfpRLej1PoyDWr1mUf jB6cd+fOa1BHKeYciIqp/+AxAcccY7Uf+xO1/yM6VIkyzARko1zpSJWjJPJdIL5b+Bcp n+sqKRHdbNDphvqN564OggYa79kUV57ZzvLzDH7CknZDKEPWM5Mz6rL9kXJaCJNB9/qV kVuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Ns5uExzp; 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=pass (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 c2-v6si187199pfn.212.2018.08.16.13.33.49; Thu, 16 Aug 2018 13:34: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; dkim=pass header.i=@kernel.org header.s=default header.b=Ns5uExzp; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726290AbeHPXbq (ORCPT + 99 others); Thu, 16 Aug 2018 19:31:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:49964 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725903AbeHPXbq (ORCPT ); Thu, 16 Aug 2018 19:31:46 -0400 Received: from localhost (unknown [64.22.249.253]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4596E214C2; Thu, 16 Aug 2018 20:31:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1534451472; bh=24eVCuKRBIrQbJRgg5TWyGAJzKw+vH/lOmeUBq9YNm4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Ns5uExzpfFWECnUMHuGSmZhoBVOE/JM/RFm/dXUsQuNurofwZO6+Xm6Gr6Y4LRQ// 39TROPT7JNC6FMgcoDcExN38p+TutWJ9CtlZy2nGXOip0q4rny8KlxEFbFC83tfVtW CCn4Ns7VXOZJBaRpBmi00oyGrTsP/BeoZy7Ed+js= Date: Thu, 16 Aug 2018 15:31:11 -0500 From: Bjorn Helgaas To: "Derrick, Jonathan" Cc: "willy@infradead.org" , "linux-kernel@vger.kernel.org" , "okaya@kernel.org" , "liudongdong3@huawei.com" , "poza@codeaurora.org" , "linux-pci@vger.kernel.org" , "Busch, Keith" , "linux-doc@vger.kernel.org" Subject: Re: [PATCH 1/2] PCI/DPC: Add 'nodpc' parameter Message-ID: <20180816203111.GB10316@bhelgaas-glaptop.roam.corp.google.com> References: <1534368400-2807-1-git-send-email-jonathan.derrick@intel.com> <20180816154940.GD5762@bombadil.infradead.org> <1534434641.17819.27.camel@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1534434641.17819.27.camel@intel.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 16, 2018 at 03:50:47PM +0000, Derrick, Jonathan wrote: > On Thu, 2018-08-16 at 08:49 -0700, Matthew Wilcox wrote: > > On Wed, Aug 15, 2018 at 03:26:39PM -0600, Jon Derrick wrote: > > > Some users may want to disable downstream port containment (DPC), > > > so > > > give them this option > > > > Is it possible they might only want to disable DPC on a subset of the > > hierarchy rather than globally? > > Absolutely. I was hoping Logan's pci dev_str would land because I have > a few others I want to convert to that api for granular tuning What's the use case here? I acknowledge there are cases where we need them, but I'm not a fan of kernel parameters in general because they're a real hassle for users. Is there something wrong with DPC? Is there some way we can make it smarter so it does the right thing automatically? I'm more OK with a blanket "nodpc" switch intended for debugging. If we add the complexity of subsets of the hierarchy it starts sounding like an administrative thing that makes me more hesitant. Could this be done via a sysfs switch instead? That potentially could work for hot-added things where a kernel parameter doesn't work so well. Please squash the doc patch and the code change so it's easier to keep them together. Bjorn