Skip to content

Commit

Permalink
add some logging...
Browse files Browse the repository at this point in the history
  • Loading branch information
joelsmithTT committed Nov 14, 2024
1 parent 79d811a commit 658d649
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wormhole.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ static void write_iatu_reg(struct wormhole_device *wh_dev, unsigned direction,
u32 offset = IATU_BASE + (2 * region + direction) * IATU_REGION_STRIDE
+ reg;

pr_info("iatu: writing %08x to %08x\n", value, offset);
iowrite32(value, wh_dev->bar2_mapping + offset);
}

Expand Down Expand Up @@ -97,9 +98,11 @@ static bool wormhole_init(struct tenstorrent_device *tt_dev) {

wh_dev->bar2_mapping = pci_iomap(wh_dev->tt.pdev, 2, 0);
if (wh_dev->bar2_mapping == NULL) goto fail_bar2;
pr_info("mapped bar2 OK\n");

wh_dev->bar4_mapping = pci_iomap(wh_dev->tt.pdev, 4, 0);
if (wh_dev->bar4_mapping == NULL) goto fail_bar4;
pr_info("mapped bar4 OK\n");

return true;

Expand Down

0 comments on commit 658d649

Please sign in to comment.