* [PATCH] pstore: add support for 64 Bit address space
@ 2015-11-13 12:10 Wiebe, Wladislav (Nokia - DE/Ulm)
2015-11-13 23:46 ` Kees Cook
0 siblings, 1 reply; 5+ messages in thread
From: Wiebe, Wladislav (Nokia - DE/Ulm) @ 2015-11-13 12:10 UTC (permalink / raw)
To: anton, ccross, keescook, tony.luck; +Cc: linux-kernel
Some architectures has there reserved RAM in 64 Bit address space.
Therefore converting mem_address module parameter to ullong.
Signed-off-by: Wladislav Wiebe <wladislav.wiebe@nokia.com>
---
fs/pstore/ram.c | 4 ++--
include/linux/pstore_ram.h | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/fs/pstore/ram.c b/fs/pstore/ram.c
index 319c3a6..bd9812e 100644
--- a/fs/pstore/ram.c
+++ b/fs/pstore/ram.c
@@ -55,8 +55,8 @@ static ulong ramoops_pmsg_size = MIN_MEM_SIZE;
module_param_named(pmsg_size, ramoops_pmsg_size, ulong, 0400);
MODULE_PARM_DESC(pmsg_size, "size of user space message log");
-static ulong mem_address;
-module_param(mem_address, ulong, 0400);
+static unsigned long long mem_address;
+module_param(mem_address, ullong, 0400);
MODULE_PARM_DESC(mem_address,
"start of reserved RAM used to store oops/panic logs");
diff --git a/include/linux/pstore_ram.h b/include/linux/pstore_ram.h
index 9c9d6c1..4660aaa 100644
--- a/include/linux/pstore_ram.h
+++ b/include/linux/pstore_ram.h
@@ -76,7 +76,7 @@ ssize_t persistent_ram_ecc_string(struct persistent_ram_zone *prz,
struct ramoops_platform_data {
unsigned long mem_size;
- unsigned long mem_address;
+ phys_addr_t mem_address;
unsigned int mem_type;
unsigned long record_size;
unsigned long console_size;
--
1.7.1
Regards,
Wladislav Wiebe
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] pstore: add support for 64 Bit address space
2015-11-13 12:10 [PATCH] pstore: add support for 64 Bit address space Wiebe, Wladislav (Nokia - DE/Ulm)
@ 2015-11-13 23:46 ` Kees Cook
2015-11-16 11:38 ` Wladislav Wiebe
2016-01-27 9:34 ` Wladislav Wiebe
0 siblings, 2 replies; 5+ messages in thread
From: Kees Cook @ 2015-11-13 23:46 UTC (permalink / raw)
To: Wiebe, Wladislav (Nokia - DE/Ulm); +Cc: anton, ccross, tony.luck, linux-kernel
On Fri, Nov 13, 2015 at 4:10 AM, Wiebe, Wladislav (Nokia - DE/Ulm)
<wladislav.wiebe@nokia.com> wrote:
> Some architectures has there reserved RAM in 64 Bit address space.
> Therefore converting mem_address module parameter to ullong.
>
> Signed-off-by: Wladislav Wiebe <wladislav.wiebe@nokia.com>
If this works correctly, I have no objection. :)
Acked-by: Kees Cook <keescook@chromium.org>
Thanks!
-Kees
> ---
> fs/pstore/ram.c | 4 ++--
> include/linux/pstore_ram.h | 2 +-
> 2 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/fs/pstore/ram.c b/fs/pstore/ram.c
> index 319c3a6..bd9812e 100644
> --- a/fs/pstore/ram.c
> +++ b/fs/pstore/ram.c
> @@ -55,8 +55,8 @@ static ulong ramoops_pmsg_size = MIN_MEM_SIZE;
> module_param_named(pmsg_size, ramoops_pmsg_size, ulong, 0400);
> MODULE_PARM_DESC(pmsg_size, "size of user space message log");
>
> -static ulong mem_address;
> -module_param(mem_address, ulong, 0400);
> +static unsigned long long mem_address;
> +module_param(mem_address, ullong, 0400);
> MODULE_PARM_DESC(mem_address,
> "start of reserved RAM used to store oops/panic logs");
>
> diff --git a/include/linux/pstore_ram.h b/include/linux/pstore_ram.h
> index 9c9d6c1..4660aaa 100644
> --- a/include/linux/pstore_ram.h
> +++ b/include/linux/pstore_ram.h
> @@ -76,7 +76,7 @@ ssize_t persistent_ram_ecc_string(struct persistent_ram_zone *prz,
>
> struct ramoops_platform_data {
> unsigned long mem_size;
> - unsigned long mem_address;
> + phys_addr_t mem_address;
> unsigned int mem_type;
> unsigned long record_size;
> unsigned long console_size;
> --
> 1.7.1
>
> Regards,
> Wladislav Wiebe
>
>
--
Kees Cook
Chrome OS Security
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] pstore: add support for 64 Bit address space
2015-11-13 23:46 ` Kees Cook
@ 2015-11-16 11:38 ` Wladislav Wiebe
2016-01-27 9:34 ` Wladislav Wiebe
1 sibling, 0 replies; 5+ messages in thread
From: Wladislav Wiebe @ 2015-11-16 11:38 UTC (permalink / raw)
To: EXT Kees Cook; +Cc: anton, ccross, tony.luck, linux-kernel
Am 14.11.2015 um 00:46 schrieb EXT Kees Cook:
> On Fri, Nov 13, 2015 at 4:10 AM, Wiebe, Wladislav (Nokia - DE/Ulm)
> <wladislav.wiebe@nokia.com> wrote:
>> Some architectures has there reserved RAM in 64 Bit address space.
>> Therefore converting mem_address module parameter to ullong.
>>
>> Signed-off-by: Wladislav Wiebe <wladislav.wiebe@nokia.com>
>
> If this works correctly, I have no objection. :)
I can confirm, it works fine :-)
Thanks!
- Wladislav Wiebe
>
> Acked-by: Kees Cook <keescook@chromium.org>
>
> Thanks!
>
> -Kees
>
>> ---
>> fs/pstore/ram.c | 4 ++--
>> include/linux/pstore_ram.h | 2 +-
>> 2 files changed, 3 insertions(+), 3 deletions(-)
>>
>> diff --git a/fs/pstore/ram.c b/fs/pstore/ram.c
>> index 319c3a6..bd9812e 100644
>> --- a/fs/pstore/ram.c
>> +++ b/fs/pstore/ram.c
>> @@ -55,8 +55,8 @@ static ulong ramoops_pmsg_size = MIN_MEM_SIZE;
>> module_param_named(pmsg_size, ramoops_pmsg_size, ulong, 0400);
>> MODULE_PARM_DESC(pmsg_size, "size of user space message log");
>>
>> -static ulong mem_address;
>> -module_param(mem_address, ulong, 0400);
>> +static unsigned long long mem_address;
>> +module_param(mem_address, ullong, 0400);
>> MODULE_PARM_DESC(mem_address,
>> "start of reserved RAM used to store oops/panic logs");
>>
>> diff --git a/include/linux/pstore_ram.h b/include/linux/pstore_ram.h
>> index 9c9d6c1..4660aaa 100644
>> --- a/include/linux/pstore_ram.h
>> +++ b/include/linux/pstore_ram.h
>> @@ -76,7 +76,7 @@ ssize_t persistent_ram_ecc_string(struct persistent_ram_zone *prz,
>>
>> struct ramoops_platform_data {
>> unsigned long mem_size;
>> - unsigned long mem_address;
>> + phys_addr_t mem_address;
>> unsigned int mem_type;
>> unsigned long record_size;
>> unsigned long console_size;
>> --
>> 1.7.1
>>
>> Regards,
>> Wladislav Wiebe
>>
>>
>
>
>
--
Regards,
Wladislav Wiebe
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] pstore: add support for 64 Bit address space
2015-11-13 23:46 ` Kees Cook
2015-11-16 11:38 ` Wladislav Wiebe
@ 2016-01-27 9:34 ` Wladislav Wiebe
2016-01-27 15:45 ` Kees Cook
1 sibling, 1 reply; 5+ messages in thread
From: Wladislav Wiebe @ 2016-01-27 9:34 UTC (permalink / raw)
To: EXT Kees Cook; +Cc: anton, ccross, tony.luck, linux-kernel
Am 14.11.2015 um 00:46 schrieb EXT Kees Cook:
> On Fri, Nov 13, 2015 at 4:10 AM, Wiebe, Wladislav (Nokia - DE/Ulm)
> <wladislav.wiebe@nokia.com> wrote:
>> Some architectures has there reserved RAM in 64 Bit address space.
>> Therefore converting mem_address module parameter to ullong.
>>
>> Signed-off-by: Wladislav Wiebe <wladislav.wiebe@nokia.com>
>
> If this works correctly, I have no objection. :)
Tested-by: Wladislav Wiebe <wladislav.wiebe@nokia.com>
Thanks!
Regards,
Wladislav Wiebe
>
> Acked-by: Kees Cook <keescook@chromium.org>
>
> Thanks!
>
> -Kees
>
>> ---
>> fs/pstore/ram.c | 4 ++--
>> include/linux/pstore_ram.h | 2 +-
>> 2 files changed, 3 insertions(+), 3 deletions(-)
>>
>> diff --git a/fs/pstore/ram.c b/fs/pstore/ram.c
>> index 319c3a6..bd9812e 100644
>> --- a/fs/pstore/ram.c
>> +++ b/fs/pstore/ram.c
>> @@ -55,8 +55,8 @@ static ulong ramoops_pmsg_size = MIN_MEM_SIZE;
>> module_param_named(pmsg_size, ramoops_pmsg_size, ulong, 0400);
>> MODULE_PARM_DESC(pmsg_size, "size of user space message log");
>>
>> -static ulong mem_address;
>> -module_param(mem_address, ulong, 0400);
>> +static unsigned long long mem_address;
>> +module_param(mem_address, ullong, 0400);
>> MODULE_PARM_DESC(mem_address,
>> "start of reserved RAM used to store oops/panic logs");
>>
>> diff --git a/include/linux/pstore_ram.h b/include/linux/pstore_ram.h
>> index 9c9d6c1..4660aaa 100644
>> --- a/include/linux/pstore_ram.h
>> +++ b/include/linux/pstore_ram.h
>> @@ -76,7 +76,7 @@ ssize_t persistent_ram_ecc_string(struct persistent_ram_zone *prz,
>>
>> struct ramoops_platform_data {
>> unsigned long mem_size;
>> - unsigned long mem_address;
>> + phys_addr_t mem_address;
>> unsigned int mem_type;
>> unsigned long record_size;
>> unsigned long console_size;
>> --
>> 1.7.1
>>
>> Regards,
>> Wladislav Wiebe
>>
>>
>
>
>
--
Regards,
Wladislav Wiebe
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] pstore: add support for 64 Bit address space
2016-01-27 9:34 ` Wladislav Wiebe
@ 2016-01-27 15:45 ` Kees Cook
0 siblings, 0 replies; 5+ messages in thread
From: Kees Cook @ 2016-01-27 15:45 UTC (permalink / raw)
To: Wladislav Wiebe; +Cc: anton, ccross, tony.luck, linux-kernel
On Wed, Jan 27, 2016 at 1:34 AM, Wladislav Wiebe
<wladislav.wiebe@nokia.com> wrote:
>
>
> Am 14.11.2015 um 00:46 schrieb EXT Kees Cook:
>>
>> On Fri, Nov 13, 2015 at 4:10 AM, Wiebe, Wladislav (Nokia - DE/Ulm)
>> <wladislav.wiebe@nokia.com> wrote:
>>>
>>> Some architectures has there reserved RAM in 64 Bit address space.
>>> Therefore converting mem_address module parameter to ullong.
>>>
>>> Signed-off-by: Wladislav Wiebe <wladislav.wiebe@nokia.com>
>>
>>
>> If this works correctly, I have no objection. :)
>
>
> Tested-by: Wladislav Wiebe <wladislav.wiebe@nokia.com>
Thanks! :)
Tony, can you pull this?
-Kees
>
> Thanks!
>
> Regards,
> Wladislav Wiebe
>
>
>>
>> Acked-by: Kees Cook <keescook@chromium.org>
>>
>> Thanks!
>>
>> -Kees
>>
>>> ---
>>> fs/pstore/ram.c | 4 ++--
>>> include/linux/pstore_ram.h | 2 +-
>>> 2 files changed, 3 insertions(+), 3 deletions(-)
>>>
>>> diff --git a/fs/pstore/ram.c b/fs/pstore/ram.c
>>> index 319c3a6..bd9812e 100644
>>> --- a/fs/pstore/ram.c
>>> +++ b/fs/pstore/ram.c
>>> @@ -55,8 +55,8 @@ static ulong ramoops_pmsg_size = MIN_MEM_SIZE;
>>> module_param_named(pmsg_size, ramoops_pmsg_size, ulong, 0400);
>>> MODULE_PARM_DESC(pmsg_size, "size of user space message log");
>>>
>>> -static ulong mem_address;
>>> -module_param(mem_address, ulong, 0400);
>>> +static unsigned long long mem_address;
>>> +module_param(mem_address, ullong, 0400);
>>> MODULE_PARM_DESC(mem_address,
>>> "start of reserved RAM used to store oops/panic logs");
>>>
>>> diff --git a/include/linux/pstore_ram.h b/include/linux/pstore_ram.h
>>> index 9c9d6c1..4660aaa 100644
>>> --- a/include/linux/pstore_ram.h
>>> +++ b/include/linux/pstore_ram.h
>>> @@ -76,7 +76,7 @@ ssize_t persistent_ram_ecc_string(struct
>>> persistent_ram_zone *prz,
>>>
>>> struct ramoops_platform_data {
>>> unsigned long mem_size;
>>> - unsigned long mem_address;
>>> + phys_addr_t mem_address;
>>> unsigned int mem_type;
>>> unsigned long record_size;
>>> unsigned long console_size;
>>> --
>>> 1.7.1
>>>
>>> Regards,
>>> Wladislav Wiebe
>>>
>>>
>>
>>
>>
>
> --
> Regards,
> Wladislav Wiebe
--
Kees Cook
Chrome OS & Brillo Security
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-01-27 15:45 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-13 12:10 [PATCH] pstore: add support for 64 Bit address space Wiebe, Wladislav (Nokia - DE/Ulm)
2015-11-13 23:46 ` Kees Cook
2015-11-16 11:38 ` Wladislav Wiebe
2016-01-27 9:34 ` Wladislav Wiebe
2016-01-27 15:45 ` Kees Cook
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.