Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4162998pxf; Tue, 23 Mar 2021 04:28:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwAEnPdDzurHGjcqR9TBzUQVGkAvwDKg2Td0uSO5YONk0zKqv+cId+FmKzLjiEAI9Gt0GWZ X-Received: by 2002:a05:6402:1649:: with SMTP id s9mr4067710edx.177.1616498923398; Tue, 23 Mar 2021 04:28:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616498923; cv=none; d=google.com; s=arc-20160816; b=i+GCH508+GExBbYtK/e4xv1zAAHYxs8dthrkDZ0CPToLIEUW5Lw9MHRVp2OGqSG74y e/SAsgC6eS6EwkD7OoXjrNekmPEUm2kKFzoMAIS65tIDt0ZjD2Yk2cCQzqxX7XJCJh3P vnbLfzG5fWMwo5Wnv3nZ9nKllsbJzCPmF5t2XWFHqrOoeVtO6VT+lHvSUWqdwVTMQOd4 vmDvZaWv+Lx51TQ/MzepGJtsq37eg9u1mM3h7s3q/1PlxkmTPDZkVB3YG+ykXHLK6iGo pb2P4w/JyGP++ij+pbCX+9d7w2v2+1na6z0ululnjtX8MwhcsydSDDRelwxYQK9W/mww aF/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject:dkim-signature; bh=CO7ddAXo7AW4IVD6z1X02gzoos7uqwcpTrAx3rTQHIE=; b=Go+xl+MqY/sNfgivv5P0J4APnqCBmGD8ld0CLjP5CdeyB5EumhJodn7qFLWj21bpkI IbWXhWu0QJExNnrxfldiMaFoRGfmC5sM2YEwnapaPP/vhdJmNOMdrl7NMgV+FtiFNvIY bjYxUgGkgTO98TWjOnsWblPP3mobTjR2RKtyt3Tm5VHUDwIneP5i6qmr6Ga9ZhoAsVDF jfGqMKTib0syPB8Ka3v3rXXjsL7DYtnN7ENE92t7dMRjrf6s4LEDGcj6m89NFoKwypmY 1GgHffV7tnLSovlKt8bgQT4Rtu3GVldSPzRZQFBdCF+gR7KLBb9oaXpX/rJjLRVj31Zi fxew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=epEGqrD0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y4si13225972ejp.378.2021.03.23.04.28.20; Tue, 23 Mar 2021 04:28:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=epEGqrD0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229590AbhCWL1F (ORCPT + 99 others); Tue, 23 Mar 2021 07:27:05 -0400 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:50960 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230165AbhCWL0t (ORCPT ); Tue, 23 Mar 2021 07:26:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1616498804; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=CO7ddAXo7AW4IVD6z1X02gzoos7uqwcpTrAx3rTQHIE=; b=epEGqrD0PF+latJWr2eb/YLYO92AXpYuQe7JrelI30uRRiQ4nTY7OJQBQ5HJDU297Nw/9s sXg9R1m542AUbdE83u6S9kIKdbvzBfa0FgLYXSwpWtGi62PqOTp/9XTHnyFKJJqeYYrq8Q EEiA8OXldWoukTZxzxTALZL6rLD/sfQ= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-412-bLs84uwNPVaNMEF3YIU1AQ-1; Tue, 23 Mar 2021 07:26:40 -0400 X-MC-Unique: bLs84uwNPVaNMEF3YIU1AQ-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 5EC6110082E0; Tue, 23 Mar 2021 11:26:37 +0000 (UTC) Received: from [10.36.115.54] (ovpn-115-54.ams2.redhat.com [10.36.115.54]) by smtp.corp.redhat.com (Postfix) with ESMTP id AD45F19744; Tue, 23 Mar 2021 11:26:28 +0000 (UTC) Subject: Re: [PATCH v1 2/3] kernel/resource: make walk_mem_res() find all busy IORESOURCE_MEM resources To: Andy Shevchenko Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Andrew Morton , Greg Kroah-Hartman , Dan Williams , Daniel Vetter , Mauro Carvalho Chehab , Dave Young , Baoquan He , Vivek Goyal , Dave Hansen , Keith Busch , Michal Hocko , Qian Cai , Oscar Salvador , Eric Biederman , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Tom Lendacky , Brijesh Singh , x86@kernel.org, kexec@lists.infradead.org References: <20210322160200.19633-1-david@redhat.com> <20210322160200.19633-3-david@redhat.com> From: David Hildenbrand Organization: Red Hat GmbH Message-ID: <16bfac8e-cee1-c8ce-14f1-70e697e4f2f1@redhat.com> Date: Tue, 23 Mar 2021 12:26:27 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 23.03.21 12:08, Andy Shevchenko wrote: > On Mon, Mar 22, 2021 at 05:01:59PM +0100, David Hildenbrand wrote: >> It used to be true that we can have system RAM only on the first level >> in the resourc tree. However, this is no longer holds for driver-managed >> system RAM (i.e., dax/kmem and virtio-mem). >> >> The function walk_mem_res() only consideres the first level and is >> used in arch/x86/mm/ioremap.c:__ioremap_check_mem() only. We currently >> fail to identify System RAM added by dax/kmem and virtio-mem as >> "IORES_MAP_SYSTEM_RAM", for example, allowing for remapping of such >> "normal RAM" in __ioremap_caller(). > > Here I dunno, but consider to add Fixes tag if it fixes known bad behaviour. Haven't observed it in the wild. We can add the same fixes tags as to patch #1. -- Thanks, David / dhildenb