Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp895912yba; Thu, 18 Apr 2019 11:22:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqwUKa31lbZkaZkXFveMWP1hkoL22oahnRbDOm4daKwEWE1WyHYCitems8kNLxU8VefmdtPJ X-Received: by 2002:a62:61c2:: with SMTP id v185mr98294924pfb.117.1555611763518; Thu, 18 Apr 2019 11:22:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555611763; cv=none; d=google.com; s=arc-20160816; b=NShEqYcHfS7lEexDv1rMRio5kmOH8Da1ZdSqh4TzKO+DwzAH/4faXbwGcTKTQkkh+/ TMOZ6k2erADmwmFlU+5XEz39B3M9dJhlZGB4ASt6MrPrN8Uxt47QnU0MBAby6arDnmez 3bn/Kcsr++YCNfME1Esp5kjTQ2why1tILD4MfHTWs3puvG/vAhlQ2dUGYMUQkaXqHJUV 2AFPgvni4vHzIPcijvc2meEWvhk25ICnxkeBPjOOkPFD1+41GDogUeFquBupOEw4PUhe kEKzc15jMuBoGcNNQwCXejOWVpY1pbTozxjl5ga6v9j02dDghq2vumtNZ+GV+8ZexWmw LeHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=KTY7ZnRL5HIjfk4WZ2EjrAB5DWfiMMAW+kjQ8gIEW6w=; b=xNRu+052IB0kz+DC3yxJy7q2t11ScdZTFOUEg69fQJKS2APxMKuGsX8Sv6AHDlq8DW vkLj25Ns7s0Jh+kESLeIKMQiaycR6VkpQDkGkaPlAw5JzjNyOnOCsipV7t7kFVv6MxlC zOnxMci1+L/ICDnrT5tw4sQaf6vUhF2TK+R5BWpjVf7xvuucEAPkRB9W8YR6xsbPaJ/e NP7SyEi5cDUiqh/ukDyYu3u9+BVutZvRFRibFYNnLItjZdmUbDu8rfBU2fvXgJwgtNue EozIFn3lXjrp/lYngIAfeL8qX4oCznLJXI6v4wruuohSsS2ikWnfcLlspyXaVKDoPgSm FkSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2g74nOEF; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 61si2729244plq.2.2019.04.18.11.22.28; Thu, 18 Apr 2019 11:22:43 -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=@kernel.org header.s=default header.b=2g74nOEF; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391830AbfDRSUt (ORCPT + 99 others); Thu, 18 Apr 2019 14:20:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:39554 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391212AbfDRSIW (ORCPT ); Thu, 18 Apr 2019 14:08:22 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 98DFA2186A; Thu, 18 Apr 2019 18:08:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555610902; bh=ZIyGuThsbVKGaQNbGgxjt4Jx+6Beoi4C6pE0ktsuEZQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2g74nOEFpYi96rysuloP8rZYeTDRIdkE0sUUFzP3W0FTfaR/KS4Dhc3K5NTQT5/yN 36MylwiNKGOhvCww+DxuxuyAL2tERPi8CVyDlI8VmOnLEf6Gx26Nikt7kZl1Audvnb TDNVznSNmhrHYYmhZMt94CGn6JdtljwK07ROtKpA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Bartlomiej Zolnierkiewicz , Krzysztof Kozlowski , Sasha Levin Subject: [PATCH 4.9 35/50] ARM: samsung: Limit SAMSUNG_PM_CHECK config option to non-Exynos platforms Date: Thu, 18 Apr 2019 19:57:46 +0200 Message-Id: <20190418160426.918588431@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190418160422.455656724@linuxfoundation.org> References: <20190418160422.455656724@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit 6862fdf2201ab67cd962dbf0643d37db909f4860 ] "S3C2410 PM Suspend Memory CRC" feature (controlled by SAMSUNG_PM_CHECK config option) is incompatible with highmem (uses phys_to_virt() instead of proper mapping) which is used by the majority of Exynos boards. The issue manifests itself in OOPS on affected boards, i.e. on Odroid-U3 I got the following one: Unable to handle kernel paging request at virtual address f0000000 pgd = 1c0f9bb4 [f0000000] *pgd=00000000 Internal error: Oops: 5 [#1] PREEMPT SMP ARM [] (crc32_le) from [] (s3c_pm_makecheck+0x34/0x54) [] (s3c_pm_makecheck) from [] (s3c_pm_run_res+0x74/0x8c) [] (s3c_pm_run_res) from [] (s3c_pm_run_res+0x44/0x8c) [] (s3c_pm_run_res) from [] (exynos_suspend_enter+0x64/0x148) [] (exynos_suspend_enter) from [] (suspend_devices_and_enter+0x9ec/0xe74) [] (suspend_devices_and_enter) from [] (pm_suspend+0x770/0xc04) [] (pm_suspend) from [] (state_store+0x6c/0xcc) [] (state_store) from [] (kobj_attr_store+0x14/0x20) [] (kobj_attr_store) from [] (sysfs_kf_write+0x4c/0x50) [] (sysfs_kf_write) from [] (kernfs_fop_write+0xfc/0x1e4) [] (kernfs_fop_write) from [] (__vfs_write+0x2c/0x140) [] (__vfs_write) from [] (vfs_write+0xa4/0x160) [] (vfs_write) from [] (ksys_write+0x40/0x8c) [] (ksys_write) from [] (ret_fast_syscall+0x0/0x28) Add PLAT_S3C24XX, ARCH_S3C64XX and ARCH_S5PV210 dependencies to SAMSUNG_PM_CHECK config option to hide it on Exynos platforms. Signed-off-by: Bartlomiej Zolnierkiewicz Signed-off-by: Krzysztof Kozlowski Signed-off-by: Sasha Levin --- arch/arm/plat-samsung/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/plat-samsung/Kconfig b/arch/arm/plat-samsung/Kconfig index e8229b9fee4a..3265b8f86069 100644 --- a/arch/arm/plat-samsung/Kconfig +++ b/arch/arm/plat-samsung/Kconfig @@ -258,7 +258,7 @@ config S3C_PM_DEBUG_LED_SMDK config SAMSUNG_PM_CHECK bool "S3C2410 PM Suspend Memory CRC" - depends on PM + depends on PM && (PLAT_S3C24XX || ARCH_S3C64XX || ARCH_S5PV210) select CRC32 help Enable the PM code's memory area checksum over sleep. This option -- 2.19.1