OSDN Git Service

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)
commit51f7be81feafe31c338f95510dfbcaa29e0798d3
tree709fc780362cf46c0a947fb0427c9ee99c2c29cd
parentc93beb5243750911a9a95aac31688ff85512b22e
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