Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1027801pxu; Wed, 16 Dec 2020 23:42:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJzyko6t2jv2lFzY/4+lxW18WIqXQ3wGLp5kzg+g0bOP3512cUjLBKOGM4jF7wK116u9W0Zm X-Received: by 2002:a50:8744:: with SMTP id 4mr36911007edv.362.1608190931661; Wed, 16 Dec 2020 23:42:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1608190931; cv=pass; d=google.com; s=arc-20160816; b=pZ35kQ6TdxqURXsnmHP63gKTdHg173sdhqFRe2dHkMPmpvZJlE4saZAjhAeAyk4kiV HXu5c7ug15uA4ucgrrs8vMapQM0z+lGxVIZ7RXF2a4d6RYf3Sam3xRnVmEf1aW5bYC1Q dkHCt72w3hL7YZtrLEtZWQ+83Mqz1Xjo1fp0dMYIj8waP+JE2dhcN4I+fBby5yDZKA21 h3IzfTF8M+ds0XMLUuXvPyoDK+6AU2jZ8jEOirsNUaoDKHymBeDHCCcl6F3XErSdrRMl exOmwx6QmG6aBi91U8La/RovLRXlzW+SDrV6fiy5/6HGvCg208M17+7dzHlfv9ZLBWR/ VTbQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=2Dw1tQzJ+Wbf625UjgsXSCt24bQI4ZVsGB5hUjMIghQ=; b=PwKNgDOMJEv1G1kiTbCdxRrwjexT0VSeTRONMvxAqstK7E3uxh16K53o4bnhnmDjiC cZJxtwNfKva7jmHJ287NH5VEFzLc4BdNr4WJeJi5aS+3pb3oOaPjSLkeYT8TM6/ykI0B jhNAk78PT929DNi+U1WoiP/4mpz4/2pqRZwUX+4RHwrt2eBRRR7+vgUl0V0MPWlXqTxZ tynVTQeVx9wDubSAr8GghM2NqbJkUoTKXCnh2Ws+L/e/LnIF9lQnsqUu0OQ+Nv07GoEp +icIJc918OwgkGmNrrFKIY2iW7RzfURZjOryIq8E0sse71xzLo0/JyBqpRtAsX+p9/JH a9cw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=Tck9z499; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j22si3713974edh.496.2020.12.16.23.41.46; Wed, 16 Dec 2020 23:42:11 -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=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=Tck9z499; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726533AbgLQHkb (ORCPT + 99 others); Thu, 17 Dec 2020 02:40:31 -0500 Received: from mail-am6eur05on2081.outbound.protection.outlook.com ([40.107.22.81]:18624 "EHLO EUR05-AM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726503AbgLQHkb (ORCPT ); Thu, 17 Dec 2020 02:40:31 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TYlL3IBOkVsHp/3A/VMVwWI+CjPCAskZDJOgOvRTXTKgLL0EhF+dEJiHzr34Ya17HXjUMveHnaJxrrCn42p1EbNxe8FVwAmCo3CPRJz8p0ENUdP4sy5biibXoLnR7GaauwIOooX7J9DBnz/29QYpNfm6gEzWncvUWEwBcWCevV6rQaW/I/vlcwXtXnE950MBsR2026M4NzMhp79YL1ZesBAIOyQU08zgQETvuleRE9DyezXZYicS/fHGPT6NJLIZm9JkwOHFCz5e6fndyiICJYUcoTDB+92vg0fOZxrurFLblFHRXv0oACqzNh/yvmF6d0vDrcoJTrw93nPFVGQK9w== 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=2Dw1tQzJ+Wbf625UjgsXSCt24bQI4ZVsGB5hUjMIghQ=; b=I9KoDLlEGXb1kdwapJpzrX6Tt20Zva1NuO7329L+7ORF8+AW0EmM8r2OkO2Te1C028Do1QuPx541cGMcN8Gy/rF0+E/ScQdvThJBxdLnx8XvbMGA1moP13HuCuiNil1t4qk55pIB01131XoesCZmgNCCPvFSh99JYWpSxlftZiGLnMhylC/wFWL4mGibG5+ccamnobDDi+yG4Q28JSv4Xqsxs14BTzkdvaVcVxyzyyPVp1S2YgGjvKpm/+z6VS0jFeQl5Z1h+rE4mqlDpfzGWVHVWQU/erYbcFCsdUyuuJwHvQg/FDIH7cAQ7IyMJ2UdjnpnzFAkKbmHEfVGijj7tg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2Dw1tQzJ+Wbf625UjgsXSCt24bQI4ZVsGB5hUjMIghQ=; b=Tck9z499v+iHfpYmHu6rgyg7d45SSIGslXyUdoMYhBjRjzflBTBGr05WLHcjHEUo890lSuh+rHI8/I3YPK4swUWGr4EyJape+cR1svnbYisU+EzYpTSGq4wLhrJdqHyZ7WSpb+RUEb065YDZ94LeTQPaUFuwV9IA36/9c9cREo4= Authentication-Results: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=oss.nxp.com; Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) by DB6PR04MB3126.eurprd04.prod.outlook.com (2603:10a6:6:7::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.17; Thu, 17 Dec 2020 07:39:40 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::c964:9:850a:fc5]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::c964:9:850a:fc5%10]) with mapi id 15.20.3654.025; Thu, 17 Dec 2020 07:39:40 +0000 From: "Peng Fan (OSS)" To: catalin.marinas@arm.com, will@kernel.org, nsaenzjulienne@suse.de Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan Subject: [PATCH] arm64: Kconfig: select ZONE_DMA Date: Thu, 17 Dec 2020 16:08:02 +0800 Message-Id: <20201217080802.29023-1-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.28.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [119.31.174.71] X-ClientProxiedBy: SG2PR02CA0069.apcprd02.prod.outlook.com (2603:1096:4:54::33) To DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from linux-1xn6.ap.freescale.net (119.31.174.71) by SG2PR02CA0069.apcprd02.prod.outlook.com (2603:1096:4:54::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.12 via Frontend Transport; Thu, 17 Dec 2020 07:39:38 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: e86ac3e5-1d3b-4f7b-857e-08d8a25ee9db X-MS-TrafficTypeDiagnostic: DB6PR04MB3126: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4941; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5jI6NY+92o4lYCS/hlSz4vHysRBkJW4HmmOAqHwxvoETkjvRUK7VvQ1GSGjgKIZPfr+ZqMzxlxDHyk3o0cQ5uBDt1glLOSErARmi7sMD6d2vfLK+eWC8Jhsu+s6Qiw7wMXKSFr91YxOGIL8v2BsAUWSe4mFFrO5/qgcNo+NN4mmLwZPhuelQSaOy8nDeQLhiA6EOLgRl91RFOm0XZDztC5KQvb7mKYAGz+4OvwbIUKTW3kIVrMmMQ+yLOGbnjdujQTG14GpYgPru/13Me3OuOQXH0yGvYixor24bxBPpn+6nHzoYmQ9ixA9hluyKJ3LVC9js+dobl6lOwkbxdk4o7g== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB6PR0402MB2760.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(136003)(396003)(346002)(39860400002)(376002)(2906002)(4326008)(2616005)(26005)(316002)(1076003)(52116002)(6666004)(6486002)(66476007)(66946007)(956004)(83380400001)(66556008)(86362001)(8676002)(478600001)(6512007)(186003)(8936002)(4744005)(16526019)(6506007)(5660300002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?e5W/+S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gg5kNSFeQs4kJUmU?= =?us-ascii?Q?Ez0/aRmYXcqL3LIqB2JQw8E1K2Yo0KMh4RYuEcNzdkJ5lBAnmyhZchdxrRyF?= =?us-ascii?Q?uMDc8E2cQOTLabQRhOWuR8gBG663fXpppmoOugAtgMcopHg0LaPxgF5gxQ8S?= =?us-ascii?Q?bvoi?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Dec 2020 07:39:40.6738 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-Network-Message-Id: e86ac3e5-1d3b-4f7b-857e-08d8a25ee9db X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: /QqTZcJ/KjQY36/T+lAiXpA+sqFdHPOqe2V/kFfApJCTPdu66ES7AxNaK3pfWAB3kemBD2fPwalaa7/OzcgSiw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR04MB3126 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Peng Fan ZONE_DMA should not be disabled, otherwise arm64_dma_phys_limit is left uninitialized and cause swiotlb have IO TLB above 4GB which might crash some platforms Signed-off-by: Peng Fan --- Not sure whether need to address code to initialize the variables or force select ZONE_DMA arch/arm64/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 33446269f692..377b391a41d6 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -206,6 +206,7 @@ config ARM64 select SWIOTLB select SYSCTL_EXCEPTION_TRACE select THREAD_INFO_IN_TASK + select ZONE_DMA help ARM 64-bit (AArch64) Linux support. -- 2.28.0