Browse Source

Bugfix: Capitalize "MHz" correctly

Luke Dashjr 13 years ago
parent
commit
97c4821612
9 changed files with 17 additions and 17 deletions
  1. 4 4
      README
  2. 3 3
      adl.c
  3. 1 1
      driver-cairnsmore.c
  4. 2 2
      driver-modminer.c
  5. 1 1
      driver-opencl.c
  6. 1 1
      dynclock.c
  7. 1 1
      libblkmaker
  8. 1 1
      libztex.c
  9. 3 3
      miner.c

+ 4 - 4
README

@@ -191,10 +191,10 @@ GPU only options:
 --disable-gpu|-G    Disable GPU mining even if suitable devices exist
 --disable-gpu|-G    Disable GPU mining even if suitable devices exist
 --gpu-threads|-g <arg> Number of threads per GPU (1 - 10) (default: 2)
 --gpu-threads|-g <arg> Number of threads per GPU (1 - 10) (default: 2)
 --gpu-dyninterval <arg> Set the refresh interval in ms for GPUs using dynamic intensity (default: 7)
 --gpu-dyninterval <arg> Set the refresh interval in ms for GPUs using dynamic intensity (default: 7)
---gpu-engine <arg>  GPU engine (over)clock range in Mhz - one value, range and/or comma separated list (e.g. 850-900,900,750-850)
+--gpu-engine <arg>  GPU engine (over)clock range in MHz - one value, range and/or comma separated list (e.g. 850-900,900,750-850)
 --gpu-fan <arg>     GPU fan percentage range - one value, range and/or comma separated list (e.g. 25-85,85,65)
 --gpu-fan <arg>     GPU fan percentage range - one value, range and/or comma separated list (e.g. 25-85,85,65)
 --gpu-map <arg>     Map OpenCL to ADL device order manually, paired CSV (e.g. 1:0,2:1 maps OpenCL 1 to ADL 0, 2 to 1)
 --gpu-map <arg>     Map OpenCL to ADL device order manually, paired CSV (e.g. 1:0,2:1 maps OpenCL 1 to ADL 0, 2 to 1)
---gpu-memclock <arg> Set the GPU memory (over)clock in Mhz - one value for all or separate by commas for per card.
+--gpu-memclock <arg> Set the GPU memory (over)clock in MHz - one value for all or separate by commas for per card.
 --gpu-memdiff <arg> Set a fixed difference in clock speed between the GPU and memory in auto-gpu mode
 --gpu-memdiff <arg> Set a fixed difference in clock speed between the GPU and memory in auto-gpu mode
 --gpu-platform <arg> Select OpenCL platform ID to use for GPU mining
 --gpu-platform <arg> Select OpenCL platform ID to use for GPU mining
 --gpu-powertune <arg> Set the GPU powertune percentage - one value for all or separate by commas for per card.
 --gpu-powertune <arg> Set the GPU powertune percentage - one value for all or separate by commas for per card.
@@ -373,7 +373,7 @@ GPU 0: [124.2 / 191.3 Mh/s] [Q:212  A:77  R:33  HW:0  E:36%  U:1.73/m]
 Temp: 67.0 C
 Temp: 67.0 C
 Fan Speed: 35% (2500 RPM)
 Fan Speed: 35% (2500 RPM)
 Engine Clock: 960 MHz
 Engine Clock: 960 MHz
-Memory Clock: 480 Mhz
+Memory Clock: 480 MHz
 Vddc: 1.200 V
 Vddc: 1.200 V
 Activity: 93%
 Activity: 93%
 Powertune: 0%
 Powertune: 0%
@@ -625,7 +625,7 @@ Sets card 0 cutoff temperature to 95 and card 1 to 105.
 --gpu-memdiff -125
 --gpu-memdiff -125
 This setting will modify the memory speed whenever the GPU clock speed is
 This setting will modify the memory speed whenever the GPU clock speed is
 modified by --auto-gpu. In this example, it will set the memory speed to
 modified by --auto-gpu. In this example, it will set the memory speed to
-be 125 Mhz lower than the GPU speed. This is useful for some cards like the
+be 125 MHz lower than the GPU speed. This is useful for some cards like the
 6970 which normally don't allow a bigger clock speed difference.
 6970 which normally don't allow a bigger clock speed difference.
 
 
 
 

