Loading drivers/hwtracing/coresight/coresight-tmc-etr.c +11 −16 Original line number Diff line number Diff line Loading @@ -465,6 +465,7 @@ static void tmc_etr_dump_hw(struct tmc_drvdata *drvdata) rwp = readl_relaxed(drvdata->base + TMC_RWP); val = readl_relaxed(drvdata->base + TMC_STS); if (drvdata->memtype == TMC_ETR_MEM_TYPE_CONTIG) { /* * Adjust the buffer to point to the beginning of the trace data * and update the available trace data. Loading @@ -476,13 +477,6 @@ static void tmc_etr_dump_hw(struct tmc_drvdata *drvdata) drvdata->buf = drvdata->vaddr; drvdata->len = rwp - drvdata->paddr; } if (drvdata->memtype == TMC_ETR_MEM_TYPE_CONTIG) { /* How much memory do we still have */ if (val & BIT(0)) drvdata->buf = drvdata->vaddr + rwp - drvdata->paddr; else drvdata->buf = drvdata->vaddr; } else { /* * Reset these variables before computing since we Loading @@ -490,8 +484,9 @@ static void tmc_etr_dump_hw(struct tmc_drvdata *drvdata) */ drvdata->sg_blk_num = 0; drvdata->delta_bottom = 0; drvdata->len = drvdata->size; if (val & BIT(0)) if (val & TMC_STS_FULL) tmc_etr_sg_rwp_pos(drvdata, rwp); else drvdata->buf = drvdata->vaddr; Loading Loading
drivers/hwtracing/coresight/coresight-tmc-etr.c +11 −16 Original line number Diff line number Diff line Loading @@ -465,6 +465,7 @@ static void tmc_etr_dump_hw(struct tmc_drvdata *drvdata) rwp = readl_relaxed(drvdata->base + TMC_RWP); val = readl_relaxed(drvdata->base + TMC_STS); if (drvdata->memtype == TMC_ETR_MEM_TYPE_CONTIG) { /* * Adjust the buffer to point to the beginning of the trace data * and update the available trace data. Loading @@ -476,13 +477,6 @@ static void tmc_etr_dump_hw(struct tmc_drvdata *drvdata) drvdata->buf = drvdata->vaddr; drvdata->len = rwp - drvdata->paddr; } if (drvdata->memtype == TMC_ETR_MEM_TYPE_CONTIG) { /* How much memory do we still have */ if (val & BIT(0)) drvdata->buf = drvdata->vaddr + rwp - drvdata->paddr; else drvdata->buf = drvdata->vaddr; } else { /* * Reset these variables before computing since we Loading @@ -490,8 +484,9 @@ static void tmc_etr_dump_hw(struct tmc_drvdata *drvdata) */ drvdata->sg_blk_num = 0; drvdata->delta_bottom = 0; drvdata->len = drvdata->size; if (val & BIT(0)) if (val & TMC_STS_FULL) tmc_etr_sg_rwp_pos(drvdata, rwp); else drvdata->buf = drvdata->vaddr; Loading