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=Q/Ve1aQlbIE2MjWDktP0djBe8QhLSQmRUdIGEETacUO7Ka2zbJ2ypo6u39G1APpDVLCN EwjFRPAwGyQI2HpSwgUJI88iuD6qgkUWyaWkdMYfgeW2DYf+DzxRwGWg4H+vfr1qzwemf s2w/gEDljqnyBk11O3YYEV829eYJ9ePnB2QdQSmq8JiDqj49fKqRr8rROKZKxD/VhWZWV CAOT7ymx0Sc5qYjuzh9Flc08T2RpNIqAo5kGfVRLmzkoB5pWj308lRZxRsz5aXqZhu73C sbUcRrvEnQXPqP7FykM1iYBr2RwzjUZszkKO13nwVJm6nW/TacVGFC5qOWHlEFkS5nQ== 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=hI/75MZt8LNfwMJcapBMuFwuRMFJS3FbaK5bV8LgaqmHpgJZHMM4v168rr4+GPNzPlce hEmZk10hC6HAr1jtxooXW119N1AdgougM978jJ9+kyiyxJusuT9lrXkBny17RSBsDXqT3 pLirmoe/BQQENgy6XPR+7fBLnkrJRrJuaJfl4ToIlwdO2Z8VWhL0Dq5JZlnFyS1tq0IOk 4E0nssp2wEPlmE9qvEKOu839BpAoHk2Yj8eCVCRoDv/z8dBZ6Xzht4f6vCP+SWo/wW55V VVbteTGgzsSfGdeNIsrSwf5hjAJKjIEebBa2lp+gc22JaTd96+6QS5VKpqShWChm6Hg== 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 E6F53606A325 for ; Mon, 30 Nov 2026 18:29:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E6F53606A325 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-8b4f02b34f5so15860277b3.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=XK/zlQs80DWTxUcWK600p6RZrMwoiQbRSqkw+wRKFbZpr+2fI3C/LxSDG2N7tofRIn zYQtHWuHtJlI0XsQzvHSQErm9DFowtnPVtzEdo3p5sI6fsCIs5UUDJjoaCO0UCAa/yh9 medPfOQezfAeG8p16l3K0TNx8KhlUPBrIibltpDbnkxHaTFMtQ26EaCx3GWprYYE93oR aeUZC70lBVSoBhbl5Gn9lasjTypoHm0s0zSPACXgSLSIvwGNMwtiDMmGMx/UZl9f0yyL UDShP2QvWRt3jMpVpGBfRXc5d4kNBCJzPN16HU1tudurOyM0YVK3L/4C8iKcWQV8Kqae dCpw== X-Forwarded-Encrypted: i=1; AL+hErHyOeZDk1wzuKKIAvtuaWnRJlNsR1I1nV3zq7aoRXIgvwnYoHJsliLpD8ivM5uumfgnzgtGFN2tDL8=@vger.kernel.org X-Gm-Message-State: APuU4Z/gZlr/FIDGr5BRxgNQk17t776vU73t1RCED/35TFx7izlN2HR5 XMFP0N0CYmtAyY7gyjvg6l2vuKr/7CPlMv9qFhUkiDZZ11d+reNAtrs= X-Gm-Gg: AZFdTZcvWd7vNdPgdmmBSPYyoqqcYqt6K1RJs7d1Xlm389v5qdd7cew/zSuRMIYczTp nCUSV+HM3T+5z7dt7veYbLpsBOXin6RLq/A1N1jOtVtZMD/+y79x6p7gkhh9qIqazbZAjVRshob rmXOKjGa7zVbupnqz8xDeTx6WUVzm/Frz7Jn4UgdTWMUoHQayhntTtFVV/uYi+4xjx7iJxDcL8G mffYFJ7u9DK/eXHgWL2mipQQMjzIKLG9GM/A5aPtRredkHYQQdzNTclFOV6B4xfXCccG/dXPzOd ZjdGDXU/ZWh1WmRzHi1LWsBihnaNzOvclRL34EFKnmQmNSj5Btz2kgbpiWP6+ScC9IRQAHtXK/5 xQ2LL4CWKdGfFSqvSrAINHWGCBWhtoPqQsOyn9E+G0QRRj5wLwucnKNLpfE10EK9DhS+DoHJZxI d14FKE3cWrN4hGVmrjJe/8yBQoPsdu9jfKZopKDudiXk7ACMLebgE24sfPsMYUgQkSzO7fc/Anl cwclZtxoXp2zE5iUeuMowlKkumeI7Q6h/HQBfXmI8plsjkA5kPTCJr+nQRNFU/awrQCp5ocO+nD 9sUmLUp5zZVrjRgFVnWaWfPTntRR4Lp95EctavyJXHancEUuj2a/MPjeDHEc54juKPo41dw= 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: dmaengine@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/