From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6770943D0F for ; Thu, 21 Mar 2024 19:48:57 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 131E442EB6; Thu, 21 Mar 2024 19:48:56 +0100 (CET) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2074.outbound.protection.outlook.com [40.107.93.74]) by mails.dpdk.org (Postfix) with ESMTP id 5BE0C42E5F; Thu, 21 Mar 2024 19:48:54 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aHOrInAkThexBD5UnQB2OwW/k/Scz4TL1uFrrmFP1wlPvYOjwXuGeXIz13iXyFgCEbIc+M5LCvZFq2oZdUDsTfgZnmjIdGINVFKRcQaiF3pz+qoXv1DQ57vG/OAXngsdGE1JhDt6v9KpMc42aZtKyVEdhVZUdNy5hbkHFhjw17Kz0k9hHFSVS0QTUTJUH9CAhDf6J5KAoFEyh3g0iOkpyfURSKPiMRInYOOuBxA+Of6shirqj1XVVdOz7Rk5WEKjAoJWn89DqK19GYUnWCBYKixaEK+hB7xyr5Cn++U4LHOgYriIhWa4kmY0zRJq8lJZfZUZGt5YaZpp6/LqTbfieQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=wUgrGQJdcjiMgAPRrjFfeqR51WHyd4QzgQccekPXka8=; b=ic/MgLoTjQQmlJeQY+hxKmzeXd/l++OphFEFMl5++2OkvN4Ll8nhLw7G6AMwSPabFMWA0bSDmfpBfRHSt1OC9xae5w4vizXfN06J550eAH0sVl02v9H8n3f80/d3mYQbX+oiBOqhxXsxHPwx9PzTtwVRrTMTlU+kldLle39trYerDBxtato5a340BBwErYBseQp/pQuK2OA0yHY8Auc83wBuOqP6kGVTMObvmOr/ZOQEYkbX6MKCnkrZPLDCKt+TolOO1+aMKk/Hc/RBTqmuxKDnVhxWIyOK7On9VlBqg+WY1HHxvQsuNfRBiuBhSnrdS1U8tKBDW9+HEu7YPaxGVA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=intel.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wUgrGQJdcjiMgAPRrjFfeqR51WHyd4QzgQccekPXka8=; b=saXLlynmQS3mu9/hBT4oaIJfyCUKerq1ie14tJaUjiQ/It7X4G5Vm8jV/0SrAjhCS2Lpv4q4DyimMFFpEzgzV0tEs7nOep9oGtcb8H60Cl05rwku4Qz6ZJU8cf7BYT3eb9/DdZ2/He0eRg2bejignr1INoLVB6ydCVB1AyIuj1Y= Received: from MN2PR08CA0006.namprd08.prod.outlook.com (2603:10b6:208:239::11) by DS7PR12MB5983.namprd12.prod.outlook.com (2603:10b6:8:7e::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.34; Thu, 21 Mar 2024 18:48:51 +0000 Received: from BL6PEPF0001AB73.namprd02.prod.outlook.com (2603:10b6:208:239:cafe::4b) by MN2PR08CA0006.outlook.office365.com (2603:10b6:208:239::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.27 via Frontend Transport; Thu, 21 Mar 2024 18:48:51 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by BL6PEPF0001AB73.mail.protection.outlook.com (10.167.242.166) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7409.10 via Frontend Transport; Thu, 21 Mar 2024 18:48:51 +0000 Received: from ubuntu2004.linuxvmimages.local (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Thu, 21 Mar 2024 13:48:47 -0500 From: Sivaprasad Tummala To: , , , , , , , , , , CC: , , Subject: [PATCH v6 10/14] examples/vm_power_manager: fix lcore ID restriction Date: Thu, 21 Mar 2024 19:47:16 +0100 Message-ID: <20240321184721.69040-11-sivaprasad.tummala@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240321184721.69040-1-sivaprasad.tummala@amd.com> References: <20240318173146.24303-1-sivaprasad.tummala@amd.com> <20240321184721.69040-1-sivaprasad.tummala@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL6PEPF0001AB73:EE_|DS7PR12MB5983:EE_ X-MS-Office365-Filtering-Correlation-Id: 999c9575-c71b-4f13-307d-08dc49d78d50 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: vcAc/uHd+qvDdODPfm1Aq8D10HWN6GxY8DKRGwTWdet/jfYGZs4fzsvrg4FWzKjWHXe+4kiNdRk9386z+uRb2x43VNprHYW1Xd3Xt0lFJGIAGc0Y49M1h0FEvCoyKRHvCX4G303NSnKJi2sYYCSlbz7Rb42HzcbUZa7ipi4TnF62fY4D2/aH6OEwKTgDFKiFiwiLKsGF1MDng/2otQnp/qR7nwsIM27pd7TRo4qg1binWaFtqeYT34omAZpfaXjxjQ5iHr0qqtFlferf5hKmeeb/cjb9F/H5uF0ogabhaosxCjW8snw38anFJjR1yByQs/kKU4DNaW+Y3Mi2MBuWuqSZZ+XBeWRjFCPdizB+rGri6hgfzJ57BkURpNLKmrb5f85tGhHmGeVbheB+nuE8alhPhwed8G/GY6mLJvLKfh/VUkIcGbA/6IRT9GFmSQPKihP0M4CPmLu4ZgCuXs2QQqzQMCqj3M2DL4e2l2w0DOJAc45vEWGQrNeNwgWf9QsGJD66Tg/W3/tLAqUOIQWfRiOcEfKTdQdGqEWAFWNh6YqRe4vGH4BzTvFgVVbsYLKi83yi8tUfP4M8iTJaF0fE90i+dDjKLSW2zTmN1iYLJdG3jpLC2M3sh5VetDPn46dlYeNA5Q3gGPZchYmKznvP5QNhWCyZ8mmLh91qjmQRtjsTfm5Sp6d9qfce2scldLlQYX6FUxXgSg1IcfojPDRDVhri8EWzv2TEpVgIaeLuSpvc6RiKKSGULHHS87j9s3T7k6RkxAoxZBMXXQeGhY1+jA== X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB04.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230031)(82310400014)(36860700004)(376005)(7416005)(1800799015)(921011); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Mar 2024 18:48:51.6313 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 999c9575-c71b-4f13-307d-08dc49d78d50 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BL6PEPF0001AB73.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR12MB5983 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Currently the config option allows lcore IDs up to 255, irrespective of RTE_MAX_LCORES and needs to be fixed. The patch fixes these constraints by allowing all lcore IDs up to RTE_MAX_LCORES. Also the queue IDs are increased to support up to 65535. Fixes: 0e8f47491f09 ("examples/vm_power: add command to query CPU frequency") Cc: marcinx.hajkowski@intel.com Cc: stable@dpdk.org Signed-off-by: Sivaprasad Tummala Acked-by: Morten Brørup Acked-by: Ferruh Yigit --- examples/vm_power_manager/guest_cli/vm_power_cli_guest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/vm_power_manager/guest_cli/vm_power_cli_guest.c b/examples/vm_power_manager/guest_cli/vm_power_cli_guest.c index 94bfbbaf78..5eddb47847 100644 --- a/examples/vm_power_manager/guest_cli/vm_power_cli_guest.c +++ b/examples/vm_power_manager/guest_cli/vm_power_cli_guest.c @@ -401,7 +401,7 @@ check_response_cmd(unsigned int lcore_id, int *result) struct cmd_set_cpu_freq_result { cmdline_fixed_string_t set_cpu_freq; - uint8_t lcore_id; + uint32_t lcore_id; cmdline_fixed_string_t cmd; }; @@ -444,7 +444,7 @@ cmdline_parse_token_string_t cmd_set_cpu_freq = set_cpu_freq, "set_cpu_freq"); cmdline_parse_token_num_t cmd_set_cpu_freq_core_num = TOKEN_NUM_INITIALIZER(struct cmd_set_cpu_freq_result, - lcore_id, RTE_UINT8); + lcore_id, RTE_UINT32); cmdline_parse_token_string_t cmd_set_cpu_freq_cmd_cmd = TOKEN_STRING_INITIALIZER(struct cmd_set_cpu_freq_result, cmd, "up#down#min#max#enable_turbo#disable_turbo"); -- 2.34.1