Patch "coresight: perf: Release Coresight path when alloc trace id failed" has been added to the 6.3-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    coresight: perf: Release Coresight path when alloc trace id failed

to the 6.3-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     coresight-perf-release-coresight-path-when-alloc-tra.patch
and it can be found in the queue-6.3 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 41079fc7fc10d6ca32049d4f9a5dba7a1d707329
Author: Ruidong Tian <tianruidong@xxxxxxxxxxxxxxxxx>
Date:   Tue Apr 25 11:24:16 2023 +0800

    coresight: perf: Release Coresight path when alloc trace id failed
    
    [ Upstream commit 04ac7f98b92181179ea84439642493f3826d04a2 ]
    
    Error handler for etm_setup_aux can not release coresight path because
    cpu mask was cleared when coresight_trace_id_get_cpu_id failed.
    
    Call coresight_release_path function explicitly when alloc trace id filed.
    
    Fixes: 4ff1fdb4125c4 ("coresight: perf: traceid: Add perf ID allocation and notifiers")
    Signed-off-by: Ruidong Tian <tianruidong@xxxxxxxxxxxxxxxxx>
    Signed-off-by: Suzuki K Poulose <suzuki.poulose@xxxxxxx>
    Link: https://lore.kernel.org/r/20230425032416.125542-1-tianruidong@xxxxxxxxxxxxxxxxx
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/hwtracing/coresight/coresight-etm-perf.c b/drivers/hwtracing/coresight/coresight-etm-perf.c
index 711f451b69469..89e8ed214ea49 100644
--- a/drivers/hwtracing/coresight/coresight-etm-perf.c
+++ b/drivers/hwtracing/coresight/coresight-etm-perf.c
@@ -402,6 +402,7 @@ static void *etm_setup_aux(struct perf_event *event, void **pages,
 		trace_id = coresight_trace_id_get_cpu_id(cpu);
 		if (!IS_VALID_CS_TRACE_ID(trace_id)) {
 			cpumask_clear_cpu(cpu, mask);
+			coresight_release_path(path);
 			continue;
 		}
 



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux