[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20140513103556.GB23770@8bytes.org>
Date: Tue, 13 May 2014 12:35:56 +0200
From: "joro@...tes.org" <joro@...tes.org>
To: "Su, Friendy" <Friendy.Su@...y.com.cn>
Cc: "iommu@...ts.linux-foundation.org" <iommu@...ts.linux-foundation.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v1 1/1] iommu/amd: fix enabling exclusion range for an
exact device
On Wed, May 07, 2014 at 01:54:52PM +0800, Su, Friendy wrote:
>
> From: Su Friendy <friendy.su@...y.com.cn>
>
> set_device_exclusion_range(u16 devid, struct ivmd_header *m) enables
> exclusion range for ONE device. IOMMU does not translate the access
> to the exclusion range from the device.
>
> The device is specified by input argument 'devid'. But 'devid' is not
> passed to the actual set function set_dev_entry_bit(), instead
> 'm->devid' is passed. 'm->devid' does not specify the exact device
> which needs enable the exclusion range. 'm->devid' represents DeviceID
> field of IVMD, which has different meaning depends on IVMD type.
>
> The caller init_exclusion_range() sets 'devid' for ONE device. When
> m->type is equal to ACPI_IVMD_TYPE_ALL or ACPI_IVMD_TYPE_RANGE,
> 'm->devid' is not equal to 'devid'.
>
> This patch fixes 'm->devid' to 'devid'.
>
> Signed-off-by: Su Friendy <friendy.su@...y.com.cn>
> Signed-off-by: Tamori Masahiro <Masahiro.Tamori@...sony.com>
Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists