Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9C673C47082 for ; Tue, 8 Jun 2021 09:50:04 +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 66C8C61008 for ; Tue, 8 Jun 2021 09:50:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 66C8C61008 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id BF3716EB91; Tue, 8 Jun 2021 09:50:03 +0000 (UTC) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2FBA96EB91; Tue, 8 Jun 2021 09:50:03 +0000 (UTC) IronPort-SDR: pzqnwBbBI1rrb5aW8gb404Jh0t6+ty2GMiTGp8jZ8ZF0mTLHQVwW5vqWMgL+q/Sf6/ub8b2o0A X3/GuxM+lOZQ== X-IronPort-AV: E=McAfee;i="6200,9189,10008"; a="192135873" X-IronPort-AV: E=Sophos;i="5.83,257,1616482800"; d="scan'208";a="192135873" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jun 2021 02:50:02 -0700 IronPort-SDR: 5p26V7VOzfpAOcgTgG/MGlF2Kd27ZSUbUNq9wxqmXst40fHV0FJcRMrKo7LVZGxxCjkN1NPPrG uzokEHed8kUg== X-IronPort-AV: E=Sophos;i="5.83,257,1616482800"; d="scan'208";a="447836973" Received: from mkayyal-mobl.ger.corp.intel.com (HELO [10.249.254.115]) ([10.249.254.115]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jun 2021 02:50:01 -0700 Subject: Re: [PATCH v2 6/6] drm/i915/ttm: restore min_page_size behaviour To: Matthew Auld , intel-gfx@lists.freedesktop.org References: <20210608084428.142676-1-matthew.auld@intel.com> <20210608084428.142676-7-matthew.auld@intel.com> From: =?UTF-8?Q?Thomas_Hellstr=c3=b6m?= Message-ID: <03674b49-d1a0-133f-0ad7-0c062536bac0@linux.intel.com> Date: Tue, 8 Jun 2021 11:49:59 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <20210608084428.142676-7-matthew.auld@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On 6/8/21 10:44 AM, Matthew Auld wrote: > We now have bo->page_alignment which perfectly describes what we need if > we have min page size restrictions for lmem. We can also drop the flag > here, since this is the default behaviour for all objects. > > v2(Thomas): > - bo->page_alignment is in page units > > Signed-off-by: Matthew Auld > Cc: Thomas Hellström Reviewed-by: Thomas Hellström