Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp650065pxf; Thu, 18 Mar 2021 08:38:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwS5xVD5TEMJCl+IWnzdfDX4GFaQ+nCCIzq3sMyn8ZiqNzB/s0BA2MCCZ8fJaxi12/Tw8qH X-Received: by 2002:a17:906:71c3:: with SMTP id i3mr29549051ejk.391.1616081916457; Thu, 18 Mar 2021 08:38:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616081916; cv=none; d=google.com; s=arc-20160816; b=BmX8OWY0mDFMIyiW2Bb+6tLaE9dgQhKWlymKNtF0oxVLtguYFcu/guJZQlLVEmLNWX SnF0LULCGWTP/RlhAM8ROq5ay+4256zjhH9zJDd8pQs/ZBFF8zhdwPeZeZjMe13XIYFe 6iAdUeZQMx5JxTNPjio7c2XYqjsX6s6+PctTwlcc2rppVfvWbHnbaybhvRFHAiraz8kT u8Gj05UbfKQpewL6/dmUOhI4pHaFDDcw5G0Pgz7oiIv8h95irLOkqG75G3w1MdbYWIUO AK/BZr/Pg4L5xkz/NaNHKNA6QTS1xkTsY56gmYHJH4bPosEDTHr901Z7kzttUEvuMUI3 pdPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=O1uEfD99RmMCjKmx7kSyXm6tPhYmOIwFb9VMIM/bGUg=; b=uLnMgsieVAPeU0etTxbb1DohOmFWs6tyGjosw+SZO/ivnuU2T3BYnRDTa+AP7fZXIS tuZOBiJNyTKC0hosVUDpV3Kjh4ltT19XRUFL77fDLGR3rYXo8z14yEEgDfYXYn+GdqEB 8cQxJjFR3HcVcSHiKvtTaJBWDv/0I9nkCwcAr9Y+wyciiyuUtI7LRMuCjnphib4nt3Ao QEJy66Z+Q+b9iulg5NaexGwXwu1Fi7aMqJiHdoio6OSFljieHpizs9AAppqV+q5l/6CT se4l67u+z3L7Ic9rezvd9WqMXfvVhkaonUUHgbyfBdy3IEf9jDCQ7+UzVF++x2is2tNr 5Zcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ffqLNJKr; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id de6si1756920ejc.467.2021.03.18.08.38.11; Thu, 18 Mar 2021 08:38:36 -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=@kernel.org header.s=k20201202 header.b=ffqLNJKr; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230416AbhCRPg3 (ORCPT + 99 others); Thu, 18 Mar 2021 11:36:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:52956 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231785AbhCRPf6 (ORCPT ); Thu, 18 Mar 2021 11:35:58 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 397A664EF2; Thu, 18 Mar 2021 15:35:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1616081758; bh=cUyS1KCt86QY6jQM5lfc60E73sd0HWmMcMbuyehISWE=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=ffqLNJKrozOTvGHJYyZmr8YUjPNcKHqC07wDchHX+pD/UfVUmAVVB1MDwO9toHRnD 9xF7/005g01U82NUMjAS6BOmG6FlPCZNpltdA/gXPYpJkXXP5px7o/SQHWs9hMfGSY 9OT8B2V9qCUu3YZGL0b3OTp07HP1LklAzYKODfSna04drclkbMRkkARB3vDHk/o5WQ xVoh0DevZP3fxCUnIUwvysxYBQxim/f3eKydpAVW6I8ywnR6c+06phk/lgiRBWM/ZF 6Vj7h7dCJ2hWbuUrySfzveDFiW+klojit7dp85qUw2OsjR6gy2D6oBdKCz9gEFRRN0 BAD4vC//7x/jw== Subject: Re: [PATCH v2 1/1] PCI: pciehp: Skip DLLSC handling if DPC is triggered To: "Kuppuswamy, Sathyanarayanan" , Lukas Wunner , Sathyanarayanan Kuppuswamy Natarajan Cc: Dan Williams , Bjorn Helgaas , Linux PCI , Linux Kernel Mailing List , "Raj, Ashok" , Keith Busch , knsathya@kernel.org References: <59cb30f5e5ac6d65427ceaadf1012b2ba8dbf66c.1615606143.git.sathyanarayanan.kuppuswamy@linux.intel.com> <20210317041342.GA19198@wunner.de> <20210317053114.GA32370@wunner.de> <20210317190151.GA27146@wunner.de> <0a020128-80e8-76a7-6b94-e165d3c6f778@linux.intel.com> From: Sinan Kaya Message-ID: <1069dc19-35ac-be1a-b02a-3815503cb295@kernel.org> Date: Thu, 18 Mar 2021 11:35:55 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <0a020128-80e8-76a7-6b94-e165d3c6f778@linux.intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/17/2021 4:02 PM, Kuppuswamy, Sathyanarayanan wrote: > My point is, there is no race in OS handlers (pciehp_ist() vs > pcie_do_recovery()) >  However, Sinan wrote in >> 2018 that one of the issues with hotplug versus DPC is that pciehp >> may turn off slot power and thereby foil DPC recovery.  (Power off = >> cold reset, whereas DPC recovery = warm reset.)  This can occur >> as well if DPC is handled by firmware. It has been a while... If I remember correctly, there is no race condition if the platform handles DPC and HP interrupts on the same MSI vector. If HP and DPC interrupts are handled as MSI-x interrupts, these can fire out of order and can cause problems for each one. I hope it helps.