From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5F4D019CD06 for ; Tue, 9 Dec 2025 16:31:05 +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=1765297867; cv=none; b=S5XM+kZXUQygB0zEG0VEwrUdPe5mTni/NJBx+Wjng8pv8i4i+SNkyTYnKxntzDaqoIsjy+E8nuJ1nGAdy4v5Pw+P+mO2T8liQsweZ7C2F0mlvKnHwF8NG6kmuo0ag/ttkCWCL77lPX5IYEm8t9K+j69fVb6Vvf/D4/FV16yWnzc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765297867; c=relaxed/simple; bh=FMh1Rg3FIgRaHH1Ur1HZnBteIskzZV8bOSrdJtFm2Z8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=IVtsktXvUjPDsHwCrsoXG1swzEvW7XNgDA3vD+imDzYszwo745Mb9HSmJSiw0avUqU5jAyjr+t6dVjFwUj94CqRwpXnlUug+9cDmDbNFs24IidFHFuKQFSmmvvcblfyVmNQRjK97ZxhOHiaSZ1Gogwlbk8AWMLXewVpj27oGdK8= 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 6D620175D; Tue, 9 Dec 2025 08:30:57 -0800 (PST) Received: from [10.1.196.46] (e134344.arm.com [10.1.196.46]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 5E8D33F73B; Tue, 9 Dec 2025 08:31:01 -0800 (PST) Message-ID: <9b452304-27ea-4c38-8bf1-820cf4d2f0a7@arm.com> Date: Tue, 9 Dec 2025 16:31:00 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC PATCH 27/38] arm_mpam: resctrl: Add empty definitions for assorted resctrl functions To: James Morse , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: 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 , Dave Martin , Koba Ko , Shanker Donthineni , fenghuay@nvidia.com, baisheng.gao@unisoc.com, Jonathan Cameron , Gavin Shan , rohit.mathew@arm.com, reinette.chatre@intel.com, Punit Agrawal References: <20251205215901.17772-1-james.morse@arm.com> <20251205215901.17772-28-james.morse@arm.com> From: Ben Horgan Content-Language: en-US In-Reply-To: <20251205215901.17772-28-james.morse@arm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi James, On 12/5/25 21:58, James Morse wrote: > A few resctrl features and hooks need to be provided, but aren't needed > or supported on MPAM platforms. > > resctrl has individual hooks to separately enable and disable the > closid/partid and rmid/pmg context switching code. For MPAM this is all > the same thing, as the value in struct task_struct is used to cache the > value that should be written to hardware. arm64's context switching code > is enabled once MPAM is usable, but doesn't touch the hardware unless > the value has changed. > > For now event configuration is not supported, and can be turned off > by returning 'false' from resctrl_arch_is_evt_configurable(). > > Add this, and empty definitions for the other hooks. > > Signed-off-by: James Morse The newly added io_alloc support means we need a couple more dummy resctrl arch functions in here, resctrl_arch_io_alloc_enable() and resctrl_arch_io_alloc_enabled(). Thanks, Ben