* designware: missing *config* reg space @ 2014-08-05 18:26 Fabio Estevam 2014-08-06 4:32 ` Pratyush Anand 0 siblings, 1 reply; 6+ messages in thread From: Fabio Estevam @ 2014-08-05 18:26 UTC (permalink / raw) To: kishon Cc: Mohit Kumar, Bjorn Helgaas, Shawn Guo, Marek Vašut, Tim Harvey, Sascha Hauer, linux-pci@vger.kernel.org, Jingoo Han Hi, I am running linux-next 20140805 on a imx6q-sabresd board and noticed the following error: root@freescale /$ dmesg | grep pci [ 0.168095] imx6q-pcie 1ffc000.pcie: missing *config* reg space [ 0.501019] imx6q-pcie 1ffc000.pcie: phy link never came up [ 0.501579] imx6q-pcie 1ffc000.pcie: PCI host bridge to bus 0000:00 This 'missing *config* reg space' was introduced by: commit 4dd964df36d0e548e1806ec2ec275b62d4dc46e8 Author: Kishon Vijay Abraham I <kishon@ti.com> Date: Thu Jul 17 14:30:40 2014 +0530 PCI: designware: Look for configuration space in 'reg', not 'ranges' The configuration address space has so far been specified in *ranges*, however it should be specified in *reg* making it a platform MEM resource. Hence used 'platform_get_resource_*' API to get configuration address space in the designware driver. Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Mohit Kumar <mohit.kumar@st.com> Acked-by: Jingoo Han <jg1.han@samsung.com> Cc: Jason Gunthorpe <jgunthorpe@obsidianresearch.com> Cc: Marek Vasut <marex@denx.de> Cc: Arnd Bergmann <arnd@arndb.de> Wouldn't this break dt compatibility? ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: designware: missing *config* reg space 2014-08-05 18:26 designware: missing *config* reg space Fabio Estevam @ 2014-08-06 4:32 ` Pratyush Anand 2014-08-06 8:39 ` Lucas Stach 0 siblings, 1 reply; 6+ messages in thread From: Pratyush Anand @ 2014-08-06 4:32 UTC (permalink / raw) To: Fabio Estevam Cc: kishon@ti.com, Mohit KUMAR DCG, Bjorn Helgaas, Shawn Guo, Marek Vašut, Tim Harvey, Sascha Hauer, linux-pci@vger.kernel.org, Jingoo Han Hi, On Wed, Aug 06, 2014 at 02:26:10AM +0800, Fabio Estevam wrote: > Hi, > > I am running linux-next 20140805 on a imx6q-sabresd board and noticed > the following error: > > root@freescale /$ dmesg | grep pci > [ 0.168095] imx6q-pcie 1ffc000.pcie: missing *config* reg space > [ 0.501019] imx6q-pcie 1ffc000.pcie: phy link never came up > [ 0.501579] imx6q-pcie 1ffc000.pcie: PCI host bridge to bus 0000:00 > > This 'missing *config* reg space' was introduced by: dev_err printing the above message should be dev_dbg until all the platform specifies its configuration space definition through *reg* instead of *ranges*. > commit 4dd964df36d0e548e1806ec2ec275b62d4dc46e8 > Author: Kishon Vijay Abraham I <kishon@ti.com> > Date: Thu Jul 17 14:30:40 2014 +0530 > > PCI: designware: Look for configuration space in 'reg', not 'ranges' > > The configuration address space has so far been specified in *ranges*, > however it should be specified in *reg* making it a platform MEM resource. > Hence used 'platform_get_resource_*' API to get configuration address space > in the designware driver. > > Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> > Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> > Acked-by: Mohit Kumar <mohit.kumar@st.com> > Acked-by: Jingoo Han <jg1.han@samsung.com> > Cc: Jason Gunthorpe <jgunthorpe@obsidianresearch.com> > Cc: Marek Vasut <marex@denx.de> > Cc: Arnd Bergmann <arnd@arndb.de> > > Wouldn't this break dt compatibility? In spite of the above missing *config* message, your system should work fine. This patch should not affect any older platform.They will assign their cfg space through restype == 0. ~Pratyush > -- > To unsubscribe from this list: send the line "unsubscribe linux-pci" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: designware: missing *config* reg space 2014-08-06 4:32 ` Pratyush Anand @ 2014-08-06 8:39 ` Lucas Stach 2014-08-07 3:01 ` Jingoo Han 0 siblings, 1 reply; 6+ messages in thread From: Lucas Stach @ 2014-08-06 8:39 UTC (permalink / raw) To: Pratyush Anand, Fabio Estevam Cc: kishon@ti.com, Mohit KUMAR DCG, Bjorn Helgaas, Shawn Guo, Marek Vašut, Tim Harvey, Sascha Hauer, linux-pci@vger.kernel.org, Jingoo Han Am Mittwoch, den 06.08.2014, 10:02 +0530 schrieb Pratyush Anand: > Hi, > > On Wed, Aug 06, 2014 at 02:26:10AM +0800, Fabio Estevam wrote: > > Hi, > > > > I am running linux-next 20140805 on a imx6q-sabresd board and noticed > > the following error: > > > > root@freescale /$ dmesg | grep pci > > [ 0.168095] imx6q-pcie 1ffc000.pcie: missing *config* reg space > > [ 0.501019] imx6q-pcie 1ffc000.pcie: phy link never came up > > [ 0.501579] imx6q-pcie 1ffc000.pcie: PCI host bridge to bus 0000:00 > > > > This 'missing *config* reg space' was introduced by: > > dev_err printing the above message should be dev_dbg until all the > platform specifies its configuration space definition through *reg* > instead of *ranges*. > No it's completely right. Printing errors actually triggers people to fix their DTs. > > commit 4dd964df36d0e548e1806ec2ec275b62d4dc46e8 > > Author: Kishon Vijay Abraham I <kishon@ti.com> > > Date: Thu Jul 17 14:30:40 2014 +0530 > > > > PCI: designware: Look for configuration space in 'reg', not 'ranges' > > > > The configuration address space has so far been specified in *ranges*, > > however it should be specified in *reg* making it a platform MEM resource. > > Hence used 'platform_get_resource_*' API to get configuration address space > > in the designware driver. > > > > Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> > > Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> > > Acked-by: Mohit Kumar <mohit.kumar@st.com> > > Acked-by: Jingoo Han <jg1.han@samsung.com> > > Cc: Jason Gunthorpe <jgunthorpe@obsidianresearch.com> > > Cc: Marek Vasut <marex@denx.de> > > Cc: Arnd Bergmann <arnd@arndb.de> > > > > Wouldn't this break dt compatibility? > > In spite of the above missing *config* message, your system should > work fine. This patch should not affect any older platform.They will > assign their cfg space through restype == 0. > As Pratyush said things should work fine despite this warning. I'll send a DT patch out to Shawn today to get rid of this warning. Regards, Lucas -- Pengutronix e.K. | Lucas Stach | Industrial Linux Solutions | http://www.pengutronix.de/ | ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: designware: missing *config* reg space 2014-08-06 8:39 ` Lucas Stach @ 2014-08-07 3:01 ` Jingoo Han 2014-08-07 3:12 ` Fabio Estevam 0 siblings, 1 reply; 6+ messages in thread From: Jingoo Han @ 2014-08-07 3:01 UTC (permalink / raw) To: 'Lucas Stach', 'Pratyush Anand', 'Fabio Estevam' Cc: kishon, 'Mohit KUMAR DCG', 'Bjorn Helgaas', 'Shawn Guo', 'Marek Vašut', 'Tim Harvey', 'Sascha Hauer', linux-pci, 'Jingoo Han' On Wednesday, August 06, 2014 5:39 PM, Lucas Stach wrote: > > Am Mittwoch, den 06.08.2014, 10:02 +0530 schrieb Pratyush Anand: > > On Wed, Aug 06, 2014 at 02:26:10AM +0800, Fabio Estevam wrote: > > > Hi, > > > > > > I am running linux-next 20140805 on a imx6q-sabresd board and noticed > > > the following error: > > > > > > root@freescale /$ dmesg | grep pci > > > [ 0.168095] imx6q-pcie 1ffc000.pcie: missing *config* reg space > > > [ 0.501019] imx6q-pcie 1ffc000.pcie: phy link never came up > > > [ 0.501579] imx6q-pcie 1ffc000.pcie: PCI host bridge to bus 0000:00 > > > > > > This 'missing *config* reg space' was introduced by: > > > > dev_err printing the above message should be dev_dbg until all the > > platform specifies its configuration space definition through *reg* > > instead of *ranges*. > > > No it's completely right. Printing errors actually triggers people to > fix their DTs. I agree with Lucas Stach's opinion. Printing errors is necessary to let people change to fix the DT. According to the DT spec, using *ranges* is wrong. So, dev_err() can be used. > > > > commit 4dd964df36d0e548e1806ec2ec275b62d4dc46e8 > > > Author: Kishon Vijay Abraham I <kishon@ti.com> > > > Date: Thu Jul 17 14:30:40 2014 +0530 > > > > > > PCI: designware: Look for configuration space in 'reg', not 'ranges' > > > > > > The configuration address space has so far been specified in *ranges*, > > > however it should be specified in *reg* making it a platform MEM resource. > > > Hence used 'platform_get_resource_*' API to get configuration address space > > > in the designware driver. > > > > > > Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> > > > Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> > > > Acked-by: Mohit Kumar <mohit.kumar@st.com> > > > Acked-by: Jingoo Han <jg1.han@samsung.com> > > > Cc: Jason Gunthorpe <jgunthorpe@obsidianresearch.com> > > > Cc: Marek Vasut <marex@denx.de> > > > Cc: Arnd Bergmann <arnd@arndb.de> > > > > > > Wouldn't this break dt compatibility? > > > > In spite of the above missing *config* message, your system should > > work fine. This patch should not affect any older platform.They will > > assign their cfg space through restype == 0. > > > As Pratyush said things should work fine despite this warning. I'll send > a DT patch out to Shawn today to get rid of this warning. Good! :-) Best regards, Jingoo Han > > Regards, > Lucas > -- > Pengutronix e.K. | Lucas Stach | > Industrial Linux Solutions | http://www.pengutronix.de/ | ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: designware: missing *config* reg space 2014-08-07 3:01 ` Jingoo Han @ 2014-08-07 3:12 ` Fabio Estevam 2014-08-07 3:21 ` Jingoo Han 0 siblings, 1 reply; 6+ messages in thread From: Fabio Estevam @ 2014-08-07 3:12 UTC (permalink / raw) To: Jingoo Han Cc: Lucas Stach, Pratyush Anand, kishon, Mohit KUMAR DCG, Bjorn Helgaas, Shawn Guo, Marek Vašut, Tim Harvey, Sascha Hauer, linux-pci@vger.kernel.org Jingoo, On Thu, Aug 7, 2014 at 12:01 AM, Jingoo Han <jg1.han@samsung.com> wrote: > I agree with Lucas Stach's opinion. > Printing errors is necessary to let people change to fix the DT. > According to the DT spec, using *ranges* is wrong. So, dev_err() > can be used. Could you please point me to a dts that uses 'config' in the PCI node, so I could use it as reference? Thanks ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: designware: missing *config* reg space 2014-08-07 3:12 ` Fabio Estevam @ 2014-08-07 3:21 ` Jingoo Han 0 siblings, 0 replies; 6+ messages in thread From: Jingoo Han @ 2014-08-07 3:21 UTC (permalink / raw) To: 'Fabio Estevam' Cc: 'Lucas Stach', 'Pratyush Anand', 'Kishon Vijay Abraham I', 'Mohit KUMAR DCG', 'Bjorn Helgaas', 'Shawn Guo', 'Marek Vašut', 'Tim Harvey', 'Sascha Hauer', linux-pci, 'Jingoo Han' On Thursday, August 07, 2014 12:12 PM, Fabio Estevam wrote: > On Thu, Aug 7, 2014 at 12:01 AM, Jingoo Han <jg1.han@samsung.com> wrote: > > > I agree with Lucas Stach's opinion. > > Printing errors is necessary to let people change to fix the DT. > > According to the DT spec, using *ranges* is wrong. So, dev_err() > > can be used. > > Could you please point me to a dts that uses 'config' in the PCI node, > so I could use it as reference? Kishon already sent the patch to use 'config' in the PCI node. As far as I know, there is no objections. Please refer to the following links. [RESEND PATCH 8/8] ARM: dts: dra7: Add dt data for PCIe controller (http://lists.infradead.org/pipermail/linux-arm-kernel/2014-July/272131.html) [PATCH v3 3/4] Documentation: pci: ti: Add dt binding documentation for PCIe in DRA7xx (http://www.spinics.net/lists/linux-pci/msg32988.html) Best regards, Jingoo Han > > Thanks ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2014-08-07 3:21 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-08-05 18:26 designware: missing *config* reg space Fabio Estevam 2014-08-06 4:32 ` Pratyush Anand 2014-08-06 8:39 ` Lucas Stach 2014-08-07 3:01 ` Jingoo Han 2014-08-07 3:12 ` Fabio Estevam 2014-08-07 3:21 ` Jingoo Han
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).