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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 41AF7C61DA4 for ; Wed, 15 Mar 2023 15:39:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232250AbjCOPjD (ORCPT ); Wed, 15 Mar 2023 11:39:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231405AbjCOPjA (ORCPT ); Wed, 15 Mar 2023 11:39:00 -0400 Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D678D321; Wed, 15 Mar 2023 08:38:59 -0700 (PDT) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 984835C0526; Wed, 15 Mar 2023 11:38:58 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Wed, 15 Mar 2023 11:38:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shutemov.name; h=cc:cc:content-type:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1678894738; x= 1678981138; bh=ush8ME0jEakHYg80k1g2osTICDPTTulGFVSfscZli7k=; b=c 5Ff4yD36w41DKPma3HDdgIFg7AtVNZDC60XK8998GcBVLO3wL4D6I/qIcLyXh27m bCyrvJblAbOvAEEjc/iwujurPhajGIdERxogM81s+14yitqMHYsP1CR6D4ZxS1o+ t3hKAZLVygO9+IBOcs1oIuG59Jp088hOUBLEEcCNGbi7QIXwZ8gu2vSC9YrgiaKA Bix70JCboKiS3pisEPsPOp4zoMWUDjkBtxmQRj1ClZWQVwl9zoWuZJKUMRRfLyMi qITlkCycukFLeztfi4ZaIusDLJ5wrDdVrPBuS2qG4qEBTNW79wp13mhX5i+1/v9T BkE9s4yGHUmlO2Q60jVvQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1678894738; x=1678981138; bh=ush8ME0jEakHY g80k1g2osTICDPTTulGFVSfscZli7k=; b=Uq4dZKnF9dgnEFNEmwMyZFcFO6mXZ kVXn0skZTXHybY4KdfGC06+UK7lLMT+Vw9Tl6JQtlNmAJvmwdomjy/Kvk5GCj7+s Gcn5ZM4WxrwOjvcVjYimycPoQRGb78xXeIDy+gUHzBlPdrQfHiOAqgtFEC0VtdaA g4piQpywGHLOT28nSauuYgOnbIog+gUPnwu99L3PDFQsqhQU2Erhw3ltS+dVTq/6 +5bhAVuGrhLc7uE8LsTXovTTByBP0gnxgvSYHiwvVkg4S4VO2rlhNpGy191akjiA tFcYQdJz6S1P3pRo+9M7AC0nUEfhYSaEb/0h3fH+gb+LJEnkv8/HKtorQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvddvkedgjeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesthdtredttddtvdenucfhrhhomhepfdfmihhr ihhllhcutedrucfuhhhuthgvmhhovhdfuceokhhirhhilhhlsehshhhuthgvmhhovhdrnh grmhgvqeenucggtffrrghtthgvrhhnpeffhedvveeuheeljedtkedtkeeiieekgedtveeu tdejkeevudffudfgveeggfduvdenucffohhmrghinhepkhgvrhhnvghlrdhorhhgnecuve hluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepkhhirhhilhhl sehshhhuthgvmhhovhdrnhgrmhgv X-ME-Proxy: Feedback-ID: ie3994620:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 15 Mar 2023 11:38:57 -0400 (EDT) Received: by box.shutemov.name (Postfix, from userid 1000) id 05A9A10C8DF; Wed, 15 Mar 2023 18:38:56 +0300 (+03) Date: Wed, 15 Mar 2023 18:38:55 +0300 From: "Kirill A. Shutemov" To: Tvrtko Ursulin Cc: "Kirill A. Shutemov" , Andrew Morton , Mel Gorman , Vlastimil Babka , David Hildenbrand , linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, Jani Nikula , Joonas Lahtinen , Rodrigo Vivi Subject: Re: [PATCH 04/10] drm/i915: Fix MAX_ORDER usage in i915_gem_object_get_pages_internal() Message-ID: <20230315153855.aeqyxncf3k6yqipl@box> References: <20230315113133.11326-1-kirill.shutemov@linux.intel.com> <20230315113133.11326-5-kirill.shutemov@linux.intel.com> <7fe9a4a0-9b30-38db-e739-1dc1f7a8f74e@linux.intel.com> <20230315152802.gr2olzji5zhu6vdo@box> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 15, 2023 at 03:35:23PM +0000, Tvrtko Ursulin wrote: > > On 15/03/2023 15:28, Kirill A. Shutemov wrote: > > On Wed, Mar 15, 2023 at 02:18:52PM +0000, Tvrtko Ursulin wrote: > > > > > > On 15/03/2023 11:31, Kirill A. Shutemov wrote: > > > > MAX_ORDER is not inclusive: the maximum allocation order buddy allocator > > > > can deliver is MAX_ORDER-1. > > > > > > This looks to be true on inspection: > > > > > > __alloc_pages(): > > > .. > > > if (WARN_ON_ONCE_GFP(order >= MAX_ORDER, gfp)) > > > > > > So a bit of a misleading name "max".. For the i915 patch: > > > > > > Acked-by: Tvrtko Ursulin > > > > > > I don't however see the whole series to understand the context, or how you > > > want to handle the individual patches. Is it a tree wide cleanup of the same > > > mistake? > > > > The whole patchset can be seen here: > > > > https://lore.kernel.org/all/20230315113133.11326-1-kirill.shutemov@linux.intel.com/ > > > > The idea is to fix all MAX_ORDER bugs first and then re-define MAX_ORDER > > more sensibly. > > Sounds good. > > Would you like i915 to take this patch or you will be bringing the whole lot > via some other route? Former is okay and latter should also be fine for i915 > since I don't envisage any conflicts here. I think would be better to get it via mm tree. -- Kiryl Shutsemau / Kirill A. Shutemov