From patchwork Wed Jul 12 18:50:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Gardner X-Patchwork-Id: 1806950 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: legolas.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=AHbkv0Qt; dkim-atps=neutral Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4R1RfL6K3Tz20cd for ; Thu, 13 Jul 2023 04:51:21 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1qJevj-0002hB-Dt; Wed, 12 Jul 2023 18:51:15 +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 1qJeve-0002fq-8b for kernel-team@lists.ubuntu.com; Wed, 12 Jul 2023 18:51:10 +0000 Received: from mail-pf1-f198.google.com (mail-pf1-f198.google.com [209.85.210.198]) (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 284A13F15D for ; Wed, 12 Jul 2023 18:51:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1689187867; bh=Ly6ADAc04wrVM4oy7jJOB1Ew8CTCJTUoWpHNDO7vyUw=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=AHbkv0QtBHuibeHnQVtN3SpVXVXNCQ+Fc5bSzCieRE9EMB+oH3kGH7cPtzzuB0vVl Q70ZL2bDznbmgxt0dzT+xk6mSBO80dFBap5qxAIzFf2nPH8OC+ePBG5uSwNCAW0XVq OxmmhY5lFn7D9dQG3b56J7bVG5HGYaEMnfpzM4IlhcQf1tU5FevdXaxaHVGTYOkyX6 r8r1btwyh+ongRVVJdWRoIoNkCGegk8vlYyC2r8dk3+OOTf9i44REsYZ/IFNqZc8BJ N6vKIz4vT1OjA0NBCK0LdUFU0LZ1tRWVeTRgsmLN5rjDXgFzURC3kyH34fDDIi+nnq OV/yCQD++KMVg== Received: by mail-pf1-f198.google.com with SMTP id d2e1a72fcca58-66700a28586so7706931b3a.2 for ; Wed, 12 Jul 2023 11:51:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689187864; x=1691779864; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Ly6ADAc04wrVM4oy7jJOB1Ew8CTCJTUoWpHNDO7vyUw=; b=Ckxu3sfy5WtilFsNmMZYk9vHvVUMomOXn4zg5G8KmVniXPogq5hclQdosCzvojznmc fRCb9FwbQrBGasisqgqfeDZAm5n9sr9k++bfEn3bahrIo3m4luhKswTkQt0QI17uicz3 C/gqY3QbX/ygdMzwQTs7xcplXK54cJrEFstDGr0zyuv5EnHK99LA662VP2Ghmi8WRK/3 sOvg2rXdjQekJC+vu5y068wuoTDIBRnD1zZJMj1hWBKYdLdmpKdFqYCv/lOu9t9ca+X9 mImj3oCoVGFQa+aa3CtDa2UL6qiyAKdnTseds7NLBO5h7G4tCurO7cOFHoCJ3DtnNSx4 X9AQ== X-Gm-Message-State: ABy/qLbdeBEek8kz4jJ0cKOPhHX7GDxNQVb07EHKsSgHtGrL+GIvjWLT dUJ21bByRv5eePjZpJUffjl/seuWclFeLiVrPkrZCNyw+wcKun8qlUDwEYncTYgxcu47aP7sJm8 sy9r/LcPW/ow1eGqSzNYSnrGxJBcZH+OTmz5QDquc/wKgaijImQ== X-Received: by 2002:a05:6a00:2e92:b0:682:2152:45df with SMTP id fd18-20020a056a002e9200b00682215245dfmr15987215pfb.9.1689187864414; Wed, 12 Jul 2023 11:51:04 -0700 (PDT) X-Google-Smtp-Source: APBJJlHlQCaWObjxHaiTwvynrZRCe/A2ZVNTWOnApvy0Q/LaOS/2GdsqZIJZWcMWX0o83mVhX6uizQ== X-Received: by 2002:a05:6a00:2e92:b0:682:2152:45df with SMTP id fd18-20020a056a002e9200b00682215245dfmr15987201pfb.9.1689187864131; Wed, 12 Jul 2023 11:51:04 -0700 (PDT) Received: from smtp.gmail.com (174-045-099-030.res.spectrum.com. [174.45.99.30]) by smtp.gmail.com with ESMTPSA id x41-20020a056a000be900b00682a9325ffcsm3984968pfu.5.2023.07.12.11.51.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jul 2023 11:51:03 -0700 (PDT) From: Tim Gardner To: kernel-team@lists.ubuntu.com Subject: [PATCH 0/2][lunar/jammy linux-azure] Azure: MANA: Fix doorbell access for receives Date: Wed, 12 Jul 2023 12:50:57 -0600 Message-Id: <20230712185059.723271-1-tim.gardner@canonical.com> X-Mailer: git-send-email 2.34.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/2027615 SRU Justification [Impact] It's inefficient to ring the doorbell page every time a WQE is posted to the received queue. Excessive MMIO writes result in CPU spending more time waiting on LOCK instructions (atomic operations), resulting in poor scaling performance. [Test Plan] MSFT tested. Performance improved substantially. [Regression Potential] The MANA receive queue could stop. [Other Info] SF: #00363437 These 2 patches have been submitted for upstream inclusion. I expect them to eventually come down via stable updates. Acked-by: John Cabaj Acked-by: Khalid Elmously