Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp461562rwe; Thu, 25 Aug 2022 03:43:33 -0700 (PDT) X-Google-Smtp-Source: AA6agR56g7yFealrUmoKeYNamcEoODgfrdZmNVl3qop1LnR8wsSTbrrlDhLf9B5DM4+CnzV/I81Q X-Received: by 2002:a05:6402:4449:b0:445:cdb6:2de9 with SMTP id o9-20020a056402444900b00445cdb62de9mr2663648edb.59.1661424213510; Thu, 25 Aug 2022 03:43:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661424213; cv=none; d=google.com; s=arc-20160816; b=HE7xWIxae4Lvqpu3Cq223lZOyl0ihTS60eccI0WZe6HW4GT7SMuAbxtb2cSzpNlxdo Jy6SfnOF7bqNf/ZKm/PRW9v0TRulecdFZiT1+t63M+aUgUH3eQAN+dfQX2De8MFHAVDn zLWZc/TUeEoOGijijisV3S5xmV8U9eOxgDj+C2s5HN6glbDXmoN5Bm8k9+axTNRLUQl8 YtD3Iz0V6aEya6ZSsCjkjWk104+OsceyNqQQJVJbZv4I+qGr2//MJzxEDHatjynFIXn0 LElso5LZlcdlHPpjKqzvp7j3GOKy2fnlp9PcwSi1KJXX8ra09mxryd9EJH2t1SA0d6PY 8U0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=OrUQl1w8kI5QhSNqJvaa54vHHJ53i9OB8US51/YU1L8=; b=sVe9mgCMz8Va2Tf09EjQ3j0BskmEMtuEl7Ab34WdKnuZyDrfhf3ApkGurKBWyfMi/J bN/0RJ07a0FUi5G3cchv7/87vXlf2dD/gW0P/NzA9AKh0wshl/0I7vtRc839G7kOlS1B bSU6nUoIpVQ2hlznrL2nVVWSiSJAkMNKAzaloK3YL9cKChG9iWQ5joeMWmwVcaVYMQl3 ukOsS57YECZZY2n4l39UYQ/++pA6iY6qC64VAh3zWderZwNZTuLgF5lilLoxUmo1ABEZ OY0oxJ1fGWtLGvQ7mrLqqerRYOcahgck/LWgZu7+efwpM6zw6jjnuBMJSU3zv6NyWx1j B2IA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=dOMzffQR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i20-20020a1709064fd400b0073d7d28dbfcsi3830150ejw.634.2022.08.25.03.43.04; Thu, 25 Aug 2022 03:43:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=dOMzffQR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240934AbiHYKeb (ORCPT + 99 others); Thu, 25 Aug 2022 06:34:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240893AbiHYKeV (ORCPT ); Thu, 25 Aug 2022 06:34:21 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8E70A5C50 for ; Thu, 25 Aug 2022 03:34:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=OrUQl1w8kI5QhSNqJvaa54vHHJ53i9OB8US51/YU1L8=; b=dOMzffQRsvnWHPkw7/v6LcBrWi Fs4kPn1BDYoqaCHOUup+EWXTomIN/ugf3YEy/b0tqx3vcq/It9CcoUIQFwwERPNzK+Nx6qXkM0lyu fdpsA8KxVNtaoKAk+S8cAnyphTWFVwg/bxqQznLXnHpxstaszQSDx2XC8nLEqj3TxJIrZAkyy5h/2 JEH37D5VEthzUvRi0N/4KjHf4eSY6JxC4PZbnH06ghUBqQt9O3MHwO7tCYEjZ1VrM5z88L2Zc/l4e nGn/1OQc/X0dmhCfuELn0POm00309P1A6lE98689hrrlmdZGoJI9hwzwL/6Se15iREJbw0juaNZXC 2QSyV31g==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:33926) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1oRABi-00053G-BZ; Thu, 25 Aug 2022 11:34:14 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1oRABg-00051w-Ve; Thu, 25 Aug 2022 11:34:12 +0100 Date: Thu, 25 Aug 2022 11:34:12 +0100 From: "Russell King (Oracle)" To: Arnd Bergmann Cc: Christoph Hellwig , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Arnd Bergmann , Linus Walleij , Marc Zyngier Subject: Re: [PATCH 5/4] ARM: footbridge: remove custom DMA address handling Message-ID: References: <20220821055326.GA25950@lst.de> <20220825091752.3535657-1-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220825091752.3535657-1-arnd@kernel.org> Sender: Russell King (Oracle) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On Thu, Aug 25, 2022 at 11:17:52AM +0200, Arnd Bergmann wrote: > From: Arnd Bergmann > > Footbridge is the last Arm platform that has its own > __virt_to_bus()/__bus_to_virt()/phys_to_dma()/dma_to_phys() abstraction, > but this is just a simple offset now. > > For ISA DMA (floppy etc), the offset is actually zero, so the special > hack to subtract the bus offset can be removed from common code. No, the offset is definitely not zero for ISA devices. ISA devices have the same view of system memory as PCI devices, since ISA devices go through a southbridge and on to the PCI bus. So their view of the system is exactly the same as any other PCI device. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!