Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1348337
| From | Thierry Reding <thierry.reding@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v4 1/2] gpu: host1x: Set DMA mask |
| Date | 2016-03-02 18:10 +0100 |
| Message-ID | <r8irE-2bo-23@gated-at.bofh.it> (permalink) |
| References | <r6mzn-Sk-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
On Fri, Feb 26, 2016 at 06:06:52PM +0900, Alexandre Courbot wrote: > The default DMA mask covers a 32 bits address range, but host1x devices > can address a larger range on TK1 and TX1. Set the DMA mask to the range > addressable when we use the IOMMU to prevent the use of bounce buffers. > > Signed-off-by: Alexandre Courbot <acourbot@nvidia.com> > --- > Change since v3: > - Use the IOMMU-addressable range (when IOMMU is available) for each host1x > variation. This ensures that we can cover all physical memory while remaining > conservative if IOMMU is not used. > - Set the DMA range on the host1x device itself so all its childs inherit from it > > drivers/gpu/host1x/dev.c | 7 +++++++ > drivers/gpu/host1x/dev.h | 1 + > 2 files changed, 8 insertions(+) I think this could still be better, but what I have in mind is much more involved and this does fix the issue with a minimum amount of code, so I have applied this for now. Thierry
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH v4 1/2] gpu: host1x: Set DMA mask Alexandre Courbot <acourbot@nvidia.com> - 2016-02-26 10:10 +0100
[PATCH v4 2/2] gpu: host1x: Set DMA ops on device creation Alexandre Courbot <acourbot@nvidia.com> - 2016-02-26 10:10 +0100
Re: [PATCH v4 2/2] gpu: host1x: Set DMA ops on device creation Thierry Reding <thierry.reding@gmail.com> - 2016-03-02 18:10 +0100
Re: [PATCH v4 1/2] gpu: host1x: Set DMA mask Thierry Reding <thierry.reding@gmail.com> - 2016-03-02 18:10 +0100
csiph-web