From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=162.62.57.210 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795144951; b=XSgdx08X2tDjJ85M+hdmpwuPgJd+i0wJeXolB33a83CFCnHjFN2udbu4zizsODAD7Cbr QcyGPvziB+jSS+AF97kAvbPaTzAj5oLWuqUBa7ZpnEjeWzBsjlB1dv8GXsVUkwEDqDf2W i59JPcIVw7D5c5q5gYtxihaX+j97wR6RW9sfg8ntUiljNOIq7VrKPeUw2P6cRy1CpG2GO 0Q6T/Ddw2xMgki2cw055TAL/bCDJsigzwzKGH1iek+f3JydIddm16VX8gQCQOq4X47OWW pnCFJV/m3VhP4bhbiHEeJ8sfRmnfn4quvCfHmQnocG/FL3Gbtzd6/Qm2WPRky90evHg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795144951; h=DMARC-Filter:DKIM-Signature:Received:X-QQ-mid:Message-ID: X-QQ-XMAILINFO:X-QQ-XMRINFO:From:To:Cc:Subject:Date:X-OQ-MSGID: X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding; bh=Lj800CrS6xgIALrmGK5YjkIsRh+/Mj8maNuJko9hCY8=; b=iDZ6T1e1lpRRmRIVfqCdjPTOkalwTSGGcEL7Noz2PbJhYI9zeJvma6fSgRnOsLmHxcTo RE3HY9mqDt7rtMOBnh4TlDq6hDfDMKlVYf2/oYPaVjjihB4eZ/KmlY2f778JxCpfBCKLZ z4kLmhr/Xk08m2/YuZTLQdLbO/D1XJI1WTCmWlfQ4FqcEiQ8Io/8oaewBld9AsP1txOBu tpNclF+r4kdy/bXN0r1ll8ALJ7R4E92nvduLetn6+P5WFfnusJT1qcSHIfdD3BdK/st+B H5gwq2gXYkbP5vddYzNfiO9GCNnsbyaF4tQEE0GHkD8QH0Yt9JautYn08KY3CUrynEg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=foxmail.com; spf=pass smtp.mailfrom=foxmail.com; dkim=pass header.d=foxmail.com header.i=@foxmail.com header.a=rsa-sha256 header.s=s201512 header.b=OUniGQQ4; arc=none smtp.remote-ip=162.62.57.210 Received: from out162-62-57-210.mail.qq.com (out162-62-57-210.mail.qq.com [162.62.57.210]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 309C7606A332; Fri, 20 Nov 2026 03:22:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 309C7606A332 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=foxmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=foxmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=foxmail.com header.i=@foxmail.com header.a=rsa-sha256 header.s=s201512 header.b=OUniGQQ4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1795144935; bh=Lj800CrS6xgIALrmGK5YjkIsRh+/Mj8maNuJko9hCY8=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=OUniGQQ4hDbLAPaoHV85YFCxkU9wzohfSo1e860pREMTlMWzDB+CgtNdA+D8xRKDa r4adRxpGhDnkwMJ6Q+BESI7LcODNO3hEIUxUanzROj1X8WGBhIISVI6mdDCKl4jqxa tExLkT1onepEMx8MYUYC7IVOdeMhxkAK0DsOhOsU= Received: from localhost.localdomain ([107.173.101.132]) by newxmesmtplogicsvrszc56-0.qq.com (NewEsmtp) with SMTP id 58AB2488; Fri, 20 Nov 2026 11:22:10 +0800 X-QQ-mid: xmsmtpt1795144930t5ryoowne Message-ID: X-QQ-XMAILINFO: N84LmEYa7WqonnJNjkkgz9yKuNHP3ZR0Rw2GoawiKUaAw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)" To: lukas@wunner.de Cc: helgaas@kernel.org, bhelgaas@google.com, sathyanarayanan.kuppuswamy@linux.intel.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH v2] PCI/DPC: Increase recovery timeout to 60 seconds Date: Fri, 20 Nov 2026 11:22:09 +0800 X-OQ-MSGID: <20261120032209.2061155-1-ziyou.dev@foxmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi Lukas, The ACS Violation in that log is not organic, it is injected on purpose. The platform is AMD and we use AMD's RAS Error Injection Test tool to inject an "ACS fatal" error at the Root Port. The test steps are: 1. Shorten the machine check polling interval: echo 1 > /sys/devices/system/machinecheck/machinecheck0/check_interval 2. List the PCIe slot info to find the socket/die/NBIO, PCIe core and port that the NVMe drive is attached to: ./cmdline_amdraserrorinjectiontest --listpcieslotinfo 3. Start I/O traffic on the NVMe drive: dd if=/dev/nvmeXnY of=/dev/null bs=64k status=progress conv=noerror,sync 4. Inject the ACS fatal error at that Root Port: ./cmdline_amdraserrorinjectiontest --pcieerror \ --sockdienbio --errortype 4 \ --pciecore --pcieport --enablestatusregisterpolling 1 This raises ACSViol in the Root Port's AER Uncorrectable Error Status. The BIOS has AER and ACS enabled and AER reporting is set to firmware first, so firmware signals the EDR event and DPC containment follows. The TLP you decoded is a regular in-flight DMA write from the NVMe drive that happened to be captured in the AER Header Log (there was read traffic on the drive at injection time). Its Requester ID is valid and Source Validation is enabled, so nothing in it violates any ACS rule. The ACSViol comes from the injector, not from real ACS logic. The ACS settings on the Root Port (same platform, 1022:1108): ACSCap: SrcValid+ TransBlk+ ReqRedir+ CmpltRedir+ UpstreamFwd+ EgressCtrl- DirectTrans+ ACSCtl: SrcValid+ TransBlk- ReqRedir+ CmpltRedir+ UpstreamFwd+ EgressCtrl- DirectTrans- The goal of the test was to produce a DPC containment event on an NVMe device that needs about 4 seconds to become config-ready again, in order to exercise the recovery path. Thanks, Ziyou