Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1361563

Re: [RESEND PATCH V4 1/4] stm class: provision for statically assigned masterIDs

From Alexander Shishkin <alexander.shishkin@linux.intel.com>
Newsgroups linux.kernel
Subject Re: [RESEND PATCH V4 1/4] stm class: provision for statically assigned masterIDs
Date 2016-03-21 08:50 +0100
Message-ID <rf2L7-2qX-1@gated-at.bofh.it> (permalink)
References <rajtf-5CZ-3@gated-at.bofh.it> <rajtf-5CZ-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Chunyan Zhang <zhang.chunyan@linaro.org> writes:

> From: Mathieu Poirier <mathieu.poirier@linaro.org>
>
> Some architecture like ARM assign masterIDs at the HW design
> phase.  Those are therefore unreachable to users, making masterID
> management in the generic STM core irrelevant.
>
> In this kind of configuration channels are shared between masters
> rather than being allocated on a per master basis.
>
> This patch adds a new 'mshared' flag to struct stm_data that tells the
> core that this specific STM device doesn't need explicit masterID
> management.

There are two kinds of 'masterIDs' that we're talking about here: the
ones that turn up in the STP stream and the ones that are accessible to
trace-side software (sw_start/sw_end). So in this case we want to
reflect the fact that there is no correlation between the two, because
hardware assigns STP channels dynamically based on the states of the
trace/execution environment. And although the trace side software can do
very little with this information, it does make sense to provide it.

The sw_start==sw_end situation, on the other hand, is a side effect of
the above and, as I said in one of the previous threads, may not even be
the case, or at least I don't see why it has to. And when it is the
case, I don't see the point in handling it differently from
sw_start<sw_end situation.

> In the core sw_start/end of masterID are set to '1',
> i.e there is only one masterID to deal with.

Why does this need to be done in the core and why '1'? IOW,
sw_{start,end} come straight from the driver, this new 'mshared' comes
straight from the driver, why do we need the core to modify the former
based on the latter?

> Also this patch depends on [1], so that the number of masterID
> is '1' too.

It's 7b3bb0e753 in Linus' tree, but I don't see the logical connection
in the statement above.

Regards,
--
Alex

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Re: [RESEND PATCH V4 1/4] stm class: provision for statically assigned masterIDs Alexander Shishkin <alexander.shishkin@linux.intel.com> - 2016-03-21 08:50 +0100
  Re: [RESEND PATCH V4 1/4] stm class: provision for statically  assigned masterIDs Mathieu Poirier <mathieu.poirier@linaro.org> - 2016-03-21 20:40 +0100
    Re: [RESEND PATCH V4 1/4] stm class: provision for statically assigned masterIDs Alexander Shishkin <alexander.shishkin@linux.intel.com> - 2016-03-31 15:30 +0200
      Re: [RESEND PATCH V4 1/4] stm class: provision for statically  assigned masterIDs Mathieu Poirier <mathieu.poirier@linaro.org> - 2016-03-31 18:20 +0200

csiph-web