Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp533107rwb; Thu, 10 Nov 2022 04:22:46 -0800 (PST) X-Google-Smtp-Source: AMsMyM7+RTibMzu+sexU9p3F1ljrcH+IiR282jc6fbL778m5qZ5fPLP1INijdGKMqCMofkZEP0E6 X-Received: by 2002:a17:90a:a608:b0:213:f2a6:d90a with SMTP id c8-20020a17090aa60800b00213f2a6d90amr55612661pjq.93.1668082966747; Thu, 10 Nov 2022 04:22:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668082966; cv=none; d=google.com; s=arc-20160816; b=A7hsPrhuIwLT6k3qw55qQdgRud20/GrXEm2YQuEzvy76BZVoOPT0MvVbY/8nHeiGlk TqUGnoaZlTRUOlKZ0WM7ycRtvMs59KoI4CVBcih7J005t4+Ypz2Izfv2wXCPGPekE2er bPwx4p7rlvt2XHXWgNGNbA9Ea+Jg6tHAaWbm/B+9zIadxnKD+iyD+BktxYHfuywFzpA4 ZiXC9evkq6Vy6961vIb98sYgdudxl0SZUOniBKu/63Sj7fm8fSA5TdDXm0piL33Nioqq ijOY3aK7v9IeXfJMjr+yi4/4ZiE4BvSmKzaOXrKeQFK/TxadIJpJf6LAjkrnkOinlCNI sD+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=dngPew9tfIsXqis9aTN0QEZkVjpf3qlZJxq/uUcFp5I=; b=LGYVT4hxDcefzVYb27gxGtNYfrlzTkKXM4ghJeAHcq/Cu3Nxxl6+b5J69jBRnIipGo OgJhEHZuTSjrBOmqio1u/CQc5yEL70ZUK10mHKWHaupqZWPZyZEftw3KEmTLwQg2kIzv JPG+i5/i7vbwck5Vq5yw0EziutprJQwA9n83+6uw4LJyQo0aLVZ/kiOOsAeEv8bjcVSL BrAHpyoSCzM3hskF8t1JClZsWnvrm6MzIQ3Yue5Ea0dorSiF1MQrjPTZKrDwegHB3PKl BAwZxe8RKriBWRuacuGsvz1gWM0P5/h2PBPiFbzgtaIyjOZBxL69Yg9c5kHaftG8R0WS Gi8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=aywOQVWH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bh12-20020a170902a98c00b00186e9ad55c1si18911557plb.434.2022.11.10.04.22.31; Thu, 10 Nov 2022 04:22:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=aywOQVWH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230192AbiKJLeO (ORCPT + 93 others); Thu, 10 Nov 2022 06:34:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230158AbiKJLeL (ORCPT ); Thu, 10 Nov 2022 06:34:11 -0500 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B364D716C9; Thu, 10 Nov 2022 03:34:09 -0800 (PST) Received: by mail-wr1-x432.google.com with SMTP id cl5so1814334wrb.9; Thu, 10 Nov 2022 03:34:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=dngPew9tfIsXqis9aTN0QEZkVjpf3qlZJxq/uUcFp5I=; b=aywOQVWHakfRF+EVLr/DXeg6DSIYTOV5WLZWZVJnFACVHAgqhjBNvfx71PxFj7lBpP nZw9U1PrY02zEP7x+fXGLHL2npkWvKUlHYsae5698cCJKZzzKEHBcBswduDBCOlsKQpg EKmDSFrWcCNfiw3++1Rz729iuntBQ3sAeB4JVP3JDWoZJkJt/Fd6SW2Y+YFaQZVR7vvT v/v09IA+QcA6ksQl91mZuU3tOFTuy43OVH+E6ULL7+hsCad+FhJXS9gXcEIZtcSHK22S AmNtdUFunoFiHV7xQC0aXvNrTD+8cJgfMjz+8f4dmXRtjYKgk7LDL1PIqGZV/tZRzTWF Rrww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=dngPew9tfIsXqis9aTN0QEZkVjpf3qlZJxq/uUcFp5I=; b=FogM0DtFeSbfupu+IlxglBoC8eMP99fGMcZNUyfNm+m0pUrQFnzjAtfmMkXIdQ17uW aEZBBCxcsicsPn5LdBh3hlXMCTu+mFIVRlrPHy3hXlbbaO0GQjP0FYWvsEWdY+Bk/r1H 1lxz2d+n7QEX3N0XNBgaog4yyAIXuquiIMghKBqFfv1ogANtPe9wd9V62PXmPfD6qgr2 eJKN4V0jieGwIjQT/EAOEecpZbSxKO1WGtjSr2Qa9A3vaDlio3/3CU04Topd9ew3AG0b m5FsPGxeElRp9b8Yh0wM7J4HIkD+XSEJJBHRJBHXVUr0yJnlHDmijSUItzspTRleUb05 lhRA== X-Gm-Message-State: ACrzQf2lHc2KbApajhQzX3kRTNjPhJEAY5QeibYu59ruaypbWdFCQR1K uo6XXe6xoArw49i6BTng1St22dI69s8= X-Received: by 2002:a05:6000:228:b0:236:773e:a6c0 with SMTP id l8-20020a056000022800b00236773ea6c0mr39961152wrz.102.1668080048236; Thu, 10 Nov 2022 03:34:08 -0800 (PST) Received: from [192.168.1.131] ([207.188.167.132]) by smtp.gmail.com with ESMTPSA id u13-20020a5d434d000000b0023647841c5bsm15516987wrr.60.2022.11.10.03.34.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 10 Nov 2022 03:34:07 -0800 (PST) Message-ID: Date: Thu, 10 Nov 2022 12:34:05 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 Subject: Re: [PATCH v6 0/3] iommu/mediatek: Add mt8365 iommu support Content-Language: en-US To: Alexandre Mergnat , Krzysztof Kozlowski , Joerg Roedel , Rob Herring , Robin Murphy , Will Deacon , Yong Wu Cc: linux-kernel@vger.kernel.org, iommu@lists.linux.dev, linux-mediatek@lists.infradead.org, Amjad Ouled-Ameur , Markus Schneider-Pargmann , linux-arm-kernel@lists.infradead.org, Fabien Parent , AngeloGioacchino Del Regno , devicetree@vger.kernel.org, Krzysztof Kozlowski References: <20221001-iommu-support-v6-0-be4fe8da254b@baylibre.com> From: Matthias Brugger In-Reply-To: <20221001-iommu-support-v6-0-be4fe8da254b@baylibre.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/11/2022 16:18, Alexandre Mergnat wrote: > Hi, > > This series contains patches related to the support of mt8365 iommu. > Thanks for your feedback so far. > > Regards, > Alex > > Changes in v6: > - Rebase > - Add new trailers > - Link to v5: https://lore.kernel.org/r/20221001-iommu-support-v5-0-92cdbb83bbb8@baylibre.com > > Changes in v5: > - Fix name file in mediatek,iommu.yaml > - Rename defines to be more consistent > - Rework INT_ID_PORT_WIDTH_6 check > - Link to v4: https://lore.kernel.org/r/20221001-iommu-support-v4-0-f1e13438dfd2@baylibre.com > > Changes in v4: > - Typo > - Rebase > - Link to v3: https://lore.kernel.org/r/20221001-iommu-support-v3-0-c7b3059b0d16@baylibre.com > > Changes in v3: > - Rename "mt8365-larb-port.h" to "mediatek,mt8365-larb-port.h" > - Rework the macros which retrieve larb/port ID to improve human readability > - Link to v2: https://lore.kernel.org/r/20221001-iommu-support-v2-0-dbfef2eeebc9@baylibre.com > > Changes in v2: > - Rebase. > - Change M4U_PORT_APU_READ & M4U_PORT_APU_WRITE port to avoid display > conflict in larb0. These definitions are used for vpu0 device node. > - Add dual license. > - Retitle commit. > - Rename to int_id_port_width for more detail. > - Fix typo. > - Set banks_enable and banks_num in mt8365_data to fix kernel panic at boot. > - Link to v1 - https://lore.kernel.org/lkml/20220530180328.845692-1-fparent@baylibre.com/ > > To: Yong Wu > To: Joerg Roedel > To: Will Deacon > To: Robin Murphy > To: Rob Herring > To: Krzysztof Kozlowski > To: Matthias Brugger > Cc: iommu@lists.linux.dev > Cc: linux-mediatek@lists.infradead.org > Cc: devicetree@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > Cc: linux-arm-kernel@lists.infradead.org > Cc: Fabien Parent > Cc: Markus Schneider-Pargmann > Cc: Amjad Ouled-Ameur > Cc: AngeloGioacchino Del Regno > Cc: Krzysztof Kozlowski > Signed-off-by: Alexandre Mergnat > > --- > Fabien Parent (3): > dt-bindings: iommu: mediatek: add binding documentation for MT8365 SoC > iommu/mediatek: add support for 6-bit encoded port IDs > iommu/mediatek: add support for MT8365 SoC > > .../devicetree/bindings/iommu/mediatek,iommu.yaml | 2 + > drivers/iommu/mtk_iommu.c | 25 +++++- > .../dt-bindings/memory/mediatek,mt8365-larb-port.h | 90 ++++++++++++++++++++++ > 3 files changed, 116 insertions(+), 1 deletion(-) > --- > base-commit: 11082343e3bf2953a937509f0316cabf69dbf908 > change-id: 20221001-iommu-support-f409c7e094e6 > For the whole series: Reviewed-by: Matthias Brugger