Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 37AE22F85E6 for ; Thu, 17 Jul 2025 17:28:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752773320; cv=none; b=FIub5kb9ezJ+HO+FAs1d/6j1zpSyArKdcIdVaxuFS3d1cGhcKPJVNLgd+Y9lKv4Qy7UN18OKWyoJcdKT1L29GDPi9WEtbCU5xd55aRrpUbBk22XP3b9wIBuB5UHMT/YSTy4TdL+GJv2dsfvifR0dq/1DMahNwYb8my6sXXZcnUc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752773320; c=relaxed/simple; bh=4EOkobpRITMq5E8idbnypVkSptSvruAesG3OYvpoWuc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ixYj/MdIQtLewG2YXag1R7EYxMjka9HKW5naVstCeRhe/ud3FIB2SmmbW9hJMYBSKJD6cdhElZc52qapfdRMkBFAfOoq2r06JZ7Gl6wVq/vpOcbSMA+Ia5y7XMgY2jrtgFyOVRIEEGqxLu/0diJSeG2qXbsuMQnbvmrLGYS0GTk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=purestorage.com; spf=fail smtp.mailfrom=purestorage.com; dkim=pass (2048-bit key) header.d=purestorage.com header.i=@purestorage.com header.b=CG0vGo0f; arc=none smtp.client-ip=209.85.214.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=purestorage.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=purestorage.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=purestorage.com header.i=@purestorage.com header.b="CG0vGo0f" Received: by mail-pl1-f171.google.com with SMTP id d9443c01a7336-234f17910d8so11620635ad.3 for ; Thu, 17 Jul 2025 10:28:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=purestorage.com; s=google2022; t=1752773318; x=1753378118; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ZgUOlqVpVCyyNVLrLuQ7YlmlOUd68fji2oikKoPCcE8=; b=CG0vGo0fi/s1DJfuTGkrx96GaHsXoKtvaP9eplBZ37JAHDpaXFs96pKsQe38GMWMrh gFOnDWSBiYh14dTdHXDmXOsFzF0rlK66ub1C39quafulc1VCeSzsMJ8cc/HS0lnNjy0g pIYW29ida0e85TWUe8D+ePM8WQ/GDfeYHfQJhcSmlvHD3cDmAW48kcTcKmw65q7dxsUT LNksY+W1Af0C//HeYz2MCz7/s1hZtcMr217DR4y1z/xd3GS1m3Xrl+CImk0HeT7b2SSf 9+cGnHdseAjLBxqqHEr46UhDpRrFXRPANHSCpsDUwi7634UO2s4W2NXr5s+7C78w1fJJ 1XKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1752773318; x=1753378118; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ZgUOlqVpVCyyNVLrLuQ7YlmlOUd68fji2oikKoPCcE8=; b=fMDbyBbaE/vF4Z6gJhqUUTCHxZCre1Iwnw06de4SicKWF2N78f+RMXMqE3yV/pmAqG Qz1EgB3IC2wPnjlbW0eoWQtjwyp7eWnqvnQK2sdWjHz0nv/w0wttDtgM0zAIWaOa3QM4 r3MqnRUb4mjjnDltbWy6d54jPMnS6530p/QQ1LsCCInPhe+PU2zX9C3qiGVvDYDPpWUI DNnBfKSyB3ymgyY3/aJCREou7/NX0qI896XsszGiQBzRKA2hsr34FpL2dE0/ze8f2lgj klx3XMdGWgdY5U+f/dl5M2SLVMp7kP2rvykdmPXtZ7RTPtU53SNapnXbxSff/5udXAby KvQQ== X-Forwarded-Encrypted: i=1; AJvYcCUxH5T4qAqTfYgVhNoDwf/j37ZHZZt83ZvkmZ9ervraD3EYGSp4LuDtVTo9zGMyVdtH2G+yxaVZjrpX@vger.kernel.org X-Gm-Message-State: AOJu0Yw+6AEidU54cjQJthO7pCQyayvc8MtOFOI5Ckueqmpl1usYAMmB W4Z3b66WHS56I9xwJrdIEvVOPmAjxlZ1Ny9gwqJbHRMG+2xnETulVbmMhdSjajuokJ3Fnz5nqfQ 9zKowx4M= X-Gm-Gg: ASbGncuW9oucLanxZvtIi+0yRhirV0CCt6nIBjG9utrKX0FsHtLk+74AIQmo6T78EW+ 2gJT6v5UcnUHUect7R+QGu1274LYo1l49ULk+OIZKhRNI4c4vpUhbtmOI9A7wFDE1ggTp8kdfQ1 3XOTDrYpywHEgWV5SUat7KKOhlSe7LVTwxgGRl8w0g/gLyzlblzFL6ezAmb3KsOgNZNarCf1yb/ Yl5i8UfYWyTGZxPq2YNlFYkBnGfDiE6ZqvdVco1wpkecdyNtK6rQvJl1hGCiaf1Ri/eDhRMHfi2 41TeMUhjhR1ibeWT3m4IRxKBxCGVhZ4NjoBq8fUmuNqu8l5FGSGo2u2iE1FqD3pauKXfAD5emXV wdaA9vmnrm+T25Xn3lhXTOA+O/3fAz9XUdizFwqORqFXmL6J0 X-Google-Smtp-Source: AGHT+IFsoPVg+KCCnbbA9877FnDOzPGFWoBo9O/Rllt662QL++SQsFnNxRTXWND0UgclMrTHYMzy7g== X-Received: by 2002:a17:903:1b05:b0:237:d734:5642 with SMTP id d9443c01a7336-23e24f524d8mr105905765ad.41.1752773318500; Thu, 17 Jul 2025 10:28:38 -0700 (PDT) Received: from dev-mattc2.dev.purestorage.com ([208.88.159.129]) by smtp.googlemail.com with ESMTPSA id d9443c01a7336-23de4323e2asm144345575ad.110.2025.07.17.10.28.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Jul 2025 10:28:38 -0700 (PDT) From: Matthew W Carlis To: xueshuai@linux.alibaba.com Cc: anil.s.keshavamurthy@intel.com, bhelgaas@google.com, bp@alien8.de, davem@davemloft.net, helgaas@kernel.org, linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-trace-kernel@vger.kernel.org, lukas@wunner.de, mark.rutland@arm.com, mathieu.desnoyers@efficios.com, mhiramat@kernel.org, naveen@kernel.org, oleg@redhat.com, peterz@infradead.org, rostedt@goodmis.org, tianruidong@linux.alibaba.com, tony.luck@intel.com Subject: Re: [PATCH v8] PCI: hotplug: Add a generic RAS tracepoint for hotplug event Date: Thu, 17 Jul 2025 11:28:26 -0600 Message-ID: <20250717172826.22120-1-mattc@purestorage.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20250512013839.45960-1-xueshuai@linux.alibaba.com> References: <20250512013839.45960-1-xueshuai@linux.alibaba.com> Precedence: bulk X-Mailing-List: linux-edac@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit A bit late to the discussion here.. Looks like "too late" in fact, but I wanted to just make some comments. On Tue, 12 May 2025, Shuai Xue wrote: > Hotplug events are critical indicators for analyzing hardware health, In terms of a "hot plug" event I'm not actually sure what that means. I mean to say that the spec has some room for different implementations. I think sometimes that means a presence detect state change event, but a system is not required to implement a presence pin (at least not for the Slot Status presence). Some vendors support an "inband" presence which is when the LTSSM essentially asserts presence if the link is active and deasserts it when the link is down. Appendix I in the newer PCIe specs say to use data link layer state change event if presence is not implemented. It looks like this tracepoint would still work, but its just something to keep in mind. At the risk of including too much information I could see it also being useful to put the device/vendor IDs of the DSP and the EP into the trace event for link up. Perhaps even the link speed/width cap for DSP/EP. The real challenge with tracking a fleet is getting all the things you care about into one place. On Tue, 20 May 2025, Lukas Wunner wrote: > Link speed changes and device plug/unplug events are orthogonal I guess what I wanted to get at here were some of the discussion from Lukas & Ilpo. I think it makes sense to separate presence events from link events, but I think it would make sense to have a "link tracepoint" which reports previous and new speed. One of those speeds being DOWN/DISABLED etc. Width could be in there as well. I have seen many times now an engineer become confused about checking speed because "Current Link Speed" & "Negotiated Link Width" are "undefined" when "Data Link Layer Active" bit is unset. Ideally a solution here would be immediately clear to the user. When it comes to tracking things across a "fleet" having the slot number of the device is extremely useful. We have an internal specification for our slot number assignments that allows us to track meaning across different generations of hardware or different architectures. The BDF is often changing between generations, but the meaning of the slot is not. Cheers! - Matt