[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <b6ebac8d-02f5-4153-b687-a4d40056f697@linux.intel.com>
Date: Fri, 31 May 2024 09:17:05 +0800
From: Baolu Lu <baolu.lu@...ux.intel.com>
To: Diederik de Haas <didi.debian@...ow.org>,
David Woodhouse <dwmw2@...radead.org>, Joerg Roedel <joro@...tes.org>,
Will Deacon <will@...nel.org>
Cc: baolu.lu@...ux.intel.com, Robin Murphy <robin.murphy@....com>,
iommu@...ts.linux.dev, linux-kernel@...r.kernel.org
Subject: Re: device_def_domain_type documentation header does not match
implementation
On 5/30/24 9:57 PM, Diederik de Haas wrote:
> While looking into ``drivers/iommu/intel/iommu.c::device_def_domain_type``
> function I noticed a discrepancy between the documentation header and the
> implementation.
>
> ``@...rtup: true if this is during early boot``
> 0e31a7266508 ("iommu/vt-d: Remove startup parameter from
> device_def_domain_type()")
> removed the ``startup`` function parameter
>
> returns ``IOMMU_DOMAIN_DMA: device requires a dynamic mapping domain``
> 28b41e2c6aeb ("iommu: Move def_domain type check for untrusted device into
> core")
> moved the possible return of ``IOMMU_DOMAIN_DMA`` to ``drivers/iommu/iommu.c``
>
> But neither updated the documentation header.
Yeah, I think the @startup line should be removed. It is irrelevant.
Others remain good to me.
Best regards,
baolu
Powered by blists - more mailing lists