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: 13481275 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B05C1C4167B for ; Wed, 6 Dec 2023 08:39:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=K4pPusYk6iK4s3sRHVzNmRini/HYbfqtBTERRsQK2jI=; b=1vDbhqD1HeAGtz 4u8y/vKYjqNjrI611vJC9o+2LdsnFpb6JbuK5rL4xV9MQi9jiEBVFGFwKa5blS0/CszYsxz/3vxBK mgp3352s86KSb2pkdt8RRL8CQ1WiwliblAPdbGXvd/hjFze4bTIuCj/fo/154HTlZr2oOj0zbIDaB Z4f+YPZbhHZb9T1JApfTrgTo5q3hDKCD416FcwGkNFh8pbKSaJ++cnPOzc4WenzeI93Or1kpcNqsS VQfw008ha5keTKcjjfKJENBZfu4m/GvykdZfs7fBU33uQ0b2UYyQ/l4Q48vdETR8ltVwZ2x3q7Ete I9Y9VTsOXt7QAMaqCRdw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rAnQi-009Rhn-2M; Wed, 06 Dec 2023 08:38:52 +0000 Received: from mailgw01.mediatek.com ([216.200.240.184]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rAnQg-009Rh7-1K; Wed, 06 Dec 2023 08:38:51 +0000 X-UUID: df2dd842941211ee9b09ad09c76753c8-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:1e30c85b-ad6c-4157-bafd-c32fe4e350ce,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:b6c2e060-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: df2dd842941211ee9b09ad09c76753c8-20231206 Received: from mtkmbs14n1.mediatek.inc [(172.21.101.75)] by mailgw01.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1603846312; Wed, 06 Dec 2023 01:38:46 -0700 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231206_003850_453394_BAF9BD89 X-CRM114-Status: UNSURE ( 6.34 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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(-)