|
d77f3672
|
2013-10-18T23:42:02
|
|
Fixing the memory leak for remaining semaphores means we can go back to using async transfers on other OSes with our own timeout management again.
|
|
8e9f32a8
|
2013-10-18T23:30:05
|
|
Add a forcelog variant of applog which invalidates any console lock to force output.
|
|
789d448e
|
2013-10-18T07:05:35
|
|
Perform sync transfers on shutdown to allow final transfers to complete.
|
|
ad8d9497
|
2013-10-18T06:55:30
|
|
Destroy cgsems used after transfers to not leave open files on osx.
|
|
103bc0ba
|
2013-10-17T18:52:07
|
|
Revert to using timeouts on !linux since libusb leaks memory without them.
|
|
955e971d
|
2013-10-16T20:47:26
|
|
Prevent further USB transfers from occurring once the shutdown signal has been sent to prevent transfers getting stuck and libusb failing to shut down.
|
|
4e5946d2
|
2013-10-16T20:47:26
|
|
Prevent further USB transfers from occurring once the shutdown signal has been sent to prevent transfers getting stuck and libusb failing to shut down.
|
|
7c6bd4a8
|
2013-10-15T00:26:50
|
|
Emulate the libusb_control_transfer sync setup in our async variant.
|
|
e6280c85
|
2013-10-15T00:13:06
|
|
Add the libusb control setup size offset for control writes.
|
|
91d1d104
|
2013-10-15T00:00:00
|
|
Merge branch 'master' of github.com:ckolivas/cgminer
|
|
8fdaeb0a
|
2013-10-14T23:59:01
|
|
Differentiate send from receive in control transfers!
|
|
bae0815e
|
2013-10-14T03:45:44
|
|
Merge pull request #505 from kanoi/master
usbutils - make all libusb_error_name messages the same
|
|
108e7376
|
2013-10-14T21:44:10
|
|
usbutils - make all libusb_error_name messages the same
|
|
9e287f95
|
2013-10-14T03:27:57
|
|
Merge pull request #499 from someone42/master
changes to bitburner driver for bitburner fury boards
|
|
02a4f8df
|
2013-10-14T11:44:37
|
|
Convert the usb callback function to using cgsem_t timed waits to avoid race conditions with conditionals/mutexes.
|
|
1d9f90b2
|
2013-10-14T11:39:15
|
|
Revert "Convert the usb callback function to use a cgsem_t using the timedwait code to avoid races with mutexes/conditionals."
This reverts commit 433465bcfcd8d9a2270cb27dd0ea933e9fefa829.
Not ready yet.
|
|
433465bc
|
2013-10-14T11:35:47
|
|
Convert the usb callback function to use a cgsem_t using the timedwait code to avoid races with mutexes/conditionals.
|
|
9ca22ed4
|
2013-10-14T10:05:49
|
|
Use the one LIBUSB_ERROR_TIMEOUT for cancelled transactions since this error is explicitly tested for in various drivers.
|
|
a7580f1f
|
2013-10-14T09:40:23
|
|
Do not use locking on usb callback function pthread signalling to prevent deadlock with libusb's own event lock.
|
|
280dc4bf
|
2013-10-14T00:54:05
|
|
Lock mutex before second pthread_cond_wait in usbutils to prevent a race.
|
|
84de52c1
|
2013-10-13T10:11:46
|
|
Use a write lock when performing any USB control transfers to prevent concurrent transfers.
|
|
c0690286
|
2013-10-12T17:44:28
|
|
Free a libusb transfer after we have finished using it to avoid a dereference in usb_control_transfer
|
|
84f642f5
|
2013-10-12T15:06:48
|
|
Although async transfers are meant to use heap memory, we never return before the transfer function has completed so stack memory will suffice for control transfers, fixing a memory leak in the process.
|
|
2ca8d859
|
2013-10-12T08:45:03
|
|
Convert all usb control transfers to asynchronous communication with our own timeout management as well.
|
|
b5379760
|
2013-10-11T23:06:40
|
|
Make pthread conditional timeouts handle all bulk usb transfer timeouts performing libusb_cancel_transfer, disabling timeouts within libusb itself.
|
|
b509e843
|
2013-10-03T20:11:37
|
|
using separate identifier for bitburner fury boards
|
|
03ad59f2
|
2013-10-11T15:37:55
|
|
Add a small amount to the usb timeout before cancelling to allow for a regular usb polling interval to pass.
|
|
08d8612f
|
2013-10-11T14:47:01
|
|
Do not attempt to clear a usb halt before sending the cancel message since all transfers should normally be cancelled before attempting to clear a halt condition, and only change the return message to a timeout if it's consistent with a cancellation.
|
|
6d18ce4c
|
2013-10-11T14:37:40
|
|
Retry up to USB_RETRY_MAX times to clear a halt condition before failing.
|
|
3a7a677f
|
2013-10-11T13:43:16
|
|
Show the error number as well as the description in erroring bulk transfers.
|
|
b5dfacef
|
2013-10-11T10:15:06
|
|
We are always dependent on libusb handling events so use the blocking libusb_handle_events in the polling thread and use a bool to know if we should continue polling.
|
|
853aa28f
|
2013-10-11T08:49:59
|
|
Merge branch 'master' into async
Conflicts:
usbutils.c
|
|
32bc7461
|
2013-10-09T22:17:56
|
|
Check for presence of driver name in DRIVER_COUNT_FOUND to prevent strcmp on a null pointer when a driver is not built in.
|
|
dc9c3783
|
2013-10-08T22:05:01
|
|
Display errors on failed usb read and write and consider sequential IO errors a permanent failure.
|
|
a22f5bfd
|
2013-10-07T19:50:38
|
|
Use libusb's own error name function instead of hand coding the error names.
|
|
efd8c441
|
2013-10-07T20:35:42
|
|
Check for async transfer variants of error messages.
|
|
2806f49c
|
2013-10-07T20:34:13
|
|
Revert "Check for the async variants of the libusb errors and retry up to retry max when trying to clear a pipe error/stall."
This reverts commit c7d5256b3657bd6d4f2f04f7288cd757bcbf77a5.
|
|
d34279b2
|
2013-10-08T20:48:26
|
|
Remove unused variables.
|
|
f80c9003
|
2013-10-08T20:46:36
|
|
Merge branch 'master' into async
Conflicts:
api.c
cgminer.c
miner.h
usbutils.c
util.c
|
|
ef8efd6c
|
2013-10-08T00:01:26
|
|
Minimise the time between dropping the read devlock and grabbing the write devlock to avoid tons of logging spam in the interim.
|
|
85e0b3a5
|
2013-10-07T20:03:53
|
|
Check for the async variants of the libusb errors and retry up to retry max when trying to clear a pipe error/stall.
|
|
a79768b7
|
2013-10-07T19:50:38
|
|
Use libusb's own error name function instead of hand coding the error names.
|
|
74775e4e
|
2013-10-07T18:40:09
|
|
Check for libusb transfer stall error to be consistent with async IO errors returned for a halt condition.
|
|
38ae7093
|
2013-10-07T17:56:57
|
|
Check for continuous IO errors on USB and consider the device inactive if more than retry max.
|
|
7318ecee
|
2013-10-07T23:34:01
|
|
Make the devlock a cglock in usbutils and only grab the write lock for fundamental changes allowing us to send and receive transfers concurrently without lock contention.
|
|
6cd7f0f1
|
2013-10-04T12:00:41
|
|
Remove unmaintained broken ztex driver.
|
|
51418f79
|
2013-10-03T23:19:18
|
|
Klondike update code to current git
|
|
585d4af4
|
2013-10-07T23:32:01
|
|
Store statistics on how often we have to cancel async bulk transfers and add a debug message whenever we do.
|
|
1d1efbe7
|
2013-10-03T11:50:45
|
|
Treat any unexpected timeouts waiting for async transfers as though there may be a usb halt condition and attempt to clear the halt before cancelling the tranfer.
|
|
a798e14a
|
2013-10-02T06:53:25
|
|
Remove zero packet flag on usb as it's unsupported outside linux and unnecessary.
|
|
37509564
|
2013-10-01T17:34:32
|
|
Fake the libusb transfer timed out message if we force cancel it with our own async functions.
|
|
a6a94070
|
2013-10-01T14:40:30
|
|
Use asynchronous transfers for all bulk transfers, allowing us to use our own timers and cancelling transfers that take too long.
|
|
99176584
|
2013-09-30T21:30:11
|
|
Add libusb error warning message when significant error occurs.
|
|
a47e4a48
|
2013-10-07T20:35:42
|
|
Check for async transfer variants of error messages.
|
|
08406274
|
2013-10-07T20:34:13
|
|
Revert "Check for the async variants of the libusb errors and retry up to retry max when trying to clear a pipe error/stall."
This reverts commit c7d5256b3657bd6d4f2f04f7288cd757bcbf77a5.
|
|
50d1d367
|
2013-10-07T20:07:34
|
|
Check for either async or sync libusb error message for timeout.
|
|
c7d5256b
|
2013-10-07T20:03:53
|
|
Check for the async variants of the libusb errors and retry up to retry max when trying to clear a pipe error/stall.
|
|
aa75d841
|
2013-10-07T19:50:38
|
|
Use libusb's own error name function instead of hand coding the error names.
|
|
f9313927
|
2013-10-07T18:40:09
|
|
Check for libusb transfer stall error to be consistent with async IO errors returned for a halt condition.
|
|
0b56becc
|
2013-10-07T17:56:57
|
|
Check for continuous IO errors on USB and consider the device inactive if more than retry max.
|
|
023ca6a1
|
2013-10-07T17:17:20
|
|
Remove devlock lock contention statistics since transfers are all done under read lock now.
|
|
59ff31d8
|
2013-10-07T17:11:33
|
|
Make the devlock a cglock in usbutils and only grab the write lock for fundamental changes allowing us to send and receive transfers concurrently without lock contention.
|
|
3b266594
|
2013-10-07T14:57:08
|
|
Merge branch 'master' into libusbx
Conflicts:
api.c
miner.h
usbutils.c
|
|
052e4348
|
2013-10-04T12:00:41
|
|
Remove unmaintained broken ztex driver.
|
|
dc85abd9
|
2013-10-03T23:19:18
|
|
Klondike update code to current git
|
|
bfdf3af1
|
2013-10-03T12:05:48
|
|
Store statistics on how often we have to cancel async bulk transfers and add a debug message whenever we do.
|
|
603bba67
|
2013-10-03T11:50:45
|
|
Treat any unexpected timeouts waiting for async transfers as though there may be a usb halt condition and attempt to clear the halt before cancelling the tranfer.
|
|
3eece618
|
2013-09-30T21:50:06
|
|
Get statistics on how long usb reads and writes wait on the devlock.
|
|
c5d61b4c
|
2013-10-02T06:53:25
|
|
Remove zero packet flag on usb as it's unsupported outside linux and unnecessary.
|
|
382433eb
|
2013-10-01T17:34:32
|
|
Fake the libusb transfer timed out message if we force cancel it with our own async functions.
|
|
69c01a14
|
2013-10-01T14:40:30
|
|
Use asynchronous transfers for all bulk transfers, allowing us to use our own timers and cancelling transfers that take too long.
|
|
b3ceb7e2
|
2013-09-30T21:50:06
|
|
Get statistics on how long usb reads and writes wait on the devlock.
|
|
d2f99cbe
|
2013-09-30T21:30:11
|
|
Add libusb error warning message when significant error occurs.
|
|
14887ba8
|
2013-09-29T17:44:41
|
|
usbinfo.devlock is only ever write locked so convert it to a mutex
|
|
ff90e6ae
|
2013-09-29T17:44:41
|
|
usbinfo.devlock is only ever write locked so convert it to a mutex
|
|
5e1ebd50
|
2013-09-29T13:54:16
|
|
Deuglify use of _PARSE_COMMANDS macro expansions.
|
|
303a7631
|
2013-09-29T13:08:15
|
|
Deuglify use of usb parse commands macro in usbutils.
|
|
8b341ccd
|
2013-09-29T02:48:39
|
|
Use macro expansion in usb_find_devices to avoid explicitly listing them all.
|
|
0952a881
|
2013-09-29T02:45:45
|
|
Use macro expansion to iterate over all the drivers without explicitly writing them out in usbutils.c
|
|
39c2e662
|
2013-09-28T23:12:29
|
|
Reattach the kernel driver on linux on usb_uninit.
|
|
3ef9fa3b
|
2013-09-28T23:09:26
|
|
Attach the kernel driver on failure to usb init on linux.
|
|
00aa8b4e
|
2013-09-28T23:05:39
|
|
libusb kernel driver operations are only available on linux.
|
|
372c4095
|
2013-09-28T12:44:36
|
|
Reuse the DRIVER_ macros to avoid having yet another definition for DRV_
|
|
2903028e
|
2013-09-28T11:45:58
|
|
Use macro expansion to generate extern device_drv prototypes.
|
|
88751974
|
2013-09-28T10:25:48
|
|
Create a macro list of drivers to enable easier addition of further drivers.
|
|
c50b13a6
|
2013-09-28T01:01:48
|
|
Merge branch 'master' of github.com:ckolivas/cgminer into redfury
|
|
71797050
|
2013-09-27T22:37:14
|
|
There is no point setting the BF1 preferred packet size to the maximum since it will do so automatically.
|
|
9b9dde16
|
2013-09-27T16:56:25
|
|
usbutils - fix USBDEBUG warnings
|
|
8d133706
|
2013-09-27T15:04:07
|
|
Remove unnecessary steps in communicating with BF1 and just use USB interface 1.
|
|
61c2ac57
|
2013-09-27T14:57:22
|
|
usbutils - usb_bulk_transfer fix the buf/data fix
|
|
2ba7fbe5
|
2013-09-27T14:35:35
|
|
Merge branch 'master' of github.com:ckolivas/cgminer into redfury
|
|
ffea432f
|
2013-09-27T14:25:57
|
|
usb_bulk_transfer - use the allocated buffer
|
|
2fc5c1d0
|
2013-09-27T13:47:35
|
|
Set preferred packet sizes per interface on BF1.
|
|
621114c5
|
2013-09-27T13:08:36
|
|
Merge branch 'master' of github.com:ckolivas/cgminer into redfury
|
|
d3a3b3a7
|
2013-09-27T13:07:04
|
|
usbutils allow PrefPacketSize per endpoint
|
|
8e4909f8
|
2013-09-27T11:00:48
|
|
Merge branch 'master' of github.com:ckolivas/cgminer into redfury
|
|
7deaa91b
|
2013-09-27T10:36:23
|
|
Add information for 2nd USB interface on BF1 devices and choose interface 1 for bulk transfers.
|
|
d8518f43
|
2013-09-27T10:08:59
|
|
usbutils - bulk transfer copy test fix
|
|
8d6126ac
|
2013-09-27T09:53:04
|
|
Merge branch 'master' of github.com:ckolivas/cgminer into redfury
|
|
a62267fa
|
2013-09-27T09:44:58
|
|
usbutils - add USBDEBUG for usb_bulk_transfer
|