Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2061103ybv; Sun, 23 Feb 2020 21:51:05 -0800 (PST) X-Google-Smtp-Source: APXvYqznPwuz4DnvWBB4/Y0XMgcU532CcF56qVC4YXRxupXmHDP18cnhq3B2JDE9/ZLSefAnVALo X-Received: by 2002:aca:5dc3:: with SMTP id r186mr11575843oib.137.1582523464952; Sun, 23 Feb 2020 21:51:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1582523464; cv=pass; d=google.com; s=arc-20160816; b=OI8TWtYpIyRUnEMa5YUn6aOSXh2tBG/FSllMGcE14p4HHUxRG/Yl4Hj+r7Bu1DiCT9 Voqoq2Jd2ZBnkHYXz1hrcFlX/ajbyuS070YEDjis6gOsxDx3EkTmXgn1aE2VSeOgIIbU Jx+72fbvI43W/Sb8dZH2tfIGDs//770srmPxSApy1lcGpk4NYSVdQK6z5980YN8zyqJa 0Rld8DdNgkVB64G+3Rau7mjgnAv6m6CC0iW7/ch1VMIWbN0zkiAMgEfLUZmPSGQ8DXV/ sJZjHaCbgjZ1yxwqO9hHDHaNvAjiK3vSb3WNpd4RqSbWVq7oZ0Ii0t16B+ptrl3U64EW ES/w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=hlQnjAbckBu+CIY0yHGG9VW7Rd4DS6T9ZToeH3Hpkok=; b=QXUR+SyWBnFYFlH/B5uxmISnq4ecyLm4Tqvq543drhDXLpeIusEsJu1IcAYYRPX4DP 9Ly6CGrI9p+hVp71u4SGfZyfmKX3L+wj+FcLoBybvroROGtE+9CTibVbjrDBlJjFrdIT ejCWYoSGAk27OqvEBofWpGnrUaiAnQ/rVv2KP0DNaQbjpD2n0kjyVksfvGt39pKMNqa2 kDB64zrtP0sEdJRb4EhVoWpueoVfU2z+22+R38bkE+jqBGIUsu9FoRekRjov5N3xlI+N xlltt/+8bNtpJZuxlzi6VE1VAdwv73O/Dz3xUAjt9S0XUp5DWx8boTjF3j/95Xe55f3J pHAw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b="jYCK/fIb"; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.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; 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 u16si4876654oic.66.2020.02.23.21.50.53; Sun, 23 Feb 2020 21:51:04 -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=@nxp.com header.s=selector2 header.b="jYCK/fIb"; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727376AbgBXFuf (ORCPT + 99 others); Mon, 24 Feb 2020 00:50:35 -0500 Received: from mail-eopbgr00070.outbound.protection.outlook.com ([40.107.0.70]:21894 "EHLO EUR02-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725535AbgBXFue (ORCPT ); Mon, 24 Feb 2020 00:50:34 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QlkWOpDgdz3TCVevgSOSNicH9Ifx14GrYptLDjktqJrVJ26YPll/nYa/fYG4XDzIaYwmjlxeDoWrJUK7Uz8s4g77sXVWe9ei11V3MRrxD2tS5i5U+mfkqoeM8Y9ig57v4U+KmSHCIDlzKXSTRiiWtFNO/xTZ4ZcggbdWPKV32zlrZiUNIMoM7Dzz2F/nz/V6K29S6HnTtaK/stVWkb/VPxkhyVdE37PJTzkKlh/Ti55oza8AKNNDf8shivjLg2dtRD9phcHu29bXn2bHBJgOX2jyoW4XsBdSPPU5rbKSiWSc4u48R0TCZq23Zkq08rKS3Yenm3okE72xBJT079pU1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=hlQnjAbckBu+CIY0yHGG9VW7Rd4DS6T9ZToeH3Hpkok=; b=ajusrdxXHP5MJeffJ9xnVQIUOehPoUQSBZUkuNI9scOVfx16+D9+AiuYtobMQVe+XSYA4LsqTRgnyOglii3TiFKP7s9C/PEhelicGiRAglGq2ON5NtNGFkSFdQu1dMfmDDc2bOSLUGAdqCH/B7crDioAznIQFNBfWAk+bwwO8HzPGJdmWc1PXxKrqhaXFgcxIg2sYba0XN7w6kwr5U1ktHF0+FJyA6o+vcZgH9K+oLHU98ih6kuS8VCQU02CNd4FTwfJ9F0YJF9Pu/HMmZmnZ+qttHEfW+5PNG9O424KpAyNHLFxLJaShUpzmKSrwH1cKs21WMSBJF6rMfa25LFLow== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=hlQnjAbckBu+CIY0yHGG9VW7Rd4DS6T9ZToeH3Hpkok=; b=jYCK/fIbqnjgVMzMdClC6Depo0QcCT0zahCysgD/t/RuHHWfLNSxrTPLozH/Ki4Hhx2tXHFpRBd2eA2xtXoKXXzD84nTh81P5KqUspeyvLmMS1MM5Hm9qRVXWh7wNeSfAKzDITW68DrK5BfnqdlawhYeZe7GU/F/659j/i/4fSM= Received: from DB8PR04MB6747.eurprd04.prod.outlook.com (20.179.250.159) by DB8PR04MB6539.eurprd04.prod.outlook.com (20.179.249.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2750.22; Mon, 24 Feb 2020 05:50:30 +0000 Received: from DB8PR04MB6747.eurprd04.prod.outlook.com ([fe80::104b:e88b:b0d3:cdaa]) by DB8PR04MB6747.eurprd04.prod.outlook.com ([fe80::104b:e88b:b0d3:cdaa%4]) with mapi id 15.20.2750.021; Mon, 24 Feb 2020 05:50:30 +0000 From: "Z.q. Hou" To: Andrew Murray CC: "linux-pci@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "bhelgaas@google.com" , "robh+dt@kernel.org" , "andrew.murray@arm.com" , "arnd@arndb.de" , "mark.rutland@arm.com" , "l.subrahmanya@mobiveil.co.in" , "shawnguo@kernel.org" , "m.karthikeyan@mobiveil.co.in" , Leo Li , "lorenzo.pieralisi@arm.com" , "catalin.marinas@arm.com" , "will.deacon@arm.com" , Mingkai Hu , "M.h. Lian" , Xiaowei Bao Subject: RE: [PATCHv10 09/13] PCI: mobiveil: Add Header Type field check Thread-Topic: [PATCHv10 09/13] PCI: mobiveil: Add Header Type field check Thread-Index: AQHV4iOLwf5yYYVL3kO4rRyUNZ7HzagkYtOAgAWFg5A= Date: Mon, 24 Feb 2020 05:50:30 +0000 Message-ID: References: <20200213040644.45858-1-Zhiqiang.Hou@nxp.com> <20200213040644.45858-10-Zhiqiang.Hou@nxp.com> <20200220173115.GJ19388@big-machine> In-Reply-To: <20200220173115.GJ19388@big-machine> 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=zhiqiang.hou@nxp.com; x-originating-ip: [119.31.174.73] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 73a716d5-d804-4f45-0be9-08d7b8ed7531 x-ms-traffictypediagnostic: DB8PR04MB6539:|DB8PR04MB6539: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7691; x-forefront-prvs: 032334F434 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(376002)(39860400002)(136003)(346002)(366004)(396003)(199004)(189003)(6916009)(55016002)(9686003)(33656002)(2906002)(186003)(26005)(478600001)(8676002)(8936002)(53546011)(7416002)(4326008)(86362001)(66946007)(7696005)(81156014)(81166006)(76116006)(71200400001)(66556008)(66446008)(5660300002)(316002)(52536014)(54906003)(66476007)(64756008)(6506007);DIR:OUT;SFP:1101;SCL:1;SRVR:DB8PR04MB6539;H:DB8PR04MB6747.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: XWsERt5hyj+eGLMHSXEpTQSI76/ErV62XAFDT6Cq3wNZfiMJuELzLxYCQgc/1PqUYRuSYkFOVw9hrX5loDsQGLr/QdTz/XD48W/lAESkJoe18tIzfX788TcDo/3wlYHl2kq4RJ4Gqf0e5CkKsTV6i91Msef+c5MHYJ1GD+PGCAomAzTU3mHFCXdJNNYlCYVZng6VjdLXN41JBkxT/ueJ2IYiHBQbM3G4fJFB9k5jk0XbQNS9uAmzvZvrhjTY4cC1Lub+PR5EOJ5rfcNaeW3c9H4d5wxTk68nL9AdGovVbW1tSRLJyWWRtzDBdUr+0WQbNgdfuQSgfoI7KXL0IIzLOks/WplZ9WISWmBlItJdPagsD6tJntzjEAIEmEo4cxnlBoxvMAZ79vTDU/x7yAKDi7Rk/LTFeHcdO+VfOyOL6OuuVyuMwZwnfOfkMiAAq5AA x-ms-exchange-antispam-messagedata: z/3FGlNvGAYrCysYhw5s+onX/2tV44Dc/Mq7FU0KEfxC4c4hkFxHyGrTls+YUB3gDtv8Gd5kdxlRuXj0OWNSNR7NXqN77oDVsK1FhtGaS6IAIAXf+k7bvjEu0pLl9p/e1oUZwhjOvoYDbKuwm1zEzg== 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: 73a716d5-d804-4f45-0be9-08d7b8ed7531 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Feb 2020 05:50:30.7693 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: jmX0f6OxQQ2GRl0skqMq6p5+uZKJgmQqXgWz1chzfgybNm0J/qW9ogUuoKDmfJY1N+4NQm7/VSDy7bgafBDXyw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR04MB6539 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgQW5kcmV3LA0KDQpUaGFua3MgYSBsb3QgZm9yIHlvdXIgcmV2aWV3IQ0KDQpUaGFua3MsDQpa aGlxaWFuZw0KDQo+IC0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IEFuZHJldyBN dXJyYXkgPGFtdXJyYXlAdGhlZ29vZHBlbmd1aW4uY28udWs+DQo+IFNlbnQ6IDIwMjDE6jLUwjIx yNUgMTozMQ0KPi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