Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3461937pxb; Mon, 25 Jan 2021 17:34:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJxXhMHCCrEHTgKCkRBIQddU0kwOXHonCBtrrP8A4E/BxxkeZ8SCduCZk70gCmqY6QhFKE1T X-Received: by 2002:a17:907:1010:: with SMTP id ox16mr1915619ejb.467.1611624846751; Mon, 25 Jan 2021 17:34:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611624846; cv=none; d=google.com; s=arc-20160816; b=Xg2VN3amnuCDJLLLdFtFs8Rf1K/CJCuxq+pTfoq7LE6GJ8pRODR3TZaf0xb6wm9cc5 LuNBce2zaBaIi5PlsLk9sQLxFv+vhy9A7VPNYCMOdbhQUcscv7gfY46T4qY08fHhPBdN acKlB6iB4sBgsTeVeV+EgW9SpUXt70cT90ks1lR4Img8Sck88zCUA85HTv1jSYNpTwBM 8U98rQpz1PlCF/vrLo9UVtKea5weyLjxhdBaGtVdqEIXyZi3Ud7a1UTuypf/KMLgDYkq vVDk9lOkTn6fn/lEg+BXZjZi04hAIqOBmoKTvXYGEpbyYeH/16OAYzaU8fFLHCYfPJAl ZXZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=H1lt6BqMznE4SchYbIuclVKLnxqPlbAP3RCfbMs7uhI=; b=TOsGDY4GU4WRHpTJdxb1Q/rq13MfGEDErQVfT1CdncSbcxcj4E6ImB6wvvx943cqg6 fQ9gTwny07Xe13BT0Xk9eYSZI+wWz9XZ7zHbuGmxM28oPxq3WX3Iz5Ca0ulcSO6oAPOr 78iRMJuqqLXLoDscaCMFEuoEL0xJXeHDYaRE6dW8CZbV56nAbrffDuUkJ0xdy+kbnn0k iLUJDlodMzglvEOSdDYtWZQ7SRCu0pLVLlA/GEfM6GAXvzQoRFkTIon+P9zTkljNYMn2 gayZ5b1YpocLp/ypBSkImr31ooMrahBsnKCMjp/QbXM9XgEkP/CjloXY7BwMW08IZACs ClRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=qkQ95WmU; 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=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hq38si6141371ejc.21.2021.01.25.17.33.42; Mon, 25 Jan 2021 17:34:06 -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=@alien8.de header.s=dkim header.b=qkQ95WmU; 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=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729895AbhAYPbh (ORCPT + 99 others); Mon, 25 Jan 2021 10:31:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729894AbhAYO75 (ORCPT ); Mon, 25 Jan 2021 09:59:57 -0500 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71AB0C0613D6 for ; Mon, 25 Jan 2021 06:59:13 -0800 (PST) Received: from zn.tnic (p200300ec2f09db0095810f165069682a.dip0.t-ipconnect.de [IPv6:2003:ec:2f09:db00:9581:f16:5069:682a]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 0A2241EC0572; Mon, 25 Jan 2021 15:59:12 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1611586752; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=H1lt6BqMznE4SchYbIuclVKLnxqPlbAP3RCfbMs7uhI=; b=qkQ95WmU512S2Kp3vzvVX+I6j4AOlTi4F+EKMdsp3Ox4mkTGc0uTIaG3oGNOfzBTrpLxbp HK0CUC54QGmIcz7qBJHP7sbkC7nlfrTRrx8P7CABfM5xOuIH4bkJvGwb7y6C9u82swJSUN rAt0uH8NiwP0Fyl9a5ONCsPv62rHziU= Date: Mon, 25 Jan 2021 15:59:11 +0100 From: Borislav Petkov To: Mike Rapoport Cc: Andrew Morton , Andrea Arcangeli , Baoquan He , David Hildenbrand , "H. Peter Anvin" , Ingo Molnar , Mel Gorman , Michal Hocko , Mike Rapoport , Qian Cai , Thomas Gleixner , Vlastimil Babka , linux-kernel@vger.kernel.org, linux-mm@kvack.org, x86@kernel.org Subject: Re: [PATCH 1/2] x86/setup: consolidate early memory reservations Message-ID: <20210125145911.GF23070@zn.tnic> References: <20210115083255.12744-1-rppt@kernel.org> <20210115083255.12744-2-rppt@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210115083255.12744-2-rppt@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 15, 2021 at 10:32:54AM +0200, Mike Rapoport wrote: > + trim_low_memory_range(); Btw, you can get rid of that one too: /* * Here we put platform-specific memory range workarounds, i.e. * memory known to be corrupt or otherwise in need to be reserved on * specific platforms. * * If this gets used more widely it could use a real dispatch mechanism. */ static void __init trim_platform_memory_ranges(void) { trim_snb_memory(); } yeah, yeah, we can do a real dispatch mechanism but we didn't need one since 2012 so I guess we can get rid of trim_platform_memory_ranges() and call trim_snb_memory() directly and simplify it even more. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette