Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1635548pxa; Thu, 20 Aug 2020 16:55:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwz3p7ljd+NKLp5f/pIw/0CNZ96D/zwJ9AS3PfPWx5xvB8Dps3NwY0aWN1AAbsFVZ6XI+jm X-Received: by 2002:a17:906:1ccd:: with SMTP id i13mr366265ejh.424.1597967728780; Thu, 20 Aug 2020 16:55:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597967728; cv=none; d=google.com; s=arc-20160816; b=GzAWUNfcA4nwnhFysiGuztt0928HTBZZowLXB7ge4KTCvIOJ2OgqOsSffBjvQYI+Ys BjtYBgKLWDHxApR4xniBP4lZA6dU/CmrAhQkQYe3JI2X+Vqm5QU8/olNtCNyUlOm+qRo nF8Qqgk0fa8NOoPuW99dE3w5NpWQuBV8rnKnX7MyMdctk9DwNFJhZSMq4N4i5IAgA1/c DqYbvPkkpRiTGh6NAtRRZ4GEQ2MpuIlK694D+pjAjWwpIWPCx4mE0HIJFb8n+ODukNwF jZQviO+ay9PweIaNj51foaMAMooarlUrX1GeE61MGup0zDsG5xnftBfPZN5kUEpeH0q+ RUHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject:dkim-signature; bh=aGDq3G61oS7LkIVvcYe8gs5DEBUj3X0IY6+Ho7L4bXc=; b=kQSP515HpGUHqajjDozlrKJSfIDr1llQHFbtja0g3R3U6Agfy0FrFbTFZaHTC+gUJT z0gUaDJ5PlDtB96fwGUtaVTauuMnbuX4DGV1j/EcoF8daIBDs5XRXafWh6Fsk4/d0gWA xtyPFMKTf5vLLdHiJ8FGVDm9lJIUU/N3KI+66fK0ntQDBqxaJhk9ElWGd8Dslb4T0VH2 rLjncXl9zYPNdftfv8/N4ujicuo9pjC9Qjb+R8uXvQOx7jeom0EdRA85qqzE+rWtLEJk pIt2naWQhPCYDH6/p6p4VrRGiwMiNxTy4K6XtvzYTj6nr24wL/peQ8jXuR/0qQbnU4ft X4iQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aaI2XwvN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e13si8464edc.33.2020.08.20.16.55.05; Thu, 20 Aug 2020 16:55:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aaI2XwvN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728327AbgHTUKe (ORCPT + 99 others); Thu, 20 Aug 2020 16:10:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726908AbgHTUKc (ORCPT ); Thu, 20 Aug 2020 16:10:32 -0400 Received: from mail-lj1-x244.google.com (mail-lj1-x244.google.com [IPv6:2a00:1450:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D2C9C061385; Thu, 20 Aug 2020 13:10:31 -0700 (PDT) Received: by mail-lj1-x244.google.com with SMTP id t23so3520391ljc.3; Thu, 20 Aug 2020 13:10:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:from:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=aGDq3G61oS7LkIVvcYe8gs5DEBUj3X0IY6+Ho7L4bXc=; b=aaI2XwvNa4jYT+ZP++lm8ICOT30vbHbYUWZ2eapjPgVOrbFZiW0JrsNRnHrkHauDAe F+tXGAAqJ4vzEu+ctIrX4IM+yBsxNUqux5EEMIr8tDiF5nelEImI1pAGijUjDb9sdpr+ 3jhTQx0pxPCjI9Yjxp5eOYRJHWEFTz3Q/JDopYi/d21uwf6ydkQJd8zd0nrYHrBm51gj IJ251b8BXCu/KouQNs7VyVjZaRoQ6EfqJzBBwEfbvaelF0x0hTDyx36zN9EiD0UZhoes jE4vU9heUNNm5TPrDjhlMPFoFqDRVuH+5P+XTNd0kuG1aP3MnluFFFC7ajaNVZ0Eb9HZ g3JQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=aGDq3G61oS7LkIVvcYe8gs5DEBUj3X0IY6+Ho7L4bXc=; b=UFRwC7JdxU4LSgFhJO3IYezDLwGVjyRuW8fVoLjVjD7Z82LD6xMFuELxtiL82UjWGK Yp1j2JjA/cNUFAjJk0QUOXMEGwAiUtA/PbSsbpQ1sMLKkBiU7+EyULcMVbv4xwfXB+Xw 6XNMTo2+B9J0qfH+etdcZ4xW/NTZHJlQXSpMUggcAxW5BBEPvpNn+7XBPNcXfLET6Th0 TU5Jlp8BKhG21o8zp9h4cUPWpO+qz9yXSXE+lxzqh1p3Ztl4d0ma46rdnWiURH6t4UC3 Sn2M1/P5BkQXGa0qVbDkfhBdA9VM4r0IY5NzYz/6T3IrpmUfQqH1WpiMWWAdMKQLvKCV nBBg== X-Gm-Message-State: AOAM530+foEzpgeJ87L+z5BmUErLmNAWQWsG6X1WfjUwKikjM9qRZMKR /RoFioN50VZngixOBYTlhITuuHsd+rw= X-Received: by 2002:a2e:9886:: with SMTP id b6mr684ljj.258.1597954226414; Thu, 20 Aug 2020 13:10:26 -0700 (PDT) Received: from [192.168.2.145] (109-252-170-211.dynamic.spd-mgts.ru. [109.252.170.211]) by smtp.googlemail.com with ESMTPSA id f23sm633489ljk.74.2020.08.20.13.10.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 20 Aug 2020 13:10:25 -0700 (PDT) Subject: Re: [PATCH 16/18] staging/media/tegra-vde: Clean up IOMMU workaround From: Dmitry Osipenko To: Robin Murphy , hch@lst.de, joro@8bytes.org, linux@armlinux.org.uk Cc: will@kernel.org, inki.dae@samsung.com, sw0312.kim@samsung.com, kyungmin.park@samsung.com, m.szyprowski@samsung.com, agross@kernel.org, bjorn.andersson@linaro.org, thierry.reding@gmail.com, jonathanh@nvidia.com, vdumpa@nvidia.com, matthias.bgg@gmail.com, yong.wu@mediatek.com, geert+renesas@glider.be, magnus.damm@gmail.com, t-kristo@ti.com, s-anna@ti.com, laurent.pinchart@ideasonboard.com, linux-arm-kernel@lists.infradead.org, iommu@lists.linux-foundation.org, linux-samsung-soc@vger.kernel.org, linux-tegra@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-mediatek@lists.infradead.org, dri-devel@lists.freedesktop.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org References: <3535c205b9bce52556abbf2f63384fb38e009df9.1597931876.git.robin.murphy@arm.com> <07135a55-cbc9-83e5-60dc-731282192554@gmail.com> Message-ID: Date: Thu, 20 Aug 2020 23:10:24 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <07135a55-cbc9-83e5-60dc-731282192554@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 20.08.2020 22:51, Dmitry Osipenko пишет: > Alternatively, the Tegra SMMU could be changed such that the devices > will be attached to a domain at the time of a first IOMMU mapping > invocation instead of attaching at the time of attach_dev() callback > invocation. > > Or maybe even IOMMU core could be changed to attach devices at the time > of the first IOMMU mapping invocation? This could be a universal > solution for all drivers. Although, please scratch this :) I'll need to revisit how DMA mapping API works.