Received: by 10.213.65.68 with SMTP id h4csp1469443imn; Mon, 26 Mar 2018 08:07:11 -0700 (PDT) X-Google-Smtp-Source: AG47ELtomNgpdD0ggA73NK8hQJI9ARVA2YCBVVqkfREy+iVDcRkSF/Fxdm08drW4t/eWCzzp0cuh X-Received: by 10.98.14.215 with SMTP id 84mr29044870pfo.168.1522076831293; Mon, 26 Mar 2018 08:07:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522076831; cv=none; d=google.com; s=arc-20160816; b=H/gldhkdI1FfdJEqB7vtdGHOkYGDzCPCdUbdtnkffVD0YRjqPNbau93Kzo7CAalUor Ay98n1v2GuEWtEFXSMa5qqLCKasOhFQeRmfUDGT8hwyUiJdQa+K4S210lV1j1tMWHvCR 5UvThy7sIUsFQkwI9sPYQ5+XIiqSx7Y1j8YcTzM2GzhMnnu5yAMmQM7P3AEd+4mZt2yE ys/HSEQjarEHUCet0k2m/7IXNVs9/a2hYz2426XOxiB5UOMbPHFAIgs3N0zbukv8Kfxe enYS0yQZFrOU/oujFpvxvW+tv0qOygn+Jz7RRJ8SyS39swB8JB14rMD2ye6oUlE5pZmX ehjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:message-id :subject:cc:to:from:date:dkim-signature:arc-authentication-results; bh=TLWZRTlVFyODu8qWmeOxuTS72S6JaYri0TMrnLxsKGg=; b=TgP7wtKv4zN8KnHrtNQxc0pvn7p8OxZ/Rr2EHQqkbGFYNZNz6MRPOGk5uDISQXVhrC NhLvrMP3O2ThtvxI65A8uLRAzgxGa/pRox7ijdomeihUVt7QmAojSoLNFcH2dfGNHb4M WHRncQw6g1HuSlTGoFekNaMTDsHURTkNcjGDyWk9PSYIo5YzQ4MeUK3oLW5Epc148nBL 88+rUP9WabuUZjPIZDuwBBSjxYO5egvxlvCZ9M2wNrPi23nadMVRFSUtIXBlHUE9jMXa Mm2r7XaT48287xBibG4p2HPk6nQgt1nzvEdxqvvw2iYjXdt5Q3pG6kRhsNTUJSRbrijc Aivg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=d3ORg8bi; 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 m1-v6si10699880plb.127.2018.03.26.08.06.56; Mon, 26 Mar 2018 08:07:11 -0700 (PDT) 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=d3ORg8bi; 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 S1752176AbeCZPE5 (ORCPT + 99 others); Mon, 26 Mar 2018 11:04:57 -0400 Received: from mail-pl0-f68.google.com ([209.85.160.68]:41501 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751793AbeCZPE4 (ORCPT ); Mon, 26 Mar 2018 11:04:56 -0400 Received: by mail-pl0-f68.google.com with SMTP id b7-v6so12106397plr.8 for ; Mon, 26 Mar 2018 08:04:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:reply-to:references:mime-version :content-disposition:in-reply-to:user-agent; bh=TLWZRTlVFyODu8qWmeOxuTS72S6JaYri0TMrnLxsKGg=; b=d3ORg8bi0tjp9om6R8aiqarQOEU99XzFnJV3rd/IGdTvM2dP8wqJcXbrgneo3ZD6XB UWxWOa8T/ufOP6OT4a6Pu6pH5OQ+kH9Wdp0duW0T5RI5lAYX3z4bIG47bOIo0SqZHnvd IPScLVJIFOU3PCs/TIroua/YyJkH/JKlNQv2B70S+MxS3RZk99mOe9Nk0c6/PE72yBDb jYxapG7CJVTDwDXUzcE3rA1mdqezvdVFm8KNZzI1cbBXpZOb85sHiUx/4tGONfn7Yjoj I3dlWG4igsQm5TMc5OVWlPGTC69j2BbBfTUcqHg3wOMvjemiqeYlM8siMwYbzJILEAUN +6EQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:reply-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=TLWZRTlVFyODu8qWmeOxuTS72S6JaYri0TMrnLxsKGg=; b=qJP3Co/oS3gYBZ5w3Jug9ccBAyknpZZLaeUAXHs49+qmZP/FWXmvUJpBJvWLzxJ5JO zcIB9n+iVWylZYQT1cmFmm3Ngeee2VIieYlZvcoMN6nMoMsnEOISAzo03ztZQ955BJqD W1qeH73trbAT0o3AnGPR1xlhROeQd5SdkGel9FDm1g5nieAwDbg198vSHEwebCGsLjE4 KBOGHp0EwyjcNtO7+bTtDCECEZgy+OCvOJJVnRVdYoLiAoYbZSMQIsH7iDHH18LVNqUI tqIGNMZtBh1hIxQ7uPduLuzQC8fjxMks927TMIA1JG+CYZy1EpSQdevVzlxvSnqnF3zm AB+g== X-Gm-Message-State: AElRT7Ha0kK2T0hRRvNES0nz1axRshBfEJNqOaPIj2+l4StEKLCBUZjE 0Rh3SJ8u1sWKbvO8K8cttIA= X-Received: by 2002:a17:902:8349:: with SMTP id z9-v6mr41102917pln.163.1522076696059; Mon, 26 Mar 2018 08:04:56 -0700 (PDT) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id f6sm18830536pgo.54.2018.03.26.08.04.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Mar 2018 08:04:55 -0700 (PDT) Date: Mon, 26 Mar 2018 23:04:47 +0800 From: Wei Yang To: Baoquan He Cc: Wei Yang , Andrew Morton , prudo@linux.vnet.ibm.com, kexec@lists.infradead.org, linux-kernel@vger.kernel.org, takahiro.akashi@linaro.org, ebiederm@xmission.com, dyoung@redhat.com, vgoyal@redhat.com Subject: Re: [PATCH 1/2] resource: add walk_system_ram_res_rev() Message-ID: <20180326150447.GA78252@WeideMacBook-Pro.local> Reply-To: Wei Yang References: <20180322033722.9279-1-bhe@redhat.com> <20180322033722.9279-2-bhe@redhat.com> <20180322152929.9b421af2f66cc819ad691207@linux-foundation.org> <20180323005845.GA25740@localhost.localdomain> <20180322190606.859a0f1c7e2d1b2958daeb9f@linux-foundation.org> <20180323031013.GB11150@localhost.localdomain> <20180323130620.7d60fc442463ed5c21898387@linux-foundation.org> <20180324133330.GD25740@localhost.localdomain> <20180324161343.GA58414@WeideMacBook-Pro.local> <20180326143016.GE25740@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180326143016.GE25740@localhost.localdomain> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 26, 2018 at 10:30:16PM +0800, Baoquan He wrote: >Hi Wei Yang, > >On 03/25/18 at 12:13am, Wei Yang wrote: >> On Sat, Mar 24, 2018 at 09:33:30PM +0800, Baoquan He wrote: >> >> >> >> Yes. That sounds perfectly acceptable. >> >> >> >> It would be interesting to see what this approach looks like, if you >> >> have time to toss something together? >> > >> >OK, will make patches for reviewing. Thanks! >> >> Hi, Baoquan, Andrew >> >> I have come up with an implementation for top-down search the ram resources. >> Hope this would meet your need. > >Thanks for telling and your effort. Glad to know >I am not the only buyer of walk_system_ram_res_rev. I am fine with other >ways to make it, people can compare them and know which one is better. >I am working to use the list_head instead, the doubly linked list way >as Andrew suggested. Andrew and other people can help make a choice. It >won't be long. > Sure, Look forward your approach. >Thanks >Baoquan > -- Wei Yang Help you, Help me