[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Z7hTujrG-zOiBcZe@lore-desk>
Date: Fri, 21 Feb 2025 11:21:46 +0100
From: Lorenzo Bianconi <lorenzo@...nel.org>
To: Jakub Kicinski <kuba@...nel.org>
Cc: Andrew Lunn <andrew+netdev@...n.ch>,
"David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>, Paolo Abeni <pabeni@...hat.com>,
Felix Fietkau <nbd@....name>, Sean Wang <sean.wang@...iatek.com>,
Matthias Brugger <matthias.bgg@...il.com>,
AngeloGioacchino Del Regno <angelogioacchino.delregno@...labora.com>,
Philipp Zabel <p.zabel@...gutronix.de>,
Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
"Chester A. Unal" <chester.a.unal@...nc9.com>,
Daniel Golle <daniel@...rotopia.org>,
DENG Qingfang <dqfext@...il.com>, Andrew Lunn <andrew@...n.ch>,
Vladimir Oltean <olteanv@...il.com>, netdev@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org,
linux-mediatek@...ts.infradead.org, devicetree@...r.kernel.org,
upstream@...oha.com
Subject: Re: [PATCH net-next v5 12/15] net: airoha: Introduce Airoha NPU
support
On Feb 20, Jakub Kicinski wrote:
> On Mon, 17 Feb 2025 14:01:16 +0100 Lorenzo Bianconi wrote:
> > +static int airoha_npu_send_msg(struct airoha_npu *npu, int func_id,
> > + void *p, int size)
> > +{
> > + u16 core = 0; /* FIXME */
> > + u32 val, offset = core << 4;
> > + dma_addr_t dma_addr;
> > + void *addr;
> > + int ret;
> > +
> > + addr = kzalloc(size, GFP_ATOMIC | GFP_DMA);
>
> You need the actual "zone DMA" memory from ISA times?
> I think that's what GFP_DMA is for. Any kmalloc'd memory
> can be DMA'ed to/from.
ack, I agree. We can drop it. I will fix it in v6.
>
> > + if (dma_set_coherent_mask(dev, 0xbfffffff))
>
> Coherent mask is not contiguous on purpose?
> Quick grep reveals no such cases at present, not sure if it works.
> Maybe add a comment, at least ?
Ack, right. I think it is wrong. I will fix it in v6.
Regards,
Lorenzo
> --
> pw-bot: cr
Download attachment "signature.asc" of type "application/pgp-signature" (229 bytes)
Powered by blists - more mailing lists