From patchwork Tue Jan 22 05:12:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas De Marchi X-Patchwork-Id: 10774821 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 0D02A913 for ; Tue, 22 Jan 2019 05:12:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E59F22AB08 for ; Tue, 22 Jan 2019 05:12:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D47582AB0C; Tue, 22 Jan 2019 05:12:46 +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=ham 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 8D0E12AB08 for ; Tue, 22 Jan 2019 05:12:46 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8F30D89B70; Tue, 22 Jan 2019 05:12:44 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8CA8089AFF for ; Tue, 22 Jan 2019 05:12:43 +0000 (UTC) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Jan 2019 21:12:42 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,505,1539673200"; d="scan'208";a="118405233" Received: from dailiu-mobl1.amr.corp.intel.com (HELO ldmartin-desk.jf.intel.com) ([10.251.146.54]) by fmsmga008.fm.intel.com with ESMTP; 21 Jan 2019 21:12:42 -0800 From: Lucas De Marchi To: intel-gfx@lists.freedesktop.org Date: Mon, 21 Jan 2019 21:12:20 -0800 Message-Id: <20190122051227.8329-1-lucas.demarchi@intel.com> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH v8 0/7] Define MOCS table for Icelake 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: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP This reworks v7 of the series (https://patchwork.freedesktop.org/series/54070/) to handle the comments there and some more of my own. Changes: - Initialize undefined entries to PTE rather than uncached (suggested by Chris) - Add a new macro to define MOCS entries: this allows to make the table more readable and to implicitly mark entries that are defined - Minor improvements to "drm/i915: cache number of MOCS entries" (suggested by Tvrtko) - Reorder patches to avoid unneeded changes (suggested by Tvrtko) Lucas De Marchi (5): drm/i915: initialize unused MOCS entries to PTE drm/i915: Simplify MOCS table definition drm/i915: use a macro to define MOCS entries drm/i915: keep track of used entries in MOCS table drm/i915: cache number of MOCS entries Tomasz Lis (2): drm/i915/skl: Rework MOCS tables to keep common part in a define drm/i915/icl: Define MOCS table for Icelake drivers/gpu/drm/i915/intel_mocs.c | 356 ++++++++++++++++++------------ 1 file changed, 211 insertions(+), 145 deletions(-)