From patchwork Mon Jul 22 04:01:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zeng Heng X-Patchwork-Id: 13738242 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E5EDAC3DA59 for ; Mon, 22 Jul 2024 04:07:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:CC:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=w6Y5u7sGispy7xEVpeyNLqDJqK+oZGzM+39aAeJ6PVA=; b=h6gy4vOjbHyS4bXFxqNdd8k4/H LcemdxnZAILVzhzH5AM1WAXheZbOPLnreMCfjVeWpG4UYzocJsq2dcLa/XxAI4xjeWCEUqHp8/tLG TPFu6kjgUbYWAAUIKZd5IEg3/9hWrY3o3EyZkt5AEhj0dRNHA1ifaMUsS4b9ciMzCz/pb8GNwy24P KYv+eAEr0aDIJvYq09EkFKLda2s2bzzkBJSMHK4o3flhanNzpji/bKzxVnqssFTF/gz3tSBFdthrZ s2f9P6iPiS78DQRYiRN2QjoIQnkW5vq6prtTkG/QhgRam9OmMZaOZKfI0xmlEbq0gJ1jvriuK73Js e5vxPIxw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sVkKK-00000008HHd-0PsX; Mon, 22 Jul 2024 04:07:08 +0000 Received: from szxga03-in.huawei.com ([45.249.212.189]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sVkJ2-00000008Gmk-2e3u for linux-arm-kernel@lists.infradead.org; Mon, 22 Jul 2024 04:05:50 +0000 Received: from mail.maildlp.com (unknown [172.19.163.252]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4WS65r0m15zQmZg; Mon, 22 Jul 2024 12:01:20 +0800 (CST) Received: from kwepemf100008.china.huawei.com (unknown [7.202.181.222]) by mail.maildlp.com (Postfix) with ESMTPS id C87A41800A2; Mon, 22 Jul 2024 12:05:28 +0800 (CST) Received: from huawei.com (10.175.103.91) by kwepemf100008.china.huawei.com (7.202.181.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Mon, 22 Jul 2024 12:05:27 +0800 From: Zeng Heng To: , , , CC: , , , Subject: [PATCH mpam/v6.10-rc1 RFC 0/4] arm_mpam: Fix several minor issues Date: Mon, 22 Jul 2024 12:01:17 +0800 Message-ID: <20240722040121.515021-1-zengheng4@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [10.175.103.91] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To kwepemf100008.china.huawei.com (7.202.181.222) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240721_210548_882326_FC9CA9A6 X-CRM114-Status: UNSURE ( 7.74 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org After completing the necessary software adaptation for the local chipset, the MPAM function is successfully enabled. After related tests are completed, some issues were discovered and here attempt to fix them. Hope to get some suggestions for modifications, if I miss any rules should be followed, please let me know. Zeng Heng (4): arm_mpam: Correct MBA granularity calculation arm_mpam: Fix the range calculation of the implemented bits arm_mpam: Correct the judgment condition of the CMAX feature arm_mpam: Fix typo about mbw_min controls drivers/platform/arm64/mpam/mpam_devices.c | 8 +++++--- drivers/platform/arm64/mpam/mpam_internal.h | 1 + drivers/platform/arm64/mpam/mpam_resctrl.c | 4 ++-- 3 files changed, 8 insertions(+), 5 deletions(-) --- 2.25.1