Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp300352pxv; Wed, 14 Jul 2021 04:25:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx437aZPPuS1dYb2ksdARtVcSfw2zcdwQXbIqGgj8r2w8VXvRhrAbfC9PGbghpzzB0Mktbf X-Received: by 2002:a92:7009:: with SMTP id l9mr6419733ilc.24.1626261901696; Wed, 14 Jul 2021 04:25:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626261901; cv=none; d=google.com; s=arc-20160816; b=wNdGndkToIDpzBbdTM3WHL4T5NA5UX5CizhenMlkCk8dHGfe4IyYb/OWWQZtkKD0JK OAR4h8pz7qg8yY8hrY9bbid/1g6DyjXuPRNlYSjC8OgwZxFHv1RoK6QSUV0EhG7b1Ejd 153+QTl4kIKz3brXAiHc39chHAKB2EPrYoDEmfdR3m6e8X8xo6tUR45gMCH+t9h5L4WZ aSb3PkX1mHvVd4QdaHYNKjs9urKTxnuVrmghZ+iYInrlz08fEYU1XpGS5qUDXjZAbEJ0 o8AWZVb/Kn8dBFzd//EXsQyC4x36i+ULa3epdozZCKTjRejAugC4Nb06yRPCm6CG62to hyGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:references:in-reply-to :sensitivity:importance:date:subject:cc:to:from:message-id :mime-version:dkim-signature; bh=jp60kgqrpjq3ZH7uFc0nV1VkPk3UlVjb3XykVFjRtxw=; b=c8+emZM8213aIk/kWPzXAlEZU2i3vt1d29xH0PJ3ZWeWiVZiC5fFWr7urg1trJjmjx Q9ZWO+kf2YW3U8kWACfphnjjgTxI0l9X7oq++kRAOTu+HnqCNyHpPoGO8siTjQstteuE 6gXl5DduPYmSgTVyMBJ8riohr9SmADnmkSynVrOPoEZuv3Z5/S4PmsAiuLQyBBaceHdV 1NEz/Pkvh6T26J851+2T81S1SF+IZR2O9dgU52bJA1ti0/hQgk+C1Hd7Gn2JbR5B6WZO 5PLyFRhRRf4thFLIVsCBVeDfCZNFlJZIUV4y8xV18WzAvX3KgI+n8R6m4L1Bd15J6ygx 33GA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=MH7MDNZQ; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h5si2683500iol.44.2021.07.14.04.24.49; Wed, 14 Jul 2021 04:25:01 -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=@gmx.net header.s=badeba3b8450 header.b=MH7MDNZQ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239146AbhGNL0x (ORCPT + 99 others); Wed, 14 Jul 2021 07:26:53 -0400 Received: from mout.gmx.net ([212.227.15.19]:39153 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230164AbhGNL0v (ORCPT ); Wed, 14 Jul 2021 07:26:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1626261811; bh=bRr42QOU3WxiGukaiKaQo9qQhX/uefmYG0L+VFBR0cY=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=MH7MDNZQYjkv/8bbwBkSy/dTHjnZEPLNjx58GhW9NiKHHaEhkZIBMgl+1jheOfYNx sjSLqyorceUCLaV+PPaVTyVLnTnuLOwvgbv9UIdtSSouT/ugGyPoD0cnAxEyO/tBby KIzRPQDofNHx0bvw8YjucC6+kgI+v0FtYHZpN/kY= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [217.61.152.136] ([217.61.152.136]) by web-mail.gmx.net (3c-app-gmx-bs01.server.lan [172.19.170.50]) (via HTTP); Wed, 14 Jul 2021 13:23:31 +0200 MIME-Version: 1.0 Message-ID: From: Frank Wunderlich To: Yong Wu Cc: Matthias Brugger , Joerg Roedel , Rob Herring , Krzysztof Kozlowski , David Airlie , Mauro Carvalho Chehab , Evan Green , Robin Murphy , Tomasz Figa , Will Deacon , linux-mediatek@lists.infradead.org, srv_heupstream@mediatek.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, iommu@lists.linux-foundation.org, youlin.pei@mediatek.com, Nicolas Boichat , Matthias Kaehlcke , anan.sun@mediatek.com, ming-fan.chen@mediatek.com, yi.kuo@mediatek.com, acourbot@chromium.org, linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, Daniel Vetter , Chun-Kuang Hu , Philipp Zabel , Xia Jiang , Tiffany Lin , Dafna Hirschfeld , Hsin-Yi Wang , Eizan Miyamoto , anthony.huang@mediatek.com Subject: Aw: Re: [PATCH v6 00/11] Clean up "mediatek,larb" Content-Type: text/plain; charset=UTF-8 Date: Wed, 14 Jul 2021 13:23:31 +0200 Importance: normal Sensitivity: Normal In-Reply-To: <1626261496.14352.16.camel@mhfsdcap03> References: <20210714025626.5528-1-yong.wu@mediatek.com> <1626261496.14352.16.camel@mhfsdcap03> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:C0a90b1taoG2cfcfP1pde1q2MNu5r1lIgwNvN5NXJS81Z6XyWAFZhMImid05bZKAZUc1Z fSbF+ihXoQ925TRhUh/2PryeQrkBTUM6JIUaLAvZhNfmBG35Ckp7hDn2PsC6SOkInfw03TSGwAnq QVkUFPFGffmEj3883aNhVDGijVAV0Dj7a1YKE2SJcV1ysSSD1b5nQ6xxg4LGX+ho7QSyvTaUSA5/ VeO3HfkSU+3+B2YcXrhadx1ynHb86Y/11K6GLOIm5WEjhoUM5E0xij5biHeSELX8yOKYJratdjjD DA= X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:DZIjrERjTx0=:zO1GGiDuxmWNpY4kEGNX+H Qsmf9C4I97mAD+wP1pU8z1eVgOesso/R5WsIidAM5D5eoNM9Jq9vra+7B0hV+BiXqHlm/N2U8 AU3rTTheff7I21iXOz3ILBB3bGN35C3B0KptIb4TN1MAOKfCNobq+RN/zUswYDl0kZ4eUR9c0 tQGm/bjLfNmBpNJHquyGdQvZYZNq2DH8QApwTchWdAEnpNcF+KOpKXpYjySgkTnaBYwVj27pW nDbtsU5XednjYl88TCAk3MdLCU/njHPVEi8eLjrm12TvLdsgmyoYJgQ3BqBfit76+TcdTzEaj 8oSosUKEC17F7PKZVCu360ZGcAfd7x+mFySyONxorqV3I0Ge29/VKMmQCUx6U4tGyE/tedka0 RX/CBC10tyIElacx5U7+9OoA+hRzKwTS9LRYmixBzk4cXG/5G4+j5ljnyn57NrDQp9fuMGkwH vk4taR0w6XvN8s45fZ+qBA/Vzfq/o2D5Jnk1CrTsYwZRGO7EH3DubSJEKxu8Q/SfXw+yPfXD2 QcYHX3vFQ95LjF+yBhj7MDkk83UPCbZujqhgGuzFULXV9/KpR40RKpwh37QTl0x+I283hMmgo yZjPMs8hjkNCjgYaF3X/Y6tG+n2TFGBWh36cu9O5iTbFSEXYKv0BUaEKLtwxiEUfLEYqFZeP1 RGJafeHCi3VQkh24Z0kvP/wCasLOFs3jsuq2je+vhXaEdZJ9NeCB9D3wVis0CVRxceZ/6F0z+ aWWCGUHZw8ekZPLQRrauLJKsPcMo3Awj4mlBI3ggYs1VbVrpwEBT98jdeIMoiUs72pausS9ap BJ1DOYDL0HTAvkX8qv8ayhDVShLTwcji0NvCJczKYjZbdxnY7c= Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Gesendet: Mittwoch, 14. Juli 2021 um 13:18 Uhr > Von: "Yong Wu" > Hi Frank, > > Thanks for your report. mt7623 use mtk_iommu_v1.c. > > I will try to reproduce this locally. Hi, as far as i have debugged it dev->iommu_group is NULL, so it crashes on fi= rst access (dev_info) drivers/iommu/iommu.c: 923 void iommu_group_remove_device(struct device *dev) 924 { 925 printk(KERN_ALERT "DEBUG: Passed %s %d \n",__FUNCTION__,__LINE__); 926 struct iommu_group *group =3D dev->iommu_group; 927 struct group_device *tmp_device, *device =3D NULL; 928 929 printk(KERN_ALERT "DEBUG: Passed %s %d 0x%08x\n",__FUNCTION__,__LINE_= _,(unsigned int)group); 930 dev_info(dev, "Removing from iommu group %d\n", group->id); regards Frank