Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp2364916pxy; Sat, 24 Apr 2021 13:30:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzp1hPOQVrkIOfv292/IpqDuX3gPPz7Bc0W/VtXKmjeTYdFhaXDYv8c3kT7Q1nhSj1OOSJ4 X-Received: by 2002:a63:570e:: with SMTP id l14mr9813361pgb.159.1619296241915; Sat, 24 Apr 2021 13:30:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619296241; cv=none; d=google.com; s=arc-20160816; b=Q12iDqexphfx36J0ink4vJ4q7Aak2r8O/um6ssUnPOCuWfcCqfJONK+dWzV+Tp5oyR Bw+eHI77UK7ecRwMndd4+mh3J0rIBcAQHDjDQ7hzZGwpiBUsxn1Bu8Khs7R0P35bymVq dMY3uRMrblgVTjH8YDheBHRhCE5jkugtOSRGnb5+ABr6pGrbmjqynvDd4Us0+f9Iyfoe nLdhLWrwS8RBj2tTVSOSDYZX3g5S3ygxuDIFDnBM7TopxCxPrFSFs3S2mc7s4E6jECeA rSGg0mBqfDhxvboiRMrmkYMEPut17VcijOItsOwwZfCe5HbQaZec8nvNNy+4gQxVaXrU wQbw== 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:references:cc :to:from:subject:dkim-signature; bh=akaFyjlJawcZhlN19BfOzYv3nfkA3HMJk9vvTeGaZDE=; b=EPvWd9/kTQBCXmKJUNN9+whLdc6us0c1hcaeclZel5dp9I1PRcZlrwatteME2FXJHG orkJXN4RlMUGfvJ1B6LDl7m4UwEtcaGTn0dgvkLEPoanrn/yCXwF1K+2tdwTZmtojn+R n4nKDW5q5OeUZ+6ZdatFccgsr+x4Opf43R259lQ/V8efNH6JN5e9xJ0nag2tMnijnycB mSYxpBFlB22kDm3IxeuORL1P4waptudcK9QiTDrKOh0h6i6cN3KndlXUj6mTNcWc7hUV RpupeW7aaNrY9vJBJoN4PD1xknVsfJ47sKM15i0u1pR6j328c1iPed0JYinbGX67GKkA RHrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KnWdVZ27; 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 v3si11094780pff.73.2021.04.24.13.30.28; Sat, 24 Apr 2021 13:30:41 -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=KnWdVZ27; 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 S236079AbhDXU1x (ORCPT + 99 others); Sat, 24 Apr 2021 16:27:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232708AbhDXU1x (ORCPT ); Sat, 24 Apr 2021 16:27:53 -0400 Received: from mail-lj1-x22b.google.com (mail-lj1-x22b.google.com [IPv6:2a00:1450:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27861C061574; Sat, 24 Apr 2021 13:27:13 -0700 (PDT) Received: by mail-lj1-x22b.google.com with SMTP id b38so18341236ljf.5; Sat, 24 Apr 2021 13:27:13 -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=akaFyjlJawcZhlN19BfOzYv3nfkA3HMJk9vvTeGaZDE=; b=KnWdVZ27vn/9TonspL6cS/l0i7OahlQ7Vgk3cqUAx9ic3LEkRs256To8zXcyC9PNvl CzLaGM9heWk5QUs/yR7Q/+lEX/mHuxo99EIt0/TkdxSqxotrUyARQ7ln7EogwISFGXzC DDi4AooQ1cnPBVDvWPxDCCLlPqh8e6E3bDEsCs1u5s8hDfAGTWOiKJxnEYeAEHIicfhI kUKx5v/n0I+1O3HBYREvY9CzFF8qI+6qH63LecgR7zR4Chvwrbm/zlmTXv6niwxF9g/b QhWXMzxXMQmf21uudddtdil1IFRdqxe/9YsRl65HyMzbC/8Rx2wsZBV7Dp5niMHn6kjv 9bpQ== 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=akaFyjlJawcZhlN19BfOzYv3nfkA3HMJk9vvTeGaZDE=; b=CzbyA+q6/mdZGawrueQPRcrVsgJX5StAhvavcYfpFpojRi7MdxSCBQrsGW6AzbwAYJ VirLeQeT6Ni5s+cTf3XgCM1sPMxLQHjtizIIoVqabG2wKoOCRjP4tO5emIkKmA7cygMQ pveTsFZFWXWrQW6+74GOKzVJvnd1gg3fdNuAfbGnYH+sXN0awLZr1FMUtiaspTbXu4CU aEDW221YCtJcHIs7Uft8w9aOCQknAsW1uDwQO+KOsX44lxTM65H502gCg8pz1Rl3MWgX MPd4u0NVAjYACFZa5sCfgalfCzeRtEUkX7EOASITGQpTqjjyol4OV/Zyr8q2cCT4e6Ik f8fQ== X-Gm-Message-State: AOAM532yimE31mNl5mJ+q5dSvknUVij/jes1rlzFEbF2oPERpApc6ePB PuVm21+rXmkz5s9aFgK2BEg6fw9FkK8= X-Received: by 2002:a2e:b6c4:: with SMTP id m4mr6989287ljo.185.1619296031440; Sat, 24 Apr 2021 13:27:11 -0700 (PDT) Received: from [192.168.2.145] (109-252-193-103.dynamic.spd-mgts.ru. [109.252.193.103]) by smtp.googlemail.com with ESMTPSA id y16sm938774ljh.13.2021.04.24.13.27.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 24 Apr 2021 13:27:11 -0700 (PDT) Subject: Re: [PATCH v1 2/2] iommu/tegra-smmu: Revert workaround that was needed for Nyan Big Chromebook From: Dmitry Osipenko To: Guillaume Tucker , Nicolin Chen , Thierry Reding Cc: 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> <724e683f-5317-cdf7-7351-fcfd42b7b607@gmail.com> Message-ID: <5ec2be61-a70e-e3b1-9267-414793c32a04@gmail.com> Date: Sat, 24 Apr 2021 23:27:10 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <724e683f-5317-cdf7-7351-fcfd42b7b607@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 23.04.2021 18:23, Dmitry Osipenko пишет: > 23.04.2021 18:01, Guillaume Tucker пишет: >> 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. > > > Hello Guillaume, > > The current linux-next doesn't boot on all ARM (AFAIK), the older > next-20210413 works. The above message should be unrelated to the boot > problem. It should be okay to ignore that message as it should be > harmless in yours case. > Although, the 20210419 should be good. Thierry, do you know what those SOR and Nouveau issues are about?