mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Arnd Bergmann" <arnd@arndb.de>
To: "André Almeida" <andrealmeid@igalia.com>,
	"Thomas Gleixner" <tglx@kernel.org>,
	"Ingo Molnar" <mingo@redhat.com>,
	"Borislav Petkov" <bp@alien8.de>,
	"Dave Hansen" <dave.hansen@linux.intel.com>,
	"H. Peter Anvin" <hpa@zytor.com>,
	"Nathan Chancellor" <nathan@kernel.org>
Cc: linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org,
	kernel-dev@igalia.com
Subject: Re: [PATCH RFC v2 0/4] syscalls: Add a shared table for all archs
Date: Tue, 28 Jul 2026 10:30:52 +0200	[thread overview]
Message-ID: <a10b536c-42d5-4884-bfd4-2210845b1f7d@app.fastmail.com> (raw)
In-Reply-To: <20260727-tonyk-syscall_table-v2-0-95d4f1ee471f@igalia.com>

On Tue, Jul 28, 2026, at 04:47, André Almeida wrote:
> The generic table starts from 403 (clock_gettime64), the first common syscall.
> The scripts are adapted to x86 specifics, like not generating the compat entry
> point for x86_64 and placing x86_x32 things in the proper order. x32 is likely
> to be dropped from Linux soon but for the moment I left the support there. If
> this sounds good, next revision I can add the docs bits too.

It may be easier to skip x32/x86-64 for the moment and focus on
the architectures that we know need small changes (mips, powerpc,
alpha).

The patch at
https://lore.kernel.org/all/20260707212252.bYk3-AlU@linutronix.de/
still hasn't been picked up yet. If your series is done before
we actually remove x32, we may still need to add a temporary
workaround for it, but it would be easier to avoid that altogether
by waiting a bit.

> I've tested this with x86 and arm64, by comparing the syscalls_*.h and
> unistd_*.h files generated before and after this patchset and they are
> identical.

I've had another look at what I tried previously, here is the list of
things we have to figure out to do this properly across all
architectures:

- separate offsets for base and common table on alpha. Maybe we can
  just process the two tables separately here and combine the
  output files afterwards?
- special __sys_clone3 entry points on alpha, m68k, mips, parisc and
  sparc.
- combine mips n32/n64 tables into a single file with regular
  use of compat entries for n32, in order to handle compat entry
  for the common calls (epoll_pwait2, pselect_time64, ppoll_time64,
  io_pgetevents_time64, recvmmsg_time64, rt_sigtimedwait_time64)
- come up with a solution for nospu syscalls on powerpc (clone3,
  set_mempolicy_home_node, rseq_slice_yield). Possibly dropping support
  for spu syscalls entirely, making all common syscalls implicitly
  nospu, incorporating this in the common table, or handling this
  in the syscall implementation where necessary.
  note that newlib still supports spu syscalls, but only lists
  numbers up to __NR_sync_file_range2 (#308). gcc-10 and higher
  no longer support SPU at all.

       Arnd

      parent reply	other threads:[~2026-07-28  8:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-28  2:47 André Almeida
2026-07-28  2:47 ` [PATCH RFC v2 1/4] syscalls: Create unified partial " André Almeida
2026-07-28  6:47   ` Arnd Bergmann
2026-07-28  2:47 ` [PATCH RFC v2 2/4] syscalls: Add support for x86_x32 for the common syscall table André Almeida
2026-07-28  2:47 ` [PATCH RFC v2 3/4] x86: Use " André Almeida
2026-07-28  2:47 ` [PATCH RFC v2 4/4] scripts/syscall.tbl: Use the common table André Almeida
2026-07-28  8:30 ` Arnd Bergmann [this message]

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=a10b536c-42d5-4884-bfd4-2210845b1f7d@app.fastmail.com \
    --to=arnd@arndb.de \
    --cc=andrealmeid@igalia.com \
    --cc=bp@alien8.de \
    --cc=dave.hansen@linux.intel.com \
    --cc=hpa@zytor.com \
    --cc=kernel-dev@igalia.com \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=nathan@kernel.org \
    --cc=tglx@kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®