compress/mlx5: support 32-bit systems
authorMatan Azrad <matan@nvidia.com>
Wed, 20 Jan 2021 11:29:34 +0000 (11:29 +0000)
committerAkhil Goyal <akhil.goyal@nxp.com>
Wed, 27 Jan 2021 19:40:03 +0000 (20:40 +0100)
commit37862dafcbed55c8783db3dba323f817287a86ad
treeba4c6da86cdd993367330cd1565aac0e19bbf305
parentccfd891a50ae2988a3a4980f2ef26d3bed35030d
compress/mlx5: support 32-bit systems

In order to support 32-bit systems, the 8B doorbell write should be
done by 2 4B stores.

The order between the store is important, that's why memory barrier
should be used between them.

The doorbell address is shared between all the queues, that's why a lock
should wrap the 2 stores.

Signed-off-by: Matan Azrad <matan@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
drivers/compress/mlx5/mlx5_compress.c