)]}'
{
  "commit": "09f10efee6f93863ea71489ce84563f4d51787f6",
  "tree": "ad8fbc3bb9ff5657a68114123245f19ceb235921",
  "parents": [
    "db2c610df81e34d497f49b68a0a1681c3f203bdb"
  ],
  "author": {
    "name": "Jakub Kicinski",
    "email": "kuba@kernel.org",
    "time": "Tue Oct 27 16:49:37 2026 -0700"
  },
  "committer": {
    "name": "Jakub Kicinski",
    "email": "kuba@kernel.org",
    "time": "Thu Oct 29 08:49:31 2026 -0700"
  },
  "message": "eth: bnxt: resize Rx head buffers when rx-copybreak changes\n\nSince rx-copybreak became configurable, bnxt_set_ring_params() sizes\nthe head buffers to fit at least rx_copybreak bytes, and the copybreak\npath in bnxt_copy_data() syncs rx_copybreak bytes of the head buffer.\nbnxt_set_tunable() however only updates bp-\u003erx_copybreak, and nothing\non the open path recalculates the ring parameters. After raising\nrx-copybreak the head buffers keep their old size until some other\nsetting changes, and bnxt_copy_data() syncs past their end, into the\nnext buffer in the page or past the end of the page:\n\n  DMA-API: bnxt_en 0000:01:00.0: device driver tries to sync DMA memory it has not allocated [device address\u003d0x00000002aa210c40] [size\u003d1024 bytes]\n  WARNING: kernel/dma/debug.c:1162 at check_sync+0x577/0x1eb0, CPU#22: swapper/22/0\n  Call Trace:\n   \u003cIRQ\u003e\n   debug_dma_sync_single_for_cpu+0x66/0x90\n   bnxt_copy_data+0x12f/0x290\n   bnxt_rx_pkt+0x24ea/0x50f0\n   __bnxt_poll_work+0x42c/0xc00\n   bnxt_poll_p5+0x579/0x17a0\n   __napi_poll+0x8b/0x2c0\n   net_rx_action+0x58f/0xbb0\n\nHere the head buffers were still sized for the 640B HDS threshold,\nfour 1kB buffers per page, while rx-copybreak was raised to 1024.\nWithout coherent DMA or with swiotlb the oversized sync can corrupt\na neighboring buffer owned by the device or by an skb.\n\nThe device must be down for rx-copybreak to change, so recalculate the\nring parameters right away, like bnxt_set_ringparam() does.\n\nHit while testing patch 1, tested on BCM57504 - boot; set rx-copybreak\nto 1024 with the link down (CONFIG_DMA_API_DEBUG); ifup.\n\nFixes: 152f4da05aee (\"bnxt_en: add support for rx-copybreak ethtool command\")\nReviewed-by: Michael Chan \u003cmichael.chan@broadcom.com\u003e\nLink: https://patch.msgid.link/20261027234940.1267225-3-kuba@kernel.org\nSigned-off-by: Jakub Kicinski \u003ckuba@kernel.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "622e89587e5db4275f4ed08f6b41e1c513dcf70e",
      "old_mode": 33188,
      "old_path": "drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c",
      "new_id": "ef4bea4a0f8cc107cc4b9918f4c0da19fcec6e66",
      "new_mode": 33188,
      "new_path": "drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c"
    }
  ]
}
