sg_virt() returns 0 - sometimes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear All,

As a part of my driver testing instead of using sg lists I am directly
submitting the URB after merging all the sgs into a single URB buffer
in usb-storage driver. While converting the sg address into virtual
address (sg_virt(sg)) I am seeing 0, sometimes. Why am I seeing this
return value?

I have seen some comments about it, in usb_sg_init() function which is
defined in driver/usb/message.c file. In this routine also, sg_virt()
is used, however there is PageHighMem(sg_page(sg)) condition in there.

Should I disable the CONFIG_HIGHMEM in the kernel while building the
kernel images?

Any ideas will be appreciated.

Thanks and Regards,
Ramya.
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux