From patchwork Fri Jan 24 10:10:37 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krishna Chaitanya Chundru X-Patchwork-Id: 13949219 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 75F1621ADA3 for ; Fri, 24 Jan 2025 10:10:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737713456; cv=none; b=KaBmv0W1y7ePHpOvIt4iHTv6IjIszKdt8ebtrnLpu96vkNcE59rXgQJasRnR5+cB8h17IAXjLo926lh+MVshGnSuLCImPAa1WAI1yRCXchxMyauIwVPzlFe4y0i2NpPYAeNHiBpF8+mbe8L+FtoiYCp4t0y2HpBVydMFYX9mdjQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737713456; c=relaxed/simple; bh=Fk5tEvSGj966u5MNAJ6KeljaVlxKuCrisn/aqCxdhBw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=GY5AluznhOH+J274c3DtGxV7ppGwEU7EaVD83ttEYT3cdjU1zcDsgDB80iUdvybpZd0dQ/ee71d9Tz+U6O3RCbi4UnioKsuxuL+m/HGDUeuO0XugDF3bGzkORBBAZAh2G9vYFaYJFID38BqypodPetdEPmcwbCYvsm2ZWoTLt9g= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=FVlqwrG8; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="FVlqwrG8" Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 50OA5V3R010861 for ; Fri, 24 Jan 2025 10:10:54 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=uBFsWeSYOmq gaCuFxuf/xhhEESZ518ip0a8YRr+64yE=; b=FVlqwrG8kWkeOwjHm9xKD+PcQG9 fw4csyL8n+BKPWeO3L9hkJxkGu1Id58THTwtWf7wt9eZvvRiDQt7Suq/HumcQXOE ULoVPw7DXNnxI7kT6jyb0IniKSdh3qp9NZvpu1ER/dM5uxYIqXjCqD1koLulzQIm gHLv+Fde3fjDbB1yHgTpqjCFrzMICjavnPUwCdIMdvTaZPNMeOcQ9ChVIJ3oZDbR CYxRfirfpo8I8YMKEntEXOYmgyn2ndtHboJetU0QgkdAcxW73NlxaAYjwcIKxzdN v7SRa0kcHeLTgZQaIg49ciozSc7OgGIBxzjm6hXhUkxfk26aEy9LfznZexg== Received: from mail-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 44c8ta80h7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Fri, 24 Jan 2025 10:10:54 +0000 (GMT) Received: by mail-pl1-f199.google.com with SMTP id d9443c01a7336-21640607349so47596035ad.0 for ; Fri, 24 Jan 2025 02:10:54 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737713454; x=1738318254; 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=uBFsWeSYOmqgaCuFxuf/xhhEESZ518ip0a8YRr+64yE=; b=Rq/ReMu8KuWgSnBkRQQU2JP0EsWC1a3/kB/lw/0U5bOD/z9Ioqj4eRXWcKaAwQYBgt QgBXHwEEKutvJA+z8TC3rw/p0Z7Nzo9WIgvWcrgNLSl87VYvlEQk5oql3D9AMwcZNFDe VH8hE8ENTp63HM3AyT+i/o5FMogw609VNvtRAJaShzsh/9bhMQ526xSgz7ys08a4sk1L LvBF5Hx+Jor3ILnSLxI4lWVHxRpLXy1hpw2w63uTR6z8YmBSEdHKIj8JV/OnGdXIiGsk bxKzodLKE3rpo+nYLSmWCOysPVKtGgJKXSTEPZ3JjNJZTXsaeRjgt5HPD6J1EI9lJCLM mLLQ== X-Gm-Message-State: AOJu0Yz69aqiATtDMybkizZq4BpIXtAYMGyp4yot12vkIcCXBWSGMcqy 1BOeykgCPnmCgqVeKtkHrPmvzmrDIIV4otHgrmdPbHXRkYrNEmCAhkNRh1sHUyfeIZO6XpPfgrp SC9Td/W8eat+YwfPixkp/GUI9b4wQJPD//E7zPV3YjU3XOkhBRk9GXAE4GRMeavBwH8xMrL0K X-Gm-Gg: ASbGncvFxEAfSsHpC0Ms3PB4EaYtkuMDT4f3UYhcvMwKvlNcnAjIR5z4em8UmYRul6I a3ZEwWMQFNM0GsvMWF41D5kgXZTKQ/c9OFhb0Glm1/Fb5RdpHx1Oyx4uOcJXm9DC6ErubcDqznO 5TQug505nKPIMFsTo26ctJGHMsSdiHW1oHSTca/mPxgUVSNA9bwS6bUJnDa026QGlQk39GDG/qt TRmhlVVZ7p2hNC+gl47xdOsZF+QYb4r9eNtodiy7li24K1agMe8A6YgcUCOy42i1rUzQztw/0P9 RnQvX40Uf1nn1EBmhOASMp/lckuxOQ== X-Received: by 2002:a17:902:da82:b0:215:f1c2:fcc4 with SMTP id d9443c01a7336-21c3560f672mr436882835ad.41.1737713453668; Fri, 24 Jan 2025 02:10:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IE/nEpZtyW54k6KlPky+UJchioawmSuyEs/SdUstEm5FKB1Ac0u4oF2S05Nb02C99nATcAMAQ== X-Received: by 2002:a17:902:da82:b0:215:f1c2:fcc4 with SMTP id d9443c01a7336-21c3560f672mr436882485ad.41.1737713453326; Fri, 24 Jan 2025 02:10:53 -0800 (PST) Received: from hu-krichai-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-21da4141dacsm12773825ad.133.2025.01.24.02.10.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jan 2025 02:10:53 -0800 (PST) From: Krishna Chaitanya Chundru To: andersson@kernel.org, robh@kernel.org, dmitry.baryshkov@linaro.org, manivannan.sadhasivam@linaro.org, krzk@kernel.org, helgaas@kernel.org Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, lpieralisi@kernel.org, kw@linux.com, conor+dt@kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree-spec@vger.kernel.org, quic_vbadigan@quicinc.com, Krishna Chaitanya Chundru Subject: [PATCH V2 1/2] schemas: pci: bridge: Document PCI L0s & L1 entry delay Date: Fri, 24 Jan 2025 15:40:37 +0530 Message-Id: <20250124101038.3871768-2-krishna.chundru@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250124101038.3871768-1-krishna.chundru@oss.qualcomm.com> References: <20250124101038.3871768-1-krishna.chundru@oss.qualcomm.com> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Proofpoint-GUID: ctnPVftj4GgMAx4J6P6Oht2odavRnR1O X-Proofpoint-ORIG-GUID: ctnPVftj4GgMAx4J6P6Oht2odavRnR1O X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-01-24_04,2025-01-23_01,2024-11-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 clxscore=1015 lowpriorityscore=0 phishscore=0 mlxscore=0 priorityscore=1501 malwarescore=0 adultscore=0 mlxlogscore=999 bulkscore=0 spamscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2411120000 definitions=main-2501240073 Some controllers and endpoints provide provision to program the entry delays of L0s & L1 which will allow the link to enter L0s & L1 more aggressively to save power. These values needs to be programmed before link training. Signed-off-by: Krishna Chaitanya Chundru --- dtschema/schemas/pci/pci-bus-common.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dtschema/schemas/pci/pci-bus-common.yaml b/dtschema/schemas/pci/pci-bus-common.yaml index 94b648f..a9309af 100644 --- a/dtschema/schemas/pci/pci-bus-common.yaml +++ b/dtschema/schemas/pci/pci-bus-common.yaml @@ -150,6 +150,12 @@ properties: description: Disables ASPM L0s capability type: boolean + aspm-l0s-entry-delay-ns: + description: ASPM L0s entry delay + + aspm-l1-entry-delay-ns: + description: ASPM L1 entry delay + vpcie12v-supply: description: 12v regulator phandle for the slot From patchwork Fri Jan 24 10:10:38 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krishna Chaitanya Chundru X-Patchwork-Id: 13949221 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 46867219A9D for ; Fri, 24 Jan 2025 10:10:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737713461; cv=none; b=WM2JGZyAtaLQI0BExDZrwxOuQWNBa28ATDYDriTbuZ7qH+ZcA7aEnbb2BmopgQZehOGtgQl8wohCd/o67SliwxxuI5swNzvlpdC0HMYclbHYO8OSFLUT7NYRoS2kXwoNlJKP8rxjX9cOia6qjpjjw/C+jpJBbKFRRRxDK1ub4Xw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737713461; c=relaxed/simple; bh=N2lF14aGwlo/azpWF8BRBrEW5+wH2aHyY+T2Zoz8R8E=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Ln/iVNyDMQjHcImk/0TK88wO68/vtUoU6FvJBCfHoKKxxMprOqsrWOt1XUYiTtAInjtJnnpRnHyVlHP95+omCwc1RZNTF7A/VyKzLRavACy5zQKQBD9UuMgkdilTbCC/J7/0Zb5bDQKGp57HHGNcJvlFyVMi4fHYUleLYScd5jk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=Q3hQPxrO; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="Q3hQPxrO" Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 50O6AaoF005640 for ; Fri, 24 Jan 2025 10:10:59 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=QTuzQaNN61y 5MqpLSwcmOsw3cjnsMlfMXyB5by59pS4=; b=Q3hQPxrOOGpKzb5YmLU2pPiHj43 rU9xFVN5EZaUW3EO4scLVnyRapoTSdivZhDxZ77e9D5sVxtmQNufOO6rQh7rwWaH 8kBKRWlc7T/CxtZoOATBbi+3hXK/nEUknCZ91PXHHL/I/wZoDP1cZKPDyNBQHncO ph1K2SGB5y6zQooMj14HeOFVRFM1AXoq7/dBWWOxlfjSEpBuEi82WQr2nrahZ+ao coQI8rqFEfgBNJ83DqJhRcF3O5z7Uu+tXEs3MEgYDx8lctLUa5Gct0txizabrsnq xGQfTwFcC/cpWzyo3RhSOy8Y7IBGHCKS+ivxkNZvg5khSpLBHWDAQQI9glA== Received: from mail-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 44c5c50kd7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Fri, 24 Jan 2025 10:10:59 +0000 (GMT) Received: by mail-pl1-f199.google.com with SMTP id d9443c01a7336-21631cbf87dso40081745ad.3 for ; Fri, 24 Jan 2025 02:10:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737713458; x=1738318258; 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=QTuzQaNN61y5MqpLSwcmOsw3cjnsMlfMXyB5by59pS4=; b=eRDVosv4aOrGsmR5+OBb/wjBWItFx1zgV2NF6uja1735blZTGV4osVVQJeYAsKyHbY D4mlj7rcAGJCYViEoVTSSPnAe9nY2UT9WIpb359KtTmhB4kjVPrIUTZeZutLQoIwYpwE qfBZ7Ho+fFn+/CMB2TIbWQ0CJm4MBR85xiTn12NVsrBJuER21dsTc1yAHewnRNjo3bw8 K09vFJru+CaclYiQ56Yd57W1ANOBivRBoumn/BU37WubEE4Fgj6fdLqN7eCqfpqcu6o/ yC5dydqJzgqWDNyEqL20aknIU1rqLFT1tRTwRz1QBbYBg5BHh2FkC5rN5VTwnzWoAoKb WQsQ== X-Gm-Message-State: AOJu0Yxb7vlIxksf1E8pXvgsesUZoRx78xKIokaaBa4ZuhntnoaQcXOd eB4IDDeHTiDe0MSVjIZQhMya9Gc0qp2J92IqTIFB8x0aGxKDQ+EIuUuBz/nnwiES52qrASbODZt Eg2dsh7HZ4MehLp19n1fyAiWmw61iEggHax+RX/WTuGKkTCk+/Ocsey0Kf6JVoH+0 X-Gm-Gg: ASbGnctpCPmu72NIIsXoy288Ku1GajG0TpwKWtAT43LZfgx1rAFa8x0i4LsO6Q4wA57 Gh1Kl899s7x4HZKJMwgDW/TSigknTcWsY3efODw55Xnypdmdy32t+H7GbTLbKSZJe8xlHSmXe3A dn9hneD3wL1EPc2ZALj6v6ytyKQmUvHSVsEccAyY2SOLamq4p5YYJCzIdW6nHtLa7btfc6YLb82 UNGldRTSYsQs4pgV0nWGNy4rwl15w+8tzEuNn8QQALKJ+4m6868BmGxr9c1945rfSKwdG3IpMZA VpqhinfCEKGMb6nvXOTSUhdQQeScrg== X-Received: by 2002:a17:902:cf0e:b0:212:4c82:e3d4 with SMTP id d9443c01a7336-21c356093bcmr449066655ad.46.1737713458442; Fri, 24 Jan 2025 02:10:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IEPdt/tWXnYv0ZJnPog4hmu7Y653tEvtmLqJ8rL0b6LAjLhAX1Bo1hz2SKucKP3+NMNwSY2mg== X-Received: by 2002:a17:902:cf0e:b0:212:4c82:e3d4 with SMTP id d9443c01a7336-21c356093bcmr449066285ad.46.1737713458082; Fri, 24 Jan 2025 02:10:58 -0800 (PST) Received: from hu-krichai-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-21da4141dacsm12773825ad.133.2025.01.24.02.10.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jan 2025 02:10:57 -0800 (PST) From: Krishna Chaitanya Chundru To: andersson@kernel.org, robh@kernel.org, dmitry.baryshkov@linaro.org, manivannan.sadhasivam@linaro.org, krzk@kernel.org, helgaas@kernel.org Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, lpieralisi@kernel.org, kw@linux.com, conor+dt@kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree-spec@vger.kernel.org, quic_vbadigan@quicinc.com, Krishna Chaitanya Chundru Subject: [PATCH V2 2/2] schemas: pci: bridge: Document PCIe N_FTS Date: Fri, 24 Jan 2025 15:40:38 +0530 Message-Id: <20250124101038.3871768-3-krishna.chundru@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250124101038.3871768-1-krishna.chundru@oss.qualcomm.com> References: <20250124101038.3871768-1-krishna.chundru@oss.qualcomm.com> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Proofpoint-GUID: yX1FG192Q2u4Z99scT98MuSuMwTit-9K X-Proofpoint-ORIG-GUID: yX1FG192Q2u4Z99scT98MuSuMwTit-9K X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-01-24_04,2025-01-23_01,2024-11-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 phishscore=0 suspectscore=0 priorityscore=1501 mlxlogscore=999 malwarescore=0 spamscore=0 adultscore=0 bulkscore=0 impostorscore=0 mlxscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2411120000 definitions=main-2501240073 Per PCIe r6.0, sec 4.2.5.1, during Link training, a PCIe component captures the N_FTS value it receives. Per 4.2.5.6, when transitioning the Link from L0s to L0, it must transmit N_FTS Fast Training Sequences to enable the receiver to obtain bit and Symbol lock. Components may have device-specific ways to configure N_FTS values to advertise during Link training. Define an n_fts array with an entry for each supported data rate. Signed-off-by: Krishna Chaitanya Chundru --- dtschema/schemas/pci/pci-bus-common.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dtschema/schemas/pci/pci-bus-common.yaml b/dtschema/schemas/pci/pci-bus-common.yaml index a9309af..968df43 100644 --- a/dtschema/schemas/pci/pci-bus-common.yaml +++ b/dtschema/schemas/pci/pci-bus-common.yaml @@ -128,6 +128,15 @@ properties: $ref: /schemas/types.yaml#/definitions/uint32 enum: [ 1, 2, 4, 8, 16, 32 ] + n-fts: + description: + The number of Fast Training Sequences (N_FTS) required by the + Receiver (this component) when transitioning the Link from L0s + to L0; advertised during initial Link training + $ref: /schemas/types.yaml#/definitions/uint8-array + minItems: 1 + maxItems: 5 + reset-gpios: description: GPIO controlled connection to PERST# signal maxItems: 1