Re: [PATCH v5 19/20] iommu/mediatek: Add shutdown callback

From: Evan Green
Date: Wed Jan 30 2019 - 14:24:16 EST


On Mon, Dec 31, 2018 at 8:00 PM Yong Wu <yong.wu@xxxxxxxxxxxx> 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 <evgreen@xxxxxxxxxxxx>