[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CA+55aFwkcHhE45y3CeM2ujeqyx6okt30rF+ipVg4RsGUse_XhQ@mail.gmail.com>
Date: Mon, 30 Oct 2017 11:00:36 -0700
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: Will Deacon <will.deacon@....com>
Cc: Borislav Petkov <bp@...e.de>, Len Brown <lenb@...nel.org>,
Tony Luck <tony.luck@...el.com>,
Fengguang Wu <fengguang.wu@...el.com>,
Tyler Baicar <tbaicar@...eaurora.org>,
Huang Ying <ying.huang@...el.com>,
Chen Gong <gong.chen@...ux.intel.com>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
"Rafael J. Wysocki" <rjw@...ysocki.net>,
Linux ACPI <linux-acpi@...r.kernel.org>
Subject: Re: [ghes_copy_tofrom_phys] BUG: sleeping function called from
invalid context at mm/page_alloc.c:4150
On Mon, Oct 30, 2017 at 10:49 AM, Will Deacon <will.deacon@....com> wrote:
>
> FWIW, we discussed some of this back in 2015, because the TLB invalidation
> looks busted to me too:
Yeah, I think the basic issue is that ioremap() is not supposed to map
*over* an existing mapping, it's designed to map pages into a new
mapping.
I think *every* other user of "ioremap_page_range()" is literally the
architecture-specific implementation of "ioremap()" (which does the
whole "allocate new VM area, then remap page range into that".
So the GHES driver use of this function really looks very wrong on so
many levels.
Checking..
Oh, git grep shows "drivers/pci/host/pci-tegra.c".
I'm afraid to even look into that file.
And pci_remap_iospace() looks potentially like a problem spot too -
but hopefully is done only at driver init time (but it could possibly
have the TLB issue).
Linus
Powered by blists - more mailing lists