All of lore.kernel.org
 help / color / mirror / Atom feed
From: James Morse <james.morse@arm.com>
To: AKASHI Takahiro <takahiro.akashi@linaro.org>
Cc: linux-efi@vger.kernel.org, ard.biesheuvel@linaro.org,
	jhugo@codeaurora.org, Bhupesh Sharma <bhsharma@redhat.com>,
	tbaicar@codeaurora.org, kexec@lists.infradead.org,
	Bhupesh SHARMA <bhupesh.linux@gmail.com>,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [RFC] arm64: extra entries in /proc/iomem for kexec
Date: Tue, 27 Mar 2018 14:32:49 +0100	[thread overview]
Message-ID: <da2989ec-7fa5-b044-3237-4e75f2fe6d98@arm.com> (raw)
In-Reply-To: <20180327101654.GB14737@linaro.org>

Hi Akashi,

On 27/03/18 11:16, AKASHI Takahiro wrote:
> On Tue, Mar 20, 2018 at 01:18:34AM +0530, Bhupesh Sharma wrote:
>> On 03/14/2018 01:59 PM, AKASHI Takahiro wrote:
>>> Currently, there is a inconsistent view between (A) and the mainline's:
>>> see (A-1) and (B-1). If this is really a matter, I can fix it.
>>> Kexec-tools can be easily modified to accept both formats, though.

Ooer, what needs changing in kexec-tools? What happens if someone doesn't update
userspace at the same time?

Is there a format which doesn't require a user-space change, (and shouldn't we
pick that one?)


>>> 2. How should we determine which regions be exported in /proc/iomem?
>>>
>>>  a. Trust all the memblock_reserve'd regions as my previous patch [3] does.
>>>
>>>     As I said, it's a kind of "overkill." Some of regions, say fdt, are
>>>     not required to be preserved across kexec.
>>
>>
>> I think we should preserve all the memblock_reserve'd regions. So +1 on this
>> approach from my side. I believe it might help avoid issues we have seen in
>> the past with 'kexec-tools' _incorrectly_ determining which regions to pick
>> from the '/proc/iomem'.
> 
> As I said in my reply to Ard's comment, I now know *overkill* is not a big
> issue and I will go for this approach.

/sys/kernel/debug/memblock/reserved has all kinds of weird stuff in it,
including some smaller-than-a-page reservations that appear to come from the
percpu allocator.

I agree it will make the implementation simpler, and reserving 'too much' isn't
an issue.


Thanks,

James

_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

WARNING: multiple messages have this Message-ID (diff)
From: James Morse <james.morse-5wv7dgnIgG8@public.gmane.org>
To: AKASHI Takahiro
	<takahiro.akashi-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
Cc: linux-efi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	ard.biesheuvel-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org,
	jhugo-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org,
	Bhupesh Sharma <bhsharma-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>,
	tbaicar-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org,
	kexec-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
	Bhupesh SHARMA
	<bhupesh.linux-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
Subject: Re: [RFC] arm64: extra entries in /proc/iomem for kexec
Date: Tue, 27 Mar 2018 14:32:49 +0100	[thread overview]
Message-ID: <da2989ec-7fa5-b044-3237-4e75f2fe6d98@arm.com> (raw)
In-Reply-To: <20180327101654.GB14737-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>

Hi Akashi,

On 27/03/18 11:16, AKASHI Takahiro wrote:
> On Tue, Mar 20, 2018 at 01:18:34AM +0530, Bhupesh Sharma wrote:
>> On 03/14/2018 01:59 PM, AKASHI Takahiro wrote:
>>> Currently, there is a inconsistent view between (A) and the mainline's:
>>> see (A-1) and (B-1). If this is really a matter, I can fix it.
>>> Kexec-tools can be easily modified to accept both formats, though.

Ooer, what needs changing in kexec-tools? What happens if someone doesn't update
userspace at the same time?

Is there a format which doesn't require a user-space change, (and shouldn't we
pick that one?)


>>> 2. How should we determine which regions be exported in /proc/iomem?
>>>
>>>  a. Trust all the memblock_reserve'd regions as my previous patch [3] does.
>>>
>>>     As I said, it's a kind of "overkill." Some of regions, say fdt, are
>>>     not required to be preserved across kexec.
>>
>>
>> I think we should preserve all the memblock_reserve'd regions. So +1 on this
>> approach from my side. I believe it might help avoid issues we have seen in
>> the past with 'kexec-tools' _incorrectly_ determining which regions to pick
>> from the '/proc/iomem'.
> 
> As I said in my reply to Ard's comment, I now know *overkill* is not a big
> issue and I will go for this approach.

/sys/kernel/debug/memblock/reserved has all kinds of weird stuff in it,
including some smaller-than-a-page reservations that appear to come from the
percpu allocator.

I agree it will make the implementation simpler, and reserving 'too much' isn't
an issue.


Thanks,

James

WARNING: multiple messages have this Message-ID (diff)
From: james.morse@arm.com (James Morse)
To: linux-arm-kernel@lists.infradead.org
Subject: [RFC] arm64: extra entries in /proc/iomem for kexec
Date: Tue, 27 Mar 2018 14:32:49 +0100	[thread overview]
Message-ID: <da2989ec-7fa5-b044-3237-4e75f2fe6d98@arm.com> (raw)
In-Reply-To: <20180327101654.GB14737@linaro.org>

Hi Akashi,

On 27/03/18 11:16, AKASHI Takahiro wrote:
> On Tue, Mar 20, 2018 at 01:18:34AM +0530, Bhupesh Sharma wrote:
>> On 03/14/2018 01:59 PM, AKASHI Takahiro wrote:
>>> Currently, there is a inconsistent view between (A) and the mainline's:
>>> see (A-1) and (B-1). If this is really a matter, I can fix it.
>>> Kexec-tools can be easily modified to accept both formats, though.

Ooer, what needs changing in kexec-tools? What happens if someone doesn't update
userspace at the same time?

Is there a format which doesn't require a user-space change, (and shouldn't we
pick that one?)


>>> 2. How should we determine which regions be exported in /proc/iomem?
>>>
>>>  a. Trust all the memblock_reserve'd regions as my previous patch [3] does.
>>>
>>>     As I said, it's a kind of "overkill." Some of regions, say fdt, are
>>>     not required to be preserved across kexec.
>>
>>
>> I think we should preserve all the memblock_reserve'd regions. So +1 on this
>> approach from my side. I believe it might help avoid issues we have seen in
>> the past with 'kexec-tools' _incorrectly_ determining which regions to pick
>> from the '/proc/iomem'.
> 
> As I said in my reply to Ard's comment, I now know *overkill* is not a big
> issue and I will go for this approach.

/sys/kernel/debug/memblock/reserved has all kinds of weird stuff in it,
including some smaller-than-a-page reservations that appear to come from the
percpu allocator.

I agree it will make the implementation simpler, and reserving 'too much' isn't
an issue.


Thanks,

James

  reply	other threads:[~2018-03-27 13:32 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-14  8:29 [RFC] arm64: extra entries in /proc/iomem for kexec AKASHI Takahiro
2018-03-14  8:29 ` AKASHI Takahiro
2018-03-14  8:29 ` AKASHI Takahiro
2018-03-14  8:39 ` Ard Biesheuvel
2018-03-14  8:39   ` Ard Biesheuvel
2018-03-14  8:39   ` Ard Biesheuvel
2018-03-15  4:41   ` AKASHI Takahiro
2018-03-15  4:41     ` AKASHI Takahiro
2018-03-15  4:41     ` AKASHI Takahiro
2018-03-15  7:33     ` Ard Biesheuvel
2018-03-15  7:33       ` Ard Biesheuvel
2018-03-15  7:33       ` Ard Biesheuvel
2018-03-19 19:48 ` Bhupesh Sharma
2018-03-19 19:48   ` Bhupesh Sharma
2018-03-19 19:48   ` Bhupesh Sharma
2018-03-27 10:16   ` AKASHI Takahiro
2018-03-27 10:16     ` AKASHI Takahiro
2018-03-27 10:16     ` AKASHI Takahiro
2018-03-27 13:32     ` James Morse [this message]
2018-03-27 13:32       ` James Morse
2018-03-27 13:32       ` James Morse
2018-04-02  1:53       ` AKASHI Takahiro
2018-04-02  1:53         ` AKASHI Takahiro
2018-04-02  1:53         ` AKASHI Takahiro
2018-04-05  2:42         ` AKASHI Takahiro
2018-04-05  2:42           ` AKASHI Takahiro
2018-04-05  2:42           ` AKASHI Takahiro
2018-04-12 16:01           ` James Morse
2018-04-12 16:01             ` James Morse
2018-04-12 16:01             ` James Morse
2018-04-16 10:08             ` AKASHI Takahiro
2018-04-16 10:08               ` AKASHI Takahiro
2018-04-16 10:08               ` AKASHI Takahiro
2018-04-24 16:08               ` James Morse
2018-04-24 16:08                 ` James Morse
2018-04-24 16:08                 ` James Morse
2018-04-25  9:20                 ` AKASHI Takahiro
2018-04-25  9:20                   ` AKASHI Takahiro
2018-04-25  9:20                   ` AKASHI Takahiro
2018-04-25 13:22                   ` James Morse
2018-04-25 13:22                     ` James Morse
2018-04-25 13:22                     ` James Morse
2018-04-26  7:40                     ` AKASHI Takahiro
2018-04-26  7:40                       ` AKASHI Takahiro
2018-04-26  7:40                       ` AKASHI Takahiro
2018-04-26 14:26                       ` James Morse
2018-04-26 14:26                         ` James Morse
2018-04-26 14:26                         ` James Morse

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=da2989ec-7fa5-b044-3237-4e75f2fe6d98@arm.com \
    --to=james.morse@arm.com \
    --cc=ard.biesheuvel@linaro.org \
    --cc=bhsharma@redhat.com \
    --cc=bhupesh.linux@gmail.com \
    --cc=jhugo@codeaurora.org \
    --cc=kexec@lists.infradead.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-efi@vger.kernel.org \
    --cc=takahiro.akashi@linaro.org \
    --cc=tbaicar@codeaurora.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.