Skip to content

Commit 8df162c

Browse files
committed
vclk, ect: remore debug
1 parent 17e568a commit 8df162c

2 files changed

Lines changed: 1 addition & 56 deletions

File tree

drivers/soc/samsung/cal-if/vclk.c

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -17,42 +17,6 @@ unsigned int asv_table_ver = 0;
1717
unsigned int main_rev;
1818
unsigned int sub_rev;
1919

20-
static void vclk_debug_dump_lut(struct vclk *vclk) {
21-
int i, j;
22-
23-
if (!vclk || !vclk->lut) {
24-
pr_info("[vclk-debug] no lut for vclk\n");
25-
return;
26-
}
27-
28-
pr_info("[vclk-debug] dump for vclk '%s': num_rates=%d, num_list=%d\n",
29-
vclk->name, vclk->num_rates, vclk->num_list);
30-
31-
for (i = 0; i < vclk->num_rates; i++) {
32-
struct vclk_lut *l = &vclk->lut[i];
33-
34-
pr_info("[vclk-debug] lut[%02d]: rate=%u\n", i, l->rate);
35-
36-
if (!l->params) {
37-
pr_info("[vclk-debug] params: (null)\n");
38-
continue;
39-
}
40-
41-
pr_info("[vclk-debug] params:");
42-
for (j = 0; j < vclk->num_list; j++) {
43-
pr_cont(" %d", l->params[j]);
44-
}
45-
46-
pr_info("[vclk-debug2] lut[%02d] rate=%u\n", i, vclk->lut[i].rate);
47-
for (j = 0; j < vclk->num_list; j++){
48-
pr_info("[vclk-debug2] param[%02d] (clk_id=0x%x) = 0x%x\n", j,
49-
vclk->list[j], vclk->lut[i].params[j]);
50-
}
51-
52-
pr_cont("\n");
53-
}
54-
}
55-
5620
static int vclk_add_level_clone(struct vclk *vclk, unsigned int new_rate,
5721
int template_idx) {
5822
int i, insert_idx;
@@ -708,9 +672,6 @@ static int vclk_get_dfs_info(struct vclk *vclk) {
708672
vclk->max_freq, vclk->boot_freq, vclk->resume_freq,
709673
minmax_table ? "override" : "absent");
710674

711-
if (!strcmp(vclk->name, "dvfs_cpucl2"))
712-
vclk_debug_dump_lut(vclk);
713-
714675
if (!strcmp(vclk->name, "dvfs_g3d")) {
715676
pr_info("[vclk] dvfs_g3d boot_idx=%d resume_idx=%d table_ver=%u\n",
716677
dvfs_domain->boot_level_idx, dvfs_domain->resume_level_idx,
@@ -719,17 +680,6 @@ static int vclk_get_dfs_info(struct vclk *vclk) {
719680
pr_info("[vclk] g3d lut[%02d] rate=%u\n", i, vclk->lut[i].rate);
720681
}
721682

722-
vclk_debug_dump_lut(vclk);
723-
724-
/*
725-
if (!strcmp(vclk->name, "dvfs_cpucl2")) {
726-
int tmpl = vclk->num_rates - 1;
727-
unsigned int new_rate = 3200000;
728-
729-
vclk_add_level_clone(vclk, new_rate, tmpl);
730-
vclk_debug_dump_lut(vclk);
731-
}
732-
*/
733683
return ret;
734684

735685
err_nomem_override:

drivers/soc/samsung/ect_parser.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2554,8 +2554,6 @@ int ect_parse_binary_header(void)
25542554

25552555
ect_init_map_io();
25562556

2557-
ect_dump_raw_blob();
2558-
25592557
address = (void *)ect_address;
25602558
if (address == NULL)
25612559
return -EINVAL;
@@ -2571,9 +2569,6 @@ int ect_parse_binary_header(void)
25712569
ret = -EINVAL;
25722570
goto err_memcmp;
25732571
}
2574-
2575-
ect_dump_raw_blob();
2576-
25772572

25782573
ect_present_test_data(ect_header->version);
25792574

@@ -2599,9 +2594,9 @@ int ect_parse_binary_header(void)
25992594
}
26002595
}
26012596

2597+
//Dump ect Blob
26022598
ect_dump_raw_blob();
26032599

2604-
26052600
ect_header_info.block_handle = ect_header;
26062601

26072602
return ret;

0 commit comments

Comments
 (0)