Date: Fri, 27 Nov 2015 18:13:28 +0000 (UTC) From: Zbigniew Bodek <zbb@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r291399 - head/sys/boot/usb Message-ID: <201511271813.tARIDSUR018778@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: zbb Date: Fri Nov 27 18:13:28 2015 New Revision: 291399 URL: https://svnweb.freebsd.org/changeset/base/291399 Log: Use properly aligned buffer in usb_alloc The PA adress must be gathered from an aligned VA, not the RAW pointer to the memory space. Reviewed by: hselasky Submitted by: Wojciech Macek <wma@semihalf.com> Obtained from: Semihalf Sponsored by: Juniper Networks Inc. Differential Revision: https://reviews.freebsd.org/D4140 Modified: head/sys/boot/usb/usb_busdma_loader.c Modified: head/sys/boot/usb/usb_busdma_loader.c ============================================================================== --- head/sys/boot/usb/usb_busdma_loader.c Fri Nov 27 16:23:27 2015 (r291398) +++ head/sys/boot/usb/usb_busdma_loader.c Fri Nov 27 18:13:28 2015 (r291399) @@ -233,7 +233,7 @@ usb_pc_alloc_mem(struct usb_page_cache * pc->ismultiseg = (align == 1); /* compute physical address */ - usb_pc_common_mem_cb(pc, ptr, size); + usb_pc_common_mem_cb(pc, pc->buffer, size); usb_pc_cpu_flush(pc); return (0);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201511271813.tARIDSUR018778>