From patchwork Fri Aug 24 23:56:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas De Marchi X-Patchwork-Id: 10575995 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9913D5A4 for ; Fri, 24 Aug 2018 23:57:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 89F0F2B906 for ; Fri, 24 Aug 2018 23:57:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7E7412BD09; Fri, 24 Aug 2018 23:57:26 +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=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4D11A2B906 for ; Fri, 24 Aug 2018 23:57:26 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A00DC6E783; Fri, 24 Aug 2018 23:57:13 +0000 (UTC) X-Original-To: intel-gfx@freedesktop.org Delivered-To: intel-gfx@freedesktop.org Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6D2646E768; Fri, 24 Aug 2018 23:57:11 +0000 (UTC) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Aug 2018 16:57:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,284,1531810800"; d="scan'208";a="67952006" Received: from ldmartin-desk.jf.intel.com ([10.24.10.40]) by orsmga008.jf.intel.com with ESMTP; 24 Aug 2018 16:57:07 -0700 From: Lucas De Marchi To: intel-gfx@freedesktop.org, dri-devel@freedesktop.org Date: Fri, 24 Aug 2018 16:56:45 -0700 Message-Id: <20180824235649.19444-1-lucas.demarchi@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [Intel-gfx] [PATCH libdrm 0/4] intel: rework how we add PCI IDs X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Paulo Zanoni , Rodrigo Vivi MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP Adding PCI IDs to different projects is a boring manual task that motivated me to create this series. The idea is to centralize the IDs in the kernel header and let other projects copy it. Initially my plan was to convert all gens, back to gen2, but that proved slightly difficult since there are some corner cases to cover and I didn't want to block the important part, i.e.: for recent gens, there's no risk of missing a PCI ID. It does increase the size a little bit, but doesn't explode. Size diff below showing ~3k: - 36533 176 40 36749 8f8d build/intel/intel@@drm_intel@sha/intel_bufmgr_gem.c.o - 66237 1384 24 67645 1083d build/intel/intel@@drm_intel@sha/intel_decode.c.o + 39362 176 40 39578 9a9a build/intel/intel@@drm_intel@sha/intel_bufmgr_gem.c.o + 68935 1384 24 70343 112c7 build/intel/intel@@drm_intel@sha/intel_decode.c.o Let me know what you think. Lucas De Marchi (4): intel: add IS_GENX() generic macro intel: make gen11 use generic gen macro intel: make gen10 use generic gen macro intel: make gen9 use generic gen macro intel/i915_pciids.h | 461 ++++++++++++++++++++++++++++++++++++++++++ intel/intel_chipset.h | 267 +++--------------------- 2 files changed, 487 insertions(+), 241 deletions(-) create mode 100644 intel/i915_pciids.h