Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp798680rdb; Fri, 22 Dec 2023 05:36:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IFUOwS806qgAUQkUiCCbpMYslEJB/ZLPFdnNDfzHs135hfbtc8wDi3XR09KH6J1NqWQG10J X-Received: by 2002:a19:3847:0:b0:50e:5984:7224 with SMTP id d7-20020a193847000000b0050e59847224mr572063lfj.120.1703252175432; Fri, 22 Dec 2023 05:36:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703252175; cv=none; d=google.com; s=arc-20160816; b=hspQqUdiF57Vd+5jJt+fLQFu4ClXaXUfZYjYF//LhsFW5QVBl/jCXVR8as9ybzjKrb 31F8eFNzi9E8WeNzryREnpVPdw3Wdnq0LWRqQETMNqBt7ijQRJLzJYi4XWmjELQ8JqE4 9AUAY1MVr4B2B4zgZ7ZebSnLb/971mndvEPaL6NXjEMhThxjpX8qOnrjwIws/JvurYcc Z0Olnx46eiwjOHEIZOSMaagYxO+ehIY0sqzWPnk2j21aRIuLNJSSg7KXjaD2mTY6ZBTr Eii1REhPW1mM3iBAekM8ab/kWvNM30JaQLeVFKAEhSgHNHuBOmrbuG84k/gHPPsE7T5J n12Q== ARC-Message-Signature: i=1; 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=Xq5oUYTbzds2NqDfIdsAhyFo0Omxy6eWEgi/BLNgYtg=; fh=mafsujr3g2Mrwl/Ex1xUN08pEohY5fZpEV0KrcmnVPw=; b=T2vrO4wQiB7JopMxHH5/o+lsGnd2/+uevkWBUzhbpAJkb3M3XNgWITsA9nNGjRi09k OkqTIK7eebYSLXfs03q0v97ksU4e2nVBqWhfTGrEMDQv1v2B2c9t3JzgKlVaB53bgGVI Rs4rxuTIvpyy0IhNuOBZTUMZ8gyqoOWh1hQGBaZWk3vnUln//1ApfRNuQ5C1tKkppQiP vCZz0n5t1UCaYYeq5UvxMH2d7aGleLNaBLHNyefzDYdokwyQmotSBGIDkrZ6Y7W5h4On bwrPm9azPfzZ+WpEn2uFjW+PCRjQMx9eQbhExZFZSfYjJv6OMZy1V80RY1m8KuRMELH2 x/Aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=HT+c67PR; spf=pass (google.com: domain of linux-kernel+bounces-9757-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9757-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id n27-20020a170906689b00b00a2375be7e87si1865188ejr.807.2023.12.22.05.36.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 05:36:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-9757-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=HT+c67PR; spf=pass (google.com: domain of linux-kernel+bounces-9757-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9757-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 303DD1F22CBB for ; Fri, 22 Dec 2023 13:36:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DAF0319BD1; Fri, 22 Dec 2023 13:36:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="HT+c67PR" X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) (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 D5310199A7; Fri, 22 Dec 2023 13:36:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1703252164; x=1734788164; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=zWZ1aRWrVqsyieeFsQyCtW19c3VttRD8ZySgrG40IGA=; b=HT+c67PRFoTeqmNvTwGtprBGAt8Hmlkr3yuxxQyOTfcKSa/1Dph/Mqs1 XA2yI5/uWVXv9Jb/qzXPV+M0u+zY7/6mt16esbpEqbzPLoHlvdcopTH28 c5ofU8FagBT4Sz/iBLH6Oq7I2UbhZcEy8ZmX+M2vhZYJ5S4bwtKPhTtWL j+vfEGmBe20ULM2C5FlLMrNXCfUagZFOFPh8c0/v7pE6O8+TKdWp4vjMk u/7fjiQJbeFlAzVnFYajY98Cps9UArTbMTbp5+UB/pW6xBg+WPAWSNJrz v3Lwcax8ax+DcT3L2y5WNJtFqAxBcxwDvOACmHit75v+oXlu95faW0l18 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10931"; a="17686354" X-IronPort-AV: E=Sophos;i="6.04,296,1695711600"; d="scan'208";a="17686354" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Dec 2023 05:36:03 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10931"; a="1108471362" X-IronPort-AV: E=Sophos;i="6.04,296,1695711600"; d="scan'208";a="1108471362" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga005.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Dec 2023 05:35:59 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1rGfgy-00000008A5W-3w7x; Fri, 22 Dec 2023 15:35:56 +0200 Date: Fri, 22 Dec 2023 15:35:56 +0200 From: Andy Shevchenko To: Ilpo =?iso-8859-1?Q?J=E4rvinen?= Cc: linux-pci@vger.kernel.org, Bjorn Helgaas , Lorenzo Pieralisi , Rob Herring , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Igor Mammedov , Lukas Wunner , Mika Westerberg , "Rafael J . Wysocki" , linux-kernel@vger.kernel.org Subject: Re: [PATCH 6/7] resource: Export find_empty_resource_slot() Message-ID: References: <20231222122901.49538-1-ilpo.jarvinen@linux.intel.com> <20231222122901.49538-7-ilpo.jarvinen@linux.intel.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=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20231222122901.49538-7-ilpo.jarvinen@linux.intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Fri, Dec 22, 2023 at 02:29:00PM +0200, Ilpo J?rvinen wrote: > PCI bridge window logic needs to find out in advance to the actual > allocation if there is an empty slot big enough to fit the window. > > Export find_empty_resource_slot() for the purpose. Also move the struct > resource_constraint into generic header to be able to use the new > interface. Reviewed-by: Andy Shevchenko -- With Best Regards, Andy Shevchenko