Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3134511imu; Mon, 19 Nov 2018 11:09:00 -0800 (PST) X-Google-Smtp-Source: AFSGD/UzLmeRUbmle0WC535BGZWt1/hKJ822pnM+Gac0SYJRLp15TKx6tZemju+d0P8uJI0h7MeJ X-Received: by 2002:a17:902:142:: with SMTP id 60mr8992247plb.330.1542654540518; Mon, 19 Nov 2018 11:09:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542654540; cv=none; d=google.com; s=arc-20160816; b=Paz7xlDgNdORdN/3xLKkPSKJSrvjNlbyQXGufKX5wgKHRIrujzfjVSPyoMVPJvONzf f/2KMeJX1qJb9JVihK4Ha4zDQIyJoLG+cyIDaixjYYErbB2n92VQ1LuRrXte7FifY76Q 5kho7LmsBru2eGEX9TlhjUyxisr/5mSzKM/q++TR17dAfwNF/uVy3exjTKC6U/zA9VCY ZddVHYRodbhfwyMoYANcGT/kTcmjfB/UUgJjKwKJUkROawr4NJsa+vmXoI+tqFwYqIxK DWMvsmYtywZOu8rYJm24wo9UQJE1bjLZklW63Rw8fJbQ7IHzWFxD6wQbM3AyqvGYLMv7 89Lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=aHpxkyS0IDtmBgOpNbfbEMFLbazBor9Iz4HIU8oOE5k=; b=GI25pEISazZmVq/Th/5JBXE7TeTxfWagdpdyMVMoUw14pkMERR+Bk7hejVBz6mQTET LOgNzG9kXGsqiR3q1XtdQ2BE6KeL/LP4FxzU7k7sPKL8I24wEg+/sOkEhF8PqX2dsKP6 BdFCL8ExqqAWm4dWKDxHdBBq1NU7il2OFtme8mkLkksAFlJp69ynaov9jga4dp/ry6K1 i23pRLlM1NJp8RU4CMw06sRAhingsU7VRGBPbGGgyph+QRSC8p6foO6/HrMkmUYrFI/d kA6ayAn2I9Xe3TvkUkmv5C1FJcsoRkbZwUzlc+Lpp4OOT0Rq+bmNgDnHWWDC5/KkWNPL bbxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@wavesemi.onmicrosoft.com header.s=selector1-wavecomp-com header.b=JddThzoT; 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 v123-v6si43889554pfb.65.2018.11.19.11.08.45; Mon, 19 Nov 2018 11:09:00 -0800 (PST) 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; dkim=pass header.i=@wavesemi.onmicrosoft.com header.s=selector1-wavecomp-com header.b=JddThzoT; 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 S1727617AbeKTFbg (ORCPT + 99 others); Tue, 20 Nov 2018 00:31:36 -0500 Received: from mail-eopbgr790113.outbound.protection.outlook.com ([40.107.79.113]:27411 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726070AbeKTFbg (ORCPT ); Tue, 20 Nov 2018 00:31:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wavesemi.onmicrosoft.com; s=selector1-wavecomp-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=aHpxkyS0IDtmBgOpNbfbEMFLbazBor9Iz4HIU8oOE5k=; b=JddThzoTSH5v7ut0LYfYC/MKVAzahn8f7A/NZiUbGabRLRRVytlVQL3xb4CjhZ5nfqXXd7Biy7rymm2LR+UUV/XkPcm9Ggr6D7VWo128WlQ8NJFnga1uxDrWvgzv3WHxc/lw2W1R2hxGB1LEayNS5qGtSchM312mEsMIUbmLPPM= Received: from MWHPR2201MB1277.namprd22.prod.outlook.com (10.174.162.17) by MWHPR2201MB1327.namprd22.prod.outlook.com (10.174.162.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1294.28; Mon, 19 Nov 2018 19:06:37 +0000 Received: from MWHPR2201MB1277.namprd22.prod.outlook.com ([fe80::690f:b86d:7c2:e105]) by MWHPR2201MB1277.namprd22.prod.outlook.com ([fe80::690f:b86d:7c2:e105%6]) with mapi id 15.20.1339.027; Mon, 19 Nov 2018 19:06:37 +0000 From: Paul Burton To: "Maciej W. Rozycki" CC: Ralf Baechle , Paul Burton , Christoph Hellwig , "linux-mips@linux-mips.org" , "linux-kernel@vger.kernel.org" , "linux-mips@linux-mips.org" Subject: Re: [PATCH v3 0/3] MIPS: SiByte: Handle PCI DMA with 64-bit memory addressing Thread-Topic: [PATCH v3 0/3] MIPS: SiByte: Handle PCI DMA with 64-bit memory addressing Thread-Index: AQHUgDr/Q5gNCGsBa0Wt6ViVYf4PiQ== Date: Mon, 19 Nov 2018 19:06:37 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: MWHPR2201CA0004.namprd22.prod.outlook.com (2603:10b6:301:28::17) To MWHPR2201MB1277.namprd22.prod.outlook.com (2603:10b6:301:24::17) authentication-results: spf=none (sender IP is ) smtp.mailfrom=pburton@wavecomp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [4.16.204.77] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;MWHPR2201MB1327;6:4ijFeHx2ENcCPVxmk/Wt20oKLNdm+ypKfXY15HctVKhlJHXt7hSd2+WbKWIqwNxNJlWCwzQW+/UKBh1IFvFJz/RQbBNbqnCUXxBp04orieQ3EvNRR4XWIMAQyiA1f8zARbOC1VEgT/Xx+9cbeOO4LzopEQbjvOnXQXKhzqhYfSYk1wgaO7H076AC21rtVm3XjVdR7+gX+zAzy7tml4NTID3t5GOVEy4/07D1ZfNQk8bkmP6f95Xgs9wljy759q2PgeGYn3TqUF/wByMzmjlf/ygTOSzJ9+U8XkKGCR2Q5Q/gxao6GaIEsYNAIv/J9nxO7AgOpr5KAkyopuAoStozPaDgDJamsLi2HqRtXCf5A9FmlJlczrOtgZuNWW9jIHGcbBBOND28rea3VHvoCPRwm72Po00KMB9RofzBIcA7ua332hDE9IrZrpIOLt42sfwiii+BQH/7RPh6auFZlD/3gA==;5:02RCqR3yP5KNjJZxF8SFN78+PpgFzlrduI8WeqPuwugSCTyyupLQRA2NT81JMNqZ3OLqzrItYFBPooIx5dAEtgveg6DDXqwa8U/OXjclI8nK3MB7xm5wp8cRgXkDe6LJ+hycHKoDupJHjjczkRML+j0ueIhAV8u05rK1sQIkNU8=;7:gIMoL+5AM9xARGQJ8Ykw5DJJeymldqTCuDykJBsmZyk3au01KuW/G8zZLT/DxlDWwpLD3l62iUyHqbSexgwB2bhvDcd9usSa+EDC8Bu/ANUITDoqjjRDtUp0MBs1rbzQ977FLSIuRVzaUJgdP/SHdA== x-ms-office365-filtering-correlation-id: 39fc6846-58fc-45e1-b17c-08d64e52216e x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390098)(7020095)(4652040)(7021145)(8989299)(5600074)(711020)(4534185)(7022145)(4603075)(4627221)(201702281549075)(8990200)(7048125)(7024125)(7027125)(7023125)(2017052603328)(7153060)(7193020);SRVR:MWHPR2201MB1327; x-ms-traffictypediagnostic: MWHPR2201MB1327: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040522)(2401047)(8121501046)(5005006)(93006095)(10201501046)(3002001)(3231415)(944501410)(52105112)(148016)(149066)(150057)(6041310)(2016111802025)(20161123562045)(20161123560045)(20161123558120)(20161123564045)(6043046)(201708071742011)(7699051)(76991095);SRVR:MWHPR2201MB1327;BCL:0;PCL:0;RULEID:;SRVR:MWHPR2201MB1327; x-forefront-prvs: 08617F610C x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6029001)(366004)(376002)(346002)(39840400004)(136003)(396003)(199004)(189003)(476003)(6436002)(7696005)(2900100001)(76176011)(446003)(7736002)(66066001)(11346002)(8936002)(186003)(386003)(6506007)(486006)(229853002)(2906002)(25786009)(102836004)(44832011)(305945005)(74316002)(99286004)(52116002)(6116002)(42882007)(3846002)(14444005)(316002)(106356001)(256004)(54906003)(97736004)(9686003)(6246003)(14454004)(217873002)(55016002)(53936002)(71200400001)(71190400001)(105586002)(26005)(68736007)(33656002)(5660300001)(81166006)(81156014)(8676002)(6916009)(508600001)(4326008);DIR:OUT;SFP:1102;SCL:1;SRVR:MWHPR2201MB1327;H:MWHPR2201MB1277.namprd22.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: wavecomp.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: KUB8pPmDcvt+wW5v+faOgmAmTm5EPvLypyd42CNkU3t6i/rT5T+swEBxX9/c1c0M9eifn/YWWI6as1DzZXerPZQKMQ/HtFOYlK9H7FWIY2uGgalRCH6diqzoL/ijsZ+gAACwEe8Jngy9kOBuThY6c5qi9gvPpPUaD5BQ8/wGOF/+/l6efFR7kSmE8IP3IVNCM3qlBUmuXp98V4fhbgVscuXmAig5fxz4lelHa/3Gz06hpWzEkQfJ+ZTLjyoRSkCc8dpJOx1rxV90Dij3yAHOP40gbJFoJ/xgjEFa9MdxDGMvik8l/GX3U4+VTfSHwUaSIR5g2U39u5Zbwzvl0a7sATrFsRRlyVe0AJ7pAVg6RgU= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: mips.com X-MS-Exchange-CrossTenant-Network-Message-Id: 39fc6846-58fc-45e1-b17c-08d64e52216e X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Nov 2018 19:06:37.6913 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 463607d3-1db3-40a0-8a29-970c56230104 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR2201MB1327 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, Maciej W. Rozycki wrote: > Hi, >=20 > This mini patch series enables correct support for DMA in the presence of > memory outside the 32-bit address range with the Broadcom SiByte SOCs and > the relevant development boards. >=20 > There is a quirk in the BCM1250, BCM1125 and BCM1125H SOCs in that their > onchip 32-bit PCI host bridge does not support DAC, however the HT link > (where available) does support 40-bit addressing as per the HT spec. > Therefore the first patch sets the bus mask accordingly, and then the > second patch enables swiotlb. See individual change descriptions for > additional details; there's also a further discussion alongside. >=20 > This has been verified with a Broadcom SWARM board equipped with 3200MiB > of RAM (2176MiB of which the address decoder in the SOC maps above 4GiB), > a pair of DEFPA FDDI adapters and an XHCI USB adapter. There were also > some other PCI and PCIe devices present in the system, though not activel= y > used beyond being probed at boot, and none has shown any symptoms of > breakage. >=20 > I have come across commit 9d7a224b463e ("dma-direct: always allow dma > mask <=3D physiscal memory size") and realised we do need ZONE_DMA32 for > LittleSur. Hence this v3, adding a third (second in the series) change > for LittleSur. >=20 > Also hopefully I'll have sorted out issues with threading in my MUA with > this series update. >=20 > Please apply. >=20 > Maciej Series applied to mips-next. Thanks, Paul [ This message was auto-generated; if you believe anything is incorrect then please email paul.burton@mips.com to report it. ]