Skip to content

Commit 11e31e8

Browse files
matthew-gerlachRuss Weight
authored andcommitted
fpga: dfl: add debug to failed partial reconfiguration
Add dev_err call printing number of bytes pushed out of total attempted after a failed partial reconfigation. Signed-off-by: Matthew Gerlach <matthew.gerlach@linux.intel.com>
1 parent ba2ce29 commit 11e31e8

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/fpga/dfl-fme-mgr.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ static int fme_mgr_write(struct fpga_manager *mgr,
170170
void __iomem *fme_pr = priv->ioaddr;
171171
u64 pr_ctrl, pr_status, pr_data;
172172
int delay = 0, pr_credit, i = 0;
173+
size_t full_cnt = count;
173174

174175
dev_dbg(dev, "start request\n");
175176

@@ -192,6 +193,8 @@ static int fme_mgr_write(struct fpga_manager *mgr,
192193
while (pr_credit <= 1) {
193194
if (delay++ > PR_WAIT_TIMEOUT) {
194195
dev_err(dev, "PR_CREDIT timeout\n");
196+
dev_err(dev, "wrote %zu bytes of %zu total\n",
197+
full_cnt - count, full_cnt);
195198
return -ETIMEDOUT;
196199
}
197200
udelay(1);

0 commit comments

Comments
 (0)