[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <7fdfbadf-3ed9-4b95-84cc-418cbc9e1997@app.fastmail.com>
Date: Tue, 14 Jan 2025 18:55:53 +0000
From: "Jiaxun Yang" <jiaxun.yang@...goat.com>
To: "Greg Kroah-Hartman" <gregkh@...uxfoundation.org>
Cc: "Thomas Bogendoerfer" <tsbogend@...ha.franken.de>,
"Arnd Bergmann" <arnd@...db.de>, "Baoquan He" <bhe@...hat.com>,
"linux-mips@...r.kernel.org" <linux-mips@...r.kernel.org>,
linux-kernel@...r.kernel.org,
"stable@...r.kernel.org" <stable@...r.kernel.org>,
Mateusz Jończyk <mat.jonczyk@...pl>
Subject: Re: [PATCH] MIPS: pci-legacy: Override pci_address_to_pio
在2025年1月14日一月 下午6:46,Greg KH写道:
> On Tue, Jan 14, 2025 at 06:11:58PM +0000, Jiaxun Yang wrote:
>> pci-legacy systems are not using logic_pio to managed PIO
>> allocations, thus the generic pci_address_to_pio won't work
>> when PCI_IOBASE is defined.
>>
>> Override the function to use architecture implementation to
>> fix the problem.
>>
>> Cc: stable@...r.kernel.org
>> Fixes: 4bfb53e7d317 ("mips: add <asm-generic/io.h> including")
>> Reported-by: Mateusz Jończyk <mat.jonczyk@...pl>
>> Closes: https://lore.kernel.org/r/99f75c66-4c2d-45dc-a808-b5ba440c7551@app.fastmail.com/
>> Signed-off-by: Jiaxun Yang <jiaxun.yang@...goat.com>
>> ---
>> This is a quick fix for fixes tree and stable backporting.
>> In long term, we should get logic_pio accept fixed mapping,
>> and make PCI core code aware of platforms not using vmap
>> for PCI_IOBASE.
>
> Why not do the real work now. Don't worry about stable kernels, fix it
> properly.
:-( Sadly the long-term solution is going to be a huge effort across
architectures, and I'm not even sure if people will agree with my approach.
So I'd prefer get this fix applied first and kick up discussions on a
long-term solution.
Will post RFC shortly.
Thanks
>
> thanks,
>
> greg k-h
--
- Jiaxun
Powered by blists - more mailing lists