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 B119E1F17E8; Fri, 24 Oct 2025 18:24:57 +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=1761330300; cv=none; b=BUODZjGZBNyDXYesF3tBA0IVyzs2o8kRSP98j4H86wQYCDSxDXNuYDgOOJ7zliPIZfkq5JnNh6KWVS1CmYCYPVCtVx4TYzcu6RCQD42EguWZE5f9CmI6x6MhX173eOLKj0EB1PLSRfMJG3VAUrzzDSKuvy++tFfO08bkHmeF69c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761330300; c=relaxed/simple; bh=KkEXNeFNONC4/6eH/vlbfMozECHHHd8MRFjwl5bknp0=; h=Date:From:To:CC:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=uxGQxqaCch8l9ZzfaTDX0gMBIu5+VvchvBh7ZgrR6Bk+VduGeRzqLqlUBhLVEzq0/XOMwTYKF0g2inehugcvA0CTfcHOxSjMM9HPDRxJBGQwtPcfJc3KBeLBPQpunN4zzcUBpO6qGDtwofGC06Hw/PxoGQN8CB7Y26ujso+UuSo= 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 ESMTP id 4ctWSb3pGKz6GDFr; Sat, 25 Oct 2025 02:21:35 +0800 (CST) Received: from dubpeml100005.china.huawei.com (unknown [7.214.146.113]) by mail.maildlp.com (Postfix) with ESMTPS id 765B3140276; Sat, 25 Oct 2025 02:24:54 +0800 (CST) Received: from localhost (10.203.177.15) 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.11; Fri, 24 Oct 2025 19:24:53 +0100 Date: Fri, 24 Oct 2025 19:24:51 +0100 From: Jonathan Cameron To: James Morse CC: , , , D Scott Phillips OS , , , , , , Jamie Iles , Xin Hao , , , , David Hildenbrand , Dave Martin , Koba Ko , Shanker Donthineni , , , Rob Herring , Rohit Mathew , "Rafael Wysocki" , Len Brown , Lorenzo Pieralisi , Hanjun Guo , Sudeep Holla , Catalin Marinas , "Will Deacon" , Greg Kroah-Hartman , Danilo Krummrich , Jeremy Linton , Gavin Shan , Ben Horgan Subject: Re: [PATCH v3 25/29] arm_mpam: Probe for long/lwd mbwu counters Message-ID: <20251024192451.00007ffb@huawei.com> In-Reply-To: <20251017185645.26604-26-james.morse@arm.com> References: <20251017185645.26604-1-james.morse@arm.com> <20251017185645.26604-26-james.morse@arm.com> X-Mailer: Claws Mail 4.3.0 (GTK 3.24.42; x86_64-w64-mingw32) Precedence: bulk X-Mailing-List: linux-acpi@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: lhrpeml500011.china.huawei.com (7.191.174.215) To dubpeml100005.china.huawei.com (7.214.146.113) On Fri, 17 Oct 2025 18:56:41 +0000 James Morse wrote: > From: Rohit Mathew > > mpam v0.1 and versions above v1.0 support optional long counter for > memory bandwidth monitoring. The MPAMF_MBWUMON_IDR register has fields > indicating support for long counters. > > Probe these feature bits. > > The mpam_feat_msmon_mbwu feature is used to indicate that bandwidth > monitors are supported, instead of muddling this with which size of > bandwidth monitors, add an explicit 31 bit counter feature. > > Signed-off-by: Rohit Mathew > [ morse: Added 31bit counter feature to simplify later logic ] > Signed-off-by: James Morse > Reviewed-by: Ben Horgan > Tested-by: Fenghua Yu With or without the change Ben suggested. Reviewed-by: Jonathan Cameron