Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6630859imu; Wed, 30 Jan 2019 19:22:03 -0800 (PST) X-Google-Smtp-Source: ALg8bN7F8dkMJtKAXvKqeCEjZRAem8ND3hyaXvfATQ0SfpZS4SyKdzAIcRrfg/oZqpNGUIWWVPv/ X-Received: by 2002:a17:902:6113:: with SMTP id t19mr32087491plj.248.1548904923923; Wed, 30 Jan 2019 19:22:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548904923; cv=none; d=google.com; s=arc-20160816; b=MsT3lFYoFLxjHoylWcA2mP2IE6+Vu0JB+7WgRu7lzS1V7kdhr9Xh7GNT4FM6UWbPnj Jsz3Oak0zDYf4B/vPqx/Kzf91n6hlXCz6st/qlfjaXK/7VUPflf1qevAhs5dWfxrQ6vW rdIm13n52sZQjAECi76RWFremny1tG+4dZz0/PIHN66nRbpj/3AjklbBP59mP89SaFSI W7QaSm0SocEbgVUi4k1x2wfdfm9YUkP1KAAA5fK+PamjupCupPetU+uUcntv8IHjW0Ip F4UAoab14BwtI11YbVWblV/N3HZck+7ja0eMbRHiaN9h4fHq4kMZKgYb/HPhsXHW1xhE nGHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :references:in-reply-to:date:cc:to:from:subject:message-id; bh=twgkSMSGxvoBpDIuebYvucqpLrhacqUfJs43sOGKsFQ=; b=SPv4CR9d0jx1r1/Fdaa7nGLJpCmOEGJGeJHfmZsPR1kqF6YU9IVKbMz8vdGw12hb7+ 3mv39Qmr/V3DCW70CcLOr8L5E3XYsSY3cMxhYhNk7POvM5XAxTFHVUIPX+4pS2UkE5E2 DWAIpzMoJ6dZ7WahoEwwKLJOx97JEtRWc4EfsMFlyicmWdDyE/iJF2oCaJK4x3Oj9TZ+ GHd4+OAeGNd/oPbEiUUcG6aPQVemMFXeiPARRaiZqpYCkGvuy4MRzAo8FW7LUntJz+a4 vfmU68IPJPesTEz/xpt4OgDOrhrO3bZSv9WUKconvYH/YjTKglbHvpnpqYPjprehESUQ QUrw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y7si3191336pgq.545.2019.01.30.19.21.48; Wed, 30 Jan 2019 19:22:03 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731076AbfAaDVW (ORCPT + 99 others); Wed, 30 Jan 2019 22:21:22 -0500 Received: from Mailgw01.mediatek.com ([1.203.163.78]:37688 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725535AbfAaDVW (ORCPT ); Wed, 30 Jan 2019 22:21:22 -0500 X-UUID: dc45659d30064ed0be046f2078a93792-20190131 X-UUID: dc45659d30064ed0be046f2078a93792-20190131 Received: from mtkcas32.mediatek.inc [(172.27.4.250)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 480530882; Thu, 31 Jan 2019 11:21:07 +0800 Received: from MTKCAS36.mediatek.inc (172.27.4.186) by MTKMBS31DR.mediatek.inc (172.27.6.102) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 31 Jan 2019 11:21:06 +0800 Received: from [10.17.3.153] (10.17.3.153) by MTKCAS36.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Thu, 31 Jan 2019 11:21:05 +0800 Message-ID: <1548904865.19710.37.camel@mhfsdcap03> Subject: Re: [PATCH v5 19/20] iommu/mediatek: Add shutdown callback From: Yong Wu To: Evan Green CC: Joerg Roedel , Matthias Brugger , Robin Murphy , Rob Herring , Tomasz Figa , Will Deacon , , , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , LKML , , , Arnd Bergmann , , , Nicolas Boichat Date: Thu, 31 Jan 2019 11:21:05 +0800 In-Reply-To: References: <1546314952-15990-1-git-send-email-yong.wu@mediatek.com> <1546314952-15990-20-git-send-email-yong.wu@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2019-01-30 at 11:12 -0800, Evan Green wrote: > On Mon, Dec 31, 2018 at 8:00 PM Yong Wu wrote: > > > > In the reboot burning test, if some Multimedia HW has something wrong, > > It may keep send the invalid request to IOMMU. In order to avoid > > affect the reboot flow, we add the shutdown callback to disable > > M4U HW when shutdown. > > Sounds unpleasant. Hopefully the reboot flow still continues properly > even in that case, since this shutdown code may not run during some > rougher resets. Thanks this hint. I will reword the comment avoid writing reboot. > > Reviewed-by: Evan Green Thanks.