Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp509818imm; Wed, 26 Sep 2018 02:24:03 -0700 (PDT) X-Google-Smtp-Source: ACcGV61ugAT2yfNRYxyEvryxJHHPhy+t8Oahc8Jy9w+VgHO8Yu2MOQ/kGMswJZ6lqQRJ+TeTOmXQ X-Received: by 2002:a62:6283:: with SMTP id w125-v6mr5354671pfb.108.1537953843233; Wed, 26 Sep 2018 02:24:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537953843; cv=none; d=google.com; s=arc-20160816; b=xxb6VKUtoDLiwcMM6BpeOdmF7Mt+yNJF3LX1onKYdrvl/WdIkZwHARcrvXKrIwBxlK KsczhCk/5UO54PBW98xLRgXDwgC+dI01BqmzzQTSdrGACSdyYzSFziMLXVmcbtor/bZB b0Bdh6XzS5vgOQOuXk+SaV3awgJm/Q+zTH7LB8nGQSvoXAUGbwXOHvbs3UKvdZrcRpWt zbiOp+oqL4uMIVD0kQRXcvtgOHCofdmS2c14xhp85YRFMe9vF4zpKRQRn4VPdUA7zw67 aP5Vi+7tanzeDolnJT0MVEGswweBK2zroJ5bhgrWJKdOb+dOuabbxTPc36wXSmcwF73G 4U1w== 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:from:references:cc:to:subject; bh=qsWrzRkEwB7gMmmz+2P0ImY5x32R/5k4d37w8gJgphE=; b=ffTifCIY8P2asYeF1/uEHgYaFEf+nid6stL0JoOIL4cAq9bbXh3tr3AyYlVFq3IBcX w17Nd2MFKBRr1RVsPraoN1uWsYWEvgqqDbl1C/k+FAryJTlXei3niY8Ajg/XVotLgZi9 DmvER8TWJuJr9Z/ORbrlzyxUQhp4KxHXr9xGVksESdz0UtbARFuYw+1bInQlCf4RtUcJ hPot6o8WopfCH7WcPg25Q/bk2DpzsbhlXZAlUVNMuO1Tzy8S6GR3ouyHYVWsbO/Apw7y Pl108ypDrhgz/Mwk4gFw4uNim84mNYS0xf1dEnVNoqOf+D/Kvh1zktQeCcAaj3mFDZlg WcGg== 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 n190-v6si4373314pfn.358.2018.09.26.02.23.47; Wed, 26 Sep 2018 02:24:03 -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 S1728139AbeIZPfX (ORCPT + 99 others); Wed, 26 Sep 2018 11:35:23 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51756 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727434AbeIZPfW (ORCPT ); Wed, 26 Sep 2018 11:35:22 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id AECD988311; Wed, 26 Sep 2018 09:23:21 +0000 (UTC) Received: from localhost.localdomain (ovpn-12-101.pek2.redhat.com [10.72.12.101]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2E1955D73F; Wed, 26 Sep 2018 09:23:04 +0000 (UTC) Subject: Re: [PATCH 0/3] find_next_iomem_res() fixes To: Bjorn Helgaas Cc: dan.j.williams@intel.com, brijesh.singh@amd.com, bhe@redhat.com, thomas.lendacky@amd.com, tiwai@suse.de, x86@kernel.org, kexec@lists.infradead.org, linux-kernel@vger.kernel.org, mingo@redhat.com, baiyaowei@cmss.chinamobile.com, hpa@zytor.com, tglx@linutronix.de, bp@suse.de, dyoung@redhat.com, akpm@linux-foundation.org, Vivek Goyal References: <20180921073211.20097-2-lijiang@redhat.com> <153782698067.130337.12079523922130875402.stgit@bhelgaas-glaptop.roam.corp.google.com> From: lijiang Message-ID: <1894f2ba-42ab-c044-ea0c-63eab98d9815@redhat.com> Date: Wed, 26 Sep 2018 17:22:55 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <153782698067.130337.12079523922130875402.stgit@bhelgaas-glaptop.roam.corp.google.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Wed, 26 Sep 2018 09:23:21 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2018年09月25日 06:14, Bjorn Helgaas 写道: > Hi Lianbo, > > These three patches are a possible replacement for your first patch > ("[PATCH 1/3 v3] resource: fix an error which walks through iomem > resources"). > > I think the interface of find_next_iomem_res() can be improved to make > the code easier to read and also avoid the errors you're fixing. > > I can't test these, so they've only been compiled. If you can test > them and if you like them, feel free to incorporate them into your > series. If not, just drop them (but please at least fix the same > error in walk_system_ram_range()). > Hi, Bjorn Sorry for my late reply about this. No need to incorporate them into my patch series, you might freely submit them to upstream. I will test your patches whether it can also work well for my case, and you will get feedback about my test later. Thanks. Lianbo > --- > > Bjorn Helgaas (3): > x86/kexec: Correct KEXEC_BACKUP_SRC_END off-by-one error > resource: Include resource end in walk_*() interfaces > resource: Fix find_next_iomem_res() iteration issue > > > arch/x86/include/asm/kexec.h | 2 - > kernel/resource.c | 96 ++++++++++++++++++------------------------ > 2 files changed, 43 insertions(+), 55 deletions(-) > > _______________________________________________ > kexec mailing list > kexec@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/kexec >