From patchwork Fri May 24 18:27:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dave Stevenson X-Patchwork-Id: 13673520 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CE5ABC25B79 for ; Fri, 24 May 2024 18:28:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=1qAYKUOOhe0a2yloCXaU3DdCdYq99sP9ajd9jr8UeBs=; b=PTAyt6AyK5V2Er vtWqxa685mGYab+mW2AAAvbX20wbHx/csQp6KRdamEh1rPdv82iCi+kNn3kkwEhg2DZIJskadrFk6 btMaWDURd1A8IfSkAtVTP/ILUyEL+u7S0hzJN3fRHdljPhLc9BQUhqwmMTLTSLA5WdUIonHU2pjcf v9yqyN9Ygwi0gSJ0Ahg1KSPoycsVzf+qPKBaRu/rMp7nsUpAXAQQbNyijDiQPTis9qJeb8VoVpPXI MF87ENYhXyhZwgK2dqD981F/iwm1k9dkcyyGVwl+o8DiNzNpaYdhH0x/UNxfwA06iy6xhZ2arhBjE Oro6mhKolrnC7y66Z5aA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sAZeq-00000009Zm4-05pS; Fri, 24 May 2024 18:28:48 +0000 Received: from mail-wm1-x363.google.com ([2a00:1450:4864:20::363]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sAZe7-00000009ZCz-1nQi for linux-arm-kernel@lists.infradead.org; Fri, 24 May 2024 18:28:05 +0000 Received: by mail-wm1-x363.google.com with SMTP id 5b1f17b1804b1-42101a2ac2cso20613735e9.0 for ; Fri, 24 May 2024 11:28:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; t=1716575282; x=1717180082; darn=lists.infradead.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=U41MXQHbFLfK6D/xh6hLQoQdj3KQSCzLOKLZt5I8I14eH1oBw+DjNn+1G3ycV0Iqx2 10dwW6o7pESm+3xfhbuXB5Xup4LhpDeILwEPNwtmwIrSDfDdlAeAbthCMcd/1xCiqDnL y4QePZYzN9OkvQalxPqSXx//LaG5pA1DUsr0Sz+C5FXG6x/L5+BsWSwohO+1zhgrLGgU ENioc+UPZm0Z5UL4lwX7iFwh6GIfO1RgQH1zWKVTxHnJXltuXY9MxTr7+R0ngP1nSKhs +qeQ0zidRcClXbB+o3gaAd17zd3D/4j3qx+n1AJ4VKMOr61Gjbf2miZW3f9NeqFbc/MP HWug== 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=MIWXVaY1Ivq/o9vUiuz/hg/ytidNwpDJTQ1lQtaI6QeTxf2raI4w5+I4DvJp3M2juw lhvZBXNih0g6GkuyyfUDbSNgma3GcfjTaJT7Dj4WTLh+6qRnIw31AO6jM7nhU9TMZO1K 7ldzaRRnYf/mncU9pi5tUuGIjuW38tWJDKndbY8WUNd7NT8aj6+dr+FnRftncRwplS83 YZ+HJ0SgvqlZ4gIwZbFshVkuP5GIjYb55g2HUdmb3+uhT8Ot4UK2nAyYHv2sH1vJibW+ nkkJ8SHjJ7EMu45woLEBSy+6vo8/FpGzBxPX1M8TIwygOxDpD9KJgb67chpXs02xejDh N45w== X-Forwarded-Encrypted: i=1; AJvYcCUeTN3BUPwP+RZ64Rrriw7YGw2oLAAdJ4EW3mtze0hpclH1n++W7cW4ekvvwzBen8daxNm+UfTn4AlFr5JqfWHzsbD8WMEiVmEI1Gr/V10QU0ugBgo= X-Gm-Message-State: AOJu0YyhkuZfHpFvCiEi0MfqjnVnMwhqFQlRatU7xGUcZm4BX56m3cmG 9D7MdfuZxZrx9Y0oqJ2v/XpHYXNRHBGQnJ7LfQF/mrnYOAxkTu4uyTaNayUZiiNLxafGDgcxmh7 cEksMAz0yj2o5vEn9odBCkhtTppKyLcye X-Google-Smtp-Source: AGHT+IGW0tEBfx8ikBiBvNc7paeaC57bk88c6mQfl/2RM8CdfU5tVZ5vx+/JsN/a6nuR9BJ11cex+eTG9kUv 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> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240524_112803_637455_A4EE4A3C X-CRM114-Status: GOOD ( 13.97 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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;