Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp749786lqb; Fri, 24 May 2024 11:58:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXdawRV8FujL789Wpk/WzfDRaaxwpnMeNejUw2ZZoCIHOKrVgzge9ROiEUVzXOecKScysImMEl9roFEtLanKLgUfkSimqpzVOmDLZlxHQ== X-Google-Smtp-Source: AGHT+IHdsBvVzh3ZWQgWcAxdva3LaKpVrMG86JKdyIjAQsYofq3aQTera6S75T/u1Byd1Lz54J+5 X-Received: by 2002:a17:907:1749:b0:a5e:612e:fd56 with SMTP id a640c23a62f3a-a6264f15f6amr208033766b.52.1716577108344; Fri, 24 May 2024 11:58:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716577108; cv=pass; d=google.com; s=arc-20160816; b=qaivA/itTKmSF/PjiXGth1wbqVSsEPu1updoaBcHMwCUcg1ptsZe6+CZom5V5xLtWY 7P+Rid17qWe7lwAqbrF8aO3oa5lpReull7stUHYJfbEaUcIzJtU3uw0852DJAAEZmuGe zx7oqvRkPj7wALrEzi6FpFYy99wPv+Yv1yE68EgIOQVjeoXfUO/8vAZlL8ggTMqw1Aat 7vY6B1h2SrIeuLkoX8vaAMdw1ad0e3wzKzD9I0TPi2eGtGp33nyMB3kaLGBYqoitZ4o9 +fkeeYpH97NzmGu5/B/1SCmlaGvUKsKUKSfDio90ttJ8SirD/bvemJNkg1QAMWyld2YH GMBw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=gaJ2/2ZC9xmhH/6MleK2a1l8XHvCRgt0iv2l1bIIm7k=; fh=KeTDUfPkrHK6GMBbbSuIAGBa4OYreU9AJTVV0HBWoys=; b=gGLzY76Ak83x8RcXUGCkX31HnR+gkZuHz+o6xZLgTpfD00piiqjbRrSzePsKcYZKxg Vs5Q+XbiF9qaxlBXg0kCuyHBoAVIw/RGn1z91b9DL4FnAf0pRAfs2SI2XKjz1kjT/VAo P8Ao+P2hZkwxigmzcdAY0VE9KRvc1TslbGknhvcxpn4ZhlQpYevw7Yw5QIMoZ++2gmwl QJxoKWrmR1PlWZ1zditNPcwQ2M74vGUBCdKyJlgndbO5uerhedVgpbQZ9v7OeWyONahS gNdv5m5Bxt+o+KTemN8ThGz8DohYDABgCTGBs/HcqRuZIHlAnyzAGvIgBzsG5TfE4QQq BxyA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@raspberrypi.com header.s=google header.b="Nmvhk/tz"; arc=pass (i=1 spf=pass spfdomain=raspberrypi.com dkim=pass dkdomain=raspberrypi.com dmarc=pass fromdomain=raspberrypi.com); spf=pass (google.com: domain of linux-kernel+bounces-189012-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189012-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=raspberrypi.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a626c91907fsi104487866b.248.2024.05.24.11.58.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 May 2024 11:58:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-189012-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@raspberrypi.com header.s=google header.b="Nmvhk/tz"; arc=pass (i=1 spf=pass spfdomain=raspberrypi.com dkim=pass dkdomain=raspberrypi.com dmarc=pass fromdomain=raspberrypi.com); spf=pass (google.com: domain of linux-kernel+bounces-189012-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189012-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=raspberrypi.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 523191F244EA for ; Fri, 24 May 2024 18:33:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EB27513118F; Fri, 24 May 2024 18:28:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="Nmvhk/tz" Received: from mail-wm1-f100.google.com (mail-wm1-f100.google.com [209.85.128.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5A2655915C for ; Fri, 24 May 2024 18:28:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.100 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716575289; cv=none; b=caQl+N7FOhqS2kT0sSTCAKLr1p34S6IyW3Za6+3c/H/Zd4oyWnHiRIlxotA+f2ddnyckgWzFQhbInk5AnKilANxzwDA0ZtBOsb5zC1bkVQEcQ4OkzogWYKPrEvBSBuCPL+NAjar2pGPGEoDkB8BtcxHbDf11zy2v3TUQeFxYfAg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716575289; c=relaxed/simple; bh=+sLcs4QOO6S6PmRZbmAwV/bGLEFVH4urRpzSl6qADg8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=H/RYkYDFkSkt0IYO9ZK+ZoP26jFbzAvfu0BjAXVQ7JzIgoC6PynMsmW+w8rEEVXprQTjTRgXki1FATkq6/e0KDxtaqjeHgF1Rsqa5TQFJRmayttJreo0z626gCSulKhNk0uurrtfsmQSvJMtYPQ/XmxxcINZ2uyTkxe18wAOLT4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=raspberrypi.com; spf=pass smtp.mailfrom=raspberrypi.com; dkim=pass (2048-bit key) header.d=raspberrypi.com header.i=@raspberrypi.com header.b=Nmvhk/tz; arc=none smtp.client-ip=209.85.128.100 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=raspberrypi.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=raspberrypi.com Received: by mail-wm1-f100.google.com with SMTP id 5b1f17b1804b1-42101a2ac2cso20613755e9.0 for ; Fri, 24 May 2024 11:28:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; t=1716575282; x=1717180082; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=gaJ2/2ZC9xmhH/6MleK2a1l8XHvCRgt0iv2l1bIIm7k=; b=Nmvhk/tzDQSX2UDe/IHZGuA20HUeVV6mdgNpw8qWHuAqivewQ4FGD/71Up1vrHDP7T d5Hz36auZWV55kV9GaywU+sQMX/ovYLo3E8AAM4SxVNhI3uww0/PeLR8Yx6/P2ySdeEx rNUST7NDHLGTizRbRYTBHzA3weELXzU3RaRj5zzZEk5zOETsdINCPnVK3xSS7LoaZnv7 E4CCuOT3C4uBfUQMvedSmTxKoXzWW7l8YpCYfFJ9podFut3VqpIFBGZpLQL2xr2IA0ce ICWupmMAXOdQzNKhCom0S9F2cvqEFoFhoWHUXON6wLYmt31vIHC0rGblWvV1+Vg9yxPa Qy4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716575282; x=1717180082; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gaJ2/2ZC9xmhH/6MleK2a1l8XHvCRgt0iv2l1bIIm7k=; b=R08Lz2nFrD88rBvJoDtz7gCMy6EWFTbj3qvKLbtA/P77NW2wwRcjZXADn+WVDJMdv1 kVdgdAh5HvHNe6cF/jGoE8BqkrHVTKIWyL89ZxPJrz7HwW4VdrnltZwtP5+rm3dzlnEO P/zCmFjILHl+sIjCOXcAPebTg/GqUNlEIoxJTeddpVqs3CMMh0oqslwg0x+c2res9SIs iO2wPZgHK2vYLcldF61ePBKGvzYQazeUFo0hOnxODpkL/XOJZlNiyz9eZFRyZi3uK/xk tMNL8RFDvFXYM80VrvZ7Llt9G3r3qQqbJkN2C4aO7LCdgKucnjLzFn2WpH2TIOeC4x3H zUug== X-Forwarded-Encrypted: i=1; AJvYcCXoAe304HmghCbSCdvP5KJSvp8FuxRaXC6WKsI43fMzJZ2qVPWRdlriZGA26TRZg56mKDShmoEgpxG1zyld0MbMphU0ItmMBztIWKPF X-Gm-Message-State: AOJu0Yz6iph4t0PHlb9oRdujHCMQVmjia7LOJ+ZHdVIDOUj3P5lw+kxV 53TN8TwuRyicLrEUKrINgyDqfvlKYPdLoUmayVSNUU041Nu7ayaN6BBowp132qyzDxjJc+zjhIU pDIHhWUgNV4V5gYG1wRnvQyVeiw7IFnso X-Received: by 2002:a7b:cb8e:0:b0:420:2b5e:1808 with SMTP id 5b1f17b1804b1-421089d8182mr27055785e9.16.1716575282092; Fri, 24 May 2024 11:28:02 -0700 (PDT) Received: from raspberrypi.com ([188.39.149.98]) by smtp-relay.gmail.com with ESMTPS id 5b1f17b1804b1-42100fbb0ffsm5433375e9.53.2024.05.24.11.28.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 May 2024 11:28:02 -0700 (PDT) X-Relaying-Domain: raspberrypi.com From: Dave Stevenson To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Florian Fainelli , Broadcom internal kernel review list , Ray Jui , Scott Branden , Vinod Koul , Maxime Ripard , Maarten Lankhorst , Thomas Zimmermann , David Airlie , Daniel Vetter , Ulf Hansson , Mark Brown , Christoph Hellwig , Marek Szyprowski , Robin Murphy , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Vladimir Murzin , Phil Elwell , Stefan Wahren , Serge Semin Cc: devicetree@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-mmc@vger.kernel.org, linux-spi@vger.kernel.org, iommu@lists.linux.dev, linux-sound@vger.kernel.org, Dave Stevenson Subject: [PATCH 18/18] dmaengine: bcm2835: Revert the workaround for DMA addresses Date: Fri, 24 May 2024 19:27:02 +0100 Message-Id: <20240524182702.1317935-19-dave.stevenson@raspberrypi.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240524182702.1317935-1-dave.stevenson@raspberrypi.com> References: <20240524182702.1317935-1-dave.stevenson@raspberrypi.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Now that all DMA clients are passing in CPU addresses, drop the workaround that would accept those and not try mapping them. Signed-off-by: Dave Stevenson --- drivers/dma/bcm2835-dma.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/drivers/dma/bcm2835-dma.c b/drivers/dma/bcm2835-dma.c index 06407691ef28..181f2c291109 100644 --- a/drivers/dma/bcm2835-dma.c +++ b/drivers/dma/bcm2835-dma.c @@ -405,17 +405,6 @@ static int bcm2835_dma_map_slave_addr(struct dma_chan *chan, struct bcm2835_chan *c = to_bcm2835_dma_chan(chan); struct bcm2835_dma_chan_map *map = &c->map; - if ((dev_addr & 0xfe000000ULL) == 0x7e000000ULL) { - /* - * Address is already in the 0x7e... peripherals range. - * Assume this is an old client that hasn't been updated to - * correctly pass a cpu phys_addr to the DMA subsystem. - */ - map->addr = dev_addr; - - return 0; - } - if (dev_size != DMA_SLAVE_BUSWIDTH_4_BYTES) return -EIO; -- 2.34.1