Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1394724lqt; Wed, 20 Mar 2024 02:38:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVv4RsNpCFCXIF4qUa9cAzczBDCtpabxsI11EkevUfi6CHaiajQ8d01jNf6vyrXigH77mcOrhYsbF8BuYyitiTxBCqGpbc9dkXANQa8qQ== X-Google-Smtp-Source: AGHT+IHGbuCgMITAAeeQ+SZEuq7Kd8Gdh2jjXlCY5hxUq5t9X9xFbmHuvCS9BjSD0JQR8fEacNM0 X-Received: by 2002:a05:6402:f24:b0:56b:8cbb:3695 with SMTP id i36-20020a0564020f2400b0056b8cbb3695mr980966eda.8.1710927482492; Wed, 20 Mar 2024 02:38:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710927482; cv=pass; d=google.com; s=arc-20160816; b=iHre5950kcVChwjrxvk2f3RUllp5zrzeESRB63JhAjb29cCH99xcba4t8BZfKZ5rhK WLdbv+T3u1f+yjpz8TkyDU5lUiolIvcxmY2oq2FYrzEx9uOaRzk4qIvsoKcQ8TLYh7zQ UMK2uyTEd2kWNo55QY/UIbf5TkYwo1+HoYXXPIaUloKxDyDQK4fw0pj3oLb31tjQ7+zD iZPiUaBHWcqKzhXKpSdHOEykUGqWIlLvQULiA4ehhnfPIVhqBpDUu0u4LrWxFevWcfs3 guP7VfbmJS4+zlUduoo32m47cJpvvgeUEGYt5f3WjQVzRtzggiJzn3DCg8yjTc/GwrcS TOIA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=foisOSN3EsA17+OK/aCiP4+oKbxtANM1Kwrd66hkBBg=; fh=KGm8PY/IetsVJWKK6UNUWrv2dd7n9qXKtm51kzc4YLY=; b=MGkv8RR620QFykU0YluCxB9DWGw1yehP4vtR0AEFh6zd9XA2s6Bl4v8t9b/S/3Y4Xe YGDPV/tgXr/ng7HqxmC8e/24Dyp3/rwRyjUXY6VAAgcOEIisUB3zhapod1DADR4DcMo6 EFZl2FckWf2NduqdGSf67GREDgdPK/yQnfY7nhNzOIb09+0fy/XA4Zk32qKkkZbg+xE6 YXfXUSEdTqk/acvTO2I0gYSU54C2eGcenVk9Qz4NNi1SVFExe5ObikKWhl75o0uePGiM YOJzxLIoIpuTn7ga1+E/bXYFiIucFXzGbsmd3/8tYsd/fr/hpKHbok8MRcbfKWSPs/X5 OHPw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EFuQrpr1; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-108699-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108699-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id ij5-20020a056402158500b005641883f18dsi6619826edb.315.2024.03.20.02.38.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 02:38:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-108699-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EFuQrpr1; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-108699-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108699-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 3BD601F2155E for ; Wed, 20 Mar 2024 09:38:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3E35D3B79F; Wed, 20 Mar 2024 09:37:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="EFuQrpr1" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6B2B632C60 for ; Wed, 20 Mar 2024 09:37:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710927477; cv=none; b=C4OIxexSekYr+ONYNz3uOPqwuMAT7XcFtHYawN65ZnMO8EZCI/HsDILzY5sK9P1Z9ydXRK4SnQmF0+PfakUPND+AAGc5Oc0isIQ8slzXdyxqvRVln9Q7Ga5n2CslQC6asrFYgyUazCX+S+yOXlf93wDLMCw8KWpWfR/kLc1cVB8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710927477; c=relaxed/simple; bh=6en8ZZ+fOEyondqQ+Wkc9mV58Xe+D619z940m0qzrm8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=nVZ2NDePpT96YrlaSsDU75+uR428d7nQ+AQNPM4EDKpUDzyJg9pJdsQn679tF7REBhy22CG0rZNfBOHAUcuEDnpbqTdcXM/vpKPCYu4vnwFulytCa9vB7/BSoYi088DWXOmUhsyl2qVpW1FrXfvADyvPgGL3HeZQ7ym2ryviU+Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=EFuQrpr1; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id EFA07C43390; Wed, 20 Mar 2024 09:37:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710927476; bh=6en8ZZ+fOEyondqQ+Wkc9mV58Xe+D619z940m0qzrm8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=EFuQrpr1jzAOMq8F2IC3MV1yHDLmeckZtzWRKrHwdvnnIsPr3aiWwWV0UCpseJgMY CLVANZ2nMu20Vx/v7G0qEug+XY6D17CKFoScSKv7iSfSJc2Mk18dZpNZn4XDJFWD0v D0+Iz0wZTgbvswkA8UBsLimhMs893ReE4MErG0J74+jQX4sBmANFRvKSvZ41ojznqH QuINWdgXEerhnWjAkQVXdAWfUcu3ZMhme4xnes4TORjpi+glPdrPb1mPMv70cHmNA9 fONx+GdtQX9iLu0n0AOPGjt2ahtYbmAaywQkrxrgvSP6aksTyWRav+DygUuV1rn+pp cjy7ab8i7wtKQ== Date: Wed, 20 Mar 2024 11:36:51 +0200 From: Mike Rapoport To: Baoquan He Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, x86@kernel.org, linuxppc-dev@lists.ozlabs.org, akpm@linux-foundation.org Subject: Re: [PATCH 2/6] x86: remove memblock_find_dma_reserve() Message-ID: References: <20240318142138.783350-1-bhe@redhat.com> <20240318142138.783350-3-bhe@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Wed, Mar 20, 2024 at 03:52:52PM +0800, Baoquan He wrote: > On 03/19/24 at 05:49pm, Mike Rapoport wrote: > > Hi Baoquan, > > > > On Mon, Mar 18, 2024 at 10:21:34PM +0800, Baoquan He wrote: > > > This is not needed any more. > > > > I'd swap this and the first patch, so that the first patch would remove > > memblock_find_dma_reserve() and it's changelog will explain why it's not > > needed and then the second patch will simply drop unused set_dma_reserve() > > Thanks, Mike. > > My thought on the patch 1/2 splitting is: > patch 1 is removing all relevant codes in mm, including the usage of > dma_reserve in free_area_init_core() and exporting set_dma_reserve() > to any ARCH which want to subtract the dma_reserve from DMA zone. > > Patch 2 purely remove the code in x86 ARCH about how to get dma_reserve. I think it's better first to remove the usage of set_dma_reserve() in x86 and then clean up the unused code. > Your suggestion is also good to me, I can rearrange the order and > repost. -- Sincerely yours, Mike.