Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2236154ybi; Thu, 20 Jun 2019 11:21:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqza7JUQ83Wp/8gnRrC8rl05oQDu0/ULPZrQ6vHAZaVo4+UmhbErJEf1nvdIfgo7ZffHlGme X-Received: by 2002:a63:18d:: with SMTP id 135mr2305136pgb.62.1561054886308; Thu, 20 Jun 2019 11:21:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561054886; cv=none; d=google.com; s=arc-20160816; b=NEwx19vGLpcCayR/IVDfTH39EGDh/w2ZHYnviKWP4jLiInG0X07FoU2Zu1sSSh5r5j wMg+osa+rHpeJeg/pFnR3S7ppsra0/eJA1pLf9s6GFzRjkeziXkklSND6Y1pPLFCrwHA knkIUjSU8cX7kz1hsYW7A4dMNiYTRdK/pv6AkrbQhJScmJeoJaXhCAuepA0/nhoItB2F uq8WUGgwsaALOh278iHaspdnih8c64krRbmTw/XEllEncYPrB1XoqXn5OZDsZu1cXv3R 7+hAs2vNrDBRfrqXw6YLjKdJWIk3Oxguuh42R+oIDH3u+3D3+2yqvQhd05zJT0/80R5W JNGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=l/lOF7R4JWK/BA6oIrk9okL45/jAjGsr+26mOWoIWpc=; b=zEWo7ilKcDueB0xRUFLoYfZINiR7yjlv98ZtP013tSn1DONRBQSdrvQrxgrPkLGk0Y d7qJnCzymL1Ki0yvey8pvEmGztuiN0HeeDjNXoilvaDTlnalsdY4LiBXN53ALVl+ztux ZS4q5KO94QeCjhPla2Vr/COtIt1sz6InytPb0HqgXuOFaPndxDL7XlKtaPPaxnymucJ/ ALOP/ZqGoxP+Qkx4qtM73WXX6KunZadvpyaQVS/WcAul+lOM48f+bw/mr0pWugrep8cG qpXEewLypCZ3p6dLxjcSSBkHKAxJFDa1BSaWsyKElAtNR1RTfK69fOdMVYSiehsw3VP7 Lngg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=yudL3FOm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 64si365721pld.334.2019.06.20.11.21.10; Thu, 20 Jun 2019 11:21:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=yudL3FOm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729036AbfFTSNn (ORCPT + 99 others); Thu, 20 Jun 2019 14:13:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:41666 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729304AbfFTSNk (ORCPT ); Thu, 20 Jun 2019 14:13:40 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8AFBC2082C; Thu, 20 Jun 2019 18:13:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1561054420; bh=SuB4i8h8ITu7QQYW79zXbx7bSl6XPA+HOjxhxQW3ndI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yudL3FOm0AGdwJvn47ya50ALOfdw/KIh6KDS5qKYSFDmCjO/LBVZIZWowV53PCv7G 57NRHhQOPDVfNW9Z/sd/NpTtNL+s/IYbbxckdjR9nRg4XBebOcqxBAbYk/4Vavx1dW VAM5aOdTCYs5H3LW/s4uSU+2r+14j63oV58wySec= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Edward Srouji , Saeed Mahameed Subject: [PATCH 5.1 23/98] net/mlx5: Update pci error handler entries and command translation Date: Thu, 20 Jun 2019 19:56:50 +0200 Message-Id: <20190620174350.244446896@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190620174349.443386789@linuxfoundation.org> References: <20190620174349.443386789@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Edward Srouji Add missing entries for create/destroy UCTX and UMEM commands. This could get us wrong "unknown FW command" error in flows where we unbind the device or reset the driver. Also the translation of these commands from opcodes to string was missing. Fixes: 6e3722baac04 ("IB/mlx5: Use the correct commands for UMEM and UCTX allocation") Signed-off-by: Edward Srouji Signed-off-by: Saeed Mahameed Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/mellanox/mlx5/core/cmd.c | 8 ++++++++ 1 file changed, 8 insertions(+) --- a/drivers/net/ethernet/mellanox/mlx5/core/cmd.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/cmd.c @@ -441,6 +441,10 @@ static int mlx5_internal_err_ret_value(s case MLX5_CMD_OP_CREATE_GENERAL_OBJECT: case MLX5_CMD_OP_MODIFY_GENERAL_OBJECT: case MLX5_CMD_OP_QUERY_GENERAL_OBJECT: + case MLX5_CMD_OP_CREATE_UCTX: + case MLX5_CMD_OP_DESTROY_UCTX: + case MLX5_CMD_OP_CREATE_UMEM: + case MLX5_CMD_OP_DESTROY_UMEM: case MLX5_CMD_OP_ALLOC_MEMIC: *status = MLX5_DRIVER_STATUS_ABORTED; *synd = MLX5_DRIVER_SYND; @@ -629,6 +633,10 @@ const char *mlx5_command_str(int command MLX5_COMMAND_STR_CASE(ALLOC_MEMIC); MLX5_COMMAND_STR_CASE(DEALLOC_MEMIC); MLX5_COMMAND_STR_CASE(QUERY_HOST_PARAMS); + MLX5_COMMAND_STR_CASE(CREATE_UCTX); + MLX5_COMMAND_STR_CASE(DESTROY_UCTX); + MLX5_COMMAND_STR_CASE(CREATE_UMEM); + MLX5_COMMAND_STR_CASE(DESTROY_UMEM); default: return "unknown command opcode"; } }