Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1488282
| From | "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v3 2/3] powerpc: get hugetlbpage handling more generic |
| Date | 2016-09-21 19:00 +0200 |
| Message-ID | <sjT2h-30Q-23@gated-at.bofh.it> (permalink) |
| References | <sjKV4-6zb-9@gated-at.bofh.it> <sjKV4-6zb-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Christophe Leroy <christophe.leroy@c-s.fr> writes: > Today there are two implementations of hugetlbpages which are managed > by exclusive #ifdefs: > * FSL_BOOKE: several directory entries points to the same single hugepage > * BOOK3S: one upper level directory entry points to a table of hugepages > > In preparation of implementation of hugepage support on the 8xx, we > need a mix of the two above solutions, because the 8xx needs both cases > depending on the size of pages: > * In 4k page size mode, each PGD entry covers a 4M bytes area. It means > that 2 PGD entries will be necessary to cover an 8M hugepage while a > single PGD entry will cover 8x 512k hugepages. > * In 16 page size mode, each PGD entry covers a 64M bytes area. It means > that 8x 8M hugepages will be covered by one PGD entry and 64x 512k > hugepages will be covers by one PGD entry. > > This patch: > * removes #ifdefs in favor of if/else based on the range sizes > * merges the two huge_pte_alloc() functions as they are pretty similar > * merges the two hugetlbpage_init() functions as they are pretty similar Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> > > Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> > --- -aneesh
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH v3 2/3] powerpc: get hugetlbpage handling more generic Christophe Leroy <christophe.leroy@c-s.fr> - 2016-09-21 10:20 +0200 Re: [PATCH v3 2/3] powerpc: get hugetlbpage handling more generic "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com> - 2016-09-21 19:00 +0200
csiph-web