Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp266168lqt; Thu, 6 Jun 2024 03:01:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUEEzcUozKUu58gvCEAAtj1GrceL5pNXPOhKcCNPemF6IoHn08wpfoun2OZ97UhFHn0XgxTxfD4I5sPyL7w+aLSzPzo6VOHcChVgy0Bnw== X-Google-Smtp-Source: AGHT+IFnaBZ1o3wFof0p0YjZBdTmccrNMh5lPzsUVetrYj7+OnTsAFjlBdHBbWOE178aZwftakDO X-Received: by 2002:ac8:7f12:0:b0:440:29e8:819b with SMTP id d75a77b69052e-4402b6ea9b1mr46198421cf.64.1717668096574; Thu, 06 Jun 2024 03:01:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717668096; cv=pass; d=google.com; s=arc-20160816; b=zKEK6Eotc55bgszTy8e4+Kmtb4RTp2B6i6bCx6b/R9kLq85hL2Pa0RZwQ+2co8A389 A/1mcaIJcmnfi7+k6XM0z754cITjFE7L0uuAPtbgh4XSmw4uFrR7JaCqw9FdiZV/Mq4T NkJGBvkcQyHhLEpZTT5m7Wk9eb4IP9wHsTRJIeHukX9cspKBJC04nPynB0rshhpnaxBg XDqXTAdKT+BcQBjvjr2eZuEfRUfXfEZ9NGGJR54W4DcEfjOjVt8AI1ZfpYB+v+ZGWw9v G3K2gwvImU9WyY8ttsuzlxqAA2Xpc6tWYwhc/uPjsjV3zg/kywonV6R1SwgHMcTk0Krl bySg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=organization:in-reply-to:content-transfer-encoding :content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:references:message-id:subject:cc:to:from:date :dkim-signature; bh=oHYzGovN2XCNtoXrj8QL2GGOZ78ZMVcR+2UuY/4RPI0=; fh=uR85qwFslv1TL3r+X0cuz3ZzFEiuNg0ftM1Rh9TA8Gc=; b=TlQDbj9R3vIiW83vxO9GgsPvXzX/3+s9owDiLY1zSblwCDlGVF1qX+fznRqfPf+ieg Jmi8DKfVWu+u4K98+Tiz+bQVbOgM8mWsL9JA7aAlkvo/5JRbsPSi2cvbrv2f5Bq5EhWn OpAflUfWjlHDJVJ3qYNj8eWg3Lcl10ck7JbbaOWhBIOkN94mLibvfhzHCHfDy7L9nqEc MWyJRWlaPq+vEwS/GLvA4nUUBs3mrZgdA3IgyO6QlZy1y6nV3PYcte84t1MPBHw9GBlH NUIUkjPPlJPbHNSEyoVEuqnXuiSqZ3AfqHANOtmzMKcWXwm03gk7uiRV7GE+z97nIFxy Du3w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=kxC8BzMQ; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-204076-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204076-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 d75a77b69052e-44038b60022si11745781cf.561.2024.06.06.03.01.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 03:01:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-204076-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=@intel.com header.s=Intel header.b=kxC8BzMQ; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-204076-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204076-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 4DA491C22559 for ; Thu, 6 Jun 2024 10:01:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2ED281862A3; Thu, 6 Jun 2024 10:01:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="kxC8BzMQ" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D564A185091 for ; Thu, 6 Jun 2024 10:01:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.17 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717668088; cv=none; b=fSzoc6/SgvZxUQCdLQKREoa6DQ5uqIPDMi/uhhP3zWQ7yGc1ZI/xL4XwjXOpJGUJlEjvqHghAoJvNTW+OfozoMaujQFG6tqUVp5Jtith+UVVga6pwaeQNxkcK1Ykb4D4r3dfOfdEPkvyfvE1KaHvGoYfpR+0Ew+1wnwc+4Z/dBM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717668088; c=relaxed/simple; bh=OcdwBe41VOHoxba7xSg4ULAv55Y7TqZs85XGx4ve3I0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=b+oF64p76xejNLd58+6tngNPHzrBmN0j1Td/CyXDZ4PGc5iLUOTugHIrschARq4YZDe/jRHkYisA7a7JzROG1DPlZ7mYtm0P9d4NxGTJ4MoahN77XkvoT7QwlsYj26B0ddQj1HjJT5KlwRBRmFFON1YyMWq0swpSHXZedKq+lAY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=kxC8BzMQ; arc=none smtp.client-ip=192.198.163.17 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1717668087; x=1749204087; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=OcdwBe41VOHoxba7xSg4ULAv55Y7TqZs85XGx4ve3I0=; b=kxC8BzMQws+49iqRLOBLJoVDZywjyeBWgKSb4TG47UTxMG8xpTSBbwbi 67w6/SqKs9v5/v1OY5baOXYmnid8ywNTSIW0RVkVcAGhpoElTfbHdWedd 0DS7Xn/Zy1HkbijZF5CLCcGIzAWeRSLjtZqVlMqILheJk3jfGhr9dKC2p Tqvm1K0gR39t1r9UpB9KWPua91yBbSwERFS9PCdnjx9X0EN/bZYdJVv+N 7x922Y9YtPbgFmG/GmR2bpNDTYpo6193TlXjVlExGkkCA7XVCaq7eP2lB sEQjZ2PaknTXKSLfo2M9rkuEpKV7zNpNq3MhsWg1GwKmsgjmlkmql1bZU g==; X-CSE-ConnectionGUID: Rz29k9epR1uicmmHVEuGsw== X-CSE-MsgGUID: J5+S0Zt9Qbmi+a6Yz5WATQ== X-IronPort-AV: E=McAfee;i="6600,9927,11094"; a="14206695" X-IronPort-AV: E=Sophos;i="6.08,218,1712646000"; d="scan'208";a="14206695" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jun 2024 03:01:26 -0700 X-CSE-ConnectionGUID: k8WdnHHqQb+Be+yOwYFqOQ== X-CSE-MsgGUID: AdryZSLhS8GoPM7arIdC2w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,218,1712646000"; d="scan'208";a="38575383" Received: from smile.fi.intel.com ([10.237.72.54]) by orviesa007.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jun 2024 03:01:23 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1sF9vs-0000000E837-0D2i; Thu, 06 Jun 2024 13:01:20 +0300 Date: Thu, 6 Jun 2024 13:01:19 +0300 From: Andy Shevchenko To: Chia-I Wu Cc: Greg Kroah-Hartman , Dave Jiang , Alison Schofield , Baoquan He , linux-kernel@vger.kernel.org Subject: Re: [PATCH v5] resource: add a simple test for walk_iomem_res_desc() Message-ID: References: <20240606004002.3280960-1-olvaffe@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Wed, Jun 05, 2024 at 05:46:16PM -0700, Chia-I Wu wrote: > On Wed, Jun 5, 2024 at 5:40 PM Chia-I Wu wrote: > > > > This mainly tests that find_next_iomem_res() does not miss resources. ... > > + walk_iomem_res_desc(IORES_DESC_NONE, IORESOURCE_SYSTEM_RAM, > > + res[2].end + 1, res[3].end, &count, > This should be from "res[3].end + 1" to "res[2].end". Not sure if I > should resend or if you can make the fix when applying. Please, slow down. You sent three (!) versions over a day, this is against the recommendations. And it seems you want to learn a hard way the clear thing: Hurrying just increases a chance of a mistake. -- With Best Regards, Andy Shevchenko