Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3667636pxb; Mon, 24 Jan 2022 14:54:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJwEUGTZTV74PJuOFAnJdJXWX0cPgT9PyyW/SkPPF8Dvsd83Wc2L1X+jCndCgebpsGidd95I X-Received: by 2002:a62:7c45:0:b0:4c6:d403:f27c with SMTP id x66-20020a627c45000000b004c6d403f27cmr15713231pfc.81.1643064854265; Mon, 24 Jan 2022 14:54:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643064854; cv=none; d=google.com; s=arc-20160816; b=R+TbBLkEw6iVZGhBM2TTLaMOEMzUypk8ZoUF7JJYo3G1vJcIaM+8+Rl7xp07j/VHsL DwKUG3TK5vaDh8D5KNgReWezqsWyQ9ciHLMO8WCMNZ0w8u8JY1M/eSF6xR9zRVK1/I7s fHAHxcdrfeCVd6dKK28iTusmeHr3ZNPE6c1WQmfaEasgTAljTFTgi6bgjt9fC98GVNnO JSbt727NTKzlXWilzf5Gt0IvG0pnmgAvHxEsDX0OTPqqTGicqy6ibVzAlKSR0ACehzz7 S2Yo2lvlDmllFOl9Pc2zft7EwHNgx9nmBj+boggll64YML48Ax8TH76vAqLn1rUq9YhT ZISw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=vySOAQzphguq3tGPC7SIAiYzDoLyfOG+2FXvaNsmjOA=; b=WdJr53eh7EwDV6xHMFiCu3uwI9roQllu6UH84Rec/sWe1TrmJgIMP9l6+JJn0K7HRc hJ9oxNBCE+TDQ9CsrFnTJg20YpSi3iI6f7Qa4jPdgQl8YI1YnzNVIFBqT7/a+dOHkQEH 21x7kNZdWmC0WokjLG2QOzuENc6c4IbWxf4e2C/o2h7uMFykWNGerpDfhqdXKrc6kOJ/ WJ1/isvSSdjj1qSDevTSgtrtRvUN+OyAC5BZOHVKp5ODWMlu5iJLDktVhitS33QgbZsP 9tNU8FtouvFS/57AA1AH/EKJCxyrHKygzb2Wl7I+JYC5YDvyg+p3YAWd+s4oIZbslzvp HicQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=eSPBnFK4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d2si5523275plh.495.2022.01.24.14.54.02; Mon, 24 Jan 2022 14:54:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=eSPBnFK4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1839587AbiAXWvY (ORCPT + 99 others); Mon, 24 Jan 2022 17:51:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1458106AbiAXVmp (ORCPT ); Mon, 24 Jan 2022 16:42:45 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D40E3C0612A9; Mon, 24 Jan 2022 12:30:27 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7207561531; Mon, 24 Jan 2022 20:30:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 52AE9C340E5; Mon, 24 Jan 2022 20:30:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643056226; bh=4kDAZJSYjqU7WDjd8+sdFj7h1cSKrs5tQjpUpiG2R98=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eSPBnFK404nMnLQvpuCBKEdaOoIDEAgyMdYv+QD10lgWktZ2aSncNboU3EF4XMjBq bBWb/+Wq5vjv8CqQzmGLfwZXlz12zxBqw3bu0TYkbR6o1TAy5cav9J/i9WVeXEPw8V G337G1cm4yWe6wCFu7hCdEF7yKJ4QcCU/Hl+WADo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Frank Rowand , Rob Herring , Sasha Levin Subject: [PATCH 5.15 414/846] of: unittest: 64 bit dma address test requires arch support Date: Mon, 24 Jan 2022 19:38:51 +0100 Message-Id: <20220124184115.252756385@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184100.867127425@linuxfoundation.org> References: <20220124184100.867127425@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Frank Rowand [ Upstream commit 9fd4cf5d3571b27d746b8ead494a3f051485b679 ] If an architecture does not support 64 bit dma addresses then testing for an expected dma address >= 0x100000000 will fail. Fixes: e0d072782c73 ("dma-mapping: introduce DMA range map, supplanting dma_pfn_offset") Signed-off-by: Frank Rowand Signed-off-by: Rob Herring Link: https://lore.kernel.org/r/20211212221852.233295-1-frowand.list@gmail.com Signed-off-by: Sasha Levin --- drivers/of/unittest.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c index 242381568f13c..2bee1d992408f 100644 --- a/drivers/of/unittest.c +++ b/drivers/of/unittest.c @@ -942,8 +942,9 @@ static void __init of_unittest_parse_dma_ranges(void) { of_unittest_dma_ranges_one("/testcase-data/address-tests/device@70000000", 0x0, 0x20000000); - of_unittest_dma_ranges_one("/testcase-data/address-tests/bus@80000000/device@1000", - 0x100000000, 0x20000000); + if (IS_ENABLED(CONFIG_ARCH_DMA_ADDR_T_64BIT)) + of_unittest_dma_ranges_one("/testcase-data/address-tests/bus@80000000/device@1000", + 0x100000000, 0x20000000); of_unittest_dma_ranges_one("/testcase-data/address-tests/pci@90000000", 0x80000000, 0x20000000); } -- 2.34.1