Netdev List
 help / color / mirror / Atom feed
From: Jeremy Kerr <jk@codeconstruct.com.au>
To: Adam Young <admiyo@amperemail.onmicrosoft.com>,
	Paolo Abeni <pabeni@redhat.com>,
	admiyo@os.amperecomputing.com
Cc: matt@codeconstruct.com.au, andrew+netdev@lunn.ch,
	davem@davemloft.net,  edumazet@google.com, kuba@kernel.org,
	netdev@vger.kernel.org,  linux-kernel@vger.kernel.org,
	sudeep.holla@arm.com, Jonathan.Cameron@huawei.com,
	 lihuisong@huawei.com
Subject: Re: [net-next v44] mctp pcc: Implement MCTP over PCC Transport
Date: Tue, 23 Jun 2026 13:54:50 +0800	[thread overview]
Message-ID: <9d11a866347c2c8cd69fdcb338bae743d6e68bfc.camel@codeconstruct.com.au> (raw)
In-Reply-To: <edacdad5-7936-4fbf-ba66-973768ebdf73@amperemail.onmicrosoft.com>

Hi Adam,

> > > The code itself will not, as written, work on a 32 Bit system, as there
> > > are 64 bit specific code.
> > Yeah, that was more my question - what is 64-bit specific about the
> > code?
> 
> I'd really have to dig, as this decision was mixed in with the earlier 
> endinaness conversions.  I suspect, that it was origianally triggered by 
> the ACPICA insisting on Machine architecture for these values, where 
> they are supposed to be explicitly 32, 64 bit etc.

Looking at the history, it appears like this was a in response to the
AI review comments about the stats update with interrupts enabled. The
report was that it may result in tearing of the stats values on 32-bit
machines, but if you have the stats updates right (which I think
you do now?) then this is not an issue.

> It might be perfectly safe, but I have no way to test. Treat it as a 
> general trend toward not supporting newer technology on older architectures.

This is more about not imposing a configuration restriction with no
purpose. There is no need for you to test/support those configurations
though.

> Could I safely acquire a spinlock in the rx_ callback during interupt
> context?

Yes, absolutely. That's a main use-case for spinlocks, to allow
serialisation from within an atomic context.

> I thought that had a significant impact on the system.

You don't want to be doing large amounts of work within the critical
section (and with interrupts disabled), but your scenario should be
fine.

Cheers,


Jeremy

      reply	other threads:[~2026-06-23  5:55 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-22 19:36 [net-next v44] mctp pcc: Implement MCTP over PCC Transport Adam Young
2026-05-28  8:45 ` Paolo Abeni
2026-05-28 18:26   ` Adam Young
2026-05-29  1:44     ` Jeremy Kerr
2026-06-01 16:01       ` Adam Young
2026-06-02  4:42         ` Jeremy Kerr
2026-06-02 17:49           ` Adam Young
2026-06-23  5:54             ` Jeremy Kerr [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=9d11a866347c2c8cd69fdcb338bae743d6e68bfc.camel@codeconstruct.com.au \
    --to=jk@codeconstruct.com.au \
    --cc=Jonathan.Cameron@huawei.com \
    --cc=admiyo@amperemail.onmicrosoft.com \
    --cc=admiyo@os.amperecomputing.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=kuba@kernel.org \
    --cc=lihuisong@huawei.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=matt@codeconstruct.com.au \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=sudeep.holla@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox