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 039BE43287 for ; Sat, 4 Nov 2023 18:31:37 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DE80B4029B; Sat, 4 Nov 2023 18:31:37 +0100 (CET) Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by mails.dpdk.org (Postfix) with ESMTP id 283C44029B for ; Sat, 4 Nov 2023 18:31:35 +0100 (CET) Received: from loongson.cn (unknown [192.168.100.1]) by gateway (Coremail) with SMTP id _____8AxJujzf0Zl+_I2AA--.49072S3; Sun, 05 Nov 2023 01:31:32 +0800 (CST) Received: from localhost.localdomain (unknown [192.168.100.1]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Axndzyf0Zl0YY5AA--.59043S3; Sun, 05 Nov 2023 01:31:31 +0800 (CST) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by localhost.localdomain (8.15.2/8.15.2) with ESMTPS id 3A4HAMBL157376 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Sun, 5 Nov 2023 01:10:23 +0800 Received: (from root@localhost) by localhost.localdomain (8.15.2/8.15.2/Submit) id 3A4HALnx157375; Sun, 5 Nov 2023 01:10:21 +0800 Date: Sun, 5 Nov 2023 01:10:21 +0800 From: qemudev@loongson.cn Message-Id: <202311041710.3A4HALnx157375@localhost.localdomain> Content-Type: text/plain; charset="utf-8" Subject: |WARNING| pw133872 [RFC] mempool: CPU cache aligning mempool driver accesses In-Reply-To: <98CBD80474FA8B44BF855DF32C47DC35E9EFD4@smartserver.smartshare.dk> References: <98CBD80474FA8B44BF855DF32C47DC35E9EFD4@smartserver.smartshare.dk> To: test-report@dpdk.org Cc: =?iso-8859-1?q?Morten_Br=F8rup?= , zhoumin@loongson.cn X-CM-TRANSID: AQAAf8Axndzyf0Zl0YY5AA--.59043S3 Authentication-Results: localhost.localdomain; spf=neutral smtp.mail=q emudev@loongson.cn; X-CM-SenderInfo: pthp3vthy6z05rqj20fqof0/1tbiAQAFD2VFqig8QgANsa X-Coremail-Antispam: 1Uk129KBj93XoW7AFyDCr43Gr1UKr47KF4UGFX_yoW8uF15p3 y3K3ZxtrWkZFWIyr4fGF1Fy3WfJasa9rWUJw1rJw42yrn8tr1rZF1kGF15ZFWrK34fJw47 Ka1jkr9Fg3yUWFcCm3ZEXasCq-sJn29KB7ZKAUJUUUU8529EdanIXcx71UUUUU7KY7ZEXa sCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29KBjDU 0xBIdaVrnRJUUUyCb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2 IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48v e4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Jr0_JF4l84ACjcxK6xIIjxv20xvEc7CjxVAFwI 0_Jr0_Gr1l84ACjcxK6I8E87Iv67AKxVWUJVW8JwA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_ Jr0_Gr1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4CE44I27wAqx4 xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jr0_Jr4lYx0Ex4A2jsIE14v2 6r1j6r4UMcvjeVCFs4IE7xkEbVWUJVW8JwAKzVCY07xG64k0F24l42xK82IYc2Ij64vIr4 1l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK 67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r1Y6r17MIIYrxkI7VAKI48JMIIF0xvE2Ix0cI 8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I0E14v26r1j6r4UMIIF0xvE42xK8VAv wI8IcIk0rVWUJVWUCwCI42IY6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E87Iv6xkF7I0E14 v26r1j6r4UYxBIdaVFxhVjvjDU0xZFpf9x07jUa9-UUUUU= X-BeenThere: test-report@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: automatic DPDK test reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: test-report-bounces@dpdk.org Test-Label: loongarch-compilation Test-Status: WARNING http://dpdk.org/patch/133872 _apply patch failure_ Submitter: Morten Brørup Date: Sat, 4 Nov 2023 18:29:40 +0100 DPDK git baseline: Repo:dpdk Branch: main CommitID: 34c0c38ab772e8eea5243f530866d5b68519e7c7 Apply patch set 133872 failed: Checking patch lib/mempool/rte_mempool.c... error: while searching for: mempool_event_callback_invoke(enum rte_mempool_event event, struct rte_mempool *mp); #define CACHE_FLUSHTHRESH_MULTIPLIER 1.5 #define CALC_CACHE_FLUSHTHRESH(c) \ ((typeof(c))((c) * CACHE_FLUSHTHRESH_MULTIPLIER)) error: patch failed: lib/mempool/rte_mempool.c:48 error: lib/mempool/rte_mempool.c: patch does not apply Checking patch lib/mempool/rte_mempool.h... error: while searching for: RTE_MEMPOOL_CACHE_STAT_ADD(cache, put_objs, n); /* The request itself is too big for the cache */ if (unlikely(n > cache->flushthresh)) goto driver_enqueue_stats_incremented; /* * The cache follows the following algorithm: * 1. If the objects cannot be added to the cache without crossing * the flush threshold, flush the cache to the backend. * 2. Add the objects to the cache. */ if (cache->len + n <= cache->flushthresh) { cache_objs = &cache->objs[cache->len]; cache->len += n; } else { cache_objs = &cache->objs[0]; rte_mempool_ops_enqueue_bulk(mp, cache_objs, cache->len); cache->len = n; } /* Add the objects to the cache. */ rte_memcpy(cache_objs, obj_table, sizeof(void *) * n); error: patch failed: lib/mempool/rte_mempool.h:1373 error: lib/mempool/rte_mempool.h: patch does not apply Checking patch lib/ring/rte_ring_elem_pvt.h... error: while searching for: uint32_t *ring = (uint32_t *)&r[1]; const uint32_t *obj = (const uint32_t *)obj_table; if (likely(idx + n <= size)) { for (i = 0; i < (n & ~0x7); i += 8, idx += 8) { ring[idx] = obj[i]; ring[idx + 1] = obj[i + 1]; error: patch failed: lib/ring/rte_ring_elem_pvt.h:24 error: lib/ring/rte_ring_elem_pvt.h: patch does not apply