All of lore.kernel.org
 help / color / mirror / Atom feed
From: rtivy@ti.com (Tivy, Robert)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v3 5/6] ARM: davinci: remoteproc board support for OMAP-L138 DSP
Date: Sat, 1 Dec 2012 02:11:28 +0000	[thread overview]
Message-ID: <13514BD7FAEBA745BBD7D8A672905C14311FAC29@DFLE08.ent.ti.com> (raw)
In-Reply-To: <50B88F7C.5000705@ti.com>

Hi Sekhar,

> -----Original Message-----
> From: Nori, Sekhar
> Sent: Friday, November 30, 2012 2:51 AM
> To: Tivy, Robert
> Cc: davinci-linux-open-source at linux.davincidsp.com; linux-arm-
> kernel at lists.infradead.org; Ring, Chris; Grosen, Mark
> Subject: Re: [PATCH v3 5/6] ARM: davinci: remoteproc board support for
> OMAP-L138 DSP
> 
> Hi Rob,
> 
> On 11/29/2012 7:08 AM, Tivy, Robert wrote:
> > Hi Sekhar,
> >
> > Please see comments and noob questions below...
> >
> >> -----Original Message-----
> >> From: Nori, Sekhar
> >> Sent: Tuesday, November 20, 2012 4:27 AM
> >> To: Tivy, Robert
> >> Cc: davinci-linux-open-source at linux.davincidsp.com; linux-arm-
> >> kernel at lists.infradead.org; Ring, Chris; Grosen, Mark
> >> Subject: Re: [PATCH v3 5/6] ARM: davinci: remoteproc board support
> >> for
> >> OMAP-L138 DSP
> >>
> >> On 11/14/2012 6:03 AM, Robert Tivy wrote:
> >>> Requires CMA services.
> >>>
> >>> New 'clk_reset()' API added so that the DSP's reset state can be
> >>> toggled separately from its enable/disable operation.
> >>
> >> But we cannot add a private clk_ API without it being defined in
> >> include/linux/clk.h. So, this requires wider alignment.
> >>
> >> And I am not sure clock API should be extended to support reset
> since
> >> "resetting a clock" does not make a lot of sense. On DaVinci, clock
> >> gating and reset are handled by the same module, but that need not
> >> always be the case.
> >>
> >> What you need is a way to reset an IP. I do not know of an existing
> >> framework to do this; likely a new API needs to be created. I am
> >> guessing this never existed so far because most of the IPs can be
> >> reset internally (by writing a bit within its own register space). I
> >> guess DSP is different since its actually a co-processor and may not
> >> have such a bit.
> >>
> >> How about simulating a reset by making the DSP jump to its reset
> >> address. While I am sure its not quite the same as resetting the DSP
> >> using PSC, may be it could be used while you wait for consensus
> >> around handling module reset in kernel?
> >
> > Since the ARM can't write the DSP's program counter I suspect such a
> temporary solution is not possible.
> 
> Okay. I think the way forward on this is to start a separate thread
> including the ARM list, LKML and the remoteproc folks to see if it
> makes sense to create a reset API in kernel. You can describe the
> usecase you have.

Instead of fighting that fight, I thought of another way.  The da8xx_dsp platform_device has private data registered in its device struct.  This private data can contain a function pointer for a "DSP reset" function, and davinci_remoteproc.c can call the registered function.  Does that sound OK?

Regards,

- Rob

  reply	other threads:[~2012-12-01  2:11 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1352853207-20602-1-git-send-email-rtivy@ti.com>
2012-11-14 10:12 ` [PATCH v3 1/6] ARM: davinci: Changed pr_warning() to pr_warn() (part 1) Sergei Shtylyov
     [not found] ` <1352853207-20602-2-git-send-email-rtivy@ti.com>
2012-11-14 10:17   ` [PATCH v3 2/6] ARM: davinci: Changed pr_warning() to pr_warn() (part 2) Sergei Shtylyov
2012-11-15  1:53     ` Tivy, Robert
2012-11-15  9:46       ` Sergei Shtylyov
2012-11-20 11:27         ` Sekhar Nori
     [not found] ` <1352853207-20602-5-git-send-email-rtivy@ti.com>
2012-11-20 12:26   ` [PATCH v3 5/6] ARM: davinci: remoteproc board support for OMAP-L138 DSP Sekhar Nori
2012-11-29  1:38     ` Tivy, Robert
2012-11-30 10:50       ` Sekhar Nori
2012-12-01  2:11         ` Tivy, Robert [this message]
2012-12-03 14:41           ` Sekhar Nori
2012-12-03 20:13             ` Cyril Chemparathy
2012-12-04  2:30               ` Tivy, Robert
2012-12-04  5:58               ` Sekhar Nori
     [not found]                 ` <50BE0E54.5060607@ti.com>
     [not found]                   ` <50BE2115.4000606@ti.com>
     [not found]                     ` <13514BD7FAEBA745BBD7D8A672905C14311FB29D@DFLE08.ent.ti.com>
2012-12-05  8:35                       ` Sekhar Nori
2012-12-07  8:24                     ` Sekhar Nori
2012-12-08  1:04                       ` Tivy, Robert
2012-12-12  1:36         ` Tivy, Robert
2012-12-12 10:34           ` Sekhar Nori
2012-12-12 11:01             ` Prabhakar Lad
2012-12-12 13:06               ` Sekhar Nori
2012-12-12 13:13                 ` Prabhakar Lad
2012-12-13  8:18                   ` Prabhakar Lad
2012-12-14  8:17                     ` Sekhar Nori
2012-12-14  2:19             ` Tivy, Robert
     [not found] ` <1352853207-20602-6-git-send-email-rtivy@ti.com>
2012-11-20 12:30   ` [PATCH v3 6/6] ARM: davinci: remoteproc driver " Sekhar Nori

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=13514BD7FAEBA745BBD7D8A672905C14311FAC29@DFLE08.ent.ti.com \
    --to=rtivy@ti.com \
    --cc=linux-arm-kernel@lists.infradead.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.