From: sashiko-bot@kernel.org
To: "Vladimir Kondratiev" <vladimir.kondratiev@mobileye.com>
Cc: linux-perf-users@vger.kernel.org, devicetree@vger.kernel.org,
robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH 3/6] perf: Add Arteris FlexNoC packet probe PMU driver
Date: Mon, 30 Nov 2026 13:08:38 +0000 [thread overview]
Message-ID: <sashiko-outbox-241160@kernel.org> (raw)
In-Reply-To: <20261130-flexnoc-pmu-v1-3-76c1ecf6f188@mobileye.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [High] perf: arteris_flexnoc: filter 0 status..usermask offsets point
to filter 1
--
commit 03ed30d92a28fb0df83cc016959b4cc197b0d59f
Author: Vladimir Kondratiev <vladimir.kondratiev@mobileye.com>
perf: Add Arteris FlexNoC packet probe PMU driver
This commit adds a perf PMU driver and documentation for packet probe
statistics counters and packet filters in Arteris FlexNoC interconnects.
> diff --git a/drivers/perf/arteris_flexnoc_pmu.c b/drivers/perf/arteris_flexnoc_pmu.c
> new file mode 100644
> index 0000000000000..0d2a3268079ae
> --- /dev/null
> +++ b/drivers/perf/arteris_flexnoc_pmu.c
[ ... ]
> +/*
> + * Registers of packet filter 0. The registers of filter N are 0x60 * N
> + * further, but only filter 0 is used.
> + * Mind the gap between the OPCODE (0x09c) and STATUS (0x100)
> + */
> +#define FLEXNOC_F0_ROUTEIDBASE 0x080
> +#define FLEXNOC_F0_ROUTEIDMASK 0x084
> +#define FLEXNOC_F0_ADDRBASE_LOW 0x088
> +#define FLEXNOC_F0_ADDRBASE_HIGH 0x08c
> +#define FLEXNOC_F0_WINDOWSIZE 0x090
> +#define FLEXNOC_F0_SECURITYBASE 0x094
> +#define FLEXNOC_F0_SECURITYMASK 0x098
> +#define FLEXNOC_F0_OPCODE 0x09c
> +#define FLEXNOC_OPCODE_RD BIT(0)
> +#define FLEXNOC_OPCODE_WR BIT(1)
> +#define FLEXNOC_OPCODE_LOCK BIT(2)
> +#define FLEXNOC_OPCODE_URG BIT(3)
> +#define FLEXNOC_F0_STATUS 0x100
> +#define FLEXNOC_STATUS_REQ BIT(0)
> +#define FLEXNOC_STATUS_RSP BIT(1)
> +#define FLEXNOC_F0_LENGTH 0x104
> +#define FLEXNOC_F0_URGENCY 0x108
> +#define FLEXNOC_F0_USERBASE 0x10c
> +#define FLEXNOC_F0_USERMASK 0x110
> +#define FLEXNOC_F0_USERBASE_HIGH 0x114
> +#define FLEXNOC_F0_USERMASK_HIGH 0x118
[Severity: High]
Are FLEXNOC_F0_STATUS through FLEXNOC_F0_USERMASK_HIGH at 0x0a0..0x0b8
rather than 0x100..0x118?
With a filter stride of 0x60 starting at 0x080, filter 0 spans
0x080..0x0df and filter 1 starts at 0x0e0, so 0x100..0x118 are filter 1's
STATUS through USERMASK_HIGH registers (0x0e0 + 0x20..0x38).
flexnoc_pmu_detect_filters() and flexnoc_pmu_filter_program() therefore
probe and write filter 1 while leaving filter 0's status, length, urgency,
and user mask registers at 0x0a0..0x0b8 unprogrammed, and access
unimplemented offsets on probes synthesized with a single filter.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261130-flexnoc-pmu-v1-0-76c1ecf6f188@mobileye.com?part=3
next prev parent reply other threads:[~2026-11-30 13:08 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 12:51 [PATCH 0/6] perf: PMU for Arteris FlexNoC Vladimir Kondratiev
2026-11-30 12:51 ` [PATCH 1/6] dt-bindings: vendor-prefixes: Add arteris Vladimir Kondratiev
2026-11-30 12:51 ` [PATCH 2/6] dt-bindings: perf: Add Arteris FlexNoC interconnect Vladimir Kondratiev
2026-11-30 12:51 ` [PATCH 3/6] perf: Add Arteris FlexNoC packet probe PMU driver Vladimir Kondratiev
2026-11-30 13:08 ` sashiko-bot [this message]
2026-11-30 13:28 ` Vladimir Kondratiev
2026-11-30 12:51 ` [PATCH 4/6] MAINTAINERS: Add entry for Arteris FlexNoC PMU Vladimir Kondratiev
2026-11-30 12:51 ` [PATCH 5/6] mips: dts: eyeq6h: Add FlexNoC interconnects Vladimir Kondratiev
2026-11-30 12:51 ` [PATCH 6/6] MIPS: eyeq6_defconfig: Enable Arteris FlexNoC PMU Vladimir Kondratiev
2026-11-30 13:08 ` [PATCH 0/6] perf: PMU for Arteris FlexNoC sashiko-bot
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=sashiko-outbox-241160@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=vladimir.kondratiev@mobileye.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.