Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1194311pxb; Fri, 21 Jan 2022 11:59:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJyROnrvUO+lY+PiWM2I/S83CR0cxThdMkbvLzn1N7MrhObHrnR/xXlyu5LmPeJ5TffM6+/o X-Received: by 2002:a17:90a:9502:: with SMTP id t2mr1811685pjo.3.1642795155307; Fri, 21 Jan 2022 11:59:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642795155; cv=none; d=google.com; s=arc-20160816; b=VRUrA1jGvFJ5oaIyGIoSOpDSdiw8Pdfe0cNkGUicD/j7m8CEmgDoEP/efY7wLv1COJ RpnqaDUmDh6bYoIojr0LAqtlXCvr2TFDThollSwkKxvq8lEj6+ESY1kWsROQ/8qP3hw9 PawWYDrKHEooeq8zbdNjczqcDY4IjWoz1+H2cVTrdYMyr5nnxiWWHoKBR4vLB+JSiFFB P1UFYGeuSSA6odPjsbX9p7owLOyUHU1QJtzABQ3lWSmm5zc3DW2WduZSHbUnvFouclOr u27XgAFTl1iG9+IkCvRLB1l7tYI4smqDL232bbVmjRiu8HiekKX18fL89GqpGgWaKfQo twUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version:reply-to :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=8yuexR1+nrtHGSO8wGNcV0MvB+tGU4p0S4nQ2u6/h9Y=; b=NIp78GNDsxBe96f4i0DF5ZGYEREwqyfvIU0NWh0be3wquUvX2qk/QDcIBHzTrDzsDE /uBDae0O2S4aAJOurTMj30Cu9necJIBqmcq1auXDmfPD4KUUMwLHpabB8MN8RPodsRmV DoVIZadEiEuzNMZgHo4RwITeR62+SWmoYWc5xr+AYFtyTI3r/5jArq/KHQfpcpTa3uSW Tnv6hL+ZKbKiuDaNnb+Dz7PDbP43WUVcBZ5ubbVrH9dLQ32KvHq5xQIJRH4XXJ+2jn3y VbAHtUVnXlM3MCSmGp+PuIwpz1lHW3UOyu2ly5Oce3loyqhA1yQaaWb2I2riMNe2DSQU jYow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sent.com header.s=fm2 header.b=yepEWOhq; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=kp2bX3kb; 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=sent.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e192si6700710pgc.43.2022.01.21.11.59.03; Fri, 21 Jan 2022 11:59:15 -0800 (PST) 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=@sent.com header.s=fm2 header.b=yepEWOhq; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=kp2bX3kb; 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=sent.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239540AbiASTHa (ORCPT + 99 others); Wed, 19 Jan 2022 14:07:30 -0500 Received: from new4-smtp.messagingengine.com ([66.111.4.230]:42909 "EHLO new4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356972AbiASTGl (ORCPT ); Wed, 19 Jan 2022 14:06:41 -0500 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailnew.nyi.internal (Postfix) with ESMTP id 3A41E5806C4; Wed, 19 Jan 2022 14:06:41 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Wed, 19 Jan 2022 14:06:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sent.com; h=from :to:cc:subject:date:message-id:in-reply-to:references:reply-to :mime-version:content-transfer-encoding; s=fm2; bh=8yuexR1+nrtHG SO8wGNcV0MvB+tGU4p0S4nQ2u6/h9Y=; b=yepEWOhqQwJaAjEwgeK7ltMCvFLxT bWHWuUq61bCnebk+XIZWZAbFWk2RZ4zogGXrQCh4S3EqNI3esApEtzpXvRH//XK9 eNIm42Ph0bcPylp93/Lty3jNJFArwl0QKNutZPJuX0/Fjx/MQ6HjhOr6wt6vKxEs TRNmtz+ct8O0ERpGexJ2iByprgaswMXxFk3ALJOX6SH2VyrYksrNsF4TbLK3pED9 r/98U7UrkyTJi3Ru9PqNb6rWFsBx0tnpxsIJ6gic+V50zRFXhfVhO6JOBeu3mbdd OL676jHn8AyPIDpdmBLzCffgesZROjN+Dy9eGlciRFAUP490htMC8JebQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:reply-to:subject :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=8yuexR1+nrtHGSO8wGNcV0MvB+tGU4p0S4nQ2u6/h9Y=; b=kp2bX3kb DYDCMRBL8FNpr/1RYUeTX4yIw+9hmcc9JbIz1l0nG9kHJcva/xj2cSyefBW1Zg/y 7UY6tJbAjM9/NlOqrL0e03iIuaofDBz8zH7kJYwk5k2pNr2VmufUXz3GUM58IVJl UPRGcbxcBpQNIezbpGuM7GzCeIvSMJjS/jizBkPGNr/RZYcRoC0TgFPg3IJYXQpJ /U1E68h5gHpx/fXj9oTWwVBmJVejbAMSb6H1ekIFqjaBRlOc5HSSQkgAEfY4S6P8 TVcvVHEDCdHT8Tm4jlWsKdwo8VTkJHy93+I+Lo4VWReK6LwVCTuiw1JZe7ksJr69 ajUi4jX5K5sTWA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudeigdeivdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkofgjfhhrggfgsedtqhertdertddtnecuhfhrohhmpegkihcujggr nhcuoeiiihdrhigrnhesshgvnhhtrdgtohhmqeenucggtffrrghtthgvrhhnpeeijeeuvd euudeuhfeghfehieeuvdetvdeugfeigeevteeuieeuhedtgeduheefleenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpeiiihdrhigrnhesshgvnh htrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 19 Jan 2022 14:06:40 -0500 (EST) From: Zi Yan To: David Hildenbrand , linux-mm@kvack.org Cc: linux-kernel@vger.kernel.org, Michael Ellerman , Christoph Hellwig , Marek Szyprowski , Robin Murphy , linuxppc-dev@lists.ozlabs.org, virtualization@lists.linux-foundation.org, iommu@lists.linux-foundation.org, Vlastimil Babka , Mel Gorman , Eric Ren , Zi Yan Subject: [PATCH v4 7/7] arch: powerpc: adjust fadump alignment to be pageblock aligned. Date: Wed, 19 Jan 2022 14:06:23 -0500 Message-Id: <20220119190623.1029355-8-zi.yan@sent.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220119190623.1029355-1-zi.yan@sent.com> References: <20220119190623.1029355-1-zi.yan@sent.com> Reply-To: Zi Yan MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Zi Yan CMA only requires pageblock alignment now. Change CMA alignment in fadump too. Signed-off-by: Zi Yan --- arch/powerpc/include/asm/fadump-internal.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/powerpc/include/asm/fadump-internal.h b/arch/powerpc/incl= ude/asm/fadump-internal.h index 52189928ec08..fbfca85b4200 100644 --- a/arch/powerpc/include/asm/fadump-internal.h +++ b/arch/powerpc/include/asm/fadump-internal.h @@ -20,9 +20,7 @@ #define memblock_num_regions(memblock_type) (memblock.memblock_type.cnt) =20 /* Alignment per CMA requirement. */ -#define FADUMP_CMA_ALIGNMENT (PAGE_SIZE << \ - max_t(unsigned long, MAX_ORDER - 1, \ - pageblock_order)) +#define FADUMP_CMA_ALIGNMENT (PAGE_SIZE << pageblock_order) =20 /* FAD commands */ #define FADUMP_REGISTER 1 --=20 2.34.1