Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1454178pxy; Fri, 23 Apr 2021 08:24:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxyRkWEBSMPqc1bnAjlL/8Dskiu5tl+ZWnzG1/GX6AerafQPVE/5XcMO2E+PrIbopKbBTH/ X-Received: by 2002:a63:5a55:: with SMTP id k21mr4267577pgm.312.1619191460055; Fri, 23 Apr 2021 08:24:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619191460; cv=none; d=google.com; s=arc-20160816; b=RiIGBvnizT9dp6uOLf1rPxORIeekniEj9p5yipxRyqvg/QLveL/GiBO7u//W4T/PZw jNwm03hmfoIqNDNSZOEG7ezRu5pcgB3R1jrlTUjsoHcgd+i85pifi0R7Xv3TaPE6UHjQ fHMwQEOVQVtKq4RG5g7ePfA536KrOOamL8KeFb3O1yYOmBrngA5COaJw9lOxZMD8TKyu NMMAcjqHeFVWPk8pdgbpaalLaMdxD06GMYdbAPbzceyrUeCp9+Ef6hRrGPjJP3tg0hbn SSmGPLP/3c7ORNWudafX7GUkd5aE5ZVBITiUFiYai4MMey5aoIG9Diib0JtTypJRTlmK /R0w== 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:dkim-signature; bh=n5/P3oLW/T875nhk38fWvvBcXE+/GVaIkWm4ulWT5wE=; b=qH2FX8EgI06s/5xZ5bUqAqSflxhHQV8sjfRY81TNd2lc7T9gFQmzwJErbW8Lo4A+3p 4CCiXkOXcUlFBIi5o+Rx5zarusEIMLIxv53HBkYQLslkE1bYr3rTkX1u3qTeKv7rLw6U xVeMhy74RF7Tr0cgsow5EEnujEf1lgjzkM0uJcajmY213kpdLjjgjGEn6mFuMbaxozLm +i+XsRC+lG6NUREq40P9tmjVz6o8P4aWL5EXfpN5+Z98RcjiHqfZTQ/zFk1C00lWOSIV 9KNweafoCjcYWm1MqR/hU9ZXmW33pNFYCRXXdcW3U9QM9iM3Luuj5uo458tHsDtX0mOA 90Gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=W5cQCMg7; 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 u19si6824890pfh.285.2021.04.23.08.24.08; Fri, 23 Apr 2021 08:24:20 -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=W5cQCMg7; 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 S231754AbhDWPYE (ORCPT + 99 others); Fri, 23 Apr 2021 11:24:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230330AbhDWPYE (ORCPT ); Fri, 23 Apr 2021 11:24:04 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 172F1C061574; Fri, 23 Apr 2021 08:23:26 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id j18so78129072lfg.5; Fri, 23 Apr 2021 08:23:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=n5/P3oLW/T875nhk38fWvvBcXE+/GVaIkWm4ulWT5wE=; b=W5cQCMg7NNkYQKAZqRvcb4c8g4HSECVX1Edc17mn3r0emGHFU3Z/4HKbnvPlLO5C07 GkucuOR+TdOONwnH/ikfN+nQnJOvd1FqUu8by2KhZ/NjfEAtKOv9cIn6tfr7LS5qTMtB tCGaFtIMZC6hiTmkuOH42dUk3YOZzaxKsR1Hc0n2Wi7YK1WQegQNS6jcvKxOAfZvQ8AG RBeuBFoVvbOqnAG1+sERGib8EMpkNXAhCnhPlrsZEgKITr0S0LVoQ4xmbgNahqfQv4jT peix0RW3vtyN4lypDBjppnK7TFL6iRJPhlUm3dlHQP++mKkM2ANyxaUx8sFs9Nywh8hs vsbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=n5/P3oLW/T875nhk38fWvvBcXE+/GVaIkWm4ulWT5wE=; b=k0M6LgTyCpihCMb/nJlVQeHFk1HV2rf2tnU+5yWui96cPvk1J7E+gyru6NPOuN317V MROv+sJ1NVAt8OoBr1rCEag7yOheEkEV/jCcO3u6wO9hH2j5UOQ1sRWN5B9ZwU1B2sqp suhA9sT+Q8sMJKENIPcNn9QEoP5NvLTvqUy+xJ0JRsoIK7zQBequ+GlCZPg15/iusX9w pDiggG8U+FhmkU/y6Zsd7w37DdvtLJ5JY1I5f1/3nF8RU/UnbhBElVV+//Qp8KxU5/Xj amBwCLs1aT2yfw3nm0qJ1Hi0J6Gj+Dpagel4zhkDYW7FsV53Pwj1mCmxrKF/Z9wVckPN wLNQ== X-Gm-Message-State: AOAM5324CJtG7rQ/7sftafx5mSuJzTCtwN0kN+HGT0+H33468jDixi/O TY9rUofQ8XpIc00TuW+Wa5EDuRPUsxA= X-Received: by 2002:ac2:5299:: with SMTP id q25mr3354496lfm.594.1619191404448; Fri, 23 Apr 2021 08:23:24 -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 c2sm581127lfi.143.2021.04.23.08.23.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 23 Apr 2021 08:23:24 -0700 (PDT) Subject: Re: [PATCH v1 2/2] iommu/tegra-smmu: Revert workaround that was needed for Nyan Big Chromebook To: Guillaume Tucker , 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: Dmitry Osipenko Message-ID: <724e683f-5317-cdf7-7351-fcfd42b7b607@gmail.com> Date: Fri, 23 Apr 2021 18:23:22 +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: 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: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.