From: Gavin Shan Date: Mon, 20 Aug 2012 03:49:16 +0000 (+0000) Subject: powerpc/powernv: I/O and MMIO resource assignment for PEs X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~10^2~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11685becbf1a962759ae94a0fdb5b0b7521778a5;p=pandora-kernel.git powerpc/powernv: I/O and MMIO resource assignment for PEs There're 2 types of PCI bus sensitive PEs: (A) The PE includes single PCI bus. (B) The PE includes the PCI bus and all the subordinate PCI buses, and the patch tries to assign I/O and MMIO resources based on created PEs. Fortunately, we figured out unified scheme to do resource assignment for all types of PCI bus based PEs according to Ben's idea: - Resource assignment based on PE from top to bottom. - The soureces, either I/O or MMIO, of the PE are figured out from the assigned PCI bus. - The occupied resource by parent PE could possibilly be overrided by children PEs. Signed-off-by: Gavin Shan Reviewed-by: Ram Pai Reviewed-by: Richard Yang Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed