linux/drivers/infiniband/hw/ehca
KAMEZAWA Hiroyuki 908eedc616 walk system ram range
Originally, walk_memory_resource() was introduced to traverse all memory
of "System RAM" for detecting memory hotplug/unplug range.  For doing so,
flags of IORESOUCE_MEM|IORESOURCE_BUSY was used and this was enough for
memory hotplug.

But for using other purpose, /proc/kcore, this may includes some firmware
area marked as IORESOURCE_BUSY | IORESOUCE_MEM.  This patch makes the
check strict to find out busy "System RAM".

Note: PPC64 keeps their own walk_memory_resouce(), which walk through
ppc64's lmb informaton.  Because old kclist_add() is called per lmb, this
patch makes no difference in behavior, finally.

And this patch removes CONFIG_MEMORY_HOTPLUG check from this function.
Because pfn_valid() just show "there is memmap or not* and cannot be used
for "there is physical memory or not", this function is useful in generic
to scan physical memory range.

Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: WANG Cong <xiyou.wangcong@gmail.com>
Cc: Américo Wang <xiyou.wangcong@gmail.com>
Cc: David Rientjes <rientjes@google.com>
Cc: Roland Dreier <rolandd@cisco.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-09-23 07:39:41 -07:00
..
ehca_av.c IB/ehca: Remove tgid checking 2008-04-16 21:01:13 -07:00
ehca_classes_pSeries.h IB/ehca: Remove superfluous bitmasks from QP control block 2009-06-03 13:25:42 -07:00
ehca_classes.h IB/ehca: Replace modulus operations in flush error completion path 2008-12-05 11:25:38 -08:00
ehca_cq.c IB/ehca: Fix printk format warnings from u64 type change 2009-01-16 14:55:28 -08:00
ehca_eq.c IB/ehca: Remove redundant test of vpage 2008-12-21 13:29:13 -08:00
ehca_hca.c IB/ehca: Ensure that guid_entry index is not negative 2009-06-22 22:23:48 -07:00
ehca_irq.c infiniband: Remove void casts 2009-05-13 16:53:39 -07:00
ehca_irq.h IB/ehca: Refactor sync between completions and destroy_cq using atomic_t 2007-07-09 20:12:27 -07:00
ehca_iverbs.h IB/ehca: Generate flush status CQ entries 2008-09-20 20:05:21 -07:00
ehca_main.c driver model: constify attribute groups 2009-09-15 09:50:47 -07:00
ehca_mcast.c IB/ehca: Fix printk format warnings from u64 type change 2009-01-16 14:55:28 -08:00
ehca_mrmw.c walk system ram range 2009-09-23 07:39:41 -07:00
ehca_mrmw.h IB/ehca: Tolerate dynamic memory operations before driver load 2009-06-22 22:18:51 -07:00
ehca_pd.c IB/ehca: Remove tgid checking 2008-04-16 21:01:13 -07:00
ehca_qes.h IB/ehca: Discard double CQE for one WR 2008-08-12 11:34:59 -07:00
ehca_qp.c IB/ehca: Remove superfluous bitmasks from QP control block 2009-06-03 13:25:42 -07:00
ehca_reqs.c IB/ehca: Fix CQE flags reporting 2009-09-05 20:22:55 -07:00
ehca_sqp.c IB/ehca: Construct MAD redirect replies from request MAD 2009-09-05 20:22:55 -07:00
ehca_tools.h IB/ehca: Fix printk format warnings from u64 type change 2009-01-16 14:55:28 -08:00
ehca_uverbs.c IB/ehca: Fix printk format warnings from u64 type change 2009-01-16 14:55:28 -08:00
hcp_if.c IB/ehca: Remove unnecessary memory operations for userspace queue pairs 2009-05-13 16:52:43 -07:00
hcp_if.h IB/ehca: Remove unnecessary memory operations for userspace queue pairs 2009-05-13 16:52:43 -07:00
hcp_phyp.c IB/ehca: Remove unnecessary memory operations for userspace queue pairs 2009-05-13 16:52:43 -07:00
hcp_phyp.h IB/ehca: Remove unnecessary memory operations for userspace queue pairs 2009-05-13 16:52:43 -07:00
hipz_fns_core.h IB/ehca: Fix warnings issued by checkpatch.pl 2007-07-17 18:37:40 -07:00
hipz_fns.h
hipz_hw.h IB/ehca: Serialize HCA-related hCalls if necessary 2007-12-12 14:09:43 -08:00
ipz_pt_fn.c IB/ehca: Fall back to vmalloc() for big allocations 2009-05-13 16:52:42 -07:00
ipz_pt_fn.h IB/ehca: Move extern declarations from .c files to .h files 2007-07-28 21:47:53 -07:00
Kconfig IB: Use menuconfig for InfiniBand menu 2007-07-09 20:12:26 -07:00
Makefile