Re: panic with latest ugen.c and pcsc-lite

2015-09-16 Thread Grant Czajkowski
On Tue, Sep 15, 2015 at 12:04:35PM +0200, Martin Pieuchot wrote: > On 15/09/15(Tue) 04:50, Grant Czajkowski wrote: > > On Fri, Sep 11, 2015 at 02:41:04AM -0600, David Coppa wrote: > > > > > > Hi! > > > > > > Repeatedly hit the panic below with la

Re: panic with latest ugen.c and pcsc-lite

2015-09-14 Thread Grant Czajkowski
On Fri, Sep 11, 2015 at 02:41:04AM -0600, David Coppa wrote: > > Hi! > > Repeatedly hit the panic below with latest ugen.c code (v 1.88) and > pcsc-lite. Thanks for the report. Could you please try this patch? Grant Index: ugen.c ===

[patch] use USBD_NO_COPY in ugen_do_write()

2015-09-03 Thread Grant Czajkowski
Similiar to [1], this patch uses the USBD_NO_COPY flag to utilize the DMA buffer directly within ugen_do_write() of ugen(4). Grant References 1. MARC.info - 'do bulk reads with one transfer in ugen(4)' thread http://marc.info/?t=14411465081&r=1&w=2 Index: ugen.c =

Re: [patch] do bulk reads with one transfer in ugen(4)

2015-09-03 Thread Grant Czajkowski
On Thu, Sep 03, 2015 at 09:52:57AM +0200, Martin Pieuchot wrote: > On 01/09/15(Tue) 22:26, Grant Czajkowski wrote: > > In ugen(4), bulk reads of length > UGEN_BBSIZE are split into > > multiple transfers. This patch instead sends a single > > transfer utilizing USBD_NO_C

[patch] do bulk reads with one transfer in ugen(4)

2015-09-01 Thread Grant Czajkowski
Hi, In ugen(4), bulk reads of length > UGEN_BBSIZE are split into multiple transfers. This patch instead sends a single transfer utilizing USBD_NO_COPY. Grant Index: ugen.c === RCS file: /cvs/src/sys/dev/usb/ugen.c,v retrieving rev

[patch] in usb(4) check for dangerous requests

2015-08-31 Thread Grant Czajkowski
Hi all, This patch adds the usb control request validity checks already present in ugen(4) to usb(4). Grant Index: usb.c === RCS file: /cvs/src/sys/dev/usb/usb.c,v retrieving revision 1.107 diff -u -p -r1.107 usb.c --- usb.c 1