Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp249834pxk; Thu, 24 Sep 2020 04:57:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJKVwOTHggaWSV0X2gua1b9Zx/6G515cERsPguV7z0AKMT3mtD/IbLlrMs/I/7VBK3rGyr X-Received: by 2002:a17:906:68d2:: with SMTP id y18mr599284ejr.197.1600948676348; Thu, 24 Sep 2020 04:57:56 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i22si1823852ejy.5.2020.09.24.04.57.31; Thu, 24 Sep 2020 04:57:56 -0700 (PDT) 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=@synopsys.com header.s=mail header.b="he/GMqVG"; dkim=fail header.i=@synopsys.com header.s=selector1 header.b=m5otKErL; arc=fail (signature failed); 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=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727543AbgIXL4c (ORCPT + 99 others); Thu, 24 Sep 2020 07:56:32 -0400 Received: from smtprelay-out1.synopsys.com ([149.117.73.133]:47432 "EHLO smtprelay-out1.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727428AbgIXL4b (ORCPT ); Thu, 24 Sep 2020 07:56:31 -0400 X-Greylist: delayed 492 seconds by postgrey-1.27 at vger.kernel.org; Thu, 24 Sep 2020 07:56:31 EDT Received: from mailhost.synopsys.com (sv2-mailhost2.synopsys.com [10.205.2.134]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by smtprelay-out1.synopsys.com (Postfix) with ESMTPS id 9BA5E402FD; Thu, 24 Sep 2020 11:48:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1600948099; bh=it2miV1G3/Iej7S3P+SaSSh34IUOf93MniahC5Y75cE=; h=From:To:CC:Subject:Date:References:In-Reply-To:From; b=he/GMqVGAYte/DBc5Y9HnVWms3nUG47MjEe3qDIHg58FC8pTLW+Lsds2izluuSHMg +IGV3WoGSHo40168rFMpEf909bbbdYduP8tyx4AZ+JFPHb9PJxE5tEtBEDNYxMdz2Y lo2Mbjg/9UUIGrrxGxfuSUU8T2taRUhAQfKP6Af8DzuzgAtV0qSgPTzfGCQ/hf3tVq a3uJwZ98AHfV+eMFOfbh4aAXOsGPv0H5TcrQUD9cglbNLA4h84UcgONcB6prZ8z/gD Jy5yrL0Otbh6pEJ5DJKxuE3eYMfflHN0tk8McWQFqjQSWnqJInZNF9big3vT5RkGQA e833tDR3tZAEQ== Received: from o365relay-in.synopsys.com (sv2-o365relay1.synopsys.com [10.202.1.137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by mailhost.synopsys.com (Postfix) with ESMTPS id 01A72A0099; Thu, 24 Sep 2020 11:48:11 +0000 (UTC) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12lp2173.outbound.protection.outlook.com [104.47.55.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "GlobalSign Organization Validation CA - SHA256 - G3" (verified OK)) by o365relay-in.synopsys.com (Postfix) with ESMTPS id 9F189400B3; Thu, 24 Sep 2020 11:48:11 +0000 (UTC) Authentication-Results: o365relay-in.synopsys.com; dmarc=pass (p=reject dis=none) header.from=synopsys.com Authentication-Results: o365relay-in.synopsys.com; spf=pass smtp.mailfrom=gustavo@synopsys.com Authentication-Results: o365relay-in.synopsys.com; dkim=pass (1024-bit key; unprotected) header.d=synopsys.com header.i=@synopsys.com header.b="m5otKErL"; dkim-atps=neutral ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=L33lj+FM3d9/HZ16lpa0RK+Ejtcp0BJbVfgLNGr1NI+X2ent8bA2bgXqLqvDAVbIMD28nwLzqQdNscqxhNIJYkHTWX44qineF0EZaY6FXWcKrgkRLj3JbRb33tQ50QWaBMZXhoqn6BjNcUwKsflLrfJdttujizWvcDxR2pD0Rt2MHrN51Gc1DNrbGqbLViaBiwg1W4O9NcYj5i8LYnCDbq8w6OTHF4mbCkVedukNvOh3J4QPs84RhXNGvX1NmBZsfyt7Tn+rSNf8Qq3r2/Q3NXBSmTvM+jgdGOe+IDPrVf10DiNlUyPizuVm1W8fUfnXATpzkklLAlvpkHNsxzJvgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=FQ13QUA8aDIHhTv7om89kXb4bd32hGVxRzDJgnGBez8=; b=gInPBH9lX85K+M2UjzCs2YFEsYzlEptWSRR73e/g5dqvCV4JFRWXoK57pxonoOzWIjxPL7dMJ9vhwhwL64Zi6zoYmLrfTKKTXG60Fh6oyjeenKrxjY6pFL0Vgw2XHnRXsbthQqHbZdR48OQo6eKI8JGlfmEz9YADeq/9lGSZpDlSffb96G5X2EBt7gnB0WI1BZvYxr08PbOl8gFXDg8B2sYPlYIy61Wqe4hhaRhhptIzwMEuHrSUm9uKsuTXi9Fy2vdLs1HJjmmjr+9UztqzhXusgVunA4trXbXjjrKCdLTpYXZvPSFgM/IuaHx/k+eVqDm9ETUp6FCPhACm5VTZ7A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=synopsys.com; dmarc=pass action=none header.from=synopsys.com; dkim=pass header.d=synopsys.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=synopsys.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=FQ13QUA8aDIHhTv7om89kXb4bd32hGVxRzDJgnGBez8=; b=m5otKErLYDYdCpCXfSpMRdzIXLvtJmXrqE+OMTTAATKDMRpesEcU5K/KCsy7AxbPdfxUekG1PgmrR0MfA/d5oruR+RTE4WSYe0P6U/RnvyHWx/YWY5Hxa5qaQyQUIRrGsKA/94ToyL5oBSRuQyJHyTBQ64LwOK5oDFS7hqsoCbo= Received: from DM5PR12MB1276.namprd12.prod.outlook.com (2603:10b6:3:79::18) by DM6PR12MB4863.namprd12.prod.outlook.com (2603:10b6:5:1b9::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3391.19; Thu, 24 Sep 2020 11:48:10 +0000 Received: from DM5PR12MB1276.namprd12.prod.outlook.com ([fe80::742c:dafa:9df7:4f4]) by DM5PR12MB1276.namprd12.prod.outlook.com ([fe80::742c:dafa:9df7:4f4%10]) with mapi id 15.20.3391.025; Thu, 24 Sep 2020 11:48:10 +0000 X-SNPS-Relay: synopsys.com From: Gustavo Pimentel To: Jisheng Zhang , Kishon Vijay Abraham I , Lorenzo Pieralisi , Rob Herring , Bjorn Helgaas , Jingoo Han , Kukjin Kim , Krzysztof Kozlowski , Richard Zhu , Lucas Stach , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Yue Wang , Kevin Hilman , Neil Armstrong , Jerome Brunet , Martin Blumenstingl , Jesper Nilsson , Xiaowei Song , Binghui Wang , Andy Gross , Bjorn Andersson , Stanimir Varbanov , Pratyush Anand , Thierry Reding , Jonathan Hunter , Kunihiko Hayashi , Masahiro Yamada CC: "linux-omap@vger.kernel.org" , "linux-pci@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linux-samsung-soc@vger.kernel.org" , "linux-amlogic@lists.infradead.org" , "linux-arm-kernel@axis.com" , "linux-arm-msm@vger.kernel.org" , "linux-tegra@vger.kernel.org" Subject: RE: [PATCH v2 1/5] PCI: dwc: Call dma_unmap_page() before freeing the msi page Thread-Topic: [PATCH v2 1/5] PCI: dwc: Call dma_unmap_page() before freeing the msi page Thread-Index: AQHWkmNBS1PoQM0etkyQ8pvAuKHpYKl3rEpQ Date: Thu, 24 Sep 2020 11:48:09 +0000 Message-ID: References: <20200924190421.549cb8fc@xhacker.debian> <20200924190557.48fddba5@xhacker.debian> In-Reply-To: <20200924190557.48fddba5@xhacker.debian> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-dg-ref: =?us-ascii?Q?PG1ldGE+PGF0IG5tPSJib2R5LnR4dCIgcD0iYzpcdXNlcnNcZ3VzdGF2b1xh?= =?us-ascii?Q?cHBkYXRhXHJvYW1pbmdcMDlkODQ5YjYtMzJkMy00YTQwLTg1ZWUtNmI4NGJh?= =?us-ascii?Q?MjllMzViXG1zZ3NcbXNnLWNmOWY5YTI3LWZlNWItMTFlYS05OGNmLWY4OTRj?= =?us-ascii?Q?MjczODA0MlxhbWUtdGVzdFxjZjlmOWEyOS1mZTViLTExZWEtOThjZi1mODk0?= =?us-ascii?Q?YzI3MzgwNDJib2R5LnR4dCIgc3o9IjEyNzIiIHQ9IjEzMjQ1NDIxNjg3NzE3?= =?us-ascii?Q?NjQzOCIgaD0iM1FqV3h3SVVHY2hiOTlOemFFUzd1alpwdlB3PSIgaWQ9IiIg?= =?us-ascii?Q?Ymw9IjAiIGJvPSIxIiBjaT0iY0FBQUFFUkhVMVJTUlVGTkNnVUFBQlFKQUFC?= =?us-ascii?Q?MmR2ZVJhSkxXQVRQallaZXJhNGxrTStOaGw2dHJpV1FPQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUhBQUFBQ2tDQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUVBQVFBQkFBQUFOclNWM2dBQUFBQUF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BQUFBQUFBQUFBSUFBQUFBQUo0QUFB?= =?us-ascii?Q?QnpBRzRBY0FCekFGOEFiQUJwQUdNQVpRQnVBSE1BWlFCZkFIUUFaUUJ5QUcw?= =?us-ascii?Q?QVh3QnpBSFFBZFFCa0FHVUFiZ0IwQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFFQUFBQUFBQUFBQWdBQUFBQUFuZ0FBQUhZQVp3QmZBR3NBWlFC?= =?us-ascii?Q?NUFIY0Fid0J5QUdRQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBUUFBQUFB?= =?us-ascii?Q?QUFBQUNBQUFBQUFBPSIvPjwvbWV0YT4=3D?= authentication-results: synaptics.com; dkim=none (message not signed) header.d=none;synaptics.com; dmarc=none action=none header.from=synopsys.com; x-originating-ip: [89.155.14.32] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 38f1ff65-2c7b-426f-f665-08d8607fb5df x-ms-traffictypediagnostic: DM6PR12MB4863: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:530; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: CXD4tssaWcjpzLYWRprZaDWfVpjtdmJVzUvRS4qtc5royRjateZihXqaIqSYO7rcLbhAvy6TlfzB02BQyRoDBH0SDoG6OqzKzeip2gp4TXLjzWPArL1OAn5SSfaq6Y+YyNc8yI6xHlNlVc5dSpZP1qmnmd1odb62sdoJr9WfJhv39E96KIBCRqqemxBE5uWRE77gJZTlb61QeZXRn4gKb+qGBW4eiHvc0O9ERkWaKRRPq2JtMz5QPOJ/MfROCGQO4PA0MybnWgyHEa5QfP4CKgTIw2unOBfVhZ5nWFTfpMqs0URrCHrCHZZWpmZEzfakm/6Y94h5wx8KnBeiEy7L7NERVUyVDqWdEnJeQOAoU5lrX1sI3eHYUfaModlvcsSg x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM5PR12MB1276.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(39860400002)(396003)(136003)(376002)(346002)(366004)(54906003)(4326008)(186003)(8936002)(7406005)(53546011)(110136005)(83380400001)(316002)(7416002)(26005)(55016002)(2906002)(52536014)(8676002)(71200400001)(9686003)(33656002)(478600001)(66476007)(66556008)(66946007)(6506007)(66446008)(64756008)(86362001)(7696005)(5660300002)(76116006)(921003);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: OyVd+8u33uWQZG2qBXR7J4Xi1mIyw9//RkVCza2vokEOEyy7z9DzaDJ1L1ydJAGAJEZKyaGnf9PsdoiHeMXS9eOEf6ydT4SKv5j6xgD09FsyU/Dc23jaJiy9fcSfbztFUxQ3Ayp04UbHf+JCHHLe9AZkKODG4aZLeWAZ/0okYIzL9XEmYi96Ga9jkRPyF/yJowCyDT9nQH8IJoOOhwWqWeNjxveDILjovKGaqOGl0MT2k2BpzaqKPziBXR4ovPSBtTK17NSs+/CP2S9F+TiRq3dPZw4HZzqkSEal4VfI6mZ//2y0m+bcJf1XFctWa9DB722cVsz6Clq+2IZp/PATVQbSNa/zKfPqjhCnZuAgn16qdeasPddl++WXtqyjHr1Nvp0zUdU/gp869OwVk3HR6FxW3YAPTXYYE2HHZp+W6u4UdItSH2Gqswox98zreSv5xObc9MOEqxNQADG6aCwZFgOf2uIRp9W3Xan5I1u6fsY4PU471QN/2gO0/JQtAzdumRyZtQtot6RMMqvzPVhMTIs+Wn1q7P5gE7+IkcVCBJOQhDhv1O6LIpR5ZTlqrA9hqtLk9J+uxCxlp8jsX2gafx8AHyhDfu1SYFTzDb+wxDZ7lwlalaxzQzSxproI9hEalEBHwAgn7jf14dqrqINGdA== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: synopsys.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM5PR12MB1276.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 38f1ff65-2c7b-426f-f665-08d8607fb5df X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Sep 2020 11:48:09.9442 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: c33c9f88-1eb7-4099-9700-16013fd9e8aa X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: eJ0NucMsd697lcYiob46Gf1ixbJ9A2o8SMCGJ3yfqFWvMiom6IszuaOuDn/7Lu5aDtia5h1NHpmvj2I9pGc6eA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4863 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 24, 2020 at 12:5:57, Jisheng Zhang=20 wrote: > In dw_pcie_free_msi(), call dma_unmap_page() before freeing. >=20 > Signed-off-by: Jisheng Zhang > --- > drivers/pci/controller/dwc/pcie-designware-host.c | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) >=20 > diff --git a/drivers/pci/controller/dwc/pcie-designware-host.c b/drivers/= pci/controller/dwc/pcie-designware-host.c > index 9dafecba347f..0a19de946351 100644 > --- a/drivers/pci/controller/dwc/pcie-designware-host.c > +++ b/drivers/pci/controller/dwc/pcie-designware-host.c > @@ -288,8 +288,12 @@ void dw_pcie_free_msi(struct pcie_port *pp) > irq_domain_remove(pp->msi_domain); > irq_domain_remove(pp->irq_domain); > =20 > - if (pp->msi_page) > + if (pp->msi_page) { > + struct dw_pcie *pci =3D to_dw_pcie_from_pp(pp); > + struct device *dev =3D pci->dev; > + dma_unmap_page(dev, pp->msi_data, PAGE_SIZE, DMA_FROM_DEVICE); > __free_page(pp->msi_page); > + } > } > =20 > void dw_pcie_msi_init(struct pcie_port *pp) > --=20 > 2.28.0 Acked-by: Gustavo Pimentel