Received: by 10.223.176.5 with SMTP id f5csp3146136wra; Thu, 1 Feb 2018 11:30:34 -0800 (PST) X-Google-Smtp-Source: AH8x225R7Y09K/hgc3St8AJGE21JPh2ManIYvM5dMK/TDj5H6SNIR/8v4qH9fbhsdWFmX6RgTP9q X-Received: by 10.98.34.27 with SMTP id i27mr37516189pfi.43.1517513434626; Thu, 01 Feb 2018 11:30:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517513434; cv=none; d=google.com; s=arc-20160816; b=ntubfSocM/XTsAGXX9rW9ZuT1Yu+D+RVJ2yUNm756/REABgaF5WO0l8CoOwfq0XS3x tLgJKt6KsOxUcBO7eQEM+abkn7sJO0GZNIRi8fQbdZ+gBDz8YahZ9IG0h1CnurykGOAt lfQfL/7/hY0h5gqXipFMqYYyE2Z5i8RTVMEna0fD34kPH+rDYFXhXtb9wh+pfAxtEdco ck4qcF+ZB2F7p6JChi9D63Irvb7cLluyUQT6havdE5/WgnMcxTkFykayeKUCwy40gdvC TYG3xLAl/Sp+KN901imtSfdYNZAg/EYLuzKnCPU4Q07BOHkvXQemiRfet5QIz+dPGZlm nK2w== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=N2I1j4TiVH3g/kepAD8Y5pLvtuPvzg2MRhvEQe6XiNs=; b=qjN92b7vqsdnNLpX1LyJtnYGDFSugss2XNXCmXkyCxwueyOen4cCzrTNRVFtMrDgkl DraIC2C2W3ZpaeL4s5CnY96Zg/sRfusqPZx+Y1OcCSjCNwNqNpIP7aTALwV4gtt9Onfi 5djRUHdx0QfHKvTadtJUNdI8uBlIIf1ubnmiKgOsjxUFWanqAq6T/QXzBIFkaUvkyL4t sVuK/Q+QpqWBPxCknhRI5ODmznHmDH8NL++8SDHwKY67GoBFb6OaA4rdSXu8Ge3cwm2t rkWeFR//xZvbqF9BtGq7J6vDzUU3K1yRLAyDuiotSU0qFqUneab7+mP+Ktx9fQ2RFtkc cRxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=arfk+OQa; 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=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k123si131829pgc.761.2018.02.01.11.30.19; Thu, 01 Feb 2018 11:30:34 -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=@gmail.com header.s=20161025 header.b=arfk+OQa; 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=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753060AbeBAS5u (ORCPT + 99 others); Thu, 1 Feb 2018 13:57:50 -0500 Received: from mail-qk0-f174.google.com ([209.85.220.174]:33063 "EHLO mail-qk0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753044AbeBAS5o (ORCPT ); Thu, 1 Feb 2018 13:57:44 -0500 Received: by mail-qk0-f174.google.com with SMTP id i141so20756234qke.0; Thu, 01 Feb 2018 10:57:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=N2I1j4TiVH3g/kepAD8Y5pLvtuPvzg2MRhvEQe6XiNs=; b=arfk+OQa+qPSF7Zq0sTArknuriu2aqfkNAGy7MQyQbp/9H0xc0+BbRBpztzO9TLe0R sRg1/p4I+yOjERMQrAPaGJDzipAt11nFKSCuCPmUFWBIcBo8FkouxEtu987IYt0n32K2 MpAcpb/uMFzEXtifSkqgwVQz0AY4GN6GTVMHgReniB7nJzaxngaruCX7c4etg/DEyiA1 dGNQXQjZCF4r5e+iPJKjKnVMqfq2acbyoi5J8xq3l3nGT0RX1VtbeU5i4Bysvg6NvfKm SLXSKGuTT2vRQZuUuWmNnLbBOQq02XI4+A/HtIVZknBegFOJoxnMg4iYVpB3pAP9ubQV PBSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=N2I1j4TiVH3g/kepAD8Y5pLvtuPvzg2MRhvEQe6XiNs=; b=rBllASikkSJLTiVVku3fYIHGvZnj4vEdDETYP6+xxeCKsgfz7zDrkKY/TBmXKUsK2F GvJoXb8AdV1sY6YCTaR2K/i6ef1HgloBK8A5gssW4rglSdltWA1M2UTs5/DwmRUyXSV9 v2gv9Q0gOe3wukxM4LNXBkA46qNfKE2MGeCUaSpoP5jm6ON1xOEDakTA+ZRdALzK3qqL uwrZ62xJzCihRuXJKKEFa7487Q6EIZQrxF5H+e0o4+JrsQgkJh41PYkBsAq0Q1gINVGB IjnG50valz2rF3hKqCiXPOMXgheFHGFFojx9AnF6EwHsTtWQKWyGg5Qpqkg2X52wBuSk El2A== X-Gm-Message-State: AKwxyteuhndRTxIoviFiipKo+E4c1MgVNi4+jX3UgEW/PV4w3L6XuTpv d0mzgiDEKInL/zKq1WwqPqm7Y4rKeZ3gR9TjGC0= X-Received: by 10.55.39.78 with SMTP id n75mr23442088qkn.24.1517511463394; Thu, 01 Feb 2018 10:57:43 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.175.35 with HTTP; Thu, 1 Feb 2018 10:57:42 -0800 (PST) In-Reply-To: <20180201161119.3852-4-niklas.cassel@axis.com> References: <20180201161119.3852-1-niklas.cassel@axis.com> <20180201161119.3852-4-niklas.cassel@axis.com> From: Andy Shevchenko Date: Thu, 1 Feb 2018 20:57:42 +0200 Message-ID: Subject: Re: [PATCH 3/3] PCI: designware-ep: Return an error when requesting a too large BAR size To: Niklas Cassel Cc: Kishon Vijay Abraham I , Jingoo Han , Joao Pinto , Lorenzo Pieralisi , Bjorn Helgaas , Niklas Cassel , linux-pci@vger.kernel.org, Linux Kernel Mailing List 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 Thu, Feb 1, 2018 at 6:11 PM, Niklas Cassel wrote: include/linux/sizes.h: +SZ_4G 0x100000000ULL > + if (size > 0x100000000ULL) { #include if (size > SZ_4G) { ? -- With Best Regards, Andy Shevchenko