Re: [PATCH v3 3/9] gpu: host1x: Add context device management code

2022-02-23 Thread Mikko Perttunen
On 2/22/22 18:24, Christoph Hellwig wrote: On Fri, Feb 18, 2022 at 01:39:46PM +0200, Mikko Perttunen wrote: + +/* + * Due to an issue with T194 NVENC, only 38 bits can be used. + * Anyway, 256GiB of IOVA ought to be enough for anyone. + */ +static dma_addr_t context_device_dma_mask = DMA_BIT_MAS

Re: [PATCH v3 3/9] gpu: host1x: Add context device management code

2022-02-21 Thread Mikko Perttunen
On 2/19/22 19:52, Dmitry Osipenko wrote: 18.02.2022 14:39, Mikko Perttunen пишет: + for (index = 0; index < cdl->len; index++) { + struct iommu_fwspec *fwspec; + + ctx = &cdl->devs[index]; + + ctx->host = host1x; + + device_initialize

Re: [PATCH v3 3/9] gpu: host1x: Add context device management code

2022-02-21 Thread Mikko Perttunen
On 2/19/22 19:48, Dmitry Osipenko wrote: 18.02.2022 14:39, Mikko Perttunen пишет: ... +/* + * Due to an issue with T194 NVENC, only 38 bits can be used. + * Anyway, 256GiB of IOVA ought to be enough for anyone. + */ +static dma_addr_t context_device_dma_mask = DMA_BIT_MASK(38); s/dma_addr_t/u6

Re: [PATCH v3 3/9] gpu: host1x: Add context device management code

2022-02-19 Thread Dmitry Osipenko
18.02.2022 14:39, Mikko Perttunen пишет: > + for (index = 0; index < cdl->len; index++) { > + struct iommu_fwspec *fwspec; > + > + ctx = &cdl->devs[index]; > + > + ctx->host = host1x; > + > + device_initialize(&ctx->dev); > + > + ctx->

Re: [PATCH v3 3/9] gpu: host1x: Add context device management code

2022-02-19 Thread Dmitry Osipenko
18.02.2022 14:39, Mikko Perttunen пишет: ... > +/* > + * Due to an issue with T194 NVENC, only 38 bits can be used. > + * Anyway, 256GiB of IOVA ought to be enough for anyone. > + */ > +static dma_addr_t context_device_dma_mask = DMA_BIT_MASK(38); s/dma_addr_t/u64/ ? Apparently you should get comp