From: Pratyush Anand <panand@redhat.com>
To: kexec@lists.infradead.org, geoff@infradead.org, james.morse@arm.com
Cc: mark.rutland@arm.com, Pratyush Anand <panand@redhat.com>,
dyoung@redhat.com, linux-arm-kernel@lists.infradead.org
Subject: [PATCH V2 0/2] kexec-tools: arm64: Enable D-cache in purgatory
Date: Mon, 19 Dec 2016 12:43:45 +0530 [thread overview]
Message-ID: <cover.1482129830.git.panand@redhat.com> (raw)
It takes more that 2 minutes to verify SHA in purgatory when vmlinuz image
is around 13MB and initramfs is around 30MB. It takes more than 20 second
even when we have -O2 optimization enabled. However, if dcache is enabled
during purgatory execution then, it takes just a second in SHA
verification.
Therefore, these patches adds support for dcache enabling facility during
purgatory execution.
Although I have simplified the logic a bit now, however I understand that
there are reservations for introducing this complexity for gaining few
seconding of execution time during kexec or crash reboot. But, I believe
if d-cache enabling code is stable enough then there should not be any
hindrances to accept it. So, please give it a try with your platform and
let me know if you see any issue or it does not work. I am still open to
improve it further if needed.
Changes since V1:
- Moved page table creation logic from purgatory to kexec code.
- Only 4K page table is supported, with 48 bit VA and 2M block size
- if platform supports a 4K page size, then D-cache is always
enabled now.
Pratyush Anand (2):
kexec: arm64: create identity page table to be used in purgatory
arm64: enable d-cache support during purgatory sha verification
kexec/arch/arm64/kexec-arm64.c | 152 ++++++++++++++++++
purgatory/arch/arm64/Makefile | 1 +
purgatory/arch/arm64/cache.S | 281 +++++++++++++++++++++++++++++++++
purgatory/arch/arm64/purgatory-arm64.c | 5 +
4 files changed, 439 insertions(+)
create mode 100644 purgatory/arch/arm64/cache.S
--
2.7.4
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
WARNING: multiple messages have this Message-ID (diff)
From: panand@redhat.com (Pratyush Anand)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH V2 0/2] kexec-tools: arm64: Enable D-cache in purgatory
Date: Mon, 19 Dec 2016 12:43:45 +0530 [thread overview]
Message-ID: <cover.1482129830.git.panand@redhat.com> (raw)
It takes more that 2 minutes to verify SHA in purgatory when vmlinuz image
is around 13MB and initramfs is around 30MB. It takes more than 20 second
even when we have -O2 optimization enabled. However, if dcache is enabled
during purgatory execution then, it takes just a second in SHA
verification.
Therefore, these patches adds support for dcache enabling facility during
purgatory execution.
Although I have simplified the logic a bit now, however I understand that
there are reservations for introducing this complexity for gaining few
seconding of execution time during kexec or crash reboot. But, I believe
if d-cache enabling code is stable enough then there should not be any
hindrances to accept it. So, please give it a try with your platform and
let me know if you see any issue or it does not work. I am still open to
improve it further if needed.
Changes since V1:
- Moved page table creation logic from purgatory to kexec code.
- Only 4K page table is supported, with 48 bit VA and 2M block size
- if platform supports a 4K page size, then D-cache is always
enabled now.
Pratyush Anand (2):
kexec: arm64: create identity page table to be used in purgatory
arm64: enable d-cache support during purgatory sha verification
kexec/arch/arm64/kexec-arm64.c | 152 ++++++++++++++++++
purgatory/arch/arm64/Makefile | 1 +
purgatory/arch/arm64/cache.S | 281 +++++++++++++++++++++++++++++++++
purgatory/arch/arm64/purgatory-arm64.c | 5 +
4 files changed, 439 insertions(+)
create mode 100644 purgatory/arch/arm64/cache.S
--
2.7.4
next reply other threads:[~2016-12-19 7:14 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-19 7:13 Pratyush Anand [this message]
2016-12-19 7:13 ` [PATCH V2 0/2] kexec-tools: arm64: Enable D-cache in purgatory Pratyush Anand
2016-12-19 7:13 ` [PATCH V2 1/2] kexec: arm64: create identity page table to be used " Pratyush Anand
2016-12-19 7:13 ` Pratyush Anand
2016-12-19 7:21 ` Maxim Uvarov
2016-12-19 7:21 ` Maxim Uvarov
2016-12-19 7:23 ` Pratyush Anand
2016-12-19 7:23 ` Pratyush Anand
2017-01-17 17:25 ` James Morse
2017-01-17 17:25 ` James Morse
2017-01-18 7:43 ` Pratyush Anand
2017-01-18 7:43 ` Pratyush Anand
2017-03-15 9:42 ` Pratyush Anand
2017-03-15 9:42 ` Pratyush Anand
2016-12-19 7:13 ` [PATCH V2 2/2] arm64: enable d-cache support during purgatory sha verification Pratyush Anand
2016-12-19 7:13 ` Pratyush Anand
2017-01-06 3:31 ` [PATCH V2 0/2] kexec-tools: arm64: Enable D-cache in purgatory Pratyush Anand
2017-01-06 3:31 ` Pratyush Anand
2017-01-10 14:11 ` James Morse
2017-01-10 14:11 ` James Morse
2017-02-23 5:59 ` Pratyush Anand
2017-02-23 5:59 ` Pratyush Anand
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=cover.1482129830.git.panand@redhat.com \
--to=panand@redhat.com \
--cc=dyoung@redhat.com \
--cc=geoff@infradead.org \
--cc=james.morse@arm.com \
--cc=kexec@lists.infradead.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=mark.rutland@arm.com \
/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.