Linux IOMMU Development
 help / color / mirror / Atom feed
From: "chenxiang (M)" <chenxiang66@hisilicon.com>
To: Robin Murphy <robin.murphy@arm.com>, Will Deacon <will@kernel.org>
Cc: iommu@lists.linux-foundation.org
Subject: Re: [PATCH] iommu/dma: Fix a typo in a comment
Date: Mon, 22 Mar 2021 09:01:38 +0800	[thread overview]
Message-ID: <5e086042-cf6c-a56e-eeff-bf7df42b2e03@hisilicon.com> (raw)
In-Reply-To: <b3badca4-7262-3e11-c78e-e6709760840a@arm.com>



在 2021/3/19 19:02, Robin Murphy 写道:
> On 2021-03-19 01:02, chenxiang (M) wrote:
>> Hi,
>>
>>
>> 在 2021/3/18 19:01, Robin Murphy 写道:
>>> On 2021-03-18 09:55, chenxiang (M) wrote:
>>>> Hi will,
>>>>
>>>>
>>>> 在 2021/3/18 17:34, Will Deacon 写道:
>>>>> On Thu, Mar 18, 2021 at 11:21:24AM +0800, chenxiang wrote:
>>>>>> From: Xiang Chen <chenxiang66@hisilicon.com>
>>>>>>
>>>>>> Fix a type "SAC" to "DAC" in the comment of function
>>>>>> iommu_dma_alloc_iova().
>>>>>>
>>>>>> Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
>>>>>> ---
>>>>>>   drivers/iommu/dma-iommu.c | 2 +-
>>>>>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>>>>>
>>>>>> diff --git a/drivers/iommu/dma-iommu.c b/drivers/iommu/dma-iommu.c
>>>>>> index af765c8..3bc17ee 100644
>>>>>> --- a/drivers/iommu/dma-iommu.c
>>>>>> +++ b/drivers/iommu/dma-iommu.c
>>>>>> @@ -443,7 +443,7 @@ static dma_addr_t iommu_dma_alloc_iova(struct 
>>>>>> iommu_domain *domain,
>>>>>>       if (domain->geometry.force_aperture)
>>>>>>           dma_limit = min(dma_limit, 
>>>>>> (u64)domain->geometry.aperture_end);
>>>>>> -    /* Try to get PCI devices a SAC address */
>>>>>> +    /* Try to get PCI devices a DAC address */
>>>>>>       if (dma_limit > DMA_BIT_MASK(32) && dev_is_pci(dev))
>>>>>>           iova = alloc_iova_fast(iovad, iova_len,
>>>>>>                          DMA_BIT_MASK(32) >> shift, false);
>>>>> This doesn't look like a typo to me... Please explain.
>>>
>>> As the author of said comment, it is definitely not a typo.
>>
>> What's the short for SAC?
>
> Single Address Cycle - this is standard terminology from the PCI spec.

Got it, thanks.

>
> Robin.
>
> .
>


_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu

      reply	other threads:[~2021-03-22  1:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-18  3:21 [PATCH] iommu/dma: Fix a typo in a comment chenxiang
2021-03-18  9:34 ` Will Deacon
2021-03-18  9:55   ` chenxiang (M)
2021-03-18 11:01     ` Robin Murphy
2021-03-19  1:02       ` chenxiang (M)
2021-03-19 11:02         ` Robin Murphy
2021-03-22  1:01           ` chenxiang (M) [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=5e086042-cf6c-a56e-eeff-bf7df42b2e03@hisilicon.com \
    --to=chenxiang66@hisilicon.com \
    --cc=iommu@lists.linux-foundation.org \
    --cc=robin.murphy@arm.com \
    --cc=will@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