Repository navigation
Conversation
Have Emc2101::new take an Emc2101Config holding a DiodeCalibration, and write it to the ideality (0x17) and beta (0x18) registers in init(), so that leaving the calibration out is a deliberate choice rather than a silent default. The chip keeps these registers until it loses power, so a board read with whatever the last firmware had set. DiodeCalibration::Uncalibrated writes the datasheet defaults. The Bitaxe passes it for now, so a board still holding AxeOS's calibration loses it at startup; the next commit calibrates the Gamma.
Write ESP-Miner's diode calibration for the Gamma: ideality 0x24 and beta 0x00. Without it, the ASIC temperature reads about 17 °C high, so the 80 °C emergency shutdown trips at a real temperature of about 63 °C. On a Gamma 601 at 525 MHz and 1150 mV, the reading fell by 16.6-17.0 °C, with core power and hashrate unchanged. Fixes 256foundation#140.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Have Emc2101::new take an Emc2101Config holding a DiodeCalibration, and write it to the ideality (0x17) and beta (0x18) registers in init(), so that leaving the calibration out is a deliberate choice rather than a silent default. Then calibrate the Gamma with ESP-Miner's values, ideality 0x24 and beta 0x00.
Without the calibration, the ASIC temperature reads about 17 °C high, so the 80 °C emergency shutdown trips at a real temperature of about 63 °C. On a Gamma 601 at 525 MHz and 1150 mV, four alternating 8-minute runs read 77.9 and 78.2 °C uncalibrated, and 61.3 and 61.3 °C calibrated, with core power, VR temperature, and hashrate unchanged.
As Skot pointed out, the diode does not read correctly until the core voltage is on. Mujina already ignores readings until 500 ms after the rail is up and the ASIC leaves reset, so that path is unchanged.
Fixes #140.