Received: by 10.223.185.116 with SMTP id b49csp1398041wrg; Wed, 14 Feb 2018 16:56:38 -0800 (PST) X-Google-Smtp-Source: AH8x226ERM5pwAQ+RIaJu3VXewxAE0WfPXRIm/rtHB+5+ZJkVYp+SLZuaQ5w16nsFMJIAEkwkFlu X-Received: by 10.98.9.138 with SMTP id 10mr882351pfj.122.1518656198487; Wed, 14 Feb 2018 16:56:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518656198; cv=none; d=google.com; s=arc-20160816; b=zkaen86wD+P8NmNlvTpHBw7o01aZ5NbJTr1FjHk2Y1cFlF/m6mupIL+RxNzy5Ysg4a vJ/HkEznm8lNhu014+DvHC2RgY6wJmLKxqZRktFOPJywq91phiA/WAPU1VNw5O7DBcVn Yqbp5LrrcR31XxvCZi5f7icQnGtSxYsOtE4QlKSo8nDELBLiUuMkJHczk9yQiPOt4ClT YwAscyRrIK1jW1OB6dPeU0B7uaa6wymuuPwGPqm+o3skpjR4uXkXjKItvhc+7zGm1Mz9 VWv0zDOFVjoeGI3Y6O4RvATKbwm0gzlbwSyElvgkT8mgMYwfSJALC8bbY5N9wF/NdvHP Xkvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject:dkim-signature :arc-authentication-results; bh=8lYI1Ge/XAXmOKztHM3EzhwyZS0++u5Od+Y/xXd85X4=; b=FN2LC9xd4uCnGkiImQYlP9JrqGZOiETD4x+vwGJyzrZYtTN6pn83cV1rm/ly0TJ0Am lqaHE1s6JnWsWZ7m7SKdco/+bIU7RWEqpgq+MVIoHVCxI35eUJQ9pzi+ETDyNHKoGJiU JsV8BFRU/Jmj/6lYv36WmlSE3flGWNuOfJKrKWfZg6NadRU27ka9nb/xCQOhWCH6WUy1 kBlOUTLqFnS9LcTviq8SwRsuU435j8QuwrRBn6NSs359Gs8jIxvxWmFVwp6g4ATKYrOM eQNMBHoClHoTQBoVREXUOvu6qixKjdkW+/F+X/dDixOsoIPG5q0Q2GgAvGSVoxCu2DCs rbRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fp3G93Fr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k9-v6si1813635pli.616.2018.02.14.16.56.23; Wed, 14 Feb 2018 16:56:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fp3G93Fr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1032404AbeBOAzY (ORCPT + 99 others); Wed, 14 Feb 2018 19:55:24 -0500 Received: from mail-pg0-f45.google.com ([74.125.83.45]:39621 "EHLO mail-pg0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1032245AbeBOAzW (ORCPT ); Wed, 14 Feb 2018 19:55:22 -0500 Received: by mail-pg0-f45.google.com with SMTP id w17so2959312pgv.6; Wed, 14 Feb 2018 16:55:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:from:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=8lYI1Ge/XAXmOKztHM3EzhwyZS0++u5Od+Y/xXd85X4=; b=fp3G93FrjUX9vHZtV3PK/5icX2kVhOjL84ItcNhi5OSMrv/BcWaz8MI+Qeeu/E5z52 L2J/ZenGkFjPWLUFVFzwZrzEif8SEH8CroxXkZOPLTPsKAvOcNdzzXrEeb21YWvDIeiG hf+W1q5N2b/OuaCLPqy/XP+ow7GaVNWJUYF6AP8EEzlMcJ7eZLqjkQGXN5XxYhVAyqQE O+DJu9EBYtBxoqY1sb94ltB+7NzLUuSc1FvWie0RfEbLAionO4MCmWxjDq8M7HH6/Pi4 SPezzQxyeCRbXYksAYsVv4pvr9UOWtH8xMv51XPJxLJItfNun4PfvrzWTbBSOVC4pcPq PFSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=8lYI1Ge/XAXmOKztHM3EzhwyZS0++u5Od+Y/xXd85X4=; b=t1W+Up4hdTcRWf7eLYXRVJqxaculBs8Ic1f8XyboD9YbOpRLo0lE4/wbiKmNXvroRm x+nixVHXz0eqKq+oaZWO7Stfae0ZNHXDTqMM1LwEFKcH148ZOOdOO2yoXYGRDHR6Rf7Y k98fDf22F83QLmW1Jj1fW+zOT6klRfwVR51zEwvKuQ5eiuicmYOUMEocfbEfmLsrocrZ SwStFmm30oY49yzJUb8OqMQoPU4tHQo7W0B3F/UU6eDDuyQU4W46WTFqDfTJ+UGumLCF i9RT0ARqA7wFiWS+LAfQ8bAQ3cabDoNkZgHNbkzvAKRY1QJUd+eUmD/rN9XqqKUHmsek srgA== X-Gm-Message-State: APf1xPBzCQIu7wXJ04Aj6ooRYyP9EPQbnEcMnagTjnuf4crC1rH5sqEN ehqeSVkSnCgQ/xh6PIElWQAPMjIc X-Received: by 10.99.106.202 with SMTP id f193mr697416pgc.115.1518656121892; Wed, 14 Feb 2018 16:55:21 -0800 (PST) Received: from [192.168.1.70] (c-73-93-215-6.hsd1.ca.comcast.net. [73.93.215.6]) by smtp.gmail.com with ESMTPSA id q15sm31149272pgv.38.2018.02.14.16.55.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Feb 2018 16:55:21 -0800 (PST) Subject: Re: [PATCH] of: add early boot allocation of of_find_node_by_phandle() cache From: Frank Rowand To: Rob Herring , cpandya@codeaurora.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <1518655465-10759-1-git-send-email-frowand.list@gmail.com> Message-ID: <96984f12-dff6-73e9-8f45-9573cb9ca4e5@gmail.com> Date: Wed, 14 Feb 2018 16:55:20 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <1518655465-10759-1-git-send-email-frowand.list@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/14/18 16:44, frowand.list@gmail.com wrote: > From: Frank Rowand > > The initial implementation of the of_find_node_by_phandle() cache > allocates the cache using kcalloc(). Add an early boot allocation > of the cache so it will be usable during early boot. Switch over > to the kcalloc() based cache once normal memory allocation > becomes available. > > Signed-off-by: Frank Rowand > --- > > This patch is optional, to be added at Rob's discretion. The > extra complexity is not as much as I had feared, but the boot > speed up is also likely small. This patch applies on top of: [PATCH v3] of: cache phandle nodes to reduce cost of of_find_node_by_phandle()