Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3638752pxb; Mon, 24 Jan 2022 14:08:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJwmxuVuphBxsW6Kx1t0w5kXs3Szr9xBTXzCCuItgjIDyzhdpE07bT33lYSteAbk1CdiIK/2 X-Received: by 2002:a63:5b1c:: with SMTP id p28mr12984745pgb.454.1643062106203; Mon, 24 Jan 2022 14:08:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643062106; cv=none; d=google.com; s=arc-20160816; b=BG6X0QSyqMFxZbbQn7OyWK8fY9UoSbvBIJYECh4Eqz0iGtKX87/rMWJ0RaeduYEykQ 13YegJkvgSGnYuOTtA+3Rh1UjkEAGjr0OwQyiqFAVidSRl6mM/z4Cr+k82MEubERQwWh Dz3x2gcWrPzm4lWK3U6wcgxyxf9Rsm7t0l7Ui843shTNL77hNBi2Ena/Yb49sYeOWLUB nYaCa2Zpg6efq7dYLlGMSCZ0vzAWkISBACx9bG6VUqIrHy6Uh72TYJ+3dtsANFQqQ0R2 8/qV+N0IQ+qBu3yaMYJX1ZQtZgs87YblbllJ66b53QlMxYBEzudxi6DIK5JD71h+MzAR 7WPg== 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=iDQYsZKu55DivnIBlHn2zZjZrmLQoKRNwkVy6AWFFfw=; b=sSZr5wSe1M/SguEh+6Ftm8CSWj1IFXTZQ8aK/S9prNb7x18+ssIhTuHzVA5GbzJcue 4NUExxBmjehQSi44COGfP+Q670q8JOo8BE0j6kPCO6a2/abbnSt3xsdO/LpI4ejmXHf6 F5e9jjszNs4mssPMo3TpEEEuj1rr9ipot9cTRZfaMu4XYqD18gUx0A1hzCB7J5RDxTIj y6hkcuEnXTJqKrlhkRfvp0TkHQ4pjUdIozPWWs8dA7JBePXr8Q0SvRBnd1/0aLEOBMtu b94RLYlrJQRNqOJVfjB5eOe54FVipmbK+JscShuXCwOh4wqB1DvFWYmyCusmK7suUJs7 uUgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=sb3ptaBD; 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 e20si7657360pfv.362.2022.01.24.14.08.07; Mon, 24 Jan 2022 14:08:26 -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=sb3ptaBD; 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 S1576836AbiAXV4e (ORCPT + 99 others); Mon, 24 Jan 2022 16:56:34 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:38404 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378451AbiAXVRb (ORCPT ); Mon, 24 Jan 2022 16:17:31 -0500 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 B574161320; Mon, 24 Jan 2022 21:17:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8D048C340E4; Mon, 24 Jan 2022 21:17:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643059048; bh=+JhNhfhX4CzHKo6zamglhaOW+gem5nuxs1xCVr/STrw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sb3ptaBDq6E4OnMUQMJ++lRxS0o/iOIgFzjy71iMHv39PsitKBNC6Zx7VblUO5Z6l j7454LWmHJrtps6LTXkBICMICE1wOeC1K9M0k/23Q+gRVCGBOxIcJ8zsk0GDbXKUBY KhjfFGQT1UKhCaQULikkAZZyVqSgfoI2lr2t3Z6w= 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.16 0488/1039] of: unittest: 64 bit dma address test requires arch support Date: Mon, 24 Jan 2022 19:37:57 +0100 Message-Id: <20220124184141.675082704@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184125.121143506@linuxfoundation.org> References: <20220124184125.121143506@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 02c5cd06ad19c..35af4fedc15de 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