Received: by 2002:a17:90a:88:0:0:0:0 with SMTP id a8csp11156pja; Fri, 22 Nov 2019 02:46:24 -0800 (PST) X-Google-Smtp-Source: APXvYqy48ggpQcxfASYVhNs7ogQDYPx6YN7Fit5J6k6ZdUPHVoCBc5ek4/gLaMyCJWT3yXgcUeNW X-Received: by 2002:a50:fc8e:: with SMTP id f14mr232684edq.83.1574419583935; Fri, 22 Nov 2019 02:46:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574419583; cv=none; d=google.com; s=arc-20160816; b=iKQERU1w70A9CjtSyZAtf9+e8LnsOULIqi/v/9agwnI8YyYhsNIJIol+5KxFEDicql WQHfbIIe5Ecrgjs4mf4V5xxlnT591ly9DU2MZOyfxxaO47+/vSOml42vXYL1Otjq+RRS G5s2XSeRoC4CEy5VtNdZPTAYAYbRWw/s5A7ufn05mGq2sdHNMw1U74lUJ/XSUa5qEHfv rQ0t4sJLLzGN4JnzZjig/L8GquqrlUjOw5+39mfb1gdgDTP5FoI71sfMFyMRigihnQ2b AlLT5jpXjRiK+DG+WQnmFM2jLhoobJ7YLargbBHUmRiv8oTMgPEepoYrtb5LY8JELm13 QDCA== 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=ZsQsgmt7aEmrj/BFQCqfX/eLoGnbRHTC1L+AWMEss3w=; b=yDBazJGzxcI3jFPXg780ZzgL5nwQeOEi9NqkPd2jMiPycbFqrEU67HEo4yr6cpzsL/ o+ZB81n741wKnfUo04CiHZ/dtzxV1gi0qEBd/KFPc3UIJS7P4AtTjYHfSuLzUZdkoVRN ZH2oiaxKFkizIP3vC7UZFF6RjP4RN1No2aOYCmL6OedGeSy9RpYCSYw04WMPG18sRh7s c0MjHDl5KYnNWjvhebilFI/0BNUriBkFQ/TIIaknXFlJVpuRdXtLuK5sMqGvCXakA7dk biA2+kGJxiz6cZGj22NtfyVxdKItkdUnI6WGjj9ZkaAoi1BMmBxLFYw5IqjGVuDCbvOY KYvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ES5ZNT4Z; 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 m33si4364128edc.126.2019.11.22.02.45.59; Fri, 22 Nov 2019 02:46:23 -0800 (PST) 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=ES5ZNT4Z; 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 S1727454AbfKVKn6 (ORCPT + 99 others); Fri, 22 Nov 2019 05:43:58 -0500 Received: from mail.kernel.org ([198.145.29.99]:49536 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727952AbfKVKnu (ORCPT ); Fri, 22 Nov 2019 05:43:50 -0500 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 ADF9A20656; Fri, 22 Nov 2019 10:43:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574419430; bh=8DD4osZh3pqSw/v3Z8lBeKCbS7/Ml7qR65jLNRSZyrc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ES5ZNT4Z6zwqxT1uNQfiWD0Kp9LnhUldJj2B8ZFcsW0c+b8RPAddcXTUWbsWvrnVp SPA+4txjuz84NaITyiKurWDQA7xz1spVprtSnx5a+VzSapiNT6umH8oWKni0+mfhX0 T1cgGYL7gXhZmXByjyIq3SC9JAn9Fab2B66sDlus= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Rachel Mozes , Dengcheng Zhu , Paul Burton , pburton@wavecomp.com, ralf@linux-mips.org, linux-mips@linux-mips.org, Sasha Levin Subject: [PATCH 4.9 108/222] MIPS: kexec: Relax memory restriction Date: Fri, 22 Nov 2019 11:27:28 +0100 Message-Id: <20191122100911.088070869@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191122100830.874290814@linuxfoundation.org> References: <20191122100830.874290814@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 From: Dengcheng Zhu [ Upstream commit a6da4d6fdf8bd512c98d3ac7f1d16bc4bb282919 ] We can rely on the system kernel and the dump capture kernel themselves in memory usage. Being restrictive with 512MB limit may cause kexec tool failure on some platforms. Tested-by: Rachel Mozes Reported-by: Rachel Mozes Signed-off-by: Dengcheng Zhu Signed-off-by: Paul Burton Patchwork: https://patchwork.linux-mips.org/patch/20568/ Cc: pburton@wavecomp.com Cc: ralf@linux-mips.org Cc: linux-mips@linux-mips.org Signed-off-by: Sasha Levin --- arch/mips/include/asm/kexec.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/mips/include/asm/kexec.h b/arch/mips/include/asm/kexec.h index 493a3cc7c39ad..cfdbe66575f4d 100644 --- a/arch/mips/include/asm/kexec.h +++ b/arch/mips/include/asm/kexec.h @@ -12,11 +12,11 @@ #include /* Maximum physical address we can use pages from */ -#define KEXEC_SOURCE_MEMORY_LIMIT (0x20000000) +#define KEXEC_SOURCE_MEMORY_LIMIT (-1UL) /* Maximum address we can reach in physical address mode */ -#define KEXEC_DESTINATION_MEMORY_LIMIT (0x20000000) +#define KEXEC_DESTINATION_MEMORY_LIMIT (-1UL) /* Maximum address we can use for the control code buffer */ -#define KEXEC_CONTROL_MEMORY_LIMIT (0x20000000) +#define KEXEC_CONTROL_MEMORY_LIMIT (-1UL) /* Reserve 3*4096 bytes for board-specific info */ #define KEXEC_CONTROL_PAGE_SIZE (4096 + 3*4096) -- 2.20.1