From patchwork Mon Jul 4 06:00:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li Zhijian X-Patchwork-Id: 12904730 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id ED856C43334 for ; Mon, 4 Jul 2022 06:01:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229576AbiGDGBG (ORCPT ); Mon, 4 Jul 2022 02:01:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229499AbiGDGBE (ORCPT ); Mon, 4 Jul 2022 02:01:04 -0400 Received: from esa18.fujitsucc.c3s2.iphmx.com (esa18.fujitsucc.c3s2.iphmx.com [216.71.158.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6FCD863AE for ; Sun, 3 Jul 2022 23:01:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=fujitsu.com; i=@fujitsu.com; q=dns/txt; s=fj1; t=1656914464; x=1688450464; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=Zy8xOPZWZB1CbQUP5nX/vKzMxGjIoG2c0up/fy8cRw0=; b=loMBOZC6ntZkAmx17kZ+pd0eYnp2bMG4nd3YSAethJtK4ahp1qkqNaAd 9y6DweZ7lRL48IjzpUopgnCo0E6WFk4bASv+8kaYEGYXPEvPRiEl35gGr mO6FO6RtXv+4PpeRJzOpJFbeny4yFMPZWgg9Ld4BDNIe1C1cAS52s56Yo ci/GsVXo1FE2xdXP7uBSWm79WHumCubmB104xbXh2zemDriphnKyJl30s F7yGLvgGOaQB4Dsv9iFvOa7bZY7NfQiCqTWxrXvAsocbZ2Np6vxVQVM8d sN7SD7gwj5U0fal77tk/GM+PyPeHlWIt1AklnvNWN7+0nTSP0zhUwbx5l A==; X-IronPort-AV: E=McAfee;i="6400,9594,10397"; a="60952360" X-IronPort-AV: E=Sophos;i="5.92,243,1650898800"; d="scan'208";a="60952360" Received: from mail-tycjpn01lp2169.outbound.protection.outlook.com (HELO JPN01-TYC-obe.outbound.protection.outlook.com) ([104.47.23.169]) by ob1.fujitsucc.c3s2.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2022 15:01:01 +0900 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=D0wFz4ODIGrVxeEvHzqdH3Bl2S/KGzp/cLZKg+8SepFWlB+GKWv1TlBvItik3g7s8aVYNOsAuDxgrl3eO62rJTo5D0GhxOpBUdEcst44wtzpnsx4v7XOrHqsDovupahoMrAQJroZQuB/cnU4Tpq3NICjiNSUmwyRXdpmjrFvqY4LgSvcZZk8EBbKPt041pZg6WPrMvX8OMUDBaqgrXQeVMftmYXyn3xA7OlwyH2Vi8jSRnK3Vr0xoodNmNt5vGpOOPtHkUBerMUywqtTYeHNMetR2fkIxmPksFPGtINx4SxqV1ZJ99h1Uavh6dxTNM2hpdjkV5YsJlD917dKk9oy3A== 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=Zy8xOPZWZB1CbQUP5nX/vKzMxGjIoG2c0up/fy8cRw0=; b=Y1logjiJ6cxjNqHPxgIriQuGa+d0Qvpqk+3WKgdCzzhvIjFSWZNQvSb1kXvPAyneuFu71dJ2LK+rk7U7CvOz2JefzuO6ghF0Ni9cftryQvXUtIY/27RjBZ/4om7A1+/j0mAjdyXq4Kw+4s9mjEds2tTMl+HMjmzlsIM/Nevv95EV5VGktj83VVhIGKJp0/laXsagDuBt0RU5GSPN13B1RIFftLyF/8HZZU/wbD/F7RCwUtENyKjuvqrokv0MMPc61GI3r//Lbr7DJAtMlTxnUUAITjeoV6VpI+Yiz7oeVHzWlaIgbfemUoitzerLwr2jYcqr6YDK6enTGDPtror8fg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=fujitsu.com; dmarc=pass action=none header.from=fujitsu.com; dkim=pass header.d=fujitsu.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fujitsu.onmicrosoft.com; s=selector2-fujitsu-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Zy8xOPZWZB1CbQUP5nX/vKzMxGjIoG2c0up/fy8cRw0=; b=B9BQKvPz+3EW7F0M2D0+K/NE1JfJewyVoGNtdLksAlx+Qaf/Ynln+YwRewoHFSFD8EintrDJmw0azxsO05z8L3Q0M5zM/io1BPXJXFs3VsC3mnGQXngAvoraquk9D15l1wm4i3vsv4tRq5+4aIFk2nPOEgP28E++pB3wlnzNTtQ= Received: from TYCPR01MB9305.jpnprd01.prod.outlook.com (2603:1096:400:196::10) by TY1PR01MB1753.jpnprd01.prod.outlook.com (2603:1096:403:1::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5395.18; Mon, 4 Jul 2022 06:00:55 +0000 Received: from TYCPR01MB9305.jpnprd01.prod.outlook.com ([fe80::8d7a:baa8:3b18:cd93]) by TYCPR01MB9305.jpnprd01.prod.outlook.com ([fe80::8d7a:baa8:3b18:cd93%6]) with mapi id 15.20.5395.020; Mon, 4 Jul 2022 06:00:55 +0000 From: "lizhijian@fujitsu.com" To: Yanjun Zhu , Jason Gunthorpe , Haakon Bugge , "linux-rdma@vger.kernel.org" , Bob Pearson CC: Cheng Xu , "lizhijian@fujitsu.com" Subject: [PATCH v5 1/4] RDMA/rxe: Update wqe_index for each wqe error completion Thread-Topic: [PATCH v5 1/4] RDMA/rxe: Update wqe_index for each wqe error completion Thread-Index: AQHYj2ts7pOi9bWXrkiEg2X7//pIyg== Date: Mon, 4 Jul 2022 06:00:55 +0000 Message-ID: <20220704060806.1622849-2-lizhijian@fujitsu.com> References: <20220704060806.1622849-1-lizhijian@fujitsu.com> In-Reply-To: <20220704060806.1622849-1-lizhijian@fujitsu.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.31.1 authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=fujitsu.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 69b35b6e-0898-434e-8684-08da5d828f02 x-ms-traffictypediagnostic: TY1PR01MB1753:EE_ x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: QVqwKzvZd7Pj0rgyIcOBHCbbpNxfHn4k5cqQlQgq1W+nQb5UEDdyTMy7uVhd5jjIQKtlRqzzjOQRHU4c4rpnguYEArmF6OD3g+xebhAOW8sOcwMIZaYIeWsQtqB8coDuqSbZspCiqd9pUX0uDB+CRJM0fpb/K/la8rVdPvzlrSRF29/r+UcUefHFStiwNDOfbxCQJlwZeIZBhTD0m5hFjRbmsQ7fXT/ORjNT5wSdvYUT62AgYiiJNkBYSbyDptjRotk/SpdFFtsXKr1zlw3hu5uqGLM8I51EVPV27LG3Ho7qWySBagJQoMhwCuOJ9ltsRKJWfvuAMkMtRM8AEOoDqkFkcF2xnSS3IQksaKOd8eKePablNz7f7TAolatpAUdAc4Hvm2BsvxssSgFbxIbf2obRHWJ/weTuX7ltzStKcA5eX3PCEy6I/7kI0o/fOQYhTjtHchu6w5OiYgpE50tIJM9SYlZ0RS+CMTa2WbYG0HOU1ZaGwc0qf7pfYps/s+QuavK0R9M+EgEd0Drfy+hH1eNYWpnuJUew/0EWJNcmiiiTbuyMzE2HbMMEkt2wKP8q8cuYXo3++sAEWaQz/2tH1YRmxX22OVMO/+erIfTuCIz21mho5VieG5nsPnu4sZfdG3wFp5YGCxk7w4joSNmfTHbJaRsAjyM7cs0wmRtMwhxuHtDqjXjR+H03kcNcFmYnISagwHrnEzI9oHUD4LYN1044TByqkBNTsINh91+e+8LzcQN9J25O0Z9le4DV0geeQDyec75Lre1OP43nLcoaXeGZo7cmaNdj5ROS3MpHebeqzwrdOGFHIK0rtkr4LlIO x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYCPR01MB9305.jpnprd01.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(4636009)(39860400002)(346002)(136003)(376002)(366004)(396003)(2616005)(107886003)(186003)(1076003)(38070700005)(38100700002)(64756008)(36756003)(71200400001)(8676002)(66446008)(316002)(66476007)(66946007)(76116006)(110136005)(66556008)(83380400001)(85182001)(91956017)(54906003)(4326008)(15650500001)(5660300002)(6512007)(6506007)(4744005)(478600001)(6486002)(8936002)(82960400001)(122000001)(86362001)(41300700001)(26005)(2906002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?eucgb2312_cn?b?SUVLa1dGMUJVUEZCUGVZeGtH?= =?eucgb2312_cn?b?KzE2N056MlJKK21NMkFoSDRrYmJPM2NpSC9oRWtOTmdlcE5HV0UwTUM1eTJ5Ty9x?= =?eucgb2312_cn?b?V2s3R0FrdnN5RUgzM2RDcWt6NlZ6d01ubzlzMDUrazgreUx0UmdwOTBsbzlVVXN2?= =?eucgb2312_cn?b?b2ZKd09ZTFllWGRnbmFUb3ZiTlZhalUrZktNQy8zc1JkalpiQ1pUV0hQTUptLy9k?= =?eucgb2312_cn?b?S0ZqaHNUWWNBbUFMMDlCUjdKMlk1MmJ4NElxckNjQnF6V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ZEdv?= =?eucgb2312_cn?b?RWhrbFplcGptSW0yMmthK3Q0WitFRzhkMEZ2eThCZ08zRzlDUXJvNEQwcnAzV2FM?= =?eucgb2312_cn?b?Mi8zWjQ1U0YvYkwxd2RiN2RCM3BPUkNsMStoNFJjZG5keGpneFVzVHRpbWJaak4z?= =?eucgb2312_cn?b?UUhaMG1iUCtpajEwV2Q0ZE8wQ0Z1b3Q1TXFTalBYeTMzL1V5bUk4WVluZkFQQjRO?= =?eucgb2312_cn?b?L0ZhMXAvbXFyNkdoSzlOLzlFNmc9PQ==?= MIME-Version: 1.0 X-OriginatorOrg: fujitsu.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB9305.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 69b35b6e-0898-434e-8684-08da5d828f02 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Jul 2022 06:00:55.2316 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a19f121d-81e1-4858-a9d8-736e267fd4c7 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: bHAYH8TYIQ+XxfNNd5LHOhx2phRDCk608Vo6Lf1E9AJK08/jiCU2AxIACNGFzFgVXtGSCqZb5d1g25RsFtoMrA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY1PR01MB1753 Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org Previously, if user space keeps sending abnormal wqe, queue.index will keep increasing while qp->req.wqe_index doesn't. Once qp->req.wqe_index==queue.index in next round, req_next_wqe() will treat queue as empty. In such case, no new completion would be generated. Update wqe_index for each wqe completion so that req_next_wqe() can get next wqe properly. Signed-off-by: Li Zhijian --- drivers/infiniband/sw/rxe/rxe_req.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/infiniband/sw/rxe/rxe_req.c b/drivers/infiniband/sw/rxe/rxe_req.c index 9d98237389cf..4ffc4ebd6e28 100644 --- a/drivers/infiniband/sw/rxe/rxe_req.c +++ b/drivers/infiniband/sw/rxe/rxe_req.c @@ -759,6 +759,8 @@ int rxe_requester(void *arg) if (ah) rxe_put(ah); err: + /* update wqe_index for each wqe completion */ + qp->req.wqe_index = queue_next_index(qp->sq.queue, qp->req.wqe_index); wqe->state = wqe_state_error; __rxe_do_task(&qp->comp.task); From patchwork Mon Jul 4 06:00:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li Zhijian X-Patchwork-Id: 12904731 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 669D5CCA47F for ; Mon, 4 Jul 2022 06:01:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229499AbiGDGBG (ORCPT ); Mon, 4 Jul 2022 02:01:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229532AbiGDGBF (ORCPT ); Mon, 4 Jul 2022 02:01:05 -0400 Received: from esa18.fujitsucc.c3s2.iphmx.com (esa18.fujitsucc.c3s2.iphmx.com [216.71.158.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1CD56433 for ; Sun, 3 Jul 2022 23:01:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=fujitsu.com; i=@fujitsu.com; q=dns/txt; s=fj1; t=1656914466; x=1688450466; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=cJgZQhIP6MPcOU4k1L03TGgHtegNLKWOHb0Lb/G3AAI=; b=iBDbtPVKOHVZATKI86Ad+sZqX//vY7lSlB01duUFiZI2nXxHsYbDbzKF ELMbsVLiGI1YqZEaqP+KSYntDKiARpTG2V4kGB5KBlcNO5il0xceDI1cL z5wEPxbA4MPXr0DKMqedbrAKuTzcW5rK4DfVtMd4pHv4W2z7SDg2EsGqX yFm3C3WOE3ULeIrUkCBID2zB3OkMZgDkBXIccwVEMXC0OQK7asaba+5Az rdWQOGp0CXgrbJpkORwJJ0I7LdIBBEADwhOtdGC0h/km0oVhTnDHgAAiq XJlxASMYKFTaYgkG+VZVkVG+BiiGSnkcckzM3Tf558HYIo3WTMo8iRzDI Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10397"; a="60952365" X-IronPort-AV: E=Sophos;i="5.92,243,1650898800"; d="scan'208";a="60952365" Received: from mail-tycjpn01lp2169.outbound.protection.outlook.com (HELO JPN01-TYC-obe.outbound.protection.outlook.com) ([104.47.23.169]) by ob1.fujitsucc.c3s2.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2022 15:01:03 +0900 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=H/yYa3sDGJ6L8F2z19BNxeVAozyxwD3bC/ofRqv3J98lJWCDH/7dcDmBQ3lxiRlGEtgmyTgVEWeukPIqEINnIx/9Hr7YrmbzYvNc8eB2ZSYj3+73CjR1bmQYwJZNTq7TJs47IeVkbt1ln84Wyo5+Re8P2d62oJDrCDVUydbtn8gEMAb2HsyvfhVCf2GnnmvoGWx2dDIoWSTSgH8LJndu5tq2gCsPps79RodC4F4O3Nl9M6l9XK7YZ5B8dpUTVvczXf5a5xrj7wwG07RN+AzQhEPi6geP8RSRzz6lS8UTslGIslXDOoDIh2c4Cb1eWgG+5Qd52f7vXhFEk5ZhMXNy0A== 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=cJgZQhIP6MPcOU4k1L03TGgHtegNLKWOHb0Lb/G3AAI=; b=S1Dgu1cNRgIpsgBiOOZi0lJFPAGfoS5OewuWMDvdcuBKFqq7gYv+yE/Kq0jOwhw2zq5shPnFh3HX1/mb3M1Ofz0dBWOKq9OQ6Kt8n7anuWDXdbjhT4mGjq7Z0oXZD5sKnX0mjk3qzGo0/w278kiFmAl+iWsPi5zQMtf9HXpyYXFUO2cO6xMk5bfb7YrTr06Zhocur8CFpbS9ngVatO40sIVqi16MUq0mizNJTSlL9ryanEfxnvhS5wnLUFylEVQyDZYatElgNFTBSE/PXqM8dYx+4c0m/3KP8BAt1sO9XTCa2LgoxS1HzwN94Uy2f14/VXGb5Ox40ha7hlvFoVbXgQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=fujitsu.com; dmarc=pass action=none header.from=fujitsu.com; dkim=pass header.d=fujitsu.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fujitsu.onmicrosoft.com; s=selector2-fujitsu-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cJgZQhIP6MPcOU4k1L03TGgHtegNLKWOHb0Lb/G3AAI=; b=X28ABmrcApDLqxqBGAHp4RsLBe/bphKR02pR17wx1DvRKbeCesD9ggvJE6LTmGk9kz6sxbJjnDqVSikPzigcrtmHahYp4iHwSc8Iz+7G5+koioICQIhjKSi+hcHQfH2wQUU4ZqKXEFXVtG/EKRzj2VrvOWoiPQN4zMMQTk14E3s= Received: from TYCPR01MB9305.jpnprd01.prod.outlook.com (2603:1096:400:196::10) by TY1PR01MB1753.jpnprd01.prod.outlook.com (2603:1096:403:1::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5395.18; Mon, 4 Jul 2022 06:00:55 +0000 Received: from TYCPR01MB9305.jpnprd01.prod.outlook.com ([fe80::8d7a:baa8:3b18:cd93]) by TYCPR01MB9305.jpnprd01.prod.outlook.com ([fe80::8d7a:baa8:3b18:cd93%6]) with mapi id 15.20.5395.020; Mon, 4 Jul 2022 06:00:55 +0000 From: "lizhijian@fujitsu.com" To: Yanjun Zhu , Jason Gunthorpe , Haakon Bugge , "linux-rdma@vger.kernel.org" , Bob Pearson CC: Cheng Xu , "lizhijian@fujitsu.com" Subject: [PATCH v5 2/4] RDMA/rxe: Generate error completion for error requester QP state Thread-Topic: [PATCH v5 2/4] RDMA/rxe: Generate error completion for error requester QP state Thread-Index: AQHYj2tsunb57pWpjEaH7gsJl9i/sQ== Date: Mon, 4 Jul 2022 06:00:55 +0000 Message-ID: <20220704060806.1622849-3-lizhijian@fujitsu.com> References: <20220704060806.1622849-1-lizhijian@fujitsu.com> In-Reply-To: <20220704060806.1622849-1-lizhijian@fujitsu.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.31.1 authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=fujitsu.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 1d7111f2-c0c4-4c91-24a5-08da5d828f45 x-ms-traffictypediagnostic: TY1PR01MB1753:EE_ x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: M+odvSh1i8Rpzed6JA9rabnEeKwVkXIVmHirVx8LqId2k2umRr3dGh2lHz8oMJcCjiwkpEzE3YU8Se9eLeetJeQ4fTz3fUG1kMicTuXSkjv1XZ6CoHVxikQ/5/I//lCEIavyAwzgXpXWPXSrXHj/2UITbkdvCvrN0TgFm1UiFZTkKNvjO0fIczmaHdUpQZf/pI7RUx3a7U/xTVdjztC//WW1hzy88dc38HEiJB2L1UFuSWrgc4N+e6yDNYZZYUTEx7usud9KgRE5CVRFAxrZjDYan73w3oXHbo3GzloX0gGxM07iqVn77FVjklo9qAzCWVdAWNxZ7DnACq8Z0JZi8ya6Za3YYQ5E2qndYlO5xHyfroZx62HyRBnKxffVbpWhPh6Ujdhh9a3thQOiOfFS5RjaU1XTmrRopSlQIDMJsxC17cKS/7Y1mqFwI2qgt7MP7Qlpqkjq730oIbpVg0KNCLEVRLlMZjPwfWOFP7cLq2ntcafzx+R7n4Zn25khrPeOhaBdCVDYWRf9rVm+exRm9AFvqmCNxuWXf2ZHFs/93TFLI1fA96DNGFfmApxjGYsPCIY1OarKtF5gvFf9OFViyBb109o7yaR2H/+rZ0rx9Qbsfhv+staHVSRVHMKBNECBYN9VtsuxZKhrBir4iksUTuRSfN9Hp/22zU2+OD46rI9DE5VqlF/Vfdw7gNpqrB/oJn4lyXggSbbgxgQJm8avScAHKOVE66De9/ea1JUmshjqpHKooO80GkBygLX9pAkbxlb5Waa47Kk1nt70UTcJLhU0khTUyEw8hIEv/M1AAh4GoYaNXKvub6IIu8szvV2N x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYCPR01MB9305.jpnprd01.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(4636009)(39860400002)(346002)(136003)(376002)(366004)(396003)(2616005)(107886003)(186003)(1076003)(38070700005)(38100700002)(64756008)(36756003)(71200400001)(8676002)(66446008)(316002)(66476007)(66946007)(76116006)(110136005)(66556008)(83380400001)(85182001)(91956017)(54906003)(4326008)(5660300002)(6512007)(6506007)(478600001)(6486002)(8936002)(82960400001)(122000001)(86362001)(41300700001)(26005)(2906002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?eucgb2312_cn?b?UVZkZmVSZkE5TCtIYUhHK0tE?= =?eucgb2312_cn?b?WmVqWXlGWTRXVWNqb0JBaWxtZTEvMy8zUTF6Y0FRdVJmVkEvNVBYVHkzT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b2312_cn?b?NmhpY2EwMTJpZlpkV1p1K2dSOTZkRDF6WWozTkJkbUNVM0hHZllGb0pwNFpUeXkr?= =?eucgb2312_cn?b?YzJVZlNFaCs2eTNadmRmTUREdmswTDMweTU4eGtNbkZDN0hpeERiVElBRWxSUEdG?= =?eucgb2312_cn?b?bkVjMmx5QXNNWFJaN1ZtKzc4V0lSY1lxYktvSWd1ZVpHc0s3bnNrbUF1b3Y4UURM?= =?eucgb2312_cn?b?YzdVN0Z1UUVmaWJ6Mk9VYTNvRHN6UDVNNnBHTTZ0a2FleWtSbUowcHdHQzc4L1Fv?= =?eucgb2312_cn?b?NjhSZVFoN05TYktBYkd1Unh4VjhIUnVycGdlM3ZzMllCK25qM3RHS0pmOVVRQ1hL?= =?eucgb2312_cn?b?KzF0RHJyTVJNS2hKaHJDaUVTa1Bud2E5cE1GODF0KzBQZWM2cUQzWnd6cHFaSEFi?= =?eucgb2312_cn?b?UktYb1FXSVVPa1hjWW9NUitxa0E9PQ==?= MIME-Version: 1.0 X-OriginatorOrg: fujitsu.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB9305.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1d7111f2-c0c4-4c91-24a5-08da5d828f45 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Jul 2022 06:00:55.6995 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a19f121d-81e1-4858-a9d8-736e267fd4c7 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: qEKS3TTMp6KYw+hz9H6B4M4GLM+RG0QjAY7T+uo9riLhxm+H47hORIGydAWV2GoLEkbatzduqeuLLTUVRKPIrA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY1PR01MB1753 Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org As per IBTA specification, all subsequent WQEs while QP is in error state should be completed with a flush error. Here we check QP_STATE_ERROR after req_next_wqe() so that rxe_completer() has chance to be called where it will set CQ state to FLUSH ERROR and the completion can associate with its WQE. Signed-off-by: Li Zhijian --- V5: parentheses issue # Cheng Xu V4: check QP ERROR before QP RESET # Bob V3: unlikely() optimization # Cheng Xu update commit log # Haakon Bugge --- drivers/infiniband/sw/rxe/rxe_req.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/drivers/infiniband/sw/rxe/rxe_req.c b/drivers/infiniband/sw/rxe/rxe_req.c index 4ffc4ebd6e28..6d2742997e1b 100644 --- a/drivers/infiniband/sw/rxe/rxe_req.c +++ b/drivers/infiniband/sw/rxe/rxe_req.c @@ -610,9 +610,20 @@ int rxe_requester(void *arg) return -EAGAIN; next_wqe: - if (unlikely(!qp->valid || qp->req.state == QP_STATE_ERROR)) + if (unlikely(!qp->valid)) goto exit; + if (unlikely(qp->req.state == QP_STATE_ERROR)) { + wqe = req_next_wqe(qp); + if (wqe) + /* + * Generate an error completion for error qp state + */ + goto err; + else + goto exit; + } + if (unlikely(qp->req.state == QP_STATE_RESET)) { qp->req.wqe_index = queue_get_consumer(q, QUEUE_TYPE_FROM_CLIENT); From patchwork Mon Jul 4 06:00:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li Zhijian X-Patchwork-Id: 12904733 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4FCD6C433EF for ; Mon, 4 Jul 2022 06:01:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231294AbiGDGBN (ORCPT ); Mon, 4 Jul 2022 02:01:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229706AbiGDGBM (ORCPT ); Mon, 4 Jul 2022 02:01:12 -0400 Received: from esa20.fujitsucc.c3s2.iphmx.com (esa20.fujitsucc.c3s2.iphmx.com [216.71.158.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 206B765AB for ; Sun, 3 Jul 2022 23:01:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=fujitsu.com; i=@fujitsu.com; q=dns/txt; s=fj1; t=1656914472; x=1688450472; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=Pgx26XhWVX/1szP8P3up81NTZQEpH4ZmyViVtqfQ8eY=; b=wh6S7Bks5nv9wtWHejfG87Q1tc3Ml9H0QJc2KTTCwADZBuf38XOlZEFI VNDNqOh6L/ggkvN33H8LjLNRtcKcOwKkkJ6sUF0qEttlR/7LzIRkBQYAt UVGMYCK4hU1Oezc6AEku2lj+FXIcnQN8E+LW5xp2MVThWPztDVonFPfUR gKNpNicSbSzQRIKoAkAAX+zpBaM9jR1mYXlc1P51SH2H/IRoKzzptsngP iRDDgFHNIfVfhCMfUxjbvjqmWlJaoHXgTdakRsdLVFCkA/NHDlBZZj0wQ Pg6e6YXM6tpCM6Nheo5PEvZINHNrLDtSccCEphlmMjP7aejHBU/3xmfrs w==; X-IronPort-AV: E=McAfee;i="6400,9594,10397"; a="59469711" X-IronPort-AV: E=Sophos;i="5.92,243,1650898800"; d="scan'208";a="59469711" Received: from mail-tycjpn01lp2171.outbound.protection.outlook.com (HELO JPN01-TYC-obe.outbound.protection.outlook.com) ([104.47.23.171]) by ob1.fujitsucc.c3s2.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2022 15:01:09 +0900 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bF4Dq+u3LN9gA6DhDfCUSHMHoHpdwCtRqJD0vRTDeKoWJ7DUX/YsFp27L3A5rWd23dxkVoXwAe+0uJNolJ9EwwwPCYXASkUY/fZEQDIevbr/rYXaluaLdo0KCt/tmgxZtm18pDxVFtcRepFSWakSJCXWqwesyxSL0qdI+yRWPBg+NXeTRqXeJ4VqtTZkfNFA+9xk/WyhjtEDd47TOZhkAdj5aYMtPUdGaAEm0Jh7ndqw1ijQeLxA+GYUyvU1l2jsNQbhtUGfX3iNe3R+roF7DOiNeAMgIusEFhr76r26aE6WNbjnA+ek/KhfXhaCjZQ8ZowvyzmC8wLDvFytoYeC2w== 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=Pgx26XhWVX/1szP8P3up81NTZQEpH4ZmyViVtqfQ8eY=; b=KHt2W23XJ2G0gnWPP9PD77KORtAtB/xdw7ehs0j+x5Sw+u5SeKrXgkdegYQYJ3DxScUWAOhLd1wgFlZkJRDRd+Pq59du+71Yn3k8EcQyzjQqx3IjZAVzXxwwR1iSDq7tqWyoNgSgpIaJoNSI8/BfHOiGtuZM2FAhZgEGmvg+itXqfJY8bkQVcy4mK/R12cvPyI6sB+KunHbhHQ7vDAL4+fFFJT+PfirB9fS7AbgtVh2QnTGGbwMLqhZXh/ZqOS84X6lfqvPAajhgPdP41LqXGLWrAN3o6gDYaDclynhUMj7M1CFDgQNJJN3/Yh6pSlgBoCzcoo/Sn+PDH98zBGCJAw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=fujitsu.com; dmarc=pass action=none header.from=fujitsu.com; dkim=pass header.d=fujitsu.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fujitsu.onmicrosoft.com; s=selector2-fujitsu-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Pgx26XhWVX/1szP8P3up81NTZQEpH4ZmyViVtqfQ8eY=; b=Kfizh63dk3fTx4PsBoDI7lQaj2kTNWv0ZuDiGugPvFVOP3kBcyzoHeMyIs89iKbLIQJnXM7eP+kpzhr9JOqlreFfgAtOLC5tiOFRRsEpM0OSynlcoY2bEJlu6MOJh4nyXxsdiB7TgxArfYiId8bYQaZl3i2gYrlhg/YTcpqgY1k= Received: from TYCPR01MB9305.jpnprd01.prod.outlook.com (2603:1096:400:196::10) by TY1PR01MB1753.jpnprd01.prod.outlook.com (2603:1096:403:1::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5395.18; Mon, 4 Jul 2022 06:00:57 +0000 Received: from TYCPR01MB9305.jpnprd01.prod.outlook.com ([fe80::8d7a:baa8:3b18:cd93]) by TYCPR01MB9305.jpnprd01.prod.outlook.com ([fe80::8d7a:baa8:3b18:cd93%6]) with mapi id 15.20.5395.020; Mon, 4 Jul 2022 06:00:57 +0000 From: "lizhijian@fujitsu.com" To: Yanjun Zhu , Jason Gunthorpe , Haakon Bugge , "linux-rdma@vger.kernel.org" , Bob Pearson CC: Cheng Xu Subject: [PATCH v5 3/4] RDMA/rxe: Split qp state for requester and completer Thread-Topic: [PATCH v5 3/4] RDMA/rxe: Split qp state for requester and completer Thread-Index: AQHYj2tt9y4n+Wr7F0eaR79jUYL1uQ== Date: Mon, 4 Jul 2022 06:00:56 +0000 Message-ID: <20220704060806.1622849-4-lizhijian@fujitsu.com> References: <20220704060806.1622849-1-lizhijian@fujitsu.com> In-Reply-To: <20220704060806.1622849-1-lizhijian@fujitsu.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.31.1 authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=fujitsu.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: a5f4077a-6cd2-48e1-041f-08da5d828ffd x-ms-traffictypediagnostic: TY1PR01MB1753:EE_ x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: VtYyxYdVoU2WJGh6qFUsa7a+lA+WfuaROFlYlS5QCy72yoZIQqUixEfo+7Tpg9j9FWbWGZES8YjR/3O8nAXJgDrsrmqlEv+7wRWFB5Ly/SrUdOustTaoFUPkqr3DAlGE6EBVg+Y1hfPzvjgRO1Byr+N/q9YlU0nYDsp90r7IVJtMFDYmcqtEeyoD+dQWLtbSg2OPNncdbJjdUHeBfS/8D1l75RHQ0lq2+n/k5y4nMWF4IvQzVVKqJlzAdCs1+duHqRQ7XBzi16SSMKgfpX6OpUQrASQwc//qFF75wpKOiYV9B267cvNtSJHR1zNfEf5yvZpo5A1FNVjahUdYrtUIICbMl5x+RNj6VIvjqZOn1c9DEkeDiql92jUZXs5Jkcc3T/7baRlf0a9RF6W1yi7w1vuJhTql54kyDclz5DNEu+MtavRZJZrjZsXd6PSan66qsznjYGWZ8ekbBQ8BRK34w00yiYmF3fnGFUfj0QQQhEHPiPZPc7Hi5x5GG9vRRTzcd/6d44qykaJfroLRtqhJgv02B6xRS8V4xUsZSZt1J6NB++qIwHlkUybFsBESVkKiSIQppmN03vy+VFnU9NWMHurEOkOurEeO8wmt8XraVZv8txWMO0ptc+dWYa+e1S4ATWz5NoJKjwegg3GOZ3ZTbmzwiVXSdUR5S2pHl1x6c1zKwapRkIOd1hOt5sk1eoFXoAIl88iQkok5dB0G1ylZL8mcfC09ivnW8S0syscNAyeKxov/h0dn/HW/8oEeDIGtvibiP1y/Y3kNJFATPRy6/GtD1POdbJuR+5+vySNscLrXte5ST687gcML9QsDy8wY x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYCPR01MB9305.jpnprd01.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(4636009)(39860400002)(346002)(136003)(376002)(366004)(396003)(2616005)(186003)(1076003)(38070700005)(38100700002)(64756008)(36756003)(71200400001)(8676002)(66446008)(316002)(66476007)(66946007)(76116006)(110136005)(66556008)(83380400001)(85182001)(91956017)(4326008)(5660300002)(6512007)(6506007)(478600001)(6486002)(8936002)(82960400001)(122000001)(86362001)(41300700001)(26005)(2906002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?eucgb2312_cn?b?MTdSUXZHd1ZXM2ZsRGxCMnlk?= =?eucgb2312_cn?b?NFV0dVBDUzViNWRRS0VmUWVnRGRsZWNCUi80YzFBbmhpNml1T3RxVERia3o3QVZt?= =?eucgb2312_cn?b?SGFsVDhTWGFrQ1Y1SS93ZGVSMGRxSVlzWHdIYm10aUZ4K0RWeVQxVjE1NHJDaHhM?= =?eucgb2312_cn?b?SU1vSjV4NGpJUnBzYTE1NVRST3Ryc0kycXpycWdKZjZiNUM4UFNzSXEvNGZjL21H?= =?eucgb2312_cn?b?ZjlSMCtUZG51R09CNDNjNi90YjlobHRrMTNrWkZtZ1VBdXRFN0tUN0VydG5XNGZJ?= =?eucgb2312_cn?b?VUFHZlJOT3RBWjVabGtrNTZhMzRmTTlqZjZEM1gwdmVLZXdtL1IzY1hhb3RhSUJE?= =?eucgb2312_cn?b?dzY1dEZzRmpONEV5TUpWeHFMQkNQV01UV1lXbVNpbW1kUXczMmtHckFFdUhkcmZm?= =?eucgb2312_cn?b?K3VPazFkS2h2QWw1WXdaaWlrVDg2OXl1WlQ1UTZoQldXZ1crcFVBNGRNaXlZZ3No?= =?eucgb2312_cn?b?Z3BjdFRSMWpXaDVENStxVkxRTG9XVkR1eGY3TTYxdzR6MEt6cmFwVDlvNnNMOHRO?= =?eucgb2312_cn?b?Y3Y1WG5xc1phbEtRQTRHcEduSDlaSHlwQmxPeCsvZ1VKVkRnTktMUG9XN2hRaHlO?= =?eucg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05JTVN0VHhuMGVobXJpblAwb1FxU24vekZDY2tzWU1oRzVTcTdvdVFLTkxs?= =?eucgb2312_cn?b?NVVkNmZBRnFmZkN0YzNOanBTN0RzRTlWUG5pL2JpMTlQT2dXRmExQ2pPNWhYSHNs?= =?eucgb2312_cn?b?bFZlWVBQMnRjVldmdHdvMzJiZDZYVTdCazZwS1RTay9HZHVKWndRdThkTFg2a043?= =?eucgb2312_cn?b?cXgvanZaNkcvYnY5MngvUHRnNVlrY2xHOTNLRElDWk9PTGt6L2hia3dBWDlvWGRk?= =?eucgb2312_cn?b?TGVURFEzY1J4eE1JMEU2VGlIVlVlQ2VYRnhSNGFYU1pNTm5qd01EMU5wMWFEWlhW?= =?eucgb2312_cn?b?ak1ocFNQVElkRlpHZEZYRGUwVENWK1E0bDQ3TmpQT2lLTW9SdTd4bEdIVHowNmRm?= =?eucgb2312_cn?b?YlhhSzJhM2xnMkRPejNLSE9PcDkyK1lmZVFGVU45bVc3Y3JWcHdHa1UwZllDbGZJ?= =?eucgb2312_cn?b?WWV1Ym9rR0JuZUJoSGQzdm9PSG4zandkM1ZSU3FpUnROaWpVU2tQT1lUeFRRUkhm?= =?eucgb2312_cn?b?UUFJMmhDVTdGME1hZ2VnZ3BzOSt3eW1OTGk3SUxYTHBMRk03bnQyTGF3SnhtOUdZ?= =?eucgb2312_cn?b?ckdxVnQxODRpMGxmYkd6bCtwZkY4SE5sbnhtWUhmcjVjemUwZnI2eHYwb0xjZXRT?= =?eucgb2312_cn?b?MUczQlZEMElwZklDTHVUSTJCaFhDVDhTck5mT044MnJRV0V4WG8rT0FqQVpmS01z?= =?eucgb2312_cn?b?WklqNE50bStNMlJENTFONUhkeHc9PQ==?= MIME-Version: 1.0 X-OriginatorOrg: fujitsu.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB9305.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a5f4077a-6cd2-48e1-041f-08da5d828ffd X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Jul 2022 06:00:56.8889 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a19f121d-81e1-4858-a9d8-736e267fd4c7 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: UO5DAOx729DHw0tBmKb6HBe6yjZ96i1pPuWpI4q0PLK3cxR+nW8MKXoDbLrxDlzKYkcmMBwwbGfGGJ5U79mdbg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY1PR01MB1753 Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org From: Bob Pearson Currently the requester can continue to process send wqes after an local qp operation error is detected because the setting of the qp state to the error state is deferred until later. This patch splits the qp state for the completer and requester into two separate states and sets qp->req.state = QP_STATE_ERROR as soon as the error is detected before another wqe can be executed. Signed-off-by: Bob Pearson --- V4: new patch --- drivers/infiniband/sw/rxe/rxe_comp.c | 6 +++--- drivers/infiniband/sw/rxe/rxe_qp.c | 5 +++++ drivers/infiniband/sw/rxe/rxe_req.c | 1 + drivers/infiniband/sw/rxe/rxe_verbs.h | 1 + 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/drivers/infiniband/sw/rxe/rxe_comp.c b/drivers/infiniband/sw/rxe/rxe_comp.c index da3a398053b8..0b68630a3e49 100644 --- a/drivers/infiniband/sw/rxe/rxe_comp.c +++ b/drivers/infiniband/sw/rxe/rxe_comp.c @@ -565,10 +565,10 @@ int rxe_completer(void *arg) if (!rxe_get(qp)) return -EAGAIN; - if (!qp->valid || qp->req.state == QP_STATE_ERROR || - qp->req.state == QP_STATE_RESET) { + if (!qp->valid || qp->comp.state == QP_STATE_ERROR || + qp->comp.state == QP_STATE_RESET) { rxe_drain_resp_pkts(qp, qp->valid && - qp->req.state == QP_STATE_ERROR); + qp->comp.state == QP_STATE_ERROR); ret = -EAGAIN; goto done; } diff --git a/drivers/infiniband/sw/rxe/rxe_qp.c b/drivers/infiniband/sw/rxe/rxe_qp.c index 22e9b85344c3..a95d3b49ae20 100644 --- a/drivers/infiniband/sw/rxe/rxe_qp.c +++ b/drivers/infiniband/sw/rxe/rxe_qp.c @@ -230,6 +230,7 @@ static int rxe_qp_init_req(struct rxe_dev *rxe, struct rxe_qp *qp, QUEUE_TYPE_FROM_CLIENT); qp->req.state = QP_STATE_RESET; + qp->comp.state = QP_STATE_RESET; qp->req.opcode = -1; qp->comp.opcode = -1; @@ -490,6 +491,7 @@ static void rxe_qp_reset(struct rxe_qp *qp) /* move qp to the reset state */ qp->req.state = QP_STATE_RESET; + qp->comp.state = QP_STATE_RESET; qp->resp.state = QP_STATE_RESET; /* let state machines reset themselves drain work and packet queues @@ -552,6 +554,7 @@ void rxe_qp_error(struct rxe_qp *qp) { qp->req.state = QP_STATE_ERROR; qp->resp.state = QP_STATE_ERROR; + qp->comp.state = QP_STATE_ERROR; qp->attr.qp_state = IB_QPS_ERR; /* drain work and packet queues */ @@ -689,6 +692,7 @@ int rxe_qp_from_attr(struct rxe_qp *qp, struct ib_qp_attr *attr, int mask, pr_debug("qp#%d state -> INIT\n", qp_num(qp)); qp->req.state = QP_STATE_INIT; qp->resp.state = QP_STATE_INIT; + qp->comp.state = QP_STATE_INIT; break; case IB_QPS_RTR: @@ -699,6 +703,7 @@ int rxe_qp_from_attr(struct rxe_qp *qp, struct ib_qp_attr *attr, int mask, case IB_QPS_RTS: pr_debug("qp#%d state -> RTS\n", qp_num(qp)); qp->req.state = QP_STATE_READY; + qp->comp.state = QP_STATE_READY; break; case IB_QPS_SQD: diff --git a/drivers/infiniband/sw/rxe/rxe_req.c b/drivers/infiniband/sw/rxe/rxe_req.c index 6d2742997e1b..ad25290e393d 100644 --- a/drivers/infiniband/sw/rxe/rxe_req.c +++ b/drivers/infiniband/sw/rxe/rxe_req.c @@ -773,6 +773,7 @@ int rxe_requester(void *arg) /* update wqe_index for each wqe completion */ qp->req.wqe_index = queue_next_index(qp->sq.queue, qp->req.wqe_index); wqe->state = wqe_state_error; + qp->req.state = QP_STATE_ERROR; __rxe_do_task(&qp->comp.task); exit: diff --git a/drivers/infiniband/sw/rxe/rxe_verbs.h b/drivers/infiniband/sw/rxe/rxe_verbs.h index ac464e68c923..bbfffe243fd6 100644 --- a/drivers/infiniband/sw/rxe/rxe_verbs.h +++ b/drivers/infiniband/sw/rxe/rxe_verbs.h @@ -129,6 +129,7 @@ struct rxe_req_info { }; struct rxe_comp_info { + enum rxe_qp_state state; u32 psn; int opcode; int timeout; From patchwork Mon Jul 4 06:00:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li Zhijian X-Patchwork-Id: 12904732 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0E9D0C433EF for ; Mon, 4 Jul 2022 06:01:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230440AbiGDGBM (ORCPT ); Mon, 4 Jul 2022 02:01:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229706AbiGDGBL (ORCPT ); Mon, 4 Jul 2022 02:01:11 -0400 Received: from esa20.fujitsucc.c3s2.iphmx.com (esa20.fujitsucc.c3s2.iphmx.com [216.71.158.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3624647A for ; Sun, 3 Jul 2022 23:01:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=fujitsu.com; i=@fujitsu.com; q=dns/txt; s=fj1; t=1656914471; x=1688450471; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=L836/VhK6ov44k0+ziJxkPeLrW8XxLif3cV6RZSZ4eU=; b=yxn8VZ6RRo3ZD1S1/Lp5RfAyxJewVtLqHjSja84I0BiwBdggWu+Tl22f n924ym6p8KdNchIWNQYORqz/JXJu6cV3PdLf7mvnzQ0Z46qJx+i6zGyOW 892nMlBPh0Q43J7bj+W/RUzSs02z0JcdB5NlYmv5yRKRVLp2w4bCvg+c7 ZLH3YU1OJiD2J4TB8iNzfIC3x2W7uixBKz1y6z7c652IZRoCBiHulfLFk GbCBObPozJdY6edJKB38hVV1KFWxgPbHxFk4iUJIal/SujXRKqnccun9r sLAU5GEFjbiIcYeZ9YEJ7rL1vmUSb12E/uNnsR+ft+SeISWTnP5YusaIs Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10397"; a="59469705" X-IronPort-AV: E=Sophos;i="5.92,243,1650898800"; d="scan'208";a="59469705" Received: from mail-tycjpn01lp2171.outbound.protection.outlook.com (HELO JPN01-TYC-obe.outbound.protection.outlook.com) ([104.47.23.171]) by ob1.fujitsucc.c3s2.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2022 15:01:07 +0900 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HkJxAob7XXORMW8CmHTA/4TJv/WZbQocmEJIxTnKoGvtQtQrx+/j+abnzf3VHoot9BRPX1dzXH5y3KDmH4Vd7zMJGcc/V9ZPDJXTn6AktZmWtovikGRAICTfAocHzUVpYb/rpjy3NlHxhoc7QicvI0nsqiIuYsMFH2GT0bo1CE7EgQkKiLTUvKB16+XZZuy5OuLlCO9dWpPX7VCECy42GE1UX5bkCfmtFKtJAGtPByxAirvVNdYQhxTb7zmmmVG99dJy/0+JlrPkOMSIfK6T/r0tc0XizkTRFJHR86Moap9f6HSOfIF3RaT6HtDcg+1g2gjpDZQ2sKP/JX4AHljX3A== 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=L836/VhK6ov44k0+ziJxkPeLrW8XxLif3cV6RZSZ4eU=; b=l1PtSR6fNd7C4ez4lTzZJo9EKWBgHQpKD8aDgiZ5/D31x3ln4WWf8dLxKJQrKCvocSiQRQnzI2jUp4s7vdYrY1XSYhRBsFvJF9j6wE9LxeKSHa4bSP2WGCMLUCp5SITDBJoMEdyMNL8X3s7Due6VWt+wMHG91QHxCEL+Rd4gUX5Egdn1y92KUqxLm7bSjWE6Ss3r9rBDhpEZyp9ke40LIIiAmy89Uy4xHPN2ulAQ5Q4JFpVwFcGjTV2VuqhZfUOK5DkXLxxCfH9ZrkljRHeHHim5dLpMY3WibdzPfp/csxugoDllycSufk1qHViMfQGbhQgWGBfSM81V4Mdw4Zt1+g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=fujitsu.com; dmarc=pass action=none header.from=fujitsu.com; dkim=pass header.d=fujitsu.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fujitsu.onmicrosoft.com; s=selector2-fujitsu-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=L836/VhK6ov44k0+ziJxkPeLrW8XxLif3cV6RZSZ4eU=; b=bBPpyQwMSSXrckL5FxeGLP612SUm+6aPX/7+DSp8ETLmjln1wZlHZtP5w2NCdnh+2/OABpTGuT7513mqoZO9TwO/L7/q1dVyKSTD007SOOmhXNBKGT1SVCStWKmXKFOh/Y5VLst0LxAHHF71AYdlShpQA7e3tO1Kmh1UU6ZWXMk= Received: from TYCPR01MB9305.jpnprd01.prod.outlook.com (2603:1096:400:196::10) by TY1PR01MB1753.jpnprd01.prod.outlook.com (2603:1096:403:1::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5395.18; Mon, 4 Jul 2022 06:00:57 +0000 Received: from TYCPR01MB9305.jpnprd01.prod.outlook.com ([fe80::8d7a:baa8:3b18:cd93]) by TYCPR01MB9305.jpnprd01.prod.outlook.com ([fe80::8d7a:baa8:3b18:cd93%6]) with mapi id 15.20.5395.020; Mon, 4 Jul 2022 06:00:57 +0000 From: "lizhijian@fujitsu.com" To: Yanjun Zhu , Jason Gunthorpe , Haakon Bugge , "linux-rdma@vger.kernel.org" , Bob Pearson CC: Cheng Xu , "lizhijian@fujitsu.com" Subject: [PATCH v5 4/4] RDMA/rxe: Fix typo in comment Thread-Topic: [PATCH v5 4/4] RDMA/rxe: Fix typo in comment Thread-Index: AQHYj2tt/y2KY7JXJ0C4MDbLNpV73g== Date: Mon, 4 Jul 2022 06:00:57 +0000 Message-ID: <20220704060806.1622849-5-lizhijian@fujitsu.com> References: <20220704060806.1622849-1-lizhijian@fujitsu.com> In-Reply-To: <20220704060806.1622849-1-lizhijian@fujitsu.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.31.1 authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=fujitsu.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: da2cdc99-db0f-4f44-d4c5-08da5d829052 x-ms-traffictypediagnostic: TY1PR01MB1753:EE_ x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: MMIwD4X3dyrvWH36NmHuGrE899+/6ZmhH6nKKSlsNQrvYIb8Kd3h/VK6Yw/Uelqwvm7K25F4w/KeedOga+LGaatYvwdrgJRaAcfqXn5LmCtF8u+n9/TDiG0kTCIv+uMSBCHFcFRC/NMZicr+yK6V5Vq0S6nEXK6G/ccOHsJbteoirIXbsf3w+o1d3cVrbMm7hRgF3Keip7S9dHrYiqEEPYZ3qB2uvRDfQtgAVHy4tST9w2/k6AOEGB6q5Lm+TsXD0G10bOrk+O4qhE4LYYZxoQQRwaKf2UZrP4HaU2wPMopRcXP5z//AEepvabYDx2rNiUjOuUfyX4gtqqD6K8CnWO41JwZXik5CfvhJJP/PROndmbbB7p63sBlOU5Bqu0K3BDT2TxmeXa5oGhesiOTH36FVsU1CJJXreV/KYBTEOX0Bq8VeEU8kzHBP2Oki2E+4dPq4Pn6YE6LH2fs+zdX3zjtx1D3VCsdUdUq7kBZDutxqZAUBFLM3i1LA9LiMsKCcTTz0u4+29n40MQ43Ny+ekkiqFh8TzLLqydiuI/puW3NCTLPWPvoDF19zIOdIsyCznh44MZ6cQg3PlJl3fstZcITZp51qYwIk81p3lQVE5CHmMiuECZhOSJsLYEPDaaopGeT2iHSAMDJu2OIiA/WUi4OKguXVcBS5sZPTYzLvwk7h7pt3P4gQiT+VOEq7ooVfyB+SPAK7NiMtQm2ayWo2xOfzjJhioas41uPpL48hFxvAQa76fqr/4ebnZ8H2WCsv/8aSULTIBi4aA/wj4TDM955oBvnx9lburLE4vb3dAnFGyEMG47F1LW4d3R06QyOl x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYCPR01MB9305.jpnprd01.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(4636009)(39860400002)(346002)(136003)(376002)(366004)(396003)(2616005)(107886003)(186003)(1076003)(38070700005)(38100700002)(64756008)(36756003)(71200400001)(8676002)(66446008)(316002)(66476007)(66946007)(76116006)(110136005)(66556008)(83380400001)(85182001)(91956017)(54906003)(4326008)(5660300002)(6512007)(6506007)(4744005)(478600001)(6486002)(8936002)(82960400001)(122000001)(86362001)(41300700001)(26005)(2906002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?eucgb2312_cn?b?ZXhNS3l1SjVYcWI5ek44aEY3?= =?eucgb2312_cn?b?SVkvcDJCV3hoZmZ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uOVdQWk9FYnRnVndpRE5KMGRNVXo5K3NzZ25Cbnc2?= =?eucgb2312_cn?b?SE5OZTQ0bkc3RFJKeWpBTXJxY2k2U0NFNlhGNlVkWjVhZnk2YTJiWGtCNmtoUXQr?= =?eucgb2312_cn?b?TFlBcXhvNzZnNWNXSXZzU2NKOGszajhlSFdGV0cvcWgwZUlwTjVndGpyanFEeERh?= =?eucgb2312_cn?b?SXZhVjhSM2plSXRYOThuSmlCeFZ5elB2b2Vsc3UrZ3ZlOHVHelJ1ZWlCS2JJeCs4?= =?eucgb2312_cn?b?TVVZSjlaeWJTa1orSG5RUVllMEJaRVExanVvb1g0Vy9IK2xyQWFPUlo0R2tKSWho?= =?eucgb2312_cn?b?RWpnWWw3UnpUaDdBM3ZGNlY3TzRWMVkwVFArYWFCVVBxVWY4akltS2ZvOVEvUmlv?= =?eucgb2312_cn?b?YWlrSVJoaHRqc09nNFJYbWtlQ2ZyMWVmalZPVWRQTnpUdFVHU2xQTzVaeUI2RUZt?= =?eucgb2312_cn?b?WnVZUnhQVWNiQVFsZGh1RnE2WlE9PQ==?= MIME-Version: 1.0 X-OriginatorOrg: fujitsu.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB9305.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: da2cdc99-db0f-4f44-d4c5-08da5d829052 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Jul 2022 06:00:57.4357 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a19f121d-81e1-4858-a9d8-736e267fd4c7 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: cnZiRltpYkAK8cqp/uJO+XcGdjWYZMnPaLvd2ocEP7f3IUcYVxuaBAZ1bV+kxxxYtcAkfvm+ll1RMrYd0O6Nxw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY1PR01MB1753 Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org Fix a spelling mistake Signed-off-by: Li Zhijian Reviewed-by: Bob Pearson --- drivers/infiniband/sw/rxe/rxe_task.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/sw/rxe/rxe_task.c b/drivers/infiniband/sw/rxe/rxe_task.c index 0c4db5bb17d7..c9b80410cd5b 100644 --- a/drivers/infiniband/sw/rxe/rxe_task.c +++ b/drivers/infiniband/sw/rxe/rxe_task.c @@ -67,7 +67,7 @@ void rxe_do_task(struct tasklet_struct *t) cont = 1; break; - /* soneone tried to run the task since the last time we called + /* someone tried to run the task since the last time we called * func, so we will call one more time regardless of the * return value */