Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1228653pxb; Thu, 23 Sep 2021 22:53:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyh0cmE+z8NIjWEqk5nkjA6Rn0F9babLtn04jFxip5hdv+T6dPohat1YIfdqNq9XUXlSWnY X-Received: by 2002:a05:6402:1cb9:: with SMTP id cz25mr3069338edb.364.1632462807906; Thu, 23 Sep 2021 22:53:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1632462807; cv=pass; d=google.com; s=arc-20160816; b=OJBVqHT3sWT/wePEczqtqH9OWsLJLeZ48dT25cU/7XkTlzoDDIB3m2ne6rkWM6qles 6yBJEGHbnosbLjYlf+DS0zIQXUOtG8ohanwqPW2vlmCJfVNvYslZHe2ndGikeRpnivMg 9mFQ6xZw1CKHUWkjleXBBp4VbOUxxNnsevt86WW9I7e6vH20+s8FfNiOiwZoIy/vmk8A vnOkCHD3ihavE0I1RDb9NKeFNJ8cXBxqANYi6XD+C01h8CIRo/UptnzTi7QxBXNpLiH9 Qcoy5TGvx8crMocyJMFXisk2fZfvetbY84pAb1f4zXqRxe8czESLXFSaeyxDwd6zK940 Xw1Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=HtCtGjpvoqhvnVevPhb0a6ckdCdbFOIhRfoZZtXq74s=; b=h15BsNAZsmZ3Grlp7mWghkDgh6DGnGDZ+H2ZXJrrcGX+wbbksDBwrcd/sv90Pp5iXT KY4lDWe4o+1Mn4p21IB1a8aT+CH56nbxH1IBwqUM4QEdalgK9n/iPM1hHYDW/yy2jcz6 B5sWW5PJjrFJTaEJ2RK+y4xlOxVJxsprlHq/VsBESC4YbAjeSLM4Win9Qb6fuGoGpr0x kBcIMn5BxTg/EvNoEkbTtMqqJVFv5mbFmYxq8J0/kIEskK6U77FurcXLTtCHnuMhzCZS LBu2FNxIKl4bafFmXswUvQ4Cp2nUL9gPjmEXhIEcznYUWflIRklLjbOjhjWoOBO/sW4L k4YA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=PqPBKiNS; arc=pass (i=1 spf=pass spfdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m20si8324189edq.301.2021.09.23.22.53.04; Thu, 23 Sep 2021 22:53:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=PqPBKiNS; arc=pass (i=1 spf=pass spfdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244143AbhIXFuL (ORCPT + 99 others); Fri, 24 Sep 2021 01:50:11 -0400 Received: from mail-dm6nam11on2071.outbound.protection.outlook.com ([40.107.223.71]:58625 "EHLO NAM11-DM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229727AbhIXFuK (ORCPT ); Fri, 24 Sep 2021 01:50:10 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=URklQYXHgCGwdRZoIiZHy9r8/qxHMv+zQ1HEzZApAZxVA3Dv2bmV8gwUp/0jUg9S2H2iVIR6lnQa/cmIz/Q077+3Dvf+U6tiZhldHeH5uvFlxCDb8tPo/ivdTND1gTg4OplOgwixOZKK3/wxII+Xy5eMFTbQwX2CuJvVxwxgeFk5moQwl/e5R1YUNC1pt8rja/xkd0mzhCTj09vg7q+oGyg48S1kqh6ETuZtt+xjaMhvD2qNjzl+SuzTZXNjv7QxYyrnlTX7X8gr6EGnmts6jC2FrZXysLcGDEr31OcWCfX6IZZ7t4BSoKsf21uyAqBejBEHJ/5bl34Nx4Vc0XJ2uw== 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; bh=HtCtGjpvoqhvnVevPhb0a6ckdCdbFOIhRfoZZtXq74s=; b=PXkRk4zjLECPqoorVCzur/N598a535K6kuswINTCFDbtSETDL6M7UyRug8w3l3nDJwI3DI95RWftziRaIDnZTDDNbexnionfMtxJbU7X+JJTjk8JtLxmMJJAqsLy1rPZdbscLsNnIer25J8murijnIruDuugCZ7E1t+vna3BVzv1pAuSpVP8G17BJzW9NYuf9yIU/5lFf7DsoFVipjOJ2SwU6OHCjfcekwQou5jYqakJepHX0+TO8k+s45XUfanQZw+fYmHRgKhhgH+WJcSKVQi2Z2Zt4hS4yGOvTArNJ4HArC5MneoCkImh2eTXk8Vs0kBJDz4SEiEMOelHPW6akw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.32) smtp.rcpttodomain=vger.kernel.org smtp.mailfrom=nvidia.com; dmarc=pass (p=quarantine sp=none pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HtCtGjpvoqhvnVevPhb0a6ckdCdbFOIhRfoZZtXq74s=; b=PqPBKiNSk/bpWRCznbcvGesE+qTEzFfczpTpFd6stYRHWcQwPB5mPuWpBQ+B3TZ789gnjSGIpvudtB4NyIVF3Sjz7j+wnM3/hywDswqpa3R2TQ6KMY2CwmO8b1lc6lLaVWFL7l4SK4EmuiRHj2UBZtelsx4CkHoC86tq2L6mYBrJCEYtsqOrLvE5kLFD9Nrxf/rAeFnnHhtPh6wSqfIWfaaTUrvYhJAI9z1/avBxi1tPe/xlcZJ4BcOz8cg1pSl3qv26ekO/iS8fkT/JkGG539aSSlNJmqG7yrN8VRe6HycmrhGAfsx0Cfsqr+U6iO0oIA/Fwi39+ERxgTZeEP65Zg== Received: from BN9PR03CA0408.namprd03.prod.outlook.com (2603:10b6:408:111::23) by DM8PR12MB5464.namprd12.prod.outlook.com (2603:10b6:8:3d::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.13; Fri, 24 Sep 2021 05:48:35 +0000 Received: from BN8NAM11FT048.eop-nam11.prod.protection.outlook.com (2603:10b6:408:111:cafe::6d) by BN9PR03CA0408.outlook.office365.com (2603:10b6:408:111::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.13 via Frontend Transport; Fri, 24 Sep 2021 05:48:35 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.32) smtp.mailfrom=nvidia.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.32 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.32; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.32) by BN8NAM11FT048.mail.protection.outlook.com (10.13.177.117) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4544.13 via Frontend Transport; Fri, 24 Sep 2021 05:48:34 +0000 Received: from DRHQMAIL107.nvidia.com (10.27.9.16) by HQMAIL109.nvidia.com (172.20.187.15) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Thu, 23 Sep 2021 22:48:33 -0700 Received: from [172.27.4.177] (172.20.187.5) by DRHQMAIL107.nvidia.com (10.27.9.16) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Fri, 24 Sep 2021 05:48:30 +0000 Subject: Re: [PATCH mlx5-next 4/7] net/mlx5: Introduce migration bits and structures To: Leon Romanovsky , Doug Ledford , Jason Gunthorpe CC: Yishai Hadas , Alex Williamson , Bjorn Helgaas , "Jakub Kicinski" , Kirti Wankhede , , , , , , Saeed Mahameed References: From: Mark Zhang Message-ID: <77a12336-ec18-2791-b7b1-744a44eb2e72@nvidia.com> Date: Fri, 24 Sep 2021 13:48:27 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [172.20.187.5] X-ClientProxiedBy: HQMAIL111.nvidia.com (172.20.187.18) To DRHQMAIL107.nvidia.com (10.27.9.16) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ecc9c766-8556-4edc-f10c-08d97f1ef2ea X-MS-TrafficTypeDiagnostic: DM8PR12MB5464: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3044; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 3B2ozKG32auxied2gVpjsg+z6n30AplYD/sTxQT0AOhopnvcXkqiZg5nbeJg8EUxdxpjU+poYL7p1GpZICnjqZQsZw86XPBJHw/8bNiAHEJqinlV6AU1HucJBpI2UwU0LmoxHIDzKclK1reoo2A0CwKhToZ3SazjVQGMZL0lIuu5zIZZJTXyQQgNV3eAIBOA91VBbIKJKyWFNhRGbLsd1XNbuGupka3SpKedaHBkjsVuVOEv+Wt7jtP3rwrtqyFTcFftCuKLfdCNnEnULdeLDTSo9ex4ehzgKVbByjCdQGrjB8L0w3WIC9nXWAzuaeGBZ5IOSBMElB9o8ExER4Gc0cF5gfeoS1fYf4y2F1Jc/5aPaRfji628Jd9BPBx+aimnPd0HxaT6Uj1ANQnxwYdEjNu1pcYpfzTNkhf2ojEJQeCk0Y+2Tz4Z+uLr2861NqE5BXh32W4jtLJvovX6kWtsUZz8yn+lmkfSkXy9DHQd8eYKAn6zKzdqvRmSr/EretyAJNzj4W9C98AYcZx1URLyOPLByPid2rTd3Y2gaWU3l/016aufcUTFhXlKBNpeV0lOLti3X67dB9aUX69KjvQvMmPzHX4SBzK/D8+1boaHR68ssgc11xreSCZUUtoYAI7S1RzbtWS5dQFSq7B55NvI44fXHP7eGy2v1CLb39MxLnUb18h42QjnOBf9XQFMuFmNZ2xl/ZR8JvgNdcc2fu625iwKK7sYoHQR+Xn0ydhfH2U= X-Forefront-Antispam-Report: CIP:216.228.112.32;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:schybrid01.nvidia.com;CAT:NONE;SFS:(4636009)(36840700001)(46966006)(508600001)(16526019)(4326008)(26005)(186003)(8676002)(7416002)(86362001)(16576012)(36860700001)(5660300002)(6636002)(316002)(107886003)(82310400003)(426003)(6666004)(31696002)(2906002)(31686004)(54906003)(47076005)(53546011)(110136005)(2616005)(8936002)(356005)(36756003)(83380400001)(336012)(7636003)(70586007)(70206006)(43740500002);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Sep 2021 05:48:34.9116 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ecc9c766-8556-4edc-f10c-08d97f1ef2ea X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.112.32];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT048.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM8PR12MB5464 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/22/2021 6:38 PM, Leon Romanovsky wrote: > From: Yishai Hadas > > Introduce migration IFC related stuff to enable migration commands. > > Signed-off-by: Yishai Hadas > Signed-off-by: Leon Romanovsky > --- > include/linux/mlx5/mlx5_ifc.h | 145 +++++++++++++++++++++++++++++++++- > 1 file changed, 144 insertions(+), 1 deletion(-) > > diff --git a/include/linux/mlx5/mlx5_ifc.h b/include/linux/mlx5/mlx5_ifc.h > index d90a65b6824f..366c7b030eb7 100644 > --- a/include/linux/mlx5/mlx5_ifc.h > +++ b/include/linux/mlx5/mlx5_ifc.h > @@ -126,6 +126,11 @@ enum { > MLX5_CMD_OP_QUERY_SF_PARTITION = 0x111, > MLX5_CMD_OP_ALLOC_SF = 0x113, > MLX5_CMD_OP_DEALLOC_SF = 0x114, > + MLX5_CMD_OP_SUSPEND_VHCA = 0x115, > + MLX5_CMD_OP_RESUME_VHCA = 0x116, > + MLX5_CMD_OP_QUERY_VHCA_MIGRATION_STATE = 0x117, > + MLX5_CMD_OP_SAVE_VHCA_STATE = 0x118, > + MLX5_CMD_OP_LOAD_VHCA_STATE = 0x119, > MLX5_CMD_OP_CREATE_MKEY = 0x200, > MLX5_CMD_OP_QUERY_MKEY = 0x201, > MLX5_CMD_OP_DESTROY_MKEY = 0x202, > @@ -1719,7 +1724,9 @@ struct mlx5_ifc_cmd_hca_cap_bits { > u8 reserved_at_682[0x1]; > u8 log_max_sf[0x5]; > u8 apu[0x1]; > - u8 reserved_at_689[0x7]; > + u8 reserved_at_689[0x4]; > + u8 migration[0x1]; > + u8 reserved_at_68d[0x2]; Should it be "reserved_at_68e[0x2]"? > u8 log_min_sf_size[0x8]; > u8 max_num_sf_partitions[0x8]; >