Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp1593290ybx; Thu, 7 Nov 2019 14:11:20 -0800 (PST) X-Google-Smtp-Source: APXvYqyIiL6GTNY48iuosRuTIW9qxS8rUaOS9t1As0FvNr/anjWHHB54Kg2TtY7rlrsilbaoWKZd X-Received: by 2002:a17:906:70e:: with SMTP id y14mr5466177ejb.70.1573164680524; Thu, 07 Nov 2019 14:11:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573164680; cv=none; d=google.com; s=arc-20160816; b=QMQtRER3t8GnKX5qtioQUKIE2QtDOrEjnsV4896DXbl06RHMThvF+eRQQdtCXaeq9k zNvJtCCBKE5JUlAOr6w5/gw3qvDEU3/Xh7NJvuXf750rXMxElMm4sIsy4bCkD9gU9aDW w0WJcSpK8gQ0OCkYKh6v1ci7uCUYUoz9fIaU4b88vwq5qNhvRQvIVmVXtbI78tB1EfUf 9tZxjafvEbBEgvhzYXRC8CsGndhSSdXlsJ90t6BubyA2CKkt36ASDHyWDqBAXXqdE4gL YweJGF3aNGxUVYSeSVvGByeVFMHx/CudaVvkbM7JdieBi19V8fD5N/m2zWJ4Xw4Bmkqd 80TA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject:reply-to; bh=GNL0i7g9Ohn/xJ84A2pPnRbMaS+PidKdCcrpLOOg6YQ=; b=Z+P4vU3OjCHY//Fv1Rgvr3j4h+mMWjHrrJjgjAuL3nD4TmQWk2/kx+B+c6Q7GGmh1l Is1qZlTALSF5mdwUXchVSAX4C6TApKq57w9b1Et19lHpabz4ZawU9gifJX/Vt2RTPzSp qBi1Nbzg1W25Iul2nJkkS1GxujnCxrUxfb3IVTWAytpkMJ5YkIqkUb+Ud5YrMmbv9+TV 0c97GMEUQCyWeA6hx8UZ5jqKJ9bBhCsqPiChnsugurWZms8cMA+ZeYmyZnw+7aEfjGGv K7CclODomBhGNb0jAzeoWu7k4hxH8YiMTt/Wi9UFBncgIRHhazJZ9DAIZjP1ib/yJBk2 cKJw== 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 b3si2730611edn.202.2019.11.07.14.10.56; Thu, 07 Nov 2019 14:11:20 -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; 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 S1727102AbfKGWHm (ORCPT + 99 others); Thu, 7 Nov 2019 17:07:42 -0500 Received: from mga09.intel.com ([134.134.136.24]:26151 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725946AbfKGWHm (ORCPT ); Thu, 7 Nov 2019 17:07:42 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Nov 2019 14:07:41 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,279,1569308400"; d="scan'208";a="192966898" Received: from linux.intel.com ([10.54.29.200]) by orsmga007.jf.intel.com with ESMTP; 07 Nov 2019 14:07:41 -0800 Received: from [10.54.74.33] (skuppusw-desk.jf.intel.com [10.54.74.33]) by linux.intel.com (Postfix) with ESMTP id A117E580108; Thu, 7 Nov 2019 14:07:41 -0800 (PST) Reply-To: sathyanarayanan.kuppuswamy@linux.intel.com Subject: Re: [PATCH] PCI/DPC: Add pcie_ports=dpc-native parameter to bring back old behavior To: Olof Johansson Cc: Bjorn Helgaas , Keith Busch , linux-pci@vger.kernel.org, Linux Kernel Mailing List References: <20191025202004.GA147688@google.com> <1ade6a9f-9532-c400-9bb0-4e68ed5752ce@linux.intel.com> From: Kuppuswamy Sathyanarayanan Organization: Intel Message-ID: <43b431b6-f544-f9f0-d6f3-f383d7b882b9@linux.intel.com> Date: Thu, 7 Nov 2019 14:05:26 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > > -Olof > -- Sathyanarayanan Kuppuswamy Linux kernel developer