From: Cho KyongHo <pullip.cho-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
To: Tomasz Figa <tomasz.figa-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: Linux DeviceTree
<devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
Linux Samsung SOC
<linux-samsung-soc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
Prathyush <prathyush.k-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>,
Grant Grundler <grundler-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>,
Tomasz Figa <t.figa-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>,
Linux Kernel
<linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
Sachin Kamat
<sachin.kamat-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>,
Linux IOMMU
<iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org>,
Kukjin Kim <kgene.kim-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>,
Sylwester Nawrocki
<s.nawrocki-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>,
Antonios Motakis
<a.motakis-lrHrjnjw1UfHK3s98zE1ajGjJy/sRE9J@public.gmane.org>,
Varun Sethi <Varun.Sethi-KZfg59tc24xl57MIdRCFDg@public.gmane.org>,
Linux ARM Kernel
<linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org>,
Rahul Sharma
<rahul.sharma-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
Subject: Re: [PATCH v11 17/27] iommu/exynos: remove calls to Runtime PM API functions
Date: Thu, 20 Mar 2014 21:07:05 +0900 [thread overview]
Message-ID: <20140320210705.19aa5192f55f263ccf271b32@samsung.com> (raw)
In-Reply-To: <5329E729.4020201-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
On Wed, 19 Mar 2014 19:51:21 +0100, Tomasz Figa wrote:
> On 19.03.2014 19:37, Grant Grundler wrote:
> > On Wed, Mar 19, 2014 at 10:30 AM, Tomasz Figa <t.figa-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> wrote:
> > ...
> >> As I said, AFAIK the trend is to get rid of ordering by initcalls and make
> >> sure that drivers can handle missing dependencies properly, even for
> >> "services" such as DMA, GPIO, clocks and so on, which after all are provided
> >> by normal drivers like other.
> >
> > Ok - I'm not following the general kernel dev trends. initcall()
> > levels are easy to understand and implement. So I would not be in a
> > hurry to replace them.
> >
>
> Well, initcall level is still a way to satisfy most of dependencies,
> i.e. all client devices with higher initcall levels will probe
> successfully. However the other case needs to be handled as well - in
> this case the IOMMU binding code needs to defer probe of client driver
> if respective IOMMU is not yet available.
I now understand what is deferred probing you mentioned.
However, I worry that many existing drivers are not ready
for deferred probing.
But still I wonder if System MMU driver need to be probed in the same
initcall level.
> >>> ps. I've written IOMMU support for four different IOMMUs on three
> >>> operating systems (See drivers/parisc for two linux examples). But I
> >>> still feel like I at best have 80% understanding of how this one is
> >>> organized/works. Abstract descriptions and convoluted code have been
> >>> handicapping me (and lack of time to dig further).
> >>
> >>
> >> Well, this is one of my concerns with this driver. It isn't easy to read
> >> (and so review, maintain, extend and debug found issues).
> >
> > My postscript comment was more to explain why I'm not confident in my
> > opinion - not a reason to reject the patch series. I still consider
> > the whole series as a step forward. But I'm not the expert here.
>
> I fully agree with you. Other than the issues mentioned in review, the
> patches are definitely a step forward. I'd even say that all the patches
> that have nothing to do with device tree could be merged in their
> current form and the code refined later. It doesn't mean that patches
> shouldn't be reviewed now and issues spotted reported, even if they
> could be fixed later - this is for the IOMMU subsystem maintainer to decide.
>
> As for patches related to DT support, more care needs to be taken, as
> bindings should be designed with stability in mind, so the refining
> process should happen at review stage.
>
> > Right now, with ~30 patches posted by the exynos iommu (official?)
> > maintainer, no one else who has a clue will attempt to fix or clean up
> > those kinds of problems. i.e. it's useful to enable others to fix
> > what are essentially unspecified "design pattern" issues.
>
> Agreed.
Let me wait for the way of binding System MMU and its master developed by Marek.
Regards,
KyongHo
prev parent reply other threads:[~2014-03-20 12:07 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-14 5:08 [PATCH v11 17/27] iommu/exynos: remove calls to Runtime PM API functions Cho KyongHo
[not found] ` <20140314140843.ba055f28dd7ed59c46088029-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2014-03-14 12:59 ` Tomasz Figa
2014-03-18 9:56 ` Cho KyongHo
[not found] ` <20140318185605.0380c8dfe6559c06183092e5-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2014-03-18 15:09 ` Tomasz Figa
[not found] ` <532861BE.7020601-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2014-03-19 1:03 ` Cho KyongHo
[not found] ` <20140319100304.5e26fa43ccdfc29178b058e1-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2014-03-19 13:12 ` Tomasz Figa
[not found] ` <532997D7.6090608-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2014-03-19 16:54 ` Grant Grundler
2014-03-20 11:55 ` Cho KyongHo
2014-03-19 17:03 ` Grant Grundler
[not found] ` <CANEJEGuYz28dGT+264CYtG+Tk6htOq=u-t4PWMtsij32X0vJFA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-03-19 17:30 ` Tomasz Figa
[not found] ` <5329D426.9020706-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2014-03-19 18:37 ` Grant Grundler
[not found] ` <CANEJEGtCdMmWXwpoky8USLOBw7jAt1bRw8or-mDK7twxAzhWpA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-03-19 18:51 ` Tomasz Figa
[not found] ` <5329E729.4020201-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-03-20 12:07 ` Cho KyongHo [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=20140320210705.19aa5192f55f263ccf271b32@samsung.com \
--to=pullip.cho-sze3o3uu22jbdgjk7y7tuq@public.gmane.org \
--cc=Varun.Sethi-KZfg59tc24xl57MIdRCFDg@public.gmane.org \
--cc=a.motakis-lrHrjnjw1UfHK3s98zE1ajGjJy/sRE9J@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=grundler-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org \
--cc=iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
--cc=kgene.kim-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org \
--cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-samsung-soc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=prathyush.k-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org \
--cc=rahul.sharma-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org \
--cc=s.nawrocki-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org \
--cc=sachin.kamat-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
--cc=t.figa-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org \
--cc=tomasz.figa-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
/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