Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp486945imu; Fri, 4 Jan 2019 01:20:28 -0800 (PST) X-Google-Smtp-Source: ALg8bN6kxQnsVVFvWamq8Pmzc0A3rw1TMLdx4imFEWYsTk1blmN/4ISj+xq+rqEHztQ8n81v/IAe X-Received: by 2002:a65:63d3:: with SMTP id n19mr993647pgv.179.1546593628116; Fri, 04 Jan 2019 01:20:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546593628; cv=none; d=google.com; s=arc-20160816; b=HJvFv0R/VYqWjXtNt+jOyytkjGru9X5EhBMA4as+4HKeKfhpYiNDGpcz0JNGMOCDyD Ca9bW0m69sv8VafD3bH4ubojIGmY1Lj6ifrUd/a3vhqfhVWUdEMWXiJKJdwVyEeSM3X4 YibkeRUncmHWPEyLubeMSUnYjKJMouHfWQHeqncel7sLSMrXJCPDRE9v489sn0fk2S6M KzWtiVjSLUZP1VafoWS4SLPrXnEh8a24Vj6KVB9mk2f+teDUoB8fC4CO0b0rfTsA4d9T GlYiXUYXA0UfW++lABLDb/E+LdAaaO5fnqnaOvqBUjn9EfdAPNNYXR+ANJaIXR9WnPfB iGRg== 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 :content-language:mime-version:user-agent:date:message-id:cc:to :subject:from; bh=J44VTGibV2cFsjX2U02ybHHXB23dLPi5IAYfD3pBVoE=; b=0Ly+rH1twbem5P9nG2zrkSmVn5/jFFG9DAKGcg59p2qaBAL+tu890n88/R8Kf5+9SF J0qhzjvd4Ha/hNFCwUAt1FL1XjiR6064dltGOhzsKf+f8EWD4bDoYJTTyaCUtE4/5Z3X NkGrIPK3RiKALACa5jzLZmzIZwuXakFdyLdj9LjwCyFR7DzEz5BeAfy+wmZq6Wde/Jv/ scKTzGpqxJk0Q47FIsZhmVrZKf1J29nvcFGkrm3vBXUA2NA4TINhA//XFuRelEC+6/Ai 0IhlcPMKeopfw9kyysoX5L/vd2StKxRJjGF4UmdYG6FIilZ4jUgW2uDoSS43KyQsj4vA 47/A== ARC-Authentication-Results: i=1; mx.google.com; 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 l123si56419003pfc.187.2019.01.04.01.20.08; Fri, 04 Jan 2019 01:20:28 -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; 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 S1726428AbfADHfJ (ORCPT + 99 others); Fri, 4 Jan 2019 02:35:09 -0500 Received: from mail.cn.fujitsu.com ([183.91.158.132]:39120 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726036AbfADHfI (ORCPT ); Fri, 4 Jan 2019 02:35:08 -0500 X-IronPort-AV: E=Sophos;i="5.56,437,1539619200"; d="scan'208";a="51268127" Received: from unknown (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 04 Jan 2019 15:35:06 +0800 Received: from G08CNEXCHPEKD02.g08.fujitsu.local (unknown [10.167.33.83]) by cn.fujitsu.com (Postfix) with ESMTP id 4FB134B7D66F; Fri, 4 Jan 2019 15:35:06 +0800 (CST) Received: from [10.167.226.60] (10.167.226.60) by G08CNEXCHPEKD02.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP Server (TLS) id 14.3.408.0; Fri, 4 Jan 2019 15:35:07 +0800 From: Cao jin Subject: question about reserve_bios_regions To: Thomas Gleixner , Ingo Molnar , , "H. Peter Anvin" CC: , LKML Message-ID: Date: Fri, 4 Jan 2019 15:35:03 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.167.226.60] X-yoursite-MailScanner-ID: 4FB134B7D66F.A9EE4 X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: caoj.fnst@cn.fujitsu.com X-Spam-Status: No Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, I am looking into these code via find_trampoline_placement, and I have some questions still not clear after lots of investigation, hope to get some hints. 1. How is the value of BIOS_START_MIN(128k) determined? I don't find any clue about it until now. 2. BIOS_START_MAX is define as 0x9f000U(636k), but both the comments say 640k, is that a quirk or just typo? I thought the 4k difference is the quirk, but later I guess the real quirk lies in latter judgment of : if (ebda_start >= BIOS_START_MIN && ebda_start < bios_start) I have checked out commit edce21216a8: ("x86/boot: Reorganize and clean up the BIOS area reservation code"), still no clue. -- Sincerely, Cao jin