Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752972AbbBXJKA (ORCPT ); Tue, 24 Feb 2015 04:10:00 -0500 Received: from mail-we0-f181.google.com ([74.125.82.181]:46422 "EHLO mail-we0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751379AbbBXJJ6 (ORCPT ); Tue, 24 Feb 2015 04:09:58 -0500 Message-ID: <54EC3FE2.20502@plexistor.com> Date: Tue, 24 Feb 2015 11:09:54 +0200 From: Boaz Harrosh User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Ingo Molnar CC: Ingo Molnar , Andy Lutomirski , Ross Zwisler , X86 ML , linux-kernel , "Roger C. Pao" , Dan Williams , Thomas Gleixner , Linus Torvalds , linux-nvdimm , "H. Peter Anvin" , Matthew Wilcox , Christoph Hellwig , Andrew Morton , Vivek Goyal Subject: Re: [PATCH 2/3 v3] resource: Add new flag IORESOURCE_MEM_WARN References: <54EB1D33.3050107@plexistor.com> <54EB206E.4010009@plexistor.com> <54EC38CA.6050607@plexistor.com> <20150224090742.GC19930@gmail.com> In-Reply-To: <20150224090742.GC19930@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1073 Lines: 37 On 02/24/2015 11:07 AM, Ingo Molnar wrote: > > * Boaz Harrosh wrote: > >> --- a/kernel/resource.c >> +++ b/kernel/resource.c >> @@ -1075,8 +1075,13 @@ struct resource * __request_region(struct resource *parent, >> break; >> if (conflict != parent) { >> parent = conflict; >> - if (!(conflict->flags & IORESOURCE_BUSY)) >> + if (!(conflict->flags & IORESOURCE_BUSY)) { >> + if (conflict->flags & IORESOURCE_MEM_WARN) >> + pr_warn("request unknown region [mem %#010llx-%#010llx] %s\n", >> + conflict->start, conflict->end, >> + conflict->name); > > Maybe: > > 'request region with unknown memory type [mem ...]'? > > The driver (we hope!) very well knows about the region so > it's not totally unknown. > OK makes sense I will fix that too > Thanks, > > Ingo > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/