Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp51159pxv; Thu, 24 Jun 2021 02:33:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxzC/iOpupVhrfMQeA+y4SGEefnRL8CgMYdlDZPL+XE+rTYSaMJy/72Nmrnu4uyB2qlyoZx X-Received: by 2002:a17:906:cb81:: with SMTP id mf1mr4474767ejb.199.1624527193022; Thu, 24 Jun 2021 02:33:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624527193; cv=none; d=google.com; s=arc-20160816; b=wdT5uDOvzFEtHaSD8SFqZ3/6Ar6smYtf5CTlHGUa3FoGNtcVuWeR/bvbjuZehEV0DU 3IJw7WXTYy/HLyihc/Pl8SjSWtxbpGRM/H56C3BV+YeGmktVN4j1w9d5SSrVLJoFAQZv 0WumJMkd2LAi4ERlxm/WzfSVf0Or/IhKpPv2GMb5h3uPIcvQR9Drkcaef1DV6dhLFXsC Hq8gU/Dk90UjWaMVPkcFaERDQxzMfLli2cqvbHBNKA9kZlwXYJV1WLyBWTxqEGOCdg80 x2IT3ZnbK7tet0iMdyvoicn88z2Tzb+ZaEh587Ik4uTqjDf8HBhOwURM+fPSBmppDS4P XsTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=eNB6QImZTsEUvPv7cFGlcy7hZAaXO3u/PVt8yIynlso=; b=m9l0Z/5o1N9yDFkw6QB7Qx+1Df+569fDEWVL5Ob4Iepvx6TWpbf/DXyt10aG20dQ6S suqWS4Z+xMjUKH83ltXebO+Oj1npONzm66xaUbr1k2pHjuYQtYWb7w34548LZh85s6cj xZNDdYpaaTzrJNu38IvKZA8JPCNqzF8VmuMBm9fdz2DS2RPE2hVmAR+7VfkWQOCtCvUc 8zDO25e+gbNtiOM1HoLUBc+fEdFUibKzt4RJ52MafM4fpjaiGRafpHSg+1Km0d+4qW9h HbvcH4H2MVHWWpj2HYhtn4lg2/cwyVOIMYPEB39/M+5G0w6ys7h38ny4RvD9xyMz6g3I wxxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="KK4u/UPh"; 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 gf1si2454201ejb.318.2021.06.24.02.32.49; Thu, 24 Jun 2021 02:33:13 -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="KK4u/UPh"; 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 S231927AbhFXJb7 (ORCPT + 99 others); Thu, 24 Jun 2021 05:31:59 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:58994 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231717AbhFXJb7 (ORCPT ); Thu, 24 Jun 2021 05:31:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1624526980; 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: in-reply-to:in-reply-to:references:references; bh=eNB6QImZTsEUvPv7cFGlcy7hZAaXO3u/PVt8yIynlso=; b=KK4u/UPheC0vmdyfDQqJXDJUrN9A5CV/uZzYbn2dikMNpW/eH1QjI7Djdp8jgAINuWttKB K/6SPRZYPZvzmiW94EGiDVQyLhRmo8X6DHXkqYY7icP9yBD2EsSW/h57pNYb5pKwHfMdIf IyLBV2owFnysA+Mi+5mxXcmCScg6giU= 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-90-QAp785duOPGx24QidhDU9w-1; Thu, 24 Jun 2021 05:29:36 -0400 X-MC-Unique: QAp785duOPGx24QidhDU9w-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 35FFE804140; Thu, 24 Jun 2021 09:29:35 +0000 (UTC) Received: from localhost (ovpn-12-142.pek2.redhat.com [10.72.12.142]) by smtp.corp.redhat.com (Postfix) with ESMTPS id DD8D75C1BB; Thu, 24 Jun 2021 09:29:33 +0000 (UTC) Date: Thu, 24 Jun 2021 17:29:30 +0800 From: Baoquan He To: Christoph Hellwig Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, x86@kernel.org, rientjes@google.com, rppt@linux.ibm.com, thomas.lendacky@amd.com, brijesh.singh@amd.com, kexec@lists.infradead.org, iommu@lists.linux-foundation.org, m.szyprowski@samsung.com, robin.murphy@arm.com Subject: Re: [PATCH RFC 0/2] dma-pool: allow user to disable atomic pool Message-ID: <20210624092930.GA802261@MiWiFi-R3L-srv> References: <20210624052010.5676-1-bhe@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/24/21 at 08:40am, Christoph Hellwig wrote: > So reduce the amount allocated. But the pool is needed for proper > operation on systems with memory encryption. And please add the right > maintainer or at least mailing list for the code you're touching next > time. Oh, I thoutht it's memory issue only, should have run ./scripts/get_maintainer.pl. sorry. About reducing the amount allocated, it may not help. Because on x86_64, kdump kernel doesn't put any page of memory into buddy allocator of DMA zone. Means it will defenitely OOM for atomic_pool_dma initialization. Wondering in which case or on which device the atomic pool is needed on AMD system with mem encrytion enabled. As we can see, the OOM will happen too in kdump kernel on Intel system, even though it's not necessary. Thanks Baoquan