From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id ED7EBA00C2 for ; Thu, 3 Nov 2022 10:30:27 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E453940694; Thu, 3 Nov 2022 10:30:27 +0100 (CET) Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) by mails.dpdk.org (Postfix) with ESMTP id 36D3340693 for ; Thu, 3 Nov 2022 10:30:27 +0100 (CET) Received: by mail-wr1-f47.google.com with SMTP id h9so1786505wrt.0 for ; Thu, 03 Nov 2022 02:30:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=XhH/Q7kCIAHzEoXCJFyHk3p66BlJbyByo9LM0w8XHfY=; b=AftIR3mIB7cuU1XOAyyolNMCISlVBSnFPJRn64hVgxsnTC/vOyW+lECgLkrJt5Js/e gk++0AbAro2rqBTkXrgeRpB2Wgc+WCYqhH3FF2/5fIo6zRjA+Xed0xFJlVBYGWSDp82m M06AGHSSdUCAA+ciQ4zYSX16zVGi8xlDqtyfvXSNwp6JsypJ9KapzQ4gO6OYzI7ZI6lO X+oH2yhK+9czFn/INHtHV9kM19hHQPciwB30CPS3ePijlQi1M/FQGTt/sNWjqDHn2iz3 wFXxYOfOhPdFFnfN5ymCFKOjW4uJohy6A/8iUJA0Q5xF+S4yxdyLVWoN7J+AnfjC9W6r Hv/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=XhH/Q7kCIAHzEoXCJFyHk3p66BlJbyByo9LM0w8XHfY=; b=CZLIxzakQ/abJ2DSa2dqb88H78ANI7pHCZyzYhVoBrbxLofeLs71s41AT8oZSyiEb6 C75vG1UIllucypSfFCud2atAq2vpsDGLrLkvoklCIygV2yV8NWtEei+waPyfQwg8Fgks Ka745JIXVL9+qV6sr8ZNC0at/Obphhz3wUKv9pePw/p8mq1BYnM7wJ2iPF59Wca4ZqMd TG01uXjDZ5v6kCy1ReUt7RUvZnXnENlDD2o6l1/39087l0OPhny9RIkqv7X2UpMmnfoq nC++L4tpUEN8+5spn7jz6PKlpMhe1XNB9YRAt6VQbOh5WQUzzZuTm8bplOqFUBY/jvx/ YIBg== X-Gm-Message-State: ACrzQf3s4r5YegjfY5ooLnK81hiRjeVEJAb/NdLoBfDv2hEe/6dNV3Re ZELfJE7Tr/oKwaLNC4GH0wcuulh9Mm4Q0WJV X-Google-Smtp-Source: AMsMyM5ty1DzFp/M6rpElAu9q5Yv/D8olEwyN5KUQFWpIpjlLTzZODX4VFupI3t/CyOzwGejHX74xw== X-Received: by 2002:adf:ce90:0:b0:236:ef9e:d7aa with SMTP id r16-20020adfce90000000b00236ef9ed7aamr5055261wrn.534.1667467826877; Thu, 03 Nov 2022 02:30:26 -0700 (PDT) Received: from localhost ([2a01:4b00:d307:1000:f1d3:eb5e:11f4:a7d9]) by smtp.gmail.com with ESMTPSA id p9-20020a05600c468900b003cf75213bb9sm5134533wmo.8.2022.11.03.02.30.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Nov 2022 02:30:26 -0700 (PDT) From: luca.boccassi@gmail.com To: =?UTF-8?q?Morten=20Br=C3=B8rup?= Cc: Bruce Richardson , dpdk stable Subject: patch 'eal/x86: add 256 bytes copy for AVX2' has been queued to stable release 20.11.7 Date: Thu, 3 Nov 2022 09:26:59 +0000 Message-Id: <20221103092758.1099402-41-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221103092758.1099402-1-luca.boccassi@gmail.com> References: <20221103092758.1099402-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Hi, FYI, your patch has been queued to stable release 20.11.7 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 11/05/22. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/kevintraynor/dpdk-stable This queued commit can be viewed at: https://github.com/kevintraynor/dpdk-stable/commit/4e1e1d8e9c44fe86efe2dba3235cd72c7f1270f2 Thanks. Luca Boccassi --- >From 4e1e1d8e9c44fe86efe2dba3235cd72c7f1270f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Morten=20Br=C3=B8rup?= Date: Sat, 20 Aug 2022 12:30:32 +0200 Subject: [PATCH] eal/x86: add 256 bytes copy for AVX2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [ upstream commit a9cfccbb03a7cebfb8e3265af7fb7796198ac2e9 ] The rte_mov256 function was missing for AVX2. Fixes: 9144d6bcdefd ("eal/x86: optimize memcpy for SSE and AVX") Signed-off-by: Morten Brørup Acked-by: Bruce Richardson --- lib/librte_eal/x86/include/rte_memcpy.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/lib/librte_eal/x86/include/rte_memcpy.h b/lib/librte_eal/x86/include/rte_memcpy.h index b678b5c942..d4d7a5cfc8 100644 --- a/lib/librte_eal/x86/include/rte_memcpy.h +++ b/lib/librte_eal/x86/include/rte_memcpy.h @@ -371,6 +371,23 @@ rte_mov128(uint8_t *dst, const uint8_t *src) rte_mov32((uint8_t *)dst + 3 * 32, (const uint8_t *)src + 3 * 32); } +/** + * Copy 256 bytes from one location to another, + * locations should not overlap. + */ +static __rte_always_inline void +rte_mov256(uint8_t *dst, const uint8_t *src) +{ + rte_mov32((uint8_t *)dst + 0 * 32, (const uint8_t *)src + 0 * 32); + rte_mov32((uint8_t *)dst + 1 * 32, (const uint8_t *)src + 1 * 32); + rte_mov32((uint8_t *)dst + 2 * 32, (const uint8_t *)src + 2 * 32); + rte_mov32((uint8_t *)dst + 3 * 32, (const uint8_t *)src + 3 * 32); + rte_mov32((uint8_t *)dst + 4 * 32, (const uint8_t *)src + 4 * 32); + rte_mov32((uint8_t *)dst + 5 * 32, (const uint8_t *)src + 5 * 32); + rte_mov32((uint8_t *)dst + 6 * 32, (const uint8_t *)src + 6 * 32); + rte_mov32((uint8_t *)dst + 7 * 32, (const uint8_t *)src + 7 * 32); +} + /** * Copy 128-byte blocks from one location to another, * locations should not overlap. -- 2.34.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2022-11-03 09:27:27.924973626 +0000 +++ 0041-eal-x86-add-256-bytes-copy-for-AVX2.patch 2022-11-03 09:27:25.413423215 +0000 @@ -1 +1 @@ -From a9cfccbb03a7cebfb8e3265af7fb7796198ac2e9 Mon Sep 17 00:00:00 2001 +From 4e1e1d8e9c44fe86efe2dba3235cd72c7f1270f2 Mon Sep 17 00:00:00 2001 @@ -8,0 +9,2 @@ +[ upstream commit a9cfccbb03a7cebfb8e3265af7fb7796198ac2e9 ] + @@ -16 +18 @@ - lib/eal/x86/include/rte_memcpy.h | 17 +++++++++++++++++ + lib/librte_eal/x86/include/rte_memcpy.h | 17 +++++++++++++++++ @@ -19 +21 @@ -diff --git a/lib/eal/x86/include/rte_memcpy.h b/lib/eal/x86/include/rte_memcpy.h +diff --git a/lib/librte_eal/x86/include/rte_memcpy.h b/lib/librte_eal/x86/include/rte_memcpy.h @@ -21,2 +23,2 @@ ---- a/lib/eal/x86/include/rte_memcpy.h -+++ b/lib/eal/x86/include/rte_memcpy.h +--- a/lib/librte_eal/x86/include/rte_memcpy.h ++++ b/lib/librte_eal/x86/include/rte_memcpy.h