diff options
Diffstat (limited to 'drivers/gpu/host1x/hw/cdma_hw.c')
| -rw-r--r-- | drivers/gpu/host1x/hw/cdma_hw.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/gpu/host1x/hw/cdma_hw.c b/drivers/gpu/host1x/hw/cdma_hw.c index 6b09b71940c2..305ea8f3382d 100644 --- a/drivers/gpu/host1x/hw/cdma_hw.c +++ b/drivers/gpu/host1x/hw/cdma_hw.c | |||
| @@ -26,11 +26,11 @@ | |||
| 26 | #include "../debug.h" | 26 | #include "../debug.h" |
| 27 | 27 | ||
| 28 | /* | 28 | /* |
| 29 | * Put the restart at the end of pushbuffer memor | 29 | * Put the restart at the end of pushbuffer memory |
| 30 | */ | 30 | */ |
| 31 | static void push_buffer_init(struct push_buffer *pb) | 31 | static void push_buffer_init(struct push_buffer *pb) |
| 32 | { | 32 | { |
| 33 | *(pb->mapped + (pb->size_bytes >> 2)) = host1x_opcode_restart(0); | 33 | *(u32 *)(pb->mapped + pb->size_bytes) = host1x_opcode_restart(0); |
| 34 | } | 34 | } |
| 35 | 35 | ||
| 36 | /* | 36 | /* |
| @@ -51,11 +51,11 @@ static void cdma_timeout_cpu_incr(struct host1x_cdma *cdma, u32 getptr, | |||
| 51 | 51 | ||
| 52 | /* NOP all the PB slots */ | 52 | /* NOP all the PB slots */ |
| 53 | while (nr_slots--) { | 53 | while (nr_slots--) { |
| 54 | u32 *p = (u32 *)((u32)pb->mapped + getptr); | 54 | u32 *p = (u32 *)(pb->mapped + getptr); |
| 55 | *(p++) = HOST1X_OPCODE_NOP; | 55 | *(p++) = HOST1X_OPCODE_NOP; |
| 56 | *(p++) = HOST1X_OPCODE_NOP; | 56 | *(p++) = HOST1X_OPCODE_NOP; |
| 57 | dev_dbg(host1x->dev, "%s: NOP at %#llx\n", __func__, | 57 | dev_dbg(host1x->dev, "%s: NOP at %pad+%#x\n", __func__, |
| 58 | (u64)pb->phys + getptr); | 58 | &pb->phys, getptr); |
| 59 | getptr = (getptr + 8) & (pb->size_bytes - 1); | 59 | getptr = (getptr + 8) & (pb->size_bytes - 1); |
| 60 | } | 60 | } |
| 61 | wmb(); | 61 | wmb(); |
