From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D6DB4606A31C for ; Sat, 28 Nov 2026 22:59:53 +0000 (UTC) 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=Wwv4pRe7 Received: by kanga.kvack.org (Postfix) id EB8186B05B7; Sat, 28 Nov 2026 17:59:52 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id E8ECF6B05B8; Sat, 28 Nov 2026 17:59:52 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D7DEE6B05B9; Sat, 28 Nov 2026 17:59:52 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id A1B1F6B05B7 for ; Sat, 28 Nov 2026 17:59:52 -0500 (EST) Received: from smtpin15.hostedemail.com (lb01a-stub [10.200.18.249]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 21ADA1A0641 for ; Sat, 28 Nov 2026 22:59:52 +0000 (UTC) X-FDA: 85486047024.15.315429B Received: from mail-yx2-f11.google.com (mail-yx2-f11.google.com [74.125.224.139]) by imf07.hostedemail.com (Postfix) with ESMTP id 3784340005 for ; Sat, 28 Nov 2026 22:59:50 +0000 (UTC) Authentication-Results: imf07.hostedemail.com; dkim=pass header.d=gmail.com header.s=20260707 header.b=Wwv4pRe7; spf=pass (imf07.hostedemail.com: domain of ravis.opensrc@gmail.com designates 74.125.224.139 as permitted sender) smtp.mailfrom=ravis.opensrc@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; d=hostedemail.com; s=arc-20220608; cv=none; t=1795906790; b=xw9chtsukvrnO4NJ66JFD47tfG0dk+/F9MbdEiYtGFMJu/mdldtpwMXUjGjIXZslQjNcrW mcbViHjxRMkOD9hFit0ftEpMf5ZtvFTjwJChuJr2n+TLAkOJH16GrouATaNzBtdw8kPQ0p QMmTBtL4ceG3Yqx66K7uzAttAvtSJ2g= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1795906790; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=HOFenBOczxZpwyQb2YPLrGrSruYpUJCLaeLC3BvKxkU=; b=Q+91weE0YGzB7Cuq25RkE9YY5npKlvFXXFLmQGwXW3wUQCBlTdG+dNeVQBltwDVQvfshE+ DkmIlx3iPYfLyIoAZoLkicGFNgFxiV1mkNY4Xr/DO2roH7x0wZJI7on64MRUylM0uxr0Ak 3OV80Dldp/RFWwVOUIGB+kK8aCj2SO8= ARC-Authentication-Results: i=1; imf07.hostedemail.com; dkim=pass header.d=gmail.com header.s=20260707 header.b=Wwv4pRe7; spf=pass (imf07.hostedemail.com: domain of ravis.opensrc@gmail.com designates 74.125.224.139 as permitted sender) smtp.mailfrom=ravis.opensrc@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-yx2-f11.google.com with SMTP id 956f58d0204a3-67da3aca3b8so4684478d50.1 for ; Sat, 28 Nov 2026 14:59:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1795906789; x=1796511589; darn=kvack.org; h=content-transfer-encoding:mime-version:content-type:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=HOFenBOczxZpwyQb2YPLrGrSruYpUJCLaeLC3BvKxkU=; b=Wwv4pRe7sW77PXXOqdgKQXW37iB9JjbpNd+H0pEk6PmjcUzx9S1RuGjYIYAKz87Lz9 Xs/0ozA5dGo3Ib81LmQnrD/bHFognW0HETfOGIvfs9GIifhTcvN1BO85aDRfmV7o7247 Q0fRuGeo+Gnds9OK0Viytiycxvqds8VV7yYyL4eoiqBARzzIp9QfazbSfSPguxonU1/c sz9KzYlnJwcODQhg0LV+upRKfr+YIEDITy9zS2MRjZzQhFA9b8l2HeejRb235JNBt7zi 4amLTEOD8a4p2kJLg+MMTsDyGADVqeyORbNcZRS/VNwCKmt1mQ1ouvrj+ETxnx05DlZJ THSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795906789; x=1796511589; h=content-transfer-encoding:mime-version:content-type: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=HOFenBOczxZpwyQb2YPLrGrSruYpUJCLaeLC3BvKxkU=; b=xiqNGyP8wrTBR2PepwCQpRspHmYBBLprFsRiPjCSfc67fPbhkLEi5p4sp4k7cRN47L jQ8DYmPmkWnscYy3QGMr+OWu9I6JER4RdbwmfY9llDPzPj8W7I89L+Fff5C3JbHPAuIw yKJ2EAg8wJyEuzd/KD2Uq4HZ0NGOIfapVBerD5hh77efrK4Vo+pMsIdzKq5Zb6Xr3ASz 0BSsdGZeiMiv3QArnR7xkEUMlPV8ihSi7B8lHOt9OK9f7ZFEdA9CK5CZDM03N326feZZ etUPcvj81Vesg0lSKZyyciP4Vs49KbmLh5GnlnzH6f0V0OYqy/6EqkL6lgx95JpRbLyG txsA== X-Forwarded-Encrypted: i=1; AL+hErHsmw+qVflVgD9v8vJbIAaDx3MwM6ByQ3YQLisxozNNuSj7VbSe6viCy7V4/3k5PdwtmiuQoZS9AA==@kvack.org X-Gm-Message-State: APuU4Z8TGnd4e5HE07nnbhxCbEtVeefJ7SeZZzSOXuYJBjH+e7O1ucII 5Mf+ovJ/RfJeD14x22yQp+qxklhJmgTy5A+kCWNAiuT0xyEzXvaP08k= X-Gm-Gg: AZFdTZcjtU/w5HZT2uyf5HmgUsz7ZDmDdCIurKTl0Ju69gkGj1NAdi40ySriFx+Cro2 eiJylaw1C4kstR1/To9EFFevk+eRAZGZvbVUFI9dW0/WAedJkL+S8X6Op832pPn3WS1h6Jq+X/L PNXOQZTHdAhLXy30eLM3zhhvJUlegLnIK10/zMsfe8ce4r6osn+NORrsDXfOqstu0/SNQPMo+T0 75KbEFnbaVaAoEVhq4ucQ4XaPo+T+zEyXBbU8bh6Co/eOBNqbIL7WOs/21TJrKZgiWINuJZ+vHI YljK/w+PDh5Nu6Yb/GehMO1bS6wNq47PYLloFwfeTz0YOGU0L2+V7959w09ev9BdVLM3m7cMBoA hoWkn0EMMl2lJJ4KuKn3CoWzwh57DyCA7ebQP2jeS6lTim7lrqy8AMfUp5YKJWGgQTGaI5/dTG0 j0Ca3A4lq9UnN47c0gPg1V+Gonj5XbH74ZSU7Ec4KcQphYS6WFcFU7tH+U9eJun27pzyuPGsNQJ EjikSYwLKIfDfjSy36jisJgqhMhNXimaiS3P8C6H8pnR5mTviGFgNkYF/DldqIutfuQRppTnY/F nqci7OXv7Hep0ez05xPQY5TpTT5PUJXgG9C/IXuxHUcapVbjRAf9bit4/683LLrSf/w1AcbR6hl HCzIZ/KqgXDELxA== X-Received: by 2002:a05:690c:b05:b0:8b3:5d3:4f17 with SMTP id 00721157ae682-8b520329c48mr126809667b3.2.1795906789245; Sat, 28 Nov 2026 14:59:49 -0800 (PST) Received: from localhost.localdomain ([2600:1700:4577:1050:930:7703:322a:a2]) by smtp.gmail.com with ESMTPSA id 00721157ae682-8b52033f617sm108711087b3.39.2026.11.28.14.59.44 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sat, 28 Nov 2026 14:59:48 -0800 (PST) From: Ravi Jonnalagadda To: Shivank Garg Cc: Andrew Morton , David Hildenbrand , Zi Yan , Matthew Brost , Joshua Hahn , Rakie Kim , Byungchul Park , Gregory Price , Ying Huang , Alistair Popple , Lorenzo Stoakes , "Liam R. Howlett" , Vlastimil Babka , Mike Rapoport , Suren Baghdasaryan , Michal Hocko , Karim Manaouil , Frank van der Linden , Teja Vojjala , Pravin Tamkhane , Kinsey Ho , Wei Xu , Matthew Wilcox , Davidlohr Bueso , Vinod Koul , Bharata B Rao , SeongJae Park , David Rientjes , Xuezheng Chu , Yiannis Nikolakopoulos , Dave Hansen , Johannes Weiner , John Hubbard , Peter Xu , Rik van Riel , Shakeel Butt , Tejun Heo , Fan Ni , Jonathan Cameron , "Aneesh Kumar K.V" , Nathan Lynch , Frank Li , Dan Williams , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Mike Day , dmaengine@vger.kernel.org, Vinicius Costa Gomes , Frank Li Subject: Re: [PATCH RFC v6 4/5] drivers/migrate_offload: add DMA batch copy driver (dcbm) Date: Sat, 28 Nov 2026 14:59:43 -0800 Message-ID: <20261128225943.66318-1-ravis.opensrc@gmail.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260630-shivank-batch-migrate-offload-v6-4-da95d7e8b8a2@amd.com> References: <20260630-shivank-batch-migrate-offload-v6-0-da95d7e8b8a2@amd.com> <20260630-shivank-batch-migrate-offload-v6-4-da95d7e8b8a2@amd.com> Content-Type: text/plain; charset="us-ascii" X-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspam-User: X-Rspamd-Queue-Id: 3784340005 X-Stat-Signature: xpjjmrbchz1zjnbnuma58cfnd6tbnru8 X-Rspamd-Server: rspam12 X-Spam-Status: No, score=-10.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_PASS,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-HE-Tag: 1795906790-436655 X-HE-Meta: U2FsdGVkX1/fBw6J0NhS6t+cRRvyOdToErFrYwWb7ffrMiut3ml8aCIT6xC4qH+mWIGqH6+U8IlzZiyEoYKmUWzRxeke0lDD3bITcLCY8ma1jBCiaDYpBWR8g+dSj+iliDhQCAtbS+3ovabrC+WC16fupwLjJ7Q4JKoXXdh2KZqUnvIgOjx5sYUArLsFsN9RUI77fjdM+LTkDtcW2k0Rpmkkv2Qpbe62iV3BHcF4DDZGeRNxqHm/7y/lZFDqLfnHJsm/aucPA384LqvD6loq7ahCaAOKVET8+yfH2LJCQI/xY6iA3CbzQYSEvQKS+oWzAIXxBXCfse4NtfhST9OrziN178gVPH1DBrZXwuHMEZMkkItx0mKGHPSB665o8pCRj+ou2Tefe6gIbqOEzMpkwuDJn2bwHbjenlTYAkcWZx0L2MB56Yh4+LQQ/EjJ3bEKdkgQsAFmIKF3JesvzxvERJ3CuaClUcts8W7GEfvjrTh6Sy/5haXcDw6No/Hu3qOk+bGXctbvhAwS2wV+L2uUKEhsdd7tWNMXFpgFzWlTGCgQHlXp/LHIDRyPuC/Rp2PNJ7mMA+Nu7rhMxbjLG+RzomrgAqnGHWIR2lfA85XiHMiygzfizVdt8vK6c4tC5mIczJxkZ71goUMKjPfuXMAxQ/tKKjEjzXUjPa/FBiQoNu236xK4jSQ88IpklHQfvvDwSHBNiqxE5Gdl39w7FkarmQiMZpHUsHedxOeV+8U0DUmfO2qAaOdSNIVmG0d206ymdTQYkDKfCLQpyzxHUsMALrXkQA/fuaB4bMct87WpS+UHch+PkVvHqp16FQSuM4gMRo0yQeEF2E2LIKopVPXhZ/91gQhrCHOf1jr78VhpySBoyqngvmYVR/6G0c0CLOGfe24vZwZ2u8T5pfl+UVJ0rtLzTNd8KQjwUDf6Y4oOxVd8PSuikkVWYZtgJ7UWKYf3jiIGEKz6rfZs1tbS/3y pd4ZSR3j +1d7J74Bk3NEnwK6nrVxHIGlTWc7IyhRrwTCaiWVOjzM+cW/pOtJpOVfcW/IscjnaKzLZ6Yq5kKypHfjmE/jw3Bu8iY/WTzKCHouhYeyLm3woYtN4wvvVLbG9ODcmZt2wcA+O4E3/OfHd782L+B6+XAy3HHCA15XoxGhou6QnTuVa3exWNqF5/D5yHkgPTKSTHmhnXBGg078UF+7hfZmQ/QIZl5XcQKNo1bJtSY+s6D3P2XrVqrpEStLOavaj9JaMX2ynnSrp7kzCu0iDhVtiTEIcfZeZ893KU5b5CpfMYmY89u62o8wH0XKKgS9DtyOGvKVPWllY24jQ6Kwu8Hjon7SfflIOCaVvpsJvVjjy1U2DdXrJY2ms09CaV8fCZqsZG3p2IASF/GcO/AYilNKA1wcn3g9k4yMveu5Kb0qGSdp4h7lqC4+WCXuwDkPwz+CHLQIaRPr8bpj1c/aGY5w1ynFasIHCESHQVh7FcQuJ5G/+VaHjNYP/u0v1w8xL0UmvWoE5qlBWsiBy0fUBQNBjDttvUbP1ekfEf4YDniLusIVhRyFIlUfOCVOCDt/AhqTgBttBk8g9LzZxfVL3MDGvG5BpY1BWiwICAyOvPVWWRlYE5SbDApZCPEGy2XnJsqS/M7eJPvPhyJ1RnbkempFaqodcJ6KnSDPYBnb1SqOJHq48oUd7d4t2KJHngEjK9pse9tkP4GKVrHvJ+NBqhWvttSqCx1lbY8hIO0pdR/cIehWXg0GWCPdUYxZI69lUU9kF/EocCfliffKrU/KV/LwGsWCKTisKzj2Lpapgf6S4SPc+Cv4= Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Tue, 30 Jun 2026 07:28:40 +0000, Shivank Garg wrote: > Add a simple DMAEngine-based migrator that plugs into the page > migration copy-offload infrastructure and batch-copies folios via > DMA memcpy channels. It is intended for testing the offload plumbing > and as a template for future migrators (SDXI, multi-threaded CPU copy, > etc.). Hi Shivank, Following my test report in reply to the cover letter [1], below are the code-level findings on dcbm.c. They cover completion ordering, channel lifetime and fault recovery, each with a design question. The setup, the configurations compared and all results are in [1]. Each section below names the result it explains and refers to [1] for the numbers. 1. Completion ordering on out-of-order channels (Intel DSA) ----------------------------------------------------------- > + if (i == work->src_sgt->nents - 1) { > + tx->callback = dma_completion_callback; > + tx->callback_param = work; > + } What I saw ([1], section 2): - On DSA, the last descriptor's callback ran while earlier copies in the same channel list were still in flight. - On a 4 KiB demotion run, the DSA work queue filled up and migration blocked. - Counting completion on every descriptor (the diff below) removed both. Where it comes from: - submit_dma_transfers() sets DMA_PREP_INTERRUPT and dma_completion_callback only on the last descriptor of each channel's scatter-gather list. - On ordered engines such as SDXI v4, that is enough. The driver appends a fenced interrupt descriptor when DMA_PREP_INTERRUPT is set, so the last callback implies the earlier descriptors are done. - Intel DSA advertises DMA_COMPLETION_NO_ORDER (Karim's v5 point [2]). Trailing 4 KiB copies can finish, and run the callback, while an earlier 2 MiB THP copy is still in flight. - The DSA driver also frees a software descriptor on normal completion only when it was prepared with DMA_PREP_INTERRUPT. Without it, the work queue fills up. - The diff below requests an interrupt and counts every descriptor on DMA_COMPLETION_NO_ORDER channels: * work->pending reserves one count for the last descriptor; * it is incremented before each earlier descriptor is submitted; * ordered engines still get a single interrupt per channel list. @@ -173,14 +173,19 @@ static int submit_dma_transfers(struct dma_work *work) struct dma_async_tx_descriptor *tx; unsigned long flags = DMA_CTRL_ACK; dma_cookie_t cookie; + bool no_order, last; int i; + /* Last-descriptor callback covers earlier ones only on ordered channels. */ + no_order = dma_has_cap(DMA_COMPLETION_NO_ORDER, + work->chan->device->cap_mask); atomic_set(&work->pending, 1); sg_src = work->src_sgt->sgl; sg_dst = work->dst_sgt->sgl; for_each_sgtable_dma_sg(work->src_sgt, sg_src, i) { - if (i == work->src_sgt->nents - 1) + last = i == work->src_sgt->nents - 1; + if (last || no_order) flags |= DMA_PREP_INTERRUPT; tx = dmaengine_prep_dma_memcpy(work->chan, @@ -192,7 +197,9 @@ static int submit_dma_transfers(struct dma_work *work) return -EIO; } - if (i == work->src_sgt->nents - 1) { + if (last || no_order) { + if (!last) + atomic_inc(&work->pending); tx->callback = dma_completion_callback; tx->callback_param = work; } Question: would you include this check in v7 to handle unordered providers (Intel DSA) until device_prep_dma_memcpy_sg() lands, while keeping a single interrupt per channel list on ordered providers? 2. Per-batch channel allocation vs. holding channels across batches ------------------------------------------------------------------- > + max_channels = min3(READ_ONCE(nr_dma_channels), nr_folios, > + (unsigned int)MAX_DMA_CHANNELS); [...] > + for (i = 0; i < max_channels; i++) { > + works[actual_channels].chan = dma_request_chan_by_mask(&mask); > + if (IS_ERR(works[actual_channels].chan)) [...] > + dma_release_channel(works[i].chan); What I saw ([1], section 1): - On SDXI, v6 is slower than CPU copy for move_pages() of THPs, and slower on 8 channels than on 1 for DAMON migrate_cold. - On SDXI NUMA hint faults, v6 makes each promoting fault slower than CPU copy. - On SDXI unbind under load, v6 warned in every run. - Holding channels while offloading is enabled removed all three. Where it comes from: - Each batch requests and releases up to nr_dma_chan channels. The count is capped by the number of folios (min3() above), and the folios are split across the channels. - On SDXI v4, each request and release starts and stops a hardware context. - move_pages() and hint faults pass one folio per batch. So they pay a context start and stop for every folio. - On 8 channels, dma_request_chan_by_mask() plus dma_release_channel() take 23-25 % of the time inside migrate_pages() on DAMON batches (4 % on 1 channel). That accounts for the whole 1 -> 8 drop. - Requesting channels per batch does not avoid provider removal. The v6 unbind runs showed two kinds of WARN: * dma_request_chan_by_mask() in the loop above reached sdxi_dma_alloc_chan_resources() while the provider was being torn down, and its unwind hit an ida_free WARN; * a batch still held its channel when the provider unregistered it ("__dma_async_device_channel_unregister called while 1 clients hold a reference"). - So with either channel model, the client has to stop using a provider's channels before the provider unbinds (or, on DSA, before an idxd work queue is disabled). The DMAengine core has no removal callback that tells it to. - My prototype handles this on the client side: * it acquires channels at enable time with a provider filter; * it registers BUS_NOTIFY_UNBIND_DRIVER notifiers on the provider and child buses; * the notifier drops a provider's channels after in-flight batches finish (with your dma_chan_put() fixes [3]). chan = dma_request_channel(mask, dcbm_chan_filter, NULL); case BUS_NOTIFY_UNBIND_DRIVER: dcbm_drop_dev(dev, true); break; Question: since dcbm needs to handle provider removal with either channel model, would you and Vinod prefer a DMAengine core callback that notifies channel holders before channel unregister / work-queue disable, or client-side bus notifiers in dcbm as above? 3. Timeouts, faulted channel recovery and CPU fallback policy ------------------------------------------------------------- > + if (works[i].mapped) > + dmaengine_terminate_sync(works[i].chan); What I saw ([1], section 3): - On SDXI, a faulted descriptor makes every later batch on its channel wait out the timeout. - With several failed channels, v6's one-by-one cleanup adds a drain per channel and led to hung-task reports. - Replacing failed channels and draining them in parallel kept rounds near 20 s. - On the NUMA hint-fault path, one faulted descriptor still stalls every faulting task for about 20 s. Where it comes from: - After an SDXI address fault, the context stops before the trailing interrupt descriptor, so the callback never runs. - tx_status() reports DMA_ERROR 0.1-0.2 ms after submission. dcbm does not poll it, and waits for wait_for_completion_timeout() to expire (10 s). - A faulted channel kept in the pool repeats that wait for every batch sent to it. A 1 GiB move_pages() call is 512 single-THP batches, round-robin over 16 channels, so 32 of them land on the dead channel. The first waits 10 s; each later one waits 10 s plus a 10 s drain: about 645 s per call. - In v6, cleanup_dma_work() then calls dmaengine_terminate_sync() on each affected channel in turn: * each waits up to 10 s in sdxi_dma_synchronize(); * 16 failed channels cost 130 s; * when the whole function has stopped, the channel releases that follow also run one by one, about 2.4 s each. - Calling dmaengine_terminate_async() on all failed channels, and running their dmaengine_synchronize() in parallel, overlaps the drains into one 10 s window. The work runs on a WQ_MEM_RECLAIM workqueue, so it is safe when dcbm is called from kswapd on demotion. - dma_release_channel() is deferred to a background work item. The same work item re-requests replacement channels (the refill). - When the refill gets back fewer channels than it released, offloading is marked degraded and batches use CPU copy: /* Fewer channels re-acquired than failed channels just released. */ if (dcbm_nr_chans - nr < replaced) { dcbm_degraded = true; - A refill shortfall has two possible causes: * the provider function is in an error state; * another DMAengine client took the freed channels during the refill. - I forced the refill to fail on a healthy function (3 runs each): * Without the degraded mode: dcbm carried on with 15 of 16 channels at the same rate. * With the degraded mode: dcbm went to CPU copy until offloading was re-enabled. - On the hint-fault path, the faulted channel stays in the round-robin until its first timeout. Each faulting task's next single-folio batch lands on it, and waits the 10 s timeout plus a 10 s drain. Question: when failed channels cannot be replaced after a timeout, which should dcbm do? - Stay on CPU fallback until offloading is re-enabled. - Carry on with the channels it still holds, and retry with a backoff. - Rely on error reporting from the provider, so it can tell a failed function from a busy one without waiting out the 10 s timeout. And should MR_NUMA_MISPLACED stay out of offload until failures are detected sooner, for example through a copy-engine choice carried in migrate_control, as your migration refactor RFC suggested? Thanks, Ravi [1] https://lore.kernel.org/all/20261128224616.66122-1-ravis.opensrc@gmail.com/ [2] https://lore.kernel.org/all/20260619160725.lfcxrbj5go67qy6u@wrangler/ [3] https://lore.kernel.org/all/20260822-dmaengine-kref-fix-v5-0-d4a4ee47d927@amd.com/