From: Jonathan Cameron <jic23@kernel.org>
To: David Laight <david.laight.linux@gmail.com>, linux-iio@vger.kernel.org
Cc: "Nicolas Pitre" <nico@fluxnic.net>,
"Borislav Betkov" <bp@alien8.de>,
"Ingo Molnar" <mingo@redhat.com>,
"Thomas Gleinxer" <tglx@linutronix.de>,
"Dave Hansen" <dave.hansen@linux.intel.com>,
x86@kernel.org, "Andrew Morton" <akpm@linux-foundation.org>,
linux-kernel@vger.kernel.org, "H. Peter Anvin" <hpa@zytor.com>,
"Peter Zijlstra" <peterz@infradead.org>,
"Uwe Kleine-König" <u.kleine-koenig@baylibre.com>,
rodrigo.alencar@analog.com
Subject: Re: [PATCH 0/2] x86: Use "er" asm constriant for add/sub
Date: Mon, 7 Sep 2026 23:14:44 +0100 [thread overview]
Message-ID: <20260907231444.7fa2d116@jic23-huawei> (raw)
In-Reply-To: <20260901175101.1e059ac8@jic23-huawei>
On Tue, 1 Sep 2026 17:51:01 +0100
Jonathan Cameron <jic23@kernel.org> wrote:
> On Sun, 23 Aug 2026 23:35:36 +0100
> Jonathan Cameron <jonathan.cameron@oss.qualcomm.com> wrote:
>
> > On Mon, 3 Aug 2026 16:39:55 +0100
> > David Laight <david.laight.linux@gmail.com> wrote:
> >
> > > On Mon, 3 Aug 2026 10:49:40 -0400 (EDT)
> > > Nicolas Pitre <nico@fluxnic.net> wrote:
> > >
> > > > On Mon, 3 Aug 2026, David Laight wrote:
> > > >
> > > > > The x86 instruction set only supports 32bit signed immediate values
> > > > > for add/sub.
> > > > > Replace the "ir" constraint with "er" to avoid build errors.
> > > > >
> > > > > Found by a patch that added used mul_u64_add_u64_div_u64() to
> > > > > do a rounding divide by 2^32 (perhaps not the best way to do this).
> > > > >
> > > > > A quick grep only found one other affected file.
> > > >
> > > > Would be a good idea adding those cases to the test module.
> > >
> > > They fail to compile so it isn't a big deal.
> > >
> > David, thanks for sorting this (and all for reviewing)
> >
> > Seems like everyone is happy. What route is this taking upstream?
> >
> > I held Rodrigo's driver to avoid the build breakage and would like to
> > get it queued up early in next cycle. So not that urgent but nice
> > to be able to tick it off the list!
> >
>
> Given I have a driver queued up behind this, shall I just take it through
> the drivers/iio tree?
>
> I can do an immutable branch just in case anyone else needs it this cycle.
>
I went ahead and picked these up on
https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git ib-iio-x86-asm-fix-7.3
and merged that into the main IIO branch. I want to give plenty of time in next
for the driver that was relying on them.
Currently this is all in my testing branch but I'll push that out as a non rebasing
(ideally) branch a bit later in the week.
Thanks
Jonathan
> Jonathan
>
>
> > Thanks,
> >
> > Jonathan
> >
> > > David
> > >
> > > >
> > > >
> > > > Nicolas
> > >
> >
>
>
next prev parent reply other threads:[~2026-09-07 22:14 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-03 9:47 David Laight
2026-08-03 9:47 ` [PATCH 1/2] lib: mul_u64_add_u64_div_u64: Fix addition of large constants David Laight
2026-08-03 10:08 ` H. Peter Anvin
2026-09-10 18:00 ` [tip: x86/urgent] x86/div64: Fix addition of large constants in mul_u64_add_u64_div_u64() tip-bot2 for David Laight
2026-08-03 9:47 ` [PATCH 2/2] x86/local: local_add/local_sub: Support large immediate values David Laight
2026-08-03 10:01 ` Peter Zijlstra
2026-08-03 10:07 ` H. Peter Anvin
2026-08-03 9:59 ` [PATCH 0/2] x86: Use "er" asm constriant for add/sub Peter Zijlstra
2026-08-03 14:49 ` Nicolas Pitre
2026-08-03 15:39 ` David Laight
2026-08-23 22:35 ` Jonathan Cameron
2026-09-01 16:51 ` Jonathan Cameron
2026-09-07 22:14 ` Jonathan Cameron [this message]
2026-09-08 3:32 ` Borislav Petkov
2026-09-08 10:02 ` Uwe Kleine-König
2026-09-08 15:21 ` Borislav Petkov
2026-09-08 15:49 ` Uwe Kleine-König
2026-09-08 16:55 ` Borislav Petkov
2026-09-10 3:20 ` Jonathan Cameron
2026-09-10 3:45 ` Borislav Petkov
2026-09-10 16:09 ` Jonathan Cameron
2026-09-10 18:00 ` Borislav Petkov
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=20260907231444.7fa2d116@jic23-huawei \
--to=jic23@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=bp@alien8.de \
--cc=dave.hansen@linux.intel.com \
--cc=david.laight.linux@gmail.com \
--cc=hpa@zytor.com \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=nico@fluxnic.net \
--cc=peterz@infradead.org \
--cc=rodrigo.alencar@analog.com \
--cc=tglx@linutronix.de \
--cc=u.kleine-koenig@baylibre.com \
--cc=x86@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®