Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp675906lqh; Fri, 31 May 2024 12:51:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXd9+dRDCSoIHVXgDVQu2pQxEYhW3lB6MrtucjVGEp5h2EGfKW0avJHgdgwYsgKREWxxgI27TC/pZ41PomE9gxapbPnVeueFS8afYYmSQ== X-Google-Smtp-Source: AGHT+IFNvRVe5PwdyUx5ioXTaYL0hplCUeBcyGD4LdyFKRNWSNzdOb5D+Fesn3e+cAd8Rrl8KgKS X-Received: by 2002:a17:902:e850:b0:1f4:8ad1:369c with SMTP id d9443c01a7336-1f637033d34mr29978295ad.28.1717185080034; Fri, 31 May 2024 12:51:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717185080; cv=pass; d=google.com; s=arc-20160816; b=BSKhtEqkH/en3EzDnRRXi3aUeO8/3IxlKk7t1Ga6oLduUhCMsnOgYvoOzhG9YnDGZf Rw+J8NgerbdYuYHYXFBWbNzVI1noRNMqattcV7At05tKduoSmWguN/E6w/kh19azFF0D Jxhb+opgqHFKgFq+aFL7X0LpS2SkqiaoUS5SfwbGIm84RcrQcbApSfDYGadqAdIkkC91 5welTNUoOHTIq8dP579V27miIQxRQ+dfZh6e5y1J2Akafpple3iUAnDbrF9HfqZKxKBI 5CIlneNB3KYWGhmKb0qher7NC0JX6urxMbxXAZvgcwZvaMtoaP4RA+8m44WsyhQGolHe iGlA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=organization:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=P64yvpJ3IRnNux2i+sp6YKulL5KI5UAXt/0WDtMfGgU=; fh=aFu0pNn6danjqj8yofDwN0w/f/z0qObUKKcor0b1/Xs=; b=T6vI9s/B2c7L2jPY4LXLrUoY4P22Sz4cC9xg4tUv5LPJsieIqjMDqmfmAmHxksIw+E z+aEe5GGnPHx7cF+pPRSwHlZcw1mHy+6/kU4N7SDcUuhOTUxzjID2OVm5JDyJhWxwo2a gpBJ4H1XPRy+sV5w9XEffJmjNmr4KGJ3vWbXKYPh+UYe/xaK/3NrcfnHfyN589ceK0kY Bb7879BWM6BNWaQt20aFrdul84b1KQuguOSR37+XStNjsvb9GbxF8LYc0nM9g3DrVjFn XUsUCFgZ/RBBb0zqJVMzDvZTLXXTG0eYjh/EXKn4YQJZBDMy6CxVROnI4NjGI7hpxk9P hUjA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ljssGUoc; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-197078-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197078-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. [147.75.48.161]) by mx.google.com with ESMTPS id d9443c01a7336-1f632411ad3si20959025ad.544.2024.05.31.12.51.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 12:51:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-197078-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ljssGUoc; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-197078-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197078-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 79B67B2835A for ; Fri, 31 May 2024 15:33:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 65A1178C6E; Fri, 31 May 2024 15:32:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="ljssGUoc" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.9]) (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 66EB257CA7 for ; Fri, 31 May 2024 15:32:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.9 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717169568; cv=none; b=NqCtRQxb+fcrkVIs6OWtuiq7dRXd0VUD5q5hm8XGTk+K5OQNyzCqBPh5iep4Zv5SJc82lTk0fzh3f26ZEdVs8/uZhoF+G+gLt5uBPR28NIolOjVlcHQuBEXCftDuTQ2nQnDGuNft0dFhhNaLaeAT6obfSI5lomuhcK5Rp1mOmWE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717169568; c=relaxed/simple; bh=3etIn3wD4YKQlTjuROd7Oo6lOSJcR3qD7Jk9Yz8CHEA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Zl+v8JiBrRi/zFVTsQ2zCIKG21mDGQCr9A+lOKd4sHILWMHgpU8WAHDUdKZhbcUfmXQFx9lqGH1e+u8qyq+kQkXOk7UOgZ4GhVWCbunUb81V1EqE+gcE4zjrpW8JN6SK0jJzLfkfTeeBdi8IlT2kHraA5Nj1eEK/FWqhlpMuymc= 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=ljssGUoc; arc=none smtp.client-ip=192.198.163.9 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=1717169567; x=1748705567; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=3etIn3wD4YKQlTjuROd7Oo6lOSJcR3qD7Jk9Yz8CHEA=; b=ljssGUoc/Z770mVpiAt3gMmVEyzz0Xoaew11Yt1u9wSbI/W+c68pItlq cyC9Gi8RV6Ysa3IWiXo+Nw78ARcA4RkuSy/GScr/yhk6s+YUVa2nkvfVn fRTs8f0nkW9wAb0tAActhCew7Zi7xsSafYOf1mrj+WW0fhNcrzQnGoTUM SvyyZVC7qNRxwCouxPKmsMq+kwvOx0wVo+pP2+Y0OetLS8oYg15mUe3ys RJekZtI0iR9PC3FVx9RVpetI6GCwRGv5Ge4za+hnlW+IiuBDpqLxI/7MS fXxTZJ3q7mvd3YfPi1KoN0zFGRw2GIkO2Gp3PR2+57P7hkmXpR7jP3DP3 Q==; X-CSE-ConnectionGUID: 7WgCMUM0QHy/TcujqGhpCg== X-CSE-MsgGUID: Gg1oPcMtSquuqALCTztLsQ== X-IronPort-AV: E=McAfee;i="6600,9927,11088"; a="24381268" X-IronPort-AV: E=Sophos;i="6.08,204,1712646000"; d="scan'208";a="24381268" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by fmvoesa103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 May 2024 08:32:45 -0700 X-CSE-ConnectionGUID: rKba3UEcT8ulk9qB8K/H8g== X-CSE-MsgGUID: UksFEEPsQ/Or02YNbMKKCA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,204,1712646000"; d="scan'208";a="41272597" Received: from smile.fi.intel.com ([10.237.72.54]) by orviesa004.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 May 2024 08:32:44 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1sD4FE-0000000CVTM-0kXL; Fri, 31 May 2024 18:32:40 +0300 Date: Fri, 31 May 2024 18:32:39 +0300 From: Andy Shevchenko To: Chia-I Wu Cc: 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=us-ascii Content-Disposition: inline In-Reply-To: <20240531053704.2009827-1-olvaffe@gmail.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Thu, May 30, 2024 at 10:36:57PM -0700, Chia-I Wu wrote: > We can skip children resources when the parent resource does not cover > the range. > This should help vmf_insert_* users on x86, such as several DRM drivers. vmf_insert_*() > On my AMD Ryzen 5 7520C, when streaming data from cpu memory into amdgpu > bo, the throughput goes from 5.1GB/s to 6.6GB/s. perf report says Also in the $Subj (and pay attention to the prefix) "resource: ... find_next_iomem_res()" -- With Best Regards, Andy Shevchenko