public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
From: Jakub Kicinski <kuba@kernel.org>
To: Ioana Ciornei <ioana.ciornei@nxp.com>
Cc: netdev@vger.kernel.org, Andrew Lunn <andrew+netdev@lunn.ch>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	Paolo Abeni <pabeni@redhat.com>, Shuah Khan <shuah@kernel.org>,
	Simon Horman <horms@kernel.org>,
	linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org
Subject: Re: [PATCH net-next v2 2/3] net: dpaa2-mac: retrieve MAC statistics in one firmware command
Date: Mon, 16 Mar 2026 20:41:53 -0700	[thread overview]
Message-ID: <20260316204153.4643cd16@kernel.org> (raw)
In-Reply-To: <20260312142249.297192-3-ioana.ciornei@nxp.com>

On Thu, 12 Mar 2026 16:22:48 +0200 Ioana Ciornei wrote:
> +	stats->values_dma_mem = kcalloc(num_stats, sizeof(u64), GFP_KERNEL);
> +	if (!stats->values_dma_mem)
> +		goto err_alloc_values;
> +
> +	cnt_idx = stats->idx_dma_mem;
> +	for (size_t i = 0; i < num_stats; i++)
> +		*cnt_idx++ = cpu_to_le32((u32)(counters[i].id));
> +
> +	stats->idx_iova = dma_map_single(dev, stats->idx_dma_mem,
> +					 num_stats * sizeof(u32),
> +					 DMA_TO_DEVICE);
> +	if (dma_mapping_error(dev, stats->idx_iova))

dma_alloc_noncoherent(), maybe ?

  reply	other threads:[~2026-03-17  3:41 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-12 14:22 [PATCH net-next v2 0/3] net: dpaa2-mac: export standard statistics Ioana Ciornei
2026-03-12 14:22 ` [PATCH net-next v2 1/3] net: dpaa2-mac: extend APIs related to statistics Ioana Ciornei
2026-03-17  3:39   ` Jakub Kicinski
2026-03-17  8:17     ` Ioana Ciornei
2026-03-12 14:22 ` [PATCH net-next v2 2/3] net: dpaa2-mac: retrieve MAC statistics in one firmware command Ioana Ciornei
2026-03-17  3:41   ` Jakub Kicinski [this message]
2026-03-17  8:21     ` Ioana Ciornei
2026-03-12 14:22 ` [PATCH net-next v2 3/3] net: dpaa2-mac: export standard statistics Ioana Ciornei
2026-03-17  3:42   ` Jakub Kicinski

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=20260316204153.4643cd16@kernel.org \
    --to=kuba@kernel.org \
    --cc=andrew+netdev@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=horms@kernel.org \
    --cc=ioana.ciornei@nxp.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=shuah@kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox