Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp31376pxf; Tue, 9 Mar 2021 22:51:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJxF5ka5k9hjYagqy6AWYssDvmYD947+bwjhFXNqqyrTE8MgqMqAUFPXY7zs0BRP4Xqw3MF3 X-Received: by 2002:a17:906:a94b:: with SMTP id hh11mr1983888ejb.459.1615359063258; Tue, 09 Mar 2021 22:51:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615359063; cv=none; d=google.com; s=arc-20160816; b=o8wTrLLc49p0xYRQw7kbbau/hJ6dNAbpjQDCq6CLgyYBYOZHH3o2ioMLjycADpxsKe OrKQnDUuIpuRBoTfL98W9NUHphlVlZhKLiciuCw1uUB4JywkYrjVMkFdTDBtlRt8UuOc +vuQJOK89Vdi3kmdMZXlCRgLtf8F8PUzD+hpWSDNaseV7dZJTOr0B/dF7rq/tfF8czmr Fm90kZRrTim5Uxk0kDTAV28pC50MOJ4wo4M0Kg/4ODIaF9GrPQtc76XMzU5I2DM+xhgZ AwUEI63Dx76mpOT0m5ab9K1nnToknfKqMqa7g9/bKw94nCWbKGPtG6ZhBZo1P8Ws2E0e xmWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=D09TyNylBKbStaKtchQcUElsm48BUYZhG4qREnS+nW8=; b=TlEh44IW6yjQZGXfB6GoaqWaSF0WCa1XCyx/HyBoeaVNVOJCR4yWliLqMWVL9Gri9b bTwn+2tm7gMzMG1P1DPkQXsj/9yDR/Y2fT7PvjPAa7XirmG8NOsHx8lWvrgr24vHmeCq tBsdblWAXkcdj/hGMHAbhjSTkKC+Trm4Hgl0VmRCO+Q10DMVB0U8dlB1UELwIQq5CSwj FMF9HwEzjmwcxkDPXJkotepge0lds1rUKJ0UzdiqiMFg3j6h+XoauI+uGNIxHWq8gxrk rIciARWYHwvnSGxy9TDW0mz/8mw+r6X9+V30/3bqroRV6DrpSjkpqTj1BtVcR0IIDJWf wdtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=iNSLqXwK; 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=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hb4si11032601ejb.642.2021.03.09.22.50.39; Tue, 09 Mar 2021 22:51:03 -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=@mediatek.com header.s=dk header.b=iNSLqXwK; 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=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229678AbhCJGtl (ORCPT + 99 others); Wed, 10 Mar 2021 01:49:41 -0500 Received: from Mailgw01.mediatek.com ([1.203.163.78]:8722 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S229525AbhCJGtR (ORCPT ); Wed, 10 Mar 2021 01:49:17 -0500 X-UUID: 002c64e8b546470ea124308c3d39ca54-20210310 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=D09TyNylBKbStaKtchQcUElsm48BUYZhG4qREnS+nW8=; b=iNSLqXwKCGEvjDb4TpnaEt0ZEOldsuTr1Up6CViLIgoKTf26+FVek+pbSiXUkyubvK1b3dnpWztPXmYus7GOnGmdL6eqmkXMTqyQugdx6ndutXj9hTaBRWZw98E7Jnqy99uqfgkOJ2zKYQgjFUt0wYesSRf94esS7i69NXnS3k8=; X-UUID: 002c64e8b546470ea124308c3d39ca54-20210310 Received: from mtkcas32.mediatek.inc [(172.27.4.253)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 670937930; Wed, 10 Mar 2021 14:48:59 +0800 Received: from MTKCAS36.mediatek.inc (172.27.4.186) by MTKMBS31N1.mediatek.inc (172.27.4.69) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 10 Mar 2021 14:48:49 +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.1497.2 via Frontend Transport; Wed, 10 Mar 2021 14:48:49 +0800 Message-ID: <1615358929.25662.47.camel@mhfsdcap03> Subject: Re: [v8,5/7] PCI: mediatek-gen3: Add MSI support From: Jianjun Wang To: Marc Zyngier CC: Bjorn Helgaas , Rob Herring , Lorenzo Pieralisi , Ryder Lee , Philipp Zabel , "Matthias Brugger" , , , , , , "Sj Huang" , , , , , , , Date: Wed, 10 Mar 2021 14:48:49 +0800 In-Reply-To: <87pn08y3ja.wl-maz@kernel.org> References: <20210224061132.26526-1-jianjun.wang@mediatek.com> <20210224061132.26526-6-jianjun.wang@mediatek.com> <87pn08y3ja.wl-maz@kernel.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-TM-SNTS-SMTP: 9BAB50CC64708D9103176E08435B1B5ED04930DF72E0FB2407164EEC1CDFC2732000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgTWFyYywNCg0KVGhhbmtzIGZvciB5b3VyIHJldmlldy4NCg0KT24gVHVlLCAyMDIxLTAzLTA5 IGF0IDExOjIzICswMDAwLCBNYXJjIFp5bmdpZXIgd3JvdGU6DQo+IE9uIFdlZCwgMjQgRmViIDIw MjEgMDY6MTE6MzAgKzAwMDAsDQo+IEppYW5qdW4gV2FuZyA8amlhbmp1bi53YW5nQG1lZGlhdGVr LmNvbT4gd3JvdGU6DQo+ID4gDQo+ID4gQWRkIE1TSSBzdXBwb3J0IGZvciBNZWRpYVRlayBHZW4z IFBDSWUgY29udHJvbGxlci4NCj4gPiANCj4gPiBUaGlzIFBDSWUgY29udHJvbGxlciBzdXBwb3J0 cyB1cCB0byAyNTYgTVNJIHZlY3RvcnMsIHRoZSBNU0kgaGFyZHdhcmUNCj4gPiBibG9jayBkaWFn cmFtIGlzIGFzIGZvbGxvd3M6DQo+ID4gDQo+ID4gICAgICAgICAgICAgICAgICAgKy0tLS0tKw0K PiA+ICAgICAgICAgICAgICAgICAgIHwgR0lDIHwNCj4gPiAgICAgICAgICAgICAgICAgICArLS0t LS0rDQo+ID4gICAgICAgICAgICAgICAgICAgICAgXg0KPiA+ICAgICAgICAgICAgICAgICAgICAg IHwNCj4gPiAgICAgICAgICAgICAgICAgIHBvcnQtPmlycQ0KPiA+ICAgICAgICAgICAgICAgICAg ICAgIHwNCj4gPiAgICAgICAgICAgICAgKy0rLSstKy0rLSstKy0rLSsNCj4gPiAgICAgICAgICAg ICAgfDB8MXwyfDN8NHw1fDZ8N3wgKFBDSWUgaW50YykNCj4gPiAgICAgICAgICAgICAgKy0rLSst Ky0rLSstKy0rLSsNCj4gPiAgICAgICAgICAgICAgIF4gXiAgICAgICAgICAgXg0KPiA+ICAgICAg ICAgICAgICAgfCB8ICAgIC4uLiAgICB8DQo+ID4gICAgICAgKy0tLS0tLS0rICstLS0tLS0rICAg ICstLS0tLS0tLS0tLSsNCj4gPiAgICAgICB8ICAgICAgICAgICAgICAgIHwgICAgICAgICAgICAg ICAgfA0KPiA+ICstKy0rLS0tKy0tKy0tKyA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bi4N Cg0KICAgICAgICAgICAgICAgICAgKy0tLS0tKw0KICAgICAgICAgICAgICAgICAgfCBHSUMgfA0K ICAgICAgICAgICAgICAgICAgKy0tLS0tKw0KICAgICAgICAgICAgICAgICAgICAgXg0KICAgICAg ICAgICAgICAgICAgICAgfA0KICAgICAgICAgICAgICAgICBwb3J0LT5pcnENCiAgICAgICAgICAg ICAgICAgICAgIHwNCiAgICAgICAgICAgICArLSstKy0rLSstKy0rLSstKw0KICAgICAgICAgICAg IHwwfDF8MnwzfDR8NXw2fDd8IChQQ0llIGludGMpDQogICAgICAgICAgICAgKy0rLSstKy0rLSst Ky0rLSsNCiAgICAgICAgICAgICAgXiBeICAgICAgICAgICBeDQogICAgICAgICAgICAgIHwgfCAg ICAuLi4gICAgfA0KICAgICAgKy0tLS0tLS0rICstLS0tLS0rICAgICstLS0tLS0tLS0tLSsNCiAg ICAgIHwgICAgICAgICAgICAgICAgfCAgICAgICAgICAgICAgICB8DQorLSstKy0tLSstLSstLSsg ICstKy0rLS0tKy0tKy0tKyAgKy0rLSstLS0rLS0rLS0rDQp8MHwxfC4uLnwzMHwzMXwgIHwwfDF8 Li4ufDMwfDMxfCAgfDB8MXwuLi58MzB8MzF8IChNU0kgc2V0cykNCistKy0rLS0tKy0tKy0tKyAg Ky0rLSstLS0rLS0rLS0rICArLSstKy0tLSstLSstLSsNCiBeIF4gICAgICBeICBeICAgIF4gXiAg ICAgIF4gIF4gICAgXiBeICAgICAgXiAgXg0KIHwgfCAgICAgIHwgIHwgICAgfCB8ICAgICAgfCAg fCAgICB8IHwgICAgICB8ICB8ICAoTVNJIHZlY3RvcnMpDQogfCB8ICAgICAgfCAgfCAgICB8IHwg ICAgICB8ICB8ICAgIHwgfCAgICAgIHwgIHwNCg0KICAoTVNJIFNFVDApICAgICAgIChNU0kgU0VU MSkgIC4uLiAgIChNU0kgU0VUNykNCg0KSSB3b3VsZCBsaWtlIHRvIGFzayBhbm90aGVyIHF1ZXN0 aW9uLiBJbiB0a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