Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp2370417pxy; Sat, 24 Apr 2021 13:42:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxf0f9wh5BE9FMsTmqMXTu55uVDnoCUJmCTsGgwA+Om+C2b84oW9LY83/I+nPzdKjdq00WA X-Received: by 2002:a17:906:80d6:: with SMTP id a22mr10559457ejx.277.1619296973582; Sat, 24 Apr 2021 13:42:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619296973; cv=none; d=google.com; s=arc-20160816; b=FUetyXTzas0M4Ui1WD44nCVspE77zQp2wP3zq0twOY3g1OBTecrTSC1sRD6OZ/b0Ka lT2YekTa6YY1iyGPHeaI0aCCBDHnDVDt7/vIZ+3WOClrzk9CkrNIHYR6RG9l2QRIVs8Z +w/Kr0cO9lk+oEn8c1pVs0p5tNDS7vjDyMFABh4w/dYspdAzg1COEeg/fpP68gTUbG7D TCpMdZ9QncZlrtkeGBAxe32OXSIZEcO/Gr7yJpJBxsJ8QMwPM3C6PvmwjuadtaFIyPLV kd0QkZNy6+8G3RnsBdOi5Fp096q4CMmGgd1ypPNCKdo3nHhRmiztS9YLJh2bSH/AR+Vy 5mmw== 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=+1w4/EfG2NVLy0uONKd/2OiGALGE5gFQWsXVLjMDOAo=; b=DiVdTqF+BfZMSlk+vZzUT+qcnYRr0ieuMjzX9RqjG0adAbEpIfbaSPLu4uUFLJkEms TdvcKJREwQHPftkZlDGGfPTITUJZ1XDbQ3iPCriCo4e+iJL39MIESzkOSfQ7HeNKNM3e 4DA0yejnHA5BvDE3kvNPeBac/LG4nGUPJ+SsXTCIODtzpoey8L/AZbmVTtJ73J/pWSRA 8l8n633J2bGXwyva0/ZnPTx8Y0DIkHQjqW4wSrZ6xD0DzLtj0i9hnD3jEhNBXMwvZwbI 1dS6PrwoCUoPXTPVBSzZVHHgBRtbCQ2ANXcMr/8V+iziINy2THhXPnpnx3FwzwOmnWM4 KPRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EL7bK8xc; 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 20si8637002ejy.225.2021.04.24.13.42.30; Sat, 24 Apr 2021 13:42:53 -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=EL7bK8xc; 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 S234040AbhDXUmU (ORCPT + 99 others); Sat, 24 Apr 2021 16:42:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232546AbhDXUmT (ORCPT ); Sat, 24 Apr 2021 16:42:19 -0400 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05DF2C061574; Sat, 24 Apr 2021 13:41:40 -0700 (PDT) Received: by mail-lj1-x22a.google.com with SMTP id a25so46212291ljm.11; Sat, 24 Apr 2021 13:41:40 -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=+1w4/EfG2NVLy0uONKd/2OiGALGE5gFQWsXVLjMDOAo=; b=EL7bK8xcrPxcKnDmwEjfGYX21XIsEFsytGfH/nvjPmXkJXqQQopGQdk5qitnk5mdE+ f4Aj4RBvB0HwI6tgo9tsOizajc79Vi5x0hCGlO2IOXPJ4Y21jZwajf7uw9l2/3ux7DO7 wdpqheqURswL2lwWGXUdmvOd+A78tcJ1iUgN/wgdDQM4i8+KGdcfsJJF+5e3j8u1U/+x zqiZ37t0FBE/JNwiNJ04NL3p8ewrpaaBTw3uyOzrRoV1QexYluA9Mzstr+cCKWd7il+S 0tL3+Ckj9px4P1RVG4D3WHN0oyk/wt0BlD4VJNeIc60UpqLPQPDszqSwLceSegebk6Mw 8SEw== 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=+1w4/EfG2NVLy0uONKd/2OiGALGE5gFQWsXVLjMDOAo=; b=bvcDSzHnFGJxLP0Y3syQZsLaMFcl7d9tO/yngkSXCFTkfPM2h7Pzd7+WiOzti5sT6a XPROvgyrX4BWKUPLiMwr0rOdnx792uCcdZctJkdEIG7kV2zvJdL40WbRzQsQI6gOw4wn X4DXlu97HGRoNYIkwdCPK31jts0LRmrHAkDHHNKTCem3ergrVXg2+KPMkrZtTC9IQWvs U5oySeftj/Ds3jbNZWtky2N6xgFcsLApscccMFxp4kyqR+i3HDWmMKGMi5K9n4fgrGqU ukpTN6jlkdrG1/Eee2NcPTlarP+47uHbUZcJpKf4eEQ9noMBxIhnXNfF7UmKX/tcdD0T cN/w== X-Gm-Message-State: AOAM532qPcEcC17tUa/0Hu2fqqHR+6qg9Iq6t4MAHlnLqQYxEDT0860O zym7aFzNik/wDTg/Rit52879kEagGRM= X-Received: by 2002:a2e:9ec5:: with SMTP id h5mr7312620ljk.169.1619296898914; Sat, 24 Apr 2021 13:41:38 -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 z18sm17325lft.57.2021.04.24.13.41.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 24 Apr 2021 13:41:38 -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> <5ec2be61-a70e-e3b1-9267-414793c32a04@gmail.com> Message-ID: <4b1eb3d5-6489-6553-ba88-df485323e6e8@gmail.com> Date: Sat, 24 Apr 2021 23:41:37 +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: <5ec2be61-a70e-e3b1-9267-414793c32a04@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 24.04.2021 23:27, Dmitry Osipenko пишет: > 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? > I don't see DRM driver being loaded at all and no errors related to it in the log. This means that likely some of the DRM sub-drivers is stuck in deferred probe. Guillaume, could you please show contents of /sys/kernel/debug/devices_deferred ? These messages also don't look good: tegra-xusb-padctl 7009f000.padctl: failed to setup XUSB ports: -22 tegra-xusb-padctl: probe of 7009f000.padctl failed with error -22 I don't have T124 and all these problems should be specific to the T124 platform. Somebody with a direct access to hardware should look into it.