From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.224.131 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796063387; b=XI/lvg/JIn4IluaxgiB1V3HEo6q69pxLqZOBUVqUAbdRHUl/i8zTQYZ4NiETQA/s/SqM yEeQYFTQlw31vIRdnTXw8do/dFEpUdjpKHmk/APoK6UB9+udm5knFy05sNlc4MkFx+Xs/ qiARHYmoeLwmD3h0Sb4NuraduUmzhv9UYnHaB/A9W8WUrKY+plUMzh6Tai66gLOQm5ewh KJJNxJMvHoJEezDlQbVUtCxgW+vWVZgCar2YWhcsFuuqWcNmKmSS2npRjmsUN+5DOHgXV ULSvyIgDaFDGVHfdmOx12u5ZRBUwdKK+xW+lnlB4tBhJ+nB0Grnt8ta7cU0cB9ACN8g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796063387; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding; bh=hCc+dlMwO0GmuJzHJonCu0tU8IaKfcnn+D1skVoMNUs=; b=WBzLVD3n3nzZZv2/fvM6xQgIKNUpizx8nKc40SeIY8buUxstnAvlELgBXvhRhfNB4S5J BlKmJnBEq/fsOe2g9hQxYwPfp+m5+2Q+cl9DDQX0RQ1tp3wkHU0ZZtF66kdffE5ZKHNHL pbbsDx9dN000aXHhjmMjN26N+EJR56MdSNO4hOCn5L6i62lQcrST6i4cNpdYWuD7KCcTe sWR2uChqbv/1nvVq6T3Glv54KavaV3lXmSK1ZzZZ0V8M6S+oqUrqqXRauUuV/GJnKNSBY /FjvhY+PQFcudT/xomDhuvdw1sQDfeL23Yb6dK2WK33DoWBYqL4THfBmBvTFAsPVRbA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=NzoQbetn; arc=none smtp.remote-ip=74.125.224.131 Received: from mail-yx2-f3.google.com (mail-yx2-f3.google.com [74.125.224.131]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E7113606A327 for ; Mon, 30 Nov 2026 18:29:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E7113606A327 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=NzoQbetn Received: by mail-yx2-f3.google.com with SMTP id 00721157ae682-8b4f02b34f5so15860307b3.1 for ; Mon, 30 Nov 2026 10:29:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796063386; x=1796668186; darn=vger.kernel.org; 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:content-type; bh=hCc+dlMwO0GmuJzHJonCu0tU8IaKfcnn+D1skVoMNUs=; b=NzoQbetnXK7hjDXA6IABsive8USt3AmzOe85c7YWddS0WfbPU2Qttm0Fp4X/r8xoZW QJIh3nKweDXGiubLW4mHa7BjLvoW/ucuszTHndSosczY2y8ZMi+COI7QacdnJPifuZco eTNEVIa+p3olfH+N99uRm15BS52b0Hdh9ZTLs6jfRyoA1t1iV4mhs73KGlTHv3jX6NSQ esFUgMUU/qWRGDKe6s7MgPgGzeL7ickPoQNEmHE4qMJ+0fb7iOZvJG2tE5YAPBmfpzos /xQXZuGGtRQulVbGvjO5OQfu3Q2YLgc+NYiQorb1hfQzSH62dJdY6t1uOz2RlQDUqNU/ jUmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796063386; x=1796668186; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=hCc+dlMwO0GmuJzHJonCu0tU8IaKfcnn+D1skVoMNUs=; b=Waug8rbZgGMdLLEybXohIH3sJShxEaSSDMMlfyIf13ghafjxA8GrvDe54iMemHjOLT tc8z3M1wBkZEpLflFLEvRR3T2pKR9JQj5AGhNafFjIQtV60QYavSeELwFJzE+/EjpUN2 cFBrkrFMtwmroerZNuL/10TUknoqkKVwbgwy1YRBXySVaKVbpTGArPKYxCNyi3LtY6qo mhXAmGXYE9jTY/GzuTWx4J0oi62gGyE8q1wry42aSKEJd6KqV5XUJiLdtDLduegToVeZ JsaH+cRlffGVOFzygdEyD2aRkzAH/rfMFgUtvThdV9F+BTONSa8x4aHTXMSs3mrHzXn0 4mFw== X-Forwarded-Encrypted: i=1; AL+hErHipP+153JiZJo1NxEpyjB43tSeGTr1WOnwb3R7apCAOM8xmFhO6oTr/rNRZKvb+F7kKhQDTI6I1VMz/cc=@vger.kernel.org X-Gm-Message-State: APuU4Z9eHoh7Vi8WwGOwhfzdp+QqoEUJVu/Wku2VtVJ8O81jMSBLP56a Rk4ZrQ4ceC25tSu/x0OpIEqtrQEGbJSuuCAgTqv+naCCKbnLdWHc2SM= X-Gm-Gg: AZFdTZc4HQOYPCW8JzIEnAOBPHn2GEPXRm3qaPQJua2psrSlyra2fBvXcMDdeOMtoiF 6N58dbcOFDa8HKc1c82sqSgKmQf8cl50qWEGUutl70zr7CUNgOvOxqRlwkk7VH2wlyxpbk2SztA vyKnb47JunKG7lpKHi7W4CPNRqfGCsIf0MKPyAYgn2LiqKL8fFu8gsqdqq6K3VEpCAoGwLtpoZh EqP/Vuntkqnx39Mp/znvlsuaHJ8zGKEYRjzc0dqeXdvZg4NvYgoXYfWWldwLP0/aKVt6kiKZZQq jAY0PwBLGqCQWjxbQ+Aj3wY/QrOqZkelVfYUapysRCOpgQEmmfVVCh2xC/VVSMWaaPYjRijekTZ U/fdZA5RlZBvYlacxyh3/GOwxABA7vRuJyr3nsr2/w2IbNdzw/rYDXAMOC5+w+s7z4ULLR84jjX eMtR+Le5yqtQJrB6vYNV2K+Hmfy4ywKGLoSDqh4ZsD6DJo9Y5Irw0bFiYcBycJmAVP5YKafIZOr PCtO/NbDP3xO5kWaEZiEIQ9JcJ8h3ERR8fPI8mzinwnpColW5Hom3Hi1okYgZw+IrNAcVf0l4yX VTW7sGC86vtDtz5G+aUQENBbFwFZmdSdPButrq60Nvp0IkY0T3L7rfLFNED19OK07Nkuek4= X-Received: by 2002:a05:690c:c4e1:b0:8b4:dc54:1d1a with SMTP id 00721157ae682-8b52049f264mr151712317b3.31.1796063385684; Mon, 30 Nov 2026 10:29:45 -0800 (PST) Received: from localhost.localdomain ([2600:1700:4577:1050:df8:9709:d11b:8e64]) by smtp.gmail.com with ESMTPSA id 956f58d0204a3-67df330acc4sm15532261d50.4.2026.11.30.10.29.43 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 30 Nov 2026 10:29:45 -0800 (PST) From: Ravi Jonnalagadda To: Nathan Lynch Cc: Vinod Koul , Frank Li , Bjorn Helgaas , David Rientjes , John.Kariuki@amd.com, Jonathan Cameron , Kinsey Ho , Mario Limonciello , PradeepVineshReddy.Kodamati@amd.com, Shivank Garg , Stephen Bates , Tycho Andersen , Wei Huang , Wei Xu , dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Subject: Re: [PATCH v4 00/25] dmaengine: Smart Data Accelerator Interface (SDXI) basic support Date: Mon, 30 Nov 2026 10:29:42 -0800 Message-ID: <20261130182942.82006-1-ravis.opensrc@gmail.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20261103-sdxi-base-v4-0-3668ccc7aab8@amd.com> References: <20261103-sdxi-base-v4-0-3668ccc7aab8@amd.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit On Tue, 03 Nov 2026 20:49:41 -0600, Nathan Lynch wrote: > This submission adds a driver with support for PCIe-hosted SDXI 1.0 > implementations and includes a DMA engine provider with memcpy > capability. Hi Nathan, I am evaluating SDXI as the copy engine for page migration between DRAM and CXL memory, for tiering with our DAMON perf-event RFC v4 [1]. The migration results are in my replies to Shivank's offload series [2][3]. This reply covers the driver on its own. I tested v4 alone on mm-new (7.4-rc1), as the host driver of an AMD EPYC system with two SDXI functions and a CXL Type 3 memory expander. All correctness tests passed. The throughput numbers below include copies to and from CXL memory. How I tested ------------ Three tests, memcpy on both functions: - dmatest: DRAM to DRAM, verify on, 4 KiB / 64 KiB / 2 MiB on 1, 4 and 16 channels, 100000 iterations per thread, 3 runs per case. - A placement test: a small module that copies between 2 MiB-aligned buffers on chosen nodes (DRAM to DRAM, DRAM to CXL, CXL to DRAM). Same sizes and channel counts, 3 runs per case, in two modes: * comparing every copy, for correctness (100000 copies per run); * streaming copies back to back and comparing only the first and last copy of each burst, for throughput. - A stream test: 64 KiB copies DRAM to DRAM on one channel for 60 s, twice, to check longer runs for DMA errors (the runs above are cut into chunks of at most 10 s). It does not compare the data. What I saw ---------- - Both functions probe with max_buffer 11, max_cxt 63, 140 MSI-X entries and 64 vectors allocated. - dmatest: 37.8 M tests, 0 failures. - Placement test: 16.2 M copies, 0 errors, 0 mismatches. - Stream test: 6.8 M and 7.0 M copies, no DMA error. - Placement test throughput, streaming, on the first function: GB/s = total bytes / wall time from the first submit to the last completion over all channels, median of 3 runs: size | channels | DRAM->DRAM | DRAM->CXL | CXL->DRAM -------+----------+------------+-----------+---------- 4 KiB | 1 | 0.6 | 0.6 | 0.6 4 KiB | 4 | 2.1 | 2.3 | 2.3 4 KiB | 16 | 5.8 | 5.9 | 5.8 64 KiB | 1 | 7.5 | 8.7 | 8.4 64 KiB | 4 | 16.0 | 23.2 | 22.8 64 KiB | 16 | 23.0 | 41.9 | 36.8 2 MiB | 1 | 23.0 | 40.6 | 40.9 2 MiB | 4 | 24.1 | 47.7 | 47.9 2 MiB | 16 | 24.4 | 47.7 | 46.5 * At 2 MiB, from 4 channels on, both CXL directions reach about 48 GB/s and DRAM to DRAM about 24 GB/s. More channels share that rate evenly. - The second function measured within 0.7 GB/s of the first at 2 MiB, in the runs that compare every copy. Tested-by: Ravi Jonnalagadda What a faulting descriptor does with this provider is in a separate reply on 25/25. Thanks, Ravi [1] https://lore.kernel.org/linux-mm/20261005-damon-perf-rfc-v3-send-2026-10-03-v4-0-b03452e137f3@gmail.com/ [2] https://lore.kernel.org/all/20261128224616.66122-1-ravis.opensrc@gmail.com/ [3] https://lore.kernel.org/all/20261128225943.66318-1-ravis.opensrc@gmail.com/