All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bjorn Andersson <bjorn.andersson@linaro.org>
To: Lina Iyer <ilina@codeaurora.org>
Cc: Stephen Boyd <sboyd@codeaurora.org>,
	andy.gross@linaro.org, david.brown@linaro.org,
	rnayak@codeaurora.org, linux-arm-msm@vger.kernel.org,
	linux-soc@vger.kernel.org, msivasub@codeaurora.org
Subject: Re: [PATCH 1/2] drivers: qcom: add command DB driver
Date: Wed, 7 Feb 2018 09:00:28 -0800	[thread overview]
Message-ID: <20180207170028.GQ9465@builder> (raw)
In-Reply-To: <20180207164719.GA16153@codeaurora.org>

On Wed 07 Feb 08:47 PST 2018, Lina Iyer wrote:
> On Thu, Jan 25 2018 at 20:46 +0000, Stephen Boyd wrote:
> > On 01/18, Lina Iyer wrote:
> > > diff --git a/drivers/soc/qcom/Kconfig b/drivers/soc/qcom/Kconfig
[..]
> > > +struct entry_header {
> > > +	uint64_t res_id;
> > > +	u32 priority[NUM_PRIORITY];
> > > +	u32 addr;
> > > +	u16 len;
> > > +	u16 offset;
> > 
> > Are these little endian? Needs to be __le16 and __le32 then.
> > 
> Not a device memory.

Forgot to mention this based on your other answer, but as this is not
device memory you should remove the __iomem specifier and use memremap()
instead of ioremap().

> Do we need to worry about endianness?
> 

We have done that in many of the other core drivers, I do however
suspect that Stephen was the only one who ever booted the kernel in this
mode.

[..]
> > Hopefully we never have more than one commmand db? Do consumers
> > "just know" to use this code? I haven't looked at the DT binding,
> > but perhaps consumers need to point to command db via DT phandles
> > so we can identify the consumers. That may make probe defer
> > easier too.
> > 
> There would be just one command DB for an SoC. Currently, none of the
> the clients need to probe at the time of command DB.
> 
> The producer-consumer model might help, but it is probably not needed
> here.
> 

I think it's fine to not describe this relationship in DT. We can use
probe deferral without it.

[..]
> > > +		ch[i] = id[i];
> > 
> > Is this a strcpy?
> > 
> In a way yes.
> 

I think we should use 64-bit constants throughout the kernel instead of
using strings that gets converted here...

Regards,
Bjorn

  reply	other threads:[~2018-02-07 17:00 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-18 22:08 [PATCH 0/2] drivers/qcom: add Command DB support Lina Iyer
2018-01-18 22:08 ` [PATCH 1/2] drivers: qcom: add command DB driver Lina Iyer
2018-01-25 20:46   ` Stephen Boyd
2018-02-07 16:47     ` Lina Iyer
2018-02-07 17:00       ` Bjorn Andersson [this message]
2018-02-05 23:18   ` Bjorn Andersson
2018-02-07 18:29     ` Lina Iyer
2018-02-07 21:06       ` Bjorn Andersson
2018-02-07 21:43         ` Lina Iyer
2018-02-07 22:15           ` Bjorn Andersson
2018-01-18 22:08 ` [PATCH 2/2] dt-bindings: introduce Command DB for QCOM SoCs Lina Iyer
2018-01-18 22:28   ` Lina Iyer
2018-01-29 19:08     ` Rob Herring
2018-01-30 16:17       ` Lina Iyer
2018-02-05 22:11         ` Bjorn Andersson
2018-02-06 20:05           ` Lina Iyer
     [not found]             ` <20180206200507.GA13360-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
2018-02-06 20:15               ` Bjorn Andersson

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=20180207170028.GQ9465@builder \
    --to=bjorn.andersson@linaro.org \
    --cc=andy.gross@linaro.org \
    --cc=david.brown@linaro.org \
    --cc=ilina@codeaurora.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-soc@vger.kernel.org \
    --cc=msivasub@codeaurora.org \
    --cc=rnayak@codeaurora.org \
    --cc=sboyd@codeaurora.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.