From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Williams Subject: Re: [PATCH 12/17] memremap: Change region_intersects() to take @flags and @desc Date: Tue, 26 Jan 2016 13:08:05 -0800 Message-ID: References: <1453841853-11383-1-git-send-email-bp@alien8.de> <1453841853-11383-13-git-send-email-bp@alien8.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: In-Reply-To: <1453841853-11383-13-git-send-email-bp@alien8.de> Sender: owner-linux-mm@kvack.org To: Borislav Petkov Cc: Ingo Molnar , LKML , Andrew Morton , Ard Biesheuvel , Jakub Sitnicki , Jan Kara , Jiang Liu , Kees Cook , "Kirill A. Shutemov" , Konstantin Khlebnikov , linux-arch@vger.kernel.org, linux-mm , Michal Hocko , Naoya Horiguchi , Tejun Heo , Vlastimil Babka List-Id: linux-arch.vger.kernel.org On Tue, Jan 26, 2016 at 12:57 PM, Borislav Petkov wrote: > From: Toshi Kani > > Change region_intersects() to identify a target with @flags and @desc, > instead of @name with strcmp(). > > Change the callers of region_intersects(), memremap() and > devm_memremap(), to set IORESOURCE_SYSTEM_RAM in @flags and > IORES_DESC_NONE in @desc when searching System RAM. > > Also, export region_intersects() so that the ACPI EINJ error injection > driver can call this function in a later patch. > > Signed-off-by: Toshi Kani > Cc: Andrew Morton > Cc: Ard Biesheuvel > Cc: Dan Williams Acked-by: Dan Williams -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yk0-f178.google.com ([209.85.160.178]:35752 "EHLO mail-yk0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751221AbcAZVIH (ORCPT ); Tue, 26 Jan 2016 16:08:07 -0500 Received: by mail-yk0-f178.google.com with SMTP id u68so87614511ykd.2 for ; Tue, 26 Jan 2016 13:08:06 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <1453841853-11383-13-git-send-email-bp@alien8.de> References: <1453841853-11383-1-git-send-email-bp@alien8.de> <1453841853-11383-13-git-send-email-bp@alien8.de> Date: Tue, 26 Jan 2016 13:08:05 -0800 Message-ID: Subject: Re: [PATCH 12/17] memremap: Change region_intersects() to take @flags and @desc From: Dan Williams Content-Type: text/plain; charset=UTF-8 Sender: linux-arch-owner@vger.kernel.org List-ID: To: Borislav Petkov Cc: Ingo Molnar , LKML , Andrew Morton , Ard Biesheuvel , Jakub Sitnicki , Jan Kara , Jiang Liu , Kees Cook , "Kirill A. Shutemov" , Konstantin Khlebnikov , linux-arch@vger.kernel.org, linux-mm , Michal Hocko , Naoya Horiguchi , Tejun Heo , Vlastimil Babka Message-ID: <20160126210805.fIjnW-lFMU9St-7SIOienOXXNZ61S4N3fehWnP4zZQU@z> On Tue, Jan 26, 2016 at 12:57 PM, Borislav Petkov wrote: > From: Toshi Kani > > Change region_intersects() to identify a target with @flags and @desc, > instead of @name with strcmp(). > > Change the callers of region_intersects(), memremap() and > devm_memremap(), to set IORESOURCE_SYSTEM_RAM in @flags and > IORES_DESC_NONE in @desc when searching System RAM. > > Also, export region_intersects() so that the ACPI EINJ error injection > driver can call this function in a later patch. > > Signed-off-by: Toshi Kani > Cc: Andrew Morton > Cc: Ard Biesheuvel > Cc: Dan Williams Acked-by: Dan Williams