Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id F3C58E00D32; Fri, 28 Jul 2017 00:44:45 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [104.47.36.124 listed in list.dnswl.org] * -0.0 SPF_HELO_PASS SPF: HELO matches SPF record * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0124.outbound.protection.outlook.com [104.47.36.124]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id D78A5E00D11 for ; Fri, 28 Jul 2017 00:44:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freescale.onmicrosoft.com; s=selector1-freescale-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=xlfNvgr+Z90ZA+2hlj0mQv7nV99mhwJxuVvFFunCJ0o=; b=mubAU7st75MC9SstuTXFx/2KZsJu25nfoIlywsxUnY9NSjY9xwyxWNMCj1TbmxTTyGC/BFgwGoRXMpUPUWJef24mYqY1LD1r8r45L/W2x12Cuvbor95n8L/8a9JM0x7vZV8j8NN1jldu90AwcgdxyIMbt368ZWdITMsciMdK6fs= Received: from BN6PR03CA0085.namprd03.prod.outlook.com (2603:10b6:405:6f::23) by DM2PR03MB382.namprd03.prod.outlook.com (2a01:111:e400:2419::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1304.14; Fri, 28 Jul 2017 07:44:36 +0000 Received: from BN1BFFO11OLC002.protection.gbl (2a01:111:f400:7c10::1:154) by BN6PR03CA0085.outlook.office365.com (2603:10b6:405:6f::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1282.10 via Frontend Transport; Fri, 28 Jul 2017 07:44:36 +0000 Authentication-Results: spf=neutral (sender IP is 192.88.168.50) smtp.mailfrom=freescale.com; nxp.com; dkim=none (message not signed) header.d=none; nxp.com; dmarc=none action=none header.from=freescale.com; Received-SPF: Neutral (protection.outlook.com: 192.88.168.50 is neither permitted nor denied by domain of freescale.com) Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1BFFO11OLC002.mail.protection.outlook.com (10.58.145.13) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1282.16 via Frontend Transport; Fri, 28 Jul 2017 07:44:36 +0000 Received: from sun.ap.freescale.net (sun.ap.freescale.net [10.192.208.75]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v6S7iRGV006468; Fri, 28 Jul 2017 00:44:34 -0700 From: Chunrong Guo To: Date: Fri, 28 Jul 2017 15:44:05 +0800 Message-ID: <1501227862-21558-4-git-send-email-B40290@freescale.com> X-Mailer: git-send-email 1.9.0 In-Reply-To: <1501227862-21558-1-git-send-email-B40290@freescale.com> References: <1501227862-21558-1-git-send-email-B40290@freescale.com> X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(39860400002)(39450400003)(39840400002)(39850400002)(39400400002)(39410400002)(2980300002)(199003)(189002)(47776003)(2906002)(498600001)(5660300001)(966005)(305945005)(105606002)(42882006)(2351001)(356003)(104016004)(53936002)(110136004)(38730400002)(97736004)(106466001)(4326008)(5003940100001)(626005)(77096006)(189998001)(8656003)(6666003)(50986999)(2950100002)(76176999)(575784001)(107886003)(53946003)(6916009)(50226002)(81156014)(50466002)(81166006)(8936002)(54906002)(48376002)(36756003)(68736007)(8676002)(6306002)(19627235001); DIR:OUT; SFP:1102; SCL:1; SRVR:DM2PR03MB382; H:tx30smr01.am.freescale.net; FPR:; SPF:Neutral; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11OLC002; 1:WOwvjG+p5VCXXs4shCQCsd6TLE8IGCdqJNXFVK/Le52U36wxWTOuzDDvvXgctms0367nuPwtZ6xWd+C5Zkwq4pChGa53I6O9yRHCJtsz1Qro5gqZrSP1s2/cSJbJj2PdOB/m5onKvIHYVtB1KMoDaca4kUSoIlNe1B596VwY7vuMTNT1kUYIoW3PpuUd5l6S85xrr1kf5B/F/jjkSXRtDuhbIxPVr/EpinpYFucNoyCaOetwUi5aYK1AM5Cu5LfYEheKzut2UQq81OrDxZ4HM7LsC7kH8vXNow+CE6XXEZEbHiMdusnlk4MF9Uj3arBWKawKn3fr1cYC3VnBoz7ipAqKiDsZEYwNp8xPNYrO3mlFV3+PPNzDyKEMWkivsd0Z5OVBKRadtjHfMkzkxYYJAtYAWxoFUahaNL2HzJpx9zOyNE7LKOQpvkJvDKGFLvwj6v/4IE7Wqb8d2JOwqvMa2cAzf4rYKE1iLsHr+n/FeFhf4u7nIzhVITxuhdIy5h6b/T8JJHx0qS+/QEvM/uOXPMtMy2ZQS7vT1iOmWnbvzaitIgw7DE8kzRIRyJnIZV+CiKWa83Ai97E7JTOIEbTOiVH6jnb50mXrhPKVik+MKPVNtR1WN1A+ryosBNuJR/Pkb0+GMugO3dlesnuuCwUw4JbXL6w9Uadr+WxysaCmjgkheAh9fIA3eH8dD3t5CKwpHlrp8RbOSeng2YIYJhj0lHbiIJg8vr3t/bO65FvZeJqs3pJA+ctGJPCuKfP+Da0PWw0W//vnDXwcUv98QT2ZpWZLymG7EbiswWRv7QobfagxYqGt3ifUUvC+cxHpvOxQ MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9b52c000-ff14-404d-87f5-08d4d58c7ece X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254075)(300000503095)(300135400095)(2017052603031)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:DM2PR03MB382; X-Microsoft-Exchange-Diagnostics: 1; DM2PR03MB382; 3:EdtPfn1haDuRAzBlzoZivd8r6dS9bp3beTZHQwB0+GVL66iElLIZRM3cuafWL1H1luYyv+EgYAB1LQf7+ibEr05VbfHmna4GKanJkre2S/aWgr6dWM+gTu5MpoSGkyFk5zrDKQUHFQDpZm4YEQW0HjUvrm4JXMAz/d06JwzUKveUpD/ac7x4dK3BfxR4vsHTKSy2Yf/pAQv8wdhpRWFmtjWAwnIxoaRe95J+h36/qL4C5wSyivYH9og9v6FhMQg0CHASU4AJGcQICmZj8He+Kelhvpdr35o7763O2AWDtXeEGd0cBnRbjK6GoeRjR3caE3S9pN1OAoLX8fv9S/ZNh4KHsVyYzSGggzMxCsRdA1RxBhDfp4G1iMV63JGFygdxRON6QYh2LR8J25O8sk3wWhGSP7gXCh7SNf6P+3o3QWNdPPlvWKLmL/qKzaIIhHaH9dczivQs6YHcEZkN7/TOlxlMhSY/+uLQQr1W1+/xfdtvFbyrijEhKTTlTKACauTLZNie5svujMb7g/lMaWxn5FkO71xbOKQRzeCsZsGTOW7emxJU0H2sXTln7KqYXaBnCsLmQv48bq+mXoRjMcwbJK7M5V65zv0LPAG4oM0qEmqdbYBVXXGRMmYenHJlI+0EuLp2G86CJZQZCqfUsFIjG1Z3UmZ5ZZjNGjTFWaFKEIG1K72Zlv1du3Bo/R6qZr91sQpGlVtkXfXsz710JYvFD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jc3e3PDsWA7M7kGOEMOqh0S4qGDnbwVbA+ruM7h9j0VSpS61TChNgZYxNMUZ/fM1d3WPb4TzobMF0OTsrwPL9fBAVhwyHmxhST+9zDdO368+QCdAkPOsK6u5AN8EgLIvkePJrLloI0oWgYICW67O4ZB300Q= X-LD-Processed: 710a03f5-10f6-4d38-9ff4-a80b81da590d,ExtAddr X-Microsoft-Exchange-Diagnostics: 1; DM2PR03MB382; 31:2hKjZdBS0pB9r6DfB2cvHCIym1heAFEj0qaEJWdFpoWAPufOETgFT3CTd9GFsEgze0L7BGc8Lzxn4aBKE5zlbqfEGROBb5FT3WYAvKfhuExb8x6JPj+BzLxSZvB4yI5RkyYwOKPN32ZD1VowoppYKD8294TI+Lbz+a3vYGCN5nUH/1BdftxLwHo2caa59qumqftAHj5/6J7liYHkDsjvQNCmLQ/GM7hUEC/WSx92IqCWk4NrqXbXDK7ZrUuegc6Ow2iQ4omyLHUBjOXAYAziZ3S0eQLAW57c2gkNJlgTr1U+hGMj3ocXNi9S4sqo9qgFj9L82Dg8+1TWOvu5ctslNlWoRIeVoXg9NO724NFCgn5bSYxGCISVQYzSsT27klEm9baTcyrJzNoQg2hcEwDcqJODPGKLY9QkEkUblA8qtYFAXDeWajwbaIlkBHwsNK8GQ219ZGDQ9LXYAWntc3S3/YVh5I0gVadnImjjMKVKViHLeRoqX/WUrPQwGfe0YszCzBu4O6ig1yJ2BJ9awuiO3bq2jmECJijE/+EAAn18nmB51GHokEokCLaswSRX9PanZz3bf21u22kDwHRafGGDV2/opkjGsdEPUIatpFIayzo6uF2b8B/1xUMAmf6jg0H8qmvRrUGQMUuAK40FlTAx/tE9zBPuc0t9voQyQiNFSl8SFuuRE47zZc18xEmSsS1CF6qDkzpQZW4D/ZWT7mYAdw== X-Microsoft-Exchange-Diagnostics: 1; DM2PR03MB382; 20:msrWB+nRwHI0wGy8cKnFIswGhYVzSBmY8skVqRT04gLmRr5VnmFE4jp7ENwMzHdfImvYFJWM0mo1ELj20Bpnv1N7v7i9PX00xsEoGV7wtPADKI/0ZnruiI1dC2TttPonBlvwITA4r+t2h5Uqw8xzSbPtMK+jEHSDuCpJ4hIPWH8jkHWJ9xywdAmTND2eWZCk4T1GnVSYVmcbGPShMdF01Ikaa9G0ihLCOTsaPkxD0Hc7vOCXYzz7BZ0p3wbTzphVfXdCi0W6m14XOad+Kxm/O/noEiJpAkxEUAvJfRj/HTiw34RdP3uzsQoFiUcigG7rhcdD9h/Y7yakpX3eHYqHXnw2YGq2YxWQ57GoEE3Dhm5zQy76IDb1A4xocpKYINxGSbsf1J+MWYMH1b7ewlwnu1fTK+b0D8h3qYgqF0A7E6ddN5zrU4Shf0Kj9qvSAUKpGtZHeNwiRSqyDPeHg6ldZygS3lfLGZ7IEHHJaOjrNY5Ez0F06CUyJuMM15pnEEkQEnfzO+VzK7zn3zAdPq04pfV3V5bsiCddaoGX85/QcP5hTXZVUE76ohciWUOZ+SFkOwn6cW30afQMH2XdYrYaVqWDF+Ytp81dtGrq524JEn8= X-Exchange-Antispam-Report-Test: UriScan:(22074186197030)(166708455590820)(9452136761055)(131327999870524)(185117386973197)(788757137089)(101931422205132)(183786458502308)(104084551191319)(198206253151910); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(13016025)(13018025)(8121501046)(10201501046)(3002001)(93006095)(100000703101)(100105400095)(6055026)(6041248)(20161123562025)(20161123558100)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061750153)(20161123564025)(20161123555025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM2PR03MB382; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM2PR03MB382; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR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= =?us-ascii?Q?QiwjSMmn2A2Do/st53qR1gwzdXc8auzSfGmvfGv17BL6BoQ1i8mjp8S5j6uG?= =?us-ascii?Q?piWeABp9J99dbykX21DyHwvdj1lOZM773CSX4yHj+uN161TmjXT3PCAiQcUT?= =?us-ascii?Q?0HevMCYQ3qIAfQ+hO5ymxd0ieSbpiwJR0a3HuDe2hlz2KEC54LvbUT0gy8Q8?= =?us-ascii?Q?W63GI6VGbHO2V3coIYgfVnJT7VKHZneUCNVVY7u7IFaXO8yBzbBftB2F42E4?= =?us-ascii?Q?6JZwDdwEXlLLBCbRk7WaNbWiwzEALmfaG/yHgYaLrUoPDVqiTXW15iLtgQ/r?= =?us-ascii?Q?iSZM/0E5Mw51c75HDlhkAAYEwaEjLcLOmwqxddIoLSHputZNEPg39kCjsDJW?= =?us-ascii?Q?twqSmFcmvXYutK1wHRx1CPiKveC3zUblA+y0m/TPBFhxwYeSvBfVuJtAJzs+?= =?us-ascii?Q?mBcX/CEgJPBZvS2+hT9CRlDzZ9srX2mNnNOe4asf0whUDJsEXqd6Xtp/PT6Q?= =?us-ascii?Q?OHJgWSlC2L+P0xMNPHpUUGIcLQW/3icphvfYzgtPQ0jsxhkLxluPFKM9oBbv?= =?us-ascii?Q?8IjqCILqJiitho4AXRJiR8atsl27cfLvy8x3Qo6j3YXxolYx0zNXI6M1XQzY?= =?us-ascii?Q?7xXpBll6+jDQjPNCKUYupRhpjNzqZxLFQlkQqlDl/qgsuPH43o8ko?= X-Forefront-PRVS: 03827AF76E X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR03MB382; 23:48kBkeuiOzo8TLa3Keaeimif4lreT0Q2Eiomt2hz7e?= =?us-ascii?Q?OrPGoAni0v4agS3abXbykI0zDxJyJ3csmuCiJihdZKobg0lLmDmyRSYH1IW3?= =?us-ascii?Q?xEIOLBwVTy4iUMOOQFVN2snd6o4+ygdy6YcjR5M0WaJXhHzpDAp7H7Du0hMv?= =?us-ascii?Q?B5RzlP1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UgeMA4Qu?= =?us-ascii?Q?qOgkfWwHSM40AqhVXWD+IIedhCWeSZjiA3eL3Habt/Pag50UoIE7ZFOl/PHI?= =?us-ascii?Q?ZPHoqDHZfGSb620iFkhPbeiLKG9hgerkWFQmbRSp10UEgbHACdeOGsuU5Tsc?= =?us-ascii?Q?FQWTLFPdBKPWi4axtXz3gvW/OjtOG8APX7g2SQZPiru86IF34/tolE1UFv04?= =?us-ascii?Q?C235rMbZSJLsCXAqNve3ns12yNTCfwV3PFoWNO?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR03MB382; 6:/3zLT5YLf2grHsmmjnodVePACFdvS5qtTd+6JG1MNHe?= =?us-ascii?Q?4Zs7zUttyxiEyhlWXJE603l0PYtIkP1wBi6eoaXKJP8XDToeNdEy83mMlnxo?= =?us-ascii?Q?xqTvXKrWaQEU7x1O3Pfmpw/YwY+NJBUYYTzapY+pMrSMvzmcJPIBfAPF7i6r?= =?us-ascii?Q?vuxlBfHOP/DhnF0tAZ4lKbSIovuInDzDQSSr5VeHy3q5sRYbLxc8aauwiErw?= =?us-ascii?Q?UpFrYcPW3r9EQLkiV1TfvF17INjWEjzc80xWKgr7W7FAGvq/gEpLdPr6kL2+?= =?us-ascii?Q?hoERTY3hgKiIEBBODH2Bedbb4mmFrvAQUDBCgoKtEQ7KZppxPKbw0eonEiyA?= =?us-ascii?Q?1FWB/7iF8HmUqHJo9r4NvfqsacW+/zaZbzTwizddcxMSz0sZ8WWOe4nElJYo?= =?us-ascii?Q?JCX4imz++MUsJ2301TaimhKVqxP7j81z+wqgoAuIUFfCtQ7ZKYq4ecJIxn2t?= =?us-ascii?Q?+aXcrNJOHTYG0vj8Ihn5LpWFHb0erLKvjE2PO3Lh0C0gBpR+SHYFUvgM3STQ?= =?us-ascii?Q?t3PY8JRChQgDe4b/h908yjZrzI869HRSDuUX55UytfdBFhoWF7AF8oPocg4k?= =?us-ascii?Q?ZyzDG3v7Xd93t1cpxEOZrPe6DYfEejr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h0sUXQIo2gijoVo/ksOm1Fr/miOsO7Vob/O5rKpXUwEzOn0MT5SF1CbdpR/EPxWpuhElR0lFdp3Ol4wYHCoNaMNlk+8KmrY5Y3VEM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM2PR03MB382; 7:ErP47H/E5gkT8JtrAq1BDXCP4GZkgd75mEaqkqUrUL3w0SgsjXgHKoWS3tEGa1/46StANQeun0Usutx6PZ4Yo7wjngARzs24kPLy2bA24hac0edLpOdXGn6TTCMgqT+9MESL3fPmrYOeBB+CnDAvFfPg6htcAKvhaV0D3aY5xSw2R6+N8aSsOGTSQZq9C77WzQYPCQu1R4gZFtQ3hTkoUNDLQG5xC0lqztGUPvSKQ2BQ4ns8BuPvl9VlNnly5cq5FXJryMWl/gHdcyUhUrxQQ8yEhdFHfZByiC9PIu8gAY9iAluWHDWn4roSnrr7DK3OhKuhjibInS07w0TpuqevcnjDvv53Xeuk91N1F/IdBQuD5OFYS++TgNQOwPMdEwXG29HggYzZjQy5JxCs2P9yNGsfLc28udjH343EnwIe8KVKUdayhs/Qcc08dxzwpOCmeXxTj6IDG4yOcXKlJW0EnH6uNGyrS+7HGdw8bTdmJr740AJev/mb+tIcL97cKJT7Q5etfix1gkApErVIpjVM3JK6pV7prlJB9X+ZNW2mtblnG3OhEg5mCrqeYfiiIcDpZ8yFpNfeL33o/bCqifhLF0BfAum7FMy2oTxRw1c+5drB/m9ixsHa7gj+YKEWml5GRcvMnm402+XELvXppXHul0rE1SL16HHMjR2AkmaOP+2CjKA+1wuX1YgDJkv8bPRSx/IOY/GYvOKWBKcct/5NdRK9kERMS5slWIu+ttp1rJ82j14TurghNd4tewtR4J+C8U1Gd9Atus5Hljhc1QD7Rel2NfSbFNNOS658b36aez8= X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Jul 2017 07:44:36.3968 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR03MB382 Cc: Chunrong Guo Subject: [PATCH 04/21] linux: upgrade to v4.4 X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Jul 2017 07:44:46 -0000 Content-Type: text/plain From: Chunrong Guo *include the following changes ec61f52 - irqchip/gicv3: Remove disabling redistributor and group1 non-secure interrupts 7f4242d - arm64: dts: update the cpu idle node ab7df6a - arm: dma-mapping: export arch_setup_dma_ops() 9d921e8 - gianfar_ptp: replace get_of_u32 with of_property_read_u32 ec491e1 - arm64: dts: ls2088ardb: Update nodes for QSPI 69fe6d7 - mtd: spi-nor: Fix the wrong setting for SPI_NOR_DDR_QUAD_READ 13694ee - arm: config: Remove CONFIG_MTD_CFI_BE_BYTE_SWAP in multi_v7_defconfig 9153b91 - arm: dts: Add big-endian for IFC on LS1021A 765159b - armv8: dts: Add big-endian for IFC on LS1043A/LS1046A dec2400 - arm64: configs: Remove CONFIG_MTD_CFI_BE_BYTE_SWAP in lsdk.config b1ce954 - driver: mtd: update struct map_info's swap as per map requirement dea4d1b - phy: allow 10G fixed PHY support e16454a - net: phy: add 10000 as valid speed for fixed-link 57e8edd - crypto: caam/qi2 - setup CG only if supported b4b138a - crypto: caam/qi2 - add dpseci capabilities support 110fc6b - serial: fsl_lpuart: Remove the alias node dependence 4f43ea0 - pcie-ep: Fix the memory leak issue 4a14d8f - pci-ep/ls1046a: Add new interface to show the transfer data 3da05d2 - pci-ep/ls1046a: Instead of the __get_free_pages with dma_alloc_coherent 270c4da - pci-ep/ls1046a: Add new input parameter to set transfer data c4b6a9a - pci-ep/ls1046a: Remove the BARs set step 22b58f3 - pci-ep/ls1046a: Correct LUT offset for different LS platform cc463ba - pci/layerscape: add msi trigger function 284f305 - pci/layerscape: fix compile issue 04f2757 - pci/layerscape: Add PCIe endpoint driver faad801 - ls1088a: dts: Added reboot node 8b5f765 - crypto: caam/qi - abort algorithm setup on DPAA2 parts 574f783 - arm64: defconfig: enable CONFIG_GPIO_MPC8XXX 2fb5946 - crypto: caam/qi2 - fix authenc givencrypt shared descriptor da6f201 - arm64: dts: ls2088a: add cpu idle support 943127c - arm64: dts: ls1088a: add cpu idle support 4884a91 - arm64: dts: ls1043a: add cpu idle support 9b01166 - arm64: dts: ls1012a: add cpu idle support 4878b3b - staging: fsl-dpaa2/eth: Set Tx timestamp support correctly cde1f46 - dpaa_eth: move global variable 'clock' into ptp_priv_s struct 7579dc5 - config: arm32: enable necessary options for KVM and containers 2b8471d - dts: ls1046aqds: add "simple-bus" and ranges to fpga bde83bb - usb: dts: for fix usb port faile issue on ls1021atwr 206cee8 - usb: dwc3 : Add support for USB snooping 6ee3ba2 - usb: host: xhci: add a new quirk XHCI_NO_64BIT_SUPPORT 7532a3a - fmd: use ptp-timer for Fman RTC node name c95fecc - dpaa_eth: use ptp-timer phandle instead of ptimer-handle 43ea287 - arm64: dts: ls1088ardb: correct the base address of watchdog d1d561b - arm64: dts: add qmda note in ls1043/ls1046 dts. 1f984eb - arm64:configs: Enable CEPH_FS and XFS_FS in lsdk.config 63543be - crypto: caam/qi2: add support for TLS 1.0 record 508ce50 - caam/qi - add support for TLS 1.0 record 68054f6 - crypto: caam - add support for MOVEB command 4aa26bc - crypto: caam/qi - explicitly set dma_ops 9ba9074 - crypto: caam/qi - fix AD length endianness in S/G entry 41b5850 - crypto: caam/qi - use QBMan (NXP) SDK driver db3e005 - dpa_eth: remove unused code a648124 - dpaa_eth: ceetm: adapt to net/sched API changes e5435d5 - fsl_qbman: set dma_ops e954a2f - staging: fsl-dpaa2/eth: Update tx_shaping max burst size 7644da1 - staging: fsl-dpaa2/eth: Fix kfree bug 47d6760 - cpufreq: qoriq: enhance bus frequency calculation 53cc39e - arm64: lsdk.config: Enable CONFIG_OVERLAY_FS in kernel e394bc8 - driver: mtd: ifc: update bufnum mask for ver >= 2.0.0 67565eb - driver: mtd: ifc: Initialize SRAM for all version >= 1.0 3c9e9ac - Add dspi node for fsl-ls1046a-qds-sdk dts 9990039 - crypto: backport TLS implementation to v4.4 API Signed-off-by: Chunrong Guo --- .../0003-use-static-inline-in-ARM-lifeboot.h.patch | 39 ------ .../linux/linux-qoriq/CVE-2016-0758.patch | 98 --------------- .../linux/linux-qoriq/CVE-2016-2053.patch | 133 --------------------- .../fix-the-compile-issue-under-gcc6.patch | 103 ---------------- .../modify-defconfig-t1040-nr-cpus.patch | 33 ----- ...pic_msi_feature-if-CONFIG_EPAPR_PARAVIRT-.patch | 32 ----- ...pc-64e-Convert-cmpi-to-cmpwi-in-head_64.S.patch | 57 --------- ...x-build-of-the-dtb-embedded-kernel-images.patch | 45 ------- ...dso64-Use-double-word-compare-on-pointers.patch | 67 ----------- recipes-kernel/linux/linux-qoriq_4.1.bb | 82 ------------- recipes-kernel/linux/linux-qoriq_4.4.bb | 73 +++++++++++ 11 files changed, 73 insertions(+), 689 deletions(-) delete mode 100644 recipes-kernel/linux/linux-qoriq/0003-use-static-inline-in-ARM-lifeboot.h.patch delete mode 100644 recipes-kernel/linux/linux-qoriq/CVE-2016-0758.patch delete mode 100644 recipes-kernel/linux/linux-qoriq/CVE-2016-2053.patch delete mode 100644 recipes-kernel/linux/linux-qoriq/fix-the-compile-issue-under-gcc6.patch delete mode 100644 recipes-kernel/linux/linux-qoriq/modify-defconfig-t1040-nr-cpus.patch delete mode 100644 recipes-kernel/linux/linux-qoriq/only-set-vmpic_msi_feature-if-CONFIG_EPAPR_PARAVIRT-.patch delete mode 100644 recipes-kernel/linux/linux-qoriq/powerpc-64e-Convert-cmpi-to-cmpwi-in-head_64.S.patch delete mode 100644 recipes-kernel/linux/linux-qoriq/powerpc-fsl-Fix-build-of-the-dtb-embedded-kernel-images.patch delete mode 100644 recipes-kernel/linux/linux-qoriq/powerpc-vdso64-Use-double-word-compare-on-pointers.patch delete mode 100644 recipes-kernel/linux/linux-qoriq_4.1.bb create mode 100644 recipes-kernel/linux/linux-qoriq_4.4.bb diff --git a/recipes-kernel/linux/linux-qoriq/0003-use-static-inline-in-ARM-lifeboot.h.patch b/recipes-kernel/linux/linux-qoriq/0003-use-static-inline-in-ARM-lifeboot.h.patch deleted file mode 100644 index 161bada..0000000 --- a/recipes-kernel/linux/linux-qoriq/0003-use-static-inline-in-ARM-lifeboot.h.patch +++ /dev/null @@ -1,39 +0,0 @@ -From 16b34c08f43c6e65f21a8cab536c497edb6c886e Mon Sep 17 00:00:00 2001 -From: Chunrong Guo -Date: Thu, 8 Oct 2015 22:48:22 -0500 -Subject: [PATCH] use static inline in ARM lifeboot.h - ---- - drivers/input/mouse/sentelic.h | 2 +- - drivers/input/mouse/trackpoint.h | 2 +- - 2 files changed, 2 insertions(+), 2 deletions(-) - -diff --git a/drivers/input/mouse/sentelic.h b/drivers/input/mouse/sentelic.h -index aa697ec..9e69e94 100644 ---- a/drivers/input/mouse/sentelic.h -+++ b/drivers/input/mouse/sentelic.h -@@ -123,7 +123,7 @@ struct fsp_data { - extern int fsp_detect(struct psmouse *psmouse, bool set_properties); - extern int fsp_init(struct psmouse *psmouse); - #else --inline int fsp_detect(struct psmouse *psmouse, bool set_properties) -+static inline int fsp_detect(struct psmouse *psmouse, bool set_properties) - { - return -ENOSYS; - } -diff --git a/drivers/input/mouse/trackpoint.h b/drivers/input/mouse/trackpoint.h -index ecd0547..693735c 100644 ---- a/drivers/input/mouse/trackpoint.h -+++ b/drivers/input/mouse/trackpoint.h -@@ -147,7 +147,7 @@ struct trackpoint_data - #ifdef CONFIG_MOUSE_PS2_TRACKPOINT - int trackpoint_detect(struct psmouse *psmouse, bool set_properties); - #else --inline int trackpoint_detect(struct psmouse *psmouse, bool set_properties) -+static inline int trackpoint_detect(struct psmouse *psmouse, bool set_properties) - { - return -ENOSYS; - } --- -2.3.3 - diff --git a/recipes-kernel/linux/linux-qoriq/CVE-2016-0758.patch b/recipes-kernel/linux/linux-qoriq/CVE-2016-0758.patch deleted file mode 100644 index 5447552..0000000 --- a/recipes-kernel/linux/linux-qoriq/CVE-2016-0758.patch +++ /dev/null @@ -1,98 +0,0 @@ -From af00ae6ef5a2c73f21ba215c476570b7772a14fb Mon Sep 17 00:00:00 2001 -From: David Howells -Date: Tue, 23 Feb 2016 11:03:12 +0000 -Subject: KEYS: Fix ASN.1 indefinite length object parsing - -commit 23c8a812dc3c621009e4f0e5342aa4e2ede1ceaa upstream. - -This fixes CVE-2016-0758. - -In the ASN.1 decoder, when the length field of an ASN.1 value is extracted, -it isn't validated against the remaining amount of data before being added -to the cursor. With a sufficiently large size indicated, the check: - - datalen - dp < 2 - -may then fail due to integer overflow. - -Fix this by checking the length indicated against the amount of remaining -data in both places a definite length is determined. - -Whilst we're at it, make the following changes: - - (1) Check the maximum size of extended length does not exceed the capacity - of the variable it's being stored in (len) rather than the type that - variable is assumed to be (size_t). - - (2) Compare the EOC tag to the symbolic constant ASN1_EOC rather than the - integer 0. - - (3) To reduce confusion, move the initialisation of len outside of: - - for (len = 0; n > 0; n--) { - - since it doesn't have anything to do with the loop counter n. - -CVE: CVE-2016-0758. -Upstream-Status: Backport [backported from kernel.org 3.16 branch] - -Signed-off-by: David Howells -Reviewed-by: Mimi Zohar -Acked-by: David Woodhouse -Acked-by: Peter Jones -Signed-off-by: Ben Hutchings -Signed-off-by: Sona Sarmadi ---- - lib/asn1_decoder.c | 16 +++++++++------- - 1 file changed, 9 insertions(+), 7 deletions(-) - -diff --git a/lib/asn1_decoder.c b/lib/asn1_decoder.c -index d60ce8a..806c5b6 100644 ---- a/lib/asn1_decoder.c -+++ b/lib/asn1_decoder.c -@@ -69,7 +69,7 @@ next_tag: - - /* Extract a tag from the data */ - tag = data[dp++]; -- if (tag == 0) { -+ if (tag == ASN1_EOC) { - /* It appears to be an EOC. */ - if (data[dp++] != 0) - goto invalid_eoc; -@@ -91,10 +91,8 @@ next_tag: - - /* Extract the length */ - len = data[dp++]; -- if (len <= 0x7f) { -- dp += len; -- goto next_tag; -- } -+ if (len <= 0x7f) -+ goto check_length; - - if (unlikely(len == ASN1_INDEFINITE_LENGTH)) { - /* Indefinite length */ -@@ -105,14 +103,18 @@ next_tag: - } - - n = len - 0x80; -- if (unlikely(n > sizeof(size_t) - 1)) -+ if (unlikely(n > sizeof(len) - 1)) - goto length_too_long; - if (unlikely(n > datalen - dp)) - goto data_overrun_error; -- for (len = 0; n > 0; n--) { -+ len = 0; -+ for (; n > 0; n--) { - len <<= 8; - len |= data[dp++]; - } -+check_length: -+ if (len > datalen - dp) -+ goto data_overrun_error; - dp += len; - goto next_tag; - --- -cgit v0.12 - diff --git a/recipes-kernel/linux/linux-qoriq/CVE-2016-2053.patch b/recipes-kernel/linux/linux-qoriq/CVE-2016-2053.patch deleted file mode 100644 index 778a99f..0000000 --- a/recipes-kernel/linux/linux-qoriq/CVE-2016-2053.patch +++ /dev/null @@ -1,133 +0,0 @@ -From 15430f775ee686b61569a0c3e74cf0b2ad57c8eb Mon Sep 17 00:00:00 2001 -From: David Howells -Date: Wed, 5 Aug 2015 12:54:46 +0100 -Subject: ASN.1: Fix non-match detection failure on data overrun - -commit 0d62e9dd6da45bbf0f33a8617afc5fe774c8f45f upstream. - -If the ASN.1 decoder is asked to parse a sequence of objects, non-optional -matches get skipped if there's no more data to be had rather than a -data-overrun error being reported. - -This is due to the code segment that decides whether to skip optional -matches (ie. matches that could get ignored because an element is marked -OPTIONAL in the grammar) due to a lack of data also skips non-optional -elements if the data pointer has reached the end of the buffer. - -This can be tested with the data decoder for the new RSA akcipher algorithm -that takes three non-optional integers. Currently, it skips the last -integer if there is insufficient data. - -Without the fix, #defining DEBUG in asn1_decoder.c will show something -like: - - next_op: pc=0/13 dp=0/270 C=0 J=0 - - match? 30 30 00 - - TAG: 30 266 CONS - next_op: pc=2/13 dp=4/270 C=1 J=0 - - match? 02 02 00 - - TAG: 02 257 - - LEAF: 257 - next_op: pc=5/13 dp=265/270 C=1 J=0 - - match? 02 02 00 - - TAG: 02 3 - - LEAF: 3 - next_op: pc=8/13 dp=270/270 C=1 J=0 - next_op: pc=11/13 dp=270/270 C=1 J=0 - - end cons t=4 dp=270 l=270/270 - -The next_op line for pc=8/13 should be followed by a match line. - -This is not exploitable for X.509 certificates by means of shortening the -message and fixing up the ASN.1 CONS tags because: - - (1) The relevant records being built up are cleared before use. - - (2) If the message is shortened sufficiently to remove the public key, the - ASN.1 parse of the RSA key will fail quickly due to a lack of data. - - (3) Extracted signature data is either turned into MPIs (which cope with a - 0 length) or is simpler integers specifying algoritms and suchlike - (which can validly be 0); and - - (4) The AKID and SKID extensions are optional and their removal is handled - without risking passing a NULL to asymmetric_key_generate_id(). - - (5) If the certificate is truncated sufficiently to remove the subject, - issuer or serialNumber then the ASN.1 decoder will fail with a 'Cons - stack underflow' return. - -This is not exploitable for PKCS#7 messages by means of removal of elements -from such a message from the tail end of a sequence: - - (1) Any shortened X.509 certs embedded in the PKCS#7 message are survivable - as detailed above. - - (2) The message digest content isn't used if it shows a NULL pointer, - similarly, the authattrs aren't used if that shows a NULL pointer. - - (3) A missing signature results in a NULL MPI - which the MPI routines deal - with. - - (4) If data is NULL, it is expected that the message has detached content and - that is handled appropriately. - - (5) If the serialNumber is excised, the unconditional action associated - with it will pick up the containing SEQUENCE instead, so no NULL - pointer will be seen here. - - If both the issuer and the serialNumber are excised, the ASN.1 decode - will fail with an 'Unexpected tag' return. - - In either case, there's no way to get to asymmetric_key_generate_id() - with a NULL pointer. - - (6) Other fields are decoded to simple integers. Shortening the message - to omit an algorithm ID field will cause checks on this to fail early - in the verification process. - -This can also be tested by snipping objects off of the end of the ASN.1 stream -such that mandatory tags are removed - or even from the end of internal -SEQUENCEs. If any mandatory tag is missing, the error EBADMSG *should* be -produced. Without this patch ERANGE or ENOPKG might be produced or the parse -may apparently succeed, perhaps with ENOKEY or EKEYREJECTED being produced -later, depending on what gets snipped. - -Just snipping off the final BIT_STRING or OCTET_STRING from either sample -should be a start since both are mandatory and neither will cause an EBADMSG -without the patches - -CVE: CVE-2016-2053 -Upstream-Status: Backport [kernel.org linux-stable 3.16 branch] - -Reported-by: Marcel Holtmann -Signed-off-by: David Howells -Tested-by: Marcel Holtmann -Reviewed-by: David Woodhouse -Cc: Moritz Muehlenhoff -[ luis: backported to 3.16: adjusted context ] -Signed-off-by: Luis Henriques -Signed-off-by: Sona Sarmadi ---- - lib/asn1_decoder.c | 5 ++--- - 1 file changed, 2 insertions(+), 3 deletions(-) - -diff --git a/lib/asn1_decoder.c b/lib/asn1_decoder.c -index 1a000bb..d60ce8a 100644 ---- a/lib/asn1_decoder.c -+++ b/lib/asn1_decoder.c -@@ -208,9 +208,8 @@ next_op: - unsigned char tmp; - - /* Skip conditional matches if possible */ -- if ((op & ASN1_OP_MATCH__COND && -- flags & FLAG_MATCHED) || -- dp == datalen) { -+ if ((op & ASN1_OP_MATCH__COND && flags & FLAG_MATCHED) || -+ (op & ASN1_OP_MATCH__SKIP && dp == datalen)) { - pc += asn1_op_lengths[op]; - goto next_op; - } --- -cgit v0.12 - diff --git a/recipes-kernel/linux/linux-qoriq/fix-the-compile-issue-under-gcc6.patch b/recipes-kernel/linux/linux-qoriq/fix-the-compile-issue-under-gcc6.patch deleted file mode 100644 index 910ef18..0000000 --- a/recipes-kernel/linux/linux-qoriq/fix-the-compile-issue-under-gcc6.patch +++ /dev/null @@ -1,103 +0,0 @@ -Fix the compile issue under gcc6 - -Fix the following build error: -| .../include/linux/compiler-gcc.h:106:30: fatal error: linux/compiler-gcc6.h: No such file or directory -| #include gcc_header(__GNUC__) - -Signed-off-by: Zhenhua Luo - -Upstream-Status: Pending ---- - arch/powerpc/kernel/Makefile | 2 -- - include/linux/compiler-gcc6.h | 66 +++++++++++++++++++++++++++++++++++++++++++ - 2 files changed, 66 insertions(+), 2 deletions(-) - create mode 100644 include/linux/compiler-gcc6.h - -diff --git a/arch/powerpc/kernel/Makefile b/arch/powerpc/kernel/Makefile -index c326675..45f0494 100644 ---- a/arch/powerpc/kernel/Makefile -+++ b/arch/powerpc/kernel/Makefile -@@ -4,8 +4,6 @@ - - CFLAGS_ptrace.o += -DUTS_MACHINE='"$(UTS_MACHINE)"' - --subdir-ccflags-$(CONFIG_PPC_WERROR) := -Werror -- - ifeq ($(CONFIG_PPC64),y) - CFLAGS_prom_init.o += $(NO_MINIMAL_TOC) - endif -diff --git a/include/linux/compiler-gcc6.h b/include/linux/compiler-gcc6.h -new file mode 100644 -index 0000000..cdd1cc2 ---- /dev/null -+++ b/include/linux/compiler-gcc6.h -@@ -0,0 +1,66 @@ -+#ifndef __LINUX_COMPILER_H -+#error "Please don't include directly, include instead." -+#endif -+ -+#define __used __attribute__((__used__)) -+#define __must_check __attribute__((warn_unused_result)) -+#define __compiler_offsetof(a, b) __builtin_offsetof(a, b) -+ -+/* Mark functions as cold. gcc will assume any path leading to a call -+ to them will be unlikely. This means a lot of manual unlikely()s -+ are unnecessary now for any paths leading to the usual suspects -+ like BUG(), printk(), panic() etc. [but let's keep them for now for -+ older compilers] -+ -+ Early snapshots of gcc 4.3 don't support this and we can't detect this -+ in the preprocessor, but we can live with this because they're unreleased. -+ Maketime probing would be overkill here. -+ -+ gcc also has a __attribute__((__hot__)) to move hot functions into -+ a special section, but I don't see any sense in this right now in -+ the kernel context */ -+#define __cold __attribute__((__cold__)) -+ -+#define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__) -+ -+#ifndef __CHECKER__ -+# define __compiletime_warning(message) __attribute__((warning(message))) -+# define __compiletime_error(message) __attribute__((error(message))) -+#endif /* __CHECKER__ */ -+ -+/* -+ * Mark a position in code as unreachable. This can be used to -+ * suppress control flow warnings after asm blocks that transfer -+ * control elsewhere. -+ * -+ * Early snapshots of gcc 4.5 don't support this and we can't detect -+ * this in the preprocessor, but we can live with this because they're -+ * unreleased. Really, we need to have autoconf for the kernel. -+ */ -+#define unreachable() __builtin_unreachable() -+ -+/* Mark a function definition as prohibited from being cloned. */ -+#define __noclone __attribute__((__noclone__)) -+ -+/* -+ * Tell the optimizer that something else uses this function or variable. -+ */ -+#define __visible __attribute__((externally_visible)) -+ -+/* -+ * GCC 'asm goto' miscompiles certain code sequences: -+ * -+ * http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58670 -+ * -+ * Work it around via a compiler barrier quirk suggested by Jakub Jelinek. -+ * Fixed in GCC 4.8.2 and later versions. -+ * -+ * (asm goto is automatically volatile - the naming reflects this.) -+ */ -+#define asm_volatile_goto(x...) do { asm goto(x); asm (""); } while (0) -+ -+#ifdef CONFIG_ARCH_USE_BUILTIN_BSWAP -+#define __HAVE_BUILTIN_BSWAP32__ -+#define __HAVE_BUILTIN_BSWAP64__ -+#define __HAVE_BUILTIN_BSWAP16__ -+#endif /* CONFIG_ARCH_USE_BUILTIN_BSWAP */ --- -2.5.0 - diff --git a/recipes-kernel/linux/linux-qoriq/modify-defconfig-t1040-nr-cpus.patch b/recipes-kernel/linux/linux-qoriq/modify-defconfig-t1040-nr-cpus.patch deleted file mode 100644 index 7d109ed..0000000 --- a/recipes-kernel/linux/linux-qoriq/modify-defconfig-t1040-nr-cpus.patch +++ /dev/null @@ -1,33 +0,0 @@ -From 8545129540a5862b22aad03badb2a9f93bf29117 Mon Sep 17 00:00:00 2001 -From: Bob Cochran -Date: Mon, 3 Nov 2014 22:45:35 -0500 -Subject: [meta-fsl-ppc][PATCH] linux-qoriq: Change defconfig for T1040 to - match number of CPUS - -Having a number higher than necessary for NR_CPUS wastes memory by -instantiating unnecessary structures in RAM. An example is in the DPAA where -DPAA_ETH_TX_QUEUES is defined based on NR_CPUS and used to create -dozens of extra qman_fq structures. Using the prior value of 24, which was -left over from the T4240 created an additonal 60 frame queue structures alone. - -This has been tested on t1040rdb-64b. . - -Signed-off-by: Bob Cochran ---- - arch/powerpc/configs/corenet32_fmanv3l_smp_defconfig | 2 +- - 1 files changed, 1 insertions(+), 1 deletions(-) - -diff --git a/arch/powerpc/configs/corenet32_fmanv3l_smp_defconfig b/arch/powerpc/configs/corenet32_fmanv3l_smp_defconfig -index a401e7c..5542248 100644 ---- a/arch/powerpc/configs/corenet32_fmanv3l_smp_defconfig -+++ b/arch/powerpc/configs/corenet32_fmanv3l_smp_defconfig -@@ -1,6 +1,6 @@ - CONFIG_PPC_85xx=y - CONFIG_SMP=y --CONFIG_NR_CPUS=8 -+CONFIG_NR_CPUS=4 - CONFIG_EXPERIMENTAL=y - CONFIG_SYSVIPC=y - CONFIG_POSIX_MQUEUE=y --- -1.7.9.5 diff --git a/recipes-kernel/linux/linux-qoriq/only-set-vmpic_msi_feature-if-CONFIG_EPAPR_PARAVIRT-.patch b/recipes-kernel/linux/linux-qoriq/only-set-vmpic_msi_feature-if-CONFIG_EPAPR_PARAVIRT-.patch deleted file mode 100644 index 5f3220d..0000000 --- a/recipes-kernel/linux/linux-qoriq/only-set-vmpic_msi_feature-if-CONFIG_EPAPR_PARAVIRT-.patch +++ /dev/null @@ -1,32 +0,0 @@ -From 15895f6880829ee502f0a48412173fb452b23c0b Mon Sep 17 00:00:00 2001 -From: Ting Liu -Date: Fri, 17 Jun 2016 10:57:35 +0800 -Subject: [PATCH] only set vmpic_msi_feature if CONFIG_EPAPR_PARAVIRT defined - -Upstream-Status: Pending - -Signed-off-by: Ting Liu ---- - arch/powerpc/sysdev/fsl_msi.c | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/arch/powerpc/sysdev/fsl_msi.c b/arch/powerpc/sysdev/fsl_msi.c -index 963661a..95d7111 100644 ---- a/arch/powerpc/sysdev/fsl_msi.c -+++ b/arch/powerpc/sysdev/fsl_msi.c -@@ -658,10 +658,12 @@ static const struct fsl_msi_feature ipic_msi_feature = { - .msiir_offset = 0x38, - }; - -+#ifdef CONFIG_EPAPR_PARAVIRT - static const struct fsl_msi_feature vmpic_msi_feature = { - .fsl_pic_ip = FSL_PIC_IP_VMPIC, - .msiir_offset = 0, - }; -+#endif - - static const struct of_device_id fsl_of_msi_ids[] = { - { --- -1.9.2 - diff --git a/recipes-kernel/linux/linux-qoriq/powerpc-64e-Convert-cmpi-to-cmpwi-in-head_64.S.patch b/recipes-kernel/linux/linux-qoriq/powerpc-64e-Convert-cmpi-to-cmpwi-in-head_64.S.patch deleted file mode 100644 index 710b212..0000000 --- a/recipes-kernel/linux/linux-qoriq/powerpc-64e-Convert-cmpi-to-cmpwi-in-head_64.S.patch +++ /dev/null @@ -1,57 +0,0 @@ -From f87f253bac3ce4a4eb2a60a1ae604d74e65f9042 Mon Sep 17 00:00:00 2001 -From: Nicholas Piggin -Date: Thu, 24 Nov 2016 00:02:07 +1100 -Subject: [PATCH] powerpc/64e: Convert cmpi to cmpwi in head_64.S - -From 80f23935cadb ("powerpc: Convert cmp to cmpd in idle enter sequence"): - - PowerPC's "cmp" instruction has four operands. Normally people write - "cmpw" or "cmpd" for the second cmp operand 0 or 1. But, frequently - people forget, and write "cmp" with just three operands. - - With older binutils this is silently accepted as if this was "cmpw", - while often "cmpd" is wanted. With newer binutils GAS will complain - about this for 64-bit code. For 32-bit code it still silently assumes - "cmpw" is what is meant. - -In this case, cmpwi is called for, so this is just a build fix for -new toolchains. - -Cc: stable@vger.kernel.org # v3.0+ -Signed-off-by: Nicholas Piggin -Signed-off-by: Michael Ellerman ---- - arch/powerpc/kernel/head_64.S | 8 ++++---- - 1 file changed, 4 insertions(+), 4 deletions(-) - -diff --git a/arch/powerpc/kernel/head_64.S b/arch/powerpc/kernel/head_64.S -index 451a8e1..bdb4612 100644 ---- a/arch/powerpc/kernel/head_64.S -+++ b/arch/powerpc/kernel/head_64.S -@@ -221,9 +221,9 @@ booting_thread_hwid: - */ - _GLOBAL(book3e_start_thread) - LOAD_REG_IMMEDIATE(r5, MSR_KERNEL) -- cmpi 0, r3, 0 -+ cmpwi r3, 0 - beq 10f -- cmpi 0, r3, 1 -+ cmpwi r3, 1 - beq 11f - /* If the thread id is invalid, just exit. */ - b 13f -@@ -248,9 +248,9 @@ _GLOBAL(book3e_start_thread) - * r3 = the thread physical id - */ - _GLOBAL(book3e_stop_thread) -- cmpi 0, r3, 0 -+ cmpwi r3, 0 - beq 10f -- cmpi 0, r3, 1 -+ cmpwi r3, 1 - beq 10f - /* If the thread id is invalid, just exit. */ - b 13f --- -2.7.4 - diff --git a/recipes-kernel/linux/linux-qoriq/powerpc-fsl-Fix-build-of-the-dtb-embedded-kernel-images.patch b/recipes-kernel/linux/linux-qoriq/powerpc-fsl-Fix-build-of-the-dtb-embedded-kernel-images.patch deleted file mode 100644 index 1103f0c..0000000 --- a/recipes-kernel/linux/linux-qoriq/powerpc-fsl-Fix-build-of-the-dtb-embedded-kernel-images.patch +++ /dev/null @@ -1,45 +0,0 @@ -From 4680c9d50637f78338e786c920aef6c171c7cc00 Mon Sep 17 00:00:00 2001 -From: Alessio Igor Bogani -Date: Mon, 18 Apr 2016 08:36:19 +0200 -Subject: powerpc/fsl: Fix build of the dtb embedded kernel images - -Commit dc37374b9c833 ("powerpc/fsl: Move Freescale device tree files -into fsl folder") moved a lot of device tree files into fsl directory, -fixing Makefile for cuImage target only. Unfortunately there are other -targets which require embedding a device tree into the kernel image -(e.g. dtbImage.%). So use a more generic approach. - -Signed-off-by: Alessio Igor Bogani -[scottwood: cleaned up commit message] -Signed-off-by: Scott Wood ---- - arch/powerpc/boot/Makefile | 6 +++--- - 1 file changed, 3 insertions(+), 3 deletions(-) - -diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile -index 6116510..8fe78a3 100644 ---- a/arch/powerpc/boot/Makefile -+++ b/arch/powerpc/boot/Makefile -@@ -362,9 +362,6 @@ $(obj)/cuImage.initrd.%: vmlinux $(obj)/%.dtb $(wrapperbits) - $(obj)/cuImage.%: vmlinux $(obj)/%.dtb $(wrapperbits) - $(call if_changed,wrap,cuboot-$*,,$(obj)/$*.dtb) - --$(obj)/cuImage.%: vmlinux $(obj)/fsl/%.dtb $(wrapperbits) -- $(call if_changed,wrap,cuboot-$*,,$(obj)/fsl/$*.dtb) -- - $(obj)/simpleImage.initrd.%: vmlinux $(obj)/%.dtb $(wrapperbits) - $(call if_changed,wrap,simpleboot-$*,,$(obj)/$*.dtb,$(obj)/ramdisk.image.gz) - -@@ -381,6 +378,9 @@ $(obj)/treeImage.%: vmlinux $(obj)/%.dtb $(wrapperbits) - $(obj)/%.dtb: $(src)/dts/%.dts FORCE - $(call if_changed_dep,dtc) - -+$(obj)/%.dtb: $(src)/dts/fsl/%.dts FORCE -+ $(call if_changed_dep,dtc) -+ - # If there isn't a platform selected then just strip the vmlinux. - ifeq (,$(image-y)) - image-y := vmlinux.strip --- -cgit v0.12 - diff --git a/recipes-kernel/linux/linux-qoriq/powerpc-vdso64-Use-double-word-compare-on-pointers.patch b/recipes-kernel/linux/linux-qoriq/powerpc-vdso64-Use-double-word-compare-on-pointers.patch deleted file mode 100644 index 9fa40de..0000000 --- a/recipes-kernel/linux/linux-qoriq/powerpc-vdso64-Use-double-word-compare-on-pointers.patch +++ /dev/null @@ -1,67 +0,0 @@ -From 5045ea37377ce8cca6890d32b127ad6770e6dce5 Mon Sep 17 00:00:00 2001 -From: Anton Blanchard -Date: Sun, 25 Sep 2016 17:16:53 +1000 -Subject: [PATCH] powerpc/vdso64: Use double word compare on pointers - -__kernel_get_syscall_map() and __kernel_clock_getres() use cmpli to -check if the passed in pointer is non zero. cmpli maps to a 32 bit -compare on binutils, so we ignore the top 32 bits. - -A simple test case can be created by passing in a bogus pointer with -the bottom 32 bits clear. Using a clk_id that is handled by the VDSO, -then one that is handled by the kernel shows the problem: - - printf("%d\n", clock_getres(CLOCK_REALTIME, (void *)0x100000000)); - printf("%d\n", clock_getres(CLOCK_BOOTTIME, (void *)0x100000000)); - -And we get: - - 0 - -1 - -The bigger issue is if we pass a valid pointer with the bottom 32 bits -clear, in this case we will return success but won't write any data -to the pointer. - -I stumbled across this issue because the LLVM integrated assembler -doesn't accept cmpli with 3 arguments. Fix this by converting them to -cmpldi. - -Fixes: a7f290dad32e ("[PATCH] powerpc: Merge vdso's and add vdso support to 32 bits kernel") -Cc: stable@vger.kernel.org # v2.6.15+ -Signed-off-by: Anton Blanchard -Signed-off-by: Michael Ellerman ---- - arch/powerpc/kernel/vdso64/datapage.S | 2 +- - arch/powerpc/kernel/vdso64/gettimeofday.S | 2 +- - 2 files changed, 2 insertions(+), 2 deletions(-) - -diff --git a/arch/powerpc/kernel/vdso64/datapage.S b/arch/powerpc/kernel/vdso64/datapage.S -index 184a6ba..abf17fe 100644 ---- a/arch/powerpc/kernel/vdso64/datapage.S -+++ b/arch/powerpc/kernel/vdso64/datapage.S -@@ -59,7 +59,7 @@ V_FUNCTION_BEGIN(__kernel_get_syscall_map) - bl V_LOCAL_FUNC(__get_datapage) - mtlr r12 - addi r3,r3,CFG_SYSCALL_MAP64 -- cmpli cr0,r4,0 -+ cmpldi cr0,r4,0 - crclr cr0*4+so - beqlr - li r0,NR_syscalls -diff --git a/arch/powerpc/kernel/vdso64/gettimeofday.S b/arch/powerpc/kernel/vdso64/gettimeofday.S -index a76b4af..3820213 100644 ---- a/arch/powerpc/kernel/vdso64/gettimeofday.S -+++ b/arch/powerpc/kernel/vdso64/gettimeofday.S -@@ -145,7 +145,7 @@ V_FUNCTION_BEGIN(__kernel_clock_getres) - bne cr0,99f - - li r3,0 -- cmpli cr0,r4,0 -+ cmpldi cr0,r4,0 - crclr cr0*4+so - beqlr - lis r5,CLOCK_REALTIME_RES@h --- -2.7.4 - diff --git a/recipes-kernel/linux/linux-qoriq_4.1.bb b/recipes-kernel/linux/linux-qoriq_4.1.bb deleted file mode 100644 index 02680e9..0000000 --- a/recipes-kernel/linux/linux-qoriq_4.1.bb +++ /dev/null @@ -1,82 +0,0 @@ -inherit kernel qoriq_build_64bit_kernel -inherit fsl-kernel-localversion -require recipes-kernel/linux/linux-dtb.inc - -SUMMARY = "Linux Kernel for Freescale QorIQ platforms" -SECTION = "kernel" -LICENSE = "GPLv2" -LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" - -SRC_URI = "git://git.freescale.com/ppc/sdk/linux.git;nobranch=1 \ - file://modify-defconfig-t1040-nr-cpus.patch \ - file://0003-use-static-inline-in-ARM-lifeboot.h.patch \ - file://fix-the-compile-issue-under-gcc6.patch \ - file://only-set-vmpic_msi_feature-if-CONFIG_EPAPR_PARAVIRT-.patch \ - file://powerpc-fsl-Fix-build-of-the-dtb-embedded-kernel-images.patch \ - file://CVE-2016-2053.patch \ - file://CVE-2016-0758.patch \ - file://powerpc-64e-Convert-cmpi-to-cmpwi-in-head_64.S.patch \ - file://powerpc-vdso64-Use-double-word-compare-on-pointers.patch \ -" -SRCREV = "1ae843c08261402b2c35d83422e4fa1e313611f4" - -S = "${WORKDIR}/git" - -DEPENDS_append = " libgcc" -# not put Images into /boot of rootfs, install kernel-image if needed -RDEPENDS_kernel-base = "" - -KERNEL_CC_append = " ${TOOLCHAIN_OPTIONS}" -KERNEL_LD_append = " ${TOOLCHAIN_OPTIONS}" -KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}" - -ZIMAGE_BASE_NAME = "zImage-${PKGE}-${PKGV}-${PKGR}-${MACHINE}-${DATETIME}" -ZIMAGE_BASE_NAME[vardepsexclude] = "DATETIME" - -SCMVERSION ?= "y" -LOCALVERSION = "" -DELTA_KERNEL_DEFCONFIG ?= "" -DELTA_KERNEL_DEFCONFIG_prepend_qoriq-arm64 = "freescale.config " -DELTA_KERNEL_DEFCONFIG_prepend_fsl-lsch2-32b = "freescale_aarch32.config " - -do_merge_delta_config() { - # copy desired defconfig so we pick it up for the real kernel_do_configure - cp ${KERNEL_DEFCONFIG} .config - - # add config fragments - for deltacfg in ${DELTA_KERNEL_DEFCONFIG}; do - if [ -f "${deltacfg}" ]; then - ${S}/scripts/kconfig/merge_config.sh -m .config ${deltacfg} - elif [ -f "${WORKDIR}/${deltacfg}" ]; then - ${S}/scripts/kconfig/merge_config.sh -m .config ${WORKDIR}/${deltacfg} - elif [ -f "${S}/arch/${ARCH}/configs/${deltacfg}" ]; then - ${S}/scripts/kconfig/merge_config.sh -m .config \ - ${S}/arch/${ARCH}/configs/${deltacfg} - fi - done - cp .config ${WORKDIR}/defconfig -} -addtask merge_delta_config before do_preconfigure after do_patch - -# The link of dts folder is needed for 32b compile of aarch64 targets(e.g. ls1043ardb-32b) -do_compile_prepend_fsl-lsch2-32b() { - ln -sfT ${STAGING_KERNEL_DIR}/arch/arm64/boot/dts/freescale ${STAGING_KERNEL_DIR}/arch/arm/boot/dts/freescale -} - -do_install_prepend_fsl-lsch2-32b() { - rm -f ${STAGING_KERNEL_DIR}/arch/arm/boot/dts/freescale -} - -do_install_append_qoriq-arm() { - install -m 0644 arch/${ARCH}/boot/zImage ${D}/boot/zImage-${KERNEL_VERSION} - ln -sf zImage-${KERNEL_VERSION} ${D}/boot/zImage -} - -do_deploy_append_qoriq-arm() { - install -m 0644 arch/${ARCH}/boot/zImage ${DEPLOYDIR}/${ZIMAGE_BASE_NAME}.bin - ln -sf ${ZIMAGE_BASE_NAME}.bin ${DEPLOYDIR}/zImage-${MACHINE}.bin - ln -sf ${ZIMAGE_BASE_NAME}.bin ${DEPLOYDIR}/zImage -} - -FILES_kernel-image += "/boot/zImage*" -COMPATIBLE_MACHINE = "(qoriq)" diff --git a/recipes-kernel/linux/linux-qoriq_4.4.bb b/recipes-kernel/linux/linux-qoriq_4.4.bb new file mode 100644 index 0000000..6feca8f --- /dev/null +++ b/recipes-kernel/linux/linux-qoriq_4.4.bb @@ -0,0 +1,73 @@ +inherit kernel qoriq_build_64bit_kernel +inherit fsl-kernel-localversion +require recipes-kernel/linux/linux-dtb.inc + +SUMMARY = "Linux Kernel for Freescale QorIQ platforms" +SECTION = "kernel" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" + +SRC_URI = "git://github.com/qoriq-open-source/linux.git;nobranch=1 \ +" +SRCREV = "ec61f521be6a22b100aabc0e2726c670aec3c845" + +S = "${WORKDIR}/git" + +DEPENDS_append = " libgcc" +# not put Images into /boot of rootfs, install kernel-image if needed +RDEPENDS_kernel-base = "" + +KERNEL_CC_append = " ${TOOLCHAIN_OPTIONS}" +KERNEL_LD_append = " ${TOOLCHAIN_OPTIONS}" +KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}" + +ZIMAGE_BASE_NAME = "zImage-${PKGE}-${PKGV}-${PKGR}-${MACHINE}-${DATETIME}" +ZIMAGE_BASE_NAME[vardepsexclude] = "DATETIME" + +SCMVERSION ?= "y" +LOCALVERSION = "" +DELTA_KERNEL_DEFCONFIG ?= "" +DELTA_KERNEL_DEFCONFIG_prepend_qoriq-arm64 = "freescale.config " +DELTA_KERNEL_DEFCONFIG_prepend_fsl-lsch2-32b = "freescale_aarch32.config " + +do_merge_delta_config() { + # copy desired defconfig so we pick it up for the real kernel_do_configure + cp ${KERNEL_DEFCONFIG} .config + + # add config fragments + for deltacfg in ${DELTA_KERNEL_DEFCONFIG}; do + if [ -f "${deltacfg}" ]; then + ${S}/scripts/kconfig/merge_config.sh -m .config ${deltacfg} + elif [ -f "${WORKDIR}/${deltacfg}" ]; then + ${S}/scripts/kconfig/merge_config.sh -m .config ${WORKDIR}/${deltacfg} + elif [ -f "${S}/arch/${ARCH}/configs/${deltacfg}" ]; then + ${S}/scripts/kconfig/merge_config.sh -m .config \ + ${S}/arch/${ARCH}/configs/${deltacfg} + fi + done + cp .config ${WORKDIR}/defconfig +} +addtask merge_delta_config before do_preconfigure after do_patch + +# The link of dts folder is needed for 32b compile of aarch64 targets(e.g. ls1043ardb-32b) +do_compile_prepend_fsl-lsch2-32b() { + ln -sfT ${STAGING_KERNEL_DIR}/arch/arm64/boot/dts/freescale ${STAGING_KERNEL_DIR}/arch/arm/boot/dts/freescale +} + +do_install_prepend_fsl-lsch2-32b() { + rm -f ${STAGING_KERNEL_DIR}/arch/arm/boot/dts/freescale +} + +do_install_append_qoriq-arm() { + install -m 0644 arch/${ARCH}/boot/zImage ${D}/boot/zImage-${KERNEL_VERSION} + ln -sf zImage-${KERNEL_VERSION} ${D}/boot/zImage +} + +do_deploy_append_qoriq-arm() { + install -m 0644 arch/${ARCH}/boot/zImage ${DEPLOYDIR}/${ZIMAGE_BASE_NAME}.bin + ln -sf ${ZIMAGE_BASE_NAME}.bin ${DEPLOYDIR}/zImage-${MACHINE}.bin + ln -sf ${ZIMAGE_BASE_NAME}.bin ${DEPLOYDIR}/zImage +} + +FILES_kernel-image += "/boot/zImage*" +COMPATIBLE_MACHINE = "(qoriq)" -- 1.9.0