From patchwork Fri May 10 13:40:13 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lespiau, Damien" X-Patchwork-Id: 2550081 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork1.kernel.org (Postfix) with ESMTP id 2BC973FC5A for ; Fri, 10 May 2013 13:40:29 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D26DFE5FC6 for ; Fri, 10 May 2013 06:40:28 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by gabe.freedesktop.org (Postfix) with ESMTP id 55EB6E5C0E for ; Fri, 10 May 2013 06:40:15 -0700 (PDT) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP; 10 May 2013 06:38:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.87,648,1363158000"; d="scan'208";a="311299188" Received: from unknown (HELO strange.amr.corp.intel.com) ([10.255.12.253]) by orsmga001.jf.intel.com with ESMTP; 10 May 2013 06:40:14 -0700 From: Damien Lespiau To: intel-gfx@lists.freedesktop.org Date: Fri, 10 May 2013 14:40:13 +0100 Message-Id: <1368193213-23926-1-git-send-email-damien.lespiau@intel.com> X-Mailer: git-send-email 1.8.1.4 Subject: [Intel-gfx] [PATCH i-g-t] list-workarounds: Don't add an already present platform X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org Currently if we come across several sites that say that a specific workaround is implemented for a platform, we just add the platform several times to the list. eg. WaFbcDisableDpfcClockGating: ivb, hsw, ivb, hsw This patch prevent that by only adding the plaform if it's not already there. Signed-off-by: Damien Lespiau --- scripts/list-workarounds | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/list-workarounds b/scripts/list-workarounds index 7bfd82d..6c8c636 100755 --- a/scripts/list-workarounds +++ b/scripts/list-workarounds @@ -47,7 +47,10 @@ def parse(me): platforms = match.group('platforms') if wa_name in workarounds: - workarounds[wa_name] += parse_platforms(platforms) + platforms = parse_platforms(platforms) + for p in platforms: + if not p in workarounds[wa_name]: + workarounds[wa_name].append(p) else: workarounds[wa_name] = parse_platforms(platforms)