Message ID | 20250320055502.274849-2-quic_wenbyao@quicinc.com |
---|---|
State | New |
Headers | show |
Series | arm64: qcom: x1e80100-qcp: Add power supply and sideband signals config for PCIe3 | expand |
On 20/03/2025 06:55, Wenbin Yao wrote: > From: Qiang Yu <quic_qianyu@quicinc.com> > > Enable the pwrctrl driver, which is utilized to manage the power supplies > of the devices connected to the PCI slots. This ensures that the voltage > rails of the x8 PCI slots on the X1E80100 - QCP can be correctly turned > on/off if they are described under PCIe port device tree node. > > Signed-off-by: Qiang Yu <quic_qianyu@quicinc.com> > Signed-off-by: Wenbin Yao <quic_wenbyao@quicinc.com> > --- > arch/arm64/configs/defconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig > index 85ec2fba1..de86d1121 100644 > --- a/arch/arm64/configs/defconfig > +++ b/arch/arm64/configs/defconfig > @@ -245,6 +245,7 @@ CONFIG_PCIE_LAYERSCAPE_GEN4=y > CONFIG_PCI_ENDPOINT=y > CONFIG_PCI_ENDPOINT_CONFIGFS=y > CONFIG_PCI_EPF_TEST=m > +CONFIG_PCI_PWRCTL_SLOT=y Bartosz, Wasn't the intention to select it the same way as PCI_PWRCTL_PWRSEQ is selected? Best regards, Krzysztof
On Fri, Mar 21, 2025 at 8:37 AM Krzysztof Kozlowski <krzk@kernel.org> wrote: > > On 20/03/2025 06:55, Wenbin Yao wrote: > > From: Qiang Yu <quic_qianyu@quicinc.com> > > > > Enable the pwrctrl driver, which is utilized to manage the power supplies > > of the devices connected to the PCI slots. This ensures that the voltage > > rails of the x8 PCI slots on the X1E80100 - QCP can be correctly turned > > on/off if they are described under PCIe port device tree node. > > > > Signed-off-by: Qiang Yu <quic_qianyu@quicinc.com> > > Signed-off-by: Wenbin Yao <quic_wenbyao@quicinc.com> > > --- > > arch/arm64/configs/defconfig | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig > > index 85ec2fba1..de86d1121 100644 > > --- a/arch/arm64/configs/defconfig > > +++ b/arch/arm64/configs/defconfig > > @@ -245,6 +245,7 @@ CONFIG_PCIE_LAYERSCAPE_GEN4=y > > CONFIG_PCI_ENDPOINT=y > > CONFIG_PCI_ENDPOINT_CONFIGFS=y > > CONFIG_PCI_EPF_TEST=m > > +CONFIG_PCI_PWRCTL_SLOT=y > Bartosz, > > Wasn't the intention to select it the same way as PCI_PWRCTL_PWRSEQ is > selected? > > Best regards, > Krzysztof > For sure. I would expect there to be something like: select PCI_PWRCTL_SLOT if ARCH_QCOM in Kconfig and nothing in defconfig. Bartosz
On 3/21/2025 6:01 AM, Bryan O'Donoghue wrote: > On 20/03/2025 05:55, Wenbin Yao wrote: >> From: Qiang Yu <quic_qianyu@quicinc.com> >> >> Enable the pwrctrl driver, which is utilized to manage the power >> supplies >> of the devices connected to the PCI slots. This ensures that the voltage >> rails of the x8 PCI slots on the X1E80100 - QCP can be correctly turned >> on/off if they are described under PCIe port device tree node. >> >> Signed-off-by: Qiang Yu <quic_qianyu@quicinc.com> >> Signed-off-by: Wenbin Yao <quic_wenbyao@quicinc.com> >> --- >> arch/arm64/configs/defconfig | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig >> index 85ec2fba1..de86d1121 100644 >> --- a/arch/arm64/configs/defconfig >> +++ b/arch/arm64/configs/defconfig >> @@ -245,6 +245,7 @@ CONFIG_PCIE_LAYERSCAPE_GEN4=y >> CONFIG_PCI_ENDPOINT=y >> CONFIG_PCI_ENDPOINT_CONFIGFS=y >> CONFIG_PCI_EPF_TEST=m >> +CONFIG_PCI_PWRCTL_SLOT=y >> CONFIG_DEVTMPFS=y >> CONFIG_DEVTMPFS_MOUNT=y >> CONFIG_FW_LOADER_USER_HELPER=y >> -- >> 2.34.1 >> >> > > PCI_PWRCTL_SLOT is a tristate symbol why be a "y" instead of an "m" > i.e. compile this into the kernel instead of having it be a module ? It can be compiled as module if this is preferred. > > --- > bod
On 3/21/2025 5:43 PM, Bartosz Golaszewski wrote: > On Fri, Mar 21, 2025 at 8:37 AM Krzysztof Kozlowski <krzk@kernel.org> wrote: >> On 20/03/2025 06:55, Wenbin Yao wrote: >>> From: Qiang Yu <quic_qianyu@quicinc.com> >>> >>> Enable the pwrctrl driver, which is utilized to manage the power supplies >>> of the devices connected to the PCI slots. This ensures that the voltage >>> rails of the x8 PCI slots on the X1E80100 - QCP can be correctly turned >>> on/off if they are described under PCIe port device tree node. >>> >>> Signed-off-by: Qiang Yu <quic_qianyu@quicinc.com> >>> Signed-off-by: Wenbin Yao <quic_wenbyao@quicinc.com> >>> --- >>> arch/arm64/configs/defconfig | 1 + >>> 1 file changed, 1 insertion(+) >>> >>> diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig >>> index 85ec2fba1..de86d1121 100644 >>> --- a/arch/arm64/configs/defconfig >>> +++ b/arch/arm64/configs/defconfig >>> @@ -245,6 +245,7 @@ CONFIG_PCIE_LAYERSCAPE_GEN4=y >>> CONFIG_PCI_ENDPOINT=y >>> CONFIG_PCI_ENDPOINT_CONFIGFS=y >>> CONFIG_PCI_EPF_TEST=m >>> +CONFIG_PCI_PWRCTL_SLOT=y >> Bartosz, >> >> Wasn't the intention to select it the same way as PCI_PWRCTL_PWRSEQ is >> selected? >> >> Best regards, >> Krzysztof >> > For sure. I would expect there to be something like: > > select PCI_PWRCTL_SLOT if ARCH_QCOM > > in Kconfig and nothing in defconfig. > > Bartosz IIUC, pci slot power driver is a common driver that could be used by all DT based platform.
On 24/03/2025 08:09, Wenbin Yao (Consultant) wrote: > On 3/21/2025 5:43 PM, Bartosz Golaszewski wrote: >> On Fri, Mar 21, 2025 at 8:37 AM Krzysztof Kozlowski <krzk@kernel.org> wrote: >>> On 20/03/2025 06:55, Wenbin Yao wrote: >>>> From: Qiang Yu <quic_qianyu@quicinc.com> >>>> >>>> Enable the pwrctrl driver, which is utilized to manage the power supplies >>>> of the devices connected to the PCI slots. This ensures that the voltage >>>> rails of the x8 PCI slots on the X1E80100 - QCP can be correctly turned >>>> on/off if they are described under PCIe port device tree node. >>>> >>>> Signed-off-by: Qiang Yu <quic_qianyu@quicinc.com> >>>> Signed-off-by: Wenbin Yao <quic_wenbyao@quicinc.com> >>>> --- >>>> arch/arm64/configs/defconfig | 1 + >>>> 1 file changed, 1 insertion(+) >>>> >>>> diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig >>>> index 85ec2fba1..de86d1121 100644 >>>> --- a/arch/arm64/configs/defconfig >>>> +++ b/arch/arm64/configs/defconfig >>>> @@ -245,6 +245,7 @@ CONFIG_PCIE_LAYERSCAPE_GEN4=y >>>> CONFIG_PCI_ENDPOINT=y >>>> CONFIG_PCI_ENDPOINT_CONFIGFS=y >>>> CONFIG_PCI_EPF_TEST=m >>>> +CONFIG_PCI_PWRCTL_SLOT=y >>> Bartosz, >>> >>> Wasn't the intention to select it the same way as PCI_PWRCTL_PWRSEQ is >>> selected? >>> >>> Best regards, >>> Krzysztof >>> >> For sure. I would expect there to be something like: >> >> select PCI_PWRCTL_SLOT if ARCH_QCOM >> >> in Kconfig and nothing in defconfig. >> >> Bartosz > > IIUC, pci slot power driver is a common driver that could be used by all DT > based platform. You are not responding to the raised problem. Best regards, Krzysztof
diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 85ec2fba1..de86d1121 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -245,6 +245,7 @@ CONFIG_PCIE_LAYERSCAPE_GEN4=y CONFIG_PCI_ENDPOINT=y CONFIG_PCI_ENDPOINT_CONFIGFS=y CONFIG_PCI_EPF_TEST=m +CONFIG_PCI_PWRCTL_SLOT=y CONFIG_DEVTMPFS=y CONFIG_DEVTMPFS_MOUNT=y CONFIG_FW_LOADER_USER_HELPER=y