From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out30-100.freemail.mail.aliyun.com (out30-100.freemail.mail.aliyun.com [115.124.30.100]) (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 22DD2242D67 for ; Thu, 11 Jun 2026 11:33:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.100 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781177640; cv=none; b=avm3eYhDs5+rprfTPnpuDMzI9BsEWTLe3BgzxnwOEdP1cEdlw9sCCOkt/W4njf9ssQzSXNhJj1qbbDUJdLi/Ju5pwUMIbjjvvu+O4SzWlFzz/bHTLwlAJq/s8XAVCzCzxeZDyvj/S6lPAJU6SU5N4nNkBD6XSXF0ArbHFkS85sc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781177640; c=relaxed/simple; bh=Poz6D8eb+1mJv9uCV5l0CTUnwNc2AfGhBY3TEa9L6fs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Ivrnswr+BCrHbWtYcgP/Zafn5Xi+TDpZRjmoCuxBVhA9otKx4gdPVq90rMmNRiV9+J3VEaQUbqu8NqD3HfBd2lGSpw53fD+UXREc44bmJYpJrTxtbdDrS8EttwvIuygR8NZNDCPQ9Rp0SU4TlMaWcUCM4mmeV12wsBas4ik8ieo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b=prdYl+9D; arc=none smtp.client-ip=115.124.30.100 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b="prdYl+9D" DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1781177635; h=From:To:Subject:Date:Message-ID:MIME-Version; bh=55ub0Wvio+flGPFAX4LRxYXtBy9Ae/UwFhBnoJecHVQ=; b=prdYl+9Dcv5gWY8VWA9r+TcbUm8tMdgwWKoMsXQOgKJ0cXf4ge8ywmi+GhV+j854lKQyZLSA97U0IOz+apmhAC2UoU3GxyTAxDkwZYBKE3BKb9/zYYdxLVmFXkEvfSzjyJ50TAIsGDOfVJaJqxPIjypYNoLC40/JHEespTi//Wo= X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R151e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=maildocker-contentspam033037009110;MF=qinyuntan@linux.alibaba.com;NM=1;PH=DS;RN=13;SR=0;TI=SMTPD_---0X4dWU6Z_1781177633; Received: from banye.tbsite.net(mailfrom:qinyuntan@linux.alibaba.com fp:SMTPD_---0X4dWU6Z_1781177633 cluster:ay36) by smtp.aliyun-inc.com; Thu, 11 Jun 2026 19:33:54 +0800 From: Qinyun Tan To: babu.moger@amd.com Cc: tony.luck@intel.com, reinette.chatre@intel.com, james.morse@arm.com, Dave.Martin@arm.com, tglx@kernel.org, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, linux-kernel@vger.kernel.org, feng.tang@linux.alibaba.com, xlpang@linux.alibaba.com, Qinyun Tan Subject: [PATCH v2 1/4] resctrl: Add kmode arch stubs for ARM MPAM Date: Thu, 11 Jun 2026 19:33:51 +0800 Message-ID: <20260611113351.2013820-1-qinyuntan@linux.alibaba.com> X-Mailer: git-send-email 2.43.7 In-Reply-To: <20260611111706.1981788-2-qinyuntan@linux.alibaba.com> References: <20260611111706.1981788-2-qinyuntan@linux.alibaba.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit fs/resctrl/rdtgroup.c calls resctrl_arch_get_kmode_support() and resctrl_arch_configure_kmode() which are only implemented under arch/x86/. ARM MPAM enables CONFIG_RESCTRL_FS but has no PLZA hardware, causing link failures on aarch64: undefined reference to `resctrl_arch_configure_kmode' undefined reference to `resctrl_arch_get_kmode_support' Add empty stubs in drivers/resctrl/mpam_resctrl.c, following the same pattern used for resctrl_arch_io_alloc_enable(). Signed-off-by: Qinyun Tan Reviewed-by: Xunlei Pang --- v2: Drop the "hide info/kernel_mode on non-PLZA platforms" change that v1 folded in. Babu clarified that exposing info/kernel_mode on all architectures (showing the default inherit_ctrl_and_mon) is intended, as also suggested by Reinette [1]. This patch therefore only adds the ARM MPAM arch stubs, i.e. the aarch64 link-failure fix. [1] https://lore.kernel.org/lkml/2ab556af-095b-422b-9396-f845c6fd0342@intel.com/ drivers/resctrl/mpam_resctrl.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/resctrl/mpam_resctrl.c b/drivers/resctrl/mpam_resctrl.c index 1dd3bbd0772cd..fc2b3f508c039 100644 --- a/drivers/resctrl/mpam_resctrl.c +++ b/drivers/resctrl/mpam_resctrl.c @@ -161,6 +161,15 @@ bool resctrl_arch_get_io_alloc_enabled(struct rdt_resource *r) return false; } +void resctrl_arch_get_kmode_support(struct resctrl_kmode_cfg *kcfg) +{ +} + +void resctrl_arch_configure_kmode(const struct cpumask *cpu_mask, u32 closid, + u32 rmid, bool enable) +{ +} + void resctrl_arch_pre_mount(void) { } -- 2.43.7