Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 743CBC433EF for ; Mon, 25 Oct 2021 17:29:46 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3928460EBD for ; Mon, 25 Oct 2021 17:29:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 3928460EBD Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=collabora.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id AD97789F2D; Mon, 25 Oct 2021 17:29:45 +0000 (UTC) Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by gabe.freedesktop.org (Postfix) with ESMTPS id D3C0189F2D for ; Mon, 25 Oct 2021 17:29:44 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: bbeckett) with ESMTPSA id 6C2A21F432E7 Message-ID: <1b8cc48a-1819-b996-e882-738c6f2a181b@collabora.com> Date: Mon, 25 Oct 2021 18:31:20 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 To: intel-gfx@lists.freedesktop.org References: <20211021142627.31058-1-ramalingam.c@intel.com> Content-Language: en-US From: Robert Beckett Cc: ramalingam.c@intel.com In-Reply-To: <20211021142627.31058-1-ramalingam.c@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Intel-gfx] [PATCH v2 00/17] drm/i915/dg2: Enabling 64k page size and flat ccs X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 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" (apologies for not quoting, I wasn't subscribed before now) some quick thoughts: - Can we split these patches in to two series, one for each topic. They don't seem specifically related. - to simplify 64K page support, could we just set minimum allocation size to 64K and round up for allocation requests? Placement then becomes much simpler, no need to align the va to 2MB, just fit it in wherever it fits and always use 64K PTEs in GTT This would simplify the code a lot and would benefit performance due up to 16x fewer page walks. If we did this, we would not have to consider 2MB boundaries at all, we could drop all the colour handling etc. The only down side might be some waste of allocation if there are lots of very small buffers. However, I think most gfx related use cases would not be badly affected by this (even a cursor plane is 64k, usually). Are there any usecases that you are aware of that would be impacted badly by this idea? (maybe some compute workload?) - flat ccs modifiers: there seems to be some confusion over whether there should be a separate modifier for this. As it dictates a new layout it seems like it should be a new modifier. Was there any internal discussions about this that you could elaborate on here?