get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/1.0/patches/2219689/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2219689,
    "url": "http://patchwork.ozlabs.org/api/1.0/patches/2219689/?format=api",
    "project": {
        "id": 13,
        "url": "http://patchwork.ozlabs.org/api/1.0/projects/13/?format=api",
        "name": "Linux IDE development",
        "link_name": "linux-ide",
        "list_id": "linux-ide.vger.kernel.org",
        "list_email": "linux-ide@vger.kernel.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null
    },
    "msgid": "<20260403191801.79888-1-artmoty@gmail.com>",
    "date": "2026-04-03T19:17:52",
    "name": "[v2] ata: ahci: force 32-bit DMA for JMicron JMB582/JMB585",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "f645cd7206507ed8c8ffebff4189344183417c69",
    "submitter": {
        "id": 93046,
        "url": "http://patchwork.ozlabs.org/api/1.0/people/93046/?format=api",
        "name": "Arthur Husband",
        "email": "artmoty@gmail.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-ide/patch/20260403191801.79888-1-artmoty@gmail.com/mbox/",
    "series": [
        {
            "id": 498666,
            "url": "http://patchwork.ozlabs.org/api/1.0/series/498666/?format=api",
            "date": "2026-04-03T19:17:52",
            "name": "[v2] ata: ahci: force 32-bit DMA for JMicron JMB582/JMB585",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/498666/mbox/"
        }
    ],
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2219689/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "\n <linux-ide+bounces-5440-incoming=patchwork.ozlabs.org@vger.kernel.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "linux-ide@vger.kernel.org"
        ],
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=WpR/XBh5;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=104.64.211.4; helo=sin.lore.kernel.org;\n envelope-from=linux-ide+bounces-5440-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)",
            "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com\n header.b=\"WpR/XBh5\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=209.85.216.48",
            "smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com",
            "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=gmail.com"
        ],
        "Received": [
            "from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fnT5m3ZnTz1xtJ\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 04 Apr 2026 06:18:20 +1100 (AEDT)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sin.lore.kernel.org (Postfix) with ESMTP id 6F08A300D0D4\n\tfor <incoming@patchwork.ozlabs.org>; Fri,  3 Apr 2026 19:18:17 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 338D5244660;\n\tFri,  3 Apr 2026 19:18:14 +0000 (UTC)",
            "from mail-pj1-f48.google.com (mail-pj1-f48.google.com\n [209.85.216.48])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id E773535959\n\tfor <linux-ide@vger.kernel.org>; Fri,  3 Apr 2026 19:18:12 +0000 (UTC)",
            "by mail-pj1-f48.google.com with SMTP id\n 98e67ed59e1d1-35c1a131946so1936472a91.0\n        for <linux-ide@vger.kernel.org>; Fri, 03 Apr 2026 12:18:12 -0700 (PDT)",
            "from fedora.mshome.net ([162.247.45.47])\n        by smtp.gmail.com with ESMTPSA id\n d9443c01a7336-2b27497c0f3sm66964105ad.41.2026.04.03.12.18.11\n        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n        Fri, 03 Apr 2026 12:18:11 -0700 (PDT)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1775243894; cv=none;\n b=IDrMabe4y/CQPDf467iNWosKdRiAlsYTyqCZ+6DwUs9WqdxOGGZ+KS5CKHUlH/rizsG1PAPP6BJsLv2bK6Jq8a1b0oSMN24iB1m2Yua1wyXR71sWuqWtMuqLZN0tCUFDIRv4vkSTfrxTSUZ4MCgcpjKGlZrHtpsWY3Z7LJPMgx4=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1775243894; c=relaxed/simple;\n\tbh=5sd9w7DTFLwnnM8zr9LPq3i9lqiC1rsiJtfUfVeUPZA=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version:Content-Type;\n b=t3mHQAFm4Md6bAYy40jC+gpqWOjPldNltRsG0QxwWjuMfyiPvab5ySOXWP7a4Xx2e35aMn2yYVwMZ1z4/R7QMBo/7vHPpAERclu9FowOMNupunm7uVzHZyQP5JAAwJRhlK8Z3h4Wlx/pNeIaZ5az8lh60XwwmOJ3mGsYGIaEKCA=",
        "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com;\n spf=pass smtp.mailfrom=gmail.com;\n dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com\n header.b=WpR/XBh5; arc=none smtp.client-ip=209.85.216.48",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=gmail.com; s=20251104; t=1775243892; x=1775848692;\n darn=vger.kernel.org;\n        h=content-transfer-encoding:mime-version:references:in-reply-to\n         :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n         :message-id:reply-to;\n        bh=+3Py0yQ8XkKI1xOrPOMiuCndItMurIJRFpDl731cy6E=;\n        b=WpR/XBh5HUr/0+66xcUgYud0zXSNWSO7ipSSwC3RzpY+C/YFapp8Yt/ZZCU9H7s49z\n         caySmA+aJbWfEWon4Ntv8Eofjpm7kFKvT/p/IjejdUoyEFhLqLb81uJVBSJ0MhxszO9Y\n         Fzqf9qVX1Q5mRG4K/9tdxGQvdc0iwt2nirxWSdcWfKzqTMuC0gpYLOXsovqoLojLwG4z\n         jANx4+OyFQVpCKTyiyVRhPEaF0SYjPK3vlgMvh3Rys5qfmy90iPX4JRN1h1obLd3/xUQ\n         0lXFTwz81aIsyp7yhC6qLzKgSNm4mT8fsOKlb5Ut1r51pK/fa+hTe2hN74XCA+k5hLJ+\n         thQA==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1775243892; x=1775848692;\n        h=content-transfer-encoding:mime-version:references:in-reply-to\n         :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n         :to:cc:subject:date:message-id:reply-to;\n        bh=+3Py0yQ8XkKI1xOrPOMiuCndItMurIJRFpDl731cy6E=;\n        b=gRFd9cHAnKkHksf08H5bC+eBSPkFSAN/ASUFTT8RZ97xRZa+znKTMwoRic/Isi3b9+\n         gjjIFWQgzGUacecAKcBNPEhoh+SvOD9R9z7ilm4kQ+qzSxCm+v9Oe1uZRG02oSKUwi1M\n         +fz70cz/BJn0awCIfCfAeXN3rmm1CxtCYA4rJNpb/DpcBRJWw+eUXCKyUUNbB8wP1ZId\n         VIh62YoiKNhi/u3uiUkRJCTK3PIipuSYdsPsvVX3tSIdsGJtUnMRbXeZPXy7du6I7AC4\n         qCASDlGWutjJSOiZ/Y0GUygcsUpDY9fgnLitTNUl0mUrrtQfs3jUQ8uNUjVEgIkx33Cc\n         HfEg==",
        "X-Gm-Message-State": "AOJu0YxqLydPAwfCMLVx1tx6w5tqkPt+xzyY1rh6rto6FSR2GCc6iMF5\n\tWbPo1Bo7HDD909NdVpbKi5KIHx1l/ONpGa11Yi7ZCjKd4QiIcgu91zJa77mt9Q/HyiM=",
        "X-Gm-Gg": "AeBDieteTNAyYU44hrnRH6lb87kC0LARXm/Cwec7ziDFP12bQkkyY1nXuyAHQCeTjbL\n\tq1i8l74ILcVcqTaBAEcYZShW1bWsd9Yuzkb40zu2ClhEq78iBPBy5NHfqW5R6VbldusBI6vXX1x\n\tavxtMUor5H9ZxqiCBzdTmGs2VW5P4u51IPX5CvzYpEk2UsuPMx0V+gQIPjFFHEvqtL6Ys7ihwTI\n\tB03zdKgIgxjGYaImufToCnGwEDuLqv1SMYqGHv/YUjqYPVBli8EmvxMzVRZfPdtwR1KB4ykMMfB\n\tqUHNF9/oxfV4FLsqSZCS9fX/ydkXRVeWUXJEXiWaS1nmglwAEed5qAA+K1jReO++PaymxqI4oDV\n\tp1QmACXpC6Ka+jHev/LRedmsOdE23hp2u4ZJZnr+Aro8TXtA4Z3WoWYKZeCiGoOfH40Ss8b1FCB\n\tDTe1Wq3DbQu46KJQ02w8COccgI8uX9QE3My85c",
        "X-Received": "by 2002:a17:902:f709:b0:2b0:ac1e:9730 with SMTP id\n d9443c01a7336-2b277e36491mr67612025ad.14.1775243892036;\n        Fri, 03 Apr 2026 12:18:12 -0700 (PDT)",
        "From": "Arthur Husband <artmoty@gmail.com>",
        "To": "linux-ide@vger.kernel.org",
        "Cc": "dlemoal@kernel.org,\n\tcassel@kernel.org,\n\tartmoty@gmail.com",
        "Subject": "[PATCH v2] ata: ahci: force 32-bit DMA for JMicron JMB582/JMB585",
        "Date": "Fri,  3 Apr 2026 12:17:52 -0700",
        "Message-ID": "<20260403191801.79888-1-artmoty@gmail.com>",
        "X-Mailer": "git-send-email 2.53.0",
        "In-Reply-To": "<20260403050418.50398-1-artmoty@gmail.com>",
        "References": "<20260403050418.50398-1-artmoty@gmail.com>",
        "Precedence": "bulk",
        "X-Mailing-List": "linux-ide@vger.kernel.org",
        "List-Id": "<linux-ide.vger.kernel.org>",
        "List-Subscribe": "<mailto:linux-ide+subscribe@vger.kernel.org>",
        "List-Unsubscribe": "<mailto:linux-ide+unsubscribe@vger.kernel.org>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=UTF-8",
        "Content-Transfer-Encoding": "8bit"
    },
    "content": "The JMicron JMB585 (and JMB582) SATA controllers advertise 64-bit DMA\nsupport via the S64A bit in the AHCI CAP register, but their 64-bit DMA\nimplementation is defective. Under sustained I/O, DMA transfers targeting\naddresses above 4GB silently corrupt data — writes land at incorrect\nmemory addresses with no errors logged.\n\nThe failure pattern is similar to the ASMedia ASM1061 (commit\n2073d0e9b2778 (\"ahci: add 43-bit DMA address quirk for ASMedia ASM1061\ncontrollers\")), which also falsely advertised full 64-bit DMA support.\nHowever, the JMB585 requires a stricter 32-bit DMA mask rather than\n43-bit, as corruption occurs with any address above 4GB.\n\nOn the Minisforum N5 Pro specifically, the combination of the JMB585's\nbroken 64-bit DMA with the AMD Family 1Ah (Strix Point) IOMMU causes\nsilent data corruption that is only detectable via checksumming\nfilesystems (BTRFS/ZFS scrub). The corruption occurs when 32-bit IOVA\nspace is exhausted and the kernel transparently switches to 64-bit DMA\naddresses.\n\nAdd device-specific PCI ID entries for the JMB582 (0x0582) and JMB585\n(0x0585) before the generic JMicron class match, using a new board type\nthat combines AHCI_HFLAG_IGN_IRQ_IF_ERR (preserving existing behavior)\nwith AHCI_HFLAG_32BIT_ONLY to force 32-bit DMA masks.\n\nSigned-off-by: Arthur Husband <artmoty@gmail.com>\n---\n drivers/ata/ahci.c | 16 +++++++++++++++-\n 1 file changed, 15 insertions(+), 1 deletion(-)\n\n \tboard_ahci_mcp89,\n@@ -115,6 +116,14 @@ static const struct ata_port_info ahci_port_info[] = {\n \t\t.udma_mask\t= ATA_UDMA6,\n \t\t.port_ops\t= &ahci_ops,\n \t},\n+\t/* JMicron JMB582/585: 64-bit DMA is broken, force 32-bit */\n+\t[board_ahci_jmb585] = {\n+\t\tAHCI_HFLAGS\t(AHCI_HFLAG_IGN_IRQ_IF_ERR |\n+\t\t\t\t AHCI_HFLAG_32BIT_ONLY),\n+\t\t.flags\t\t= AHCI_FLAG_COMMON,\n+\t\t.pio_mask\t= ATA_PIO4,\n+\t\t.udma_mask\t= ATA_UDMA6,\n+\t\t.port_ops\t= &ahci_ops,\n+\t},\n \t[board_ahci_no_debounce_delay] = {\n \t\t.flags\t\t= AHCI_FLAG_COMMON,\n \t\t.link_flags\t= ATA_LFLAG_NO_DEBOUNCE_DELAY,\n@@ -XXX,7 +XXX,12 @@ static const struct pci_device_id ahci_pci_tbl[] = {\n \t...\n\n-\t/* JMicron 360/1/3/5/6, match class to avoid IDE function */\n+\t/* JMicron JMB582/585: force 32-bit DMA (broken 64-bit implementation) */\n+\t{ PCI_VDEVICE(JMICRON, 0x0582), board_ahci_jmb585 },\n+\t{ PCI_VDEVICE(JMICRON, 0x0585), board_ahci_jmb585 },\n+\n+\t/* JMicron 360/1/3/5/6, match class to avoid IDE function */\n \t{ PCI_VENDOR_ID_JMICRON, PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID,\n \t  PCI_CLASS_STORAGE_SATA_AHCI, 0xffffff, board_ahci_ign_iferr },\n\n--",
    "diff": "diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c\nindex XXXXXXX..XXXXXXX 100644\n--- a/drivers/ata/ahci.c\n+++ b/drivers/ata/ahci.c\n@@ -51,6 +51,7 @@ enum board_ids {\n\n \t/* board IDs for specific chipsets in alphabetical order */\n \tboard_ahci_al,\n \tboard_ahci_avn,\n+\tboard_ahci_jmb585,\n \tboard_ahci_mcp65,\n \tboard_ahci_mcp77,\n",
    "prefixes": [
        "v2"
    ]
}