Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp48694lqs; Mon, 4 Mar 2024 14:38:49 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWYkR1cEY7ThW98vuhKMmsQTelXSpqyDhMox894YMw3wKH/bOxoQMXXMpz2QuSlkBStdmuJO5Jn6cX1Gt9tJoBWLLGEFiFJ0KabjsW9XQ== X-Google-Smtp-Source: AGHT+IFauWuN8oQ8E51KsgLCfqvcKuF0Sl8uz4+lCv3JZqASEdnXz6Hutpwmiz2XWUT3G3atX2Bo X-Received: by 2002:a25:9cc6:0:b0:dcf:c6cf:d824 with SMTP id z6-20020a259cc6000000b00dcfc6cfd824mr7026597ybo.9.1709591929175; Mon, 04 Mar 2024 14:38:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709591929; cv=pass; d=google.com; s=arc-20160816; b=SwO4vRp2zy4I/2CeuiverU49J95UukSdBkmB1r0+mJlN76r3WzBgHgzCuq66Nfk0uM TR8IqDWZh788zwwXbBnIB5WeELDqeJ4h3yreYdNobvBZnQiN0R4jcG8YGMkx9/7wH4sO PuetHkNWPu7pGcAJeEBE1xH2GDskCy8HOxudvNL3FaS9GEZb5TePtcMHgK7XQCXTwZnp bKjxXAe7liwLT1J/m7LW5aOF2s2eVyUc/1P4djfJ4wl2SuUB5CgwAp0JPCEb+aGW+m7W yJSjWLeovHD54bvN1F2Lt3Q3bS2jduRaNGeqU/yUbPdUoaxRkU0JExK3SwmIxXWi/iBe bBJA== 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=BN8SwlbqyYdlyO4orHXGIO4nVPTlMFcHeme81n3Cn24=; fh=WRAbTIlHXnLhPp/uPzi01qoRWz4m0bEeRlyPBgq1xmU=; b=eRbJ5K4BEj+pCAe+c4oEpe2XK5h0vZgqU5dmNl3GnsdYjENkr4MjqwdnXNB6kFfAuy tq//2E8V0E3WLGTKe3iLPrx5GI0ikZ1wWaiYXFyb/S205MS7V6OVYmnRVeIlwBMda7bx +ca5Tq6QiIDoXC/ZLtsY7EX91SLY5F1+q68tNU7IYC26htW7WI6HkIVzLszyvXfjLRxY 0n69k1zvXwnyA7fOZKZUIc4WzeQA2KLrs5ibvCumdBx81ElEvJWPo3QIhE34tuzuf5sp u6bOzMqeWKP6w/KQbuI7XZ1Dhq8uja0b82KqsABdOLSj9EE6e405WlhQlLFEFKA5xwkT 8ByQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=FNoUBake; 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-91368-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91368-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id y8-20020a05622a120800b0042ed04e949fsi7651743qtx.376.2024.03.04.14.38.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 14:38:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-91368-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=FNoUBake; 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-91368-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91368-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 E1AC11C20EE8 for ; Mon, 4 Mar 2024 22:38:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 069A87BB02; Mon, 4 Mar 2024 22:38:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="FNoUBake" Received: from mail-pf1-f172.google.com (mail-pf1-f172.google.com [209.85.210.172]) (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 E57368F44; Mon, 4 Mar 2024 22:38:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709591922; cv=none; b=YGQ8DYDN6v0XcanGQZzpP/Ks7Jqp0EBNqQljqcWW/R5R804oPaRTkcGVmyj/L9zMbhViH/r94U5L1xV6Pypmo8+M1aVq2v+ICIzgGf1srjmLjslS3mIdvsTIj06lc/wTS0HLw4mT7hOH+rOM9CN3BqhPfU/TrQvtm6/146mI55s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709591922; c=relaxed/simple; bh=Gn967GUY01TbnVw7J+amolBiTsybUNll2L3IweRe7x8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=es8LGaTuuudbv2zd/zf6zVy3fbEKVqCESKoVtiV2sW+RvpFPWwaFxVcOxsrLcqMdNcj8QZ5kcuESKIG5ZzOsx7+e2okQ7CnwzYil3hoqCIGcJ/+vYSmQm2EGMbCW63XlhpXFzdfqxrloxrl+biGdQE2T29FO0pTy+tHarnS7bRs= 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=FNoUBake; arc=none smtp.client-ip=209.85.210.172 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-f172.google.com with SMTP id d2e1a72fcca58-6e5b1c6daa3so3526670b3a.1; Mon, 04 Mar 2024 14:38:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709591920; x=1710196720; 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=BN8SwlbqyYdlyO4orHXGIO4nVPTlMFcHeme81n3Cn24=; b=FNoUBakedd0MBrblVk8mNK8LjJTEz4DlHsiNT0tX8bWkPH31DbAepT+job1jBW45FX ajqZ4/1Ph3GhUVnYagMP1dWkz/EnAFC/YlinXVSxONvCSba+ZE5iqE5E8Tk8REjSY3Y7 /TMWLtmy5gyMcJNAHRdneqfcBBHpDXz9fLWHlrXIHNmsX3dIPdeAuSyfI2k2RwfAA7dq JG2Ra6R/QC5yP5+ihHiVY6Oss4qSnl/NTmBnL/t5ZYsdX8cSYJtsY5WfnNhTguCtA50P AcEVMMt6bSnazg1/HyaV5avUeihBa38JwGLu/x9gPzktix6Vk6dTNTbEkTSM+44dQGIk j1xA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709591920; x=1710196720; 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=BN8SwlbqyYdlyO4orHXGIO4nVPTlMFcHeme81n3Cn24=; b=GMnV6DqdzKWfDXHCy/eWW6GQ1X76W7JLQ1Yfn7zz/EBCfjeztmSXnetmJpwI9Zr+0G NM8EbOCBRcvtika5RqgaoI1dOMDErJ3u09mMaEHpcolZB8txDPQiSajH45pZtXLH2Jkm LkoqPYk6SmqfpzSyq20NSbNzT4K8h286S/XcaVJrjYeSJQPZwgwPVnupHqlmIVIpHF+0 8ju8mKGBI4yPvWMhn2QDxNK7d4a5qNkBcdigHj3P5y2QiaBFqSqNyB8H6XpBSF0giVuM I0lAb8J2o67QPyu6Le3AUmuycMWCi5oLHqJzC7vf9BEYjDHJxheHJ+acOleEQ+VKFxcy VaPw== X-Forwarded-Encrypted: i=1; AJvYcCVK4kqgE6nhiIImcY5aqJ/OKLvRH5IiffCocuathfz+1RrXIBFV9uOkLoQLLOEKJDdpRipGcjX8oxuCGXV5evUtXdR6SLUvBW9fFdZ3 X-Gm-Message-State: AOJu0YwoH6ufaM7A5ux11GzsUOuyh5aFiDhmHbRn5PP8yHjRb7D0Wgvp mxkJos5VdcgVJ2cA1JEZT7tLYCB8O31FrNuorg4/RNOB+z4QI4NL X-Received: by 2002:a05:6a00:815:b0:6e1:338d:e01c with SMTP id m21-20020a056a00081500b006e1338de01cmr13090467pfk.1.1709591920061; Mon, 04 Mar 2024 14:38:40 -0800 (PST) Received: from localhost.localdomain ([49.142.40.215]) by smtp.gmail.com with ESMTPSA id y127-20020a62ce85000000b006e5571be110sm8069622pfg.214.2024.03.04.14.38.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 14:38:39 -0800 (PST) From: skseofh@gmail.com To: robh+dt@kernel.org Cc: devicetree@vger.kernel.org, frowand.list@gmail.com, linux-kernel@vger.kernel.org, skseofh@gmail.com Subject: [PATCH] of: fdt: modify small size memory check Date: Tue, 5 Mar 2024 07:38:30 +0900 Message-Id: <20240304223831.11288-1-skseofh@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: 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 > > >> > > >> After page aligning, the size may become zero. So I added exception > > >> handling code for size 0. > > > > > >That may be true, but when would anyone only have memory regions of > > >less than 2 pages. In any case memblock_add will just do nothing. What > > >is the actual problem you are having? > > > > > >Rob > > > > Ignore the previous mail. > > I modified the patch to clear this size check routine. Please check > > You still haven't answered my questions above. > > Though the patch below is a bit more readable than what we currently have... Well.. I don't see any 'real' problem with this. But I'm not sure if it's appropriate to leave a part that will be returned directly in the next fuction called. Wouldn't it be better to handle the part can be handled in this function, rather than expecting the next function to handle this exception?