From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4CA2846D083; Tue, 21 Jul 2026 18:02:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784656948; cv=none; b=p3ngeH8QHvbOxo3L7781dGkLgj6iEUfr7Qwh7OiKo+H4JXA+ReV91MLo2M4QD70c3YYax424yof+GmE0PdbLTJ+y05FUwFiwTOJo2uSkGWGJ3wFXRhHtJq4Ag4HyeXrlCpOeDvuwF8G8i8Z160jU8Vae7kpGm8Sen2TUcrvQIIg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784656948; c=relaxed/simple; bh=Jssgy/tX34rVcBmeFb0dvmnRV4QHHKNZebtLDfoSX1A=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=mRVPT50fSr1yxuBfcecoVwbEoidERl0sFCeSKhTdVlIL31N7qPkGVTQOgAJSgfUCd79BdtwgKZSFDz2NqccJHRXjapNu6UyePDDjYsu7xC3skjsmb7hnfXKFdnP8u6c2qiwvkeM7iHfZrFF7MJDb/5pwBFEONAfHoetC6++Dr0g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=mxERe6yL; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="mxERe6yL" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B1B131F000E9; Tue, 21 Jul 2026 18:02:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784656947; bh=5MTAp6bxam96/cGO/pP8oe48BrI01vuY8DMP+I54H/A=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=mxERe6yLDuuwdbuEbR1ADCcT9pA9phXQeM9lBNPVh/Z58S8B6EZLGvkoL24W6z5yE uU5gAIGa9ayJpbtpvhbhNo8rM1m5eP8uKGptmtxadzwMUJVND+Txvya5VaCVSlbdlj EAUmQuwNNSP+8oPKiMjUfUaQc/kVS5tGRLwX51FY= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Yingchao Deng , Leo Yan , Suzuki K Poulose , Sasha Levin Subject: [PATCH 6.18 0579/1611] coresight: cti: Fix DT filter signals silently ignored Date: Tue, 21 Jul 2026 17:11:35 +0200 Message-ID: <20260721152528.401901627@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260721152514.750365251@linuxfoundation.org> References: <20260721152514.750365251@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Yingchao Deng [ Upstream commit 551bb2fd5e4ed63d33aa11f07102cce5179b7595 ] In cti_plat_process_filter_sigs(), after allocating a temporary cti_trig_grp struct via kzalloc_obj(), the code never assigns tg->nr_sigs = nr_filter_sigs. Since kzalloc zero-initialises the struct, tg->nr_sigs remains 0. cti_plat_read_trig_group() guards with: if (!tgrp->nr_sigs) return 0; so it returns immediately without reading any signal indices from DT. Fix by assigning tg->nr_sigs before calling cti_plat_read_trig_group(). Fixes: a5614770ab97 ("coresight: cti: Add device tree support for custom CTI") Signed-off-by: Yingchao Deng Reviewed-by: Leo Yan Signed-off-by: Suzuki K Poulose Link: https://lore.kernel.org/r/20260426-nr_sigs-v1-1-3b9df99dab97@oss.qualcomm.com Signed-off-by: Sasha Levin --- drivers/hwtracing/coresight/coresight-cti-platform.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/hwtracing/coresight/coresight-cti-platform.c b/drivers/hwtracing/coresight/coresight-cti-platform.c index d0ae10bf612811..0ed52a693c35be 100644 --- a/drivers/hwtracing/coresight/coresight-cti-platform.c +++ b/drivers/hwtracing/coresight/coresight-cti-platform.c @@ -329,6 +329,7 @@ static int cti_plat_process_filter_sigs(struct cti_drvdata *drvdata, if (!tg) return -ENOMEM; + tg->nr_sigs = nr_filter_sigs; err = cti_plat_read_trig_group(tg, fwnode, CTI_DT_FILTER_OUT_SIGS); if (!err) drvdata->config.trig_out_filter |= tg->used_mask; -- 2.53.0