Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp855016imm; Fri, 17 Aug 2018 07:47:32 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxALUOzBEA3f3pDDOWwpXgq4ZRLTWiAMgEVpg2MPQg+sYKI96A0vBTYB44Ih24PloqftYWa X-Received: by 2002:a17:902:102b:: with SMTP id b40-v6mr33884034pla.125.1534517252777; Fri, 17 Aug 2018 07:47:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534517252; cv=none; d=google.com; s=arc-20160816; b=nIYmxK2X969FeIR+WbsHSzKD62klaqG5gTY6Py5RreZ548Nj265vmNjYOeYjaQvCmu kZUHjVAlsYIvggwCYn4/mAA8EyFJ5O7InGnmNpp33ep1bDsw6hEysKob+XlhZ2mFHo1I 3Tfjjva53A5PDHaU7r5Mc7xqV5fDzWKI9ke3r75U8ordsuH3ljCNIrMCqJcw1ZKhx1B5 zs/EvMuQVrd/UjcW9RWd9VoOh1a1N3E0Q8RyQ/KPtjx4YQYN4PCqol5LoY5aX6rtc89C SkdbEMseGslJRlzhmUSmr9i5TKmBZ5vHzR2k5imufeuDK4qyZEs4gU7YGJqmdhI/GWdj pqOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:arc-authentication-results; bh=3gTtTU3PvtD33TwTTkMyzvsspE6c0NSWlUuHcgs35js=; b=suCMthNWBGvbGPGOR11EsCzSCHTVKN4UsRx15dM1Hiwrs2DJBPK0BWYVK2QvMEqjVz A20A4U83th53unes+Wbp9iLYKb9gDa81WqW2oHMlEOJ4DXmsexJaITev47BRDaH37/fv AtUzF+G3PHmGDnp6W/W6T5Q0j4fT1eKhyumYFe77qRnE2lde2waE2oDJgW64ep142yC5 6Q1s0AFep0WcaFhxRE4Jii8NsPiB/wu11OwUMB6g8nG7s7j8h+Ce38YeiKKNN1PvyCQy 8cb+iVdyJ3ry4sJn9ArU8oukp9tri71NA7Hf/GDTI4dXVeOfO24MzFDz2LoN7K+sb8Yz fHPg== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q16-v6si2522519pll.1.2018.08.17.07.47.17; Fri, 17 Aug 2018 07:47:32 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727509AbeHQRtU (ORCPT + 99 others); Fri, 17 Aug 2018 13:49:20 -0400 Received: from mga14.intel.com ([192.55.52.115]:54468 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726377AbeHQRtT (ORCPT ); Fri, 17 Aug 2018 13:49:19 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Aug 2018 07:45:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,251,1531810800"; d="p7s'?scan'208";a="254960348" Received: from orsmsx108.amr.corp.intel.com ([10.22.240.6]) by fmsmga005.fm.intel.com with ESMTP; 17 Aug 2018 07:45:41 -0700 Received: from orsmsx113.amr.corp.intel.com (10.22.240.9) by ORSMSX108.amr.corp.intel.com (10.22.240.6) with Microsoft SMTP Server (TLS) id 14.3.319.2; Fri, 17 Aug 2018 07:45:40 -0700 Received: from orsmsx101.amr.corp.intel.com ([169.254.8.46]) by ORSMSX113.amr.corp.intel.com ([169.254.9.72]) with mapi id 14.03.0319.002; Fri, 17 Aug 2018 07:45:40 -0700 From: "Derrick, Jonathan" To: "helgaas@kernel.org" CC: "linux-kernel@vger.kernel.org" , "okaya@kernel.org" , "willy@infradead.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 Thread-Topic: [PATCH 1/2] PCI/DPC: Add 'nodpc' parameter Thread-Index: AQHUNN8oPZdeP/Rn10aUfkbk3uP46aTC/RYAgAAASYCAAE5egIAABWyAgAEmvICAAAWiAA== Date: Fri, 17 Aug 2018 14:45:40 +0000 Message-ID: <1534517138.13356.6.camel@intel.com> References: <1534368400-2807-1-git-send-email-jonathan.derrick@intel.com> <20180816154940.GD5762@bombadil.infradead.org> <1534434641.17819.27.camel@intel.com> <20180816203111.GB10316@bhelgaas-glaptop.roam.corp.google.com> <1534452635.17819.53.camel@intel.com> <20180817142529.GA128050@bhelgaas-glaptop.roam.corp.google.com> In-Reply-To: <20180817142529.GA128050@bhelgaas-glaptop.roam.corp.google.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: x-originating-ip: [10.255.4.81] Content-Type: multipart/signed; micalg=sha-1; protocol="application/x-pkcs7-signature"; boundary="=-cdWnbaIyYgHNiPkZFWrd" MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-cdWnbaIyYgHNiPkZFWrd Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Bjorn, Thanks for your pov. I'm going a lot of different ways on this one, but it seems like the most reasonable option right now is to drop it until someone actually presents a non-debugging need to disable DPC from sysfs or globally. Best regards, Jon On Fri, 2018-08-17 at 09:25 -0500, Bjorn Helgaas wrote: > On Thu, Aug 16, 2018 at 08:50:42PM +0000, Derrick, Jonathan wrote: > > On Thu, 2018-08-16 at 15:31 -0500, Bjorn Helgaas wrote: > > > 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 > > > > >=20 > > > > > Is it possible they might only want to disable DPC on a > > > > > subset of > > > > > the > > > > > hierarchy rather than globally? > > > >=20 > > > > 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 > > >=20 > > > 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. > > >=20 > > > Is there something wrong with DPC? Is there some way we can make > > > it > > > smarter so it does the right thing automatically? > >=20 > > I've encountered some BIOS or switches (not sure who) who've > > appeared > > to have enabled DPC by default, prior to kernel setup. Some users > > may > > just not want this, but it was primarily intended for debugging > > when I > > conceived it. > >=20 > > There's also the ongoing thread in linux-pci about err handling in > > PPC > > EEH, who may also desire to disable DPC until those issues are > > resolved. >=20 > I haven't caught up on that thread yet. If DPC is incompatible with > PPC EEH, there's always the possibility of a switch in the code to > disable DPC automatically on PPC. >=20 > > It can also be disabled with setpci, but is that any less of a > > hassle? > > Genuine question to understand your point of view. >=20 > Keith already answered here; setpci is primarily for debugging and > shouldn't be recommended as normal practice. >=20 > > > 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.=20 > >=20 > > ... > > To again understand your point of view, is there anything wrong > > with > > administrative things in kernel boot parameters? There will be > > cases > > where we may want to deviate from default or global pci=3D* > > parameters > > for certain hierarchies and they can't necessarily be set after the > > fact (ex, hpmemsize). >=20 > "There will be cases" sounds like we're doing something that *might* > be useful in the future. It's better if we wait until we actually > discover a need for something. >=20 > There's also a tendency among users to trip over a problem, discover > a > boot parameter like "pci=3Dnomsi", and conclude that the problem is > "fixed". In fact, we want the bug report so we can fix the kernel so > no boot parameter is needed. >=20 > I agree there are things that can't be set after boot. Is this one > of > them? This seems like something that could be controlled at run- > time. > But even there, I will ask what the requirement for it is, because we > don't want to clutter sysfs with things only needed for debugging. >=20 > Boot parameters are a hassle because it's hard to build a user > interface on top of them, and they require a reboot to take effect. --=-cdWnbaIyYgHNiPkZFWrd Content-Type: application/x-pkcs7-signature; name="smime.p7s" Content-Disposition: attachment; filename="smime.p7s" Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIKeTCCBOsw ggPToAMCAQICEFLpAsoR6ESdlGU4L6MaMLswDQYJKoZIhvcNAQEFBQAwbzELMAkGA1UEBhMCU0Ux FDASBgNVBAoTC0FkZFRydXN0IEFCMSYwJAYDVQQLEx1BZGRUcnVzdCBFeHRlcm5hbCBUVFAgTmV0 d29yazEiMCAGA1UEAxMZQWRkVHJ1c3QgRXh0ZXJuYWwgQ0EgUm9vdDAeFw0xMzAzMTkwMDAwMDBa Fw0yMDA1MzAxMDQ4MzhaMHkxCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEUMBIGA1UEBxMLU2Fu dGEgQ2xhcmExGjAYBgNVBAoTEUludGVsIENvcnBvcmF0aW9uMSswKQYDVQQDEyJJbnRlbCBFeHRl cm5hbCBCYXNpYyBJc3N1aW5nIENBIDRBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA 4LDMgJ3YSVX6A9sE+jjH3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