Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp2716787imb; Mon, 4 Mar 2019 12:13:22 -0800 (PST) X-Google-Smtp-Source: APXvYqwM9hnES7tWzvWMaD/BtMmqeDOAqz5WcXkUpP9rD75i6HAO6gSbAucoKdz9M4CLie/z7i2p X-Received: by 2002:a17:902:22f:: with SMTP id 44mr21427326plc.249.1551730402118; Mon, 04 Mar 2019 12:13:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551730402; cv=none; d=google.com; s=arc-20160816; b=IpCYK7NvG2/0K/KvURfSKksMdky2cBSi/LkTPxnWQ5ATS2ZuwGEaE6xMfVr9XRBotw meDjL23HifqgHAfc+W6QoGFS3Ssz1mLZdDD2Teq9vI6RYaLwdEWgPfnhlVwsGfVeI2TD 96Alsush/KrnsxK+UcO4b23nDuKR6hY3d2wHBahLUBz1Lky4gdDe+W+bhrmxUzh7DXFl fd324ULR2XgmVx3sKLdecTO4Z1ieXG0ONllHS/2QwRctTdf4gXVV3pLJpYr2i7EJ5Z2Z 5ncgoLpiNymZl5Amb9Q1y2AL0I2DsklX5GIwihaTRhduld52FqQUBMNsQEnKgOaVH+UE BMlg== 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:dkim-signature; bh=orUr5BvfCKB7i1FwqzkBRn2hZ0CZ+lVkuWSEFMZY3X8=; b=InjTxOx1eEunHPb2x4j7zu939dNemJQHDpQDi4IdyGkUUz0RcoOlc+nqdvg+FsH7Dq j3vBwtg5uZ+cs4n23ZXYEg8mrKlJRCdsZqVE25YFBdCpAHYwFB7lxkoqweMlOfHvjgm6 epm5dZ3bL+e0u4rLDXx0TfRGyJct87ZkDHJzbeZgrVa+MkjzfNF8uOMVbHJo3R2Unbh+ llUqMYIKyUczcZPHJxZuHUjQqQXjZxV4fd3vDebGeQzpleNaFqrV3ygOPo8Ik74uwIc0 vuHOW8EVidrz6tycDN8Dp0oNvhfEjl+F29vWYax83M7vLQ+9A8T1iI73ebiA9CPjs2x1 hNjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=YUS+6dr6; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v12si5574636pgs.427.2019.03.04.12.13.06; Mon, 04 Mar 2019 12:13:22 -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=@google.com header.s=20161025 header.b=YUS+6dr6; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726418AbfCDUMM (ORCPT + 99 others); Mon, 4 Mar 2019 15:12:12 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:51920 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726061AbfCDUML (ORCPT ); Mon, 4 Mar 2019 15:12:11 -0500 Received: by mail-wm1-f67.google.com with SMTP id n19so419312wmi.1 for ; Mon, 04 Mar 2019 12:12:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=orUr5BvfCKB7i1FwqzkBRn2hZ0CZ+lVkuWSEFMZY3X8=; b=YUS+6dr6rT2opHsgSYNMBV7gU3TUTXpDi3RCKy56mgjrzgKuu9qdfWvFVvfp0A+uQ3 1smzXLLXV2Dqhfti7tzArXOti7ne6nEDo5Bk7ZLUEsG51EDonhru5wFzsulNRNLi4dnN YbKlkyJsqA3tRcxAdgPJ4u7MeHHexPi7UhzJFmOQiqdydOn4i22hRdbYkruTP84Z1yK/ uXvhQIMqjuxIDdfP8RoQCDw8ibS34cV+W6N/M4Jed3iBHVKOWSH1Ai3z2co1gvDXVevS P2segjgQ7+IYgyepl923zbE+BdSFOBlYjkDVjhcuV6cvIfAiUnwYZPerMrB3XJcac2n5 Lg7Q== 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=orUr5BvfCKB7i1FwqzkBRn2hZ0CZ+lVkuWSEFMZY3X8=; b=nfDT3Mt8auwSAh/ocrsxfcyDHysInOMDm015SeBfsoqQ2n/m3NMlu+W67T+x3RXpGt f6FcQM58nzbDH3XuiHQFw2Cl5fsadrocgxkI8e9VsnCFxd7alKymX+iHQlzXrfWykRKc GbKK28TM2c836LOIn2tA2921zRNVaLkdZpBKLTNiErHh9db256QEhRzCuz7PCPuNhPr1 n7qdBlWyqTvOgRJeaFJQTIS53VjBDC2Gpezh6cYBwugxXTgcU0A3rrQw06H/zYjiav5Q d0FuYcYhlpWG/+YH34NxUn45UMrVYOs0vt38B6Gyzd+ILhnf2nqamRtco4TVWNfyYDWn krJw== X-Gm-Message-State: APjAAAWbxg7hBMyWK9ht00JOHjQSHpZMTsahro7jN7GgC+R4vvv2LqBz 1vhLdepL+VHEeFv0gY46Qa/92aaRMQ+pssJr5bK9 X-Received: by 2002:a1c:7dd7:: with SMTP id y206mr465100wmc.123.1551730329649; Mon, 04 Mar 2019 12:12:09 -0800 (PST) MIME-Version: 1.0 References: <20190214170028.27862-1-logang@deltatee.com> <20190304002351.GA26569@google.com> <3e45b4ab-e848-cf3b-624f-121ad58b0250@deltatee.com> In-Reply-To: <3e45b4ab-e848-cf3b-624f-121ad58b0250@deltatee.com> From: Bjorn Helgaas Date: Mon, 4 Mar 2019 14:11:57 -0600 Message-ID: Subject: Re: [PATCH 1/2] PCI: Prevent 64-bit resources from being counted in 32-bit bridge region To: Logan Gunthorpe Cc: Bjorn Helgaas , Linux Kernel Mailing List , Linux PCI , Kit Chow , Yinghai Lu 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 Mon, Mar 4, 2019 at 1:21 PM Logan Gunthorpe wrote: > On 2019-03-03 5:23 p.m., Bjorn Helgaas wrote: > > Sorry for the delay. This code gives a headache. I still remember > > my headache from the last time we touched it. Help me understand > > what's going on here. > > Yes, this code gave me a headache debugging it too. And it's not the > first time I've tried to figure out what's going on with it because it > often just prints noisy messages that look like errors. I think I > understand it better now but it's something that's a bit fleeting and > easy to forget the details of. There may also be other solutions to this > problem. Thanks for the explanation below. I haven't worked through it yet, but I will. Obviously it would be far better than an explanation if we could simplify the code (and the noisy messages) such that it didn't *require* so much explanation. Bjorn