Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4965290rdh; Wed, 29 Nov 2023 16:40:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IG8HcyJKwhKsYHiYBqmJis3Gx39tCYCbnYfxie31vNtsZc4ypZiNdLvl90mAxQrfj39PSt9 X-Received: by 2002:a17:902:ce88:b0:1d0:220b:f24d with SMTP id f8-20020a170902ce8800b001d0220bf24dmr2861021plg.31.1701304799711; Wed, 29 Nov 2023 16:39:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701304799; cv=none; d=google.com; s=arc-20160816; b=fFBRRFpM4LCoTvA3BEEdn630OL/9tazCG5jLOV9yBWgQ9fgUeXDf6Wesra6YOdT5lX mC/Ad3qxEeK/+C7VfEmwqY2TpD/6hKmpDIH9kP3tTzUzfCM5fw5EMPd34mZTqHaMG6Tl g7pMcYJRdF3iQu/29K3ytjG/zAS3cA0gehk0VsxBDSQOjeuNLe/j+aVQbfxb810gTjEK VvrI9vhp/SZl1+Ce98f8hxZZ8/kQzopzk8V7Q3Ze9VyNF2BA0kY9tZq77BWzXMq3bQ28 ZVh8E8ajUMKUN5dA6zixqybIJV49qqvxxa0A3cZOB6XyfPN1ufIQUSQ1tGwDScMUtW8U 1pBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=dqKTf6r/9DX5X0G9N0YPszfAss74aB4UlJwKc4ipXlY=; fh=6tWgUIFJ7duv5X0bhqu3rfGsa66d7jCAOHHHXIXCUCc=; b=grAYtR9obY40PxA5Oc77DMvHQJLQkS4wwgBNbcy6pZzt7Z9oH5N+9r+aD6wDZG1gY2 l7mec7k7MCVGVILJ7kOhgTVvsH4MFMHCARld7SKm2/2yILCOQ3W2Sz4hTOoHhg965+oG jOGMhr7lpbVPRvUnCuEIspie0To1kux09IUNDeRfCLXXU1aiQvlfVB3G+9AQPPs7/35s etD9AVtP7HGs19O+MVjblAdoLI6JQGOxbFwAYvI1E913g+RqBUE4aNGU1fKFGBDypNJE KerfZokI0AaLPsbTFy/5bZzNeYKNL0qMSh8AAx8y8hi/cSb69cetOHbDpt6v0oRSTqSr GRpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=gJeX5uHA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id g12-20020a170902934c00b001cfba8ff230si9480591plp.268.2023.11.29.16.39.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 16:39:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=gJeX5uHA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 02539802C6BE; Wed, 29 Nov 2023 16:39:58 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229677AbjK3Ajs (ORCPT + 99 others); Wed, 29 Nov 2023 19:39:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231417AbjK3Ajr (ORCPT ); Wed, 29 Nov 2023 19:39:47 -0500 Received: from mail-oo1-xc35.google.com (mail-oo1-xc35.google.com [IPv6:2607:f8b0:4864:20::c35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70B051A6 for ; Wed, 29 Nov 2023 16:39:53 -0800 (PST) Received: by mail-oo1-xc35.google.com with SMTP id 006d021491bc7-58d439e3e15so179402eaf.1 for ; Wed, 29 Nov 2023 16:39:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1701304792; x=1701909592; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=dqKTf6r/9DX5X0G9N0YPszfAss74aB4UlJwKc4ipXlY=; b=gJeX5uHA1xRqlJ/NiA8klcilclFAkpTYoxKBf2ye+8qryZEh2tC6Ns0dAY8FdjXziV ZUDnlI8kYjSxCj9nAOh37pJd+ErExStgh7MgF5jPSpwIg0JcOyZ/+wKLRKoWBSCMbT1F PxL0Jom0KbNcioSagO/WECnaxufHktzDqUznGVUXUlp7hXviyKPQPc7F9p7kwjQRN9zl XKd1RWv6bCXpJ+fHMPYZLSUnKVtgMsPyq5ypXQvxsU7o7Q/0gqU2Oex6U1sjV1jpOPFs AvdabnAch/SxZjfHaDOZXkcy4ooJrMuH/piV/3/s5PI3fB5FQnZc4oN/Uwuh/k/7GBQz EU2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701304792; x=1701909592; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=dqKTf6r/9DX5X0G9N0YPszfAss74aB4UlJwKc4ipXlY=; b=PKDXWaAlCVHRK7ngM+Ix3P40IcO8ub8b0XcPCj0nuDz4dLCnFkBbB9CZdthFEmxSU7 H49EFxsBn4kP4nbKxFANhDh6iwZrnkmiAnerXKwA8h0lgkk6nsc4p2uB+BAtePc7bK6/ 2oglZ9Te+cdxqT7Ns8zN7CxkGPPFhgOxRbpecMlZYNrRqGJsM0ojbH+euvdvetP0ivxu SiJsIcfYo5COkylzFAZhMcCLzfGKz3tIInOE8wNcEKd0nHWOO1kCEMAO0xokCmBN8SDj qacR5mGkwXGg9rkEP2mX84KxyGMg7GjEIWpuknrS0LQlT3ItqqeD2rqXU3rYG/H+ji8k 81gw== X-Gm-Message-State: AOJu0YyRpSep+OJmpqf2My0gHD04UY5s5ixflKjzbs2dsNS8k8VFQraa zkFDaMHG6WbcYzKgg/JT+FUmDg== X-Received: by 2002:a4a:a645:0:b0:58d:6bf6:4daf with SMTP id j5-20020a4aa645000000b0058d6bf64dafmr7941560oom.2.1701304792652; Wed, 29 Nov 2023 16:39:52 -0800 (PST) Received: from ziepe.ca (hlfxns017vw-142-134-23-187.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.134.23.187]) by smtp.gmail.com with ESMTPSA id i14-20020a4aab0e000000b0057327cecdd8sm2410792oon.10.2023.11.29.16.39.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 16:39:52 -0800 (PST) Received: from jgg by wakko with local (Exim 4.95) (envelope-from ) id 1r8V5r-005qzk-3H; Wed, 29 Nov 2023 20:39:51 -0400 Date: Wed, 29 Nov 2023 20:39:51 -0400 From: Jason Gunthorpe To: Robin Murphy Cc: Joerg Roedel , Christoph Hellwig , Vineet Gupta , Russell King , Catalin Marinas , Will Deacon , Huacai Chen , WANG Xuerui , Thomas Bogendoerfer , Paul Walmsley , Palmer Dabbelt , Albert Ou , Lorenzo Pieralisi , Hanjun Guo , Sudeep Holla , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Suravee Suthikulpanit , David Woodhouse , Lu Baolu , Niklas Schnelle , Matthew Rosato , Gerald Schaefer , Jean-Philippe Brucker , Rob Herring , Frank Rowand , Marek Szyprowski , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-acpi@vger.kernel.org, iommu@lists.linux.dev, devicetree@vger.kernel.org Subject: Re: [PATCH 3/7] ACPI/IORT: Handle memory address size limits as limits Message-ID: <20231130003951.GA1394392@ziepe.ca> References: <2ae6199a9cf035c1defd42e48675b827f41cdc95.1701268753.git.robin.murphy@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2ae6199a9cf035c1defd42e48675b827f41cdc95.1701268753.git.robin.murphy@arm.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 29 Nov 2023 16:39:58 -0800 (PST) On Wed, Nov 29, 2023 at 05:43:00PM +0000, Robin Murphy wrote: > Return the Root Complex/Named Component memory address size limit as an > inclusive limit value, rather than an exclusive size. This saves us > having to special-case 64-bit overflow, and simplifies our caller too. > > Signed-off-by: Robin Murphy > --- > drivers/acpi/arm64/dma.c | 9 +++------ > drivers/acpi/arm64/iort.c | 18 ++++++++---------- > include/linux/acpi_iort.h | 4 ++-- > 3 files changed, 13 insertions(+), 18 deletions(-) Reviewed-by: Jason Gunthorpe Jason