[PATCH v3 06/13] MIPS: mm: Unify pte_page definition

2016-04-19 Thread Paul Burton
The same definition for pte_page is duplicated for the MIPS32 PHYS_ADDR_T_64BIT case & the generic case. Unify them by moving a single definition outside of preprocessor conditionals. Signed-off-by: Paul Burton <paul.bur...@imgtec.com> Reviewed-by: James Hogan <james.ho.

[PATCH v3 06/13] MIPS: mm: Unify pte_page definition

2016-04-19 Thread Paul Burton
The same definition for pte_page is duplicated for the MIPS32 PHYS_ADDR_T_64BIT case & the generic case. Unify them by moving a single definition outside of preprocessor conditionals. Signed-off-by: Paul Burton Reviewed-by: James Hogan --- Changes in v3: None Changes in v2: None arch/

[PATCH v2 06/13] MIPS: mm: Unify pte_page definition

2016-04-18 Thread Paul Burton
The same definition for pte_page is duplicated for the MIPS32 PHYS_ADDR_T_64BIT case & the generic case. Unify them by moving a single definition outside of preprocessor conditionals. Signed-off-by: Paul Burton <paul.bur...@imgtec.com> Reviewed-by: James Hogan <james.ho.

[PATCH v2 06/13] MIPS: mm: Unify pte_page definition

2016-04-18 Thread Paul Burton
The same definition for pte_page is duplicated for the MIPS32 PHYS_ADDR_T_64BIT case & the generic case. Unify them by moving a single definition outside of preprocessor conditionals. Signed-off-by: Paul Burton Reviewed-by: James Hogan --- Changes in v2: None arch/mips/include/asm/pgtabl

Re: [PATCH 06/12] MIPS: mm: Unify pte_page definition

2016-04-15 Thread James Hogan
On Fri, Apr 15, 2016 at 11:36:54AM +0100, Paul Burton wrote: > The same definition for pte_page is duplicated for the MIPS32 > PHYS_ADDR_T_64BIT case & the generic case. Unify them by moving a single > definition outside of preprocessor conditionals. > > Signed-off-by: Pa

Re: [PATCH 06/12] MIPS: mm: Unify pte_page definition

2016-04-15 Thread James Hogan
On Fri, Apr 15, 2016 at 11:36:54AM +0100, Paul Burton wrote: > The same definition for pte_page is duplicated for the MIPS32 > PHYS_ADDR_T_64BIT case & the generic case. Unify them by moving a single > definition outside of preprocessor conditionals. > > Signed-off-by: Pau

[PATCH 06/12] MIPS: mm: Unify pte_page definition

2016-04-15 Thread Paul Burton
The same definition for pte_page is duplicated for the MIPS32 PHYS_ADDR_T_64BIT case & the generic case. Unify them by moving a single definition outside of preprocessor conditionals. Signed-off-by: Paul Burton <paul.bur...@imgtec.com> --- arch/mips/include/asm/pgtable-32.h | 6 +++-

[PATCH 06/12] MIPS: mm: Unify pte_page definition

2016-04-15 Thread Paul Burton
The same definition for pte_page is duplicated for the MIPS32 PHYS_ADDR_T_64BIT case & the generic case. Unify them by moving a single definition outside of preprocessor conditionals. Signed-off-by: Paul Burton --- arch/mips/include/asm/pgtable-32.h | 6 +++--- 1 file changed, 3 insert

Re: pte_page

