Re: [PATCH] drivers/base: export gpl (un)register_memory_notifier

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Christoph Raisch
Date: Friday, February 15, 2008 - 6:22 am

Dave Hansen <haveblue@us.ibm.com> wrote on 14.02.2008 18:12:43:

bus)
packet)
tossed
It depends on HMC configuration, but in worst case the upper limit is in
the 2 digits range.

get
vmalloc'd
systems?

Your comment indicates that the upper limit for memory to be set on HMC
does not influence
the upper limit of the partition physical address space.
So our base assumption we discussed internally is wrong here.
(conclusion see below)
address
of
nextgen_ehea_generic_bmap
yes
each
EHEA_BUSMAP_START is a value which has to match between the wqe
virtual addresses and the MR used in them.
Fortunately there's a simple answer on that one. Each MR has a own address
space,
so there's no need to check.
A HEA MR actually has exactly the same attributes as a Infiniband MR with
this hardware.
send/receive processing is pretty much comparable to a Infiniband UD queue.

no
no
implemented
and
system
new
a

That's definitely the right direction.

From this mail thread I would conclude....
memory space can have holes, and drivers shouldn't make any assumption when
where and how.

A translation from kernel to ehea_bmap space should be fast and predictable
(ruling out hashes).
If a driver doesn't know anything else about the mapping structure,
the normal solution in kernel for this type of problem is a multi level
look up table
like pgd->pud->pmd->pte
This doesn't sound right to be implemented in a device driver.

We didn't see from the existing code that such a mapping to a contiguous
space already exists.
Maybe we've missed it.

If the mapping is less random, the translation gets much simpler.
MAX_ORDER_NR_PAGES helps here, is there more like that?


Gruss / Regards
Christoph Raisch + Jan-Bernd Themann

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] drivers/base: export gpl (un)register_memory_notifier, Jan-Bernd Themann, (Mon Feb 11, 9:24 am)
Re: [PATCH] drivers/base: export gpl (un)register_memory_n ..., Jan-Bernd Themann, (Wed Feb 13, 8:17 am)
Re: [PATCH] drivers/base: export gpl (un)register_memory_n ..., Badari Pulavarty, (Thu Feb 14, 10:36 am)
Re: [PATCH] drivers/base: export gpl (un)register_memory_n ..., Christoph Raisch, (Fri Feb 15, 6:22 am)
Re: [PATCH] drivers/base: export gpl (un)register_memory_n ..., Jan-Bernd Themann, (Mon Feb 18, 3:00 am)