lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <99af5127-05b8-4347-8857-19324d750155@app.fastmail.com>
Date: Tue, 23 Dec 2025 11:44:12 +0100
From: "Arnd Bergmann" <arnd@...db.de>
To: "Han Gao" <rabenda.cn@...il.com>
Cc: "Han Gao" <gaohan@...as.ac.cn>, "Jaroslav Kysela" <perex@...ex.cz>,
 "Takashi Iwai" <tiwai@...e.com>,
 "Kai Vehmanen" <kai.vehmanen@...ux.intel.com>,
 "Peter Ujfalusi" <peter.ujfalusi@...ux.intel.com>,
 "Ranjani Sridharan" <ranjani.sridharan@...ux.intel.com>,
 "Bard Liao" <yung-chuan.liao@...ux.intel.com>,
 "Maxim Mikityanskiy" <maxtram95@...il.com>,
 "Pierre-Louis Bossart" <pierre-louis.bossart@...ux.dev>,
 "Stuart Hayhurst" <stuart.a.hayhurst@...il.com>, linux-sound@...r.kernel.org,
 linux-riscv@...ts.infradead.org, sophgo@...ts.linux.dev,
 linux-kernel@...r.kernel.org
Subject: Re: [PATCH] ALSA: hda: intel: Introduce msi64 parameter to override 64-bit MSI
 restriction

On Tue, Dec 23, 2025, at 10:40, Han Gao wrote:
> On Tue, Dec 23, 2025 at 1:01 AM Arnd Bergmann <arnd@...db.de> wrote:
>> On Sat, Dec 20, 2025, at 18:05, Han Gao wrote:
>> >
>> > -     if (chip->msi && chip->driver_caps & AZX_DCAPS_NO_MSI64) {
>> > +     if (chip->msi && chip->driver_caps & AZX_DCAPS_NO_MSI64 && !msi64) {
>> >               dev_dbg(card->dev, "Disabling 64bit MSI\n");
>> >               pci->no_64bit_msi = true;
>> >       }
>>
>> The behavior is also wrong: if the system can use neither 32-bit
>> MSI nor 64-bit MSI, this would accidentally try to use the
>> 64-bit variant and then cause runtime issues.
>>
>> I would expect the only possible fallback to be using legacy IntX
>> interrupts, or returning a probe failure if that doesn't work
>
> Unfortunately, the SG2042 chip does not have an available legacy INTx.

Doesn't that mean that you can only use PCI drivers that enable
MSI at all? From what I can tell, only about a third of all
pci_driver instances do.

> db79afa1e57925ba96ab18514c0ebe42a28e393e
> 91ed6fd2c383bb8f02d66e98b4a4d2f7207249dc
>
> According to these two commits, these issues seem to be caused by powerpc.
> Can we use the CONFIG_PPC64 macro to determine this?

I wouldn't consider it a PPC64 specific issue, from my interpretation
this is the same issue as in the radeon driver, where the MSI
is limited by the DMA mask of the device, and the correct way to
do it is to check the mask while enabling an MSI, instead of
assuming that any high address is broken.

     Arnd

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