From: Leonardo Bras <leobras@redhat.com>
To: "Paul Walmsley" <paul.walmsley@sifive.com>,
"Palmer Dabbelt" <palmer@dabbelt.com>,
"Albert Ou" <aou@eecs.berkeley.edu>,
"Eric Biederman" <ebiederm@xmission.com>,
"Kees Cook" <keescook@chromium.org>,
"Oleg Nesterov" <oleg@redhat.com>,
"Leonardo Bras" <leobras@redhat.com>,
"Guo Ren" <guoren@kernel.org>, "Andy Chiu" <andy.chiu@sifive.com>,
"Conor Dooley" <conor.dooley@microchip.com>,
"Xiao Wang" <xiao.w.wang@intel.com>,
"Vincent Chen" <vincent.chen@sifive.com>,
"Charlie Jenkins" <charlie@rivosinc.com>,
"Greg Ungerer" <gerg@kernel.org>,
"Andrew Morton" <akpm@linux-foundation.org>,
"Kemeng Shi" <shikemeng@huaweicloud.com>,
"Alexandre Ghiti" <alexghiti@rivosinc.com>,
"David Hildenbrand" <david@redhat.com>,
"Matthew Wilcox (Oracle)" <willy@infradead.org>,
"Qinglin Pan" <panqinglin2020@iscas.ac.cn>,
"Greentime Hu" <greentime.hu@sifive.com>,
"Baoquan He" <bhe@redhat.com>,
"Clément Léger" <cleger@rivosinc.com>
Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org,
linux-mm@kvack.org
Subject: [PATCH v1 0/5] riscv: Introduce compat-mode helpers & improve arch_get_mmap_end()
Date: Wed, 3 Jan 2024 13:00:18 -0300 [thread overview]
Message-ID: <20240103160024.70305-2-leobras@redhat.com> (raw)
I just saw the opportunity of optimizing the helper is_compat_task() by
introducing a compile-time test, and it made possible to remove some
#ifdef's without any loss of performance.
I also saw the possibility of removing the direct check of task flags from
general code, and concentrated it in asm/compat.h by creating a few more
helpers, which in the end helped optimize code.
arch_get_mmap_end() just got a simple improvement and some extra docs.
Changes since RFC:
- Fused with other patchset: Improve arch_get_mmap_end() macro
- Renamed from "Introduce & Optimize compat-mode helpers"
Leonardo Bras (5):
riscv: Improve arch_get_mmap_end() macro
riscv: Replace direct thread flag check with is_compat_task()
riscv: add compile-time test into is_compat_task()
riscv: Introduce is_compat_thread() into compat.h
riscv: Introduce set_compat_task() in asm/compat.h
arch/riscv/include/asm/compat.h | 19 +++++++++++++++++++
arch/riscv/include/asm/elf.h | 11 ++---------
arch/riscv/include/asm/pgtable.h | 8 +-------
arch/riscv/include/asm/processor.h | 16 +++++++++++-----
arch/riscv/kernel/ptrace.c | 6 +++---
5 files changed, 36 insertions(+), 24 deletions(-)
base-commit: 610a9b8f49fbcf1100716370d3b5f6f884a2835a
--
2.43.0
next reply other threads:[~2024-01-03 16:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-03 16:00 Leonardo Bras [this message]
2024-01-03 16:00 ` [PATCH v1 1/5] riscv: Improve arch_get_mmap_end() macro Leonardo Bras
2024-01-03 16:00 ` [PATCH v1 2/5] riscv: Replace direct thread flag check with is_compat_task() Leonardo Bras
2024-01-03 16:00 ` [PATCH v1 3/5] riscv: add compile-time test into is_compat_task() Leonardo Bras
2024-01-03 16:00 ` [PATCH v1 4/5] riscv: Introduce is_compat_thread() into compat.h Leonardo Bras
2024-01-03 16:00 ` [PATCH v1 5/5] riscv: Introduce set_compat_task() in asm/compat.h Leonardo Bras
2024-03-20 20:50 ` [PATCH v1 0/5] riscv: Introduce compat-mode helpers & improve arch_get_mmap_end() patchwork-bot+linux-riscv
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=20240103160024.70305-2-leobras@redhat.com \
--to=leobras@redhat.com \
--cc=akpm@linux-foundation.org \
--cc=alexghiti@rivosinc.com \
--cc=andy.chiu@sifive.com \
--cc=aou@eecs.berkeley.edu \
--cc=bhe@redhat.com \
--cc=charlie@rivosinc.com \
--cc=cleger@rivosinc.com \
--cc=conor.dooley@microchip.com \
--cc=david@redhat.com \
--cc=ebiederm@xmission.com \
--cc=gerg@kernel.org \
--cc=greentime.hu@sifive.com \
--cc=guoren@kernel.org \
--cc=keescook@chromium.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=linux-riscv@lists.infradead.org \
--cc=oleg@redhat.com \
--cc=palmer@dabbelt.com \
--cc=panqinglin2020@iscas.ac.cn \
--cc=paul.walmsley@sifive.com \
--cc=shikemeng@huaweicloud.com \
--cc=vincent.chen@sifive.com \
--cc=willy@infradead.org \
--cc=xiao.w.wang@intel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).