Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp2080717ybb; Fri, 29 Mar 2019 18:32:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqwwqdTUXRt8hgkd5ro6NjU64JdWjQ9FvGE1aeKT5+AJE5qN6jc8aUR01hrW9NMbcFINk28p X-Received: by 2002:a17:902:8f92:: with SMTP id z18mr43667151plo.123.1553909542808; Fri, 29 Mar 2019 18:32:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553909542; cv=none; d=google.com; s=arc-20160816; b=bcmw9lTrvWCZD8QDveeJJ9heB+qp91zJGOmDOytTqNeNkC1rOMXuIfU3nZq9veZk3I vGEGLqEBzB0rnKgS20C89rn5W2Y+OMhNY7nh7rwOuGavIugUctNxTXK4m3o4vvFaE1Kf tvJbfZ6aceGVjkYVHaBL51e78yRJH1GMvEoMa8QQeAZGmRSISYPloEO7hvHFFLeXFPVB RCclukYDjFFJKVicVXkCVHX5qO2UejId5BAnOKrHIBXnAGIUvoIUsR3XCCZf4HI+yh92 M+6fPd0jqXIovBMy+UI5cbRn+ATdQoXzdq8Z0a7W5os7xszfdH4jag+jB6nmK/v7TjcM Xo4Q== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=9iIq+EaOAbecQt9LvKNSn0kscoBWxvqm1WSTlA4IfvQ=; b=zeTVKBd72vgjAv1V3UP0W2QtVa8KVhZFDTbAMedksJZPdfRE+Z0rE7ms5YU4lX6SWf Qnsm+b0wE/yqmy5Uk18P3xaVgpCl3O/5dhVufem6wTX0D9YuMo5BLla0WqxblT8Dr3Vz TObXZ1TsOAa3JbvA1Rpz0FUClc0SYCjncQZKumaRKgey7vk5fj6nyQ4rzEpBHiNOsZ7t iT3o3XylmR77IVYbR8fj44tCFkGvsaWAdG6ekLcbkfLif3XjpXKtsPo7j9XpStQb1C1/ +B8rEXLLmdZ4DUQ8BK8rTyb0UVzHT6hpJvXr9xJn1qwIbMmlp9rh8KDPNnPZdnY17ZOv A3yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WbtGI180; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c144si3347460pfc.5.2019.03.29.18.32.07; Fri, 29 Mar 2019 18:32:22 -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=WbtGI180; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731771AbfC3Bax (ORCPT + 99 others); Fri, 29 Mar 2019 21:30:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:38092 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730764AbfC3Bau (ORCPT ); Fri, 29 Mar 2019 21:30:50 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D7BCE218D3; Sat, 30 Mar 2019 01:30:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553909449; bh=cyapoTQDqIbhvkK8TArTFoumqsvHdI0Co+7aTOsBap4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WbtGI180Ovh+stY+pQX5wLHaJABCvdZH2uBqPHIqKp1BxD0zQ9BgAeNhYEw4U1F8x 2g4SOQ5eS8paAsBdJhJXsWp0jpuZ3d2R0/TvY91y8edZUqowySrMLldJXCVfN1KPKE VkiS/0RudIpSnrDsqnOti73Ew/Em8zS1iqejOnv4= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Bartlomiej Zolnierkiewicz , Krzysztof Kozlowski , Sasha Levin Subject: [PATCH AUTOSEL 4.14 11/37] ARM: samsung: Limit SAMSUNG_PM_CHECK config option to non-Exynos platforms Date: Fri, 29 Mar 2019 21:29:54 -0400 Message-Id: <20190330013020.379-11-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190330013020.379-1-sashal@kernel.org> References: <20190330013020.379-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bartlomiej Zolnierkiewicz [ 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