Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp432639lqg; Thu, 11 Apr 2024 07:21:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVGTk0txlujy5wFYlgsBy6HpUMdfcE4UcY8Qne8cyRX+GpzexHT1VmnJ0oD1Or04x0kPiQkvbj/U0UOtrsVx28njonHOHYlT/pVuscUKg== X-Google-Smtp-Source: AGHT+IEcYPEcG9i/yJQffNNWrH01cigwaC/jV4aFxsRgkDnLx1pkY8FiIaXjOl7mohqhl9cfE0p1 X-Received: by 2002:a17:902:e5c9:b0:1e5:11ac:a283 with SMTP id u9-20020a170902e5c900b001e511aca283mr4578640plf.9.1712845274317; Thu, 11 Apr 2024 07:21:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712845274; cv=pass; d=google.com; s=arc-20160816; b=T1an1y6XclBEIeX3ZOIMSMXTAdsZc79NSnFTdOOgLCet1k/QxGMBFDPCmZG3Lpc44F xW2gapBUfv0X2L2vYbPRxQ9njASsrIwYUq1ukCu3SzP1WhP3TZ+QqSt7vnesgwg7bJxq bE6tugmtVWc9fpffkX25ylzqQxLb6r5PTtBCIqs4BMXKBHMkhHqoZZdjmhJDSWaRTSXt ns7kRrjsjYd2R1UYlLHjY/3pHHsonpYa9MBtDR80CNfPlmIM6e+LDd/VMtpKBqPwy4s5 ytLOu+/M+MMyufg8gP2GBSlgh+JeqJocRSoaZv/eRN8elNJ/gFlkMh1ty20KmsaRCxXT ockA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=9ZvBxY7Py3z+7efT0ytOs/DMQOHxmKBdaY8+hLpAYY8=; fh=QpfXcl1MWRNwK/PrSFDaf8vyLNOqSjtq+qtJ/l97qlo=; b=ujI56YtSopv4wlUpbvg69Cvel0WmNQeHLm3YaG2wBlH5YIm4Im5Yc/a18MmPe0ZK3Z hK+ZfwT9YD1CGISTs2LKd0wyF98qF6ZmAyDLZK1SklZo4NdaVZOaqJMl4hdWDCz9k0rK c8mCGKXgjhfmH5gyLQ8rA/7ioLdV5msVN1NozvfJo9W/3+ZrrQWsSraVFNRIiUpMN59t Yq8p8jIIsHFJvr/x60YO9H9fasKnosmuYfAhFC8IVHS0UPPF+wWG4ahjjHrlQ1+7+Awy IqC1bN90hFakI/AVTPB5R68ltIuOEMykivIAQB7ENTlA/ODqdLTeeh4Nupc2XwhE4Nsw XmkA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-140617-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140617-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id u6-20020a170902e80600b001dddbb23e2bsi1369827plg.47.2024.04.11.07.21.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 07:21:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-140617-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-140617-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140617-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 53FB8288D1E for ; Thu, 11 Apr 2024 14:16:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 43FFA14E2FC; Thu, 11 Apr 2024 14:15:15 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 98FD914EC40 for ; Thu, 11 Apr 2024 14:15:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712844914; cv=none; b=pULCo3MnvDXcLl1P3WGyV96dXhIIhhL1flRtWbHQXRL55piDVGajeRW13/BRAWjzkjsZbfhSRpXNiKuF+5UFCNRMF7nKkRML+VF6+VGqGgss2b/OHB491gmGWDxg7LshdZJsUPIRM13a43JV5SuYD59y9lqxQl44z+1LZnw8e1o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712844914; c=relaxed/simple; bh=tBwVtxSBMQcM3gTJe/ADrOfHAy0L66S9KG99F9o1+hs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=oTqIcmQ4wBry6MXSlC57Nt1hDy8eA4O3ejy2rBJkhmc9LtbMih7oW/+mIojZROi+F2WdHjMRv7L3xc4/8JOzZrnyrbNmEfE2V6+EpKroJBqtI+3fMVWQQtCeE71+LSf4uMIhn9LFzE6seCwDlpCENvK6/Z3y9a6Xs/R8aM/VtnQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 8A628339; Thu, 11 Apr 2024 07:15:42 -0700 (PDT) Received: from e133380.arm.com (e133380.arm.com [10.1.197.52]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3D5AC3F64C; Thu, 11 Apr 2024 07:15:10 -0700 (PDT) Date: Thu, 11 Apr 2024 15:15:07 +0100 From: Dave Martin To: Reinette Chatre Cc: James Morse , x86@kernel.org, linux-kernel@vger.kernel.org, Fenghua Yu , Thomas Gleixner , Ingo Molnar , Borislav Petkov , H Peter Anvin , Babu Moger , shameerali.kolothum.thodi@huawei.com, D Scott Phillips OS , carl@os.amperecomputing.com, lcherian@marvell.com, bobo.shaobowang@huawei.com, tan.shaopeng@fujitsu.com, baolin.wang@linux.alibaba.com, Jamie Iles , Xin Hao , peternewman@google.com, dfustini@baylibre.com, amitsinght@marvell.com, David Hildenbrand , Rex Nie Subject: Re: [PATCH v1 07/31] x86/resctrl: Wrap resctrl_arch_find_domain() around rdt_find_domain() Message-ID: References: <20240321165106.31602-1-james.morse@arm.com> <20240321165106.31602-8-james.morse@arm.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: On Mon, Apr 08, 2024 at 08:17:12PM -0700, Reinette Chatre wrote: > Hi James, > > On 3/21/2024 9:50 AM, James Morse wrote: > > rdt_find_domain() finds a domain given a resource and a cache-id. > > It's not quite right for the resctrl arch API as it also returns the > > position to insert a new domain, which is needed when bringing a > > domain online in the arch code. > > > > Wrap rdt_find_domain() in a another function resctrl_arch_find_domain() > > "in a another" -> "in another" Noted for James' attention. > > so we avoid the unnecessary argument outside the arch code. > > Please do not impersonate code. [...] > Reinette Noted. Cheers ---Dave