From patchwork Thu Nov 4 18:38:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Gardner X-Patchwork-Id: 1551138 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=canonical.com header.i=@canonical.com header.a=rsa-sha256 header.s=20210705 header.b=UTL5vqYl; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4HlXT66ggkz9sP7 for ; Fri, 5 Nov 2021 05:38:18 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1mihcn-0005hN-RG; Thu, 04 Nov 2021 18:38:09 +0000 Received: from smtp-relay-internal-0.internal ([10.131.114.225] helo=smtp-relay-internal-0.canonical.com) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1mihcl-0005hG-RV for kernel-team@lists.ubuntu.com; Thu, 04 Nov 2021 18:38:07 +0000 Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id AB3D33F4A6 for ; Thu, 4 Nov 2021 18:38:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1636051087; bh=46OzvfG4V4xkntD0bQDMWw1VkSh/DImgNY2QHNE7Uk4=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=UTL5vqYlYfplrBEj5Y8XOwL5hIvOfIhsI1f/f0A9/RSz7r87F3zVT3bnbX05ctC4K ygbhoT0Oa746mWU6XHBPXBgmktz2iWLNVrTvXWMq6BKwnmE2GSMqPmtfCvbRBSKZHQ YtO6hgc5ANbUYhtRtvDmaEKDpfkkUdtvAESp0UCxDnwJgsmYsWqtE7cXBpXTIg20fB 5sjkFY8vYOQTY7o8ua355U/NosbVrNeHTrXpP2eGtUk02DCk4S2Fndv4cpNCmQMLnX PnTXJK1JoM9/LMEW0LCpTJZULnIV3W+vlHXyPAbgvR72sZSGxt4CC0OkUCg5tkGBMG tfBmoseHFStaQ== Received: by mail-pg1-f200.google.com with SMTP id o1-20020a635d41000000b002bd97c0a03dso4365321pgm.4 for ; Thu, 04 Nov 2021 11:38:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=46OzvfG4V4xkntD0bQDMWw1VkSh/DImgNY2QHNE7Uk4=; b=gZK79/1qFt4rVhXNVNUwZToq8iEEdGP9PCNAIpK82ZWAtAqCgecbYWNT0Ig0fKjng2 o1gxcZc1G7ValqTomnjqnNetbZAdzuiy+AwWpsb+4+o88hitDtz2GE14uCjB3MtRHpdX kZQimnxpaF4t7xlqH/BJDs4h7+kQu3kP2U36scS6EExuT4EDhPyYJ/eY6xknHp9m2wOc 5GMUh8y+3Au5ADOZr72t6yZGu0ZytimF5fOQXCrQvcxSgmckrWG0/GeiLPyAOKPo2AMH 3BXolKa+L219AWrn0a7XABEB7eV4b56dHvUMwvGAvVBmstDnuzqtI41c+oOYRI6cr3NE bfGA== X-Gm-Message-State: AOAM530ea9m2dtIROkvXHpwO59v8qRNLXki2Wv0pw0pFgs37fEDaAc4J +AG+y1cNgd7y24yMYw9CJIBcrCz9xA5TCntQ1HDAtlR2EXsLcq0PiN0zvHF5X+3iZzl+F5A5dAU Sg29ICc4me9f214ORffesauEQe3ys64s3yoJfWqiGPg== X-Received: by 2002:a63:ff09:: with SMTP id k9mr19438820pgi.76.1636051085958; Thu, 04 Nov 2021 11:38:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJ2tQajSXO91L2PSPtpq/YV8xaWFSuNobWHe6V9qALpHWKQs+omoiTXh0HWQFZfvHiQLxHLw== X-Received: by 2002:a63:ff09:: with SMTP id k9mr19438805pgi.76.1636051085720; Thu, 04 Nov 2021 11:38:05 -0700 (PDT) Received: from localhost.localdomain ([69.163.84.166]) by smtp.gmail.com with ESMTPSA id f11sm4400388pga.11.2021.11.04.11.38.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Nov 2021 11:38:05 -0700 (PDT) From: Tim Gardner To: kernel-team@lists.ubuntu.com Subject: [PATCH][focal/linux, focal/linux-aws] UBUNTU: SAUCE: aws: Fix backport of RDMA/efa: Expose maximum TX doorbell batch Date: Thu, 4 Nov 2021 12:38:01 -0600 Message-Id: <20211104183801.21736-1-tim.gardner@canonical.com> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: https://bugs.launchpad.net/bugs/1949882 The backport of ("RDMA/efa: Expose maximum TX doorbell batch") was incorrect in that it missed the addition of a structure variable. Though unused by the driver, it is a shared structure between the device and the driver, and must therefore have the correct offsets. Signed-off-by: Tim Gardner Acked-by: Thadeu Lima de Souza Cascardo Acked-by: Stefan Bader --- This patch is particularly important for AWS as they are currently testing RDMA functionality. I would like to get this appplied to at least focal/linux-aws for the 2021.11.08 SRU cycle. This patch has been confirmed to fix the issue that AWS was having. rtg --- drivers/infiniband/hw/efa/efa_admin_cmds_defs.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/infiniband/hw/efa/efa_admin_cmds_defs.h b/drivers/infiniband/hw/efa/efa_admin_cmds_defs.h index bfa98ef9a4853..0507880b1f457 100644 --- a/drivers/infiniband/hw/efa/efa_admin_cmds_defs.h +++ b/drivers/infiniband/hw/efa/efa_admin_cmds_defs.h @@ -610,6 +610,9 @@ struct efa_admin_feature_queue_attr_desc { /* The maximum size of LLQ in bytes */ u32 max_llq_size; + /* Maximum number of SGEs for a single RDMA read WQE */ + u16 max_wr_rdma_sges; + /* * Maximum number of bytes that can be written to SQ between two * consecutive doorbells (in units of 64B). Driver must ensure that only