Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4162789pxf; Tue, 23 Mar 2021 04:28:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyvzbB8+YXO+D8vKSfVqpvbHfK+gqjaoapqHoQxQr+C0e7mpDeAbaJJaYzl8Tsvhi/05cn+ X-Received: by 2002:aa7:cf17:: with SMTP id a23mr4287100edy.30.1616498898443; Tue, 23 Mar 2021 04:28:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616498898; cv=none; d=google.com; s=arc-20160816; b=Cdma1Kcs8oYJB+VLiJHD1Z3iUIXwOREX8QF7rJ9Yarv7fjsiG1cnLO69Gt8DvlMY/Q 9aiDbIJkTgYu0cO/Rg7AqFpCvhRp+uQJIDapgIzzdF3uTeQLZ1igrG3AzM7INhv8pD+k YGYzlda6Vh3mPl7ZMAeJOUZN6+Ipkd+YrQdmIWJ3AeJCk4xU4OiyI95MObkWX+4Pb3kX wkWdNdmuigrr5EPQuIj0DuvH9HqT7Idz1ehDPIKeMdOjTx1BZSsPXiNKnDvIQxRRAFzL AM3lSxMGgRo6AY2D0CtwYYPVuvvAGh5OB1FdPLu/zhPDxiYx/HbWVIFzOHbhC7sKCqu3 79KA== 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:subject :organization:from:references:cc:to:dkim-signature; bh=b4th3W1WuDCglHfKhIGbTRrg+iSR4HR4i9tFQs60ItI=; b=S3eMczPKsZUx2JhKN4tKUkPDe+5UocWOtlWRRwgRFTYdhgk1iTN7SYShf+7DNvqb/j jbEN0niw4oS3SZ2BNKOH6UiKMZ5H96oDAmqaE2AW4rl61emYgQ4XJjDiTz4/NpdakFrI HvWo74jHQ0ysQnLT5mI5tY3dvMcv/TVZvHdsUq4YSGzAxV2J93kxYU7pB9gycWuwRG/v zO3QaTd6fcgP4gqgQEnuEuyky57zXUVX0IiYaeGlRagsl0s0c+saRJYgmnoLFuomITh0 7U2c+prMWRkYPcwumzhSvZFZZ6MWWwgkqhcVD16C5s6If3kxhKOTnzbCfdI+8gKRwnAu 0UfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=RKLVriP3; 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 f4si12667021edm.126.2021.03.23.04.27.56; Tue, 23 Mar 2021 04:28:18 -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=RKLVriP3; 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 S230506AbhCWL0B (ORCPT + 99 others); Tue, 23 Mar 2021 07:26:01 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:20799 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231134AbhCWLZq (ORCPT ); Tue, 23 Mar 2021 07:25:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1616498745; 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=b4th3W1WuDCglHfKhIGbTRrg+iSR4HR4i9tFQs60ItI=; b=RKLVriP3MGRTjVCDLz/X+qPXNSPftgjgMfQeHtG3We1JDOZmtchLZjMV4S4VoSiiGUcdBA VcD72TUcg/RLBp2JaIQskl+uqOWbWrwdJAWsdz84CLc/JD0Km+mF3VIGLAEzaw+WQ/3SWC Wkuv4ZVPctYUZQvCpCDJ0dmoYR8oJkM= 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-316-U3Yo1Md9M7GloIpZ9fJkiQ-1; Tue, 23 Mar 2021 07:25:41 -0400 X-MC-Unique: U3Yo1Md9M7GloIpZ9fJkiQ-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id DB20880006E; Tue, 23 Mar 2021 11:25:38 +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 63509179B3; Tue, 23 Mar 2021 11:25:28 +0000 (UTC) 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-2-david@redhat.com> From: David Hildenbrand Organization: Red Hat GmbH Subject: Re: [PATCH v1 1/3] kernel/resource: make walk_system_ram_res() find all busy IORESOURCE_SYSTEM_RAM resources Message-ID: <73a96145-848d-66ea-4d45-fb759003d1de@redhat.com> Date: Tue, 23 Mar 2021 12:25: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: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 23.03.21 12:06, Andy Shevchenko wrote: > On Mon, Mar 22, 2021 at 05:01:58PM +0100, David Hildenbrand wrote: >> It used to be true that we can have busy system RAM only on the first level >> in the resourc tree. However, this is no longer holds for driver-managed >> system RAM (i.e., added via dax/kmem and virtio-mem), which gets added on >> lower levels. >> >> We have two users of walk_system_ram_res(), which currently only >> consideres the first level: >> a) kernel/kexec_file.c:kexec_walk_resources() -- We properly skip >> IORESOURCE_SYSRAM_DRIVER_MANAGED resources via >> locate_mem_hole_callback(), so even after this change, we won't be >> placing kexec images onto dax/kmem and virtio-mem added memory. No >> change. >> b) arch/x86/kernel/crash.c:fill_up_crash_elf_data() -- we're currently >> not adding relevant ranges to the crash elf info, resulting in them >> not getting dumped via kdump. >> >> This change fixes loading a crashkernel via kexec_file_load() and including > > "...fixes..." effectively means to me that Fixes tag should be provided. We can certainly add, although it doesn't really affect the running kernel, but only crashdumps taken in the kdump kernel: Fixes: ebf71552bb0e ("virtio-mem: Add parent resource for all added "System RAM"") Fixes: c221c0b0308f ("device-dax: "Hotplug" persistent memory for use like normal RAM") Thanks -- Thanks, David / dhildenb