From: Krzysztof Kozlowski <krzk@kernel.org>
To: Yi xin Zhu <yzhu@maxlinear.com>,
"vkoul@kernel.org" <vkoul@kernel.org>,
"robh@kernel.org" <robh@kernel.org>,
"krzk+dt@kernel.org" <krzk+dt@kernel.org>,
"conor+dt@kernel.org" <conor+dt@kernel.org>,
"p.zabel@pengutronix.de" <p.zabel@pengutronix.de>,
"kees@kernel.org" <kees@kernel.org>,
"dave.jiang@intel.com" <dave.jiang@intel.com>,
"av2082000@gmail.com" <av2082000@gmail.com>,
"dmaengine@vger.kernel.org" <dmaengine@vger.kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v2 1/3] dt-bindings: lgm-dma: Added intel,dma-sw-desc property.
Date: Sun, 24 Aug 2025 12:26:56 +0200 [thread overview]
Message-ID: <5c7f78ae-01d8-40e3-a370-76953921ade9@kernel.org> (raw)
In-Reply-To: <SA1PR19MB490914561C8ADF3012814D69C231A@SA1PR19MB4909.namprd19.prod.outlook.com>
On 18/08/2025 10:41, Yi xin Zhu wrote:
> Hi Krzysztof,
>
> On 15/08/2025 18:40, Krzysztof wrote:
>>
>>
>> What is a "SoC level configuration"?
>>
>> From your explanation 1+2 it feels like consumer chooses it. Where is a full DTS
>> showing all this?
>>
>>
>>> of the DMA instances work in hardware descriptor mode while other DMA
>>> instances work in software descriptor mode or all in HW/SW mode.
>>>
>>
>> Best regards,
>> Krzysztof
>
> In the LGM SoC, The DMA instances are default connected to CBM(central buffer manager) to automate the DMA descriptors.
> It can also be detached from CBM to use it in different use cases individually.
>
> In the HW descriptor case, the device tree would be like:
>
> dma1tx: dma-controller@e7300000 {
> compatible = "intel,lgm-dma1tx";
> reg = <0xe7300000 0x1000>;
> ...
> #dma-cells = <3>;
> intel,dma-poll-cnt = <16>;
> };
>
> cbm: cbm@e1000000 {
> dmas = <&dma1tx 0 0 64>, <&dma1tx 1 0 64> ... <&dma1tx 15 0 64>;
>
> };
>
> DMA HW feature, desc_fod(descriptor fetch on demand) and desc_in_sram are turned on in the DMA controller in this case.
> These HW features are defined in platform data in the existing DMA driver as default enabled.
> static const struct ldma_inst_data dma1tx = {
> ...
> .desc_fod = true;
> .desc_in_sram = true;
> };
>
> In the SW descriptor management case, the device tree would be like:
>
> dma1tx: dma-controller@e7300000 {
> compatible = "intel,lgm-dma1tx";
> reg = <0xe7300000 0x1000>;
> ...
> #dma-cells = <3>;
> intel,dma-poll-cnt = <16>;
> intel,dma-sw-desc;
That's then implied by compatible, no? If you disagree, please post
complete upstream DTS.
Best regards,
Krzysztof
prev parent reply other threads:[~2025-08-24 10:27 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-08 3:22 Zhu Yixin
2025-08-08 3:22 ` [PATCH v2 2/3] dmaengine: lgm-dma: splitting CDMA and HDMA functions Zhu Yixin
2025-08-08 3:22 ` [PATCH v2 3/3] dmaengine: lgm-dma: Added Software management functions on HDMA Zhu Yixin
2025-08-08 6:11 ` Krzysztof Kozlowski
2025-08-15 6:51 ` Yi xin Zhu
2025-08-08 6:09 ` [PATCH v2 1/3] dt-bindings: lgm-dma: Added intel,dma-sw-desc property Krzysztof Kozlowski
2025-08-15 7:07 ` Yi xin Zhu
2025-08-15 8:32 ` Krzysztof Kozlowski
2025-08-15 10:06 ` Yi xin Zhu
2025-08-15 10:40 ` Krzysztof Kozlowski
2025-08-18 8:41 ` Yi xin Zhu
2025-08-24 10:26 ` Krzysztof Kozlowski [this message]
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=5c7f78ae-01d8-40e3-a370-76953921ade9@kernel.org \
--to=krzk@kernel.org \
--cc=av2082000@gmail.com \
--cc=conor+dt@kernel.org \
--cc=dave.jiang@intel.com \
--cc=devicetree@vger.kernel.org \
--cc=dmaengine@vger.kernel.org \
--cc=kees@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=p.zabel@pengutronix.de \
--cc=robh@kernel.org \
--cc=vkoul@kernel.org \
--cc=yzhu@maxlinear.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®