Chunyan Zhang writes:
> The type of masterID is defined as 'unsigned int', theoretically one
> can set masterID with a number larger than 'INT_MAX' as long as
> 'stm_data::sw_end' is larger than 'INT_MAX'.
>
> Also, 'stm_data::start' and 'stm_data::end' is initialized in respective
> drivers
Mathieu Poirier <mathieu.poir...@linaro.org> writes:
> On 21 March 2016 at 01:47, Alexander Shishkin
> <alexander.shish...@linux.intel.com> wrote:
>> Chunyan Zhang <zhang.chun...@linaro.org> writes:
>>
>>> From: Mathieu Poirier <mathieu.poir..
Mathieu Poirier writes:
> On 21 March 2016 at 01:47, Alexander Shishkin
> wrote:
>> Chunyan Zhang writes:
>>
>>> From: Mathieu Poirier
>>>
>>> Some architecture like ARM assign masterIDs at the HW design
>>> phase. Those are therefor
Commit-ID: 981a4cb380d3dff7010ce9f89618064a254eab8c
Gitweb: http://git.kernel.org/tip/981a4cb380d3dff7010ce9f89618064a254eab8c
Author: Alexander Shishkin <alexander.shish...@linux.intel.com>
AuthorDate: Fri, 4 Mar 2016 15:42:49 +0200
Committer: Ingo Molnar <mi...@kernel.org>
Commit-ID: 981a4cb380d3dff7010ce9f89618064a254eab8c
Gitweb: http://git.kernel.org/tip/981a4cb380d3dff7010ce9f89618064a254eab8c
Author: Alexander Shishkin
AuthorDate: Fri, 4 Mar 2016 15:42:49 +0200
Committer: Ingo Molnar
CommitDate: Thu, 31 Mar 2016 10:30:44 +0200
perf/x86/intel/bts
Commit-ID: 66d219014a4ee47ad4ca2b9db5fe6547353e2a56
Gitweb: http://git.kernel.org/tip/66d219014a4ee47ad4ca2b9db5fe6547353e2a56
Author: Alexander Shishkin <alexander.shish...@linux.intel.com>
AuthorDate: Fri, 4 Mar 2016 15:42:48 +0200
Committer: Ingo Molnar <mi...@kernel.org>
Commit-ID: 66d219014a4ee47ad4ca2b9db5fe6547353e2a56
Gitweb: http://git.kernel.org/tip/66d219014a4ee47ad4ca2b9db5fe6547353e2a56
Author: Alexander Shishkin
AuthorDate: Fri, 4 Mar 2016 15:42:48 +0200
Committer: Ingo Molnar
CommitDate: Thu, 31 Mar 2016 10:30:43 +0200
perf/x86/intel/pt
Commit-ID: af5bb4ed1254a378b6028c09e58bdcc1cd9bf5b3
Gitweb: http://git.kernel.org/tip/af5bb4ed1254a378b6028c09e58bdcc1cd9bf5b3
Author: Alexander Shishkin <alexander.shish...@linux.intel.com>
AuthorDate: Fri, 4 Mar 2016 15:42:47 +0200
Committer: Ingo Molnar <mi...@kernel.org>
Commit-ID: af5bb4ed1254a378b6028c09e58bdcc1cd9bf5b3
Gitweb: http://git.kernel.org/tip/af5bb4ed1254a378b6028c09e58bdcc1cd9bf5b3
Author: Alexander Shishkin
AuthorDate: Fri, 4 Mar 2016 15:42:47 +0200
Committer: Ingo Molnar
CommitDate: Thu, 31 Mar 2016 10:30:43 +0200
perf/ring_buffer
Commit-ID: 95ff4ca26c492fc1ed7751f5dd7ab7674b54f4e0
Gitweb: http://git.kernel.org/tip/95ff4ca26c492fc1ed7751f5dd7ab7674b54f4e0
Author: Alexander Shishkin <alexander.shish...@linux.intel.com>
AuthorDate: Wed, 2 Dec 2015 18:41:11 +0200
Committer: Ingo Molnar <mi...@kernel.org>
Commit-ID: dcb10a967ce82d5ad20570693091139ae716ff76
Gitweb: http://git.kernel.org/tip/dcb10a967ce82d5ad20570693091139ae716ff76
Author: Alexander Shishkin <alexander.shish...@linux.intel.com>
AuthorDate: Fri, 4 Mar 2016 15:42:45 +0200
Committer: Ingo Molnar <mi...@kernel.org>
Commit-ID: 95ff4ca26c492fc1ed7751f5dd7ab7674b54f4e0
Gitweb: http://git.kernel.org/tip/95ff4ca26c492fc1ed7751f5dd7ab7674b54f4e0
Author: Alexander Shishkin
AuthorDate: Wed, 2 Dec 2015 18:41:11 +0200
Committer: Ingo Molnar
CommitDate: Thu, 31 Mar 2016 10:30:42 +0200
perf/core: Free AUX
Commit-ID: dcb10a967ce82d5ad20570693091139ae716ff76
Gitweb: http://git.kernel.org/tip/dcb10a967ce82d5ad20570693091139ae716ff76
Author: Alexander Shishkin
AuthorDate: Fri, 4 Mar 2016 15:42:45 +0200
Committer: Ingo Molnar
CommitDate: Thu, 31 Mar 2016 10:30:41 +0200
perf/ring_buffer
Commit-ID: 201c2f85bd0bc13b712d9c0b3d11251b182e06ae
Gitweb: http://git.kernel.org/tip/201c2f85bd0bc13b712d9c0b3d11251b182e06ae
Author: Alexander Shishkin <alexander.shish...@linux.intel.com>
AuthorDate: Mon, 21 Mar 2016 10:02:42 +0200
Committer: Ingo Molnar <mi...@kernel.org>
Commit-ID: 201c2f85bd0bc13b712d9c0b3d11251b182e06ae
Gitweb: http://git.kernel.org/tip/201c2f85bd0bc13b712d9c0b3d11251b182e06ae
Author: Alexander Shishkin
AuthorDate: Mon, 21 Mar 2016 10:02:42 +0200
Committer: Ingo Molnar
CommitDate: Thu, 31 Mar 2016 09:54:07 +0200
perf/core: Don't
will have called ->release()
>* and that will take care of freeing the event.
>*/
> - if (!event_file)
> + if (IS_ERR_OR_NULL(event_file))
> free_event(event);
By this time, we have already checked for IS_ERR(event_file) once, why
not just fix it up there like so:
gt;*/
> - if (!event_file)
> + if (IS_ERR_OR_NULL(event_file))
> free_event(event);
By this time, we have already checked for IS_ERR(event_file) once, why
not just fix it up there like so:
---
From: Alexander Shishkin
Date: Mon, 21 Mar 2016 09:55:09 +0200
Subject: perf: Don't leak
Chunyan Zhang writes:
> From: Mathieu Poirier
>
> 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
Chunyan Zhang writes:
> From: Mathieu Poirier
>
> 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
Peter Zijlstra <pet...@infradead.org> writes:
> On Mon, Mar 14, 2016 at 04:04:44PM +0200, Alexander Shishkin wrote:
>> Peter Zijlstra <pet...@infradead.org> writes:
>
>> >> +static void perf_pmu_output_stop(struct perf_event *event)
>> >> +{
Peter Zijlstra writes:
> On Mon, Mar 14, 2016 at 04:04:44PM +0200, Alexander Shishkin wrote:
>> Peter Zijlstra writes:
>
>> >> +static void perf_pmu_output_stop(struct perf_event *event)
>> >> +{
>> >> + int cpu, err;
>> >>
Peter Zijlstra <pet...@infradead.org> writes:
> On Fri, Mar 04, 2016 at 03:42:46PM +0200, Alexander Shishkin wrote:
>> @@ -4649,10 +4679,22 @@ static void perf_mmap_close(struct vm_area_struct
>> *vma)
>> */
>> if (rb_has_aux(rb)
Peter Zijlstra writes:
> On Fri, Mar 04, 2016 at 03:42:46PM +0200, Alexander Shishkin wrote:
>> @@ -4649,10 +4679,22 @@ static void perf_mmap_close(struct vm_area_struct
>> *vma)
>> */
>> if (rb_has_aux(rb) && vma->vm_pgoff == rb->aux_pgoff
it,
> and find the event wasn't actually stopped anymore.
>
> This would tickle a WARN in the x86-pmu code which isn't expecting to
> start a !stopped event.
>
> Signed-off-by: Peter Zijlstra (Intel) <pet...@infradead.org>
FWIW,
Reviewed-by: Alexander Shishkin <alexander.shish...@linux.intel.com>
Cheers,
--
Alex
n't actually stopped anymore.
>
> This would tickle a WARN in the x86-pmu code which isn't expecting to
> start a !stopped event.
>
> Signed-off-by: Peter Zijlstra (Intel)
FWIW,
Reviewed-by: Alexander Shishkin
Cheers,
--
Alex
Commit-ID: 927a5570855836e5d5859a80ce7e91e963545e8f
Gitweb: http://git.kernel.org/tip/927a5570855836e5d5859a80ce7e91e963545e8f
Author: Alexander Shishkin <alexander.shish...@linux.intel.com>
AuthorDate: Wed, 2 Mar 2016 13:24:14 +0200
Committer: Ingo Molnar <mi...@kernel.org>
Commit-ID: 927a5570855836e5d5859a80ce7e91e963545e8f
Gitweb: http://git.kernel.org/tip/927a5570855836e5d5859a80ce7e91e963545e8f
Author: Alexander Shishkin
AuthorDate: Wed, 2 Mar 2016 13:24:14 +0200
Committer: Ingo Molnar
CommitDate: Tue, 8 Mar 2016 12:18:31 +0100
perf/core: Fix
} to
pt_event_{start,stop}. As a bonus, we get rid of pt_buffer_is_full(),
which is already taken care of by perf_aux_output_begin() anyway.
Signed-off-by: Alexander Shishkin <alexander.shish...@linux.intel.com>
Cc: Mathieu Poirier <mathieu.poir...@linaro.org>
---
arch/x86/events/int
s the last AUX reference has to happen
in perf_mmap_close() on that AUX area.
Signed-off-by: Alexander Shishkin <alexander.shish...@linux.intel.com>
---
kernel/events/core.c| 100 +++-
kernel/events/internal.h| 1 -
kernel/events/rin
} to
bts_event_{start,stop}. As a bonus, we get rid of bts_buffer_is_full(),
which is already taken care of by perf_aux_output_begin() anyway.
Signed-off-by: Alexander Shishkin <alexander.shish...@linux.intel.com>
Cc: Mathieu Poirier <mathieu.poir...@linaro.org>
---
arch/x86/events/intel
.
Signed-off-by: Alexander Shishkin <alexander.shish...@linux.intel.com>
---
kernel/events/ring_buffer.c | 7 +++
1 file changed, 7 insertions(+)
diff --git a/kernel/events/ring_buffer.c b/kernel/events/ring_buffer.c
index 1faad2cfdb..af5fbc7e91 100644
--- a/kernel/events/ring_buffer.c
+++ b/
.
Signed-off-by: Alexander Shishkin
---
kernel/events/ring_buffer.c | 7 +++
1 file changed, 7 insertions(+)
diff --git a/kernel/events/ring_buffer.c b/kernel/events/ring_buffer.c
index 1faad2cfdb..af5fbc7e91 100644
--- a/kernel/events/ring_buffer.c
+++ b/kernel/events/ring_buffer.c
@@ -288,6
} to
pt_event_{start,stop}. As a bonus, we get rid of pt_buffer_is_full(),
which is already taken care of by perf_aux_output_begin() anyway.
Signed-off-by: Alexander Shishkin
Cc: Mathieu Poirier
---
arch/x86/events/intel/pt.c | 85 +++---
1 file changed, 27
s the last AUX reference has to happen
in perf_mmap_close() on that AUX area.
Signed-off-by: Alexander Shishkin
---
kernel/events/core.c| 100 +++-
kernel/events/internal.h| 1 -
kernel/events/ring_buffer.c | 37 +---
3 files ch
} to
bts_event_{start,stop}. As a bonus, we get rid of bts_buffer_is_full(),
which is already taken care of by perf_aux_output_begin() anyway.
Signed-off-by: Alexander Shishkin
Cc: Mathieu Poirier
---
arch/x86/events/intel/bts.c | 105
1 file changed, 48
In order to ensure safe aux buffer management, we rely on the assumption
that pmu::stop() stops its ongoing aux transaction and not just the hw.
This patch documents this requirement for perf_aux_output_{begin,end}()
apis.
Signed-off-by: Alexander Shishkin <alexander.shish...@linux.intel.com&
In order to ensure safe aux buffer management, we rely on the assumption
that pmu::stop() stops its ongoing aux transaction and not just the hw.
This patch documents this requirement for perf_aux_output_{begin,end}()
apis.
Signed-off-by: Alexander Shishkin
Cc: Mathieu Poirier
---
kernel
Hi Peter,
Here's a long overdue update of the previous attempt to untangle the
aux buffer unmapping and deallocation. Most of the work is in 2/5.
Alexander Shishkin (5):
perf: Refuse to begin aux transaction after aux_mmap_count drops
perf: Free aux pages in unmap path
perf: Document aux
Hi Peter,
Here's a long overdue update of the previous attempt to untangle the
aux buffer unmapping and deallocation. Most of the work is in 2/5.
Alexander Shishkin (5):
perf: Refuse to begin aux transaction after aux_mmap_count drops
perf: Free aux pages in unmap path
perf: Document aux
scheduler's jump label even though we'd still have active events in the
system, thereby facilitating the arrival of the infernal regions upon us.
I'm fixing this by moving account_event() inside perf_event_alloc().
Signed-off-by: Alexander Shishkin <alexander.shish...@linux.intel.com>
---
kernel/
scheduler's jump label even though we'd still have active events in the
system, thereby facilitating the arrival of the infernal regions upon us.
I'm fixing this by moving account_event() inside perf_event_alloc().
Signed-off-by: Alexander Shishkin
---
kernel/events/core.c | 7 +++
1 file changed, 3
kan.li...@intel.com writes:
> From: Kan Liang
>
> perf_event_aux funciton goes through pmus list to find proper auxiliary
> events to output. The pmus list consists of all possible pmus in the
> system, that may or may not be running at the moment, while the
> auxiliary
kan.li...@intel.com writes:
> From: Kan Liang
>
> perf_event_aux funciton goes through pmus list to find proper auxiliary
> events to output. The pmus list consists of all possible pmus in the
> system, that may or may not be running at the moment, while the
> auxiliary events must be from the
Greg KH <gre...@linuxfoundation.org> writes:
> On Mon, Feb 15, 2016 at 06:08:07PM +0200, Alexander Shishkin wrote:
>> Hi Greg,
>>
>> These are patches I have queued for the next merge window. Please
>> consider pulling.
>>
Greg KH writes:
> On Mon, Feb 15, 2016 at 06:08:07PM +0200, Alexander Shishkin wrote:
>> Hi Greg,
>>
>> These are patches I have queued for the next merge window. Please
>> consider pulling.
>>
>> The following changes since commit 1b79dff672ca09a5461cc
nux.com>
Signed-off-by: Alexander Shishkin <alexander.shish...@linux.intel.com>
---
drivers/hwtracing/stm/core.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/hwtracing/stm/core.c b/drivers/hwtracing/stm/core.c
index aef8ddb244..cdec240bd6 100644
--- a/drivers/hwtrac
From: Lucas Tanure
The return type "unsigned int" was used by the stm_find_master_chan function
despite of the aspect that it will eventually return a negative error code.
Done with the help of Coccinelle.
Signed-off-by: Lucas Tanure
Signed-off-by: Alexander Shishkin
---
drivers
avoid memory leaks after unloading the stm driver.
Signed-off-by: Chunyan Zhang <zhang.chun...@linaro.org>
[alexander.shish...@intel.com: re-wrote the commit message]
Signed-off-by: Alexander Shishkin <alexander.shish...@linux.intel.com>
---
drivers/hwtracing/stm/core.c | 2 +-
unloading the stm driver.
Signed-off-by: Chunyan Zhang
[alexander.shish...@intel.com: re-wrote the commit message]
Signed-off-by: Alexander Shishkin
---
drivers/hwtracing/stm/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hwtracing/stm/core.c b/drivers/hwtracing/stm
;
Signed-off-by: Alexander Shishkin <alexander.shish...@linux.intel.com>
---
drivers/hwtracing/intel_th/msu.c | 7 +++
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/drivers/hwtracing/intel_th/msu.c b/drivers/hwtracing/intel_th/msu.c
index 3c793bbf6a..d9d6022c5a 100644
--- a
From: Laurent FERT
Right now, reading from msc character device will leak its's user count
on read error.
This patch makes sure resources are released when there is no data left
to read from the buffer.
Signed-off-by: Laurent FERT
Signed-off-by: Alexander Shishkin
---
drivers/hwtracing
the driver to automatically set scratchpad register
bits according to the output configuration that's enabled.
Based on work by Yann Fouassier.
Signed-off-by: Yann Fouassier <yann.fouass...@intel.com>
Signed-off-by: Alexander Shishkin <alexander.shish...@linux.intel.com>
---
drivers/hwtrac
the driver to automatically set scratchpad register
bits according to the output configuration that's enabled.
Based on work by Yann Fouassier.
Signed-off-by: Yann Fouassier
Signed-off-by: Alexander Shishkin
---
drivers/hwtracing/intel_th/core.c | 5 +
drivers/hwtracing/intel_th/gth.c
From: Laurent FERT <laurent.f...@intel.com>
Fix offset for the second pass on the wrapped block when iterating over
memory in multi-block mode, otherwise wrong part of the block will get
copied.
Signed-off-by: Laurent FERT <laurent.f...@intel.com>
Signed-off-by: Alexan
From: Laurent FERT
Fix offset for the second pass on the wrapped block when iterating over
memory in multi-block mode, otherwise wrong part of the block will get
copied.
Signed-off-by: Laurent FERT
Signed-off-by: Alexander Shishkin
---
drivers/hwtracing/intel_th/msu.c | 2 +-
1 file changed
STM framework should be able to handle multiple STM devices at a time,
each one with its own master allocation policy.
This patch changes dummy_stm driver to create multiple STM sinks to
help testing the framework.
Signed-off-by: Alexander Shishkin <alexander.shish...@linux.intel.
STM framework should be able to handle multiple STM devices at a time,
each one with its own master allocation policy.
This patch changes dummy_stm driver to create multiple STM sinks to
help testing the framework.
Signed-off-by: Alexander Shishkin
---
drivers/hwtracing/stm/dummy_stm.c | 57
prohibiting dots from being used in policy names.
Suggested-by: Chunyan Zhang <zhang.chun...@linaro.org>
Signed-off-by: Alexander Shishkin <alexander.shish...@linux.intel.com>
---
drivers/hwtracing/stm/policy.c | 7 ---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --g
prohibiting dots from being used in policy names.
Suggested-by: Chunyan Zhang
Signed-off-by: Alexander Shishkin
---
drivers/hwtracing/stm/policy.c | 7 ---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/drivers/hwtracing/stm/policy.c b/drivers/hwtracing/stm/policy.c
index
.
Signed-off-by: Alexander Shishkin <alexander.shish...@linux.intel.com>
---
drivers/hwtracing/stm/core.c | 17 +
drivers/hwtracing/stm/stm.h | 1 +
2 files changed, 18 insertions(+)
diff --git a/drivers/hwtracing/stm/core.c b/drivers/hwtracing/stm/core.c
index 4a626d8990..f6ad
.
Signed-off-by: Alexander Shishkin
---
drivers/hwtracing/stm/core.c | 17 +
drivers/hwtracing/stm/stm.h | 1 +
2 files changed, 18 insertions(+)
diff --git a/drivers/hwtracing/stm/core.c b/drivers/hwtracing/stm/core.c
index 4a626d8990..f6ade21729 100644
--- a/drivers/hwtracing/stm
and annotates each site so that it's easier to verify
correctness by reading the code.
Signed-off-by: Alexander Shishkin <alexander.shish...@linux.intel.com>
---
drivers/hwtracing/stm/core.c | 20 ++--
1 file changed, 14 insertions(+), 6 deletions(-)
diff --git a/drivers/hwt
and annotates each site so that it's easier to verify
correctness by reading the code.
Signed-off-by: Alexander Shishkin
---
drivers/hwtracing/stm/core.c | 20 ++--
1 file changed, 14 insertions(+), 6 deletions(-)
diff --git a/drivers/hwtracing/stm/core.c b/drivers/hwtracing/stm
the locks, it will release them and
repeat the whole unlinking procedure from the beginning, unless the
other contender beat us to it.
Signed-off-by: Alexander Shishkin <alexander.shish...@linux.intel.com>
---
drivers/hwtracing/stm/core.c | 54 ++--
the locks, it will release them and
repeat the whole unlinking procedure from the beginning, unless the
other contender beat us to it.
Signed-off-by: Alexander Shishkin
---
drivers/hwtracing/stm/core.c | 54 ++--
1 file changed, 42 insertions(+), 12
STM device's link callback has the power to abort master/channel
assignment by returning a negative error code. Use this in dummy
stm device to optionally abort assigning certain channel IDs.
This is useful as fault injection into the stm class core, for
testing purposes.
Signed-off-by: Alexander
STM device's link callback has the power to abort master/channel
assignment by returning a negative error code. Use this in dummy
stm device to optionally abort assigning certain channel IDs.
This is useful as fault injection into the stm class core, for
testing purposes.
Signed-off-by: Alexander
STM device's unlink callback is never actually called from anywhere in
the stm class code.
This patch adds calls to stm driver's unlink method after the unlinking
has succeeded.
Signed-off-by: Alexander Shishkin <alexander.shish...@linux.intel.com>
---
drivers/hwtracing/stm/core.
STM device's unlink callback is never actually called from anywhere in
the stm class code.
This patch adds calls to stm driver's unlink method after the unlinking
has succeeded.
Signed-off-by: Alexander Shishkin
---
drivers/hwtracing/stm/core.c | 23 +++
include/linux/stm.h
these issues.
Signed-off-by: Alexander Shishkin <alexander.shish...@linux.intel.com>
---
drivers/hwtracing/intel_th/sth.c | 11 ---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/drivers/hwtracing/intel_th/sth.c b/drivers/hwtracing/intel_th/sth.c
index 56101c33e1..e1ae
Most of the intel_th core supports multiple co-existing TH devices,
except for output device nodes, where intel_th device id is hardcoded
to be zero.
Fix this by fetching the actual intel_th device id from the parent
device's drvdata.
Signed-off-by: Alexander Shishkin <alexander.sh
the stm core will have to take appropriate action.
For now, we need to account for the possibility that the stm driver may
not support certain combinations of packet type/flags, in which case
it is expected to signal an error.
Signed-off-by: Alexander Shishkin <alexander.shish...@linux.intel.
these issues.
Signed-off-by: Alexander Shishkin
---
drivers/hwtracing/intel_th/sth.c | 11 ---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/drivers/hwtracing/intel_th/sth.c b/drivers/hwtracing/intel_th/sth.c
index 56101c33e1..e1aee61dd7 100644
--- a/drivers/hwtracing/intel_th
Most of the intel_th core supports multiple co-existing TH devices,
except for output device nodes, where intel_th device id is hardcoded
to be zero.
Fix this by fetching the actual intel_th device id from the parent
device's drvdata.
Signed-off-by: Alexander Shishkin
---
drivers/hwtracing
the stm core will have to take appropriate action.
For now, we need to account for the possibility that the stm driver may
not support certain combinations of packet type/flags, in which case
it is expected to signal an error.
Signed-off-by: Alexander Shishkin
---
drivers/hwtracing/stm/core.c | 19
-by: Alexander Shishkin <alexander.shish...@linux.intel.com>
---
drivers/hwtracing/stm/Kconfig | 11
drivers/hwtracing/stm/Makefile| 2 +
drivers/hwtracing/stm/heartbeat.c | 130 ++
3 files changed, 143 insertions(+)
create mode 100644 d
-by: Alexander Shishkin
---
drivers/hwtracing/stm/Kconfig | 11
drivers/hwtracing/stm/Makefile| 2 +
drivers/hwtracing/stm/heartbeat.c | 130 ++
3 files changed, 143 insertions(+)
create mode 100644 drivers/hwtracing/stm/heartbeat.c
diff --git
does happen.
This patch unifies the unlocking in the exit path of
__stm_source_link_drop() to fix this.
Reported-by: Laurent Fert <laurent.f...@intel.com>
Signed-off-by: Alexander Shishkin <alexander.shish...@linux.intel.com>
---
drivers/hwtracing/stm/core.c | 7 +++
1 fil
Already during the subdevice initialization time, devices will need
to reference Intel TH controller descriptor structure.
This patch moves setting the drvdata from the pci glue to intel_th
core, before subdevices are populated.
Signed-off-by: Alexander Shishkin <alexander.sh
There's a commented-out function in the GTH driver that's a leftover
from previous versions of the driver, where we tried to inherit the
pre-existing configuration, which didn't prove to be a sound idea.
This patch removes the function. No functional changes.
Signed-off-by: Alexander Shishkin
does happen.
This patch unifies the unlocking in the exit path of
__stm_source_link_drop() to fix this.
Reported-by: Laurent Fert
Signed-off-by: Alexander Shishkin
---
drivers/hwtracing/stm/core.c | 7 +++
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/drivers/hwtracing/stm
Already during the subdevice initialization time, devices will need
to reference Intel TH controller descriptor structure.
This patch moves setting the drvdata from the pci glue to intel_th
core, before subdevices are populated.
Signed-off-by: Alexander Shishkin
---
drivers/hwtracing/intel_th
There's a commented-out function in the GTH driver that's a leftover
from previous versions of the driver, where we tried to inherit the
pre-existing configuration, which didn't prove to be a sound idea.
This patch removes the function. No functional changes.
Signed-off-by: Alexander Shishkin
Hi Greg,
These are the patches I have queued for the next merge window. Please
consider applying.
Alexander Shishkin (16):
intel_th: Depend on HAS_IOMEM
intel_th: gth: Remove commented-out code
intel_th: Update scratchpad bits according to enabled output activity
intel_th: sth: Sanitize
Hi Greg,
These are the patches I have queued for the next merge window. Please
consider applying.
Alexander Shishkin (16):
intel_th: Depend on HAS_IOMEM
intel_th: gth: Remove commented-out code
intel_th: Update scratchpad bits according to enabled output activity
intel_th: sth: Sanitize
This driver requires io memory to operate, so don't even consider it
for NO_IOMEM architectures.
Reported-by: Richard Weinberger <rich...@nod.at>
Signed-off-by: Alexander Shishkin <alexander.shish...@linux.intel.com>
---
drivers/hwtracing/intel_th/Kconfig | 2 +-
1 file changed,
This driver requires io memory to operate, so don't even consider it
for NO_IOMEM architectures.
Reported-by: Richard Weinberger
Signed-off-by: Alexander Shishkin
---
drivers/hwtracing/intel_th/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hwtracing
://github.com/virtuoso/linux-perf.git stm-for-greg
for you to fetch changes up to fb756bc533ca533c2f415b74589b7172c3456b7c:
stm class: dummy_stm: Add link callback for fault injection (2016-02-15
15:54:37 +0200)
Alexander Shishkin (16
://github.com/virtuoso/linux-perf.git stm-for-greg
for you to fetch changes up to fb756bc533ca533c2f415b74589b7172c3456b7c:
stm class: dummy_stm: Add link callback for fault injection (2016-02-15
15:54:37 +0200)
Alexander Shishkin (16
Chunyan Zhang <zhang.chun...@linaro.org> writes:
> On Tue, Feb 9, 2016 at 6:12 PM, Alexander Shishkin
> <alexander.shish...@linux.intel.com> wrote:
>> Chunyan Zhang <zhang.chun...@linaro.org> writes:
>>
>>> It would be broken if stm_data->sw_st
Chunyan Zhang writes:
> On Tue, Feb 9, 2016 at 6:12 PM, Alexander Shishkin
> wrote:
>> Chunyan Zhang writes:
>>
>>> It would be broken if stm_data->sw_start isn't zero, because that
>>> stp_master_free() get the 'master' with __stm_master()/stm_master(),
STM device's unlink callback is never actually called from anywhere in
the stm class code.
This patch adds calls to stm driver's unlink method after the unlinking
has succeeded.
Signed-off-by: Alexander Shishkin
---
drivers/hwtracing/stm/core.c | 23 +++
include/linux/stm.h
STM device's link callback has the power to abort master/channel
assignment by returning a negative error code. Use this in dummy
stm device to optionally abort assigning certain channel IDs.
This is useful as fault injection into the stm class core, for
testing purposes.
Signed-off-by: Alexander
-by: Alexander Shishkin
---
drivers/hwtracing/stm/Kconfig | 11
drivers/hwtracing/stm/Makefile| 2 +
drivers/hwtracing/stm/heartbeat.c | 130 ++
3 files changed, 143 insertions(+)
create mode 100644 drivers/hwtracing/stm/heartbeat.c
diff --git
STM framework should be able to handle multiple STM devices at a time,
each one with its own master allocation policy.
This patch changes dummy_stm driver to create multiple STM sinks to
help testing the framework.
Signed-off-by: Alexander Shishkin
---
drivers/hwtracing/stm/dummy_stm.c | 57
the locks, it will release them and
repeat the whole unlinking procedure from the beginning, unless the
other contender beat us to it.
Signed-off-by: Alexander Shishkin
---
drivers/hwtracing/stm/core.c | 54 ++--
1 file changed, 42 insertions(+), 12
and annotates each site so that it's easier to verify
correctness by reading the code.
Signed-off-by: Alexander Shishkin
---
drivers/hwtracing/stm/core.c | 20 ++--
1 file changed, 14 insertions(+), 6 deletions(-)
diff --git a/drivers/hwtracing/stm/core.c b/drivers/hwtracing/stm
does happen.
This patch unifies the unlocking in the exit path of
__stm_source_link_drop() to fix this.
Reported-by: Laurent Fert
Signed-off-by: Alexander Shishkin
---
drivers/hwtracing/stm/core.c | 7 +++
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/drivers/hwtracing/stm
.
Signed-off-by: Alexander Shishkin
---
drivers/hwtracing/stm/core.c | 17 +
drivers/hwtracing/stm/stm.h | 1 +
2 files changed, 18 insertions(+)
diff --git a/drivers/hwtracing/stm/core.c b/drivers/hwtracing/stm/core.c
index fb5a6a582b..6a254ce4b9 100644
--- a/drivers/hwtracing/stm
prohibiting dots from being used in policy names.
Suggested-by: Chunyan Zhang
Signed-off-by: Alexander Shishkin
---
drivers/hwtracing/stm/policy.c | 7 ---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/drivers/hwtracing/stm/policy.c b/drivers/hwtracing/stm/policy.c
index
1301 - 1400 of 2775 matches
Mail list logo