From: Thomas Gleixner <tglx@linutronix.de>
To: Yajun Deng <yajun.deng@linux.dev>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] genirq: Keep affinity_hint unchanged if it has a value
Date: Wed, 12 Mar 2025 10:10:04 +0100 [thread overview]
Message-ID: <87h63yzkb7.ffs@tglx> (raw)
In-Reply-To: <171eb20e618f8c05ef8169e892a1ed08cf580ee9@linux.dev>
On Wed, Mar 12 2025 at 03:20, Yajun Deng wrote:
> March 11, 2025 at 10:14 PM, "Thomas Gleixner" <tglx@linutronix.de> wrote:
>> > For example, if affinity_hint points to smp_affinity, smp_affinity
>> > is changed by the user, and affinity_hint would chang. affinity_hint
>> > couldn't as a hint to the user, it should keep the value if it has.
>>
>> What is 'smp_affinity'?
>
> It's 'desc->irq_common_data.affinity'.
Which has no business to end up in the affinity hint.
>> I really fail to understand the problem you are trying to solve.
>
> irq_update_affinity_hint(irq, desc->irq_common_data.affinity);
>
> As in this code, this means affinity_hint points to smp_affinity.
This code does not exist and no driver should ever invoke
irq_update_affinity_hint() that way. The hint is a cpu mask managed by
the driver and not something the driver pulls out of a data structure
which it has no business to fiddle with.
Thanks
tglx
next prev parent reply other threads:[~2025-03-12 9:10 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-11 1:33 [PATCH] genirq: Keep affinity_hint unchanged if it has a value Yajun Deng
2025-03-11 14:14 ` Thomas Gleixner
2025-03-12 3:20 ` Yajun Deng
2025-03-12 9:10 ` Thomas Gleixner [this message]
2025-03-12 10:28 ` Yajun Deng
2025-03-11 18:51 ` kernel test robot
2025-03-11 19:55 ` kernel test robot
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=87h63yzkb7.ffs@tglx \
--to=tglx@linutronix.de \
--cc=linux-kernel@vger.kernel.org \
--cc=yajun.deng@linux.dev \
/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