]> git.baikalelectronics.ru Git - kernel.git/commit
media: hantro: Auto generate the AXI ID to avoid conflicts
authorBenjamin Gaignard <benjamin.gaignard@collabora.com>
Fri, 24 Sep 2021 13:24:47 +0000 (15:24 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 5 Oct 2021 07:40:17 +0000 (09:40 +0200)
commit9e8e2ca0b3fe603ceaf5c95a5c25214d2f6d0955
tree709fc780362cf46c0a947fb0427c9ee99c2c29cd
parent861dccc078780760972f56fbfee6601f83ce9429
media: hantro: Auto generate the AXI ID to avoid conflicts

The AXI ID is an AXI bus configuration for improve bus performance.
If read and write operations use different IDs the operations can be
paralleled, whereas when they have the same ID the operations will be
serialized. Right now, the write ID is fixed to 0 but we can set it to
0xff to get auto generated IDs to avoid possible conflicts.

This change has no functional changes, but seems reasonable to let the
hardware to autogenerate the ID instead of hardcoding in software.

Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Signed-off-by: Benjamin Gaignard <benjamin.gaignard@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/hantro/hantro_g1_h264_dec.c
drivers/staging/media/hantro/hantro_g1_regs.h
drivers/staging/media/hantro/hantro_g1_vp8_dec.c