From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.224.134 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796063387; b=X0/Q+0S/qdMYgZUeeG8fPLoXEI9Zt5rrqt0J6l0+UZJM4J9Fwyc4GCySSrZQ404Ck31V ge2kuck85RsYz0TLZfhss9l8tGne2G4zIzI7umvjTHTqvsZX+zTqTLNGmtDYvaXTLe6Ww MjvX41KBc0ti0WSwKeWVJ0kWu7LokNA28dkMktPDJmaSbMgdpm5clQbLhynXttSTEq2cf bGvjkKK84vuTb45uPH0py6+mpV0CzoFE0xaW0731yLM/P/b+Y40xGQmXe++hXJKxjaiVD 2Y9RI68v6G+6zp6ivDTg2GNtg6+nB0XrhTYrt435KZGZ5fuvNy8BAwExCr4+M64Ev7w== 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=XLdpvwg526Z6dxMAcBqGZq5O9qcGrdIaCWyoQBdEU82SvZtvyZH2EqYFFoeZDhsHlevk R85s/5aJZK4FJ/JwYXXXbdJjmw+aGJEMDc25epCa1bl0KVLMfAGgwjoqvBJ+RtQb5zjKr RG3MdCALguLl+rUh0Srvnqjyt6F5+Jk0OH+JT26QQQI/iEXYh0I8d0Nzovl28+6iDkT5Q 4vIRALah4nMRaFBZhEIjwyQ8nasyklDERaKvmweXY9ponhYyNoaMo3GNQYJUNj2aU2UZ/ fI5WUIyVf5nHJeN3ZnMy9gNMz+A3PwgZUTr/xlyNxnFo7I2/s43E7uZfZIfoA7ib4bw== 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.134 Received: from mail-yx2-f6.google.com (mail-yx2-f6.google.com [74.125.224.134]) (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 DF769606A320 for ; Mon, 30 Nov 2026 18:29:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org DF769606A320 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-f6.google.com with SMTP id 00721157ae682-8b3559d2968so16258687b3.0 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=WjMRqXAxNnMuRWfV/duJjSCSJJfCYAcaoWs54KbIOT+G3lLJ5oerTb/RkP8oZvx8mt al8xd49esRYxvC6OEH5RIb8qyL6p9U6i27v9+eRanxND59NI8lQstS0brhCoSFQKzHib UB3hjMmoB+iYVKWl1+bJTQuMOuf8XHwPFUehZStWEd+TS02WsV/9mP6ZRBzKqhO3UsdB RAWZo0uMbAzEdNbQYGedZKmI0rAhec1EYVL8heBP1QMABEWEBk3dAFRKOSYer/E/W+nx QfDhphIOF9yk6it7K/A2wUaXr3+DkIPbfzht1AhCzDAsLEJbncTpkNK5rd1K+lKsBWwO 4y+w== X-Forwarded-Encrypted: i=1; AL+hErFLfAJQz+ockNoL0fpIa+03TOqrP+qnq5Zz116rbOIl7r16r55ld7hXIuj3ElplKaK0eTcOG1/EYH4=@vger.kernel.org X-Gm-Message-State: APuU4Z8rAvTUDemlrtSmSno8UQgi1thIQMK2JjAOSeRemyPBxUWmBFKZ Nk8/h0vrDG+aKT9D91nK+A1dflo06QKMom8ii/Ak4RZHZ3EnVi3jpwM= X-Gm-Gg: AZFdTZcc64BKX4gVJUJkPAYRKWNYkwYDwM2IMa4HrFQxsEiwyIklbtRZLThN28RNsJg ke2g5dOMJemqqMGdRlfHF5aSfPL/YTM75BjIDaQRFZkpLKlZFdAD7HnlpD1rmQi7+1f9Ewc7oOF EKg0ydo6y7kOJx3is8+re0Y7nsoNO2rHVboytf1wPbNmXQAnD0K1d+HEsFu23GMdgS9+cDqg0OB PX2IUanEIcsjE9F8A8W1eSG7rqEzEcxjxigYJbRQ+Nua/BTigj51DNOBC4IS5J32OOSwP0W2e1f Al2DjybeYyn+9LkEPjByBG4Uv5OcyKUCPxSE4yNEW+PBRZm2en+Yrmbc0aJICXTY7xoxXJpRpze A0jNwSU0+C1cd/zqLHXR7DYLPLzeWjVyZVEKfgb7kNxALJDyoz4qPfxVchCXEa3gZcecEgFiL9g UlphH/ju70Ms1Py/BM261dJXSGWjQOF/Kj4X/itMWLnUDRjFi8yA4ojdY9V1T8mYc8YY6E7zAcp qt9RZ6QwyxbxwF6tpaotKRk89Wn7Ush7PkWrvA88g9bP3FDWp7Jp8t1T4owj8yBHq6q3oUIyCyp o6fVN+opgTwcvvkIDF05PDG6XyNob8oZxPcDvUd/gkHkDuTGmB2R2/4R7EVZPsIytSf/YVI= 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-pci@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/