public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: jeremy@jeremypeper.com
To: Arnd Bergmann <arnd@arndb.de>, Andrew Lunn <andrew@lunn.ch>
Cc: "Jeremy J. Peper" <jeremy@jeremypeper.com>,
	linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org,
	Russell King <linux@armlinux.org.uk>,
	Linus Walleij <linus.walleij@linaro.org>,
	Richard Earnshaw <richard.earnshaw@arm.com>,
	Richard Sandiford <richard.sandiford@arm.com>,
	Ramana Radhakrishnan <ramanara@nvidia.com>,
	Nicolas Pitre <nico@fluxnic.net>,
	Krzysztof Kozlowski <krzk@kernel.org>,
	Mark Brown <broonie@kernel.org>,
	Kristoffer Ericson <kristoffer.ericson@gmail.com>,
	Robert Jarzmik <robert.jarzmik@free.fr>,
	Aaro Koskinen <aaro.koskinen@iki.fi>,
	Janusz Krzysztofik <jmkrzyszt@gmail.com>,
	Tony Lindgren <tony@atomide.com>,
	Linux-OMAP <linux-omap@vger.kernel.org>,
	Nikita Shubin <nikita.shubin@maquefel.me>,
	linux-samsung-soc@vger.kernel.org,
	Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>,
	Gregory Clement <gregory.clement@bootlin.com>,
	debian-arm@lists.debian.org,
	Dmitry Torokhov <dmitry.torokhov@gmail.com>,
	Alexandre Torgue <alexandre.torgue@foss.st.com>
Subject: Re: [RFC} arm architecture board/feature deprecation timeline
Date: Mon, 19 Aug 2024 12:08:43 -0500	[thread overview]
Message-ID: <2668591.ElGaqSPkdT@earth> (raw)
In-Reply-To: <a6316f7c-4064-4145-aa6a-d34197a3981a@lunn.ch>

On Monday, August 19, 2024 9:23:16 AM CDT Andrew Lunn wrote:
> On Mon, Aug 19, 2024 at 04:12:10PM +0200, Arnd Bergmann wrote:
> > Two small additions:
> > 
> > On Mon, Aug 19, 2024, at 11:17, Arnd Bergmann wrote:
> > > On Thu, Aug 15, 2024, at 21:53, jeremy@jeremypeper.com wrote:
> > > I expect that the terastation pro2 is going to be fairly easy to
> > > convert to DT as there is already support for similar Orion5x
> > > machines. In this case I would just remove all the Orion5x board
> > > files and you can add a dts file later on. The bit I'm unsure
> > > about here is legacy PCI support. I see that the board file enables
> > > both PCI and PCIe, but I don't know if both are actually used,
> > > or if everything is on PCIe.
> > > 
> > > I have some old patches for separating orion legacy PCI from
> > > PCIe support, as only the latter has a modern driver (shared
> > > with kirkwood and armadaxp). If you can confirm that the machine
> > > actually uses PCI, I can dig those out from my backups.
> > 
> > I did find this myself later, the machine does use an on-board
> > PCI connected SATA controller, which is obviously required to
> > make the machine useful.
> > 
> > Doing a PCI host bridge driver with DT support correctly is
> > a lot of work, especially if there is only a single machine
> > using it. Since this uses the same drivers/ata/sata-mv.c
> > driver as the other orion/kirkwood machines, I wonder if we
> > can just pretend that this is a platform device and skip
> > all of the PCI probing. I think this only needs a few
> > small changes to the sata-mv.c driver, but it does require
> > that the PCI bus is left in a known state by the boot loader.
> 
> It is a long time since i looked at Orion, so i could be wrong....
> 
> As far as i remember, it has a PCI controller and a PCIe
> controller. They are slightly different. The PCIe part is i think
> simpler to support, it follows the standards better. I _think_ the PCI
> controller uses a GPIO for interrupt support, which causes a mess.
> 
> If only PCIe is needed, it should not be too hard to make work. I
> would try to avoid the PCI controller is possible.
> 
>       Andrew

Looking at the ts2pro I think it's PCI rather than PCIe but I'm not certain:

0001:01:07.0 SCSI storage controller: Marvell Technology Group Ltd. 88SX6042 
PCI-X 4-Port SATA-II (rev 02)
        Subsystem: Marvell Technology Group Ltd. 88SX6042 PCI-X 4-Port SATA-II
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr+ 
Stepping- SERR+ FastB2B+ DisINTx-
        Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- 
<TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 128, Cache Line Size: 32 bytes
        Interrupt: pin A routed to IRQ 44
        Region 0: Memory at e8000000 (64-bit, non-prefetchable) [size=1M]
        Region 2: I/O ports at 10000 [size=256]
        Capabilities: [40] Power Management version 2
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA 
PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
                Address: 0000000000000000  Data: 0000
        Capabilities: [60] PCI-X non-bridge device
                Command: DPERE- ERO- RBC=512 OST=4
                Status: Dev=01:07.0 64bit+ 133MHz+ SCD- USC- DC=simple 
DMMRBC=512 DMOST=4 DMCRS=8 RSCEM- 266MHz- 533MHz-
        Kernel driver in use: sata_mv

root@ts2pro:~# dmesg | grep -i pcie
root@ts2pro:~# dmesg | grep -i pci | head
[   25.598898] PCI host bridge to bus 0000:00
[   25.598924] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[   25.598963] pci_bus 0000:00: root bus resource [io  0x1000-0xffff]
[   25.598993] pci_bus 0000:00: No busn resource found for root bus, will use 
[bus 00-ff]
[   25.599019] pci_bus 0000:00: scanning bus
[   25.599082] pci 0000:00:00.0: [11ab:5281] type 00 class 0x058000
[   25.599127] pci 0000:00:00.0: reg 0x10: [mem 0xf1000000-0xf10fffff 64bit 
pref]
[   25.599166] pci 0000:00:00.0: reg 0x18: [mem 0x00000000-0x07ffffff]
[   25.599687] pci_bus 0000:00: fixups for bus
[   25.599711] PCI: bus0: Fast back to back transfers disabled



  parent reply	other threads:[~2024-08-19 17:08 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-31 17:29 [RFC} arm architecture board/feature deprecation timeline Arnd Bergmann
2024-07-31 19:13 ` Aaro Koskinen
2024-08-01  8:59   ` Arnd Bergmann
2024-08-01 18:23     ` Aaro Koskinen
2024-08-02 12:53       ` Arnd Bergmann
2024-08-05  7:58     ` Arnd Bergmann
2024-08-05 12:30       ` Tony Lindgren
2024-08-05 13:37         ` Arnd Bergmann
2024-08-01  8:04 ` Krzysztof Kozlowski
2024-08-01 14:15 ` Richard Earnshaw
2024-08-02 15:12   ` Arnd Bergmann
2024-08-02 23:04     ` Linus Walleij
2024-08-20 14:58     ` Richard Earnshaw
2024-08-20 16:33       ` Arnd Bergmann
2024-08-01 19:53 ` Linus Walleij
2024-08-02 14:52   ` Arnd Bergmann
2024-08-15 18:24 ` Matt Turner
2024-08-19  7:37   ` Arnd Bergmann
2024-08-15 19:53 ` jeremy
2024-08-19  9:17   ` Arnd Bergmann
2024-08-19 14:12     ` Arnd Bergmann
2024-08-19 14:23       ` Andrew Lunn
2024-08-19 14:34         ` Arnd Bergmann
2024-08-19 17:08         ` jeremy [this message]
2024-08-21  6:15 ` Alexander Dahl
2024-08-21  7:51   ` Arnd Bergmann
     [not found] <CAEwRq=qhHBh5jKdLGb1r2Qem0jia=xcVdevihYfjdrLSYiZuiA@mail.gmail.com>
2024-08-26  9:05 ` Linus Walleij
2024-08-26 14:55   ` Arnd Bergmann
2024-09-01 16:34     ` Vincent Legoll
2024-09-01 16:28   ` Vincent Legoll

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2668591.ElGaqSPkdT@earth \
    --to=jeremy@jeremypeper.com \
    --cc=aaro.koskinen@iki.fi \
    --cc=alexandre.torgue@foss.st.com \
    --cc=andrew@lunn.ch \
    --cc=arnd@arndb.de \
    --cc=broonie@kernel.org \
    --cc=debian-arm@lists.debian.org \
    --cc=dmitry.torokhov@gmail.com \
    --cc=gregory.clement@bootlin.com \
    --cc=jmkrzyszt@gmail.com \
    --cc=kristoffer.ericson@gmail.com \
    --cc=krzk@kernel.org \
    --cc=linus.walleij@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=nico@fluxnic.net \
    --cc=nikita.shubin@maquefel.me \
    --cc=ramanara@nvidia.com \
    --cc=richard.earnshaw@arm.com \
    --cc=richard.sandiford@arm.com \
    --cc=robert.jarzmik@free.fr \
    --cc=sebastian.hesselbarth@gmail.com \
    --cc=tony@atomide.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox