From: Maxime Ripard <maxime@cerno.tech>
To: "Jernej Škrabec" <jernej.skrabec@gmail.com>
Cc: Saravana Kannan <saravanak@google.com>,
linux-sunxi@lists.linux.dev,
Android Kernel Team <kernel-team@android.com>,
linux-kernel@vger.kernel.org
Subject: Re: Issue with fw_devlink=on on 5.14
Date: Fri, 17 Sep 2021 17:48:23 +0200 [thread overview]
Message-ID: <20210917154823.jly4hsbe73bathce@gilmour> (raw)
In-Reply-To: <1757257.sNEdEUkno9@jernej-laptop>
[-- Attachment #1: Type: text/plain, Size: 2747 bytes --]
On Fri, Sep 17, 2021 at 06:32:45AM +0200, Jernej Škrabec wrote:
> Dne petek, 17. september 2021 ob 04:55:22 CEST je Saravana Kannan napisal(a):
> > On Wed, Sep 15, 2021 at 11:59 AM Jernej Škrabec
> >
> > <jernej.skrabec@gmail.com> wrote:
> > > /cc linux-kernel@vger.kernel.org
> > >
> > > Dne sreda, 15. september 2021 ob 20:36:11 CEST je Saravana Kannan
> napisal(a):
> > > > On Wed, Sep 15, 2021 at 11:23 AM Saravana Kannan <saravanak@google.com>
> > >
> > > wrote:
> > > > > On Wed, Sep 15, 2021 at 11:07 AM Jernej Škrabec
> > > > >
> > > > > <jernej.skrabec@gmail.com> wrote:
> > > > > > Hi Saravana!
> > > > > >
> > > > > > I noticed that in kernel 5.14, at least on Allwinner H3, deinterlace
> > >
> > > driver
> > >
> > > > > > doesn't load anymore if fw_devlink is set to on. If I set it to off,
> > >
> > > driver
> > >
> > > > > > loads and works without problems. If I remove interconnects property
> > > > > > in
> > >
> > > DT
> > >
> > > > > > node and use driver hack instead, it also loads and work ok.
> > > > > >
> > > > > > For reference, I speak about this node:
> > > > > > https://elixir.bootlin.com/linux/v5.14/source/arch/arm/boot/dts/sun8
> > > > > > i-h3.dtsi#L153> >
> > > > Oh the dts file please. Not dtsi. I need the full picture of
> > > > dependencies.
> > >
> > > I just dumped DTB from the board I use for testing this:
> > > http://ix.io/3yZB
> >
> > I was basically asking for this:
> > arch/arm/boot/dts/sun8i-h3-orangepi-plus2e.dts
> >
> > > > -Saravana
> > > >
> > > > > > Do you have any clue why it doesn't work?
> > > > >
> > > > > Kinda busy today and I'll take a close look later, but if you delete
> > > > > "interconnect" but it works, then it seems like you have no driver for
> > > > > your "mbus" interconnect? Is that expected?
> > >
> > > Ah, you're completely right. There is no MBUS driver (yet), since current
> > > purpose of that node is to determine DMA memory offsets and for that you
> > > don't need a driver.
> >
> > Can you explain more how you get the DMA memory offsets in the code
> > from this node?
>
> Maxime, can you help with this?
Sure, Jernej is right, the interconnects binding with the dma-mem name
is here to describe the path DMA accesses take between devices.
In our case, the registers accesses go through the usual busses, but the
DMA accesses go through a separate one controlled by the mbus controller
Jernej was talking about.
The driver core will then take this into account and apply any DMA
mapping the mbus controller has:
https://elixir.bootlin.com/linux/latest/source/drivers/of/address.c#L582
So it's entirely transparent to the consumer driver.
Maxime
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
prev parent reply other threads:[~2021-09-17 15:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <5570111.f9yF5Hohu3@kista>
[not found] ` <CAGETcx9_dy4qdmZ-+X+WLsezPKWfZzmRU8QmhKOu6FdZcysWDA@mail.gmail.com>
[not found] ` <CAGETcx_6muHgmDAviMf-UBvriePwc+o5408nDeNd_v3zR_x9TQ@mail.gmail.com>
2021-09-15 18:59 ` Re: Issue with fw_devlink=on on 5.14 Jernej Škrabec
2021-09-17 2:55 ` Saravana Kannan
2021-09-17 4:32 ` Jernej Škrabec
2021-09-17 15:48 ` Maxime Ripard [this message]
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=20210917154823.jly4hsbe73bathce@gilmour \
--to=maxime@cerno.tech \
--cc=jernej.skrabec@gmail.com \
--cc=kernel-team@android.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sunxi@lists.linux.dev \
--cc=saravanak@google.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