Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1794083imm; Thu, 2 Aug 2018 00:48:57 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfVRWOgWEkLWuhVtcZTa8ZJ0ozrr9WlWeEdovXuueR19DfZCVVJsjoYhZJJ6mHZKwVrhs+e X-Received: by 2002:a63:8f03:: with SMTP id n3-v6mr1673690pgd.166.1533196137148; Thu, 02 Aug 2018 00:48:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533196137; cv=none; d=google.com; s=arc-20160816; b=l5r2Yxy4LCiko3OBQ6Lv5lY2o2y0eL0HIa+GP8Ok/5WW8RIacV1OIFiw+WpEZWCGJ9 dIAPXC31lW2V2bnscA1U+CyrFOFU7RDuDhtHtQp77h9Wj5wNt+xvaWCeUDeBVX1ExR5L 6fXY+PQoNWnpmbXOZEntWqETCD/PMlGSmcecHIefhuyIQ1vqtLlRf+my1R03r4XWn3cN hvmOZq0F9PJN6tGe6XcHRNKtv+VLheLkHk06bh4OsPU8Km22eE8xNqsamZFEeCk+5oDA lYYY2QBZuibwAFcwP7Gcayx6whjHROxeyZ9T5fwkvyirirZHYSCBVQcV0jyNP+Qk11sM FEUw== 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 :arc-authentication-results; bh=GR2Nap97XLA9BUajpvYtwHoya04s6qur6W47OWvSMSA=; b=sO6kc8eh61936PwxjZAKrxNUMVJHCmHg5OccOikUOU6tTFAwgxQxnEKDvofAyYb7i5 5jGhuHQBGaOW/yTAZJHZ+65mFtfa9t4qVuuRV7CK/rqbTirLaEGsxYVr9Ywl1xnDR5HT /S3+m6MZZS0jwMMHVudUI0LV7ikx3hYZSIcKl0Mx4YVuCmj3Q4YD4gIqT8/yHj+X8Ukd UhaJFUIhv9/7bAvzTwcN0GdG8T36dezLxl9vWA+lW3m+/cps+meToX92A4Z7q5t0KfgJ 9CLN8G9q/oWaCj0NCZQKK/LL0np1es1IVmulApwc0GI1YNVtMVIAmOCJEjXx4I6U4m1g oZtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=CjJhe9k5; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 95-v6si1234264pld.486.2018.08.02.00.48.42; Thu, 02 Aug 2018 00:48:57 -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; dkim=pass header.i=@nxp.com header.s=selector1 header.b=CjJhe9k5; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728226AbeHBJhV (ORCPT + 99 others); Thu, 2 Aug 2018 05:37:21 -0400 Received: from mail-eopbgr30074.outbound.protection.outlook.com ([40.107.3.74]:9376 "EHLO EUR03-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726192AbeHBJhV (ORCPT ); Thu, 2 Aug 2018 05:37:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=GR2Nap97XLA9BUajpvYtwHoya04s6qur6W47OWvSMSA=; b=CjJhe9k5Nk4KGeV4tcl6zKIV7pT8hmZH09SMSDdmhTBdIdAZ/2KVxnRSl0yG0NUat4kKPuMRNPnnv+7rZzfDnlbCLjEKMpbKDZRzQnokSvFC0SUN4E0SZb6deQSqBBf3mHI4TneyWFFPSFOCBZJRVxBmZUqUxzzBRQSIU6st1/s= Received: from AM4PR0401MB2260.eurprd04.prod.outlook.com (10.165.45.7) by AM4PR0401MB2180.eurprd04.prod.outlook.com (10.167.89.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.995.21; Thu, 2 Aug 2018 07:47:23 +0000 Received: from AM4PR0401MB2260.eurprd04.prod.outlook.com ([fe80::cdbd:a535:32b1:255c]) by AM4PR0401MB2260.eurprd04.prod.outlook.com ([fe80::cdbd:a535:32b1:255c%7]) with mapi id 15.20.1017.010; Thu, 2 Aug 2018 07:47:23 +0000 From: Andy Duan To: Stefan Agner CC: "davem@davemloft.net" , "krzk@kernel.org" , "robin.murphy@arm.com" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH] net: fec: check DMA addressing limitations Thread-Topic: [PATCH] net: fec: check DMA addressing limitations Thread-Index: AQHUKY0SPs9eOpnX9kGVrCAsh50anaSrs7CwgABaeICAAARtEA== Date: Thu, 2 Aug 2018 07:47:23 +0000 Message-ID: References: <20180801114449.21208-1-stefan@agner.ch> <7d692e8aaefcfec15877a8cd340ee646@agner.ch> In-Reply-To: <7d692e8aaefcfec15877a8cd340ee646@agner.ch> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=fugang.duan@nxp.com; x-originating-ip: [119.31.174.66] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;AM4PR0401MB2180;6:/1mb/8rDteFI+UTyb6/S+Kbt+sjOatSyx0oD9ykVCAjosWmHqe2WlKx8yMuozo48la148rkhngAKMnTUtx7leIEdVyGIVWdjOjRPLs2RpS9PVVk1/k7i6DFT3YCgDcdAscQDk/Pcd7EQ0GF7EKH4dTH3bDqWphpXlqy8O7cWfolzv/tXj57MAKkxtmrE9FwZ6O4MIHMADYQo8t5erKLnVXBwhHbPkPCPBlWY7F1CyROsPV8h0T8bEUsH/AXMxyMY8lTYwDaV8mOVBrxG9MY+UYcMFGZBieP0Gyfvq5zZyXgfCaa8wBhGOEjL+L34+AZ47V0S52FJc02DIPYSic3N6aVyME2gM43FX5prTuI7nzWf5kUqz1U6wYbgBUUQhGkasw/DiYxFd732+WJ71nwOWa4TOu9VHBKMoHfsa4mz+bgFswYudSCnJfjoML5tW/nu4GQW9noNjcJKGPxEFiS2Iw==;5:ayayOVOMeT2PaQXERI6htZg+Ho+AbR9q3ntvMGGrb9qKh31UXmKoUDwcNV0a/SQBLaNGeM2udbER6UuSCP7owKLKvnD7Ir/0gDdYLIKGRWP+62arfJ00o/ySq6D1M5FnlSPdF95y/nXXdaRainWX0eHQxGjHNg3MgS8/EUAlwGg=;7:oEax/ixoDANk2YXVgzA+b+ZOh0j0Qtuh89xP7ogCcEhw+FwW746dGFizUob70cRUZ3M9nmp93NUdNiSe7m15X81wczTLsuZxpHfUbRzabUjw6OMVmIRPqmkune58z31osXXwDeaXueF2NgZBmgGv+X8MGljND3j9L9wUQ0hbCgjF65o9NfqW/oPTh8/w+pbScTMNGU0rgDwRfyG0UoyJ1n5VcLag/rr8JpS5DJzBrBKkRTDhJlDmz7FXeftkf8UP x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: 503f19e3-88e4-405d-e81f-08d5f84c2f21 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989117)(5600074)(711020)(4618075)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020);SRVR:AM4PR0401MB2180; x-ms-traffictypediagnostic: AM4PR0401MB2180: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(189930954265078)(45079756050767); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3002001)(93006095)(93001095)(3231311)(944501410)(52105095)(10201501046)(6055026)(149027)(150027)(6041310)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123558120)(6072148)(201708071742011)(7699016);SRVR:AM4PR0401MB2180;BCL:0;PCL:0;RULEID:;SRVR:AM4PR0401MB2180; x-forefront-prvs: 07521929C1 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(366004)(396003)(39860400002)(136003)(346002)(376002)(189003)(52314003)(199004)(6506007)(2906002)(45080400002)(6436002)(55016002)(66066001)(966005)(76176011)(33656002)(575784001)(186003)(54906003)(14454004)(86362001)(6306002)(26005)(9686003)(68736007)(316002)(106356001)(7696005)(478600001)(486006)(4326008)(8676002)(229853002)(11346002)(105586002)(102836004)(5660300001)(446003)(3846002)(81166006)(99286004)(5250100002)(6116002)(256004)(6246003)(25786009)(97736004)(8936002)(2900100001)(53936002)(53546011)(476003)(6916009)(305945005)(74316002)(7736002)(81156014);DIR:OUT;SFP:1101;SCL:1;SRVR:AM4PR0401MB2180;H:AM4PR0401MB2260.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: /yGJs9ols7fEMCWGzVnPIL7inBMs0pz27qMIG/apiQfDtPgOC30Nsyl7uPGbzSZ/+d0KZEI0RfIj2Z/W1tyRcBtmPHboKxFOs1FFcIotITBwxnOldL8rSJsMPXtRysJ9xjvKW5pDht+6CXdYlBx9oI8r5sAXbSVMt8KvCcQOJsmrLsJwybZmp17apruZm3H9b22+33FHNLxBDnaN5YBkUScZQhDh9A6h4Fj/KukD+giF2CfDJLfR63FKrW5RM7r1O87RrraGPTBwem7+Q1aYsVlzxtjbUTbteIrEpUt9hFf9in74zZAPrGNzxkF4JZ9DFO8L7XIV+QXkd+rbRFHf1MyxZc9XD7hmueQ72+XGAFc= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 503f19e3-88e4-405d-e81f-08d5f84c2f21 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Aug 2018 07:47:23.4287 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR0401MB2180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogU3RlZmFuIEFnbmVyIDxzdGVmYW5AYWduZXIuY2g+IFNlbnQ6IDIwMTjlubQ45pyIMuaX pSAxNToxNg0KPiBPbiAwMi4wOC4yMDE4IDA0OjAwLCBBbmR5IER1YW4gd3JvdGU6DQo+ID4gRnJv bTogU3RlZmFuIEFnbmVyIDxzdGVmYW5AYWduZXIuY2g+IFNlbnQ6IDIwMTjlubQ45pyIMeaXpSAx OTo0NQ0KPiA+PiBDaGVjayBETUEgYWRkcmVzc2luZyBsaW1pdGF0aW9ucyBhcyBzdWdnZXN0ZWQg YnkgdGhlIERNQSBBUEkgaG93LXRvLg0KPiA+PiBUaGlzIGRvZXMgbm90IGZpeCBhIHBhcnRpY3Vs YXIgaXNzdWUgc2VlbiBidXQgaXMgY29uc2lkZXJlZCBnb29kIHN0eWxlLg0KPiA+Pg0KPiA+PiBT aWduZWQtb2ZmLWJ5OiBTdGVmYW4gQWduZXIgPHN0ZWZhbkBhZ25lci5jaD4NCj4g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