From: Bjorn Helgaas Date: Mon, 19 Jun 2017 20:26:57 +0000 (-0500) Subject: PCI: vmd: Correct comment: VMD domains start at 0x10000, not 0x1000 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=575a144e7b3006c1b583ccecc4ede8b180d00d0c;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git PCI: vmd: Correct comment: VMD domains start at 0x10000, not 0x1000 VMD domains are allocated starting at 0x10000, not 0x1000 as the comment said. Correct the comment and add a reference to the ACPI spec for _SEG. Signed-off-by: Bjorn Helgaas Reviewed-by: Keith Busch --- diff --git a/drivers/pci/host/vmd.c b/drivers/pci/host/vmd.c index e27ad2a3bd33..53aa1d4b17e8 100644 --- a/drivers/pci/host/vmd.c +++ b/drivers/pci/host/vmd.c @@ -539,7 +539,10 @@ static void vmd_detach_resources(struct vmd_dev *vmd) } /* - * VMD domains start at 0x1000 to not clash with ACPI _SEG domains. + * VMD domains start at 0x10000 to not clash with ACPI _SEG domains. + * Per ACPI r6.0, sec 6.5.6, _SEG returns an integer, of which the lower + * 16 bits are the PCI Segment Group (domain) number. Other bits are + * currently reserved. */ static int vmd_find_free_domain(void) {