-
Notifications
You must be signed in to change notification settings - Fork 1.6k
FPGA - allow device detect override without an open failure #215
Conversation
I also aligned the open attempt DEBUG and ERR messages |
|
|
|
Please stop referring to issues with some other fork that don't exist here - and what has "DRIVER NAME" got to do with an easy way to get rid of the hack in cgminer you created and wouldn't document because you even admitted it was a hack As stated at the top, the current code hack forces an open failure rather than not attempting to open the device specified in the "-S" READ THE CODE - they are 3 characters - windows COMn ports are 4 characters minimum linux even more. The bug addressed here is that 64bit Windows7 with more than 6 BFL's will NOT handle the 7th one with the 32bit windows binary. |
They aren't 3 characters, that is a bug in this pullreq. They are "icarus:" and "bitforce:". The open failure may not be ideal, but it isn't a bug (the code is designed to ignore it gracefully). I've not heard anything about this Windows bug, and don't see any way your pullreq would attempt to address it. Nor do I think new bugs should be introduced to make Windows happy. |
"I've not heard anything about this Windows bug ..." https://bitcointalk.org/index.php?topic=80852.0 Though ... you were logged into IRC #cgminer when I discussed this at length with xDGDZEx |
Looks like that problem is completely unrelated to this pull request, much less fixed by it. In fact, it looks like nobody's even figured out what the problem is. |
That's a cosmetic bug in the Icarus driver. It should just be logging it as debug-level, not error. Not attempting to probe it at all as you seem to want here is fine, except for the bug you're introducing by changing the prefix from the driver name to garbage. Fix that and I'll ACK this. P.S. There's no need to be afraid of using string constants in inline code... |
That 'garbage' you are referring to happens to exactly match the driver ".name" in cgminer. |
It won't be good to go until you fix it. |
So, ckolivas, can we remove his veto control over BFL code since he wont accept a code change due to a BFGMiner requirement that isn't relevant to cgminer? |
Stop putting words in my mouth, you liar. This change fixes a strictly-cosmetic Icarus bug in a roundabout way. I don't mind that, but it is also changing usage in cgminer since 2.3.x to be more inconsistent for no reason whatsoever. This has zero impact on xDGDZEx's BFL issues, which still have an unknown cause. |
The usage has to be changed to fix the hack you implemented in 2.3.x You have already stated above "... except for the bug you're introducing by changing the prefix from the driver name to garbage. Fix that and I'll ACK this." However, my code uses the driver .name in cgminer (it is, however, different to the driver .name in that other miner) |
Driver name is .dname. Stop lying to people to make them think this fixes a problem, it doesn't. |
The whole point of this change is to use a name that works rather than one that ... as you said above ... "How do you ensure "COM1:" and similar don't break (this is my main reason I didn't do it myself)?" ... that doesn't allow it. Simple solution, as already stated, use a 3 character name that is unique for the devices. There is no "CORRECT" field that must be used in cgminer as long as it is unique - in cgminer there are 2 such fields, a long one .dname and a short one .name |
There is a way cgminer has always done it, and no valid reason to change it. The correct way to handle COM1: etc is to not treat ':' special if it is the last character. |
The current way is not documented and wasn't documented by you because (as you said) it was a hack My way isn't a hack and works fine and includes documentation |
I have tried kanoi patched exe and it is working perfectly with 4 BFLs. Without this patch I had to run 4 cgminers. Very inefficient. Please find a way to approve this pull request. Thank you. A++ |
Not sure how ANYONE is running multiple BFL on windows?? I swear I've seen screenshots. |
Original code works by failing to open an invalid devpath
New version doesn't attempt to open the invalid devpath
Also added the documentation (that wasn't there before)
On certain versions of windows the failure reduces the number of USB ports that can be opened by a single cgminer
Anyone using the old undocumented feature will need to change from using
icarus:/dev/ttyUSB0 to ica:/dev/ttyUSB0
bitforce:/dev/ttyUSB0 to bfl:/dev/ttyUSB0
as per the new documentation