Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp779009ybl; Sun, 1 Dec 2019 12:35:52 -0800 (PST) X-Google-Smtp-Source: APXvYqzGgIQqM/XTuAcNV54nzsqRd0dCfUFtKIiR80fIdrSYFNOO/X0cUojs4pnTD+V+ukFpBmww X-Received: by 2002:a50:ec97:: with SMTP id e23mr59099606edr.111.1575232552814; Sun, 01 Dec 2019 12:35:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575232552; cv=none; d=google.com; s=arc-20160816; b=aNa1pn8+XdqMEMIOQ0y6gN1UnECsUO1enLjTFAXV7psgkLl/g8SSDDZRRcEmdnHifR 2dJ70B5zS1u4/ItYlkvAAnYJkJuEagSOqwuC2lW+gH9FxjSqyXsb17LzkBqXw4Y4Tn8l SduqdixhYS9BKZxu6l7aWTumr11iKOKB/TGyM7QwwziKtXIQk20SwUCJMQ1GSpYJ0JIZ HCChB7Kx6iUF/Pun5IeNjs0GB9DFtZVXRuWYBS9IkdpatwHROjNTVc0xFitLog/PHTkz kPC46I/aiCgA0NRIA+LAFm3Sr0H561BPn6S0FllFn1o8pb/mzReFqD3YCuK39kpVgSF+ Ofdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=k0vP8O4laRZDcbfd6ubx4anqmuOGWDPrB2xGATS7dVE=; b=WiReXjHeBEuRLiqSYeAMfy54FANdNmgKjwaBnD9lGtW2K4lpfgklUN3+Nl+T2vcxeO JRxx0Nzqo0I8XeQh0UHAS5PjGGws8wHXPs6DGEgjOISmmdJ9rSTBIWvQmVohzqiB9L/D qWd0GPg9dmDDmVvF1pU1PWxFKK2gZGizagxrPGlrbhjspcOev488hBxVLRMhoiatr6Eq E4ruAkrL32MrCuu7mhlnbgoFfs8TSA0GOpEO2ushc9a8MXD0xpdjSLn+8tC5NpM8c4UQ VnK4/Ld7B3wd+HjogeDmBS+zksxqtonb4jmLq7YayE9yZyLMFdy1UK1H34Z/jQlc9QM4 +H0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=Yb6qM1OM; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r1si21043478edw.277.2019.12.01.12.35.29; Sun, 01 Dec 2019 12:35:52 -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=fail header.i=@gmail.com header.s=20161025 header.b=Yb6qM1OM; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727280AbfLAUbE (ORCPT + 99 others); Sun, 1 Dec 2019 15:31:04 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:40141 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726800AbfLAUbD (ORCPT ); Sun, 1 Dec 2019 15:31:03 -0500 Received: by mail-wr1-f68.google.com with SMTP id c14so17027269wrn.7 for ; Sun, 01 Dec 2019 12:31:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=k0vP8O4laRZDcbfd6ubx4anqmuOGWDPrB2xGATS7dVE=; b=Yb6qM1OMqo+1YcDltjALP4kv3ykDmgwIUI4nA5PumuzF91PWK3bgrkfn4crd4zmKmZ B9+o2DtRqy7vXoid917HvrLqouXLCN3TXbgI/bYtqDb6xZswJI8lckg3xGyvofVgeqXF KQele5QUACXWx0NQzfVQCh57FABpH9haToUb00KHjr/lO69CtXkotHEhXgtuplQsXN28 rvn8LVox6cVgFXJ8oNYa9zXl0e1t2wiMyqPNEbFAPMa7Wcz4GsfM+WJpckthc7/ScbTK SQXv+ySU426qEhQe6goTIdts0gjSWLdn3sJtOc7k0ecvtLiB8x8XzcPBBaosd6eVHEkG dxmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=k0vP8O4laRZDcbfd6ubx4anqmuOGWDPrB2xGATS7dVE=; b=imCEpth3KGLyMGpuN/W3YRlAXdQIrlLcJ/DbGr1kf5WeUEzb97yLUZQ+2+CuD5/dkj nLcq8MAlBplYzSHRjQvw0K8Ec09Od5JzlIzDFMTLSeAeCmOt+fPBrf4fISlD9OUGEJEM e78UOwcAN56S9vXbAfik605x9QBZ74FTQa6hS6WBCchB5FK1hEOx8AJf5HyTHy2+G9RN Tbz2Azb4naICf6qcnhC22fpVfjaa3JP1uGcWJ4RIo1WVw1lZAPb2DuaGUwSMT6Kc6EZZ vEiQNX4B/YZPv6IQ2eF5XKAT4OkO7va+NARBSdCUEXGfLsCU0Y7EkUwEpAwGmu/e8USP tAWA== X-Gm-Message-State: APjAAAUvWRzaiz9K2B//EZbkr6UBF4qbIUl4yYEohOnSgbb5RLbYVu0Q 2cfdFdaaQn0fd0RqNfNuZ8c= X-Received: by 2002:adf:ea42:: with SMTP id j2mr29023101wrn.270.1575232261532; Sun, 01 Dec 2019 12:31:01 -0800 (PST) Received: from gmail.com (54033286.catv.pool.telekom.hu. [84.3.50.134]) by smtp.gmail.com with ESMTPSA id u14sm37571524wrm.51.2019.12.01.12.31.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Dec 2019 12:31:00 -0800 (PST) Date: Sun, 1 Dec 2019 21:30:58 +0100 From: Ingo Molnar To: "Kenneth R. Crudup" Cc: Linus Torvalds , mceier@gmail.com, Davidlohr Bueso , kernel test robot , Davidlohr Bueso , Thomas Gleixner , Peter Zijlstra , Borislav Petkov , LKML , lkp@lists.01.org Subject: Re: [PATCH] x86/pat: Fix off-by-one bugs in interval tree search Message-ID: <20191201203058.GA82131@gmail.com> References: <20191127005312.GD20422@shao2-debian> <20191130212729.ykxstm5kj2p5ir6q@linux-p48b> <20191201104624.GA51279@gmail.com> <20191201144947.GA4167@gmail.com> <20191201195521.GC3615@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Kenneth R. Crudup wrote: > > > write-combining @ 0x604a800000-0x604b000000 > > > uncached-minus @ 0x604b100000-0x604b110000 > > > This WC region was probably unaffected by the bug. > > For my education, and for completeness' sake, is there a proc/sys entry > that would tell me which device/module has reserved which PAT region? Not that I know of :-/ I suspect you could run the attached patch and run: dmesg | grep -i 'x86/pat' To see all the ioremap() activities, with a symbolic name of the caller printed. I'm quite sure 0x604a800000 will be among them, pointing to somewhere like i915_vma_pin_iomap(), ggtt_init_hw() or ggtt_probe_common() in the i915 GPU driver? Another possibility is that this is the FB framebuffer, mapped by efifb_probe() or so? Patch is untested though. :-) Thanks, Ingo =================> arch/x86/mm/ioremap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/mm/ioremap.c b/arch/x86/mm/ioremap.c index 1ff9c2030b4f..2f0a4f99471a 100644 --- a/arch/x86/mm/ioremap.c +++ b/arch/x86/mm/ioremap.c @@ -166,6 +166,8 @@ __ioremap_caller(resource_size_t phys_addr, unsigned long size, int retval; void __iomem *ret_addr; + printk("# x86/pat: ioremap(%016Lx, %08lx, pcm: %d), caller: %pS\n", phys_addr, size, pcm, caller); + /* Don't allow wraparound or zero size */ last_addr = phys_addr + size - 1; if (!size || last_addr < phys_addr)