|
278f157e
|
2013-11-10T09:12:39
|
|
Merge remote-tracking branch 'upstream/master' into new_protocol
|
|
9f74e057
|
2013-11-09T08:23:23
|
|
Use libusb's own zero length packet support unless we have to emulate it on windows since only libusb knows for sure if it's needed.
|
|
8e5dc21e
|
2013-11-09T01:46:50
|
|
Send zero length packets when terminating a usb write aligned to maxpacketsize.
|
|
652044d9
|
2013-11-06T10:01:15
|
|
Check length before submitting sync transfers
|
|
b1be5c6d
|
2013-11-05T19:18:20
|
|
Different windows+usb combinations respond with varying levels of reliability wrt timeouts so use a nominal extra 40ms before cancelling transfers that fail to time out on their own.
|
|
21f18956
|
2013-11-05T19:11:20
|
|
Revert "Use no cancel transfer functions on windows in callback_wait"
This reverts commit 8f6acad8ec11fa68e31447e4de9e2ce49c2bf16a.
|
|
6bc691ad
|
2013-11-05T15:55:19
|
|
Treat usb write timeout errors as unrecoverable.
|
|
42b3cf19
|
2013-11-05T15:46:07
|
|
Transfer errors are filtered out in usbutils now so no need to look for them in NODEV checks.
|
|
e692cd08
|
2013-11-05T13:55:06
|
|
Do not double up with checking for end of timeout measurements in usb read/write.
|
|
8f6acad8
|
2013-11-04T12:01:58
|
|
Use no cancel transfer functions on windows in callback_wait
|
|
f066ca68
|
2013-11-05T10:19:11
|
|
Merge branch 'master' of github.com:ckolivas/cgminer into new_protocol
Conflicts:
configure.ac
miner.h
usbutils.c
usbutils.h
|
|
f4cf0939
|
2013-11-05T08:36:54
|
|
Add a wr_trylock wrapper for pthread rw lock write trylock.
|
|
251e1a98
|
2013-11-05T08:20:04
|
|
Give AMU a much longer timeout on windows than other icarus devices.
|
|
8b38d7fe
|
2013-11-04T16:53:03
|
|
Use WRITEIOERR macro check for all usb writes.
|
|
8fb7a0d1
|
2013-11-04T08:45:09
|
|
Always use a usb read buffer instead of having to explicitly enable it.
|
|
310aa754
|
2013-11-03T21:59:34
|
|
Discriminate between libusb transfer errors and regular libusb errors and make sure to capture them all.
|
|
d1683fe6
|
2013-11-03T21:01:50
|
|
Always read a full sized transfer for bulk reads.
|
|
fc80e2fe
|
2013-11-03T20:31:04
|
|
Deprecate preferred packet size functions in usbutils since they're unhelpful.
|
|
ea122100
|
2013-11-03T20:24:34
|
|
Why are we reading extra again in usb read when buffering is enabled? Don't do that.
|
|
38d9c24e
|
2013-11-03T20:16:45
|
|
Copy known transferred amount back to buffer for usb reads instead of requested length.
|
|
b5dfb8f0
|
2013-11-03T20:15:41
|
|
Ignore preferred packet size.
|
|
0cceaccf
|
2013-11-03T19:49:00
|
|
Treat timeout errors on usb writes as IO errors.
|
|
dfba30b9
|
2013-11-03T19:41:56
|
|
Ignore iManufacturer from bitfury devices to support bluefury as well as redfury.
|
|
95797821
|
2013-11-03T19:15:32
|
|
Add more debugging info for when usb details don't match.
|
|
73f6a570
|
2013-11-03T09:25:28
|
|
Look for timeout overruns in usb read/write.
|
|
ccb74239
|
2013-11-03T09:23:45
|
|
Use an int for usb_read/write to identify overruns.
|
|
1f227462
|
2013-11-03T09:04:15
|
|
Use the callback timeout as a safety mechanism only on windows.
|
|
4c0b6438
|
2013-11-02T12:29:08
|
|
Instead of using complicated sleeps to emulate characters per second on usb writes, submit only as many characters as can be transferred per usb poll of 1ms, and use timeouts in bulk transfers, cancelling transfers only as a failsafe.
|
|
efc605ff
|
2013-11-03T19:41:56
|
|
Ignore iManufacturer from bitfury devices to support bluefury as well as redfury.
|
|
ef0b7d3b
|
2013-11-03T19:15:32
|
|
Add more debugging info for when usb details don't match.
|
|
5c9f3036
|
2013-10-29T22:25:05
|
|
Merge branch 'master' into hashfast
|
|
5bd1b560
|
2013-10-28T07:41:15
|
|
usbutils - usb_nodev() allow a driver to drop a device
|
|
a821df6a
|
2013-10-27T13:41:50
|
|
Correctly calculate sleep_estimate in usbutils that may have been preventing usecps from working.
|
|
4940b719
|
2013-10-26T22:12:34
|
|
Merge branch 'master' into hashfast
|
|
691a681f
|
2013-10-26T20:24:51
|
|
Remove inappropriate extra locking in _usb_transfer_read
|
|
f5c69237
|
2013-10-25T16:19:48
|
|
Merge branch 'master' of github.com:ckolivas/cgminer into new_protocol
Conflicts:
usbutils.c
|
|
e94b4210
|
2013-10-25T15:42:39
|
|
Buffering is a debug-level detail not something most people will care about
|
|
f29f6121
|
2013-10-25T14:35:56
|
|
Merge branch 'master' into hashfast
|
|
0657b64e
|
2013-10-25T13:36:21
|
|
Only set libusb cancellable status if the transfer succeeds.
|
|
0da551fa
|
2013-10-25T12:30:39
|
|
Use a linked list for all usb transfers instead of just cancellable ones.
|
|
bbf8a00c
|
2013-10-25T10:50:03
|
|
Hashing with new protocol
|
|
7b5884ca
|
2013-10-25T08:43:55
|
|
Add cancellable transfers correctly to the ct_list
|
|
9d8e3df0
|
2013-10-25T04:07:09
|
|
Add usb transfer cancellation on shutdown and documentation regarding where cancellable transfers are suitable.
|
|
d2feacdf
|
2013-10-24T22:26:13
|
|
Cancel cancellable usb transfers on work restart messages.
|
|
51660838
|
2013-10-24T21:58:25
|
|
Don't bother having a separate cancellable transfer struct for usb transfers, simply include the list in the usb_transfer struct.
|
|
c96f0965
|
2013-10-24T21:54:35
|
|
Add wrappers for usb_read_cancellable and usb_read_timeout_cancellable
|
|
c2c69877
|
2013-10-24T21:52:50
|
|
Specifically set the cancellable state for it to not be uninitialised in the usb transfer struct.
|
|
b52bb5c9
|
2013-10-24T21:50:52
|
|
Alter the usb cancellable list only under cgusb_fd_lock write lock.
|
|
19ec360f
|
2013-10-24T21:45:41
|
|
Pass the cancellable option to _usb_read options to decide on whether to add usb transfers to the list of cancellable transfers.
|
|
2b075ccc
|
2013-10-24T21:42:04
|
|
Create a linked list of potentially cancellable usb transfers.
|
|
b639e688
|
2013-10-24T21:19:29
|
|
Merge branch 'master' into hashfast
|
|
824aa5cb
|
2013-10-24T20:36:53
|
|
Keep a global counter of how many async usb transfers are in place.
|
|
856471e3
|
2013-10-24T20:32:17
|
|
Perform libusb_submit_transfer under the write variant of cgusb_fd_lock
|
|
669bcac3
|
2013-10-23T12:06:20
|
|
Merge branch 'master' into hashfast
|
|
269a145a
|
2013-10-23T10:45:22
|
|
Add usb command name to critical libusb error reporting.
|
|
44cc52c3
|
2013-10-21T12:18:42
|
|
Drop usb buffering message to debug logging level.
|
|
6493b976
|
2013-10-21T12:18:42
|
|
Drop usb buffering message to debug logging level.
|
|
31e8ebaf
|
2013-10-19T16:08:17
|
|
Merge branch 'master' into hashfast
|
|
eed0afcd
|
2013-10-19T13:29:59
|
|
Convert libusb transfer errors to regular libusb error messages to allow for accurate message reporting.
|
|
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.
|
|
f5baf9f5
|
2013-10-18T19:12:13
|
|
Merge branch 'master' into hashfast
Conflicts:
usbutils.h
|
|
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
|
|
e06e495a
|
2013-10-14T15:07:32
|
|
Merge branch 'master' into hashfast
|
|
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.
|
|
634151ff
|
2013-10-14T10:06:37
|
|
Merge branch 'master' into hashfast
|
|
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.
|
|
8d1604a2
|
2013-10-14T09:40:23
|
|
Do not use locking on usb callback function pthread signalling to prevent deadlock with libusb's own event lock.
|
|
d2d7a746
|
2013-10-14T00:54:39
|
|
Merge branch 'master' into hashfast
|
|
280dc4bf
|
2013-10-14T00:54:05
|
|
Lock mutex before second pthread_cond_wait in usbutils to prevent a race.
|
|
176cae27
|
2013-10-13T18:42:33
|
|
Add basic definitions for hashfast device recognition.
|
|
9b5c5349
|
2013-10-13T16:41:53
|
|
Merge branch 'master' into hashfast
Conflicts:
api.c
configure.ac
miner.h
usbutils.c
usbutils.h
|
|
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.
|