Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1437693pxy; Fri, 23 Apr 2021 08:04:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzAz4EylV6jXBe4gYbimw1mTpyl4fyL2xCjNqstfrJyiju1bTJ95E0N8OIkNeB8L12nLKiy X-Received: by 2002:a05:6402:441:: with SMTP id p1mr5108215edw.298.1619190273394; Fri, 23 Apr 2021 08:04:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619190273; cv=none; d=google.com; s=arc-20160816; b=Y2UXqSL5HAkyH4zgNwR5RvIaT41eOe3areCixy8Mp5Z5WGBHlxaCkmexXJRaH4HLag ToUvsrZmGBjAG9yjdr6ffvU2nFK6U7+LTBjYNxfE9Hn9QxzvvKMHXs10vL+xVIhB09gf AGAZzDf0FDmJZG7EPYoE67Fvvtq3Z2Hj3F5uTklarm80FKMTTSChhNibMPI/3f9fa7p+ Ozg5ZHoS0UT7ptwYFTpOzLRKEYq2r3Yh56fiOh9Cl8hpn6xeoTy8c04qtceaZkyt9qJE CBoLMGM31JdHhQLcZ9nAtbnn0TqLjTlynXXDZHXyTryKPC6kQrK4/eobJI5OFtQOfwl/ jokg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=pTPHY+THHea8N1hyBYWYIl6MC9wCiK4qFBErvSN4a+8=; b=hiBOf6SR9tHMnvQ673mjCGmtMUdTtZXcVmN2XV1yKjMYKKBNwc5V/aESzLauEkiUPV vtgIw8dOAFLnS5/yb8B8Fav9RUr0oH9B3ukvOmYL9RFoTDKqKJQYbVcGm3D6GdYE55f2 AQLvd/Hz6wj+3NExbhdJpNrlGvA2oZvxeJc5aE7kpzo08mN8tSppYT6h3UNzseQBiBoa SjN0uuUl2NXzeNYbmlNKZ5XKdKFYNvEVSSlYi7Pmhp6CElD528w4QJ/V+kiGAJy6MxBR mFWJxbOXf0TNMqgiNuzi9UQGOvtWQNoQZaWQsQm5d9iJ2PoM2fqbjlOXVj6tmbYUK9hy 3qwQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h1si5489492ede.545.2021.04.23.08.04.09; Fri, 23 Apr 2021 08:04:33 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243021AbhDWPC2 (ORCPT + 99 others); Fri, 23 Apr 2021 11:02:28 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:38722 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243522AbhDWPBr (ORCPT ); Fri, 23 Apr 2021 11:01:47 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: gtucker) with ESMTPSA id C3FCF1F43D22 Subject: Re: [PATCH v1 2/2] iommu/tegra-smmu: Revert workaround that was needed for Nyan Big Chromebook To: Dmitry Osipenko , Nicolin Chen Cc: Thierry Reding , Joerg Roedel , Jonathan Hunter , Krishna Reddy , Will Deacon , iommu@lists.linux-foundation.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org References: <20210328233256.20494-1-digetx@gmail.com> <20210328233256.20494-2-digetx@gmail.com> <20210401085549.GA31146@Asurada-Nvidia> <50a7e4c7-0e72-534a-a317-366e455213c1@gmail.com> From: Guillaume Tucker Message-ID: Date: Fri, 23 Apr 2021 16:01:06 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 MIME-Version: 1.0 In-Reply-To: <50a7e4c7-0e72-534a-a317-366e455213c1@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/04/2021 15:40, Dmitry Osipenko wrote: > 01.04.2021 11:55, Nicolin Chen пишет: >> On Mon, Mar 29, 2021 at 02:32:56AM +0300, Dmitry Osipenko wrote: >>> The previous commit fixes problem where display client was attaching too >>> early to IOMMU during kernel boot in a multi-platform kernel configuration >>> which enables CONFIG_ARM_DMA_USE_IOMMU=y. The workaround that helped to >>> defer the IOMMU attachment for Nyan Big Chromebook isn't needed anymore, >>> revert it. >> >> Sorry for the late reply. I have been busy with downstream tasks. >> >> I will give them a try by the end of the week. Yet, probably it'd >> be better to include Guillaume also as he has the Nyan platform. >> > > Indeed, thanks. Although, I'm pretty sure that it's the same issue which > I reproduced on Nexus 7. > > Guillaume, could you please give a test to these patches on Nyan Big? > There should be no EMEM errors in the kernel log with this patches. > > https://patchwork.ozlabs.org/project/linux-tegra/list/?series=236215 So sorry for the very late reply. I have tried the patches but hit some issues on linux-next, it's not reaching a login prompt with next-20210422. So I then tried with next-20210419 which does boot but shows the IOMMU error: <6>[ 2.995341] tegra-dc 54200000.dc: Adding to iommu group 1 <4>[ 3.001070] Failed to attached device 54200000.dc to IOMMU_mapping https://lava.collabora.co.uk/scheduler/job/3570052#L1120 The branch I'm using with the patches applied can be found here: https://gitlab.collabora.com/gtucker/linux/-/commits/next-20210419-nyan-big-drm-read/ Hope this helps, let me know if you need anything else to be tested. Best wishes, Guillaume