Received: by 10.192.165.148 with SMTP id m20csp2114666imm; Thu, 26 Apr 2018 06:24:15 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+W6NY80S15/QR05L3L+w+vx4CCpHhQ11r0TgrOh0j8AJO4HNh/H7JH//FBg40BY0p/u39s X-Received: by 2002:a17:902:8501:: with SMTP id bj1-v6mr33315058plb.239.1524749055675; Thu, 26 Apr 2018 06:24:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524749055; cv=none; d=google.com; s=arc-20160816; b=n5v39VCVwZn84HVf0enZKehVmckHTzrjYcF/0ASwN1fdoPeodlApLJ4Hi1VKU5K5hB 7ppjMewDBvHo/XaxfA0/xwxQ1KE43SRgzDALkflfoPBGQpcYqyzc0cNh2KCBCzdiSmRm ija84EBQUKQivR66cBRO+hDEN/u476srMT7rAb8i1QsRdj18OLcCiFe7Y4qOVMQOeUPS b1d915C0agHAQfg88SQ6n1LSCnjW26AyjVWK4W8AAcralhy1WuRpUIUKwCWq/ifhELYe kJxl18YEknYD8pxvXjVuUc0l5tN+1slNcSUfzJ0cFqFAAgWSS60+MM7RGYej9kcALPKb wZqQ== 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:message-id:subject:cc :to:from:date:arc-authentication-results; bh=VibBVSK4u9FjODErvowpiRyAfPYNPPyI02dBruVIHsY=; b=EnsyFJisQXMWaoM7qXOkmXNPh8Dm4P0KlfpOv5lIgCy5iOnVnRAR20Tb3ezJxx6koT 3wWBzDiFuh3HskJactyMP73aG7ptnww6S9YE3wv0EOMHai+fvreBUV76dpfgZrgPUyaR SbogfpBzEeE+LKUwDhCWi4yFAnqN+jU4DLS8U2NCYvazoTnYjERbB3S0ebeOvf+9i2Q7 WSF/LIXkxhbCjzVkTyrkSQYEC1Qn00TmovwihO9+d4VYjmLm2XsYDIwKaF6twDZ2tWcP qG/VvDcMA0IFi7ajfSymc/qNW/Wzi5/yG2fnlP7nfQCYRo1d2JBmL1/Zvzo7O0RGAiMQ 1jZg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 8-v6si18668109plc.342.2018.04.26.06.24.00; Thu, 26 Apr 2018 06:24:15 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755981AbeDZNWQ (ORCPT + 99 others); Thu, 26 Apr 2018 09:22:16 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:38864 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755074AbeDZNWN (ORCPT ); Thu, 26 Apr 2018 09:22:13 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 6582081A88A6; Thu, 26 Apr 2018 13:22:12 +0000 (UTC) Received: from localhost (ovpn-8-16.pek2.redhat.com [10.72.8.16]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0C70484453; Thu, 26 Apr 2018 13:22:09 +0000 (UTC) Date: Thu, 26 Apr 2018 21:22:04 +0800 From: Baoquan He To: Borislav Petkov Cc: linux-kernel@vger.kernel.org, akpm@linux-foundation.org, robh+dt@kernel.org, dan.j.williams@intel.com, nicolas.pitre@linaro.org, josh@joshtriplett.org, Thomas Gleixner , Brijesh Singh , =?iso-8859-1?B?Suly9G1l?= Glisse , Tom Lendacky , Wei Yang Subject: Re: [PATCH v3 2/3] resource: add walk_system_ram_res_rev() Message-ID: <20180426132204.GF19030@localhost.localdomain> References: <20180419001848.3041-1-bhe@redhat.com> <20180419001848.3041-3-bhe@redhat.com> <20180419100745.GC3896@pd.tnic> <20180426085649.GC18395@localhost.localdomain> <20180426110905.GH15043@pd.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180426110905.GH15043@pd.tnic> User-Agent: Mutt/1.9.1 (2017-09-22) X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Thu, 26 Apr 2018 13:22:12 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Thu, 26 Apr 2018 13:22:12 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'bhe@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/26/18 at 01:09pm, Borislav Petkov wrote: > On Thu, Apr 26, 2018 at 04:56:49PM +0800, Baoquan He wrote: > > Sorry for that, I just ran scripts/get_maintainer.pl to get expert's > > name and added them into each patch. The reason this change is made is > > in patch 3/3. Test robot reported a code bug on the latest kernel, will > > repost and CC everyone in all patches. > > > > > > Rob Herring asked the same question in v2, I explained to him. The > > discussion can be found here: > > https://lkml.org/lkml/2018/4/10/484 > > ... and when I open that link, the first paragraph says: > > "This is the explanation I made when Andrew helped to review the v1 post: > https://lkml.org/lkml/2018/3/23/78" > > Do you see the absurdity of the link chasing of your explanation?! > > Instead, the explanation *WHY* should be in the commit message of the > patch - not in mail replies when people ask you about it. It is in patch 3/3 and cover-letter. I often received one or several patches of a big patchset. As I said, I used ./scripts/get_maintainer.pl to each patch's reviewers, and will add all people in CC list. > > Also, do not use lkml.org when referencing a mail on lkml but > use the Message-ID of the header. We have a proper redirector at > https://lkml.kernel.org/r/ I noticed maintainers merged patches with this Message-ID, could you tell how to get this Message-ID? > > Now lemme read the reason finally... > > "We need unify these two interfaces on behaviour since they are the same > on essense from the users' point of view... " > > That's not a good enough reason for me to cause code churn. If the only > reason is: because the one does it top-down and the other bottom-up, I'm > not convinced. We have been using this top-down way for x86 64 since earlier 2013 in the KEXEC loading with command: 'kexec -l bzImage --initrd initramfs-xx.img' Two years later, Vivek added a new KEXEC_FILE loading, and most of job is done in kernel because we need do kernel image sinature verification. The KEXEC_FILE loading mostly is used in secure boot machine. Although more and more users like to take secure boot machine, system using KEXEC loading are still much more. I ever asked our kernel QE who takes care of kernel and kdump testing, they said in their testing systems, the proportion of legacy system vs system with secure boot is 10:1. Before long I pinged hpa, Vivek and Yinghai who discussed and wrote the code for KEXEC loading in x86 64, asked them about the reaon they chose top-down, no reply from them. I guess they probably worried that low memory under 4G are mostly reserved by system or firmware, even though kexec/kdump have tried very hard to avoid each of them if recognized, any missed one will cause loading and booting failure. Just a guess. In fact, there's no spec or doc to tell which one is right or not. So I finally decide to take the same top-down way for KEXEC_FILE loading because on statistics KEXEC loading is used longer and wider. This is not a thing that one is top down, the other is bottom up. For us, they might be so different on details of code, for customers, they just think them as a same thing. They may say I just get a new machine, and still do kexec loading, why these top-down, bottom-up things come up. And this is not causing code churn. You can see that by replacing pointer operation with list_head, code in kernel/resource.c related to child list iteration is much easier to read, e.g __request_resource(), __release_resource(). As Rob said in v2 reviewing, they have put the same replacing in DT struct device_node in todo list, and ACPI tree function in drivers/acpi/acpica/pstree.c too. I think this is why Andrew asked to try this way and see what the patches looks like. Thanks Baoquan