Files
ubports_kernel_google_msm/Documentation
Yuji Shimada 32a9a682be PCI: allow assignment of memory resources with a specified alignment
This patch allows memory resources to be assigned with a specified
alignment at boot-time or run-time. The patch is useful when we use PCI
pass-through, because page-aligned memory resources are required to
securely share PCI resources with guest drivers.

If you want to assign the resource at boot time, please set
"pci=resource_alignment=" boot parameter.

This is format of "pci=resource_alignment=" boot parameter:

        [<order of align>@][<domain>:]<bus>:<slot>.<func>[; ...]
                Specifies alignment and device to reassign
                aligned memory resources.
                If <order of align> is not specified, PAGE_SIZE is
                used as alignment.
                PCI-PCI bridge can be specified, if resource
                windows need to be expanded.

This is example:

        pci=resource_alignment=20@07:00.0;18@0f:00.0;00:1d.7

If you want to assign the resource at run-time, please set
"/sys/bus/pci/resource_alignment" file, and hot-remove the device and
hot-add the device.  For this purpose, fakephp or PCI hotplug interfaces
can be used.

The format of "/sys/bus/pci/resource_alignment" file is the same with
boot parameter. You can use "," instead of ";".

For example:

        # cd /sys/bus/pci
        # echo -n 20@12:00.0 > resource_alignment
        # echo 1 > devices/0000:12:00.0/remove
        # echo 1 > rescan

Reviewed-by: Alex Chiang <achiang@hp.com>
Reviewed-by: Yu Zhao <yu.zhao@intel.com>
Signed-off-by: Yuji Shimada <shimada-yxb@necst.nec.co.jp>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
2009-03-20 10:48:15 -07:00
..
2009-03-20 10:48:11 -07:00
2008-10-30 11:38:45 -07:00
2008-02-14 00:16:13 -05:00
2008-10-16 11:21:30 -07:00
2008-04-25 13:27:03 +01:00
2008-10-30 15:55:47 +01:00
2008-10-30 11:38:45 -07:00
2009-01-06 17:21:00 +01:00
2008-10-30 11:38:47 -07:00
2009-01-14 21:42:51 +01:00
2009-03-20 10:48:14 -07:00
2008-10-30 11:38:45 -07:00
2008-10-16 11:21:29 -07:00
2009-03-10 15:55:11 -07:00
2008-04-29 02:49:47 -04:00
2009-01-06 15:59:03 -08:00
2008-10-30 11:38:45 -07:00
2008-12-03 16:09:53 -07:00
2008-07-25 10:53:30 -07:00
2008-11-12 17:17:18 -08:00
2008-11-14 10:39:26 +11:00
2008-11-28 13:15:14 +01:00
2008-10-16 11:21:40 -07:00
2008-03-24 19:22:19 -07:00
2008-10-20 15:43:10 +02:00
2009-03-16 07:55:37 -07:00
2009-03-16 07:55:37 -07:00
2008-08-12 16:07:30 -07:00
2008-07-21 14:22:18 +10:00
2008-11-12 17:17:17 -08:00