From patchwork Mon Apr 16 19:37:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 10343767 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 56A606039A for ; Mon, 16 Apr 2018 19:38:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 45FB3288CF for ; Mon, 16 Apr 2018 19:38:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 37E3F288DD; Mon, 16 Apr 2018 19:38:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DB839288CF for ; Mon, 16 Apr 2018 19:38:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753315AbeDPTih (ORCPT ); Mon, 16 Apr 2018 15:38:37 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:41619 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751210AbeDPTig (ORCPT ); Mon, 16 Apr 2018 15:38:36 -0400 Received: by mail-wr0-f194.google.com with SMTP id v24so12131881wra.8; Mon, 16 Apr 2018 12:38:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:from:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=LIbJqTZDZorCI5kxOHsQN9q0yrrPMsGhXt/3XpIAfV4=; b=DZUr28uJHuTi4aC3apm0LtBnsgKx9kjCPNHK0QNIEijd166+djakyjyx/OsRAN152p Tpeu+FybZEBZqap3HLG6wXmAQY7+S5k9Ya9lteFQ6L9x3wB2chU2hZpAfGOaEl5r4WF+ zmoErEU7o0S76y5fC14aBFetllKqOx1pqXlRpaTm17rdL8u8rL58pzjv5xIgN/1sYSGC VdkrmV7+4IoSwNYT1NuFqp1FOFr8gaHifqBwnhKUMTKicqu8y04hF5INNz66UkSHxeGQ GQwgHzWza42H757GZNFarrJiaKrew70BA+WQRzqt2KmaVGi2u4LLXC2fR+emCS6jW/CM gxbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=LIbJqTZDZorCI5kxOHsQN9q0yrrPMsGhXt/3XpIAfV4=; b=gSjobqMzcz7yhM2JFxBYwuAPkxL4uF0H3Wx/DCckvy33Gxp4nbP1eHhSEUJr/Zoc/w LRgSTuYgiTV8TrgLOxEY+f5xQseynDda6qGWjMqPF0FkF56BjBtEjHg9PtA/HYgf8Wak 14wiM5+/heqKhF0+zvbIxhtKKuoVVMWceJ/zloiUbkj6psfpedb3LlLoib07zMBTG5Lm Omu4LDfxxXnEaZL1hpRltuKQl7Ua54DUf6UqcX64imeLSK5RCFmzQXd6IFAEbApvgd7s jzY1fEBvQRHBIa1fYXkcNsIHyPSzUN9IcirUC7ySg0S1RPMFRuVUlP9xxUpV50IWr/9x DTPQ== X-Gm-Message-State: ALQs6tBdnpPrau5isqa2846aVBvlMLkbJfxdIt+Drr7yLxt9Dvti3Qr6 Imq8muqh3cP8jkL72LiXsS+51A== X-Google-Smtp-Source: AIpwx49ZllqWurUB6uc/oG2VFoh8xvK2ouZ1TVUMkiKJ66iExOJgkScRkcA55kR4o2QQhWQhLmpp3g== X-Received: by 10.28.184.86 with SMTP id i83mr10658664wmf.30.1523907515120; Mon, 16 Apr 2018 12:38:35 -0700 (PDT) Received: from ?IPv6:2003:ea:8bd4:3d00:5062:aa04:3b2:d5c5? (p200300EA8BD43D005062AA0403B2D5C5.dip0.t-ipconnect.de. [2003:ea:8bd4:3d00:5062:aa04:3b2:d5c5]) by smtp.googlemail.com with ESMTPSA id x70sm13352427wma.9.2018.04.16.12.38.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Apr 2018 12:38:34 -0700 (PDT) Subject: [PATCH net-next 1/2] PCI: Add two more values for PCIe Max_Read_Request_Size From: Heiner Kallweit To: Bjorn Helgaas , David Miller , Bjorn Helgaas , Realtek linux nic maintainers Cc: "linux-pci@vger.kernel.org" , "netdev@vger.kernel.org" References: <00f1255f-acf0-4760-c20f-0b78bda44645@gmail.com> Message-ID: Date: Mon, 16 Apr 2018 21:37:13 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <00f1255f-acf0-4760-c20f-0b78bda44645@gmail.com> Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds missing values for the max read request size. E.g. network driver r8169 uses a value of 4K. Signed-off-by: Heiner Kallweit Acked-by: Bjorn Helgaas --- include/uapi/linux/pci_regs.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/uapi/linux/pci_regs.h b/include/uapi/linux/pci_regs.h index 0c79eac5..699257fb 100644 --- a/include/uapi/linux/pci_regs.h +++ b/include/uapi/linux/pci_regs.h @@ -506,6 +506,8 @@ #define PCI_EXP_DEVCTL_READRQ_256B 0x1000 /* 256 Bytes */ #define PCI_EXP_DEVCTL_READRQ_512B 0x2000 /* 512 Bytes */ #define PCI_EXP_DEVCTL_READRQ_1024B 0x3000 /* 1024 Bytes */ +#define PCI_EXP_DEVCTL_READRQ_2048B 0x4000 /* 2048 Bytes */ +#define PCI_EXP_DEVCTL_READRQ_4096B 0x5000 /* 4096 Bytes */ #define PCI_EXP_DEVCTL_BCR_FLR 0x8000 /* Bridge Configuration Retry / FLR */ #define PCI_EXP_DEVSTA 10 /* Device Status */ #define PCI_EXP_DEVSTA_CED 0x0001 /* Correctable Error Detected */