免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1953 | 回复: 3
打印 上一主题 下一主题

(waring:running *really* short on DMA buffers)问题 (由于编译驱动后引起的) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-05-22 23:59 |只看该作者 |倒序浏览
各位大侠好:(由于是编译驱动导致的,所以我想请开发驱动大侠们帮我看看,谢谢)
我的环境是:服务器上安装的是turbo7.0(内核版本:2.4.18—3.10.2smp),在服务器上安装了LSI 3442 SAS HBA卡连接后端的磁盘阵列。由于要识别到磁盘阵列映射过来的容量,所以在turbolinux7.0上安装了redhat3对应的LSI 3442卡子的驱动(注意:这个驱动是经过对内核的编译安装的)。

问题:能够识别到磁盘,但是要是对磁盘进行操作就会不停的报:(waring:running *really* short on DMA buffers)这个警告。那位大侠有见过,望能给指点指点。不甚感激!!!!

论坛徽章:
0
2 [报告]
发表于 2010-05-24 13:09 |只看该作者
没有人遇到类似问题吗?急!!!

论坛徽章:
0
3 [报告]
发表于 2010-05-25 10:10 |只看该作者
这是警告的那个驱动函数部分(警告就是从这里出的):(那位高人能不能给点指点)

Looking in the sources I see this message printk() from
drivers/scsi/scsi_merge.c :

        /*
         * Now fill the scatter-gather table.
         */
        if (!sgpnt) {
                /*
                 * If we cannot allocate the scatter-gather table, then
                 * simply write the first buffer all by itself.
                 */
                printk("Warning - running *really* short on DMA buffers\n");
                this_count = SCpnt->request.current_nr_sectors;
                goto single_segment;
        }

论坛徽章:
0
4 [报告]
发表于 2010-05-25 10:30 |只看该作者
比较完整点的代码(不好意思上面只是部分代码)帮我看看能不能做点修改就可以避免这个警告呢?



   /* scsi_malloc can only allocate in chunks of 512 bytes so
         * round it up.
         */
        SCpnt->sglist_len = (SCpnt->sglist_len + 511) & ~511;


        sgpnt = (struct scatterlist *) scsi_malloc(SCpnt->sglist_len);


        /*
         * Now fill the scatter-gather table.
         */
        if (!sgpnt) {
                /*
                 * If we cannot allocate the scatter-gather table, then
                 * simply write the first buffer all by itself.
                 */
                printk("Warning - running *really* short on DMA
                buffers\n");
                this_count = SCpnt->request.current_nr_sectors;
                goto single_segment;
        }
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP