# 网络:arc:修正设备的dma_map_single/dma_unmap_single
## 概述
在Linux内核中,修复了与`dma_map_single`和`dma_unmap_single`相关的设备问题。`ndev->dev`和`pdev->dev`并非同一个设备,应使用`ndev->dev.parent`,因为`ndev->dev.parent`具有`dma_mask`且等同于`pdev->dev`。
## 影响版本
未指定具体影响版本。
## 细节
`ndev->dev`与`pdev->dev`设备对象不一致,需使用`ndev->dev.parent`来正确处理DMA映射。未正确处理可能导致警告错误,例如:
```
[ 39.933526] ------------[ cut here ]------------
[ 39.938414] WARNING: CPU: 1 PID: 501 at kernel/dma/mapping.c:149 dma_map_page_attrs+0x90/0x1f8
```
## 影响
如果未正确处理DMA映射设备,可能导致系统警告,影响系统稳定性和性能。
# | POC 描述 | 源链接 | 神龙链接 |
---|
标题: net: arc: fix the device for dma_map_single/dma_unmap_single - kernel/git/stable/linux.git - Linux kernel stable tree -- 🔗来源链接
标签:
神龙速读标题: net: arc: fix the device for dma_map_single/dma_unmap_single - kernel/git/stable/linux.git - Linux kernel stable tree -- 🔗来源链接
标签:
神龙速读标题: net: arc: fix the device for dma_map_single/dma_unmap_single - kernel/git/stable/linux.git - Linux kernel stable tree -- 🔗来源链接
标签:
神龙速读标题: net: arc: fix the device for dma_map_single/dma_unmap_single - kernel/git/stable/linux.git - Linux kernel stable tree -- 🔗来源链接
标签:
神龙速读标题: net: arc: fix the device for dma_map_single/dma_unmap_single - kernel/git/stable/linux.git - Linux kernel stable tree -- 🔗来源链接
标签:
神龙速读标题: net: arc: fix the device for dma_map_single/dma_unmap_single - kernel/git/stable/linux.git - Linux kernel stable tree -- 🔗来源链接
标签:
神龙速读暂无评论