From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E8E7CCF8571 for ; Thu, 3 Oct 2024 09:44:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=nexdZBsHETb40rXlS9NY2eUc1xqTJHnM7XAAWO9cQNk=; b=qXPJVEQd+aJulGz2xNuq2subRr Y62Bjk0Lh17hDSDyJSzbNDv0FvpB4o7qugOEO4uOMEYtpF5VwHGkFM8aByqcTP4coVQwmMq78Efrc uwafn7ASCFD0XYgUsQNGpep8iMpTm981ojJFB/4tstENGAFRMEfvT575nKeCPNgY/LCgyU2LwRysP +qwk9dBnaJxgzWZ3MHM3CNhipYVwmk/VrOcj3HnpftbRrwBRdNsjRClzKqaGzig2BESidRE5aNkc0 P2FaKrgTvJEcKXlfGOc2Aj4/nwNQzqGlroPj3SfXVmiOvtNDUGTGQYD4yVwUQjUnxhTMbvl2Pe64x HZjT8HKg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1swINE-00000008hUH-1dWJ; Thu, 03 Oct 2024 09:43:52 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1swILj-00000008hEt-0i2N for linux-arm-kernel@lists.infradead.org; Thu, 03 Oct 2024 09:42:20 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 2606F5C5B5C; Thu, 3 Oct 2024 09:42:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 37F91C4CECF; Thu, 3 Oct 2024 09:42:16 +0000 (UTC) Date: Thu, 3 Oct 2024 10:42:14 +0100 From: Catalin Marinas To: Steven Price Cc: Marc Zyngier , Thomas Gleixner , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Will Deacon , Suzuki K Poulose , Michael Kelley Subject: Re: [PATCH v2 2/2] irqchip/gic-v3-its: Rely on genpool alignment Message-ID: References: <20241002141630.433502-1-steven.price@arm.com> <20241002141630.433502-3-steven.price@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20241002141630.433502-3-steven.price@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241003_024219_267632_AE609D89 X-CRM114-Status: GOOD ( 10.72 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Oct 02, 2024 at 03:16:30PM +0100, Steven Price wrote: > its_create_device() over-allocated by ITS_ITT_ALIGN - 1 bytes to ensure > that an aligned area was available within the allocation. The new > genpool allocator has its min_alloc_order set to > get_order(ITS_ITT_ALIGN) so all allocations from it should be > appropriately aligned. > > Remove the over-allocation from its_create_device() and alignment from > its_build_mapd_cmd(). > > Tested-by: Will Deacon > Reviewed-by: Marc Zyngier > Signed-off-by: Steven Price Reviewed-by: Catalin Marinas