Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp368034lqj; Sun, 2 Jun 2024 02:06:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXylX3SCkBDsX9mBFV5gWNFWutttRaUVIxWd2abWJdcTokj0S0+DZwKcpd8GiFvuiUwNDhTo9EVDK0B4N6fDYMgPoowvdZrLbS3mcfprw== X-Google-Smtp-Source: AGHT+IGsBNRKFAeXr3WT/oNydCrUo8C7Yeom3UGEHaWf3DI1k358Wwk0wfs7ruLEp+ol9am6cQRB X-Received: by 2002:a05:6214:2f09:b0:6ad:8498:d366 with SMTP id 6a1803df08f44-6aecd5a3298mr67116646d6.31.1717319186634; Sun, 02 Jun 2024 02:06:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717319186; cv=pass; d=google.com; s=arc-20160816; b=Q5Mr2rzfkTfONJljdCiMG/7ve/HcbKt/jv6XMAnoF6Xa9EA2qiIJJmAq6w61A4NRgh cJSxmBz/q0X/kOeeBnOW67xsU114bnq9IJlzw3YpJmKtsJGhMmoq71ujayjrkXFT8brv e11te8iAJYf/Ubymg/oyQMtW1l6tEI4bJuA/CpNLcnCPcf2hS1v/3jshKdFwhnYD2RyR YaYv1ND4B8SxShTeYp7KhrSQJHu9Vlhu60GUeQLLKKXDPIfUMXeT318rB4LzbIEyxmLJ FuL1XVkN/CTKif0XddBUyZacwBSg9+urHvMQdXmR01lLwjIOEw6NGFgok9An6njp6ZOa 4mvg== 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=0jwdnUVrkxCQ8F8+6AdT3Itn9uY5qNkbFh394hu9SL8=; fh=tXbbGXJcISQ8QpYThMRWPF/sr5mG4uLBIBIgFwd8P/8=; b=c2vdta+VMS2yc+w7W5IZQWmjPHUWR4qiKVRhFbbtWIQl+ivS0R1Meo391w8RYUrxWn +bCW5PoBgP3W74WuYUsfbZDNISHzByRcIyF9igNStVycuRvTEKTtXmEp8IV0KACeM5j/ zExzANZjPqo3fsj1gNZWSbeiQKT0XnToCpX1kIRye8QSOiIKGsfC4fwK/NIcOEHWQQpb m0/ctdNmLcZ1iwHHgtSByvQsxyNX4Q5QRqYz4ZnJBII4E0TprA19PeJNMg05EXrSGAAK /WjcYXWrpDTg6W2tHbmvH6PKWZweOt+z7hXXR1S/g1st7VTX2Tbe2DnEFukNYQQRiBPQ xvpA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=E5EDzmfs; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-198174-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198174-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. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43ff2466ed1si61436981cf.350.2024.06.02.02.06.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Jun 2024 02:06:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-198174-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=E5EDzmfs; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-198174-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198174-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 57D911C20E61 for ; Sun, 2 Jun 2024 09:06:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7BC4F2E416; Sun, 2 Jun 2024 09:06:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="E5EDzmfs" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) (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 1AF492D60C for ; Sun, 2 Jun 2024 09:06:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.13 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717319174; cv=none; b=NisHXPqac3Ehb53bPtPKy0UE9jsHHUobs52+ZPneqIel5S9rKhx7sjzoHud7ZRSs7U5P1BdBkeQxKyLxUeD65c2TQWpHwzIdXsdcK3Hi71entpTdQ9OzkX6na1kcWObV+z8pVXjQT7SzO/Zrw3LLYBBAV3Db6+o6L6HL0lkvT4k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717319174; c=relaxed/simple; bh=rde+gS+/1SJ6Gr36HkKsuWVC84C5A7IxDaZV55cYZbE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=fJePrJ/kn/cms3aMFIx9yNIYFVjb0hknWBgQvnKFfeyICbXzNiXK3SS9aiZZWLMLpwK50rFW4xLwU7OWvsxUYNUmlmvdl/Ql4x4ARWJ63yE9SMdjaYeUweuqBjBIRMBv9d6Ya7eSdt0WJKN0xOGMpUNQzTyfAibxz0XYjrohR2w= 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=E5EDzmfs; arc=none smtp.client-ip=198.175.65.13 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=1717319173; x=1748855173; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=rde+gS+/1SJ6Gr36HkKsuWVC84C5A7IxDaZV55cYZbE=; b=E5EDzmfs6yyLRLai5U0rFOCL0hazf6S1DTsmcPb0tEYXp3bYY46uQSB+ OJmOB8NEQoRMMagXrRPwuwkZQshse+MLCqVKIaX7pfk8FdBxKctQm/aiv 0VA6D20dDA12nIosET3whQkiVETvro5zvF9Yz06IbN3XhqLE88aLviqqX 8/P0AkHNXHZwEiNOE+YjjLDfLONEiDUYprH+pnqIerO8Y6BZEOWMb+axs q494vZRi45+so8FAhyepMLjsBm+eJtJOYfCsygwAj+Qw6pE02NIefqVAZ v6MBu/R26N/imlA/RnRVDzniUTrKULoboLn51E9Ll8f8pB/YSFXA8Dp/I g==; X-CSE-ConnectionGUID: cmXy2u5YTC2Vs5+U/Ck8Jg== X-CSE-MsgGUID: UD+rXYQvT2mLC6KxpAwv7w== X-IronPort-AV: E=McAfee;i="6600,9927,11090"; a="24942885" X-IronPort-AV: E=Sophos;i="6.08,209,1712646000"; d="scan'208";a="24942885" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jun 2024 02:06:12 -0700 X-CSE-ConnectionGUID: jTIoXAiyT9iJV/EfV4/gFQ== X-CSE-MsgGUID: tUBKbWb3Sd+hRJ9gH/mbdQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,209,1712646000"; d="scan'208";a="67780590" Received: from smile.fi.intel.com ([10.237.72.54]) by fmviesa001.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jun 2024 02:06:10 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1sDhAE-0000000Cyf6-42sP; Sun, 02 Jun 2024 12:06:06 +0300 Date: Sun, 2 Jun 2024 12:06:06 +0300 From: Andy Shevchenko To: Chia-I Wu Cc: Ilpo =?iso-8859-1?Q?J=E4rvinen?= , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, christian.koenig@amd.com, alexander.deucher@amd.com, Greg Kroah-Hartman , Alison Schofield , Dave Jiang , Baoquan He , linux-kernel@vger.kernel.org Subject: Re: [PATCH] kernel/resource: optimize find_next_iomem_res Message-ID: References: <20240531053704.2009827-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 Fri, May 31, 2024 at 02:31:45PM -0700, Chia-I Wu wrote: > On Fri, May 31, 2024 at 1:57 AM Andy Shevchenko < > andriy.shevchenko@linux.intel.com> wrote: > > On Thu, May 30, 2024 at 10:36:57PM -0700, Chia-I Wu wrote: ... > > P.S> I'm not so sure about this change. It needs a thoroughly testing, esp. > > in PCI case. Cc'ing to Ilpo. > What's special about PCI? PCI, due to its nature, may rebuild resources either by shrinking or expanding of the entire subtree after the PCI bridge in question. And this may happen at run-time due to hotplug support. But I'm not a deep expert in this area, Ilpo knows much more than me. -- With Best Regards, Andy Shevchenko