2001-05-31 Thread mdaljeet
Daljeet Maini/India/IBM@IBMIN, | | [EMAIL PROTECTED] | | Subject: Re: pte_page| >| On Wed, 30 May 2001, Pete Wyckoff wrote: > > __pa(page_address

Re: pte_page

2001-05-31 Thread mdaljeet
, | | [EMAIL PROTECTED] | | Subject: Re: pte_page| | On Wed, 30 May 2001, Pete Wyckoff wrote: __pa(page_address(pte_page(pte))) is the address you want. [or pte_val(*pte

Re: pte_page

2001-05-30 Thread Ingo Molnar
On Wed, 30 May 2001, Pete Wyckoff wrote: > > __pa(page_address(pte_page(pte))) is the address you want. [or > > pte_val(*pte) & (PAGE_SIZE-1) on x86 but this is platform-dependent.] > > Does this work on x86 non-kmapped highmem user pages too? (i.e. is > page->virtu

Re: pte_page

2001-05-30 Thread Pete Wyckoff
[EMAIL PROTECTED] said: > On Wed, 30 May 2001 [EMAIL PROTECTED] wrote: > > I use the 'pgt_offset', 'pmd_offset', 'pte_offset' and 'pte_page' > > inside a module to get the physical address of a user space virtual > > address. The physical address returned by 'pte_page' is

Re: pte_page

2001-05-30 Thread Ingo Molnar
On Wed, 30 May 2001 [EMAIL PROTECTED] wrote: > I use the 'pgt_offset', 'pmd_offset', 'pte_offset' and 'pte_page' > inside a module to get the physical address of a user space virtual > address. The physical address returned by 'pte_page' is not page > aligned whereas the vir

Re: pte_page

2001-05-30 Thread Brian Gerst
Brian Gerst wrote: > > [EMAIL PROTECTED] wrote: > > > > I use the 'pgt_offset', 'pmd_offset', 'pte_offset' and 'pte_page' inside a > > module to get the physical address of a user space virtual address. The > > physical address returned by 'pte_page' is not page a

Re: pte_page

2001-05-30 Thread Brian Gerst
[EMAIL PROTECTED] wrote: > > I use the 'pgt_offset', 'pmd_offset', 'pte_offset' and 'pte_page' inside a > module to get the physical address of a user space virtual address. The > physical address returned by 'pte_page' is not page aligned whereas the > virtual address was pa

pte_page

2001-05-30 Thread mdaljeet
I use the 'pgt_offset', 'pmd_offset', 'pte_offset' and 'pte_page' inside a module to get the physical address of a user space virtual address. The physical address returned by 'pte_page' is not page aligned whereas the virtual address was page aligned. Can somebody tell me the reason? Also, can

pte_page

2001-05-30 Thread mdaljeet
I use the 'pgt_offset', 'pmd_offset', 'pte_offset' and 'pte_page' inside a module to get the physical address of a user space virtual address. The physical address returned by 'pte_page' is not page aligned whereas the virtual address was page aligned. Can somebody tell me the reason? Also, can

Re: pte_page

2001-05-30 Thread Brian Gerst
[EMAIL PROTECTED] wrote: I use the 'pgt_offset', 'pmd_offset', 'pte_offset' and 'pte_page' inside a module to get the physical address of a user space virtual address. The physical address returned by 'pte_page' is not page aligned whereas the virtual address was page aligned. Can somebody

Re: pte_page

2001-05-30 Thread Ingo Molnar
On Wed, 30 May 2001 [EMAIL PROTECTED] wrote: I use the 'pgt_offset', 'pmd_offset', 'pte_offset' and 'pte_page' inside a module to get the physical address of a user space virtual address. The physical address returned by 'pte_page' is not page aligned whereas the virtual address was page

Re: pte_page

2001-05-30 Thread Pete Wyckoff
[EMAIL PROTECTED] said: On Wed, 30 May 2001 [EMAIL PROTECTED] wrote: I use the 'pgt_offset', 'pmd_offset', 'pte_offset' and 'pte_page' inside a module to get the physical address of a user space virtual address. The physical address returned by 'pte_page' is not page aligned whereas

Re: pte_page

2001-05-30 Thread Ingo Molnar
On Wed, 30 May 2001, Pete Wyckoff wrote: __pa(page_address(pte_page(pte))) is the address you want. [or pte_val(*pte) (PAGE_SIZE-1) on x86 but this is platform-dependent.] Does this work on x86 non-kmapped highmem user pages too? (i.e. is page-virtual valid for every potential user