Skip to content

Commit

Permalink
prores: test 36-bit iova; fix tracer
Browse files Browse the repository at this point in the history
Signed-off-by: R <rqou@berkeley.edu>
  • Loading branch information
ArcaneNibble committed Apr 9, 2022
1 parent 2482347 commit 6bc29f4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions proxyclient/experiments/prores.py
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,7 @@ def bswp16(x):
iface.writemem(in_buf_chroma_phys, image_data_chroma + b'\xaa' * (IN_SZ_CHROMA - len(image_data_chroma)))
in_buf_chroma_iova = dart.iomap(0, in_buf_chroma_phys, IN_SZ_CHROMA)
print(f"Input buffer chroma @ phys {in_buf_chroma_phys:016X} iova {in_buf_chroma_iova:016X}")
dart.dump_all()

desc = EncodeNotRawDescriptor(
flags=0x373c,
Expand Down
6 changes: 3 additions & 3 deletions proxyclient/hv/trace_prores.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ def w_DR_HEAD(self, val):
desc = EncodeNotRawDescriptor._make(struct.unpack(ENCODE_NOT_RAW_STRUCT, dr[dr_tail:dr_head]))
print(desc)

p0_iova = desc.pix_plane0_iova
p1_iova = desc.pix_plane1_iova
p2_iova = desc.pix_plane2_iova
p0_iova = desc.luma_iova
p1_iova = desc.chroma_iova
p2_iova = desc.alpha_iova

if p0_iova:
print(f"P0 iova {p0_iova:016X}")
Expand Down
2 changes: 1 addition & 1 deletion proxyclient/m1n1/hw/dart8110.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ class DART8110(Reloadable):
Lx_SIZE = (1 << IDX_BITS)
IDX_MASK = Lx_SIZE - 1

def __init__(self, iface, regs, util=None, iova_range=(0x80000000, 0x90000000)):
def __init__(self, iface, regs, util=None, iova_range=(0x800000000, 0x900000000)):
self.iface = iface
self.regs = regs
self.u = util
Expand Down

0 comments on commit 6bc29f4

Please sign in to comment.