Re: [PATCH] arm64: add ioremap physical address information

2015-01-23 Thread Catalin Marinas
On Fri, Dec 26, 2014 at 04:52:10PM +, Min-Hua Chen wrote:
> In /proc/vmallocinfo, it's good to show the physical address
> of each ioremap in vmallocinfo. Add physical address information
> in arm64 ioremap.
> 
> 0xc900047f2000-0xc900047f40008192 _nv013519rm+0x57/0xa0
> [nvidia] phys=f810 ioremap
> 0xc900047f4000-0xc900047f60008192 _nv013519rm+0x57/0xa0
> [nvidia] phys=f8008000 ioremap
> 0xc9000480-0xc90004821000  135168 e1000_probe+0x22c/0xb95
> [e1000e] phys=f430 ioremap
> 0xc900049c-0xc900049e1000  135168 _nv013521rm+0x4d/0xd0
> [nvidia] phys=e014 ioremap
> 
> Signed-off-by: Min-Hua Chen 

Applied. Thanks.

-- 
Catalin
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH] arm64: add ioremap physical address information

2015-01-23 Thread Catalin Marinas
On Fri, Dec 26, 2014 at 04:52:10PM +, Min-Hua Chen wrote:
 In /proc/vmallocinfo, it's good to show the physical address
 of each ioremap in vmallocinfo. Add physical address information
 in arm64 ioremap.
 
 0xc900047f2000-0xc900047f40008192 _nv013519rm+0x57/0xa0
 [nvidia] phys=f810 ioremap
 0xc900047f4000-0xc900047f60008192 _nv013519rm+0x57/0xa0
 [nvidia] phys=f8008000 ioremap
 0xc9000480-0xc90004821000  135168 e1000_probe+0x22c/0xb95
 [e1000e] phys=f430 ioremap
 0xc900049c-0xc900049e1000  135168 _nv013521rm+0x4d/0xd0
 [nvidia] phys=e014 ioremap
 
 Signed-off-by: Min-Hua Chen orca.c...@gmail.com

Applied. Thanks.

-- 
Catalin
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH] arm64: add ioremap physical address information

2015-01-06 Thread Min-Hua Chen
On Tue, Jan 6, 2015 at 10:17 PM, Will Deacon  wrote:
> On Fri, Dec 26, 2014 at 04:52:10PM +, Min-Hua Chen wrote:
>> In /proc/vmallocinfo, it's good to show the physical address
>> of each ioremap in vmallocinfo. Add physical address information
>> in arm64 ioremap.
>>
>> 0xc900047f2000-0xc900047f40008192 _nv013519rm+0x57/0xa0
>> [nvidia] phys=f810 ioremap
>> 0xc900047f4000-0xc900047f60008192 _nv013519rm+0x57/0xa0
>> [nvidia] phys=f8008000 ioremap
>> 0xc9000480-0xc90004821000  135168 e1000_probe+0x22c/0xb95
>> [e1000e] phys=f430 ioremap
>> 0xc900049c-0xc900049e1000  135168 _nv013521rm+0x4d/0xd0
>> [nvidia] phys=e014 ioremap
>>
>> Signed-off-by: Min-Hua Chen 
>> ---
>
> Thanks, this looks useful for debugging.
>
>   Acked-by: Will Deacon 
>
> I assume this can wait for 3.20?

Sure, thanks.

Min-Hua

