From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9971CC43217 for ; Mon, 10 Jan 2022 21:09:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240270AbiAJVJN (ORCPT ); Mon, 10 Jan 2022 16:09:13 -0500 Received: from smtp-fw-80007.amazon.com ([99.78.197.218]:17459 "EHLO smtp-fw-80007.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343830AbiAJVJD (ORCPT ); Mon, 10 Jan 2022 16:09:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1641848944; x=1673384944; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=3mAfbygsmalJDceTYZOaldGWaMo2oFy/FRm2NURPlA0=; b=KS8AmUNlSStP0MSt3503WDFRbsAyFiGnY08p8xL4GUhsTjrtz366prJj e3oav2KsGQMF96ZxCUjantfZmch8kQY7zcZzl+0hi+oNwO6xGTvYd2u4U T4cEd4mbjx0tqjekZ0Mib0fNBRgt6jlnDkilI24dHkvcTcrDPOpMxq5XX M=; X-IronPort-AV: E=Sophos;i="5.88,278,1635206400"; d="scan'208";a="54264531" Received: from pdx4-co-svc-p1-lb2-vlan2.amazon.com (HELO email-inbound-relay-iad-1a-b09d0114.us-east-1.amazon.com) ([10.25.36.210]) by smtp-border-fw-80007.pdx80.corp.amazon.com with ESMTP; 10 Jan 2022 21:09:03 +0000 Received: from EX13MTAUWB001.ant.amazon.com (iad12-ws-svc-p26-lb9-vlan3.iad.amazon.com [10.40.163.38]) by email-inbound-relay-iad-1a-b09d0114.us-east-1.amazon.com (Postfix) with ESMTPS id 9DB4F81162; Mon, 10 Jan 2022 21:08:58 +0000 (UTC) Received: from EX13D13UWA003.ant.amazon.com (10.43.160.181) by EX13MTAUWB001.ant.amazon.com (10.43.161.249) with Microsoft SMTP Server (TLS) id 15.0.1497.26; Mon, 10 Jan 2022 21:08:29 +0000 Received: from EX13MTAUEB002.ant.amazon.com (10.43.60.12) by EX13D13UWA003.ant.amazon.com (10.43.160.181) with Microsoft SMTP Server (TLS) id 15.0.1497.26; Mon, 10 Jan 2022 21:08:29 +0000 Received: from dev-dsk-fllinden-2c-d7720709.us-west-2.amazon.com (172.19.206.175) by mail-relay.amazon.com (10.43.60.234) with Microsoft SMTP Server id 15.0.1497.26 via Frontend Transport; Mon, 10 Jan 2022 21:08:28 +0000 Received: by dev-dsk-fllinden-2c-d7720709.us-west-2.amazon.com (Postfix, from userid 6262777) id 91F88A1; Mon, 10 Jan 2022 21:08:28 +0000 (UTC) From: Frank van der Linden To: , , , , , , , , , , , CC: , Frank van der Linden Subject: [PATCH 2/3] of: fdt: use memblock usable range interface Date: Mon, 10 Jan 2022 21:08:08 +0000 Message-ID: <20220110210809.3528-3-fllinden@amazon.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220110210809.3528-1-fllinden@amazon.com> References: <20220110210809.3528-1-fllinden@amazon.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use the memblock usable range interface to set and enforce the usable memory range (if any). Signed-off-by: Frank van der Linden --- drivers/of/fdt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c index 4546572af24b..b3c2a4124518 100644 --- a/drivers/of/fdt.c +++ b/drivers/of/fdt.c @@ -1279,7 +1279,8 @@ void __init early_init_dt_scan_nodes(void) of_scan_flat_dt(early_init_dt_scan_memory, NULL); /* Handle linux,usable-memory-range property */ - memblock_cap_memory_range(cap_mem_addr, cap_mem_size); + memblock_set_usable_range(cap_mem_addr, cap_mem_size); + memblock_enforce_usable_range(); } bool __init early_init_dt_scan(void *params) -- 2.32.0 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 37878C433F5 for ; Mon, 10 Jan 2022 21:11:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=fPVHqwqgFsdM+kvYQQsS6oSQro+34cqw6VDjmcrIAd0=; b=RFhfMxcEJmp4vB cf4geo5mr2dVemPhU6eyedxwGgjJBDbcijK9b5d0NSwkbSzr/ajO04jV2UkZtohOqvEuPqKXjhTPp 9Oh8sEAPFiRO6iQx6C76+EA6eZ0m9WIAiS4QqBZ/7t9AmqR/RON3w4+FdQFYLUogmLDUoI5s+AyOm P+VZpdiZh3d25X/ffDg318SRJErt3baw+fuDrZwwznpulL9wgCgP+8EW07aeOuSD+XIYqUd9v8exr +Woso+I3H5sQmJoZMTpWbPw48wMIcqInIyls5JwfM4n1vLmup2EuZuFe5JN1CWGplUzZ/yf6hQwVj 70GZN8RuurFhxykTx/9g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n71vQ-00DMTw-M3; Mon, 10 Jan 2022 21:09:57 +0000 Received: from smtp-fw-80007.amazon.com ([99.78.197.218]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n71ua-00DLz4-UO; Mon, 10 Jan 2022 21:09:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1641848945; x=1673384945; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=3mAfbygsmalJDceTYZOaldGWaMo2oFy/FRm2NURPlA0=; b=eWk/8j2FljYcImImaZH7lsOlmiYLmhzRTJI35VzuVBW0vt2LsvnUZcWk TvwP/rdyVTkWehoReKbwKRKdx16Yv9SzbGi91kXSdRWWq0hvYaGTzU9P3 GQInxOuogdjgxVI9KFXlGB21QdJPyru47DoaPmTeDEiTnKFKhQa2FjWCU 4=; X-IronPort-AV: E=Sophos;i="5.88,278,1635206400"; d="scan'208";a="54264531" Received: from pdx4-co-svc-p1-lb2-vlan2.amazon.com (HELO email-inbound-relay-iad-1a-b09d0114.us-east-1.amazon.com) ([10.25.36.210]) by smtp-border-fw-80007.pdx80.corp.amazon.com with ESMTP; 10 Jan 2022 21:09:03 +0000 Received: from EX13MTAUWB001.ant.amazon.com (iad12-ws-svc-p26-lb9-vlan3.iad.amazon.com [10.40.163.38]) by email-inbound-relay-iad-1a-b09d0114.us-east-1.amazon.com (Postfix) with ESMTPS id 9DB4F81162; Mon, 10 Jan 2022 21:08:58 +0000 (UTC) Received: from EX13D13UWA003.ant.amazon.com (10.43.160.181) by EX13MTAUWB001.ant.amazon.com (10.43.161.249) with Microsoft SMTP Server (TLS) id 15.0.1497.26; Mon, 10 Jan 2022 21:08:29 +0000 Received: from EX13MTAUEB002.ant.amazon.com (10.43.60.12) by EX13D13UWA003.ant.amazon.com (10.43.160.181) with Microsoft SMTP Server (TLS) id 15.0.1497.26; Mon, 10 Jan 2022 21:08:29 +0000 Received: from dev-dsk-fllinden-2c-d7720709.us-west-2.amazon.com (172.19.206.175) by mail-relay.amazon.com (10.43.60.234) with Microsoft SMTP Server id 15.0.1497.26 via Frontend Transport; Mon, 10 Jan 2022 21:08:28 +0000 Received: by dev-dsk-fllinden-2c-d7720709.us-west-2.amazon.com (Postfix, from userid 6262777) id 91F88A1; Mon, 10 Jan 2022 21:08:28 +0000 (UTC) From: Frank van der Linden To: , , , , , , , , , , , CC: , Frank van der Linden Subject: [PATCH 2/3] of: fdt: use memblock usable range interface Date: Mon, 10 Jan 2022 21:08:08 +0000 Message-ID: <20220110210809.3528-3-fllinden@amazon.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220110210809.3528-1-fllinden@amazon.com> References: <20220110210809.3528-1-fllinden@amazon.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220110_130905_096604_D608BC7D X-CRM114-Status: UNSURE ( 9.67 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Use the memblock usable range interface to set and enforce the usable memory range (if any). Signed-off-by: Frank van der Linden --- drivers/of/fdt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c index 4546572af24b..b3c2a4124518 100644 --- a/drivers/of/fdt.c +++ b/drivers/of/fdt.c @@ -1279,7 +1279,8 @@ void __init early_init_dt_scan_nodes(void) of_scan_flat_dt(early_init_dt_scan_memory, NULL); /* Handle linux,usable-memory-range property */ - memblock_cap_memory_range(cap_mem_addr, cap_mem_size); + memblock_set_usable_range(cap_mem_addr, cap_mem_size); + memblock_enforce_usable_range(); } bool __init early_init_dt_scan(void *params) -- 2.32.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel From mboxrd@z Thu Jan 1 00:00:00 1970 From: Frank van der Linden Date: Mon, 10 Jan 2022 21:08:08 +0000 Subject: [PATCH 2/3] of: fdt: use memblock usable range interface In-Reply-To: <20220110210809.3528-1-fllinden@amazon.com> References: <20220110210809.3528-1-fllinden@amazon.com> Message-ID: <20220110210809.3528-3-fllinden@amazon.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: kexec@lists.infradead.org Use the memblock usable range interface to set and enforce the usable memory range (if any). Signed-off-by: Frank van der Linden --- drivers/of/fdt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c index 4546572af24b..b3c2a4124518 100644 --- a/drivers/of/fdt.c +++ b/drivers/of/fdt.c @@ -1279,7 +1279,8 @@ void __init early_init_dt_scan_nodes(void) of_scan_flat_dt(early_init_dt_scan_memory, NULL); /* Handle linux,usable-memory-range property */ - memblock_cap_memory_range(cap_mem_addr, cap_mem_size); + memblock_set_usable_range(cap_mem_addr, cap_mem_size); + memblock_enforce_usable_range(); } bool __init early_init_dt_scan(void *params) -- 2.32.0