Received: by 10.213.65.68 with SMTP id h4csp2113182imn; Sun, 8 Apr 2018 20:03:07 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+DfvhHn6pzUDeC8saGJh28tEWYyXKNJo7O2sqk6cNda90F979r3mIXueJA6xhyTElaA/kV X-Received: by 2002:a17:902:1007:: with SMTP id b7-v6mr20259482pla.205.1523242987482; Sun, 08 Apr 2018 20:03:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523242987; cv=none; d=google.com; s=arc-20160816; b=n3YF7fZZ1eWzK/fqPRjWqifpLLDMdG3SpXN18dXQUvYuWTECThSAwTVSbC8RzaC88U 6pH+wnMZ728/d0VJytiYFgQeV1fABumyKHjEo6f2QKlUZvp+bKCduXRDMIznKKjL9uuB XGaDCvnkyGq/6ir2ld6cox7lu3VpNiRRpBf2IHft5mWf1ufo4wQPx9wBys/+Aovcdjyc Q8GCctnzyVFk7BsJ5wy56fnBVdDCs8H+1Zw0wdhmdwtLQPolc0OSHsexWlPp1FtCCmpC jGCha9GdSXzb40ggtagcXymmx8yncZ9sxExByFbaQGly6BK2QtzyPCbSfBvMBaVP0W98 cCLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=b7oU7pltBOZygvXAKvHbxgpZEobg5oLqR7ozaae1wAs=; b=EbC8oSM24FDBdXtmE64YmvltbXtwQWxt8bSmUtVTep+3n5kNrV9A7JNFLdpo/Ev4dr JP55EeGFLcwPGXMk5Rx6x7bgxXcunCyKOuDFzmyzVQBMx5GZBnpZyhC4Yf6SySJBawPQ Cra0q9cnewLPct0A90o6qA9bQsfFDDVSkhscujzVTLs2bojCIfl4IY5xqEfC5px7zcjw XpjHmKuw2HoTh0yD39xnoamWusgW9F4YRqYCiopbwCYDKsFE2qw7Uaoc2GuWHpbqamfA +REJKeVeW22bPCK6l7PqBKVbzuPeAck+C/QTdRJDPtcow7cWa0RmwS9mLds7yeXXjJ2n xzTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=CwneYLaG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s21si12068242pfi.87.2018.04.08.20.02.30; Sun, 08 Apr 2018 20:03:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=CwneYLaG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753387AbeDIASC (ORCPT + 98 others); Sun, 8 Apr 2018 20:18:02 -0400 Received: from mail-co1nam03on0107.outbound.protection.outlook.com ([104.47.40.107]:43410 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753331AbeDIAR7 (ORCPT ); Sun, 8 Apr 2018 20:17:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=b7oU7pltBOZygvXAKvHbxgpZEobg5oLqR7ozaae1wAs=; b=CwneYLaG9B/oHg6gvTnLgfkahEHEpzZL8PprNtupvIM73Vng50qKDm1ynJVbs7Veml2Cq5RPS8+NJtzphbUYY5uMUpYp29z8giL3g0SDvwnPyPoEaYDeTDHFf30xX8x3WQCFsBo4cBY8KwatFP06sBK6FZzmJ3/EXO9UQDBcImM= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB1046.namprd21.prod.outlook.com (52.132.128.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.696.0; Mon, 9 Apr 2018 00:17:53 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059%2]) with mapi id 15.20.0696.003; Mon, 9 Apr 2018 00:17:53 +0000 From: Sasha Levin To: "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: Vladimir Murzin , Russell King , Sasha Levin Subject: [PATCH AUTOSEL for 4.15 052/189] ARM: 8738/1: Disable CONFIG_DEBUG_VIRTUAL for NOMMU Thread-Topic: [PATCH AUTOSEL for 4.15 052/189] ARM: 8738/1: Disable CONFIG_DEBUG_VIRTUAL for NOMMU Thread-Index: AQHTz5gkj7QvW1DtdkOIMoTR+QG0pQ== Date: Mon, 9 Apr 2018 00:17:27 +0000 Message-ID: <20180409001637.162453-52-alexander.levin@microsoft.com> References: <20180409001637.162453-1-alexander.levin@microsoft.com> In-Reply-To: <20180409001637.162453-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR2101MB1046;7:x/HlxY6DxMbeXu8JLXPR93XhikbZcpoqT0vySE8BDzX68ExJyhBmgi91yJN3G2Zp0bmJTOYmxuIX5KoMUjxbOqP/kUthc7/+1+C6NwEOO1GXfQ5nEGLgAcvCp58GCBZcv2Uhb+mpiutco17q3B+C42q/KANsEaOSSwH490vcPtxYvNh7907qB3ycj/Ahwnav3xg6L+TF8v8vFVdc4EeNX9M/ShC4jH1N/kXtCo/R2odoFIUAgSr6P28fI9jFKfqH;20:43DeBi97kP0R7xXlWNnEAuXf5zO2VbbhVnali8RLmFfZxjSf7liTKayo3gbSmfZNFrzwbOssvf7werD0hECuSFvhk7Ikho27Ji03J0G3aB8R+RRYcDzzmyjpsrAZ80GN4O2nCm8hsF+JMF+D5ZoOJIEpH8QG1xnuKyvp6iGgTP0= X-MS-Office365-Filtering-Correlation-Id: 41f49a43-4840-4a44-51e5-08d59daf563a x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(3008032)(48565401081)(2017052603328)(7193020);SRVR:DM5PR2101MB1046; x-ms-traffictypediagnostic: DM5PR2101MB1046: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(180628864354917)(89211679590171); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040522)(2401047)(8121501046)(5005006)(3231221)(944501327)(52105095)(10201501046)(3002001)(93006095)(93001095)(6055026)(61426038)(61427038)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123560045)(20161123562045)(20161123564045)(6072148)(201708071742011);SRVR:DM5PR2101MB1046;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB1046; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39380400002)(346002)(376002)(396003)(366004)(39860400002)(199004)(189003)(36756003)(186003)(11346002)(446003)(476003)(2616005)(7736002)(5660300001)(26005)(10290500003)(478600001)(106356001)(6666003)(68736007)(10090500001)(54906003)(3846002)(59450400001)(22452003)(6116002)(86612001)(110136005)(99286004)(86362001)(72206003)(305945005)(76176011)(102836004)(6506007)(486006)(316002)(3280700002)(3660700001)(81166006)(81156014)(8676002)(2906002)(14454004)(2900100001)(97736004)(6486002)(8936002)(1076002)(6512007)(6436002)(105586002)(25786009)(4326008)(2501003)(5250100002)(53936002)(66066001)(107886003)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB1046;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: Jdy2wPl14AHVZwswVrpZaKkuNd+jLbkx/IRRw+TmFBsqfYSeExBPeDKAIKuQhqxAy05xk1LjZcgxq3N204yGE2MnMF8y3JgHbjd1Z6EE77fCJTTbXBxh66LrUbX4J4TCGQxkJqVsbYCnS8jhDbdAbV7Lcey/YxSnAhTSRxg5zmvIh0ZBl6yjG/UuM1Za0Tv5xXv6zC8bJts+plPNaA0scVmxNzffxQCKPJfN1gWYkBLRXNgjxgxZ63mbhCBMBaF0BCvns5oF/dWcegIbQzqe3euqtKiMaTsXI6XHkD+BHxb8rPG1Zzmk6w04lPWiVNxN1F3JY+bUIxSDdwmytFF9ylPdQ5mn81Ca2Xt0NbKkpn2IpLuHfP04fXFFmHuDC6uhXcuLyXghC9lXicMolig1gbTnRgcFY9wMzhTF2J5J2Yw= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 41f49a43-4840-4a44-51e5-08d59daf563a X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:17:27.1191 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB1046 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Vladimir Murzin [ Upstream commit c7780ab56c091a9ba95a3278e6e1d9c73afb5052 ] While running MPS2 platform (NOMMU) with DTB placed below PHYS_OFFSET following warning poped up: ------------[ cut here ]------------ WARNING: CPU: 0 PID: 0 at arch/arm/mm/physaddr.c:42 __virt_to_phys+0x2f/0x4= 0 virt_to_phys used for non-linear address: 00004000 (0x4000) CPU: 0 PID: 0 Comm: swapper Not tainted 4.15.0-rc1-5a31bf2-clean+ #2767 Hardware name: MPS2 (Device Tree Support) [<2100bf39>] (unwind_backtrace) from [<2100b3ff>] (show_stack+0xb/0xc) [<2100b3ff>] (show_stack) from [<2100e697>] (__warn+0x87/0xac) [<2100e697>] (__warn) from [<2100e6db>] (warn_slowpath_fmt+0x1f/0x28) [<2100e6db>] (warn_slowpath_fmt) from [<2100c603>] (__virt_to_phys+0x2f/0x4= 0) [<2100c603>] (__virt_to_phys) from [<2116a499>] (early_init_fdt_reserve_sel= f+0xd/0x24) [<2116a499>] (early_init_fdt_reserve_self) from [<2116222d>] (arm_memblock_= init+0xb5/0xf8) [<2116222d>] (arm_memblock_init) from [<21161cad>] (setup_arch+0x38b/0x50e) [<21161cad>] (setup_arch) from [<21160455>] (start_kernel+0x31/0x280) [<21160455>] (start_kernel) from [<00000000>] ( (null)) random: get_random_bytes called from init_oops_id+0x17/0x2c with crng_init= =3D0 ---[ end trace 0000000000000000 ]--- Platforms without MMU support run with 1:1 (i.e. linear) memory mapping, so disable CONFIG_DEBUG_VIRTUAL. Fixes: e377cd8221eb ("ARM: 8640/1: Add support for CONFIG_DEBUG_VIRTUAL") Signed-off-by: Vladimir Murzin Signed-off-by: Russell King Signed-off-by: Sasha Levin --- arch/arm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 51c8df561077..2c7e23e206da 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -4,7 +4,7 @@ config ARM default y select ARCH_CLOCKSOURCE_DATA select ARCH_DISCARD_MEMBLOCK if !HAVE_ARCH_PFN_VALID - select ARCH_HAS_DEBUG_VIRTUAL + select ARCH_HAS_DEBUG_VIRTUAL if MMU select ARCH_HAS_DEVMEM_IS_ALLOWED select ARCH_HAS_ELF_RANDOMIZE select ARCH_HAS_SET_MEMORY --=20 2.15.1