From: "Rajendra Nayak" <rnayak@ti.com>
To: 'David Brownell' <david-b@pacbell.net>
Cc: linux-omap@vger.kernel.org
Subject: RE: [PATCH 01/04] OMAP3 SRF: Generic shared resource f/w
Date: Fri, 17 Oct 2008 10:57:27 +0530 [thread overview]
Message-ID: <029c01c93019$0c870260$LocalHost@wipultra1382> (raw)
In-Reply-To: <200810161127.41161.david-b@pacbell.net>
> -----Original Message-----
> From: David Brownell [mailto:david-b@pacbell.net]
> Sent: Thursday, October 16, 2008 11:58 PM
> To: Rajendra Nayak
> Cc: linux-omap@vger.kernel.org
> Subject: Re: [PATCH 01/04] OMAP3 SRF: Generic shared resource f/w
>
> On Thursday 16 October 2008, Rajendra Nayak wrote:
> > + /* Function to change the level of the resource */
> > + int (*change_level)(struct shared_resource *res,
> u32 target_level);
> > + /* Function to validate the requested level of the
> resource */
> > + int (*validate_level)(struct shared_resource *res,
> u32 target_level);
>
> What is a "target_level" supposed to represent? Are they
> even comparable, in the senses that
>
> (a) "42" for one resource is the same as "42" for another?
> (b) "42" includes "41", "40", etc?
>
> There's no documentation at all on what seems to be a
> fairly fundamental concept. Or on the rest of it either;
> the call syntax information is no real help. What kind
> of "resource" is involved, that might need a "level"?
I'll try and put in some more details on the design. Whats essentially
planned is a framework to model "shared multi level" resources.
target_level and supported levels for each resource type might vary
and are platform specific and defined in the platform specific header file.
(In this case resource34xx.h file in mach-omap2)
Shared Multi level Resources currently planned to be modeled are Power-domain-latencies
(would have different latencies based on what state (RET/OFF) it enters
and hence multi level) and OPP/Frequency resources (Will have mutlitple levels
each representing a defined OPP).
So for instance, for a VDD1-OPP resource a DSP load pridictor would request for OPP2
based on its predictions and CPUFreq might request OPP3 based on the ARM load.
The F/w then *sums* up all the requests and decides on whats the best *target_level*
for the resource which keeps everyone happy.
>
> Also, I suspect a flat namespace for all resources will
> be a net lose. Why isn't it scoped by devices, so that
> device-relative "logical names" can be used instead of
> requiring what have tended to be platform-specific and
> very mutable "physical names"? I notice that the call
> to request a resource is already device-scoped ...
>
> - Dave
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2008-10-17 5:27 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-16 14:11 [PATCH 01/04] OMAP3 SRF: Generic shared resource f/w Rajendra Nayak
2008-10-16 18:27 ` David Brownell
2008-10-17 5:27 ` Rajendra Nayak [this message]
2008-10-17 6:16 ` Dasgupta, Romit
2008-10-17 6:29 ` Rajendra Nayak
2008-10-17 7:35 ` Dasgupta, Romit
2008-10-17 7:43 ` Rajendra Nayak
2008-10-17 11:01 ` Dasgupta, Romit
2008-10-17 11:31 ` Dasgupta, Romit
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='029c01c93019$0c870260$LocalHost@wipultra1382' \
--to=rnayak@ti.com \
--cc=david-b@pacbell.net \
--cc=linux-omap@vger.kernel.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