Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp874861lqj; Mon, 3 Jun 2024 03:45:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWtIMnwUngopfhk9utUqUhyOoKxI24RB2Saw373q2QM5EfvyE0CTPr8AC6ukYG7/g0UOvLK3f6ZOFVSCLzySIlRdOuopdyG6X7AojKKEw== X-Google-Smtp-Source: AGHT+IEiDvkfBbl9sFOFbJMk0qIasUReEZRHJp9Go5WJioWv6+KFlFcDa+6OenipdTZgOCwD1QY4 X-Received: by 2002:a17:902:da8d:b0:1f6:78f7:1503 with SMTP id d9443c01a7336-1f678f7178fmr36809445ad.43.1717411508462; Mon, 03 Jun 2024 03:45:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717411508; cv=pass; d=google.com; s=arc-20160816; b=SQ4DSy7O6pph9fqDhhSLdcrR4661GbPU3dmxfyfdguKqfFeb4vDby3uM/9r6mt4Cba IXxpoKyjXpdps61B7Wsd0wxhAXFz9ma+ZaXt8ToIdd0euCYPRuniIunFw1MKkc9hc3jU erSNp3HIqvLen/Q2CP8ePddp5OipidsEj7Nt7lW/vr2LQ8TSl3ScMmbJ7RbvR+a4k5wI nPJqz/q7keOoDnEcCaTiA2OruTMOPvJ4r7TGWSe3M76SSDi4CDwUvsJoJOAFMHbwCy7Z plIwszLzAY0BQZflV/xUOdE74fLQjJMp9dNAGnlEjtO0r6HVDgjKMsEA+CAmMRYn9pjt y6bw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:references:message-id:in-reply-to:subject:cc:to:date :from:dkim-signature; bh=MTVl6aoe8qVpJzVua3qdf7Cp5mWauawLIW3MPdn/QyA=; fh=N+hDCZwrTYqJ3Xz383/Qu7Sp3tvMhwDWjKb6ZcDa/qA=; b=bfG1wg1quEIAQlA/dAv9b4CQJTqFoaaN9UVU7cR2YN3PkfII+cNcfiDPVtu0Jk+cA4 qHJO5QGcNr3U88hmiQafORIAn8srhRMGkmeiTnTXPY+535Mj+2kN8Vf+ip6U4tKIh5Xa grQYI4OBhm1lpHXSCXfX9M9fSR+9w5c6Z8z+9+mz/4b5CspAHEJq+VgU1UgPE1+M7Zg9 yB5lPEsvvYTpIoKzCJA7Ee2fyyWaLlfF0xHlsSio/RmyMM84EhvJT/Z0Fob/GyVdumZA aG/hRNaXEmP0NDRkVRhUM1KwM+44WfTn5bkD+toDJilznYCpcdrEhHErLAGB48i579R/ 04pA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=G2gDK9AD; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-198709-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198709-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f632426f79si62116475ad.648.2024.06.03.03.45.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 03:45:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-198709-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=G2gDK9AD; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-198709-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198709-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id B243BB2011F for ; Mon, 3 Jun 2024 07:25:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 743254A9B0; Mon, 3 Jun 2024 07:24:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="G2gDK9AD" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.21]) (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 2CB4A42047 for ; Mon, 3 Jun 2024 07:24:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.21 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717399489; cv=none; b=rF84TQVby8HTTqBTvu05QHlL6u7Q2+aOUCzbevGlUYI9VATbq5EzOZCJh6YrNlXHNsU3JabXpg6ay/2efWl73CtVeoj59RzP90Npj86gjqXZYkbq1C3bHjqhkiCxtWYFeZEFTpD3hj3EYZK0tUda+qWjUIT4yB3NyaOuDgrmU1U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717399489; c=relaxed/simple; bh=CFw0jXkCJ2C0wlfWJK24i5rMaTVUzDmZPVQIJxPWnQA=; h=From:Date:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=DRcVtJApZtyH2UMgEYPsRh75IqQKR91lE4Kt5yg4W8FxKgju14+jw6LHvhWm+foEqXWyg41mhj8roZ6nqZSAFptqI7OqDaWQ9gr9mc5Tb0gjCSwedr+4xeOZ/4G5XL1f6gTZlbSNRSKsFveifz4bk3att3JDSSgvRT+SnZxBGlE= 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=G2gDK9AD; arc=none smtp.client-ip=198.175.65.21 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=1717399488; x=1748935488; h=from:date:to:cc:subject:in-reply-to:message-id: references:mime-version:content-id; bh=CFw0jXkCJ2C0wlfWJK24i5rMaTVUzDmZPVQIJxPWnQA=; b=G2gDK9AD0dULbtSNRWzbN1bDwIVT3gGumBWwcNDY2OpXPiz+u778KJZ1 yAs7UOeCwVf+xwRfezMf2jPEfHwBOtoWskk2J3hE4okwG+Q7RraD0DBZV JRJUMtPNWVC+1wJ/5gfIOxtQbk7ifSfQA1M9sJ57ZqO8BP2S90/Cxf0jJ 53wIOvY8Az5d358a+sL0Ya822RCkn8st//h9B+yYAA4wudGaYpKGoXUER ENYVFDKq6gRlWahUxrz27bgS52AZ4owgfuA1H3eoO3sqRKsrFCbBfGakh GK+19g0gTFgrUkkgVi4zJZVQ8ilLEqy2s3+1xLlMhMyleurbGe64ga8Aj Q==; X-CSE-ConnectionGUID: jiMuqrmSR5OiHXB1lp6GdA== X-CSE-MsgGUID: zN2aiknTRo+zrIOjJ9xPtQ== X-IronPort-AV: E=McAfee;i="6600,9927,11091"; a="13824948" X-IronPort-AV: E=Sophos;i="6.08,210,1712646000"; d="scan'208";a="13824948" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by orvoesa113.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jun 2024 00:24:47 -0700 X-CSE-ConnectionGUID: kxqd9paxTmyZfVioFUTnCg== X-CSE-MsgGUID: wgn4h+pnQIKznB3X/28G+A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,210,1712646000"; d="scan'208";a="36875565" Received: from ijarvine-desk1.ger.corp.intel.com (HELO localhost) ([10.245.247.161]) by orviesa009-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jun 2024 00:24:44 -0700 From: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= Date: Mon, 3 Jun 2024 10:24:39 +0300 (EEST) To: Andy Shevchenko cc: Chia-I Wu , 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 , LKML Subject: Re: [PATCH] kernel/resource: optimize find_next_iomem_res In-Reply-To: Message-ID: <783e9d9a-e408-c6f0-9a4b-050e1979b919@linux.intel.com> 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: multipart/mixed; BOUNDARY="8323328-947370823-1717399436=:1529" Content-ID: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323328-947370823-1717399436=:1529 Content-Type: text/plain; CHARSET=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Content-ID: <9a23e7b3-9da0-cdcd-f514-8f55036748af@linux.intel.com> On Sun, 2 Jun 2024, Andy Shevchenko wrote: > On Fri, May 31, 2024 at 02:31:45PM -0700, Chia-I Wu wrote: > > On Fri, May 31, 2024 at 1:57=E2=80=AFAM Andy Shevchenko < > > andriy.shevchenko@linux.intel.com> wrote: > > > On Thu, May 30, 2024 at 10:36:57PM -0700, Chia-I Wu wrote: >=20 > ... >=20 > > > P.S> I'm not so sure about this change. It needs a thoroughly testing= , esp. > > > in PCI case. Cc'ing to Ilpo. >=20 > > What's special about PCI? >=20 > PCI, due to its nature, may rebuild resources either by shrinking or expa= nding > of the entire subtree after the PCI bridge in question. And this may happ= en at > run-time due to hotplug support. But I'm not a deep expert in this area, = Ilpo > knows much more than me. There is code which clearly tries to do expanding resource but that=20 usually fails to work as intended because of a parent resource whose size= =20 is fixed because it's already assigned. Some other code might block shrinking too under certain conditions. This area would need to be reworked in PCI core but it's massive and=20 scary looking change. --=20 i. --8323328-947370823-1717399436=:1529--