mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Grant Likely <grant.likely@linaro.org>
To: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>,
	Rob Herring <robherring2@gmail.com>
Cc: Rob Herring <robh+dt@kernel.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	Bjorn Helgaas <bhelgaas@google.com>,
	Vivek Goyal <vgoyal@redhat.com>,
	Jakub Sitnicki <jsitnicki@gmail.com>,
	Mike Travis <travis@sgi.com>,
	Jiang Liu <jiang.liu@linux.intel.com>,
	Thierry Reding <treding@nvidia.com>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Tejun Heo <tj@kernel.org>, Cliff Wickman <cpw@sgi.com>
Subject: Re: [PATCH 2/2] of/platform: Mark all device tree resources as SHARED
Date: Sun, 07 Jun 2015 15:01:37 +0100	[thread overview]
Message-ID: <20150607140138.026C4C412C8@trevor.secretlab.ca> (raw)
In-Reply-To: <CAPybu_0s=9yTFH5jngh6=Zuz0iia0F1RU6AsLi-vcWNrF3-qYg@mail.gmail.com>

On Fri, 5 Jun 2015 18:51:36 +0200
, Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
 wrote:
> Hello Rob,
> 
> Thanks for your feedback!
> 
> On Fri, Jun 5, 2015 at 6:45 PM, Rob Herring <robherring2@gmail.com> wrote:
> > On Fri, Jun 5, 2015 at 5:51 AM, Ricardo Ribalda Delgado
> > <ricardo.ribalda@gmail.com> wrote:
> >> Some device tree platform do not define their resources properly. i.e.
> >> overlapping or repeated resources.
> >>
> >> This patch mark all device tree resources as shareable.
> >>
> >> In the future this should only be set for the platforms that have
> >> problems.
> >
> > I don't think we want to do this globally. This should be very rare
> > and we want to discourage any new cases.
> 
> I just wanted to mimic the original behaviour. Unfortunately I have no
> idea of what platform is broken.  Grant needs to help us here :)

I know of powerpc platforms that split the ethernet and mdio controllers
into separate nodes, even though they share a register block. Those ones
are broken (ie. mpc5200). I know there are ARM platforms that exhibited
the same behaviour, but I can't remember specifics at the moment.

> What do you think about the new flag? Does it make any sense for you?

I think I have another solution to the whole problem. IIUC, the problem
is the kernel crashes on unregistering resources. I've got a patch that
doesn't try to unregister resources that weren't registered in the first
place. It doesn't fix the problem of DT not registering the resources in
the first place, but it makes the unregister path safe.

I'll cc: you on the patch series.

g.


  reply	other threads:[~2015-06-07 16:59 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-05 10:51 [PATCH 1/2] kernel/resource: Add new flag IORESOURCE_SHARED Ricardo Ribalda Delgado
2015-06-05 10:51 ` [PATCH 2/2] of/platform: Mark all device tree resources as SHARED Ricardo Ribalda Delgado
2015-06-05 16:45   ` Rob Herring
2015-06-05 16:51     ` Ricardo Ribalda Delgado
2015-06-07 14:01       ` Grant Likely [this message]
2015-06-08 18:23 ` [PATCH 1/2] kernel/resource: Add new flag IORESOURCE_SHARED Grant Likely
2015-06-08 20:02   ` Ricardo Ribalda Delgado
2015-06-09 11:13     ` Grant Likely
2015-06-09 12:33       ` Ricardo Ribalda Delgado

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=20150607140138.026C4C412C8@trevor.secretlab.ca \
    --to=grant.likely@linaro.org \
    --cc=akpm@linux-foundation.org \
    --cc=bhelgaas@google.com \
    --cc=cpw@sgi.com \
    --cc=devicetree@vger.kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=jiang.liu@linux.intel.com \
    --cc=jsitnicki@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ricardo.ribalda@gmail.com \
    --cc=robh+dt@kernel.org \
    --cc=robherring2@gmail.com \
    --cc=tj@kernel.org \
    --cc=travis@sgi.com \
    --cc=treding@nvidia.com \
    --cc=vgoyal@redhat.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

all inboxes | Powered by JetHome®