+ 3 - 3
adl.c

@@ -1293,7 +1293,7 @@ updated:
 			wlogprint("(%d RPM)", fanspeed);
 			wlogprint("(%d RPM)", fanspeed);
 		wlogprint("\n");
 		wlogprint("\n");
 	}
 	}
-	wlogprint("Engine Clock: %d MHz\nMemory Clock: %d Mhz\nVddc: %.3f V\nActivity: %d%%\nPowertune: %d%%\n",
+	wlogprint("Engine Clock: %d MHz\nMemory Clock: %d MHz\nVddc: %.3f V\nActivity: %d%%\nPowertune: %d%%\n",
 		engineclock, memclock, vddc, activity, powertune);
 		engineclock, memclock, vddc, activity, powertune);
 	wlogprint("Fan autotune is %s (%d-%d)\n", ga->autofan ? "enabled" : "disabled",
 	wlogprint("Fan autotune is %s (%d-%d)\n", ga->autofan ? "enabled" : "disabled",
 		  gpus[gpu].min_fan, gpus[gpu].gpu_fan);
 		  gpus[gpu].min_fan, gpus[gpu].gpu_fan);
@@ -1307,7 +1307,7 @@ updated:
 		change_autosettings(gpu);
 		change_autosettings(gpu);
 	} else if (!strncasecmp(&input, "e", 1)) {
 	} else if (!strncasecmp(&input, "e", 1)) {
 		get_enginerange(gpu, &imin, &imax);
 		get_enginerange(gpu, &imin, &imax);
-		wlogprint("Enter GPU engine clock speed (%d - %d Mhz)", imin, imax);
+		wlogprint("Enter GPU engine clock speed (%d - %d MHz)", imin, imax);
 		val = curses_int("");
 		val = curses_int("");
 		if (val < imin || val > imax) {
 		if (val < imin || val > imax) {
 			wlogprint("Value is outside safe range, are you sure?\n");
 			wlogprint("Value is outside safe range, are you sure?\n");
@@ -1335,7 +1335,7 @@ updated:
 			wlogprint("Failed to modify fan speed\n");
 			wlogprint("Failed to modify fan speed\n");
 	} else if (!strncasecmp(&input, "m", 1)) {
 	} else if (!strncasecmp(&input, "m", 1)) {
 		get_memoryrange(gpu, &imin, &imax);
 		get_memoryrange(gpu, &imin, &imax);
-		wlogprint("Enter GPU memory clock speed (%d - %d Mhz)", imin, imax);
+		wlogprint("Enter GPU memory clock speed (%d - %d MHz)", imin, imax);
 		val = curses_int("");
 		val = curses_int("");
 		if (val < imin || val > imax) {
 		if (val < imin || val > imax) {
 			wlogprint("Value is outside safe range, are you sure?\n");
 			wlogprint("Value is outside safe range, are you sure?\n");

+ 1 - 1
driver-cairnsmore.c

@@ -146,7 +146,7 @@ static bool cairnsmore_init(struct thr_info *thr)
 		info->dclk.freqM =
 		info->dclk.freqM =
 		info->dclk.freqMDefault = CAIRNSMORE1_DEFAULT_CLOCK / 2.5;
 		info->dclk.freqMDefault = CAIRNSMORE1_DEFAULT_CLOCK / 2.5;
 		cairnsmore_send_cmd(cm1->device_fd, 0, info->dclk.freqM);
 		cairnsmore_send_cmd(cm1->device_fd, 0, info->dclk.freqM);
-		applog(LOG_WARNING, "%s %u: Frequency set to %u Mhz (range: %u-%u)",
+		applog(LOG_WARNING, "%s %u: Frequency set to %u MHz (range: %u-%u)",
 		       cm1->api->name, cm1->device_id,
 		       cm1->api->name, cm1->device_id,
 		       CAIRNSMORE1_DEFAULT_CLOCK, CAIRNSMORE1_MINIMUM_CLOCK, CAIRNSMORE1_MAXIMUM_CLOCK
 		       CAIRNSMORE1_DEFAULT_CLOCK, CAIRNSMORE1_MINIMUM_CLOCK, CAIRNSMORE1_MAXIMUM_CLOCK
 		);
 		);

+ 2 - 2
driver-modminer.c

@@ -443,7 +443,7 @@ modminer_fpga_init(struct thr_info *thr)
 			applog(LOG_WARNING, "%s %u.%u: Failed to set desired initial frequency of %u", modminer->api->name, modminer->device_id, fpgaid, MODMINER_DEFAULT_CLOCK);
 			applog(LOG_WARNING, "%s %u.%u: Failed to set desired initial frequency of %u", modminer->api->name, modminer->device_id, fpgaid, MODMINER_DEFAULT_CLOCK);
 	}
 	}
 	state->dclk.freqMDefault = state->dclk.freqM;
 	state->dclk.freqMDefault = state->dclk.freqM;
-	applog(LOG_WARNING, "%s %u.%u: Frequency set to %u Mhz (range: %u-%u)", modminer->api->name, modminer->device_id, fpgaid, state->dclk.freqM * 2, MODMINER_MINIMUM_CLOCK, state->dclk.freqMaxM * 2);
+	applog(LOG_WARNING, "%s %u.%u: Frequency set to %u MHz (range: %u-%u)", modminer->api->name, modminer->device_id, fpgaid, state->dclk.freqM * 2, MODMINER_MINIMUM_CLOCK, state->dclk.freqMaxM * 2);
 
 
 	mutex_unlock(&modminer->device_mutex);
 	mutex_unlock(&modminer->device_mutex);
 
 
@@ -518,7 +518,7 @@ static void modminer_get_temperature(struct cgpu_info *modminer, struct thr_info
 					state->last_cutoff_reduced = now;
 					state->last_cutoff_reduced = now;
 					int oldFreq = state->dclk.freqM;
 					int oldFreq = state->dclk.freqM;
 					if (modminer_reduce_clock(thr, false))
 					if (modminer_reduce_clock(thr, false))
-						applog(LOG_NOTICE, "%s %u.%u: Frequency %s from %u to %u Mhz (temp: %d)",
+						applog(LOG_NOTICE, "%s %u.%u: Frequency %s from %u to %u MHz (temp: %d)",
 						       modminer->api->name, modminer->device_id, fpgaid,
 						       modminer->api->name, modminer->device_id, fpgaid,
 						       (oldFreq > state->dclk.freqM ? "dropped" : "raised "),
 						       (oldFreq > state->dclk.freqM ? "dropped" : "raised "),
 						       oldFreq * 2, state->dclk.freqM * 2,
 						       oldFreq * 2, state->dclk.freqM * 2,

+ 1 - 1
driver-opencl.c

@@ -919,7 +919,7 @@ retry:
 				if (engineclock != -1)
 				if (engineclock != -1)
 					tailsprintf(logline, "E: %d MHz  ", engineclock);
 					tailsprintf(logline, "E: %d MHz  ", engineclock);
 				if (memclock != -1)
 				if (memclock != -1)
-					tailsprintf(logline, "M: %d Mhz  ", memclock);
+					tailsprintf(logline, "M: %d MHz  ", memclock);
 				if (vddc != -1)
 				if (vddc != -1)
 					tailsprintf(logline, "V: %.3fV  ", vddc);
 					tailsprintf(logline, "V: %.3fV  ", vddc);
 				if (activity != -1)
 				if (activity != -1)

+ 1 - 1
dynclock.c

@@ -18,7 +18,7 @@ void dclk_prepare(struct dclk_data *data)
 
 
 void dclk_msg_freqchange(const char *repr, int oldFreq, int newFreq, const char *tail)
 void dclk_msg_freqchange(const char *repr, int oldFreq, int newFreq, const char *tail)
 {
 {
-	applog(LOG_NOTICE, "%s: Frequency %s from %u to %u Mhz%s",
+	applog(LOG_NOTICE, "%s: Frequency %s from %u to %u MHz%s",
 	       repr,
 	       repr,
 	       (oldFreq > newFreq ? "dropped" : "raised "),
 	       (oldFreq > newFreq ? "dropped" : "raised "),
 	       oldFreq, newFreq,
 	       oldFreq, newFreq,

+ 1 - 1
libblkmaker

@@ -1 +1 @@
-Subproject commit b86d129ed4f2444f215638539b8fec22a6877c75
+Subproject commit ca3cf0173806d39d2b3a1400de3fa4bec7ab772a

+ 1 - 1
libztex.c

@@ -384,7 +384,7 @@ int libztex_setFreq(struct libztex_device *ztex, uint16_t freq) {
 	}
 	}
 	ztex->dclk.freqM = freq;
 	ztex->dclk.freqM = freq;
 	if (oldfreq > ztex->dclk.freqMaxM)
 	if (oldfreq > ztex->dclk.freqMaxM)
-		applog(LOG_WARNING, "%s: Frequency set to %u Mhz (range: %u-%u)",
+		applog(LOG_WARNING, "%s: Frequency set to %u MHz (range: %u-%u)",
 		       ztex->repr,
 		       ztex->repr,
 		       (unsigned)(ztex->freqM1 * (ztex->dclk.freqM + 1)),
 		       (unsigned)(ztex->freqM1 * (ztex->dclk.freqM + 1)),
 		       (unsigned)ztex->freqM1,
 		       (unsigned)ztex->freqM1,

+ 3 - 3
miner.c

@@ -1048,7 +1048,7 @@ static struct opt_table opt_config_table[] = {
 #ifdef HAVE_ADL
 #ifdef HAVE_ADL
 	OPT_WITH_ARG("--gpu-engine",
 	OPT_WITH_ARG("--gpu-engine",
 		     set_gpu_engine, NULL, NULL,
 		     set_gpu_engine, NULL, NULL,
-		     "GPU engine (over)clock range in Mhz - one value, range and/or comma separated list (e.g. 850-900,900,750-850)"),
+		     "GPU engine (over)clock range in MHz - one value, range and/or comma separated list (e.g. 850-900,900,750-850)"),
 	OPT_WITH_ARG("--gpu-fan",
 	OPT_WITH_ARG("--gpu-fan",
 		     set_gpu_fan, NULL, NULL,
 		     set_gpu_fan, NULL, NULL,
 		     "GPU fan percentage range - one value, range and/or comma separated list (e.g. 0-85,85,65)"),
 		     "GPU fan percentage range - one value, range and/or comma separated list (e.g. 0-85,85,65)"),
@@ -1057,7 +1057,7 @@ static struct opt_table opt_config_table[] = {
 		     "Map OpenCL to ADL device order manually, paired CSV (e.g. 1:0,2:1 maps OpenCL 1 to ADL 0, 2 to 1)"),
 		     "Map OpenCL to ADL device order manually, paired CSV (e.g. 1:0,2:1 maps OpenCL 1 to ADL 0, 2 to 1)"),
 	OPT_WITH_ARG("--gpu-memclock",
 	OPT_WITH_ARG("--gpu-memclock",
 		     set_gpu_memclock, NULL, NULL,
 		     set_gpu_memclock, NULL, NULL,
-		     "Set the GPU memory (over)clock in Mhz - one value for all or separate by commas for per card"),
+		     "Set the GPU memory (over)clock in MHz - one value for all or separate by commas for per card"),
 	OPT_WITH_ARG("--gpu-memdiff",
 	OPT_WITH_ARG("--gpu-memdiff",
 		     set_gpu_memdiff, NULL, NULL,
 		     set_gpu_memdiff, NULL, NULL,
 		     "Set a fixed difference in clock speed between the GPU and memory in auto-gpu mode"),
 		     "Set a fixed difference in clock speed between the GPU and memory in auto-gpu mode"),
@@ -5910,7 +5910,7 @@ static void *watchdog_thread(void __maybe_unused *userdata)
 				float temp = 0, vddc = 0;
 				float temp = 0, vddc = 0;
 
 
 				if (gpu_stats(gpu, &temp, &engineclock, &memclock, &vddc, &activity, &fanspeed, &fanpercent, &powertune))
 				if (gpu_stats(gpu, &temp, &engineclock, &memclock, &vddc, &activity, &fanspeed, &fanpercent, &powertune))
-					applog(LOG_DEBUG, "%.1f C  F: %d%%(%dRPM)  E: %dMHz  M: %dMhz  V: %.3fV  A: %d%%  P: %d%%",
+					applog(LOG_DEBUG, "%.1f C  F: %d%%(%dRPM)  E: %dMHz  M: %dMHz  V: %.3fV  A: %d%%  P: %d%%",
 					temp, fanpercent, fanspeed, engineclock, memclock, vddc, activity, powertune);
 					temp, fanpercent, fanspeed, engineclock, memclock, vddc, activity, powertune);
 			}
 			}
 #endif
 #endif