DMA Engine development
 help / color / mirror / Atom feed
From: "guomengqi (A)" <guomengqi3@huawei.com>
To: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>,
	<vkoul@kernel.org>, <dmaengine@vger.kernel.org>,
	<robh+dt@kernel.org>, <krzysztof.kozlowski+dt@linaro.org>,
	<conor+dt@kernel.org>, <devicetree@vger.kernel.org>
Cc: <xuqiang36@huawei.com>, <chenweilong@huawei.com>
Subject: Re: [PATCH v4 2/2] dt-bindings: dma: HiSilicon: Add bindings for HiSilicon Ascend sdma
Date: Fri, 15 Sep 2023 15:07:11 +0800	[thread overview]
Message-ID: <c2f6e5b7-8eda-fb00-08ac-e1f54938f6a4@huawei.com> (raw)
In-Reply-To: <8eff1f20-1cfc-7097-da26-97daaae5e8ca@linaro.org>


在 2023/9/13 17:20, Krzysztof Kozlowski 写道:
> On 13/09/2023 10:28, Guo Mengqi wrote:
>> Add device-tree binding documentation for sdma hardware on
>> HiSilicon Ascend SoC families.
>>
>> Signed-off-by: Guo Mengqi <guomengqi3@huawei.com>
>> ---
>>
>> +  dma-channel-mask:
>> +    minItems: 1
>> +    maxItems: 2
> Why 2? Care to bring any example? Where is your DTS?

Seems that the complete dts is not in the repository.

Some platform supports up to 40 channels at most, in design. So I think 
2 should be enough.

>> +  iommus:
>> +    maxItems: 1
>> +
>> +  pasid-num-bits:
>> +    description: |
>> +      This tells smmu that this device supports iommu-sva feature.
>> +      This determines the maximum number of digits in the pasid.
>> +    maximum: 0x10
>> +
>> +  dma-coherent: true
>> +
>> +  dma-can-stall: true
>> +
>> +required:
>> +  - compatible
>> +  - reg
>> +  - dma-channel-mask
>> +  - '#dma-cells'
>> +  - iommus
>> +  - pasid-num-bits
>> +  - dma-can-stall
> I am not sure if requiring dma-can-stall is correct here. To my
> understanding this is in general optional property.

If  "dma-can-stall" is declared,  drivers can rely on smmu to handle 
page-fault.

Yes, this is not a required one. It does not affect main usage. Drop it 
in next patch.

> Best regards,
> Krzysztof
>
>
> .

Best regards,

Guo Mengqi


      reply	other threads:[~2023-09-15  7:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-13  8:28 [PATCH v4 0/2] Add dma controller driver for HiSilicon Ascend310/910 Guo Mengqi
2023-09-13  8:28 ` [PATCH v4 1/2] dmaengine: Add HiSilicon Ascend SDMA engine support Guo Mengqi
2023-09-13 10:02   ` Krzysztof Kozlowski
2023-09-13  8:28 ` [PATCH v4 2/2] dt-bindings: dma: HiSilicon: Add bindings for HiSilicon Ascend sdma Guo Mengqi
2023-09-13  9:20   ` Krzysztof Kozlowski
2023-09-15  7:07     ` guomengqi (A) [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=c2f6e5b7-8eda-fb00-08ac-e1f54938f6a4@huawei.com \
    --to=guomengqi3@huawei.com \
    --cc=chenweilong@huawei.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dmaengine@vger.kernel.org \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=krzysztof.kozlowski@linaro.org \
    --cc=robh+dt@kernel.org \
    --cc=vkoul@kernel.org \
    --cc=xuqiang36@huawei.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