Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp853229imu; Wed, 23 Jan 2019 06:52:37 -0800 (PST) X-Google-Smtp-Source: ALg8bN5h6oIcIPtejqgoYCWBbUAsHMP5wvc47MOFygPCPC/LEIkdWyGUUgDN/SAg/IylpDQUaWNF X-Received: by 2002:a17:902:3124:: with SMTP id w33mr2475391plb.241.1548255157399; Wed, 23 Jan 2019 06:52:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548255157; cv=none; d=google.com; s=arc-20160816; b=Ux3jgQJ9iMIoDe4r/sfpVWWlcJZip9O0TCO3/Voxi70V/lOJ/hkUQxVF9G9cFFtkZY RWmuQ+cICnS46H2YQt8e+GWdcmiA3pVp5L3JsHMQn9qmIf85LZoPROUdHh/mEmwdBr3+ IUPOatAHB9NV2gN+e767nAM/FG11YThV6Gx1RTuvxKjzmesQK3IN34zWboQGUfyh6rPB SIMVnebYPQDQQ0dqtgBpkkBna/kxRJ7Cs1dz/9U/Lq0o1vxq2WJKIwbUoT9yENYgeGTo A4Ctw2haUCHgaQozSTQlLpSt8skhgzuGCGcPa9FHgFSLVrZwTzwSeyVuD0e5r3L/+vST d4PQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=qrzeEWxLWp8kbEaxUd3KoaEM8/V9XnT3uiVFB1dyXFY=; b=qF1HV1iriOc4yuxEYePAftj+bidKL5HkfZ9KeQf7tNrJIk2nPdUmZ6TwAR6HICAFk8 KP+6yGgd8X9YvFKJWpqNKJCMyrjDizETKCtesRoW63kvVHjJ1yAhlR2O+S3d+vgz3sCQ LcedD8agsfUzv+6u+TgshCiweY3WEsdGZ8gSTicC5/KFQU1xAda1GXi9diWOqQ2CNSx7 LVPMmBCeIepIV08fwD4Ku/xAlzpkHOd3d5LrKtSegcp2qE4FjMhb9LhboOa+9k+XfVmI E9VlTwsS6e2/eUS0VqnlH1yJhkXd++6xhZDpgFR+IJsNZDZ/mfyi7Mv8Oe7lOjJOXKAq 8HIw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g92si19910635plg.392.2019.01.23.06.52.22; Wed, 23 Jan 2019 06:52:37 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725987AbfAWOuo (ORCPT + 99 others); Wed, 23 Jan 2019 09:50:44 -0500 Received: from mail-io1-f66.google.com ([209.85.166.66]:33101 "EHLO mail-io1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725862AbfAWOun (ORCPT ); Wed, 23 Jan 2019 09:50:43 -0500 Received: by mail-io1-f66.google.com with SMTP id t24so1881959ioi.0 for ; Wed, 23 Jan 2019 06:50:43 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qrzeEWxLWp8kbEaxUd3KoaEM8/V9XnT3uiVFB1dyXFY=; b=kQHFbdBQO9pj7MSoYKiQd7ZsiC3x44Vce95/R3OIIqM8Oh0MwT15JkIqaW9DWh6Gjp eQtS+5hDsJAwIDLREoDsvyNt1eV46Pf2qM8Tsa7mTmQcGBmFJ+RG19T1h1dhLmzZ1pHU 33yBAt0tJIw4xDlFMW1kKkACktWo8nJKLE8v3lw3J8ZFQxM2fsonz4kc55qWfF9JOjUW C37MHIXwYR+sAsmwsP/Ss7j92L+MmU3hCqZp99tFwrnJMJrxfrTTy7RnfBGkCn98mIff F9IzgVB2KlkZfxGQKZgsOD8+Ac2SJPLtC1UNrH1Me6F4/CmqkhQPD0WLMF9du/8TqOMU S4zw== X-Gm-Message-State: AHQUAuatARrGV/Qr/jESNqCOk0pxjfdiX38o0fGIIC/cEIh0KnryB8j5 hYS/Ofy9xz/532WKc6wQuQ1/DTsTxWyKP7uyFoSNwA== X-Received: by 2002:a5e:de01:: with SMTP id e1mr1380661iok.137.1548255042918; Wed, 23 Jan 2019 06:50:42 -0800 (PST) MIME-Version: 1.0 References: <20190102105408.7124-1-kasong@redhat.com> <20190123141432.GA19177@MiWiFi-R3L-srv> In-Reply-To: <20190123141432.GA19177@MiWiFi-R3L-srv> From: Kairui Song Date: Wed, 23 Jan 2019 22:50:31 +0800 Message-ID: Subject: Re: [PATCH v2] x86/gart/kcore: Exclude GART aperture from kcore To: Baoquan He Cc: Linux Kernel Mailing List , Thomas Gleixner , Borislav Petkov , Ingo Molnar , "H. Peter Anvin" , jbohac@suse.cz, adobriyan@gmail.com, Andrew Morton , osandov@fb.com, Bhupesh Sharma , Dave Young Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 23, 2019 at 10:14 PM Baoquan He wrote: > > On 01/02/19 at 06:54pm, Kairui Song wrote: > > diff --git a/arch/x86/kernel/aperture_64.c b/arch/x86/kernel/aperture_64.c > > index 58176b56354e..c8a56f083419 100644 > > --- a/arch/x86/kernel/aperture_64.c > > +++ b/arch/x86/kernel/aperture_64.c > > @@ -14,6 +14,7 @@ > > #define pr_fmt(fmt) "AGP: " fmt > > > > #include > > +#include > > #include > > #include > > #include > > @@ -57,7 +58,7 @@ int fallback_aper_force __initdata; > > > > int fix_aperture __initdata = 1; > > > > -#ifdef CONFIG_PROC_VMCORE > > +#if defined(CONFIG_PROC_VMCORE) || defined(CONFIG_PROC_KCORE) > > /* > > * If the first kernel maps the aperture over e820 RAM, the kdump kernel will > > * use the same range because it will remain configured in the northbridge. > > @@ -66,7 +67,7 @@ int fix_aperture __initdata = 1; > > */ > > static unsigned long aperture_pfn_start, aperture_page_count; > > > > -static int gart_oldmem_pfn_is_ram(unsigned long pfn) > > +static int gart_mem_pfn_is_ram(unsigned long pfn) > > { > > return likely((pfn < aperture_pfn_start) || > > (pfn >= aperture_pfn_start + aperture_page_count)); > > @@ -76,7 +77,12 @@ static void exclude_from_vmcore(u64 aper_base, u32 aper_order) > > Shouldn't this function name be changed? It's not only handling vmcore > stuff any more, but also kcore. And this function is not excluding, but > resgistering. > > Other than this, it looks good to me. > > Thanks > Baoquan > Good suggestion, it's good to change this function name too to avoid any misleading. This patch hasn't got any other reviews recently, I'll update it shortly. -- Best Regards, Kairui Song