From patchwork Fri Jul 17 21:32:08 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Helgaas X-Patchwork-Id: 6819421 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 05EFDC05AC for ; Fri, 17 Jul 2015 21:32:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7A1962081E for ; Fri, 17 Jul 2015 21:32:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 95D3220815 for ; Fri, 17 Jul 2015 21:32:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752869AbbGQVcM (ORCPT ); Fri, 17 Jul 2015 17:32:12 -0400 Received: from mail-oi0-f47.google.com ([209.85.218.47]:35457 "EHLO mail-oi0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752605AbbGQVcL (ORCPT ); Fri, 17 Jul 2015 17:32:11 -0400 Received: by oihq81 with SMTP id q81so78523974oih.2 for ; Fri, 17 Jul 2015 14:32:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=subject:to:from:cc:date:message-id:in-reply-to:references :user-agent:mime-version:content-type:content-transfer-encoding; bh=k4FYkLCejQzpQ17kBJCuZAF5V8rQ1g7GbAPVTMUrAYg=; b=WtfvXXL95cPm4OsMYjst7yN0SBqEgBlP1qSjMxg9+tucVpfjeaxYQIWQXMoVheNXvb 41fM7OGwSdgBFdyLjN1qAY91k5nm3bZPxTkWv/WGygynOZXvAK0yfcE5fLaidNJDyijv lDLv+GXQ7PJEO3YGH6v+K+tHTCnUX3Ejdvm6riTnQlf02ZxcY7S6Yc2eMCHlcYd545tk zP1vJC2vzDzM5mqAiZg9MYTbGFnRii+D96EDUYxr3pIcdsuwfkYNlUop2xr1wum8Xzmz hloXJOZW0I9/c484B6VDmFBSh29AeBah7KMCb2+GD8Bf6/JwFvP6nmx925vnIS6yYsGv yjjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:from:cc:date:message-id:in-reply-to :references:user-agent:mime-version:content-type :content-transfer-encoding; bh=k4FYkLCejQzpQ17kBJCuZAF5V8rQ1g7GbAPVTMUrAYg=; b=IKTc9a8kKRx8NK9q5BB4qovE0sBN8S2Sp1/CfS+9JFqpr2PeY3YMm3W+Kcp7wiy0Cj pVtZQj+Pm5vd6oSQ4Gs9Eg8in7gDL/zbRR/wQghfy/bm6xDm3pcr1T7BfsTzqUCq9gZ3 BrN55xsZwo4eeig7kEN+BhDDJui4vMuHVsIisIz97sDAatP/kHn2DBDl7iFR44v3ZZQO 6fIaln5LChigR/hBX0WNKTkDCgrm2pXWGL+08AMqw2DQwDEpa5IuMqm/z3Bht/JwJtBH b/46gbt9qQDwTd6bd5HdsbDO6x/6b2Uhdd551OxyjERB8o71Son/181rzW9Tx+A388SQ 8PCA== X-Gm-Message-State: ALoCoQka4NHgYc44x4ISq9IZVZs6L7KgJ5XnBrwSkP/vfk9Gy0nd/M6hH416z1oQDrUVBRy7+v6b X-Received: by 10.202.242.212 with SMTP id q203mr14822244oih.52.1437168730882; Fri, 17 Jul 2015 14:32:10 -0700 (PDT) Received: from localhost ([146.7.4.71]) by smtp.gmail.com with ESMTPSA id h128sm7032278oic.0.2015.07.17.14.32.09 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 17 Jul 2015 14:32:09 -0700 (PDT) Subject: [PATCH 3/8] PCI: Reduce size of ATS structure elements To: linux-pci@vger.kernel.org, Joerg Roedel From: Bjorn Helgaas Cc: Gregor Dick Date: Fri, 17 Jul 2015 16:32:08 -0500 Message-ID: <20150717213208.18379.24197.stgit@bhelgaas-glaptop2.roam.corp.google.com> In-Reply-To: <20150717212759.18379.44858.stgit@bhelgaas-glaptop2.roam.corp.google.com> References: <20150717212759.18379.44858.stgit@bhelgaas-glaptop2.roam.corp.google.com> User-Agent: StGit/0.16 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=-8.0 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, 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 The extended capabilities list is linked with 12-bit pointers, and the ATS Smallest Translation Unit and Invalidate Queue Depth fields are both 5 bits. Use u16 and u8 to hold the extended capability address and the stu and qdep values. No functional change. Signed-off-by: Bjorn Helgaas Reviewed-by: Joerg Roedel --- include/linux/pci.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/include/linux/pci.h b/include/linux/pci.h index ba4a23b..1997853 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -376,9 +376,9 @@ struct pci_dev { struct pci_sriov *sriov; /* SR-IOV capability related */ struct pci_dev *physfn; /* the PF this VF is associated with */ }; - int ats_cap; /* ATS Capability offset */ - int ats_stu; /* ATS Smallest Translation Unit */ - int ats_qdep; /* ATS Invalidate Queue Depth */ + u16 ats_cap; /* ATS Capability offset */ + u8 ats_stu; /* ATS Smallest Translation Unit */ + u8 ats_qdep; /* ATS Invalidate Queue Depth */ #endif phys_addr_t rom; /* Physical address of ROM if it's not from the BAR */ size_t romlen; /* Length of ROM if it's not from the BAR */