From patchwork Mon Jan 26 17:06:12 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 5711441 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 94D5B9F302 for ; Mon, 26 Jan 2015 17:06:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A3D5020142 for ; Mon, 26 Jan 2015 17:06:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BD010200E8 for ; Mon, 26 Jan 2015 17:06:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755991AbbAZRGU (ORCPT ); Mon, 26 Jan 2015 12:06:20 -0500 Received: from mail-wi0-f176.google.com ([209.85.212.176]:63451 "EHLO mail-wi0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755490AbbAZRGT (ORCPT ); Mon, 26 Jan 2015 12:06:19 -0500 Received: by mail-wi0-f176.google.com with SMTP id em10so11479559wid.3 for ; Mon, 26 Jan 2015 09:06:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=HxKntvWwOVIXhLnmio95UAalWATofjjAY3RvNbGDfoQ=; b=ZoXRIHoXg4CE4JoMgKblntfeRc9NwwibU7OzuxAQaUAOzY4pvKYsxgH/wf/MB2Amkx PInlwnQtV+clg7woJcH58V9Aew5Qh4yh2wcU8tgOeubgK7Cov+Kg4ZK8TyhgaG1+aLit YNnB8q/53sdyzlH3LziE3ogV7P/b8VrgFgYOGdLr907lCs6mZAUFagQiSO1Xksh3NQ91 0eAYyk4WdollMGLBq3TTTacGkVgcwxYAmDEq6GhjBW3XB7vKr6ZIAE/7BQmmEhoHmdsd gjR/mvOSWhsEeUwFPouMdo7COommQDZi/x97O6zOq9XD6vlpvnjtgiWHKds3mharrAfe Pflw== X-Received: by 10.194.205.138 with SMTP id lg10mr47264462wjc.130.1422291978518; Mon, 26 Jan 2015 09:06:18 -0800 (PST) Received: from linux-tdhb.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by mx.google.com with ESMTPSA id gl1sm14710600wib.13.2015.01.26.09.06.17 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Jan 2015 09:06:17 -0800 (PST) From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= To: Bjorn Helgaas , linux-pci@vger.kernel.org Cc: Chris Metcalf , =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= Subject: [PATCH 3/5] tile: use PCI define for max read request size Date: Mon, 26 Jan 2015 18:06:12 +0100 Message-Id: <1422291972-12412-1-git-send-email-zajec5@gmail.com> X-Mailer: git-send-email 1.8.4.5 In-Reply-To: <1422291922-12324-1-git-send-email-zajec5@gmail.com> References: <1422291922-12324-1-git-send-email-zajec5@gmail.com> MIME-Version: 1.0 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Rafa? Mi?ecki Acked-by: Chris Metcalf --- arch/tile/kernel/pci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/tile/kernel/pci.c b/arch/tile/kernel/pci.c index f70c789..325df47 100644 --- a/arch/tile/kernel/pci.c +++ b/arch/tile/kernel/pci.c @@ -245,7 +245,7 @@ static void fixup_read_and_payload_sizes(void) { struct pci_dev *dev = NULL; int smallest_max_payload = 0x1; /* Tile maxes out at 256 bytes. */ - int max_read_size = 0x2; /* Limit to 512 byte reads. */ + int max_read_size = PCI_EXP_DEVCTL_READRQ_512B; u16 new_values; /* Scan for the smallest maximum payload size. */ @@ -258,7 +258,7 @@ static void fixup_read_and_payload_sizes(void) } /* Now, set the max_payload_size for all devices to that value. */ - new_values = (max_read_size << 12) | (smallest_max_payload << 5); + new_values = max_read_size | (smallest_max_payload << 5); for_each_pci_dev(dev) pcie_capability_clear_and_set_word(dev, PCI_EXP_DEVCTL, PCI_EXP_DEVCTL_PAYLOAD | PCI_EXP_DEVCTL_READRQ,