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 251AB33987D for ; Wed, 11 Feb 2026 12:22:17 +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=1770812540; cv=none; b=cddQQOwZ45t2UMjNA0Y4BWJyN+U0LplzjBjUTV0OP8RUlrv4joSAUSpmwXdxgj/wrQecTsOauaSPVaGRwcY86NJkUvYe1QjCPnM2HD+haEzHk1g+I3kazxcyERHdp08Fb1/YIxFseyxRiilUsEEW31q+jeLQGpG8S+eIrohEt1E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770812540; c=relaxed/simple; bh=oavhdj9BnX/kJGl/FcvEhpbd/81yGky5QiB4Q2acA5k=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=qcUaHN8JU6xpcXM5lAtKzbpw8JrUNyOTl555yHYGLdgs4Ctk04PVPHmDXjP8068UCZvkKm2K/t01kstK2w7WrcSC8wZkYw6DGAtY4Xle0wn5/8jHqHddm+I8IXXyMqKMt7Y/0k/Sq6SFAS7w+NM4KVRwl3B5aINNTMxwZS4YHv8= 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 D8C31339; Wed, 11 Feb 2026 04:22:10 -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 36B913F632; Wed, 11 Feb 2026 04:22:16 -0800 (PST) Message-ID: <59c21340-4e3d-4c48-9d9f-c0f78a023bac@arm.com> Date: Wed, 11 Feb 2026 12:22:14 +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: [PATCH v2] arm64/mpam: Support partial-core boot for MPAM To: Zeng Heng , james.morse@arm.com, fenghuay@nvidia.com, reinette.chatre@intel.com Cc: wangkefeng.wang@huawei.com, linux-kernel@vger.kernel.org References: <20260203093110.4189708-1-zengheng4@huawei.com> Content-Language: en-US From: Ben Horgan In-Reply-To: <20260203093110.4189708-1-zengheng4@huawei.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi Zeng, On 2/3/26 09:31, Zeng Heng wrote: > Some MPAM MSCs (like L2 MSC) shares the same power domain with its > associated CPUs. Therefore, in scenarios where only partial cores power > up, the MSCs belonging to the un-powered cores don't need and should not > be accessed, otherwise bus-access fault would occur. > > In such non-full core boot scenarios, the MSCs corresponding to offline > CPUs should skip. If the MSC's accessibility mask doesn't contain any > online CPU, this MSC remains uninitialized. > > During initialization of class->props, skip any MSC that is not powered > up, so that ensure the class->props member unaffected from uninitialized > vmsc->props in mpam_enable_init_class_features() and > mpam_enable_merge_{class|vmsc}_features(). I'm sorry but I don't think we can incorporate this kind of change into the MPAM driver. The usable features of MPAM need to be determined before MPAM is enabled. Any unprobed MSC may restrict the usable features of MPAM or even render it unusable by the driver. On many systems the feature can be inferred by symmetry (or prior knowledge of the platform) but the driver cannot have this knowledge. For systems where the cpus are faulty and disabled in firmware meaning the msc is inaccessible, and not used at all, I would recommend marking it as disabled in the acpi table. This can be done from version 3 of the MPAM acpi by setting the MMIO size to 0. For systems where you don't want to boot with all cpus for each msc you will need to transitively bring online a cpu that is affine to msc. > > Signed-off-by: Zeng Heng > --- > Change in v2: > - Add check for the MSC probe status in mpam_enable_merge_class_features() > > v1: https://lore.kernel.org/all/20260107031336.3599175-1-zengheng4@huawei.com/ > Thanks, Ben