Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4427072ybp; Mon, 14 Oct 2019 04:35:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqwAvWZJ/eQozvF/Luv2RmaHOBShOI3l1DydxUaOILSdIUtRFOvTW1ok5bDyqWJXcnO0kOnt X-Received: by 2002:a17:906:8315:: with SMTP id j21mr28640038ejx.244.1571052908556; Mon, 14 Oct 2019 04:35:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571052908; cv=none; d=google.com; s=arc-20160816; b=R7lufggzlM3juf5sNju6+uoh8Dry47kruhyD1p7X+jkdEn+z/83TbwTtfOuiZqjl/5 Gkol8fRR9p4GwXQvgSrxt561Kqk0IbJkOqPVtymrGH06iH8+2g2EAmhsoMhhR23Q6hFA JodNtYB4HqbMynGH5j1PUrPqHJUwo53+j+AY62q02rpwve/H/ZaIzz/nkcyMDv2Vfcuh Cxt3SlrfgF8sr9Gj7Sfu6jSpahEoY1YWmVWcchXHHWZAdLJ+vQ5LrjXhUvBCq26V2QWc 0D38N1/6fF8HJhjKfxYQ2o12efa6dUtfitOJOJYWrzjJb2z6ZNQkCTcoGDaknKbKPoMY hTbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=5PfIBuTWehhOxVg8YuH7hlOQSTTLgzq2r1+EUS9IBN4=; b=m/bPmVgwy6DSPIR2MJfA72152RGUKu0oEKFOp3sPJqklzKZtenOm1dNP6/YicxQFx9 OAZwusasorrki1lD4G3KlijVkkDmPCA2lmiZZVlN45w99q6x9Ox4V7doLb4HllvdQraZ HnpGd1zHOEV0loFFfEHX/X4SI9S3gJ26AZTWC1sPk6Hx93OA7PqMQGYqmW8zMM+VsdbY 4oLCDxdbZVpovqU5lVYzzJqkxkdjUc/4/MfdcyPbMlGystUdAmWaTPUmoevoPhTB2FEp 6MzLYtCfpWf398egzAxmFPA1/KMrLmcbVgor/d9GVwyq1bMokIesABL34188W+psaO6d d9Ow== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b22si12648771eda.194.2019.10.14.04.34.45; Mon, 14 Oct 2019 04:35:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730417AbfJNLeK convert rfc822-to-8bit (ORCPT + 99 others); Mon, 14 Oct 2019 07:34:10 -0400 Received: from mx2.suse.de ([195.135.220.15]:48360 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726573AbfJNLeK (ORCPT ); Mon, 14 Oct 2019 07:34:10 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id CA2A0AF41; Mon, 14 Oct 2019 11:34:08 +0000 (UTC) Date: Mon, 14 Oct 2019 13:34:08 +0200 From: Thomas Bogendoerfer To: Joshua Kinard Cc: Christoph Hellwig , Ralf Baechle , Paul Burton , James Hogan , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] MIPS: add support for SGI Octane (IP30) Message-Id: <20191014133408.24fb17711d942effc92e27ee@suse.de> In-Reply-To: <5c6ab720-218a-14aa-9112-a12b88b63bc2@gentoo.org> References: <20191009155928.3047-1-tbogendoerfer@suse.de> <20191009184311.GA20261@infradead.org> <5c6ab720-218a-14aa-9112-a12b88b63bc2@gentoo.org> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.32; x86_64-suse-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 11 Oct 2019 20:33:43 -0400 Joshua Kinard wrote: > http://bxr.su/OpenBSD/sys/arch/sgi/sgi/ip30_machdep.c > > 144 /* > 145 * Register DMA-reachable memory constraints. > 146 * The xbridge(4) is limited to a 31-bit region (its IOMMU features > 147 * are too restricted to be of use). > 148 */ > 149 dma_constraint.ucr_low = 0; > 150 dma_constraint.ucr_high = (1UL << 31) - 1; > > I never figured out how in Linux one does something equivalent. I knew it > needed to be done in the older dma-coherence.h file, and now in the newer > __phys_to_dma() function here. This is, if memory recalls correctly, > because >2GB RAM in Octane causes issues w/ BRIDGE DMA access. 32bit DMA is always limited to 2GB address range by bridge. Right now we our code doesn't support 32bit DMA access at all, because it was not really usefull for IP27. With IP30 it's probably more usefull, but my current focus is getting basic IP30 support merged and improve it from there. And as this is a bridge limititation everything can still be placed in pci-xtalk-bridge.c Thomas. -- SUSE Software Solutions Germany GmbH HRB 247165 (AG M?nchen) Gesch?ftsf?hrer: Felix Imend?rffer