Con Kolivas
7318eceef9
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.
2013-10-07 23:34:01 +11:00
ckolivas
6d7471237d
Use macro expansion to iterate over all device drivers without needing to explicitly code in support in all places. Pass a hotplug bool to the detect() function to prevent opencl trying to hogplug GPUs.
2013-09-28 15:11:06 +10:00
ckolivas
741b74309e
Forward declare all device drivers in miner.h avoiding the need to export them everywhere else.
2013-09-28 14:00:18 +10:00
ckolivas
8875197466
Create a macro list of drivers to enable easier addition of further drivers.
2013-09-28 10:25:48 +10:00
Con Kolivas
eeac9d81fc
Replace all references to the old n*sleep functions with the equivalent cgsleep_*s replacements.
2013-08-20 19:23:49 +10:00
Kano
ad1572f77f
size check get_datestamp/get_timestamp and remove unused cgpu->init
2013-07-06 20:17:17 +10:00
Kano
385a70bea7
make all statline overflow safe
2013-07-06 19:15:59 +10:00
Kano
c8a647edeb
MMQ turn on cps delays
2013-06-27 00:41:10 +10:00
Kano
6ca0eaa987
fix windows log warnings
2013-06-15 23:08:40 +10:00
Kano
84ffcbc51b
Use mining start time for device MH/U calculations
2013-06-14 01:09:50 +10:00
Kano
92fee70205
MMQ fix nodev failure caused by changes
2013-06-10 21:40:21 +10:00
Kano
7d35c6921e
ubsutils lock all access to nodev and cgusb
2013-06-10 18:52:18 +10:00
Kano
b8b137aeef
USB make device_path handled by usbutils
2013-06-10 15:59:02 +10:00
Kano
749fa78d8a
tidy up free in device detect functions
2013-06-10 15:39:44 +10:00
Kano
9287ee90f6
USB control creation and free of cgpu
2013-06-10 15:22:37 +10:00
Kano
05dd48ace1
usbutils/mmq fixed size usb_read default to wait for all data
2013-05-09 06:50:51 +10:00
Kano
9a1925ddaa
mmq correct applog typing
2013-05-02 23:15:29 +10:00
Kano
2c97b8b8bc
usb_init() allow it to ignore a device and show no message
2013-04-28 19:00:25 +10:00
Con Kolivas
207e93d8b7
Use cgtime wrapper in driver-modminer.c
2013-04-21 19:12:29 +10:00
Kano
b9968156ba
MMQ rewrite the last of the old scanhash loop and drastically reduce CPU
2013-02-13 11:15:20 +11:00
Kano
7abf30b2c0
distinguish between drv and it's id enum now called drv_id
2013-02-03 22:51:05 +11:00
Kano
8fbc4dade6
MMQ must copy USB bus:device due to usbinfo change
2013-02-02 20:14:45 +11:00
Kano
d057791915
Capitalise driver long names used in applog messages
2013-02-02 20:14:37 +11:00
Kano
7fbc3770b4
USB move usbdev info that needs to stay around into usbinfo
2013-02-02 20:14:36 +11:00
Kano
92abe36f12
MMQ include USB devpath in detection error messages
2013-02-02 20:14:32 +11:00
Kano
a52522af37
MMQ it's a bitstream
2013-02-02 20:14:31 +11:00
Kano
34bcc1c66d
USB automatically handle losing the device and report nodev in the API
2013-02-02 20:14:29 +11:00
Kano
f9e04a3c5b
device_drv - allow .name to be changed before add_cgpu()
2013-02-02 20:14:23 +11:00
Kano
a344deb6ac
rename device_api -> device_drv and all related api -> drv and add a device_drv->drv enum for identifying which driver each is
2013-02-02 20:14:19 +11:00
Kano
473d9095e4
MMQ missing firmware -> ERR not DEBUG
2012-12-19 16:15:11 +11:00
Kano
f0003055a4
MMQ ensure delta clock can never exceed limits
2012-12-19 14:30:48 +11:00
Kano
d848289e8c
MMQ lowercase new string constants
2012-12-19 14:25:58 +11:00
Kano
4ab19c7de6
MMQ add api pgaset for clock
2012-12-19 10:56:00 +11:00
Kano
5ab2f3a7cf
MMQ style police
2012-12-17 13:35:14 +11:00
Kano
072909a12f
MMQ count work check timeout failures
2012-12-17 13:21:24 +11:00
Kano
38ff2a7df9
MMQ allow partial work replies and count them
2012-12-17 13:20:10 +11:00
Kano
2653c906c1
MMQ overheat: remove clockdown (doesn't help) + ensure no lost shares
2012-12-17 07:56:07 +11:00
Kano
f3f8b4fdb4
MMQ handle over temp differently and hash longer
2012-12-12 17:01:28 +11:00
Kano
f19b03c812
mmq - abbreviate the temperature numbers
2012-12-10 10:53:11 +11:00
Kano
7993d258f8
MMQ avoid possible number overrun crashes
2012-12-02 23:03:21 +11:00
Kano
152e7e36a2
mmq usb v0.4 + api usb stats
2012-12-02 21:48:37 +11:00
Con Kolivas
2d35ac2567
Track all dynamically allocated memory within the work struct by copying work structs in a common place, creating freshly allocated heap ram for all arrays within the copied struct.
...
Clear all work structs from the same place to ensure memory does not leak from arrays within the struct.
Convert the gbt coinbase and stratum strings within the work struct to heap ram.
This will allow arbitrary lengths without an upper limit for the strings, preventing the overflows that happen with GBT.
2012-11-24 10:47:20 +11:00
Con Kolivas
86fd23a305
Convert remaining modminer and bfl uses of usleep to nmsleep.
2012-11-18 22:25:28 +11:00
Paul Sheppard
9f74e650b3
Tidy up device error counts
2012-11-04 20:17:43 -08:00
Kano
fc14b2ee07
MMQ new initialisation (that works) and clocking control
2012-10-17 09:56:42 +11:00
Con Kolivas
b41de69c35
Fix various modminer warnings on mingw.
2012-10-07 18:23:35 +11:00
Con Kolivas
58bba40a03
fds need to be zeroed before set in modminer.
2012-10-07 10:19:52 +11:00
Kano
8f4ccebf0d
remove MMQ unused variable warning
2012-09-16 11:47:54 +10:00
Kano
ad7aa2b382
FPGA - allow long or short device names in detect code + style police
2012-09-16 11:42:51 +10:00
Kano
307d8da034
HW: error counter auto for all devices - ztex code not fixed
2012-09-04 15:57:11 +10:00