Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp6210991pxb; Thu, 27 Jan 2022 08:44:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJwZ7VGXJYJI0b8Y2TC5bEpKGdjy37hwHN/EcI+hCd+3cq5liQ+Dh3P085UO9GV3jfDniQ+1 X-Received: by 2002:a05:6a00:16d3:: with SMTP id l19mr3483867pfc.7.1643301883678; Thu, 27 Jan 2022 08:44:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643301883; cv=none; d=google.com; s=arc-20160816; b=j8Y1sO7Gcv0pp2bFR0cI6r190NDSVPuwWV7CIglwlYi93cH/KckXkuvRB7jB/WI79g eVowehGxC+L0GY7kilB2oplmxKNaaAiehZcyNEbIflfWq3XxqYNTtt/VmFONeo+2FSt6 apg+dYHJrghLAh4E1qo9BjOODQ07m5QUex/eSoIpTB5h9hKmj1YfjMaUbSspnwQeDGNx mrVLmFTeQIF8PGszNuNbvJPTRM44Bd1A4blhkOsVtu+TojbyKp45GLHb0NhzKm7jVNqt /fBLsqjikJwSDuqZb3/aK77cMFI1bx4kaMYTb/lU5EKHlVXRObYucXQiR6dEiB5MogkR 9MQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=sVvrdZ0dKbXblAFk67KRXgkx5QIhyys5fB1JntA1h9E=; b=lMtpi8EqirYICkhZhVROwIraYFo4n55LxKnqk2uDWqOFZLxUXMvAJpibg8XQlQPLyd iTKMfDtj3yYscWyVgzPefAzmtXSKJDfCWSzui6UI0MvYHudmKOqtKalyuxWmlk32mgE+ Xkf4tb9rSwutrcr43yGhmMCr0rP7G1JtzQuyQjDiRDS7MpyGhy5ge6pfNTwWnGOnhneS yhsIULbbCdt64wZXvc9sKOA6YMtAkej3MnXQrIe3ffBQUP+nHsDaNJELsd4OnjbofeBB 9rsarbJOCKEvLDPw753o8WqpDypt5U4dEFKnMxI7jDHdwkyHpOwyIjTOoMQPHP3scdIx 3OzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@shipmail.org header.s=mail header.b=kFJ4XKzu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lb6si5893723pjb.42.2022.01.27.08.44.31; Thu, 27 Jan 2022 08:44:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@shipmail.org header.s=mail header.b=kFJ4XKzu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238660AbiA0JiE (ORCPT + 99 others); Thu, 27 Jan 2022 04:38:04 -0500 Received: from ste-pvt-msa1.bahnhof.se ([213.80.101.70]:60002 "EHLO ste-pvt-msa1.bahnhof.se" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229864AbiA0JiC (ORCPT ); Thu, 27 Jan 2022 04:38:02 -0500 Received: from localhost (localhost [127.0.0.1]) by ste-pvt-msa1.bahnhof.se (Postfix) with ESMTP id F22253F6A1; Thu, 27 Jan 2022 10:38:00 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at bahnhof.se X-Spam-Flag: NO X-Spam-Score: -2.1 X-Spam-Level: X-Spam-Status: No, score=-2.1 tagged_above=-999 required=6.31 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no Authentication-Results: ste-pvt-msa1.bahnhof.se (amavisd-new); dkim=pass (1024-bit key) header.d=shipmail.org Received: from ste-pvt-msa1.bahnhof.se ([127.0.0.1]) by localhost (ste-pvt-msa1.bahnhof.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HV0cfcZUN293; Thu, 27 Jan 2022 10:37:59 +0100 (CET) Received: by ste-pvt-msa1.bahnhof.se (Postfix) with ESMTPA id CD9B13F636; Thu, 27 Jan 2022 10:37:57 +0100 (CET) Received: from [192.168.0.209] (unknown [192.55.54.50]) by mail1.shipmail.org (Postfix) with ESMTPSA id D6B953626A5; Thu, 27 Jan 2022 10:37:52 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=shipmail.org; s=mail; t=1643276277; bh=T0bnNFvqHkTrNJF5LWMl+KiCnilYvzbUtJvNeImUEEk=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=kFJ4XKzuXOQC0TqVyxd9+200cUOqF0fpOQc+cIWPB9f8pDi92dAI8UaAl+LftpA0v FgO4ULBJxdhBdRUm/DTLJZMXkPkylDIfQuduMVrRJcWOO5xtK9Dn1M7MBQa9D59KaK 9aJaqv2K4c/kusNguko16tV8oCOWfaIMbCMzXQgc= Message-ID: Date: Thu, 27 Jan 2022 10:37:49 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0 Subject: Re: [Intel-gfx] [PATCH v5 1/5] drm/i915: add needs_compact_pt flag Content-Language: en-US To: Robert Beckett , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , David Airlie , Daniel Vetter Cc: intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Matthew Auld References: <20220125193530.3272386-1-bob.beckett@collabora.com> <20220125193530.3272386-2-bob.beckett@collabora.com> <6d0a57e7-daf7-6436-e806-7cc8794c2d50@shipmail.org> <19bf8290-9308-b5c6-eb73-4020fa81aa66@collabora.com> From: =?UTF-8?Q?Thomas_Hellstr=c3=b6m_=28Intel=29?= In-Reply-To: <19bf8290-9308-b5c6-eb73-4020fa81aa66@collabora.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/26/22 18:11, Robert Beckett wrote: > > > On 26/01/2022 13:49, Thomas Hellström (Intel) wrote: >> >> On 1/25/22 20:35, Robert Beckett wrote: >>> From: Ramalingam C >>> >>> Add a new platform flag, needs_compact_pt, to mark the requirement of >>> compact pt layout support for the ppGTT when using 64K GTT pages. >>> >>> With this flag has_64k_pages will only indicate requirement of 64K >>> GTT page sizes or larger for device local memory access. >>> >>> Suggested-by: Matthew Auld >>> Signed-off-by: Ramalingam C >>> Signed-off-by: Robert Beckett >>> --- >>>   drivers/gpu/drm/i915/i915_drv.h          | 10 +++++++--- >>>   drivers/gpu/drm/i915/i915_pci.c          |  2 ++ >>>   drivers/gpu/drm/i915/intel_device_info.h |  1 + >>>   3 files changed, 10 insertions(+), 3 deletions(-) >>> >>> diff --git a/drivers/gpu/drm/i915/i915_drv.h >>> b/drivers/gpu/drm/i915/i915_drv.h >>> index 44c1f98144b4..1258b7779705 100644 >>> --- a/drivers/gpu/drm/i915/i915_drv.h >>> +++ b/drivers/gpu/drm/i915/i915_drv.h >>> @@ -1512,12 +1512,16 @@ IS_SUBPLATFORM(const struct drm_i915_private >>> *i915, >>>   /* >>>    * Set this flag, when platform requires 64K GTT page sizes or >>> larger for >>> - * device local memory access. Also this flag implies that we >>> require or >>> - * at least support the compact PT layout for the ppGTT when using >>> the 64K >>> - * GTT pages. >> >> Why do we remove these comment lines? > Because HAS_64K_PAGES now means just 64K page, it no longer means also > requires compact pt. > This is to support other products that will have 64K but not have the > PDE non-sharing restriction in future. > > Those lines moved to the next change NEEDS_COMPACT_PT, which is now > separate. Yes, NEEDS_COMPACT_PT indicates that compact is *required* but does "HAS_64K_PAGES" still mean compact is supported? That information is lost. /Thomas