iommu/vt-d: DMAR reporting table needs at least one DRHD
authorLi, Zhen-Hua <zhen-hual@hp.com>
Mon, 20 May 2013 07:57:32 +0000 (15:57 +0800)
committerJoerg Roedel <joro@8bytes.org>
Thu, 20 Jun 2013 14:39:28 +0000 (16:39 +0200)
commit7cef33471a35c6973ddad2926e9e88c52e9e1c1b
tree9ff69be5ade7bb02c85f67a04992986c80c16072
parentd01140df6a32554728ab055f2d82f8028a73d2f5
iommu/vt-d: DMAR reporting table needs at least one DRHD

In intel vt-d spec , chapter 8.1 , DMA Remapping Reporting Structure.
In the end of the table, it says:

Remapping Structures[]
-
A list of structures. The list will contain one or
more DMA Remapping Hardware Unit Definition
(DRHD) structures, and zero or more Reserved
Memory Region Reporting (RMRR) and Root Port
ATS Capability Reporting (ATSR) structures.
These structures are described below.

So, there should be at least one DRHD structure in DMA Remapping
reporting table. If there is no DRHD found, a warning is necessary.

Signed-off-by: Li, Zhen-Hua <zhen-hual@hp.com>
Signed-off-by: Joerg Roedel <joro@8bytes.org>
drivers/iommu/dmar.c