From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754384AbdKIMYo (ORCPT ); Thu, 9 Nov 2017 07:24:44 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:10045 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754241AbdKIMYn (ORCPT ); Thu, 9 Nov 2017 07:24:43 -0500 Subject: Re: [RFC/RFT PATCH 0/6] Switch GHES ioremap_page_range() to use fixmap To: James Morse , References: <20171031153832.17746-1-james.morse@arm.com> CC: "Rafael J . Wysocki" , Tony Luck , Xie XiuQi , Tyler Baicar , Catalin Marinas , , Will Deacon , , Dongjiu Geng , Ingo Molnar , "H . Peter Anvin" , Thomas Gleixner , Borislav Petkov , , , Len Brown From: Zhengqiang Message-ID: <5A04489D.2040201@huawei.com> Date: Thu, 9 Nov 2017 20:22:53 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <20171031153832.17746-1-james.morse@arm.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.63.177.164] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A090203.5A0448DD.004D,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2014-11-16 11:51:01, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: ebc386c19739d04b60a999f3d5018861 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2017/10/31 23:38, James Morse wrote: > GHES is doing ioremap_page_range() in both NMI and irq context, neither > are safe as it may sleep to allocate intermediate levels of page table. > > Replace the NMI/irq GHES_IOREMAP_PAGES to use a fixmap entry each. > > After this nothing uses ghes_ioremap_area or arch_apei_flush_tlb_one(), > rip them out. > > RFC as I've only build-tested this on x86. For arm64 I've tested it on a > software model. Any more testing would be welcome. These patches are based > on rc7. > Tested-by: Qiang Zheng Verified on our arm64, it work for me. Thanks. Qiang