From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 C38963A169F for ; Tue, 24 Mar 2026 03:42:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774323765; cv=none; b=PWJquJrAL2MU4StE1FGYQ31llu77S4EBmUaO4MSgiR2hUtDWYzLws4Pf4pTSS34/YqREc4eMGVFx0+PSWMpoBS00x0tFZiyHKIFlKtJQjF+rhhMsIm7gKk/6Uor8CHQKiL9Jfr04y0xJqrZnJrbRyhPctNpphnkV0Dd9HafCouA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774323765; c=relaxed/simple; bh=ytx71aLgOpEN3OU1EImfPkvxmPyCQzLlBWGLfnk2Glk=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=QFQaLqbl5P0Uh05SpReq4xTgbxCQfZ57lG4JwjP9dhXMqR5sMUWK3wN6OyMdBkQN2ZmjZGjydHk+Cho1NRJ0IaiGpJ0MI8bhAB6Yr2zHYZMmYg+a4a5sIBIf2+l0WWVaGkGHnu8CNl0tNy+xZCPnO1xRrLd7C5Kx1jT3gX5IKx8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=gDxz0Fr9; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b=CE5nQ00K; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="gDxz0Fr9"; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b="CE5nQ00K" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1774323763; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=M9oHoK+qgr+hzDA71sg+T7mBzxA/nxf+7FTfYBCJoWQ=; b=gDxz0Fr9pDXxJm6xmmE4GqhJIINbvUsKfZ4mbqZi80tn4KZDcj5CLY+GrgWqOrzogcpE10 G3pX9PhNJQTPnFYY9IipKXFDQXgrFS20KWjSXOwvqOrXeySgUug90vs3tf5sBBgbtneKoQ gg/QOMxJfIj6NsvBThRaocngQuHycaM= Received: from mail-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-402-83UMLK9EOjSv_kdqFprgBg-1; Mon, 23 Mar 2026 23:42:41 -0400 X-MC-Unique: 83UMLK9EOjSv_kdqFprgBg-1 X-Mimecast-MFC-AGG-ID: 83UMLK9EOjSv_kdqFprgBg_1774323761 Received: by mail-pl1-f199.google.com with SMTP id d9443c01a7336-2b0554888cfso11484115ad.3 for ; Mon, 23 Mar 2026 20:42:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1774323760; x=1774928560; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=M9oHoK+qgr+hzDA71sg+T7mBzxA/nxf+7FTfYBCJoWQ=; b=CE5nQ00KnCwaWPJYActeWqxylp+rp1rEfM6H1p2z+WapFhRT4xs6PcrrGHsno2aTkM Wd/XAvSKy4xo7hRFvMEtVdyPcCaKILfp3QJeqGPJsTH4oMFZ5JX7x9Y3kPtfH0nj8uCD IHXzAEsISjpXaYx2mYUW3GCepRBPny4tYigSavNx7yFh9G8CV74FyT6gecF4Vf8gjzIU UM56AoTtWxB1fEC3kcKUlANASvnoCUkrVvy6SuMdKF4qWqucTc/kYXbsGbDSZQJszC8X Rv9iGkq8hyGxb3P07tFmxT7P1Rtvit3aFUAKzHXxo4gVWn99qHGQUHMIA9DDnV7qM57n PLsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774323760; x=1774928560; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=M9oHoK+qgr+hzDA71sg+T7mBzxA/nxf+7FTfYBCJoWQ=; b=KApvczx3EhdJ5/NcznxbDCyBG4dcIg5ilCseMr9bxyow33eUUmHObJZ6D4Civ5AdX2 wFn7pnQUL7WVLpuKgqhs3YJiBhWvI45FrlQIHbi2tn3lYqee290sSUqhAMGtFp1y1Rcj ohg5c5rn2XYHAm44Gp0/hmxfN1Il1gaqZJ4x3wC1ESVylRbnOEOBuAm8XKkVySPx/ETP e1KmUrD19NwIzzVyowWFjFVrf65/M/h/Z9ro6WQV3K49ZJTVqwWKHlvFZs3GI0mV+Jvl JD0LWovu2p5ns/Md68Fynb6bv99WLbAS8Cx+ilpOIWZn19CCHUX3vlCgnr8BP9xScune uIjw== X-Forwarded-Encrypted: i=1; AJvYcCW3eSXE0S3m39mqToOvbelk8tUPzU9+5ss4Q1/i0AhTa07eaH185rjcuMLPjttHtuFhy+eFcpKJ9+0MZNU=@vger.kernel.org X-Gm-Message-State: AOJu0YyWFkIG7yMSaix5Vdd40Q+dk7jDPhSPHn7Z+FXfzFaWsqDu/VNx Ha7H/EzcqiOOJJhMvCqXGO4MY5iwzUZEEdHLOLbsAtyl2XP0zKiqNlevTdVmXWBOfLMecnraw5g uEHqIx71+8fX/4ZiT5Lx9JUPoF3QtmYHX9NwF3/T50Pgg3QMCbu1fGtpS7kc8hbHpkA== X-Gm-Gg: ATEYQzxIewdUqh1hwPw4gpyNc84zUxS816VTndAhBiaLp+LSOfTFzrgM/qufUGg7Ktl zcafIbL0J6jqs5haFq2DBttPJ8K4/JpKQlplHLa946eoJmQSWMTP+DWOj0QnLhPcd6IBzDNyByo ursB2+aHGn1lKkgwT7TUDX03uPYvl/5gxdpsXaMMNu7Yyn7Ls6OKgD9NByNWkBDcErX0CGvo52x w9HOuyzr+PUMyoPjlkkgzwjRyuUStWwQEY85omxLF8zjAT2g8Zb1q9rQ76GH1xBeRNv6xkPMkGO 9Fxk3QmCOhzAEK/vvZ8nuGNfBm+YvZ04YjFTWC9T8oCFZ5JT9rywE926n7+eco8wLW0h1PpCDbw iiTKq+AHiGTkl5JVkfT3aripQRI+S5rH2fgL++7O7Ww3IoQxf+BgbXdVh+mlDO+yx X-Received: by 2002:a17:902:f685:b0:2b0:4a1c:b847 with SMTP id d9443c01a7336-2b0827d55dcmr137215315ad.52.1774323760650; Mon, 23 Mar 2026 20:42:40 -0700 (PDT) X-Received: by 2002:a17:902:f685:b0:2b0:4a1c:b847 with SMTP id d9443c01a7336-2b0827d55dcmr137215045ad.52.1774323760248; Mon, 23 Mar 2026 20:42:40 -0700 (PDT) Received: from [192.168.68.51] (n175-34-8-244.mrk21.qld.optusnet.com.au. [175.34.8.244]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2b08369617dsm161821885ad.71.2026.03.23.20.42.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 23 Mar 2026 20:42:39 -0700 (PDT) Message-ID: Date: Tue, 24 Mar 2026 13:42:23 +1000 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: [PATCH v6 32/40] arm_mpam: resctrl: Add empty definitions for assorted resctrl functions To: Ben Horgan Cc: amitsinght@marvell.com, baisheng.gao@unisoc.com, baolin.wang@linux.alibaba.com, carl@os.amperecomputing.com, dave.martin@arm.com, david@kernel.org, dfustini@baylibre.com, fenghuay@nvidia.com, james.morse@arm.com, jonathan.cameron@huawei.com, kobak@nvidia.com, lcherian@marvell.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, peternewman@google.com, punit.agrawal@oss.qualcomm.com, quic_jiles@quicinc.com, reinette.chatre@intel.com, rohit.mathew@arm.com, scott@os.amperecomputing.com, sdonthineni@nvidia.com, tan.shaopeng@fujitsu.com, xhao@linux.alibaba.com, catalin.marinas@arm.com, will@kernel.org, corbet@lwn.net, maz@kernel.org, oupton@kernel.org, joey.gouly@arm.com, suzuki.poulose@arm.com, kvmarm@lists.linux.dev, zengheng4@huawei.com, linux-doc@vger.kernel.org, Shaopeng Tan References: <20260313144617.3420416-1-ben.horgan@arm.com> <20260313144617.3420416-33-ben.horgan@arm.com> Content-Language: en-US From: Gavin Shan In-Reply-To: <20260313144617.3420416-33-ben.horgan@arm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 3/14/26 12:46 AM, Ben Horgan wrote: > From: James Morse > > 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(). > > The new io_alloc feature is not supported either, always return false from > the enable helper to indicate and fail the enable. > > Add this, and empty definitions for the other hooks. > > Tested-by: Gavin Shan > Tested-by: Shaopeng Tan > Tested-by: Peter Newman > Tested-by: Zeng Heng > Tested-by: Punit Agrawal > Reviewed-by: Zeng Heng > Reviewed-by: Shaopeng Tan > Reviewed-by: Jonathan Cameron > Signed-off-by: James Morse > Signed-off-by: Ben Horgan > --- > Changes since v3: > Add resctrl_arch_pre_mount() {} > resctrl_arch_reset_rmid_all() signature update > add stubs for abmc > keep empty definitions together > > Changes since v5: > Add resctrl_arch_reset_rmid() since mbwu will always use abmc > --- > drivers/resctrl/mpam_resctrl.c | 65 ++++++++++++++++++++++++++++++++++ > include/linux/arm_mpam.h | 9 +++++ > 2 files changed, 74 insertions(+) > Reviewed-by: Gavin Shan