* [PATCH] memory: tegra: Remove GPU from DRM IOMMU group
@ 2020-09-01 15:32 Thierry Reding
2020-09-01 16:57 ` Dmitry Osipenko
2020-09-02 15:24 ` Krzysztof Kozlowski
0 siblings, 2 replies; 3+ messages in thread
From: Thierry Reding @ 2020-09-01 15:32 UTC (permalink / raw)
To: Krzysztof Kozlowski, Thierry Reding
Cc: Jonathan Hunter, Dmitry Osipenko, linux-tegra, linux-kernel,
Matias Zuniga
From: Thierry Reding <treding@nvidia.com>
Commit 63a613fdb16c ("memory: tegra: Add gr2d and gr3d to DRM IOMMU
group") added the GPU to the DRM IOMMU group, which doesn't make any
sense. This causes problems when Nouveau tries to attach to the SMMU
and causes it to fall back to using the DMA API.
Remove the GPU from the DRM groups to restore the old behaviour. The
GPU should always have its own IOMMU domain to make sure it can map
buffers into contiguous chunks (for big page support) without getting
in the way of mappings from the DRM group.
Fixes: 63a613fdb16c ("memory: tegra: Add gr2d and gr3d to DRM IOMMU group")
Reported-by: Matias Zuniga <matias.nicolas.zc@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
---
drivers/memory/tegra/tegra124.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/memory/tegra/tegra124.c b/drivers/memory/tegra/tegra124.c
index 493b5dc3a4b3..0cede24479bf 100644
--- a/drivers/memory/tegra/tegra124.c
+++ b/drivers/memory/tegra/tegra124.c
@@ -957,7 +957,6 @@ static const struct tegra_smmu_swgroup tegra124_swgroups[] = {
static const unsigned int tegra124_group_drm[] = {
TEGRA_SWGROUP_DC,
TEGRA_SWGROUP_DCB,
- TEGRA_SWGROUP_GPU,
TEGRA_SWGROUP_VIC,
};
--
2.28.0
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] memory: tegra: Remove GPU from DRM IOMMU group
2020-09-01 15:32 [PATCH] memory: tegra: Remove GPU from DRM IOMMU group Thierry Reding
@ 2020-09-01 16:57 ` Dmitry Osipenko
2020-09-02 15:24 ` Krzysztof Kozlowski
1 sibling, 0 replies; 3+ messages in thread
From: Dmitry Osipenko @ 2020-09-01 16:57 UTC (permalink / raw)
To: Thierry Reding, Krzysztof Kozlowski
Cc: Jonathan Hunter, linux-tegra, linux-kernel, Matias Zuniga
01.09.2020 18:32, Thierry Reding пишет:
> From: Thierry Reding <treding@nvidia.com>
>
> Commit 63a613fdb16c ("memory: tegra: Add gr2d and gr3d to DRM IOMMU
> group") added the GPU to the DRM IOMMU group, which doesn't make any
> sense. This causes problems when Nouveau tries to attach to the SMMU
> and causes it to fall back to using the DMA API.
>
> Remove the GPU from the DRM groups to restore the old behaviour. The
> GPU should always have its own IOMMU domain to make sure it can map
> buffers into contiguous chunks (for big page support) without getting
> in the way of mappings from the DRM group.
>
> Fixes: 63a613fdb16c ("memory: tegra: Add gr2d and gr3d to DRM IOMMU group")
> Reported-by: Matias Zuniga <matias.nicolas.zc@gmail.com>
> Signed-off-by: Thierry Reding <treding@nvidia.com>
> ---
> drivers/memory/tegra/tegra124.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/drivers/memory/tegra/tegra124.c b/drivers/memory/tegra/tegra124.c
> index 493b5dc3a4b3..0cede24479bf 100644
> --- a/drivers/memory/tegra/tegra124.c
> +++ b/drivers/memory/tegra/tegra124.c
> @@ -957,7 +957,6 @@ static const struct tegra_smmu_swgroup tegra124_swgroups[] = {
> static const unsigned int tegra124_group_drm[] = {
> TEGRA_SWGROUP_DC,
> TEGRA_SWGROUP_DCB,
> - TEGRA_SWGROUP_GPU,
> TEGRA_SWGROUP_VIC,
> };
>
>
Technically a stable tag is needed for this patch, but I guess the bot
will recognize that this patch is useful for older kernels.
Otherwise looks good!
Reviewed-by: Dmitry Osipenko <digetx@gmail.com>
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] memory: tegra: Remove GPU from DRM IOMMU group
2020-09-01 15:32 [PATCH] memory: tegra: Remove GPU from DRM IOMMU group Thierry Reding
2020-09-01 16:57 ` Dmitry Osipenko
@ 2020-09-02 15:24 ` Krzysztof Kozlowski
1 sibling, 0 replies; 3+ messages in thread
From: Krzysztof Kozlowski @ 2020-09-02 15:24 UTC (permalink / raw)
To: Thierry Reding
Cc: Jonathan Hunter, Dmitry Osipenko, linux-tegra, linux-kernel,
Matias Zuniga
On Tue, Sep 01, 2020 at 05:32:48PM +0200, Thierry Reding wrote:
> From: Thierry Reding <treding@nvidia.com>
>
> Commit 63a613fdb16c ("memory: tegra: Add gr2d and gr3d to DRM IOMMU
> group") added the GPU to the DRM IOMMU group, which doesn't make any
> sense. This causes problems when Nouveau tries to attach to the SMMU
> and causes it to fall back to using the DMA API.
>
> Remove the GPU from the DRM groups to restore the old behaviour. The
> GPU should always have its own IOMMU domain to make sure it can map
> buffers into contiguous chunks (for big page support) without getting
> in the way of mappings from the DRM group.
>
> Fixes: 63a613fdb16c ("memory: tegra: Add gr2d and gr3d to DRM IOMMU group")
> Reported-by: Matias Zuniga <matias.nicolas.zc@gmail.com>
> Signed-off-by: Thierry Reding <treding@nvidia.com>
> ---
> drivers/memory/tegra/tegra124.c | 1 -
Thanks, applied.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-09-02 15:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-01 15:32 [PATCH] memory: tegra: Remove GPU from DRM IOMMU group Thierry Reding
2020-09-01 16:57 ` Dmitry Osipenko
2020-09-02 15:24 ` Krzysztof Kozlowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).