Bitcoin Forum
December 03, 2016, 03:54:53 PM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Via Padlock hardware acceleration  (Read 4280 times)
user4553
Newbie
*
Offline Offline

Activity: 1


View Profile
March 12, 2011, 01:04:49 PM
 #1

Hi,

just started a fork to add VIA padlock harware accelaration for the sha256 functionality.  Find the git tree at:

  [removed dead link]

This is a very clean patch currently, only adding a few lines to cryptopp/sha.cpp .  Should be much cleaner (and more generic) then the code posted before here:

  http://bitcointalk.org/index.php?topic=355.0

Note that the code by Sgtstein even had a possible corruption bug when IRQs interrupted the crypto engine.

Still verifying whether it works.  Would be grateful for comments.

cheers,

David

Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1480780493
Hero Member
*
Offline Offline

Posts: 1480780493

View Profile Personal Message (Offline)

Ignore
1480780493
Reply with quote  #2

1480780493
Report to moderator
1480780493
Hero Member
*
Offline Offline

Posts: 1480780493

View Profile Personal Message (Offline)

Ignore
1480780493
Reply with quote  #2

1480780493
Report to moderator
1480780493
Hero Member
*
Offline Offline

Posts: 1480780493

View Profile Personal Message (Offline)

Ignore
1480780493
Reply with quote  #2

1480780493
Report to moderator
jgarzik
Legendary
*
qt
Offline Offline

Activity: 1470


View Profile
March 12, 2011, 06:07:01 PM
 #2

Unfortunately, you are duplicated work.  This CPU miner supports VIA padlock: https://github.com/jgarzik/cpuminer

The main client does not need any CPU mining tweaks.  In fact, we discuss from time-to-time how to hide / disable / remove CPU mining from the main bitcoin client.

Jeff Garzik, bitcoin core dev team and BitPay engineer; opinions are my own, not my employer.
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
lfm
Full Member
***
Offline Offline

Activity: 196



View Profile
March 15, 2011, 09:46:26 PM
 #3

Unfortunately, you are duplicated work.  This CPU miner supports VIA padlock: https://github.com/jgarzik/cpuminer

The main client does not need any CPU mining tweaks.  In fact, we discuss from time-to-time how to hide / disable / remove CPU mining from the main bitcoin client.

Ah, nice, google didn't find that.  BTW looking over the code it seems to suffer the IRQ bug I mentioned.  I think we have to loop over the xsha256 opcode, until (e)SI register is at the end of the input.  In case an interrupt happens, the instruction will finish somewhere midway through the computation and needs to be restarted with the esi/edi/ecx register value state it left.

the sha256 instruction will automaticlly restart after an interrupt much like any rep instruction. I am quite sure it is correct as is
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!