Skip to content

Commit a1fcaf0

Browse files
davejiangvinodkoul
authored andcommitted
dmaengine: idxd: reflect shadow copy of traffic class programming
The traffic class are set to -1 at initialization until the user programs them. If the user choose not to, the driver will program appropriate defaults. The driver also needs to update the shadowed copies of the values after doing the programming. Fixes: c52ca47 ("dmaengine: idxd: add configuration component of driver") Reported-by: Yixin Zhang <[email protected]> Signed-off-by: Dave Jiang <[email protected]> Link: https://lore.kernel.org/r/158386263076.10898.4586509576813094559.stgit@djiang5-desk3.ch.intel.com Signed-off-by: Vinod Koul <[email protected]>
1 parent 7c4a4d0 commit a1fcaf0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/dma/idxd/device.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -584,11 +584,11 @@ static void idxd_group_flags_setup(struct idxd_device *idxd)
584584
struct idxd_group *group = &idxd->groups[i];
585585

586586
if (group->tc_a == -1)
587-
group->grpcfg.flags.tc_a = 0;
587+
group->tc_a = group->grpcfg.flags.tc_a = 0;
588588
else
589589
group->grpcfg.flags.tc_a = group->tc_a;
590590
if (group->tc_b == -1)
591-
group->grpcfg.flags.tc_b = 1;
591+
group->tc_b = group->grpcfg.flags.tc_b = 1;
592592
else
593593
group->grpcfg.flags.tc_b = group->tc_b;
594594
group->grpcfg.flags.use_token_limit = group->use_token_limit;

0 commit comments

Comments
 (0)