Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1554568imm; Wed, 1 Aug 2018 19:01:29 -0700 (PDT) X-Google-Smtp-Source: AAOMgpflOkDclzH4Hjhr8Ea9b7KtJtUJxHRfL0NiFVmPtl/2W1Pq57ZoTjBkov/nYaBw61Mqrz/t X-Received: by 2002:a63:115e:: with SMTP id 30-v6mr752345pgr.53.1533175289509; Wed, 01 Aug 2018 19:01:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533175289; cv=none; d=google.com; s=arc-20160816; b=tDl3jk1zQVV+KUkX0k+5CJ3XoUuuIuyzMwwJK9Ek7bbFkHqN1AXMapoCnN70pEQwl/ B/RWtNur6IsNukjSTfRoj7oMu6ofCGByeUzNqTz5vrAeAE+Jsm3XpsG/wc4222MQ4S1G iR2HB/11uoQBo6SpjQubk28uTDzbWS1bhW6xqrKs/bLxWkLHC76HtEueuPHh1oiN3fJp CEYSZbmzqDMduuC7HotwRfrjdWXey1MAQ9gXhr8+LPh6JfNAWWdOf8x9oNdKBunmD7CO 8g8H8dm1ww2VHqPrWzgebQ63qbGR9pzdJMn9OEyWS/wpD9QzRLdb0wvAsdLgX6eYjayb D10g== 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=2JY9Fg798TD5rOR4RSxFEwc+G3eK//jYoXqlrCBFLkY=; b=00feanMCR/eD/U4rD8gFaVb9TeIwlXU9TCfhs4o+VXbx0HzD9/McJTCODZXRXbxPJd 4xSEXn0bz5aKxt0acYI57CjonPToF1/5E/MiEt+2og4B/k/8ndFgcvC4Of3PMFDoTWRY hfFboGDfufKKr+ungoavL/CPkifY/7BkzL6+phrtuRflQCOfAX+wEOpjRBQ/oixVuzej BcaYvMYHji+xn0NOJfmo2/4bgplV/SVneouOGfAdCq7QcX1POUdrwQYi0LxXUYIcMk3/ eRQVx2nYX8Cvr5e5SXvYDrhzZKs4EoeMd9dY+VKzvN8/m2eJ6ytUOg7p7md20FZUVKbd 3Vzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b="LWuCKH2/"; 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 g11-v6si472911plb.323.2018.08.01.19.01.14; Wed, 01 Aug 2018 19:01:29 -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="LWuCKH2/"; 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 S1732415AbeHBDtH (ORCPT + 99 others); Wed, 1 Aug 2018 23:49:07 -0400 Received: from mail-eopbgr50085.outbound.protection.outlook.com ([40.107.5.85]:59904 "EHLO EUR03-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726839AbeHBDtG (ORCPT ); Wed, 1 Aug 2018 23:49:06 -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=2JY9Fg798TD5rOR4RSxFEwc+G3eK//jYoXqlrCBFLkY=; b=LWuCKH2/OT3vog+JpRWGvbeEHrAlZ3IVFwsYbrZM/qcCIol2LHbJOqPUcMT6aZURkG04nSovovZ7L3pH6Da4AJOMtZnD//W3tWFewOGGpH6IubJg5uxAjwZv6mcbLAqzn7qowL7jzgRmWDt6RkVdaf//Ieb3I+urnVEszamsenU= Received: from AM4PR0401MB2260.eurprd04.prod.outlook.com (10.165.45.7) by AM4PR0401MB1873.eurprd04.prod.outlook.com (10.166.130.135) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1017.15; Thu, 2 Aug 2018 02:00:20 +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 02:00:20 +0000 From: Andy Duan To: Stefan Agner , "davem@davemloft.net" CC: "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: AQHUKY0SPs9eOpnX9kGVrCAsh50anaSrs7Cw Date: Thu, 2 Aug 2018 02:00:19 +0000 Message-ID: References: <20180801114449.21208-1-stefan@agner.ch> In-Reply-To: <20180801114449.21208-1-stefan@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;AM4PR0401MB1873;6:bUVvJOzR4KrYc47EdFKEwUODX1uXjxuGqqFmFaCyjIfbHZAZNUW9od5EzydhgdE9fpCJBD+oZpGPq61wFFUn6emviJnDUDxH80nUnDQoJjWn3MjiohLm7Pi5JJT2WtjrwD6e7/iXWOG2R/Kj320uze+quSAY4p+obL6KDINL7LW78x8rDN2Wc00gQGzgPwrbNjoHDJN8gQUFyEQRsf0NmGqMdsqaPZcZlPz/+YTA92WyyZk38mGsmOSzEq0+M3By19bf9bUFfmD9jjVd9e1Y4prX26cs1Qg7H08IBNPM5CzdI2T1EYIvkRG+u1iJsGR/oNaSXwY8aww5by/JGEyr+ZUgk+FCc6tk0oIraPhTzHxckU1LadebyzEPCYv30cKVJeBvlk3vI+DtEC4hdQYSAIlApOCgFNSsql2XJ9qIO8iz0+pfaOri2IQPmcEq45jTP4bZhxjqdW4zZAXYmYTJZA==;5:YixwKaA4LpPo971OKIKoZJc8TM4cXFuTZxM48Z0xDv/Oi46Eo+DnS7YgUxUSalfrv1FmoCaAbU7JRErt8rKP8nLsfoxLp0fBNTlUqzxEj6VQsWvqexZVElmZuJ8mEDA6RhfkkZAJh/l+SOzbC3rNekhFtSUGxb2cIe9+8Fn2Q94=;7:NhM/NLHDUncYKynkLDmyZbcRAnH+A2vbfeIOIqvn0oFgU9Ua/meHo0p9U6mnkzcSgyeB/xMoXvLGoeDqI4F/wqHp4lmFdds5/fp8zNxcD+lsC+yu2yYN6eVdDHhLzfFR4OWanUBB9HDBgcGryCSdYpuuKmL9mi2qynHsw+eoB98F5iDRRToTo3WlOMJdqJm0suZD56r5VwqpHVvEna5m7PTLpIB1btu6m76UBfHbE5/svyoddN8NNwyI7GFdDJ0L x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: fb96765b-db22-4003-85c5-08d5f81bb360 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:AM4PR0401MB1873; x-ms-traffictypediagnostic: AM4PR0401MB1873: 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:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(93006095)(93001095)(3002001)(3231311)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(6072148)(201708071742011)(7699016);SRVR:AM4PR0401MB1873;BCL:0;PCL:0;RULEID:;SRVR:AM4PR0401MB1873; x-forefront-prvs: 07521929C1 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(396003)(376002)(136003)(366004)(39860400002)(346002)(189003)(199004)(7696005)(53936002)(3846002)(6116002)(86362001)(575784001)(26005)(106356001)(6246003)(186003)(446003)(102836004)(25786009)(105586002)(4326008)(14454004)(2501003)(76176011)(5250100002)(486006)(6506007)(478600001)(33656002)(305945005)(5660300001)(55016002)(229853002)(9686003)(8676002)(7736002)(11346002)(256004)(68736007)(476003)(6436002)(74316002)(2900100001)(97736004)(54906003)(66066001)(2906002)(316002)(8936002)(110136005)(81156014)(81166006)(99286004);DIR:OUT;SFP:1101;SCL:1;SRVR:AM4PR0401MB1873;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: 2IApM+saJkdZVpTx3lSLKmtxgp/fFxkxRL9ECSNZPCUUEVCXQzl7spRnibO6m3hrsbgvklZOnM8OKdQhpCmQ/VzaCWgZml19M7tJfikwEMJT6RREB9IwXAz6W0uxeU3wSKimBVhcNvsnz6xzaA6qaYlzA6Jt6x/OA9QAak6iI6o714PWEYum5pr3kjF669KOz6yiwlG/Nvq3+rpE5/onwEmqwcMcYHBDA2jwo6My078N+VgkEvsodHnD0ajtc7LV35Lh0e7lCXig25dBfhl86XwOIZHyBLA8wxmetHbJTS6o3I8Du5otGYvy3CqGTNXubiRSuncxm+BfFPiCJAplc2/yikdv599UtVplb6UvseQ= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: fb96765b-db22-4003-85c5-08d5f81bb360 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Aug 2018 02:00:19.9145 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR0401MB1873 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogU3RlZmFuIEFnbmVyIDxzdGVmYW5AYWduZXIuY2g+IFNlbnQ6IDIwMTjE6jjUwjHI1SAx OTo0NQ0KPiBDaGVjayBETUEgYWRkcmVzc2luZyBsaW1pdGF0aW9ucyBhcyBzdWdnZXN0ZWQgYnkg dGhlIERNQSBBUEkgaG93LXRvLg0KPiBUaGlzIGRvZXMgbm90IGZpeCBhIHBhcnRpY3VsYXIgaXNz dWUgc2VlbiBidXQgaXMgY29uc2lkZXJlZCBnb29kIHN0eWxlLg0KPiANCj4gU2lnbmVkLW9mZi1i eTogU3RlZmFuIEFnbmVyIDxzdGVmYW5AYWduZXIuY2g+DQo+IC0tLQ0KPiAgZHJpdmVycy9uZXQv ZXRoZXJuZXQvZnJlZXNjYWxlL2ZlY19tYWluLmMgfCA2ICsrKysrKw0KPiAgMSBmaWxlIGNoYW5n ZWQsIDYgaW5zZXJ0aW9ucygrKQ0KPiANCj4gZGlmZiAtLWdpdCBhL2RyaXZlcnMvbmV0L2V0aGVy bmV0L2ZyZWVzY2FsZS9mZWNfbWFpbi5jDQo+IGIvZHJpdmVycy9uZXQvZXRoZXJuZXQvZnJlZXNj YWxlL2Z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