Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp6282225pxb; Thu, 27 Jan 2022 10:12:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJxHi6gasaop9bJVsaWnq8DKZfftOFbGYtwrLEpO0nYhCQEwEBzaDCbbGYvGnscke2eZIb9r X-Received: by 2002:a05:6402:f19:: with SMTP id i25mr4692795eda.91.1643307175043; Thu, 27 Jan 2022 10:12:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643307175; cv=none; d=google.com; s=arc-20160816; b=gy8oe9HJJl//e9F4pu9++gLAR4yxuLO/dYOdkX0lMeuPQxUQTl5sTuCKwl3AGJdFU+ cq1qfdQQq7D9pBMnpg8SHwvam+uhHIdB1NliYFBkPM5smP1rkk95siql5i7VpKUU24ur lzpjc8Q99clTUwP1/EwvKscxEZvrdQ3OKXb936YXpfei+SDBf5BDnRoI47KQsBcChmkZ RkZ73cJkEzNs7qB3hHfp3+mPmY/IK/AJDzkoKSNWhLKqba4BKVI+TLgd5Ylb5CBsDFRv RX/b40XLCeWiJvp1MrDE0zgvGFRv8Q5kjm5C2P+hOPpkpN1AJDuaai4qN0cQFDVJhEk7 1W1A== 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=8j46bD2wI8sHdmvJ3bRxtXEsB5Xbw/KEz6s774YLDds=; b=tN6LplCHdh4KqPOgXzpcvIzGsGwZpzxgEOwsi9lrHNZ2L6OHUBYUIpLjUj7Sl88QQQ GYXJLt+J1jep8Ri/alEh90q/r1bxuoLOQbeRBBdy6dJHxklGs33ZfiY9mG8RwYnYlEV1 WzKwgujyfB8ef3CJVx30xJXkz3oox5CO9LZUmQvJu2iBDwTq9Ma5Qgofa7bGg66kBfD4 2rwon25BqXCS1MuYFmTBmJOXBC2HdZPZ+xuYqSQn+CmLEgbW/dLrLtSfquViMyMzNT+E IDGMTG9XfLARIoi/zS5aFUBF8y5sEF8tCB03IPu7MepaGh+pMJ3CirbN5nxcRa2CaSWq SwEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=DANWTO2F; 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=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y14si1593681edv.575.2022.01.27.10.12.29; Thu, 27 Jan 2022 10:12:55 -0800 (PST) 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=@collabora.com header.s=mail header.b=DANWTO2F; 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=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239918AbiA0LDC (ORCPT + 99 others); Thu, 27 Jan 2022 06:03:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239910AbiA0LDA (ORCPT ); Thu, 27 Jan 2022 06:03:00 -0500 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0148DC061714; Thu, 27 Jan 2022 03:03:00 -0800 (PST) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: kholk11) with ESMTPSA id B63611F41701 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1643281378; bh=oRWo0Veii/RC5thoeHrP2GZT3yztnRxOcV4vMVuDWrw=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=DANWTO2FuWyYw+H4LLdsbFJmnTtEtz5IZacT9Oz68afHtrV7NRm06X0lo3vwg3UJm V1LZuevKoqhzsir9cBe8plY1suyuFyV7sLFfOgxuc21r/uzgpd02jWnsCHqmLiHZCP uR5XTKgXcOr1TL5PNucboFSqbHcRs9ABkmMQFjs8xQoHYsIPhgzhWT2maVE4l0K9s+ ef1iScK99eK4ivp0lZGLoB2GEqZXSBcPJV9/Wcf0/Y/reJ5LwpgIMHW0YMqbkj6K4t R2mc4XPJiG5KMPSDuycY2bkNil4FYxSbh1VDKJgzorpeZBz3tYMsuAUK4IqQDu4/OY u8zz6qVVTth6w== Subject: Re: [PATCH v4 07/35] iommu/mediatek: Add mutex for data in the mtk_iommu_domain To: Yong Wu , Joerg Roedel , Rob Herring , Matthias Brugger , Will Deacon Cc: Robin Murphy , Krzysztof Kozlowski , Tomasz Figa , 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, Hsin-Yi Wang , youlin.pei@mediatek.com, anan.sun@mediatek.com, xueqi.zhang@mediatek.com, yen-chang.chen@mediatek.com, mingyuan.ma@mediatek.com, yf.wang@mediatek.com, libo.kang@mediatek.com, chengci.xu@mediatek.com References: <20220125085634.17972-1-yong.wu@mediatek.com> <20220125085634.17972-8-yong.wu@mediatek.com> From: AngeloGioacchino Del Regno Message-ID: <8576a0c5-aa69-aaed-be48-125ae2004f47@collabora.com> Date: Thu, 27 Jan 2022 12:02:55 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20220125085634.17972-8-yong.wu@mediatek.com> Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Il 25/01/22 09:56, Yong Wu ha scritto: > Same with the previous patch, add a mutex for the "data" in the > mtk_iommu_domain. Just improve the safety for multi devices > enter attach_device at the same time. We don't get the real issue > for this. > > Signed-off-by: Yong Wu Reviewed-by: AngeloGioacchino Del Regno