Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp467046lqm; Wed, 1 May 2024 06:24:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCViVOjTNKnUxaAdhiccnbaywe8Snl5LS1I18SQFlFOOIOqBC4TZRTgM2fXT2DeCs5c5JeOhBKUxrPjsDFNUjbWB+Tc6A4KivAKHUvmvjg== X-Google-Smtp-Source: AGHT+IEgcWJ1HTvoC4eVdgRePDRTx3FH/n2/CyFQ3T8hZUe5aGFHtMJ0U18StYkNRxa9EHCJpbUc X-Received: by 2002:ad4:5742:0:b0:6a0:82be:f631 with SMTP id q2-20020ad45742000000b006a082bef631mr2040324qvx.64.1714569860271; Wed, 01 May 2024 06:24:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714569860; cv=pass; d=google.com; s=arc-20160816; b=TxddfvzYa/73TRr0RzqZ7EmJwq8o4kzj7BSo4qO7wM5aVJMMe5u+CesKC79FHprtRV GN1nBhbW3xuIcRkQ+QiEtMqkvFjIi11QhhhuTg7Vj0naJh44iG0exHPJY8S7T+TIKuBm YGeJ6GDkRmj5q4qDaJveSM/NZVdRTGcKMlY3vdxul2FvRGIqFQIUw9FLdGJRw2CEMoZ1 aYgNFTyowyiXPMZlbBYj1ihGt8+HKB5tCmuUV1F4E1l2xTWtFU+3gtqhja8Z8PByAkqX /QcxOPBz2gcPx45LseaA5nQzfOSKW+xGBWPJ9T6/57oqLTde1OyaG9RJ9ohwfAy8+ZXY coJQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=KMBFEPpX0chiN/ZQJQtqfNtd+/I0a6HtphalfcoEIRs=; fh=zS9uspG1ymqzCnOt7YNq9y43UNwq+9zJVopmLcGHduU=; b=Y1pUXwQub5KsEtHdJ1UnpY0qTddicOWib7CbAYV5q12rnBowNzw7uAhb/6quulfETz 5Nz4DEA7Zv/Bk2uENAyWGJv32vL2SH0pLjkptRfywo3oNzyBFsaDOSh1VULioQW0Bv5M 8TCPZ+19fydU/rfPZYyorx2X0avO6Rtrjt9FLOQQqPlV4dyLPeRmzmXw/EfO3Hj9RTWZ ZnE94UZu4e4vbjYA1Vis0gHR1X+eP3tfhgT3cs7cL/bKxJ0px1i7ElVDOE2YAdjjcxAs AMTPZwVrz0YXODyboqMDsqc+krmI0klyH3PjvoGuJ0oT6hdidnB5ijC31ODwcsYT04Yr yA/w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="YUi7x/ey"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-165314-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165314-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id q5-20020a056214194500b006a0f57ab676si931254qvk.426.2024.05.01.06.24.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 06:24:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-165314-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="YUi7x/ey"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-165314-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165314-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 04A0D1C216DF for ; Wed, 1 May 2024 13:24:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 00A7912E1D9; Wed, 1 May 2024 13:24:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="YUi7x/ey" Received: from mail-pf1-f180.google.com (mail-pf1-f180.google.com [209.85.210.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E517B12AAE9; Wed, 1 May 2024 13:24:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714569853; cv=none; b=S2QTi/pE049BKNjXUMa0ZKPblMHht39OGZaDnR4OU/Uu1//TyIvPGTHNCEMLn/o9KA9kFyecbPbg1oavYDvZIlVPNUPcVr98M5m8rEN/cDplGj0nGOMN0TWq/m+8vjwtiz7m3gCKXIj1HakXn4Gwnzj2/1mo2sGgEe9N7Ekm0Zo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714569853; c=relaxed/simple; bh=lMYzmV9//9INyU1Duoqy4uVKWMnnmekE58fSm7AFEL0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=oZ8Ga8ueHTgYHS4y3hSy9dOOESLa4J1VVVzD0ZLlsou0CfTzx8/I2ujaMEcBz/kLqhPVwIL+0BTcbbeH+SUp8RBzBalDoU4csjcGMQoZo7t9bBTPPVeD1p3pYfMa0DQIcXIXSJ5KScposYheP9wp8JD1Sexe757T5xz2HBRmPaY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=YUi7x/ey; arc=none smtp.client-ip=209.85.210.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-f180.google.com with SMTP id d2e1a72fcca58-6f3f6aa1437so3247738b3a.3; Wed, 01 May 2024 06:24:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714569851; x=1715174651; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=KMBFEPpX0chiN/ZQJQtqfNtd+/I0a6HtphalfcoEIRs=; b=YUi7x/eybSpa4uwJowB73jIbW5xmuspKSI2/Oyyi0Iq4iI0pjElrJEoPTEuo0AZjLe lIt9T13CKyZ7voAizNU6FLkf2jzx8yvVyWCLO7xH8ZMLRDrIL3Psxf727MXyStZOXwuS g5buXlAqN+6/ttziZm6MZ9OiVlT26vQdvWnizKC78lz519erYCZbCG1R/+ZK0yYMNa+F FJ3IhB0xKb0WJSANB/ZzsyJud32j6I09RmpaeuIvDBTPqCZfYX1/AVwJ/njijztlAuAo rGbszpNuc0YrqLRKPo+JVShy1grqwkU4zCl/usNzSVzEHE2RHkZv7Q9+Rr5rC5eC3nMg lbTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714569851; x=1715174651; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=KMBFEPpX0chiN/ZQJQtqfNtd+/I0a6HtphalfcoEIRs=; b=iZIUEMOEeyIVQ3Y/e41YgLYQaMznjBYl35/Fn8hshNsFahNxOmdyqSEyILTK9j3q3/ N+OnGezILMD7Ln4m5pvWTNM3WxhPVNR4/nbMeU4212fCjyC31JgoJq8VbL50c7GvHziw /l6i/I07TJKN6Nt99H6ZDU/7RvbQV4NHLE7MPtFa3LKaoVwGcKDrg+ZaDC87vduh23cj jXhMN6jiGLwjFqCmt8KUyW64KCefIOjez9qGswCbgPIq+blW3Dk11dCXNeAkbF+XEdhY QEjuBfxzsofkI5+Eub7sVjqZZ0l0CZ8RfU+ECNa0QO2ViSpKpdillxGEMjuYwG/l2Euf tjYA== X-Forwarded-Encrypted: i=1; AJvYcCWy63nWqOLOdG2seyezoa70IgRC3BMGJqKhMIf9rN2W+3QDxRPdDpmcO3UzyBq68TOCNG98uZoHibjNJEHlYJ5aC7rPRTAd41/+nbdHJz81I2/jeM9J46bDH/HgejT21bo0V5oTL4KIJQ== X-Gm-Message-State: AOJu0YxwNqlFwoTDqRq8u6SMBqyTR+9gXnMKS8jqujKbUnwXkSUfuFyG 1fpZP4SZKGy4v8xF9UT7hATxkwhZ4GXcDJzdGjtATT1JEbR4ua0x X-Received: by 2002:a05:6a21:3996:b0:1ac:4fca:23c2 with SMTP id ad22-20020a056a21399600b001ac4fca23c2mr2514825pzc.8.1714569850990; Wed, 01 May 2024 06:24:10 -0700 (PDT) Received: from localhost.localdomain ([49.142.40.215]) by smtp.gmail.com with ESMTPSA id g3-20020aa79dc3000000b006f2909ab504sm17809894pfq.53.2024.05.01.06.24.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 06:24:10 -0700 (PDT) From: skseofh@gmail.com To: lkp@intel.com Cc: daero_le.lee@samsung.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, robh@kernel.org, rppt@kernel.org, saravanak@google.com, skseofh@gmail.com Subject: [PATCH v2] of: of_reserved_mem: clean-up reserved memory with no-map Date: Wed, 1 May 2024 22:23:59 +0900 Message-Id: <20240501132359.488616-1-skseofh@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <202405011208.qsZQwChO-lkp@intel.com> References: <202405011208.qsZQwChO-lkp@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Daero Lee In early_init_dt_reserve_memory we only add memory w/o no-map flag to memblock.reserved. But we need to add memory w/ no-map flag to memblock.reserved, because NOMAP and memblock.reserved are semantically different. Signed-off-by: Daero Lee --- drivers/of/of_reserved_mem.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/of/of_reserved_mem.c b/drivers/of/of_reserved_mem.c index 8236ecae2953..d00a17a9cebc 100644 --- a/drivers/of/of_reserved_mem.c +++ b/drivers/of/of_reserved_mem.c @@ -81,6 +81,7 @@ static void __init fdt_reserved_mem_save_node(unsigned long node, const char *un static int __init early_init_dt_reserve_memory(phys_addr_t base, phys_addr_t size, bool nomap) { + int err = 0; if (nomap) { /* * If the memory is already reserved (by another region), we @@ -91,7 +92,10 @@ static int __init early_init_dt_reserve_memory(phys_addr_t base, memblock_is_region_reserved(base, size)) return -EBUSY; - return memblock_mark_nomap(base, size); + + err = memblock_mark_nomap(base, size); + if (err) + return err; } return memblock_reserve(base, size); } -- 2.25.1