From patchwork Wed Dec 6 08:37:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?Smlhbmp1biBXYW5nICjnjovlu7rlhpsp?= X-Patchwork-Id: 17605 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp3965996vqy; Wed, 6 Dec 2023 00:38:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IGY06LuGzjroMeVtvr8zMFoI2I1udztef3FjjJcu8Bj/5PmRGik7ZYmjoIHIMlrTGwt7lmj X-Received: by 2002:a05:6808:19a8:b0:3b8:b063:8938 with SMTP id bj40-20020a05680819a800b003b8b0638938mr608102oib.70.1701851909238; Wed, 06 Dec 2023 00:38:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701851909; cv=none; d=google.com; s=arc-20160816; b=M1MACdWZvwKlUTJLSrjqDsw+saMxRDpY3VTz+8VlyIWxGVEcuO3aa+3v1SJEYob5Nt /m0L9/wKcWBVSYcQqV4Qnp0py1NlYIAm4r33TSbbUhj1KaAKgVn2b9mjLL77HJf03c7o 2mC6a4sfHyLnvpdv+Bw0ilWJC4Nmdfpvep1gIg4rF1AWb7MvUHlnJwiLZ7ESB5JfCSfz piq7W8SFHOo2nomLyEtV5aGCtYdSWnM3NMk2N1E3+q7//RA+9R8SSW/zKvdcLeWOIIau OXDCK3hXfziOHSO0aveeYAx6cXVLPY3K0mwFg1mO0rsNwFM4QZgbYHH2VWSk0248lrnW P54g== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=RtukihSfDsWlz+b8X+aaWJa3MkvBLzgY/4xO0VNr2hY=; fh=3zKAl2VU5Y4QcF1Ct2qSZx2UVl85KROl7vS1vpYhZUc=; b=lEjqgAucjAF53HbQoij0oVfBMC5WbwL3GKgyo7IAd7uxtaifqCdpztvo95srLMKDIm bsgNDOrTv1rqnKybK84tJZdQUuTYKcNsm/SFRRMCfW8IF0377HwNwDK5b5WWqpWK6DhC Dcg5Jae5Kn/l8ip0U1tA9b1Kjjvtb50S7/0DyB2P7HhMSbakfLpnrBT1XRt8e4ucc6xL 8BqwdTYujOEynmYybHArnqgPuFDnRELwvTR7v46BAa3eYxTLH3ozmhoM7DMvgZn5KFvb YpAa8InM5buW4jd2gCBjgVMzUn15F8+oAgoPxA8OXEmP2oyOWL/Ih1jTUYvGrawuIPzB V3AQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=qWzlufY8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id x8-20020a63fe48000000b005c5ff4675d8si5145410pgj.734.2023.12.06.00.38.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 00:38:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=qWzlufY8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 0D396803E9F4; Wed, 6 Dec 2023 00:38:26 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377203AbjLFIiR (ORCPT + 99 others); Wed, 6 Dec 2023 03:38:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377173AbjLFIiN (ORCPT ); Wed, 6 Dec 2023 03:38:13 -0500 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B30E112; Wed, 6 Dec 2023 00:38:19 -0800 (PST) X-UUID: cc1af848941211ee8051498923ad61e6-20231206 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=RtukihSfDsWlz+b8X+aaWJa3MkvBLzgY/4xO0VNr2hY=; b=qWzlufY8kvg1kVYOG96CFKSJG+GAycUB9q5pviRHYJaRUwl8YG68nARKHrGL4nO+rgWwtht+xdUtwDAnmcKCaxCTraARS4quh404OULQoC2WRRkcmH8elvS3QW2CmG9LaRWpAJubekjU2ZJnWkwr/oHLLWdOvxlUOnR3IIqlU+4=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.34,REQID:1f0aa776-5ebf-4e3e-a1c0-de5e02b7c6ca,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:0 X-CID-META: VersionHash:abefa75,CLOUDID:20c1e060-c89d-4129-91cb-8ebfae4653fc,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0,LES:1,SPR:NO, DKR:0,DKP:0,BRR:0,BRE:0 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR X-UUID: cc1af848941211ee8051498923ad61e6-20231206 Received: from mtkmbs14n2.mediatek.inc [(172.21.101.76)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1172057785; Wed, 06 Dec 2023 16:38:14 +0800 Received: from mtkmbs13n1.mediatek.inc (172.21.101.193) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Wed, 6 Dec 2023 16:38:12 +0800 Received: from mhfsdcap04.gcn.mediatek.inc (10.17.3.154) by mtkmbs13n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Wed, 6 Dec 2023 16:38:12 +0800 From: Jianjun Wang To: Lorenzo Pieralisi , =?utf-8?q?Krzysztof_Wilczy?= =?utf-8?q?=C5=84ski?= , Rob Herring , Bjorn Helgaas , Matthias Brugger , AngeloGioacchino Del Regno CC: Ryder Lee , Jianjun Wang , , , , , , , , , Subject: [PATCH 0/2] PCI: mediatek: Allocate MSI address with dmam_alloc_coherent Date: Wed, 6 Dec 2023 16:37:51 +0800 Message-ID: <20231206083753.18186-1-jianjun.wang@mediatek.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-TM-AS-Product-Ver: SMEX-14.0.0.3152-9.1.1006-23728.005 X-TM-AS-Result: No-10--3.153600-8.000000 X-TMASE-MatchedRID: KeLGzKm/w9IZ9FA+BlOSKko8jH4wkX2jmyiLZetSf8nyb6HMFK1qe8Is 1+7Tk9qQC24oEZ6SpSmb4wHqRpnaDhbg7mB9W0YxUtkz1RZEmFObGvZ1q7nSjoYFec5vZXDlsvg Mup5zcDgOSlgQWWtzSEErIJrd/3YkTNjBF1ofWtl2Rmg6QP0HuPI2nuDg9d7QFezHPq6MHFSrV/ xdKQcFSY0leYQxW8u2ZyMWcibO/JI= X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--3.153600-8.000000 X-TMASE-Version: SMEX-14.0.0.3152-9.1.1006-23728.005 X-TM-SNTS-SMTP: 0F913E4C0655B20E59F40CE50463C250EC4BF0EB88C6DB39F99715DF054DCCC62000:8 X-MTK: N X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Wed, 06 Dec 2023 00:38:26 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784521067587726792 X-GMAIL-MSGID: 1784521067587726792 These series of patches change the allocation of MSI address on MediaTek platform, which uses 'dmam_alloc_coherent' to allocate the MSI address. Jianjun Wang (2): PCI: mediatek: Allocate MSI address with dmam_alloc_coherent PCI: mediatek-gen3: Allocate MSI address with dmam_alloc_coherent drivers/pci/controller/pcie-mediatek-gen3.c | 30 +++++++++++---------- drivers/pci/controller/pcie-mediatek.c | 29 +++++++++++++------- 2 files changed, 36 insertions(+), 23 deletions(-)