Skip to content

Commit

Permalink
phb4: Fix lane equalisation setting
Browse files Browse the repository at this point in the history
Fix cut and paste from phb3. The sizes have changes now we have GEN4,
so the check here needs to change also

Without this we end up with the default settings (all '7') rather
than what's in HDAT.

Signed-off-by: Michael Neuling <[email protected]>
Signed-off-by: Stewart Smith <[email protected]>
(cherry picked from commit d957e92)
Signed-off-by: Stewart Smith <[email protected]>
  • Loading branch information
mikey authored and stewartsmith committed Nov 16, 2017
1 parent b2d6679 commit 40e5113
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hw/phb4.c
Original file line number Diff line number Diff line change
Expand Up @@ -5150,7 +5150,7 @@ static void phb4_probe_stack(struct dt_node *stk_node, uint32_t pec_index,
size_t leq_size;
const void *leq = dt_prop_get_def_size(stk_node, "ibm,lane-eq",
NULL, &leq_size);
if (leq != NULL && leq_size == 4 * 8)
if (leq != NULL && leq_size >= 6 * 8)
dt_add_property(np, "ibm,lane-eq", leq, leq_size);
}
if (dt_has_node_property(stk_node, "ibm,capp-ucode", NULL)) {
Expand Down

0 comments on commit 40e5113

Please sign in to comment.