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 3E96443D51; Tue, 26 Mar 2024 13:57:49 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B246A410D5; Tue, 26 Mar 2024 13:57:28 +0100 (CET) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2043.outbound.protection.outlook.com [40.107.94.43]) by mails.dpdk.org (Postfix) with ESMTP id 3DC1140ED1; Tue, 26 Mar 2024 13:57:22 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=X/j80vUp/axWYvJKJ8/NFb9FwNGsToXdUMqKpSR85sinC641L+zZMrRoTuS/pag2J7964pBPfw6szF+fNsNxlFPQP774I8OIZWSAXvKiJ1d9qpVCQ5mNM1q0n+6ORkq1v8M+8lCEraMjW015ub9iUkff7ChAlbGoe2LuTXAwqv5dGBoSxKk7TzpKq14Xm1ip+Z+BWFalz7HLk5hYva8DLkpWSVsEa6BofMYsKgENyV0NBvOkd3NIS09eKojM96ioTxjVUb2SNGnk8wow8m/m5E6W7UnvMLcyDmDulzZW+oOBeTfhBtleRLIYaP459aaxaX4Fih4oFdo0xau+FZ4J5Q== 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=80os0U90XmUqynG7ZB7T5YeUoEpFWtUMTRoU6jtjkP8=; b=MEYJna8QZoRHmTASD0wk2Jc6cWAEIDzo+dLPJ9kLLn2zURFbb339wn87swXbZmYxfLK6+onAu+OLBIn7+WKo4iPgN9X5hGsISccxT+yG85fl151DLNwvgrzbUlq/eSo6EGKMUrqB7+SNaxbtdt5p0hvVuyfDYmNN0Iv+2r+EjUawNjpyXdi2qh/dEdXvivVrporeYD/PwF88zWOBOd+z3Afpf50lr6WU7ZT5JN3RRpXKJJ5Ra689fFECRUguVCDsfc5hK7okmXXgNJzYNkJgJvBS8m0VhPvEGmCZ1GLLgRlI/xdL5+oc09u4FwUpuGVmX4ljlUX8dpxBdJxVQnl3Iw== 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=80os0U90XmUqynG7ZB7T5YeUoEpFWtUMTRoU6jtjkP8=; b=oQ473s8AavhDJxqzOyeWE0uw0DILtfEMsSRKG75zvgrIfskuQOMt8oOSZUSrZEjJ1ufEpf9QJeGe6lHj5OQW6HGLqb0swlf28t62Nt212tIsWr8at+XfZnsAr/LDiC81cFQ6+Zhz+ng+eHuG2wzr71JW4H4bqDHp8XcK2UjWNrs= Received: from DM6PR18CA0016.namprd18.prod.outlook.com (2603:10b6:5:15b::29) by SN7PR12MB7854.namprd12.prod.outlook.com (2603:10b6:806:32b::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.26; Tue, 26 Mar 2024 12:57:13 +0000 Received: from DS2PEPF00003445.namprd04.prod.outlook.com (2603:10b6:5:15b:cafe::a) by DM6PR18CA0016.outlook.office365.com (2603:10b6:5:15b::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.13 via Frontend Transport; Tue, 26 Mar 2024 12:57:13 +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 DS2PEPF00003445.mail.protection.outlook.com (10.167.17.72) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7409.10 via Frontend Transport; Tue, 26 Mar 2024 12:57:13 +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; Tue, 26 Mar 2024 07:57:05 -0500 From: Sivaprasad Tummala To: , , , , , , , , , , CC: , , Subject: [PATCH v7 10/14] examples/vm_power_manager: fix lcore ID restriction Date: Tue, 26 Mar 2024 13:55:49 +0100 Message-ID: <20240326125554.138840-11-sivaprasad.tummala@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240326125554.138840-1-sivaprasad.tummala@amd.com> References: <20240321184721.69040-1-sivaprasad.tummala@amd.com> <20240326125554.138840-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: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS2PEPF00003445:EE_|SN7PR12MB7854:EE_ X-MS-Office365-Filtering-Correlation-Id: e07e28a8-4062-4dca-7f8b-08dc4d944214 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: CUpHguxQc+lMaS1J5vpynDUBqfTnbpYltsOFgVAxhvbxkMCehWFsEYQigHXvGsg8/KTtNhq6kLQ1uYz512IETgBlTKCgkSg5Cjm7hZiugheDC8HAWNVYZmyk/zDEDs6S+Ls4i39nXMo10bNXeVwa5WDWPwgGBkmFthqqMrsvvZ4XtpvIcFjMsdDVRZ2oHA9g6MbFcXS6ISeKx0168cIGUcZiOuHFSBfWur7lDnD1mqFcely9WdjlHrO5QU2CGobyVspWUQ+BtRej452OpHrreEuLQtXu4dhTwuFu2JbNir34cEGPJQfwPDuUJFC6aqaOxTdfd/aQ7EcdMIYBSyuFgUZbhvQbTMYGk4FaXvnJNT5z2MsgHC/unNftX7OxLB0YQyflDEUQqQgC0kWfV9Waqb1b8TK+WCW7g2oJi4B/eapY0uOPnq16ollt7SH5plgA9R6JZ9tp62i72lkHgza428bjSZX3/qWs+GaMP0RbhSXuWK72Ao2KSy4+/hpCEvC1rq79GgOPhA9W4Z5DMwFxrMtVMVpFkFHcKeRRj4zeePPPVJ3VzGqtDa2ZF4wqXQTdFoGxz94MVsBeEWLhYrcKePGIf58saASKeH9BJ/XHP256OyHZnZtxcht6pxtNq+SXaIbWql8RQOe1dgcy79YNuvFJM1yl3l2jL5EftXdPo4xDgqCdqASftF5STYRN6vl83xWDng3xvwpCn3MZOrggEl3j6oae+07cmpyJPl9GXtoE7dv/BboMoSTT8sTPBpuK2iueFyIvagDXdbgaC2SPgQ== 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)(7416005)(1800799015)(376005)(82310400014)(36860700004)(921011); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Mar 2024 12:57:13.7968 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e07e28a8-4062-4dca-7f8b-08dc4d944214 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: DS2PEPF00003445.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR12MB7854 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-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.25.1