>
> Will
>
>
>>  arch/arm64/mm/ioremap.c |1 +
>>  1 file changed, 1 insertion(+)
>>
>> diff --git a/arch/arm64/mm/ioremap.c b/arch/arm64/mm/ioremap.c
>> index cbb99c8..01e88c8 100644
>> --- a/arch/arm64/mm/ioremap.c
>> +++ b/arch/arm64/mm/ioremap.c
>> @@ -62,6 +62,7 @@ static void __iomem *__ioremap_caller(phys_addr_t
>> phys_addr, size_t size,
>>  if (!area)
>>  return NULL;
>>  addr = (unsigned long)area->addr;
>> +area->phys_addr = phys_addr;
>>
>>  err = ioremap_page_range(addr, addr + size, phys_addr, prot);
>>  if (err) {
>> --
>> 1.7.10.4
>>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH] arm64: add ioremap physical address information

2015-01-06 Thread Will Deacon
On Fri, Dec 26, 2014 at 04:52:10PM +, Min-Hua Chen wrote:
> In /proc/vmallocinfo, it's good to show the physical address
> of each ioremap in vmallocinfo. Add physical address information
> in arm64 ioremap.
> 
> 0xc900047f2000-0xc900047f40008192 _nv013519rm+0x57/0xa0
> [nvidia] phys=f810 ioremap
> 0xc900047f4000-0xc900047f60008192 _nv013519rm+0x57/0xa0
> [nvidia] phys=f8008000 ioremap
> 0xc9000480-0xc90004821000  135168 e1000_probe+0x22c/0xb95
> [e1000e] phys=f430 ioremap
> 0xc900049c-0xc900049e1000  135168 _nv013521rm+0x4d/0xd0
> [nvidia] phys=e014 ioremap
> 
> Signed-off-by: Min-Hua Chen 
> ---

Thanks, this looks useful for debugging.

  Acked-by: Will Deacon 

I assume this can wait for 3.20?

Will


>  arch/arm64/mm/ioremap.c |1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/arm64/mm/ioremap.c b/arch/arm64/mm/ioremap.c
> index cbb99c8..01e88c8 100644
> --- a/arch/arm64/mm/ioremap.c
> +++ b/arch/arm64/mm/ioremap.c
> @@ -62,6 +62,7 @@ static void __iomem *__ioremap_caller(phys_addr_t
> phys_addr, size_t size,
>  if (!area)
>  return NULL;
>  addr = (unsigned long)area->addr;
> +area->phys_addr = phys_addr;
> 
>  err = ioremap_page_range(addr, addr + size, phys_addr, prot);
>  if (err) {
> --
> 1.7.10.4
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH] arm64: add ioremap physical address information

2015-01-06 Thread Will Deacon
On Fri, Dec 26, 2014 at 04:52:10PM +, Min-Hua Chen wrote:
 In /proc/vmallocinfo, it's good to show the physical address
 of each ioremap in vmallocinfo. Add physical address information
 in arm64 ioremap.
 
 0xc900047f2000-0xc900047f40008192 _nv013519rm+0x57/0xa0
 [nvidia] phys=f810 ioremap
 0xc900047f4000-0xc900047f60008192 _nv013519rm+0x57/0xa0
 [nvidia] phys=f8008000 ioremap
 0xc9000480-0xc90004821000  135168 e1000_probe+0x22c/0xb95
 [e1000e] phys=f430 ioremap
 0xc900049c-0xc900049e1000  135168 _nv013521rm+0x4d/0xd0
 [nvidia] phys=e014 ioremap
 
 Signed-off-by: Min-Hua Chen orca.c...@gmail.com
 ---

Thanks, this looks useful for debugging.

  Acked-by: Will Deacon will.dea...@arm.com

I assume this can wait for 3.20?

Will


  arch/arm64/mm/ioremap.c |1 +
  1 file changed, 1 insertion(+)
 
 diff --git a/arch/arm64/mm/ioremap.c b/arch/arm64/mm/ioremap.c
 index cbb99c8..01e88c8 100644
 --- a/arch/arm64/mm/ioremap.c
 +++ b/arch/arm64/mm/ioremap.c
 @@ -62,6 +62,7 @@ static void __iomem *__ioremap_caller(phys_addr_t
 phys_addr, size_t size,
  if (!area)
  return NULL;
  addr = (unsigned long)area-addr;
 +area-phys_addr = phys_addr;
 
  err = ioremap_page_range(addr, addr + size, phys_addr, prot);
  if (err) {
 --
 1.7.10.4
 
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH] arm64: add ioremap physical address information

2015-01-06 Thread Min-Hua Chen
On Tue, Jan 6, 2015 at 10:17 PM, Will Deacon will.dea...@arm.com wrote:
 On Fri, Dec 26, 2014 at 04:52:10PM +, Min-Hua Chen wrote:
 In /proc/vmallocinfo, it's good to show the physical address
 of each ioremap in vmallocinfo. Add physical address information
 in arm64 ioremap.

 0xc900047f2000-0xc900047f40008192 _nv013519rm+0x57/0xa0
 [nvidia] phys=f810 ioremap
 0xc900047f4000-0xc900047f60008192 _nv013519rm+0x57/0xa0
 [nvidia] phys=f8008000 ioremap
 0xc9000480-0xc90004821000  135168 e1000_probe+0x22c/0xb95
 [e1000e] phys=f430 ioremap
 0xc900049c-0xc900049e1000  135168 _nv013521rm+0x4d/0xd0
 [nvidia] phys=e014 ioremap

 Signed-off-by: Min-Hua Chen orca.c...@gmail.com
 ---

 Thanks, this looks useful for debugging.

   Acked-by: Will Deacon will.dea...@arm.com

 I assume this can wait for 3.20?

Sure, thanks.

Min-Hua


 Will


  arch/arm64/mm/ioremap.c |1 +
  1 file changed, 1 insertion(+)

 diff --git a/arch/arm64/mm/ioremap.c b/arch/arm64/mm/ioremap.c
 index cbb99c8..01e88c8 100644
 --- a/arch/arm64/mm/ioremap.c
 +++ b/arch/arm64/mm/ioremap.c
 @@ -62,6 +62,7 @@ static void __iomem *__ioremap_caller(phys_addr_t
 phys_addr, size_t size,
  if (!area)
  return NULL;
  addr = (unsigned long)area-addr;
 +area-phys_addr = phys_addr;

  err = ioremap_page_range(addr, addr + size, phys_addr, prot);
  if (err) {
 --
 1.7.10.4

--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH] arm64: add ioremap physical address information

2014-12-26 Thread Min-Hua Chen
In /proc/vmallocinfo, it's good to show the physical address
of each ioremap in vmallocinfo. Add physical address information
in arm64 ioremap.

0xc900047f2000-0xc900047f40008192 _nv013519rm+0x57/0xa0
[nvidia] phys=f810 ioremap
0xc900047f4000-0xc900047f60008192 _nv013519rm+0x57/0xa0
[nvidia] phys=f8008000 ioremap
0xc9000480-0xc90004821000  135168 e1000_probe+0x22c/0xb95
[e1000e] phys=f430 ioremap
0xc900049c-0xc900049e1000  135168 _nv013521rm+0x4d/0xd0
[nvidia] phys=e014 ioremap

Signed-off-by: Min-Hua Chen 
---
 arch/arm64/mm/ioremap.c |1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/mm/ioremap.c b/arch/arm64/mm/ioremap.c
index cbb99c8..01e88c8 100644
--- a/arch/arm64/mm/ioremap.c
+++ b/arch/arm64/mm/ioremap.c
@@ -62,6 +62,7 @@ static void __iomem *__ioremap_caller(phys_addr_t
phys_addr, size_t size,
 if (!area)
 return NULL;
 addr = (unsigned long)area->addr;
+area->phys_addr = phys_addr;

 err = ioremap_page_range(addr, addr + size, phys_addr, prot);
 if (err) {
--
1.7.10.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH] arm64: add ioremap physical address information

2014-12-26 Thread Min-Hua Chen
In /proc/vmallocinfo, it's good to show the physical address
of each ioremap in vmallocinfo. Add physical address information
in arm64 ioremap.

0xc900047f2000-0xc900047f40008192 _nv013519rm+0x57/0xa0
[nvidia] phys=f810 ioremap
0xc900047f4000-0xc900047f60008192 _nv013519rm+0x57/0xa0
[nvidia] phys=f8008000 ioremap
0xc9000480-0xc90004821000  135168 e1000_probe+0x22c/0xb95
[e1000e] phys=f430 ioremap
0xc900049c-0xc900049e1000  135168 _nv013521rm+0x4d/0xd0
[nvidia] phys=e014 ioremap

Signed-off-by: Min-Hua Chen orca.c...@gmail.com
---
 arch/arm64/mm/ioremap.c |1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/mm/ioremap.c b/arch/arm64/mm/ioremap.c
index cbb99c8..01e88c8 100644
--- a/arch/arm64/mm/ioremap.c
+++ b/arch/arm64/mm/ioremap.c
@@ -62,6 +62,7 @@ static void __iomem *__ioremap_caller(phys_addr_t
phys_addr, size_t size,
 if (!area)
 return NULL;
 addr = (unsigned long)area-addr;
+area-phys_addr = phys_addr;

 err = ioremap_page_range(addr, addr + size, phys_addr, prot);
 if (err) {
--
1.7.10.4
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/