Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1683960

Re: [PATCH] ARM: tegra: Register host1x node with iommu binding on tegra124

From Thierry Reding <thierry.reding@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH] ARM: tegra: Register host1x node with iommu binding on tegra124
Date 2017-07-10 07:30 +0200
Message-ID <u1zqG-Qc-5@gated-at.bofh.it> (permalink)
References <u1npw-1Bs-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Sun, Jul 09, 2017 at 07:36:14PM +0300, Paul Kocialkowski wrote:
> This registers the host1x node with the SMMU (as HC swgroup) to allow
> the host1x code to attach to it. It avoid failing the probe sequence,
> which resulted in the tegra drm driver not probing and thus nothing
> being displayed on-screen.
> 
> Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
> ---
>  arch/arm/boot/dts/tegra124.dtsi | 1 +
>  1 file changed, 1 insertion(+)

Thanks for tracking this down. However, I don't think this is an
appropriate fix for v4.12 because it requires an update to the DTB in
order to preserve functionality, which means we've broken DT ABI. The
proper fix I think needs to be to make usage of the IOMMU completely
optional in the host1x driver.

So I think what happens without this DT change is that the call to
iommu_attach_device() fails and we have no way to recover from that. I
think what we need to do is to free the domain in that case and make
sure we can continue without one. It's probably best to add an error
message, or maybe a warning to make sure people are aware.

Do you have the time to address this? If not, perhaps Mikko can take a
look?

Thierry

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] ARM: tegra: Register host1x node with iommu binding on tegra124 Paul Kocialkowski <contact@paulk.fr> - 2017-07-09 18:40 +0200
  Re: [PATCH] ARM: tegra: Register host1x node with iommu binding on  tegra124 Thierry Reding <thierry.reding@gmail.com> - 2017-07-10 07:30 +0200
    Re: [PATCH] ARM: tegra: Register host1x node with iommu binding on  tegra124 Paul Kocialkowski <contact@paulk.fr> - 2017-07-10 08:10 +0200
  Re: [PATCH] ARM: tegra: Register host1x node with iommu binding on  tegra124 Paul Kocialkowski <contact@paulk.fr> - 2017-07-11 11:00 +0200
    Re: [PATCH] ARM: tegra: Register host1x node with iommu binding on  tegra124 Marcel Ziswiler <marcel.ziswiler@toradex.com> - 2017-07-11 17:00 +0200
      Re: [PATCH] ARM: tegra: Register host1x node with iommu binding on  tegra124 Paul Kocialkowski <contact@paulk.fr> - 2017-07-11 17:10 +0200
        Re: [PATCH] ARM: tegra: Register host1x node with iommu binding on  tegra124 Marcel Ziswiler <marcel.ziswiler@toradex.com> - 2017-07-11 17:20 +0200

csiph-web