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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A6A7EC636D4 for ; Thu, 2 Feb 2023 17:43:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232403AbjBBRnI (ORCPT ); Thu, 2 Feb 2023 12:43:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231905AbjBBRnB (ORCPT ); Thu, 2 Feb 2023 12:43:01 -0500 Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on2057.outbound.protection.outlook.com [40.107.15.57]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2175DA24F; Thu, 2 Feb 2023 09:42:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=H78EPL4AX+loWjRC5dcDg/Iv/dUlaXpTMdRtqA0l2LrIKuDV9eQM38hLrVDpu+tGHdFJLhe8ljbJKntcinKQ+GQbXa47GUCo0RC6lieTydiVWbAhz4KiHj2Bo/fRrpXh4+fNLeWZhsFIEojXkaY28yypMwKEpD2IF1yLWVOZ/lR3tnP+L1qCVFQnnRWFUVyY0imnTzJz1FdiUeBC4ypIazg6Y75dXUl2BLSv89OY9YvrM9anWm8eR28Rr3UXwxAaHKPLnZGNzqIiUzvtKwdtLx+nrFYy1+qyMbewTkLjFy0CFdZu3XfkBCqqPUROtie2NVoWcuSBv/HXsRf57TbI0A== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=/8gzlcRAvxmbphFlMAB6u1Vc07bQ3sAVGCAcF3oREVI=; b=iOEBncqOPaeqK+G0fNwB7hvNaaS4Rj+JzlhZ0+gHNMi8gzOO3QHRt43t5zwB7X+N8QXHkAAof213Z8TNyWrKQiwIKAokqanIWvDAzyKZnwkLAeAYvG9VxaeGEvzPXMSarKTmYjEwJLc6PmzHvwE5bae1Sq8AzDyW5I0xlhq8Qm7sRYo72SCGXZZ9VTLUrXCiZas58MaUivOmgPwAlLjww0Eze85VVqf7XpCZLmW2R+1Zy7/BccQ4V3phkBhq/YawZWfM0vKUEPrH9DPZ/o8gipDd4eDmgxK023MQbfR2TIRwVpYs1ZVARKeJiukYU09g2W7zUKctVX7dIrUO0Y3oZw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/8gzlcRAvxmbphFlMAB6u1Vc07bQ3sAVGCAcF3oREVI=; b=Y7JDw0ARWGNxJRg+OOR8Ij6sBRibWvlWMdLoXbaH7wFDNmfXIygxEiTkWC597KBi3A6Lv/a+G1t3CqOd2AQ/1Im3YbRIMgAhInwAuG38uDLeY7yCy2yDQ7hn0BoDiEEpQYao6hg9DKB2xYJDbjT+9cBuiCj5zrZR+BzCe/LRBXE= Received: from HE1PR0401MB2331.eurprd04.prod.outlook.com (2603:10a6:3:24::22) by AM7PR04MB7159.eurprd04.prod.outlook.com (2603:10a6:20b:111::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.30; Thu, 2 Feb 2023 17:42:55 +0000 Received: from HE1PR0401MB2331.eurprd04.prod.outlook.com ([fe80::ca48:3816:f0b6:3fcd]) by HE1PR0401MB2331.eurprd04.prod.outlook.com ([fe80::ca48:3816:f0b6:3fcd%6]) with mapi id 15.20.6043.038; Thu, 2 Feb 2023 17:42:55 +0000 From: Frank Li To: "M.H. Lian" , Mingkai Hu , Roy Zang , Lorenzo Pieralisi , Rob Herring , =?iso-8859-2?Q?Krzysztof_Wilczy=F1ski?= , Bjorn Helgaas , "open list:PCI DRIVER FOR FREESCALE LAYERSCAPE" , "open list:PCI DRIVER FOR FREESCALE LAYERSCAPE" , "moderated list:PCI DRIVER FOR FREESCALE LAYERSCAPE" , open list CC: "imx@lists.linux.dev" Subject: RE: [PATCH 1/1] PCI: layerscape: Set 64-bit DMA mask Thread-Topic: [PATCH 1/1] PCI: layerscape: Set 64-bit DMA mask Thread-Index: AQHZJr0yaCK3pFdB6EKPvZEvJoExp668Dfrg Date: Thu, 2 Feb 2023 17:42:55 +0000 Message-ID: References: <20230112193621.1513505-1-Frank.Li@nxp.com> In-Reply-To: <20230112193621.1513505-1-Frank.Li@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: HE1PR0401MB2331:EE_|AM7PR04MB7159:EE_ x-ms-office365-filtering-correlation-id: 2c50bda0-0cfe-486b-f052-08db0544ea65 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: szHwT/uPoHvGui+gxZEoehVbJbCIOXpEK/fpnkPQ4SWz9glPV33Shw3ait6+ImqfESQ4MUF6UVRggzo18sFw4AUSgNCrb3KXnvLEDb3Ih4M2zV3gd3CnQr/8jNki7ug2s+P1gBtAA+dNw7fC/F5/gP/yoXao+SSKXxb81d4fSfeyA+QGk+OVvYA3Uv1eWuvdPXSE7WcYxrw5hca5Io6Oz4dfGnKJzs9REyxpL6rn8tu1KcwrTXG/IHlAgyVwUy04YP851WgvB5gSuFmeWu6L+hvVyr1Jtn11vW09GbxE+BXcaSAShCKFtGfhQsR+nKwUm6ls0mDpaw3MgP2UoY1OVYqI2y86xo4uXCK9BRuDFYE8rnN/AYMdu9upP4vNHdr0aEOy+HPmcotZySKFMWhMp7p4DpBk7/CBf4lA8T8JlBlgC9h9W4r5orKX7yJfhwc0InlvWSu3/bO77UVevDQsS24DmIbZdPbK38RNR8RiCSFUvwHbTbQ/TOKafhRcUWJvtndg+45JbDmB+PSeQot+QiE4T6NN9qow+uNoV/Tq1IOubQ+Br38RIjLd+fCWxexNtPgmK6xOOzyj431G23bPA4IauLeUliokR2b6wKqPPKkoCwTgOHi3ToXCM4ZZb/3tVyCpquJzb/D9cbStj8ubAJbVZe3NWaN70QY5BK7xle0E8jYT3//osCPcZNwPfBjEgfoD54/yolbPQv8X9JCXyM2qUQchBiyng36vHXzdSRs= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:HE1PR0401MB2331.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(4636009)(136003)(396003)(346002)(39860400002)(366004)(376002)(451199018)(66446008)(4326008)(76116006)(41300700001)(66556008)(8936002)(8676002)(64756008)(5660300002)(38070700005)(6506007)(55236004)(26005)(122000001)(66946007)(9686003)(66476007)(33656002)(2906002)(186003)(110136005)(52536014)(38100700002)(478600001)(44832011)(86362001)(921005)(55016003)(7696005)(71200400001)(316002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-2?Q?Aow7ihOqe+cXhjKFMhEoWLfQ99cln/oDX1dvKnkp7qCxlQEt4GPDPTeLvT?= =?iso-8859-2?Q?u4JqOHe4SWQFNeEy5icjdWCXIGzhY4VFeShCR5kqvh8G8/o9G6oVShXUAc?= =?iso-8859-2?Q?+fL1MFiFTmH5Z6LbM3LUjVK6LzRgPLA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Q?XipAXNz8uBpRTKD+VCIPZdZ4JgetQ45kHEVXoE0Z0yPKITPN5knuLqhpEQ?= =?iso-8859-2?Q?wEPoiwNvpaTOQ6G53koZB4HoaLPZ9LJjbrxXjhHizO371UrpnxnHn8ddf7?= =?iso-8859-2?Q?QXSzA7y0KvYtjvaEm2aO7+fMHkY2CUh2J9GhMLZdYyJFmkSnIGNpeSqRgX?= =?iso-8859-2?Q?qk4oUzUKiCBMdqgUP/ZiHC5imhTCJ/mcsARQRofQ17fOFO/FaN27TN+O+e?= =?iso-8859-2?Q?xZc7Xx9AVksXRvu/+qVS4uLX92HNGK0eOBfyWKmTNxxlZTppOeQY4rABtH?= =?iso-8859-2?Q?Ln7QI3UHGJD/o/Aj+/ztPjVpsgpcGwM+GRpODZ0OrSwyqJYHEamry0vqmW?= =?iso-8859-2?Q?gCmj1M16C2FLcrzAshcKqZhosDsrvbLe1b3kLuhFB14kQwS9qKAnA3EkGv?= =?iso-8859-2?Q?vxb2MOzydNx5U/IWMtehF+0kkfSBFSeS3GTOCilgmhA7FZTZSYXaKkRijb?= =?iso-8859-2?Q?vCrTcjKwr55T3Olj1Gs1YhEeBHeJaLs0Lu9sIEFhUw3ejrJpjoAADN3Wcb?= =?iso-8859-2?Q?I8msL+P6H9SYBoHh6UEhAc5UvvDAo2L+Zx0mgw9PAVM350T15mbMnU2hYi?= =?iso-8859-2?Q?czjxWzhCGgUvE=3D?= Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: HE1PR0401MB2331.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2c50bda0-0cfe-486b-f052-08db0544ea65 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Feb 2023 17:42:55.1208 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: kcExfFeGB51V80zXm8Wr4bHlNqkyu7cp7QAlXU9L2E/ZbEdVsJVQjgCF+MBQs+DIiA5dbxMYQPWWopOAApRU7A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR04MB7159 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Subject: [PATCH 1/1] PCI: layerscape: Set 64-bit DMA mask >=20 > From: Guanhua Gao >=20 > Set DMA mask and coherent DMA mask to enable 64-bit addressing. >=20 > Signed-off-by: Guanhua Gao > Signed-off-by: Hou Zhiqiang > Signed-off-by: Frank Li > --- Ping > drivers/pci/controller/dwc/pci-layerscape-ep.c | 4 ++++ > 1 file changed, 4 insertions(+) >=20 > diff --git a/drivers/pci/controller/dwc/pci-layerscape-ep.c > b/drivers/pci/controller/dwc/pci-layerscape-ep.c > index 1b884854c18e..c19e7ec58b05 100644 > --- a/drivers/pci/controller/dwc/pci-layerscape-ep.c > +++ b/drivers/pci/controller/dwc/pci-layerscape-ep.c > @@ -261,6 +261,10 @@ static int __init ls_pcie_ep_probe(struct > platform_device *pdev) > pcie->max_width =3D (dw_pcie_readw_dbi(pci, PCIE_LINK_CAP) >> > MAX_LINK_W_SHIFT) & MAX_LINK_W_MASK; >=20 > + /* set 64-bit DMA mask and coherent DMA mask */ > + if (dma_set_mask_and_coherent(dev, DMA_BIT_MASK(64))) > + dev_warn(dev, "Failed to set 64-bit DMA mask.\n"); > + > platform_set_drvdata(pdev, pcie); >=20 > ret =3D dw_pcie_ep_init(&pci->ep); > -- > 2.34.1