Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp1702738ybx; Thu, 7 Nov 2019 16:01:16 -0800 (PST) X-Google-Smtp-Source: APXvYqypQmZArYJFbHJTR/Bhx6cFNWLaLLeLvBKbUN200agexVpkO+fvpcmlh+YJUv6uSpIyoPkA X-Received: by 2002:a50:c191:: with SMTP id m17mr6962209edf.259.1573171276076; Thu, 07 Nov 2019 16:01:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573171276; cv=none; d=google.com; s=arc-20160816; b=sU3G9IYzfvJyjQwPQSID25g7TeWuPfYhi38rBa1nn+dw36+5lDGyI3w9Ji4YjBwvZY HesibRMyc8INoFQuwA+eY0XD9SCUFNoZV3kLQAG+9NKUf7IO02dIyjPiDxcvlquYu+qq thcYDrWsbr02lGBcWbGQstcurhylQO+WRjyDcHD2le3APfh8B3PsuT/jLVojE2XM/GAf 55TBmd51ZXqIwS7vWTeCFpG3la3brPD+uNunRYWjkmn/Nf6jjXhBCpFPA+vqquKZ1Aj3 mPLfmB+Ug3KtWWKFsH8mzejwhF3TC6tugYUMNVIhlcRnNUsxDP3ISiTfAdlKuox2AklW Mutg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=8Wl8N9CZlB2xlpKHMXK6nBkiP4gpcI53AmfhmdY7Ye0=; b=pNhpIIEd80dmO7QeGtp+vwpzORdE6g8hhyqvCr/Gbay1jkw6pvtIIbExnb1ike4uza 1TQ7wAe8Rd4XZ84V83aVaYsi7d7KVdXyntK2pDKlYjyJ/Ivr7lyOi7i43EbqE6/ybLVk vsrjfhEh6CZqMoAba6d56TwqjnfItyOL0BfBSDQ5TBj2YktnEUKUBB/iNDlRaAZkj3eq ryeyJA0FA3lKjdvmqyL8hlmq6dDs/5q4C1PTPk/XTf02kf2I/Ie7+JFyRhYGE3wXnZlu PSDuDKFlmYX8UI1+vYMrc40vFK21qHGWmI71MlS8IRw8j0eTjRr4/KpZNmc6d51NhYpp Y/Ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b=qJ6+3nX2; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f36si2793375ede.159.2019.11.07.16.00.52; Thu, 07 Nov 2019 16:01:16 -0800 (PST) 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=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b=qJ6+3nX2; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727952AbfKGX74 (ORCPT + 99 others); Thu, 7 Nov 2019 18:59:56 -0500 Received: from mail-io1-f67.google.com ([209.85.166.67]:36168 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725906AbfKGX74 (ORCPT ); Thu, 7 Nov 2019 18:59:56 -0500 Received: by mail-io1-f67.google.com with SMTP id s3so4361153ioe.3 for ; Thu, 07 Nov 2019 15:59:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lixom-net.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=8Wl8N9CZlB2xlpKHMXK6nBkiP4gpcI53AmfhmdY7Ye0=; b=qJ6+3nX2A0cxXp5ywWmFmELron2FyoN3FDc1ffUYMSP1vQyxNNpAwPSnIE5uLNzHPq yyTkSrkV4O5kQntMue3g7+nconlzJcFJaaHJJvfJhYiZk1qUc6eQ7eSGlcWwJjDZxSRI 7S/mzRsyDqgZuUtoTd4Nl/Yt1BDw/i2DmXmPOTsRh50NUe/3/3QtgZHdZFheYVUikA7M N+9OqwsvL5vJn14W36FB7KmRrDoQ5hyXXvKRhWwjTE1IpQ+HN47iJQHz64V389iY1Cde pazLb/um+PtgdVcge3dhBcECyUDnNWvzK6hGd+wFsEi3EaLHfwIrCnq7ZBaYeiJrTqA1 C3tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=8Wl8N9CZlB2xlpKHMXK6nBkiP4gpcI53AmfhmdY7Ye0=; b=WsEDs9eW9AW3D3abYqmYq0EgR4uCPj1cu6eY6H0ZVfS/kri7e2NwEscnQkiP/eIDJi 7/RmZ42NdhAZyklHZSZFiyycESOGymUVW8oq1C3tYWUHqw9t7bNEnB0badKUIgOzNbbV VY88R5xkw8QLCU4En8joJeJjC5TtXZN4knH5tWnFmJjDUg/S5ysSIi3Cq4tXyKpDisG+ FnnafvFvUukHHlWu0X3yc4W7uIhj1kEFRCaL346cB/RI7oc7nPT0hjgS8MxTw5l+QP5c EwPzxRpHJT3OWB6LV7yANBSXAm+V8HVBIUqBP8/8KFLGASDbYLdXC6JzzRnvm1sYXdZS uLmA== X-Gm-Message-State: APjAAAUK/J9C4zu2S+btfC4D3vltf4JFZmylMiQFNsl1rlL5HVhRJtxJ uZ+mzZmOHx+xcjdlglfoNtTyBGf7jBZJLm8zC4yOyX+DNMKiDg== X-Received: by 2002:a5e:8202:: with SMTP id l2mr6723828iom.207.1573171195298; Thu, 07 Nov 2019 15:59:55 -0800 (PST) MIME-Version: 1.0 References: <20191025202004.GA147688@google.com> <1ade6a9f-9532-c400-9bb0-4e68ed5752ce@linux.intel.com> <43b431b6-f544-f9f0-d6f3-f383d7b882b9@linux.intel.com> In-Reply-To: <43b431b6-f544-f9f0-d6f3-f383d7b882b9@linux.intel.com> From: Olof Johansson Date: Thu, 7 Nov 2019 15:59:43 -0800 Message-ID: Subject: Re: [PATCH] PCI/DPC: Add pcie_ports=dpc-native parameter to bring back old behavior To: sathyanarayanan.kuppuswamy@linux.intel.com Cc: Bjorn Helgaas , Keith Busch , linux-pci@vger.kernel.org, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 7, 2019 at 2:07 PM Kuppuswamy Sathyanarayanan wrote: > > > On 11/7/19 12:09 PM, Olof Johansson wrote: > > On Thu, Nov 7, 2019 at 12:02 PM Kuppuswamy Sathyanarayanan > > wrote: > >> Hi, > >> > >> On 10/25/19 1:20 PM, Bjorn Helgaas wrote: > >>> On Wed, Oct 23, 2019 at 12:22:05PM -0700, Olof Johansson wrote: > >>>> In commit eed85ff4c0da7 ("PCI/DPC: Enable DPC only if AER is available"), > >>>> the behavior was changed such that native (kernel) handling of DPC > >>>> got tied to whether the kernel also handled AER. While this is what > >>>> the standard recommends, there are BIOSes out there that lack the DPC > >>>> handling since it was never required in the past. > >>> Some systems do not grant OS control of AER via _OSC. I guess the > >>> problem is that on those systems, the OS DPC driver used to work, but > >>> after eed85ff4c0da7, it does not. Right? > >> I need some clarification on this issue. Do you mean in these systems, > >> firmware expects OS to handle DPC and AER, but it does not let OS know > >> about it via _OSC ? > > The OS and BIOS both assumed behavior as before eed85ff4c0da7 -- AER > > handled by firmware but DPC handled by kernel. > > > > I.e. a classic case of "Sure, the spec says this, but in reality > > implementations relied on actual behavior", and someone had a > > regression and need a way to restore previous behavior. > > Got it. I don't know whether its good to add hacks to support products > that does not follow spec. > But, do you think it would be useful to add some kind of warning message > when this option is > enabled ? May be it could be useful in debugging. It's not a "hack", it is fixing a regression in behavior because of changed assumptions by the kernel. We're pretty clear as a kernel community: We don't regress our users. So, in cases like these, we need to make sure we allow people to use their hardware the same way they used it with an older kernel. A printk() to indicate that this mode is enabled could be useful, if nothing else to make sure that the pre-eed85ff4c0da7 behavior is enabled without having to grep /proc/cmdline. -Olof