Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp358364rdb; Thu, 30 Nov 2023 06:47:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IEI9hud2Y1Z5N4B8fH2yCr3qoRvaO8CTTFIX/B1TX5VeJ+nspF9RCAgvwAITRvw2fAQX7bq X-Received: by 2002:a17:902:db0d:b0:1cf:cc0d:9600 with SMTP id m13-20020a170902db0d00b001cfcc0d9600mr15570042plx.24.1701355640009; Thu, 30 Nov 2023 06:47:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701355639; cv=none; d=google.com; s=arc-20160816; b=QyGCcan3ZoIHseFp2V95r1FLgZZJrKbo3Gv4SO9t/bMZSFhJAOk5N/FoU25o6xu93F I7Du2WZz1TMKF+/jL+YQnICylnEUdho+j4lYJV6Tc2PXKM+44IcK4twHdI6TwZDD9Ta+ Uj/JNsC6NrDBtRHciMYTn4cQq/gjz36GF2GBffBvYBYwrOZy9FYjJsk+7evZ0rUdzj1R oSfNeZlpRWYpWMbIhcE75aLxCYYJbwIxUY/T0qAScW2NQURppR752XRvJ+ezmfeTKwrv fRwv2hpo/fo1eDjAefXPszkX/0B2SFECbyJkVcHvxvfM/1udSVFhIEX9INyWM39yqJac b2hQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=PA2kbcrArlQjJ5hlbaiT3iKK7yFlkUAqi4STneMG/UI=; fh=xyWemOxvSb545DDObpSzGf6Gn9gwaPZsAkvRQc6PrAo=; b=NQSZ8YX1/Z9ymIAQ0WasOzWDx8/93gSfKYHVMilQuv+r8cCoxnxk1DRYE7Lzgmbgy4 KGJYi/mYVU0cdZzIJEL6V7L/RYo5K65tNOExAYt1JehXAMSap95QQaPskOOYQtpq9Re6 tb9rnYN4iYzrloX60I6K5k6sOdqJIhgvcxxkmegR2anKF6v18X9AwS0X2u5L1mmU5IdI ihUGHk9WP1x2KBIO3TXNvdJeWHlakZ9Ef3/SwtFkcWQf2fzfCAWbTJYCl5U1P8DLHj8y f/H/lVSF8Fx80PqE4aRcLI3XYtPySD0BKa4POzE3BgF8pgRy8KLAs7nHygGTeB68rUeg XntA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Z07Tt3+J; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id m7-20020a170902db0700b001cfee3a03a4si1405723plx.467.2023.11.30.06.47.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 06:47:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Z07Tt3+J; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 6CBCE8097884; Thu, 30 Nov 2023 06:47:18 -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 S1346025AbjK3OrF (ORCPT + 99 others); Thu, 30 Nov 2023 09:47:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232192AbjK3OrE (ORCPT ); Thu, 30 Nov 2023 09:47:04 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70BA093 for ; Thu, 30 Nov 2023 06:47:11 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1D5E9C433C9; Thu, 30 Nov 2023 14:47:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701355631; bh=dNJWSo8E6GQ4fVWyXjpzy+fiTadQolXDNmtZRzZe2RQ=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Z07Tt3+J1NH+TmhZzsMsKbN95ezIMx9gO6IVPWDmheCO7/DZ4cIc3mKfBZkYG+mk8 DNjfF191aWJFzXt0tFERiWHMAhCgsUjIMtj0QjSyiYuScgky6GROZfN8oFVsLLV8Fh kqUsT5L/F04a2czctAFDaowp8TqZT5l2nFUBoQckD9o2xcx7hAQrMFTy0fQMeVc0TG Lx4Qsr+T9b7kqpyawUYdIeCbTpQdjuheHKqbeEr8vpcuV9DSItgV6Fp5A54853lPov QO6cnUqaX+qLgfYjV6oNryejUGgDSHhBDXDVii8gxX9wkIly2gFjzYAnGFkm8fnsP1 fNhXSojcCqUQw== Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-a19067009d2so66573366b.3; Thu, 30 Nov 2023 06:47:11 -0800 (PST) X-Gm-Message-State: AOJu0YwdDh55HylaVCV88VA6iW8d8GpOlRpPiMXw1/9mt9ipMujcw6xg rR4SWYooanPfwOPEXuSsW0u4ULMcIWqKyPzaXg== X-Received: by 2002:a05:6512:2102:b0:50b:c543:c4cf with SMTP id q2-20020a056512210200b0050bc543c4cfmr3437536lfr.6.1701355609063; Thu, 30 Nov 2023 06:46:49 -0800 (PST) MIME-Version: 1.0 References: <950378c6f39270a255452733ff2305e56fb05cc5.1701268753.git.robin.murphy@arm.com> In-Reply-To: <950378c6f39270a255452733ff2305e56fb05cc5.1701268753.git.robin.murphy@arm.com> From: Rob Herring Date: Thu, 30 Nov 2023 08:46:36 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/7] OF: Retire dma-ranges mask workaround 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 , Frank Rowand , Marek Szyprowski , Jason Gunthorpe , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-acpi@vger.kernel.org, iommu@lists.linux.dev, devicetree@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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]); Thu, 30 Nov 2023 06:47:18 -0800 (PST) On Wed, Nov 29, 2023 at 11:43=E2=80=AFAM Robin Murphy wrote: > > From what I remember, the fixup adding 1 to the dma-ranges size was for > the benefit of some early AMD Seattle DTs. Those are likely extinct by > now, and anyone else who might have deserved to get the message has > hopefully seen the warning in the 9 years we've had it there. The modern > dma_range_map mechanism should happily handle odd-sized ranges with no > ill effect, so there's little need to care anyway now. Clean it up. The commit has a tested by for Seattle, but the series adding this was for an issue on TI Keystone[1]. Looks like the patch adding this fixup and warning did 2 things. It added 1 to the default mask when 'dma-ranges' was not present (which keystone needed) and added 1 if the DT value was a mask along with the warning. It's not clear what Seattle needed, but there was a fix to dma-ranges about a year later[2]. I thought at some point we allowed 32-bit DTs to specify a ~0 size to avoid having to use 2 cells to express 4G size which wouldn't have been a warning, but I can't find any discussion on that. It would have been earlier than 2015 I think... Anyways, there is no upstream dts with that either, so I think we're good. > Signed-off-by: Robin Murphy > --- > drivers/of/device.c | 16 ---------------- > 1 file changed, 16 deletions(-) Acked-by: Rob Herring [1] https://lore.kernel.org/all/1425405134-24707-1-git-send-email-m-kariche= ri2@ti.com/ [2] https://lore.kernel.org/all/1455162671-16044-4-git-send-email-Suravee.S= uthikulpanit@amd.com/