Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6253852imu; Wed, 30 Jan 2019 11:25:11 -0800 (PST) X-Google-Smtp-Source: ALg8bN5O0On7DpOk83WQ4gfg4cAZPDXI15PtSGIrUSm/gmHNleN+kCPCF1qIJMa2Ijui0wKCZSKb X-Received: by 2002:a62:9419:: with SMTP id m25mr33153542pfe.147.1548876311697; Wed, 30 Jan 2019 11:25:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548876311; cv=none; d=google.com; s=arc-20160816; b=xIBI4RDl7s6NB11tu9CDw5mUl4iMGE48bi417YsAe1cnfxgA9k+yJ4b8VNrO1UVD0k /+NUwSs84cmgjzTYGBuJNb5AXv4ryc/BUM8Rlm/3pgt7Gv7uz9uiNi/LCY98Sbjss0XP CaF5HpiEMNCBY2VASYoOwN2GGlPiE4gdkry1yZ8jLqiDBsF/HKT/ZzOW0SmDLDsu0uj/ IPEODAyttPGB5ZueBspOUV2DxyL9iZgAjbnpliiCKKIpWf1yawBKJKcPsP7v9jZMkp2B g6VytZrprJC8lYsyl+0zzQIAMmssBNwZN3k56BnXFLKHsoJ54akUGQlMKCRvreJvKUh9 QZ3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=kUoP8ow0u3BjoGMjMpf081Xt5GpQYKWK+yws+VrVB9U=; b=RzkH7P7iGFwyvXtPV07/lq6VAsq1f6nZn1MgwvcyYAxKbhkJU0Y4/FtK3x3DaxJTWK B0QH7CKYlj6dS4aB1yPCskJjR9WSeTixp3A9m5iK/3l1XKVHr9qj8O1ml21PIVhm2CGb mVGmJomhEfmJ3iQTIWvGcR4zw7UTgeJud8mzquYBQef1twD7CpQrPHFSVnt6TXdfUEoM q0VwU88H0fzHglvC8p+b5zEmku/IZ6nfWLUXQH37GLuTPDY5i+0qMfDPkKcg4TUtEV5p 2B4/9BECq0xShLPQjlyUsIS57tuMIU+xjruvNwzUsKRXpuwGNBFmhs6vp4yPWp7/Ewny NRVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=cJ7GeL5r; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 10si2163072pgk.101.2019.01.30.11.24.56; Wed, 30 Jan 2019 11:25:11 -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; dkim=pass header.i=@chromium.org header.s=google header.b=cJ7GeL5r; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387607AbfA3TYO (ORCPT + 99 others); Wed, 30 Jan 2019 14:24:14 -0500 Received: from mail-lj1-f169.google.com ([209.85.208.169]:40824 "EHLO mail-lj1-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387544AbfA3TYN (ORCPT ); Wed, 30 Jan 2019 14:24:13 -0500 Received: by mail-lj1-f169.google.com with SMTP id n18-v6so577313lji.7 for ; Wed, 30 Jan 2019 11:24:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=kUoP8ow0u3BjoGMjMpf081Xt5GpQYKWK+yws+VrVB9U=; b=cJ7GeL5raixS5kQ0QSjZNPpYMJLD708nwHxeU4aWWr7W1gOpUV1ISKdvs3fdzRK63s tQen7oDI8yCkKjpWeo4PSinWqcK1ZBM1Wbj04cDXDBHSIXH9A6Zvp+utqUTUg077tKMd p4H0bzNtrnTFIvI7pXY77t22jgWkHlWnH8/54= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=kUoP8ow0u3BjoGMjMpf081Xt5GpQYKWK+yws+VrVB9U=; b=Ckfa/ug5MHsUqh121m6i96evptsqznmHR2v+jfgLyY2LTZS0Q5t6aObdXwms7BIvv8 HHtl9OHGaTX+Z4z27Ey/t40B6vVy/C8Hr07/HvtHPRckb0GAk2XJ4CjgFd2SFIKSMlkY A80xPApLEPAs8xvnUuNMg4tgJf5Yh+S+gx/Lev/2NyFgFmV3IgHmuU/cy8F8kcNwO07j PwnRofC/sqdWjCeN68Bm/qDwrobQ5JOg7ymR8OlEbXnz/FalkWUfbbXgmzJeJnvpwehK n9q9wsWCbpGez58IhR9HqA5nEQI197ahB6kVnj9sfrXEBfD9p4RM2jY+TQqicT+20Kln irwA== X-Gm-Message-State: AJcUukcV7dQ0Dp7NvJmZW+OODq6dzm06x8RwbEWSwb3hiRc1L6WUEUXb 8BFoGVbakGb4/JM9Fuk+yYRUs8eLy6I= X-Received: by 2002:a2e:5152:: with SMTP id b18-v6mr25005754lje.88.1548876251025; Wed, 30 Jan 2019 11:24:11 -0800 (PST) Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com. [209.85.167.42]) by smtp.gmail.com with ESMTPSA id 11-v6sm410528ljv.1.2019.01.30.11.24.10 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Jan 2019 11:24:10 -0800 (PST) Received: by mail-lf1-f42.google.com with SMTP id i26so541477lfc.0 for ; Wed, 30 Jan 2019 11:24:10 -0800 (PST) X-Received: by 2002:a19:7d42:: with SMTP id y63mr25092101lfc.47.1548875771635; Wed, 30 Jan 2019 11:16:11 -0800 (PST) MIME-Version: 1.0 References: <1546314952-15990-1-git-send-email-yong.wu@mediatek.com> <1546314952-15990-20-git-send-email-yong.wu@mediatek.com> In-Reply-To: <1546314952-15990-20-git-send-email-yong.wu@mediatek.com> From: Evan Green Date: Wed, 30 Jan 2019 11:12:51 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v5 19/20] iommu/mediatek: Add shutdown callback To: Yong Wu Cc: Joerg Roedel , Matthias Brugger , Robin Murphy , Rob Herring , Tomasz Figa , Will Deacon , linux-mediatek@lists.infradead.org, srv_heupstream@mediatek.com, "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , LKML , linux-arm-kernel@lists.infradead.org, iommu@lists.linux-foundation.org, Arnd Bergmann , yingjoe.chen@mediatek.com, youlin.pei@mediatek.com, Nicolas Boichat Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Reviewed-by: Evan Green