]> git.baikalelectronics.ru Git - kernel.git/commit
nouveau: factor out device memory address calculation
authorChristoph Hellwig <hch@lst.de>
Wed, 14 Aug 2019 07:59:21 +0000 (09:59 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 20 Aug 2019 12:35:03 +0000 (09:35 -0300)
commit34cdeae457f415c364d4d1a35f636685dff877d7
tree8dc03e81e6af427fa48e9aaec8426d61f1cb10ca
parent1fbe48d8e2f73ca1e2c900a7f5c42ba7043b613d
nouveau: factor out device memory address calculation

Factor out the repeated device memory address calculation into
a helper.

Link: https://lore.kernel.org/r/20190814075928.23766-4-hch@lst.de
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Ralph Campbell <rcampbell@nvidia.com>
Tested-by: Ralph Campbell <rcampbell@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/gpu/drm/nouveau/nouveau_dmem.c