Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp172983pxx; Wed, 28 Oct 2020 01:33:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzPHATrTi1A1zjttJk06hrR8Yx6UZots9CePMvLHc7FeOf4BSENVsRkBSRHLeS3nBzfP77i X-Received: by 2002:a17:906:39ce:: with SMTP id i14mr6713392eje.170.1603874033717; Wed, 28 Oct 2020 01:33:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603874033; cv=none; d=google.com; s=arc-20160816; b=fVCiQLquJDMfUWYGKE5QQGkO/1x9Vyl/j/RkeiW6QgGt9ElfEx8gzv6bRxRF933SFL KQ6p6f+UF8SWwaospgvkiw7it4Xvi+GI5JI7YDdRekn8SkqGzfYRnxjqGbLnFrTEH4cG GuhMgvo/V3eW/nM2BjC5ZYgp2N7KdmioUy8YXTir7ndSRYpvvik7RkSzW9HR0oLn1DDB UsLaV3FDNq6n6PeHxEQjIIT8yF20W5wV3kZAZozYGbUZPj6daXQxy1Hq+Ifibt0BNx/z MR/RhA0VC0TLhB3O95hhE69/bNhRiikQERUVJnRSLGG6ROvvgLhuL+ZVjhrGnKLZhl90 pMvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=wjEiATHHySpWrWHRGlI4vMYYBt4/Ph9TSjelsnU8d80=; b=bLLdkgRFsh5OFLtbbqdMKqJ2t98+xtDfzrhEHgA1QpjgAbe/oK0BZqP0jEihgCQHG+ W27HGtYCVwkACOKr5J6CcqXK//KxM+3VwmopeXQ8iF9YBdfFq1btGsCQoNTWzQ0JWZyd xDs6hNUJoBhDTnQq1v5DcrXOZTT/ukvybNwOBZGPUbDonUlavwTUDM2bCVyrpJ9I8jrb zx3w0tdUa+cdI2L1aLEp2yD7afYBK7y2aLbBuJEY5uSzHE3kgkveLKw3G+N1yiBNqH3c A2N6jkYXltEecG2Rp3xRSBD8ZRRFyOYLJx3AvQpb2rZr5DE+J7vOGU6e8qqEE8UCki6L 9wcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WL2mp+Zc; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s16si2897729edy.300.2020.10.28.01.33.31; Wed, 28 Oct 2020 01:33:53 -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=@kernel.org header.s=default header.b=WL2mp+Zc; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2444551AbgJ0OGH (ORCPT + 99 others); Tue, 27 Oct 2020 10:06:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:54430 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754586AbgJ0OGE (ORCPT ); Tue, 27 Oct 2020 10:06:04 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (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 C04AC2222C; Tue, 27 Oct 2020 14:06:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603807564; bh=9Dev9nROaX/NYcBY9A88AS44zW8/ElrLqeyi6KnfADI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WL2mp+Zc4ad02duTZemPQ2DgWI7X7Of9MAGjWHhFnxKPwTHgeDQLz0JKc/OYwSwqo qnikly3cDhEienFqH1PTibfZOVZYO0apEzC7AYyxxYrVOX2/3lO8SXhs/Vj/fq55xD TZ75PNWeKVUJNW/lE+OFniUCEKBHSv2CbVPl3PGk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Lijun Ou , Jason Gunthorpe , Sasha Levin Subject: [PATCH 4.9 068/139] RDMA/hns: Set the unsupported wr opcode Date: Tue, 27 Oct 2020 14:49:22 +0100 Message-Id: <20201027134905.347564384@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027134902.130312227@linuxfoundation.org> References: <20201027134902.130312227@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Lijun Ou [ Upstream commit 22d3e1ed2cc837af87f76c3c8a4ccf4455e225c5 ] hip06 does not support IB_WR_LOCAL_INV, so the ps_opcode should be set to an invalid value instead of being left uninitialized. Fixes: 9a4435375cd1 ("IB/hns: Add driver files for hns RoCE driver") Fixes: a2f3d4479fe9 ("RDMA/hns: Avoid unncessary initialization") Link: https://lore.kernel.org/r/1600350615-115217-1-git-send-email-oulijun@huawei.com Signed-off-by: Lijun Ou Signed-off-by: Jason Gunthorpe Signed-off-by: Sasha Levin --- drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/infiniband/hw/hns/hns_roce_hw_v1.c b/drivers/infiniband/hw/hns/hns_roce_hw_v1.c index 20ec34761b39b..29cd059c01f1c 100644 --- a/drivers/infiniband/hw/hns/hns_roce_hw_v1.c +++ b/drivers/infiniband/hw/hns/hns_roce_hw_v1.c @@ -231,7 +231,6 @@ int hns_roce_v1_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr, ps_opcode = HNS_ROCE_WQE_OPCODE_SEND; break; case IB_WR_LOCAL_INV: - break; case IB_WR_ATOMIC_CMP_AND_SWP: case IB_WR_ATOMIC_FETCH_AND_ADD: case IB_WR_LSO: -- 2.25.1