From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) (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 9D5B82F5331; Tue, 18 Nov 2025 15:39:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.176.79.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763480375; cv=none; b=kKCN9XVRCOgYRjhoNrxMYih43WCjdXszx0yKQUuYkDCwFg5iqyzUyZFaIWCXp7cXylZuEed69jjX+dTZvFNhqL0XxGHd4ZArYfzhU2hPKrY0tsqHoiXSXhJrh64BRLj9z/xg8qwZu/vHCxs6FMjhf4r9Lje2lBY0NdJ0u5igdfI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763480375; c=relaxed/simple; bh=sgN5YHheoJm7E1EmVKmBu/ir9zJUy77WK4pMJgcjPYk=; h=Date:From:To:CC:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=ZA+W7x8I08m31SBzE01m+zRGrfXRQZ4APP32HV0JpcpQDGBfGVyq+FcKitz/FiOgQrze3xwcoEa8vRD0WkQEq3QEwYm6dxrLlili1tUD2xetHP4nv2xiOheWAsRvKyiL53FiaVN8s0X7PVYtNOxKgKtPcCsOFa/zl2VOpLYHkgs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=185.176.79.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.18.186.231]) by frasgout.his.huawei.com (SkyGuard) with ESMTPS id 4d9pgS3lcSzHnGhH; Tue, 18 Nov 2025 23:39:00 +0800 (CST) Received: from dubpeml100005.china.huawei.com (unknown [7.214.146.113]) by mail.maildlp.com (Postfix) with ESMTPS id 8F5BF1400FD; Tue, 18 Nov 2025 23:39:31 +0800 (CST) Received: from localhost (10.126.168.5) by dubpeml100005.china.huawei.com (7.214.146.113) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.36; Tue, 18 Nov 2025 15:39:29 +0000 Date: Tue, 18 Nov 2025 15:39:28 +0000 From: Jonathan Cameron To: Ben Horgan CC: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Zeng Heng , Shaopeng Tan Subject: Re: [PATCH v5 23/34] arm_mpam: Allow configuration to be applied and restored during cpu online Message-ID: <20251118153928.00000a2f@huawei.com> In-Reply-To: <20251117170014.4113754-24-ben.horgan@arm.com> References: <20251117170014.4113754-1-ben.horgan@arm.com> <20251117170014.4113754-24-ben.horgan@arm.com> X-Mailer: Claws Mail 4.3.0 (GTK 3.24.42; x86_64-w64-mingw32) 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-Transfer-Encoding: 7bit X-ClientProxiedBy: lhrpeml500010.china.huawei.com (7.191.174.240) To dubpeml100005.china.huawei.com (7.214.146.113) On Mon, 17 Nov 2025 17:00:02 +0000 Ben Horgan wrote: > From: James Morse > > When CPUs come online the MSC's original configuration should be restored. > > Add struct mpam_config to hold the configuration. For each component, this > has a bitmap of features that have been changed from the reset values. The > mpam_config is also used on RIS reset where all bits are set to ensure all > features are reset. > > Once the maximum partid is known, allocate a configuration array for each > component, and reprogram each RIS configuration from this. > > CC: Dave Martin > Signed-off-by: James Morse > Cc: Shaopeng Tan (Fujitsu) tan.shaopeng@fujitsu.com > Cc: Peter Newman peternewman@google.com > Reviewed-by: Gavin Shan > Tested-by: Carl Worth > Tested-by: Gavin Shan > Tested-by: Zeng Heng > Tested-by: Shaopeng Tan > Signed-off-by: Ben Horgan Reviewed-by: Jonathan Cameron