Commit Graph

30548 Commits

Author SHA1 Message Date
Jussi Kukkonen 505ea0b712 freetype: Upgrade 2.7.0 -> 2.7.1
Bug fixes and some new features: support for Adobe CFF2 font format
and OpenType 1.8 variation fonts.

(From OE-Core rev: 1f99a31609be7028444075b176e752a44c93115c)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-26 10:44:28 +00:00
Dengke Du d742290d84 openssh: upgrade to 7.4p1
1. Drop CVE patch: fix-CVE-2016-8858.patch, because the version 7.4p1 have
   been fixed it.

2. Rebase the remaining patchs on the version 7.4p1.

(From OE-Core rev: b648b382046bd94f0cf5fe0aa4b77ab250f126cd)

Signed-off-by: Dengke Du <dengke.du@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-26 10:44:28 +00:00
Maxin B. John 543d0b0d1b libpng12: Upgrade 1.2.56 -> 1.2.57
This upgrade fixes the vulnerability: CVE-2016-10087

License file changes are due to updates in Version and Copyright date. ie:
'libpng versions 1.0.7, July 1, 2000, through 1.2.57, December 29, 2016, are
 Copyright (c) 2000-2002, 2004, 2006-2016 Glenn Randers-Pehrson'

(From OE-Core rev: ca763e7e784e7f485423752d1e23917652a057a1)

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-26 10:44:28 +00:00
Maxin B. John 8f90c28397 libpng: Upgrade 1.6.26 -> 1.6.28
This upgrade fixes the vulnerability: CVE-2016-10087

License file changes are due to updates in Package Version
and Copyright date. ie:
 'libpng version 1.6.28, January 5, 2017'

(From OE-Core rev: 94bb606b9f21b7fe4c5d7e9ae3fda17da047ece5)

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-26 10:44:28 +00:00
Patrick Ohly f98baa62e5 socat: support native compilation
This is needed for building the swtpm TPM simulator (recipe
in meta-security).

Native compilation disables tcp-wrappers by default to simplify
the build.

"nativesdk" is added just in case that someone also wants this
in an SDK.

(From OE-Core rev: a33a252462e2d7b90a1c89e42a96b9696eb08b23)

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-26 10:44:28 +00:00
Patrick Ohly fdd6d5daf1 expect: support native compilation
This is needed for building the swtpm TPM simulator (recipe
in meta-security).

"nativesdk" is added just in case that someone also wants this
in an SDK.

(From OE-Core rev: 4b43aab5b2043a5b83ef1fa9a8406f8a46ccfa72)

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-26 10:44:28 +00:00
Bruce Ashfield 81507d8c2e linux-libc-headers: introduce 4.9 headers
Bumping the linux-libc-headers to the 4.9 kernel variant. Since 4.9
will be a LTSI kernel, and there will be an associated linux-yocto
it is worth moving to these headers sooner rather than later.

This commit also drops the 4.8 headers and sets 4.9 to be the default.

(From OE-Core rev: cb0ef6e5fe096cecade81d42e95918f056bba052)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-26 10:44:28 +00:00
Jussi Kukkonen 6a315883b8 connman: Add workaround to build with musl & 4.9 headers
Kernel headers break when musl defines IFF_LOWER_UP. While
waiting for more proper fix in musl, add a workaround to connman.

(From OE-Core rev: e6178138968717e1bdb7af7b5aed42fc74d956ab)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-26 10:44:28 +00:00
Mariano Lopez a02f7f2a33 testimage.bbclass: Add systemd test automatically
This adds systemd test automatically when an image
is build with systemd DISTRO_FEATURE

[YOCTO #10935]

(From OE-Core rev: 2e6ba167bee7c7b42b1e0e96eb5a7be2eb0fd2c0)

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-26 10:44:27 +00:00
Ross Burton 06272333ac gstreamer1.0-plugins-base: disable ivorbis
Even old hardware these days doesn't really need fixed-integer Vorbis decoding
by default, so disable Tremor out of the box.

(From OE-Core rev: 958926dd51d5e18ef983280a6e3b50fc8f33eb12)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-26 10:44:27 +00:00
Leonardo Sandoval 70a30d9770 selftest: sstatetests: skip glibc-initial tests in case of non-glibc distro
Some distros uses non-glibc so skip those tests requiring glibc-initial as target

(From OE-Core rev: 41f02cb7307faec32b13733e41f78a0ebdc1b52b)

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-26 10:44:27 +00:00
Leonardo Sandoval 6702c7b089 selftest/imagefeatures: skip weston test if required features are not present
Also, remove hard-coded features because the image already contains them.

(From OE-Core rev: 899680840d497343095d0e7d7264e3e278ba4602)

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-26 10:44:27 +00:00
Ioan-Adrian Ratiu 6805ae0f2a useradd_base: keep group if it still has users
perform_groupdel() tries to delete a group irrespective if other
users have it as their primary group, thus the call to groupdel will
fail with the following error error:

groupdel: cannot remove the primary group of user '<user>'

Add a check to perform_groupdel() to determine if there are other
users and keep the group, printing a warning. This is called right
after a user is deleted to delete it's group. If the last user is
deleted, only then the group is also deleted.

(From OE-Core rev: bba1f02cb6d80279c6fed34bb18f010aa921fc1e)

Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-26 10:44:27 +00:00
David Vincent fdaa2d181d useradd-staticids: Fix groupadd
When a group name is duplicated between USERADD_PARAM and
GROUPADD_PARAM, this class tries to add it twice which results in
failure of the groupadd command.

(From OE-Core rev: 5b84cc895500c28674d2a7b7c2dd618cf8fb30e9)

Signed-off-by: David Vincent <freesilicon@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-26 10:44:27 +00:00
Joshua Lock 0eafcc05d8 toolchain-scripts: remove CCACHE_PATH from environment script
CCACHE_PATH was added to the toolchain-scripts in commit
1d31ddb856a80ba9da1a64ed5d701dc0f7351ef7 without a detailed
explanation as to why. This commit removes that environment
variable as it's causing failures since the introduction of
host_gcc_version() to oe.utils in
d36f41e5658bbbb6080ee833027879c119edf3e0, as used by
uninative to determine NATIVELSBSTRING.

This causes errors when the host has ccache available in in PATH
- host_gcc_version() fails because ccache has been told to only
look for the compiler in CCACHE_PATH and can't find gcc in order
to check its version. Toolchain compilers aren't detected due to
the binaries being prefixed with the triplet of the target.

(From OE-Core rev: e47fb403c2cb472d2666ed3ba4b10933467c8c7b)

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-26 10:44:27 +00:00
Ross Burton d6fd8ff56e rsync: update SRC_URI
rsync.samba.org has disappeared from the Internet and isn't responding anymore,
so point the SRC_URI at the canonical samba.org download server instead.

(From OE-Core rev: 792368afdf61e7670bc5002e99880449098d50fb)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-26 10:44:27 +00:00
Ross Burton 64a9d36faa ppp: update SRC_URI
ppp.samba.org has disappeared from the Internet and isn't responding anymore, so
point the SRC_URI at the canonical samba.org download server instead.

(From OE-Core rev: 9b2f5a57bdff46973cc1625da78d04b666710209)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-26 10:44:27 +00:00
Richard Purdie 4d04f4196c unfs3: Switch to using mirror tarball instead of subversion
This really is the last subversion url in OE-Core so replacing it with
a mirror tarball will save us from the subversion-native build chain.

(From OE-Core rev: 187f7c18582e76beca76c523cad6be2d5fff5786)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-26 10:44:27 +00:00
Khem Raj 27c106e087 autotools.bbclass: Change acpaths defaults to be a weak assignment
We currently have to override the default setting using a particular
assignment order in the recipe, setting it weakly helps to get rid
of this problem.

(From OE-Core rev: 57be81156f74666ff2ed2755f5faa48edf00e4dc)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-26 10:44:27 +00:00
Richard Purdie da114c7d7d staging: Handle overlapping files for build-sysroot
The use of bb.fatal means build-sysroots fails as soon as multiple gdb's are
built with overlapping files, or multiple recipes with overlapping headers
exist.

Change the fatal call into an exception which we can then trap. Also
avoid trying to call readlink on something with isn't a symlink.

This allows build-sysroots to work better under various scenarios.

(From OE-Core rev: e20343a90e401bc92167867729076d321081d120)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-26 10:44:27 +00:00
Richard Purdie 7fb3c6a40a image/packagegroup/populate_sdk: Drop do_populate_sysroot task properly
Setting do_populate_sysroot as noexec means the code keeps thinking it can find
a manifest file for it. It also complicates sstate installtion since the code
would believe there is an sstate object there it should look for.

Instead, delete the task. This causes sdk failures as the dependencies are wrong
so fix those as well.

(From OE-Core rev: bd7d0314038a4c1a8e8c9ebdb7194f8e17db3fef)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-26 10:44:27 +00:00
Richard Purdie 7c55daec93 gcc: Clean up unnecessary variable confusion
SDKPKGSUFFIX could only really be "nativesdk" and TARGET_SYS never contains
that so the code manipulating TARGET_SYS is pointless. I suspect this once
worked against MULTIMACH_TARGET_SYS which would be a different question but
it no longer does. Its been cut and pasted everywhere.

This patch cleans up the variable references to make things a little more
readable.

(From OE-Core rev: 5599cb72d17bce2ba6e2be16ef64d9a388bcfb25)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-26 10:44:27 +00:00
Richard Purdie 1d75635ac5 gcc/gcc-source: Move libcc1 manipulation into gcc-source
Currently there is a race where if you build -cross-canadian without building gcc (target)
you see QA errors about RPATHS. I've tracked this down to this manipulation where the
target gcc recipe changes libcc1 in the shared sources directory. As long as you build
things in the right order, the problem doesn't occur.

Since its changing ${S} move it to gcc-source and avoid the race, saving RP
some head scratching about why unrelated changes failed to build cleanly.

(From OE-Core rev: 626064c69b6fd1b5cead6995097f99e5fbda3f19)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-26 10:44:27 +00:00
Richard Purdie 42ed1d8ac9 gcc: Split builddir saving into its own sstate task
When we stashed the gcc build directory for use in generating the various runtimes
we were being lazy and just used the staging directory. With recipe specific
sysroots this means we're copying a large chunk of data around with the cross
compiler which we don't really need in most cases.

Separate out the data into its own task and inject this into the configure
step. We have to do that here since autotools will wipe out ${B} if it thinks
we're rebuilding and we therefore have to time its recreation after that.

This also takes the opportunity to remove some pointless (as far as I can tell)
conditionals from the do_install code.

(From OE-Core rev: dcf15ccf3cc9d55e77228ba8d526f967fc9791b4)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-26 10:44:27 +00:00
Richard Purdie 1cec0f3bf4 cross: Update MULTIMACH_TARGET_SYS to reflect modern recipes
Mixing PACKAGE_ARCH with BUILD_* has always seemed somewhat odd. This
comes into play when building different SDKMACHINES as the PN space
for the recipes did once overlap. With the modern build process we
use, this overlap is a thing of the past since PN has SDK_SYS appended
to it.

cross.bbclass sets PACKAGE_ARCH == BUILD_ARCH so this change only affects
crosssdk.bbclass where PACKAGE_ARCH == SDK_ARCH.

The current structure is quite confusing and this removes this artefact
of history, allowing other gcc cleanups rather than meaning we futher
complicate the code.

(From OE-Core rev: 525bbfd08dacba84c92da0ab34310a85369526b7)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-26 10:44:27 +00:00
Richard Purdie bb5fe4c35d staging/allarch: Remove hardcoded PACKAGE_ARCHS from the class
The code was making an assumption that the only PACKAGE_ARCH in use
was TUNE_PKGARCH. This is incorrect so iterate over the list from
PACKAGE_EXTRA_ARCH instead.

We also need to change allarch to preserve this variable, else the
staging code doesn't function. We do this in a way which clears the
variable history so that the task hashes remain unaffected.

[Thanks to Andrew Goodbody <andrew.goodbody@cambrionix.com> for
testing/fixing]

(From OE-Core rev: b1bab7a6eff6b195824be7d754de58c6e9ee2bfb)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-26 10:44:27 +00:00
Richard Purdie 62d7d41302 build-appliance-image: Update to master head revision
(From OE-Core rev: 40463f9d806b478a887128345a66135ef6fa2fe8)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 23:32:23 +00:00
Richard Purdie 6ab4c5033a classes/oeqa: Replace subprocess.check_call() with check_output()
If you use subprocess.check_output() the traceback will contain the output
when the command fails which is very useful for debugging. There is no
good reason not to use this everywhere.

(From OE-Core rev: ad750dd1cc9d789abe723daddd098ce41d8547f5)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 23:30:57 +00:00
Richard Purdie 3b4a36be50 sanity/abi-version: Force a clean TMPDIR after recipe specific sysroot changes
With the recipe specific sysroots, we need a clean tmpdir, else pseudo-native,
openssl-native, subversion-native and serf-native need to be manually cleaned.
After these there are probably more places where software doesn't rebuild correctly
even if we pass in new parameters to it.

The simplest solution is to force people to start from a clean TMPDIR since
everything would rebuild anyway.

(From OE-Core rev: da58e27a0f8fc8200f1953f05888834abd79c9f8)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 23:30:14 +00:00
Richard Purdie c433e9bc6d gobject-introspection: Fix sysroot postinst scripting error
Clearly the echo into ld.so.conf doesn't make sense and there was a cut and paste
error when writing this code. As long as the directory existed, the builds worked
so it created a race. Fix it as people hit build failures.

(From OE-Core rev: b7b45faaf1246bef262a65d033aa1daa3219e318)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 23:30:14 +00:00
Ross Burton 986f44933e ed: use yoctoproject mirror for SRC_URI
Upstream has removed a number of releases from the canonical download site,
including the 1.9 release we were using.

We shoud upgrade to the latest release but as new releases are only compressed
using lzip that means adding lzip-native to oe-core, so this is a suitable
short-term fix.

(From OE-Core rev: 7d24d476e03f88bf47385f7a85ceb7c82662ed76)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 22:40:38 +00:00
Richard Purdie ab7fef0ebc tremor: Use mirror tarball instead of svn url
This is the only remaining svn url in OE-Core and building subversion-native
for things like the url checker is wearing and slows down builds. Since
this rarely changes, use the mirror tarball instead.

(From OE-Core rev: 0be6f3b5a69a65107b49a90bee98815a5a7ac9d8)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 22:38:49 +00:00
Richard Purdie bc72e4dac2 busybox: Guard against interrupted compiles
If busybox is interrupted during do_compile, it can corrupt .config with
the suid version, or worse. Typically this leads to files disappearing,
particularly /etc/init.d/* which leads to an empty busybox-hwclock.
That then results in errors at do_rootfs time due to the missing package.

The fix is to use any 'orig' present to restore stat at the start of
compile.

(From OE-Core rev: 601abb497531823a73bdec3baf56952086e5b4f4)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 22:38:49 +00:00
Rick Altherr 4aa6644f92 kernel-fitimage: Use compressed ramdisks in FIT images if available
kernel-fitimage:fitimage_assemble() was calling copy_initramfs from
kernel.bbclass which decompresses the initramfs cpio.  Assume that if
INITRAMFS_FSTYPES includes a compressed cpio, that is what it desired in
the FIT image.

(From OE-Core rev: 842ad404b36e00c89f615a3f7db4a2d30062effa)

Signed-off-by: Rick Altherr <raltherr@google.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:23 +00:00
Bruce Ashfield d648400662 linux-yocto/4.9: merge 4.9.3 and ethernet config changes
Merging the following meta-data changes:

 03a2d3f7f999 Add support for NVMe storage devices
 27a79fa51d44 Modularize PCI/PCIe ethernet drivers
 53d2a7d9c9f8 Modularize USB network drivers

And the 4.9.3 -stable update, which has the following shortlog:

   584fd7872c1b Linux 4.9.3
   3999c535da7a usb: gadget: composite: always set ep->mult to a sensible value
   7ff469ceba26 Revert "usb: gadget: composite: always set ep->mult to a sensible value"
   ec3d5c521af8 Revert "rtlwifi: Fix enter/exit power_save"
   cf365b117388 tick/broadcast: Prevent NULL pointer dereference
   34db201f0de7 clocksource/dummy_timer: Move hotplug callback after the real timers
   1b9c2556809a xfs: fix max_retries _show and _store functions
   91192ae41e6f xfs: fix crash and data corruption due to removal of busy COW extents
   b96e4e87d2b0 xfs: use the actual AG length when reserving blocks
   d9c7c9fa600a xfs: fix double-cleanup when CUI recovery fails
   aa38f370b25a xfs: use GPF_NOFS when allocating btree cursors
   3c382dda47e4 xfs: ignore leaf attr ichdr.count in verifier during log replay
   c00203386d50 xfs: don't cap maximum dedupe request length
   f8b20705a383 xfs: don't allow di_size with high bit set
   12815dd15c48 xfs: error out if trying to add attrs and anextents > 0
   cd4bf1d416ef xfs: don't crash if reading a directory results in an unexpected hole
   b88398de1833 xfs: complain if we don't get nextents bmap records
   4bb31bccea38 xfs: check for bogus values in btree block headers
   b85f32481d93 xfs: forbid AG btrees with level == 0
   4081d4a79a95 xfs: handle cow fork in xfs_bmap_trace_exlist
   a585e1c4ec93 xfs: pass state not whichfork to trace_xfs_extlist
   bdbfd4ee6bc7 xfs: Move AGI buffer type setting to xfs_read_agi
   06ac11df915d xfs: pass post-eof speculative prealloc blocks to bmapi
   553937d3cce8 xfs: use new extent lookup helpers xfs_file_iomap_begin_delay
   3d6e3b12bb4e xfs: clean up cow fork reservation and tag inodes correctly
   4a323331d8c9 xfs: use new extent lookup helpers in __xfs_reflink_reserve_cow
   cf168f2ff8ba xfs: track preallocation separately in xfs_bmapi_reserve_delalloc()
   cf4fb510473b xfs: remove prev argument to xfs_bmapi_reserve_delalloc
   390325766033 xfs: always succeed when deduping zero bytes
   2b7dae91a134 xfs: factor rmap btree size into the indlen calculations
   49dc19915d3b xfs: new inode extent list lookup helpers
   b49ef758f600 xfs: fix unbalanced inode reclaim flush locking
   63fa793e757d xfs: check minimum block size for CRC filesystems
   f380ee72a7a4 xfs: provide helper for counting extents from if_bytes
   3978c5bb0043 xfs: don't BUG() on mixed direct and mapped I/O
   2f092422e1ce xfs: don't skip cow forks w/ delalloc blocks in cowblocks scan
   a11f90ca5f30 xfs: check return value of _trans_reserve_quota_nblks
   ae8b6cb40cb2 xfs: don't call xfs_sb_quota_from_disk twice
   56d22b912542 tpm_tis: Check return values from get_burstcount.
   4ffac6f06dfa drm/i915/gen9: fix the WM memory bandwidth WA for Y tiling cases
   f482823e99f0 drm/i915/gen9: unconditionally apply the memory bandwidth WA
   2bdb638de2fc drm/i915: disable PSR by default on HSW/BDW
   9ab30a6529b5 drm/radeon: Always store CRTC relative radeon_crtc->cursor_x/y values
   5417f59cb996 s390/pci: fix dma address calculation in map_sg
   dae9151a88f7 s390/topology: always use s390 specific sched_domain_topology_level
   b3539f813578 powerpc/pci/rpadlpar: Fix device reference leaks
   1aaa777ec009 PCI: Enable access to non-standard VPD for Chelsio devices (cxgb3)
   c444cc34534b PCI: Support INTx masking on ConnectX-4 with firmware x.14.1100+
   e2822904ace5 PCI: Convert Mellanox broken INTx quirks to be for listed devices only
   890661544739 PCI: Convert broken INTx masking quirks from HEADER to FINAL
   04b97a6be2ed PCI: Add Mellanox device IDs
   090cce6f6f88 PCI: rockchip: Correct the use of FTS mask
   6e4bcf8539af PCI: rockchip: Fix negotiated lanes calculation
   257349bedca3 staging: media: davinci_vpfe: unlock on error in vpfe_reqbufs()
   a299abd23081 f2fs: hide a maybe-uninitialized warning
   725ba1a3ebc4 f2fs: remove percpu_count due to performance regression
   5cc85ef4ffe6 md: fix refcount problem on mddev when stopping array.
   60a931c20d1a md: MD_RECOVERY_NEEDED is set for mddev->recovery
   d33a490770e5 crypto: arm64/aes-ce - fix for big endian
   eb64cbc5665d crypto: arm64/aes-xts-ce: fix for big endian
   c3edfe038a75 crypto: arm64/sha1-ce - fix for big endian
   39b7e1c2fdda crypto: arm64/aes-neon - fix for big endian
   d018dc9540f7 crypto: arm64/aes-ccm-ce: fix for big endian
   e6ce55f7be90 crypto: arm/aes-ce - fix for big endian
   a7c9666735f4 crypto: arm64/ghash-ce - fix for big endian
   cdeaed7dda7b crypto: arm64/sha2-ce - fix for big endian
   a05aa258b237 s390/crypto: unlock on error in prng_tdes_read()
   5d7d362abc40 mm, compaction: fix NR_ISOLATED_* stats for pfn based migration
   dc1b6d0aed97 mm: khugepaged: fix radix tree node leak in shmem collapse error path
   058a4a534c23 mm: khugepaged: close use-after-free race during shmem collapsing
   cd6d9ffffc4c docs-rst: fix LaTeX \DURole renewcommand with Sphinx 1.3+
   66c677037936 mm/hugetlb.c: use the right pte val for compare in hugetlb_cow
   17df3e74fb51 rpmsg: qcom_smd: Correct return value for O_NONBLOCK
   1d8286ccbcc6 mmc: mmc_test: Uninitialized return value
   74e365e69687 genirq/affinity: Fix node generation from cpumask
   65f796837e00 PM / wakeirq: Fix dedicated wakeirq for drivers not using autosuspend
   3b198ddd5855 irqchip/bcm7038-l1: Implement irq_cpu_offline() callback
   5cbea795f4d1 PCI/MSI: Check for NULL affinity mask in pci_irq_get_affinity()
   825e6a0f7c51 ima: fix memory leak in ima_release_policy
   c4c11b4bdbf6 relay: check array offset before using it
   3dd50a5e2be9 sbp-target: Fix second argument of percpu_ida_alloc()
   0e79a6b45677 target/iscsi: Fix double free in lio_target_tiqn_addtpg()
   962a12f8e523 scsi: mvsas: fix command_active typo
   5157e98aa024 scsi: g_NCR5380: Fix release_region in error handling
   d451b3cc89c7 ASoC: samsung: i2s: Fixup last IRQ unsafe spin lock call
   574bac4f4022 ASoC: Intel: Skylake: Fix a shift wrapping bug
   d61a969f0e94 ASoC: cht_bsw_rt5645: Fix leftover kmalloc
   311742c40da9 ASoC: lpass-platform: initialize dma channel number
   afd7e2b4258a iommu/vt-d: Flush old iommu caches for kdump when the device gets context mapped
   ef41459ab279 iommu/vt-d: Fix pasid table size encoding
   2148835de3c2 iommu/amd: Fix the left value check of cmd buffer
   48ffae87e913 iommu/amd: Missing error code in amd_iommu_init_device()
   54eed7ab1367 clk: renesas: mstp: Support 8-bit registers for r7s72100
   5dd700e897e4 clk: imx31: fix rewritten input argument of mx31_clocks_init()
   6c9f62846872 clk: sunxi-ng: sun8i-h3: Set CLK_SET_RATE_PARENT for audio module clocks
   36a6f7005f38 clk: sunxi-ng: sun8i-a23: Set CLK_SET_RATE_PARENT for audio module clocks
   7af503c02b33 clk: ti: dra7: fix "failed to lookup clock node gmac_gmii_ref_clk_div" boot message
   411873a0390e clk: clk-wm831x: fix a logic error
   e3b665ef4110 clk: qcom: ipq806x: Fix board clk rates
   447433e5f804 Input: synaptics-rmi4 - unlock on error
   584cb7dd15a3 hwmon: (lm90) fix temp1_max_alarm attribute
   2aca9a4fe104 hwmon: (g762) Fix overflows and crash seen when writing limit attributes
   81616a9f751e hwmon: (nct7802) Fix overflows seen when writing into limit attributes
   a69a6ebd036a hwmon: (ds620) Fix overflows seen when writing temperature limits
   29e7b170db90 hwmon: (amc6821) sign extension temperature
   af3cd3f0a805 hwmon: (scpi) Fix module autoload
   7a13086bd457 platform/x86: fujitsu-laptop: use brightness_set_blocking for LED-setting callbacks
   36c1bc65d211 x86/cpu: Probe CPUID leaf 6 even when cpuid_level == 6
   bedcab8723ce x86/prctl/uapi: Remove #ifdef for CHECKPOINT_RESTORE
   e641c92fd2ae debugfs: improve DEFINE_DEBUGFS_ATTRIBUTE for !CONFIG_DEBUG_FS
   629138cd28be clk: renesas: cpg-mssr: Fix inverted debug check
   47e3472507f0 efi/efivar_ssdt_load: Don't return success on allocation failure
   4e1dfb0035e1 cris: Only build flash rescue image if CONFIG_ETRAX_AXISFLASHMAP is selected
   15e0355a1ec5 ath10k: use the right length of "background"
   ac86312e0870 mfd: tps65217: Fix page fault on unloading modules
   a24f1f3520e6 ath10k: fix failure to send NULL func frame for 10.4
   45816391e1a5 nl80211: Use different attrs for BSSID and random MAC addr in scan req
   cd84516473a7 mac80211: fix tid_agg_rx NULL dereference
   1d9c33f1b45c drm/i915: tune down the fast link training vs boot fail
   8b4879154a67 drm/i915/dp: add lane_count check in intel_dp_check_link_status
   5af6f56bb16c usb: dwc3: gadget: always unmap EP0 requests
   c008309f53e5 usb: dwc3: ep0: explicitly call dwc3_ep0_prepare_one_trb()
   5f7fd4d2f94d usb: dwc3: ep0: add dwc3_ep0_prepare_one_trb()
   96a0c8ee7ce6 iio: accel: st_accel: fix LIS3LV02 reading and scaling
   a673f99884e3 staging: iio: ad7606: fix improper setting of oversampling pins
   fc322290fc06 mei: move write cb to completion on credentials failures
   5d46c4e9a05e mei: bus: fix mei_cldev_enable KDoc
   af776953108b mei: fix parameter rename KDoc
   c1ec6ba3d7c7 USB: serial: io_ti: bind to interface after fw download
   fb0a00fb0843 dibusb: fix possible memory leak in dibusb_rc_query()
   5f6136debf7e ARM: dts: sun7i: bananapi-m1-plus: Enable USB PHY for USB host support
   5ef54ae37b13 arm64: dts: hip06: Correct hardware pin number of usb node
   93f6891a383f USB: phy: am335x-control: fix device and of_node leaks
   d387f98cb0c1 ARM: dts: r8a7794: Correct hsusb parent clock
   a10a1b797a0f usb: gadget: fix request length error for isoc transfer
   b429e37b80fd usb: gadget: Fix second argument of percpu_ida_alloc()
   8da83724d491 USB: serial: kl5kusb105: abort on open exception path
   e7c72dccd725 ALSA: usb-audio: Fix bogus error return in snd_usb_create_stream()
   2eb09ccfa45b usb: musb: blackfin: add bfin_fifo_offset in bfin_ops
   64244edf304b usb: gadget: udc: core: fix return code of usb_gadget_probe_driver()
   8ecf70fb0889 usb: hub: Move hub_port_disable() to fix warning if PM is disabled
   d7550d7d6ae2 usb: musb: Fix trying to free already-free IRQ 4
   5e3c2920e9f2 usb: dwc3: gadget: Fix full speed mode
   81f1f24d1873 usb: dwc3: pci: Fix dr_mode misspelling
   6af3ba285acb usb: dwc3: pci: add Intel Gemini Lake PCI ID
   63d92d10a820 xhci: Fix race related to abort operation
   799dfdeb33a0 xhci: Use delayed_work instead of timer for command timeout
   6db52153fea3 usb: xhci-mem: use passed in GFP flags instead of GFP_KERNEL
   1bd67e85edf1 USB: serial: mos7720: fix parallel probe
   6ea44fb2183c USB: serial: mos7720: fix parport use-after-free on probe errors
   e7cf756c8932 USB: serial: mos7720: fix use-after-free on probe errors
   ac81f1fa956f USB: serial: mos7720: fix NULL-deref at open
   bd52ddb0996a USB: serial: mos7840: fix NULL-deref at open
   9de856caff86 USB: serial: kobil_sct: fix NULL-deref in write
   b2aa55142ea5 USB: serial: cyberjack: fix NULL-deref at open
   4de811c61ac5 USB: serial: oti6858: fix NULL-deref at open
   65914eeb39f4 USB: serial: io_edgeport: fix NULL-deref at open
   2e5167b239e6 USB: serial: ti_usb_3410_5052: fix NULL-deref at open
   0556702bf34e USB: serial: garmin_gps: fix memory leak on failed URB submit
   9401cc62b7f5 USB: serial: iuu_phoenix: fix NULL-deref at open
   69017618a61e USB: serial: io_ti: fix I/O after disconnect
   a66274a9b2f4 USB: serial: io_ti: fix another NULL-deref at open
   32631d1a739f USB: serial: io_ti: fix NULL-deref at open
   b5264ea24484 USB: serial: spcp8x5: fix NULL-deref at open
   dda7611ec4a5 USB: serial: keyspan_pda: verify endpoints at probe
   69c415ed5c98 USB: serial: pl2303: fix NULL-deref at open
   2a4ae7bc3d8d USB: serial: quatech2: fix sleep-while-atomic in close
   6ae3e89aa6b1 USB: serial: omninet: fix NULL-derefs at open and disconnect
   9acba5179d6c usb: return error code when platform_get_irq fails
   cb02cce9a7f8 usb: xhci: hold lock over xhci_abort_cmd_ring()
   9e6c400bb582 xhci: Handle command completion and timeout race
   78ccc1966c9e usb: host: xhci: Fix possible wild pointer when handling abort command
   a2118d097409 usb: xhci: fix return value of xhci_setup_device()
   3bf5e7410178 xhci: free xhci virtual devices with leaf nodes first
   40359f915694 usb: xhci: apply XHCI_PME_STUCK_QUIRK to Intel Apollo Lake
   9da8e3e48e88 usb: xhci: fix possible wild pointer
   9bdd47c53b7c usb: dwc3: core: avoid Overflow events
   2b95c939cb88 usb: gadget: composite: Test get_alt() presence instead of set_alt()
   735daeec9e60 USB: dummy-hcd: fix bug in stop_activity (handle ep0)
   05b0f2fc3c2f USB: fix problems with duplicate endpoint addresses
   da4543b3bce0 USB: gadgetfs: fix checks of wTotalLength in config descriptors
   46427c247b62 USB: gadgetfs: fix use-after-free bug
   b946777664db USB: gadgetfs: fix unbounded memory allocation bug
   404954e5b8a6 usb: gadgetfs: restrict upper bound on device configuration size
   72271ae49d6b usb: storage: unusual_uas: Add JMicron JMS56x to unusual device
   4a37dbe68289 usb: musb: dsps: implement clear_ep_rxintr() callback
   5de2dd7f1be1 usb: musb: core: add clear_ep_rxintr() to musb_platform_ops
   84fd8feb5bb5 KVM: MIPS: Flush KVM entry code from icache globally
   26a401a6a52f KVM: MIPS: Don't clobber CP0_Status.UX
   f39969ab0418 KVM: x86: reset MMU on KVM_SET_VCPU_EVENTS
   fe4fc2d67d0b drm/i915: Initialize overlay->last_flip properly
   f0f7f38e8068 drm/i915: Force VDD off on the new power seqeuencer before starting to use it
   73d425635989 drm/i915: Fix oops in overlay due to frontbuffer tracking
   5652dd3f005d drm/i915: Fix oopses in the overlay code due to i915_gem_active stuff
   8f8157c2a72a gcc-plugins: update gcc-common.h for gcc-7
   8c775affbbd6 asm-prototypes: Clear any CPP defines before declaring the functions
   5e7598a625ee mac80211: initialize fast-xmit 'info' later
   3c4eef316703 pinctrl/amd: Set the level based on ACPI tables
   c7b1b7951d9d ARM: davinci: da850: don't add emac clock to lookup table twice
   5f390df2baf7 HID: sensor-hub: Move the memset to sensor_hub_get_feature()
   0c8033357b1d parisc: Mark cr16 clocksource unstable on SMP systems
   e569eef6298a parisc: Add line-break when printing segfault info
   d259b6853732 fscrypt: fix renaming and linking special files
   be4e3aec5667 ALSA: usb-audio: Fix irq/process data synchronization
   5b2c3cafcafc ALSA: hda - Apply asus-mode8 fixup to ASUS X71SL
   71c88fc3bde7 ALSA: hda - Fix up GPIO for ASUS ROG Ranger
   755259ba2a3a staging: octeon: Call SET_NETDEV_DEV()
   ea991c8354c3 iio: bmi160: Fix time needed to sleep after command execution
   7090b8da3836 iio: max44000: correct value in illuminance_integration_time_available
   cf49219364fd iio: common: st_sensors: fix channel data parsing

(From OE-Core rev: 0f72ddb55b42bc96acca2ee52257e5beabf8d071)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:23 +00:00
Bruce Ashfield 97311f59c3 linux-yocto/4.8: update to -rt10
Paul Gortmaker has updated 4.8 to the latest -rt release. This
integrates those changes to standard/preempt-rt/*. As usual the
branches are kept fast forward, and a clean copy of the patches
can be found on standard/preempt-rt/rebase.

(From OE-Core rev: 9b4a71785221e2b67180fe6047e2ba2ad83f6523)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:23 +00:00
Bruce Ashfield 220d069629 linux-yocto/4.1: update to v4.1.37
Integrating the -stable release. Changes are as follows:

   35327468a79d Linux 4.1.37
   c27edfb64bbf scsi: megaraid_sas: fix macro MEGASAS_IS_LOGICAL to avoid regression
   016d02981cce tipc: check minimum bearer MTU
   efcf38bd4020 net: ping: check minimum size on ICMP header length
   e29fdf045048 packet: fix race condition in packet_set_ring
   fabaaaa96d54 net: add recursion limit to GRO
   7abf32087c1d Bluetooth: Fix potential NULL dereference in RFCOMM bind callback
   74cd81c810b9 ptrace: being capable wrt a process requires mapped uids/gids
   8165fc3eb28c scsi: arcmsr: Buffer overflow in arcmsr_iop_message_xfer()
   1171afc4a34e mnt: Add a per mount namespace limit on the number of mounts
   62fa696b7b43 posix_acl: Clear SGID bit when setting file permissions
   de42b9559d0c fs: Avoid premature clearing of capabilities
   cb8e1eef351b fs: Give dentry to inode_change_ok() instead of inode
   2ee3ceeccd34 nfsd: Disable NFSv2 timestamp workaround for NFSv3+
   820bc4582ab9 fuse: Propagate dentry down to inode_change_ok()
   89bc54c54027 xfs: Propagate dentry down to inode_change_ok()
   1b364dc9edba xattr: Option to disable meta-data block cache
   9a66bc6ee0f9 tcp: fix use after free in tcp_xmit_retransmit_queue()
   ebdb88b8e465 x86/kexec: add -fno-PIE
   672612a21845 scripts/has-stack-protector: add -fno-PIE
   e06ded86d961 x86/init: Fix cr4_init_shadow() on CR4-less machines
   eec746939372 ARM: 8617/1: dma: fix dma_max_pfn()
   58024f829d0b mm,ksm: fix endless looping in allocating memory when ksm enable
   d427d645ccf9 can: dev: fix deadlock reported after bus-off
   791a92897274 cpuset: handle race between CPU hotplug and cpuset_hotplug_work
   6b82b0601ac2 mtd: nand: davinci: Reinitialize the HW ECC engine in 4bit hwctl
   e537a0977f3e drm/msm: fix use of copy_from_user() while holding spinlock
   b56eb9cdc5f1 bus: arm-ccn: Fix PMU handling of MN
   7298a8bf4c63 bus: arm-ccn: Provide required event arguments

(From OE-Core rev: 592468a262cc01e4954be33b4281ffca84fea838)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:23 +00:00
Bruce Ashfield 318925957f linux-yocto/4.4: update to v4.4.41
Integrating the korg -stable release. Changes are as follows:

   cdd86b972265 Linux 4.4.41
   9f11a0ab6a96 net: mvpp2: fix dma unmapping of TX buffers for fragments
   d85727365859 sg_write()/bsg_write() is not fit to be called under KERNEL_DS
   7fb5a936457d kconfig/nconf: Fix hang when editing symbol with a long prompt
   e321f384d8a5 target/user: Fix use-after-free of tcmu_cmds if they are expired
   e5de1c724c06 powerpc: Convert cmp to cmpd in idle enter sequence
   cadaba838f1b powerpc/ps3: Fix system hang with GCC 5 builds
   8a2bcaae1bc7 nfs_write_end(): fix handling of short copies
   b66e3126569e libceph: verify authorize reply on connect
   edfe6a79f905 PCI: Check for PME in targeted sleep state
   8db00756afbd Input: drv260x - fix input device's parent assignment
   44685f03dd56 media: solo6x10: fix lockup by avoiding delayed register write
   952a9f5af9f8 IB/cma: Fix a race condition in iboe_addr_get_sgid()
   b7f73ada92a3 IB/multicast: Check ib_find_pkey() return value
   7b1369215616 IPoIB: Avoid reading an uninitialized member variable
   0de381ca35b5 IB/mad: Fix an array index check
   e945df4c6bc2 fgraph: Handle a case where a tracer ignores set_graph_notrace
   88e41441ccd4 platform/x86: asus-nb-wmi.c: Add X45U quirk
   2ef502e860f1 ftrace/x86_32: Set ftrace_stub to weak to prevent gcc from using short jumps to it
   19aa9c14989e kvm: nVMX: Allow L1 to intercept software exceptions (#BP and #OF)
   129e4323df37 KVM: PPC: Book3S HV: Don't lose hardware R/C bit updates in H_PROTECT
   ddf5718adfb8 KVM: PPC: Book3S HV: Save/restore XER in checkpointed register state
   1c8841c9b7d2 md/raid5: limit request size according to implementation limits
   d78006d2345f sc16is7xx: Drop bogus use of IRQF_ONESHOT
   b988320dab53 s390/vmlogrdr: fix IUCV buffer allocation
   656c9abd574b firmware: fix usermode helper fallback loading
   429a533a3d9a ARC: mm: arc700: Don't assume 2 colours for aliasing VIPT dcache
   dbb67e1d585d scsi: avoid a permanent stop of the scsi device's request queue
   565ae61d8995 scsi: zfcp: fix rport unblock race with LUN recovery
   3b3739dfa69c scsi: zfcp: do not trace pure benign residual HBA responses at default level
   1cc0f9488b91 scsi: zfcp: fix use-after-"free" in FC ingress path after TMF
   bccd78746f88 scsi: megaraid_sas: Do not set MPI2_TYPE_CUDA for JBOD FP path for FW which does not support JBOD sequence map
   49ea06561154 scsi: megaraid_sas: For SRIOV enabled firmware, ensure VF driver waits for 30secs before reset
   edf1169bbbaa vt: fix Scroll Lock LED trigger name
   f4f02a856a92 block: protect iterate_bdevs() against concurrent close
   abb78811e242 mei: request async autosuspend at the end of enumeration
   1f9c91a37542 drivers/gpu/drm/ast: Fix infinite loop if read fails
   970dc8cdec9c drm/gma500: Add compat ioctl
   0e0b70f581fc drm/radeon: add additional pci revision to dpm workaround
   62a272498dbe drm/radeon: Hide the HW cursor while it's out of bounds
   deac395e0ba8 drm/radeon: Also call cursor_move_locked when the cursor size changes
   cb8d63d885e9 drm/nouveau/i2c/gk110b,gm10x: use the correct implementation
   adea4a7b0f2b drm/nouveau/fifo/gf100-: protect channel preempt with subdev mutex
   d32d4b3d7c9f drm/nouveau/ltc: protect clearing of comptags with mutex
   3a2990e67b05 drm/nouveau/bios: require checksum to match for fast acpi shadow method
   a163451c80b0 drm/nouveau/kms: lvds panel strap moved again on maxwell
   69e236e70ead ACPI / video: Add force_native quirk for HP Pavilion dv6
   2c2375e40d28 ACPI / video: Add force_native quirk for Dell XPS 17 L702X
   01b6089b5622 staging: comedi: ni_mio_common: fix E series ni_ai_insn_read() data
   5283a7bedbcb staging: comedi: ni_mio_common: fix M Series ni_ai_insn_read() data mask
   e692edec93c1 thermal: hwmon: Properly report critical temperature in sysfs
   9d9541d44a26 clk: bcm2835: Avoid overwriting the div info when disabling a pll_div clk
   e01b04be3eb0 timekeeping_Force_unsigned_clocksource_to_nanoseconds_conversion
   96ea1b9ea099 regulator: stw481x-vmmc: fix ages old enable error
   842ec27cd3f2 mmc: sdhci: Fix recovery from tuning timeout
   dae7cb414834 ath9k: Really fix LED polarity for some Mini PCI AR9220 MB92 cards.
   b63929e8e130 cfg80211/mac80211: fix BSS leaks when abandoning assoc attempts
   05f4183ab5a4 rtlwifi: Fix enter/exit power_save
   f5d90f434c9a ssb: Fix error routine when fallback SPROM fails
   a3edc7b2e537 Linux 4.4.40
   7a2b4ee54b3f ppp: defer netns reference release for ppp channel
   37de955c11b5 driver core: fix race between creating/querying glue dir and its cleanup
   f85a337b4066 xfs: set AGI buffer type in xlog_recover_clear_agi_bucket
   fdb17ddd0a49 arm/xen: Use alloc_percpu rather than __alloc_percpu
   9397e79c4b2d xen/gntdev: Use VM_MIXEDMAP instead of VM_IO to avoid NUMA balancing
   00a0de085d60 tpm xen: Remove bogus tpm_chip_unregister
   f93777c91544 kernel/debug/debug_core.c: more properly delay for secondary CPUs
   f2b8b3455b22 kernel/watchdog: use nmi registers snapshot in hardlockup handler
   597f9c03b2d5 CIFS: Fix a possible memory corruption in push locks
   a9c69e152897 CIFS: Fix missing nls unload in smb2_reconnect()
   f0b715409cb9 CIFS: Fix a possible memory corruption during reconnect
   6dcb01e78333 ASoC: intel: Fix crash at suspend/resume without card registration
   701ec6e5cea7 dm space map metadata: fix 'struct sm_metadata' leak on failed create
   85290a163b06 dm crypt: mark key as invalid until properly loaded
   9188611f81e3 dm flakey: return -EINVAL on interval bounds error in flakey_ctr()
   f0898dc2852b blk-mq: Do not invoke .queue_rq() for a stopped queue
   c53af76d5de1 usb: gadget: composite: always set ep->mult to a sensible value
   b35f34f66943 exec: Ensure mm->user_ns contains the execed files
   0812936b11ea fs: exec: apply CLOEXEC before changing dumpable task flags
   14d8e5cae039 mm/vmscan.c: set correct defer count for shrinker
   ffef1630187b loop: return proper error from loop_queue_rq()
   011ded975e34 f2fs: set ->owner for debugfs status file's file_operations
   3460edfc70c2 ext4: do not perform data journaling when data is encrypted
   36af7cd560b9 ext4: return -ENOMEM instead of success
   519a30148e23 ext4: reject inodes with negative size
   f655b3575c47 ext4: add sanity checking to count_overhead()
   3995881b0f72 ext4: fix in-superblock mount options processing
   386588013810 ext4: use more strict checks for inodes_per_block on mount
   7b74c351de1c ext4: fix stack memory corruption with 64k block size
   26492d8a22b0 ext4: fix mballoc breakage with 64k block size
   4b6050922fb8 crypto: caam - fix AEAD givenc descriptors
   1c1f15f8ebfb ptrace: Capture the ptracer's creds not PT_PTRACE_CAP
   03eed7afbc09 mm: Add a user_ns owner to mm_struct and fix ptrace permission checks
   d80411dea6a4 block_dev: don't test bdev->bd_contains when it is not stable
   85cfbd9db2c6 btrfs: make file clone aware of fatal signals
   323ffc03ddb2 Btrfs: don't BUG() during drop snapshot
   107800061996 Btrfs: fix memory leak in do_walk_down
   5a9b659edef6 Btrfs: don't leak reloc root nodes on error
   8ca6845a58cd Btrfs: return gracefully from balance if fs tree is corrupted
   78a587c608f9 Btrfs: bail out if block group has different mixed flag
   25ee81e54620 Btrfs: fix memory leak in reading btree blocks
   590202271ffd clk: ti: omap36xx: Work around sprz319 advisory 2.1
   119b6658ce05 ALSA: hda: when comparing pin configurations, ignore assoc in addition to seq
   f0ea0ade046e ALSA: hda - Gate the mic jack on HP Z1 Gen3 AiO
   fa695bdc1741 ALSA: hda - fix headset-mic problem on a Dell laptop
   faff777fb456 ALSA: hda - ignore the assoc and seq when comparing pin configurations
   518fca87c645 ALSA: hda/ca0132 - Add quirk for Alienware 15 R2 2016
   29348065c339 ALSA: hiface: Fix M2Tech hiFace driver sampling rate change
   d0ba0f6a8291 ALSA: usb-audio: Add QuickCam Communicate Deluxe/S7500 to volume_control_quirks
   cbb2a2563587 USB: UHCI: report non-PME wakeup signalling for Intel hardware
   8ede2d7908aa usb: gadget: composite: correctly initialize ep->maxpacket
   c67c2ed829f3 usb: gadget: f_uac2: fix error handling at afunc_bind
   747b31526369 usb: hub: Fix auto-remount of safely removed or ejected USB-3 devices
   acca3cf0d62b USB: cdc-acm: add device id for GW Instek AFG-125
   5d6a392b6d36 USB: serial: kl5kusb105: fix open error path
   6a6e113cd928 USB: serial: option: add dlink dwm-158
   17907f291779 USB: serial: option: add support for Telit LE922A PIDs 0x1040, 0x1041
   1f5adadcd032 Btrfs: fix qgroup rescan worker initialization
   b5e715ed11ec btrfs: store and load values of stripes_min/stripes_max in balance status item
   919b74ba5ed5 Btrfs: fix tree search logic when replaying directory entry deletes
   0d619cf6f982 btrfs: limit async_work allocation and worker func duration
   a34f0e8a2f89 Linux 4.4.39
   5d488dee9236 crypto: rsa - Add Makefile dependencies to fix parallel builds
   1c0f4e0ebb79 hotplug: Make register and unregister notifier API symmetric
   537e42d759ae batman-adv: Check for alloc errors when preparing TT local data
   f03531d09125 m68k: Fix ndelay() macro
   55e15b2f44d7 arm64: futex.h: Add missing PAN toggling
   e29949ed3903 can: peak: fix bad memory access and free sequence
   083021bdba1e can: raw: raw_setsockopt: limit number of can_filter that can be set
   9a3baed9103b crypto: mcryptd - Check mcryptd algorithm compatibility
   c4db8a7d1e0c perf/x86: Fix full width counter, counter overflow
   c6a5bf4cda12 locking/rtmutex: Use READ_ONCE() in rt_mutex_owner()
   b27d9147f24a locking/rtmutex: Prevent dequeue vs. unlock race
   e286b6c16758 zram: restrict add/remove attributes to root only
   a0bd6aa097a4 parisc: Fix TLB related boot crash on SMP machines
   605f315c5a83 parisc: Remove unnecessary TLB purges from flush_dcache_page_asm and flush_icache_page_asm
   db9598605768 parisc: Purge TLB before setting PTE
   4bcea472de10 powerpc/eeh: Fix deadlock when PE frozen state can't be cleared
   c95b7f1fab0c Linux 4.4.38
   52783ada69b4 esp6: Fix integrity verification when ESN are used
   3bf28ce9c749 esp4: Fix integrity verification when ESN are used
   2176ec1c82ea ipv4: Set skb->protocol properly for local output
   25d8b7c105e1 ipv6: Set skb->protocol properly for local output
   d41fb2fbb28d Don't feed anything but regular iovec's to blk_rq_map_user_iov
   fd1aa12c6340 constify iov_iter_count() and iter_is_iovec()
   899b60535a2a sparc64: fix compile warning section mismatch in find_node()
   ed7b60db00a1 sparc64: Fix find_node warning if numa node cannot be found
   438e91da24fa sparc32: Fix inverted invalid_frame_pointer checks on sigreturns
   06cdad2b6d92 net: ping: check minimum size on ICMP header length
   77125815f058 net: avoid signed overflows for SO_{SND|RCV}BUFFORCE
   6e682c528b3e geneve: avoid use-after-free of skb->data
   a89e2ff894bc sh_eth: remove unchecked interrupts for RZ/A1
   c36a2a14f26d net: bcmgenet: Utilize correct struct device for all DMA operations
   5a01eaf19858 packet: fix race condition in packet_set_ring
   1a15519fdcdb net/dccp: fix use-after-free in dccp_invalid_packet
   baaf0c65bc8e netlink: Do not schedule work from sk_destruct
   d1ed9c1dba63 netlink: Call cb->done from a worker thread
   6c42bd6a393c net/sched: pedit: make sure that offset is valid
   cfa7c16d4577 net, sched: respect rcu grace period on cls destruction
   94de6f2ffb3d net: dsa: bcm_sf2: Ensure we re-negotiate EEE during after link change
   56366fa0ad46 l2tp: fix racy SOCK_ZAPPED flag check in l2tp_ip{,6}_bind()
   aece024e38cb rtnetlink: fix FDB size computation
   6ef59b986190 af_unix: conditionally use freezable blocking calls in read
   acf9504ae220 net: sky2: Fix shutdown crash
   49695d1e3b81 ip6_tunnel: disable caching when the traffic class is inherited
   2b54505c877f net: check dead netns for peernet2id_alloc()
   790fd11f9ed6 virtio-net: add a missing synchronize_net()

(From OE-Core rev: 2042e74352fcec84ac69645387273438794966f6)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:23 +00:00
Bruce Ashfield 8c6c15a678 linux-yocto/4.8: -stable update to v4.8.17
Updating to the korg 4.8.17 -stable release. Changes are as follows:

   3d8f8d06abb3 Linux 4.8.17
   adf363fd5ab9 drm/i915: skip the first 4k of stolen memory on everything >= gen8
   000e612673da drm/i915: Initialize dev_priv->atomic_cdclk_freq at init time
   22aba475d97b drm/i915: Fix cdclk vs. dev_cdclk mess when not recomputing things
   294bb3402c76 drm/i915/dsi: Do not clear DPOUNIT_CLOCK_GATE_DISABLE from vlv_init_display_clock_gating
   6a412ff3df87 drm/i915/dsi: Fix chv_exec_gpio disabling the GPIOs it is setting
   4803ec2a74c4 net: mvpp2: fix dma unmapping of TX buffers for fragments
   48f26edb689c sg_write()/bsg_write() is not fit to be called under KERNEL_DS
   d787c6b32c3f kconfig/nconf: Fix hang when editing symbol with a long prompt
   e141d1a21e31 target/user: Fix use-after-free of tcmu_cmds if they are expired
   29f3d1127c4b libnvdimm, pfn: fix align attribute
   3a4e4281b5cd powerpc/ps3: Fix system hang with GCC 5 builds
   e451d674bac5 powerpc/64e: Convert cmpi to cmpwi in head_64.S
   0349fbebd984 SUNRPC: fix refcounting problems with auth_gss messages.
   c513ade4ca56 pNFS: Fix a deadlock between read resends and layoutreturn
   abb2903f1ac2 pNFS: Clear NFS_LAYOUT_RETURN_REQUESTED when invalidating the layout stateid
   f061c76c1d56 pNFS: Don't clear the layout stateid if a layout return is outstanding
   7de1b81c27fd pNFS: On error, do not send LAYOUTGET until the LAYOUTRETURN has completed
   8f5ff877bf19 nfs_write_end(): fix handling of short copies
   1678adac85da libceph: verify authorize reply on connect
   1f93d1a77b17 PCI: Check for PME in targeted sleep state
   c75bc2bde102 i40iw: Use correct src address in memcpy to rdma stats counters
   7d0a6cf3e8c9 Input: drv260x - fix input device's parent assignment
   b7843712cbd2 v4l: tvp5150: Add missing break in set control handler
   4963b1910090 media: solo6x10: fix lockup by avoiding delayed register write
   88bfde25e60f s5p-mfc: fix failure path of s5p_mfc_alloc_memdev()
   c3fe33d185e0 mn88473: fix chip id check on probe
   84b2f664409c mn88472: fix chip id check on probe
   15d1d226eab4 IB/cma: Fix a race condition in iboe_addr_get_sgid()
   7b3721aff59b IB/rxe: Fix a memory leak in rxe_qp_cleanup()
   2a0aa77a54fb IB/multicast: Check ib_find_pkey() return value
   37d4adba02d3 IPoIB: Avoid reading an uninitialized member variable
   f079fc11f28e IB/mad: Fix an array index check
   e661b5d4b94f fgraph: Handle a case where a tracer ignores set_graph_notrace
   b2758da04d73 platform/x86: asus-nb-wmi.c: Add X45U quirk
   f61152e3bbf0 ftrace/x86_32: Set ftrace_stub to weak to prevent gcc from using short jumps to it
   8569aadeed3f vsock/virtio: fix src/dst cid format
   576ea9e5e92e fsnotify: Fix possible use-after-free in inode iteration on umount
   43983ce75e61 kvm: nVMX: Allow L1 to intercept software exceptions (#BP and #OF)
   9a5cf8c4b112 KVM: PPC: Book3S HV: Don't lose hardware R/C bit updates in H_PROTECT
   b751eb6e9d99 KVM: PPC: Book3S HV: Save/restore XER in checkpointed register state
   0773e9248ae3 scsi: aacraid: remove wildcard for series 9 controllers
   b202064f0b3f md/raid5: limit request size according to implementation limits
   47090341ec97 sc16is7xx: Drop bogus use of IRQF_ONESHOT
   c33e1abd2e31 arm64: KVM: pmu: Reset PMSELR_EL0.SEL to a sane value before entering the guest
   d3d61bb37afb s390/kexec: use node 0 when re-adding crash kernel memory
   9652b62af49d s390/vmlogrdr: fix IUCV buffer allocation
   f356ab038e78 firmware: fix usermode helper fallback loading
   5c98bf834d6f ARC: mm: arc700: Don't assume 2 colours for aliasing VIPT dcache
   cc328ce59a4a scsi: avoid a permanent stop of the scsi device's request queue
   6d675dffd425 scsi: zfcp: fix rport unblock race with LUN recovery
   057fe03d627e scsi: zfcp: do not trace pure benign residual HBA responses at default level
   5cebfea8080c scsi: zfcp: fix use-after-"free" in FC ingress path after TMF
   de8a06c673ac iscsi-target: Return error if unable to add network portal
   9c3928be0dba scsi: megaraid_sas: Do not set MPI2_TYPE_CUDA for JBOD FP path for FW which does not support JBOD sequence map
   dbd4e6c60b4f scsi: megaraid_sas: For SRIOV enabled firmware, ensure VF driver waits for 30secs before reset
   3863ab6d710d stm class: Fix device leak in open error path
   698ac693dbb4 vt: fix Scroll Lock LED trigger name
   6d8bb567102c block: protect iterate_bdevs() against concurrent close
   2695afd5e9c2 mei: me: add lewisburg device ids
   7be0a5f39d64 mei: request async autosuspend at the end of enumeration
   dfc3c8a0fa1b drivers/gpu/drm/ast: Fix infinite loop if read fails
   0f95e4a58ecd drm/amdgpu: fix init save/restore list in gfx_v8.0
   8bfa4f5e6395 drm/gma500: Add compat ioctl
   10b598df92d9 drm/radeon/si: load the proper firmware on 0x87 oland boards
   cdb7aaaaecff drm/radeon: add additional pci revision to dpm workaround
   1f884ec818a6 drm/radeon: Hide the HW cursor while it's out of bounds
   6fb94229b2f6 drm/radeon: Also call cursor_move_locked when the cursor size changes
   9c6fb7bf404d drm/nouveau/fifo/gf100-: protect channel preempt with subdev mutex
   2a7a43772bff drm/nouveau/i2c/gk110b,gm10x: use the correct implementation
   28d186430686 drm/nouveau/ttm: wait for bo fence to signal before unmapping vmas
   82d9824d9446 drm/nouveau/ltc: protect clearing of comptags with mutex
   ce71868acee2 drm/nouveau/bios: require checksum to match for fast acpi shadow method
   764e8e8af190 drm/nouveau/kms: lvds panel strap moved again on maxwell
   00e1fb138ffa drm/nouveau/gr: fallback to legacy paths during firmware lookup
   fef542735a48 drm/amd/amdgpu: enable GUI idle INT after enabling CGCG
   bab520835f81 ACPI / video: Add force_native quirk for HP Pavilion dv6
   b7eea51a3a5c ACPI / video: Add force_native quirk for Dell XPS 17 L702X
   ce8100660364 staging: comedi: ni_mio_common: fix E series ni_ai_insn_read() data
   689d59259385 staging: comedi: ni_mio_common: fix M Series ni_ai_insn_read() data mask
   823c5c94f716 hv: acquire vmbus_connection.channel_mutex in vmbus_free_channels()
   235394e1625c docs: sphinx-extensions: make rstFlatTable work with docutils 0.13
   a26a016a4e2f thermal: hwmon: Properly report critical temperature in sysfs
   def2c87dc7ac clk: bcm2835: Avoid overwriting the div info when disabling a pll_div clk
   2f885dafe704 arm64: tegra: Add VDD_GPU regulator to Jetson TX1
   bd12562fceb4 gpio: chardev: Return error for seek operations
   61d0b7139cf9 timekeeping_Force_unsigned_clocksource_to_nanoseconds_conversion
   95d2a43e5a59 regulator: stw481x-vmmc: fix ages old enable error
   52980ceb1832 mmc: sdhci: Fix recovery from tuning timeout
   0ed0b2592437 ath9k: Really fix LED polarity for some Mini PCI AR9220 MB92 cards.
   d80ff7cb5d06 ath9k: fix ath9k_hw_gpio_get() to return 0 or 1 on success
   42e76c596c93 cfg80211/mac80211: fix BSS leaks when abandoning assoc attempts
   d2546f653bb0 rtl8xxxu: Work around issue with 8192eu and 8723bu devices not reconnecting
   2abcc023a460 perf/x86/intel/cstate: Prevent hotplug callback leak
   7b9e1a16a1b0 perf/x86: Fix exclusion of BTS and LBR for Goldmont
   e24523a80c19 rtlwifi: Fix enter/exit power_save
   c9fce6ba9c09 ssb: Fix error routine when fallback SPROM fails
   c65ed08dcc04 Linux 4.8.16
   645897231f96 driver core: fix race between creating/querying glue dir and its cleanup
   f199bdbaab37 Revert "netfilter: move nat hlist_head to nf_conn"
   99d6d4e0c50c Revert "netfilter: nat: convert nat bysrc hash to rhashtable"
   774225699b4d arm64: mark reserved memblock regions explicitly in iomem
   587e89bd56c1 xfs: set AGI buffer type in xlog_recover_clear_agi_bucket
   959e363eaf14 arm/xen: Use alloc_percpu rather than __alloc_percpu
   6fbd3fb6c4df xen/gntdev: Use VM_MIXEDMAP instead of VM_IO to avoid NUMA balancing
   883f12a20583 tpm xen: Remove bogus tpm_chip_unregister
   8419f5215db3 kernel/debug/debug_core.c: more properly delay for secondary CPUs
   63b33e0885d6 watchdog: qcom: fix kernel panic due to external abort on non-linefetch
   bf902ead61d8 watchdog: mei_wdt: request stop on reboot to prevent false positive event
   2f826a72ea8b kernel/watchdog: use nmi registers snapshot in hardlockup handler
   bbf23f00d55e CIFS: Fix a possible memory corruption in push locks
   9f1f5076149a CIFS: Fix missing nls unload in smb2_reconnect()
   ff04da387c10 CIFS: Fix a possible memory corruption during reconnect
   6cb589c7529f ASoC: intel: Fix crash at suspend/resume without card registration
   769c0922d4a6 dm space map metadata: fix 'struct sm_metadata' leak on failed create
   ab10ab0a2a3d dm raid: fix discard support regression
   454b98d3f2b5 dm rq: fix a race condition in rq_completed()
   26011e67339e dm crypt: mark key as invalid until properly loaded
   bd5fcd18c8c3 dm flakey: return -EINVAL on interval bounds error in flakey_ctr()
   1ca66d6a19d2 dm table: an 'all_blk_mq' table must be loaded for a blk-mq DM device
   d948d3b1e416 dm table: fix 'all_blk_mq' inconsistency when an empty table is loaded
   45f631113b36 blk-mq: Do not invoke .queue_rq() for a stopped queue
   e3742a15d6cd PM / OPP: Pass opp_table to dev_pm_opp_put_regulator()
   8b63a922ac07 usb: gadget: composite: always set ep->mult to a sensible value
   d4f4b2e659f5 mm, page_alloc: keep pcp count and list contents in sync if struct page is corrupted
   0927d281a2fc mm/vmscan.c: set correct defer count for shrinker
   3e0ef1b8e0cc nvmet: Fix possible infinite loop triggered on hot namespace removal
   6290a3bcd3c3 loop: return proper error from loop_queue_rq()
   bf0f02079039 f2fs: fix overflow due to condition check order
   154d83a8384e f2fs: set ->owner for debugfs status file's file_operations
   67e5239c8366 Revert "f2fs: use percpu_counter for # of dirty pages in inode"
   d06eaf28f1bb ext4: do not perform data journaling when data is encrypted
   e33673bef6f0 ext4: return -ENOMEM instead of success
   3664877022ea ext4: reject inodes with negative size
   1bfcffbb8801 ext4: add sanity checking to count_overhead()
   9689eb99ce0f ext4: fix in-superblock mount options processing
   52a9daa3d5c0 ext4: use more strict checks for inodes_per_block on mount
   7505584356d2 ext4: fix stack memory corruption with 64k block size
   86efd99f0ebe ext4: fix mballoc breakage with 64k block size
   8022387d236a crypto: caam - fix AEAD givenc descriptors
   ade692b8f1f5 ptrace: Capture the ptracer's creds not PT_PTRACE_CAP
   23d179acb363 vfs,mm: fix return value of read() at s_maxbytes
   e45692fa1aea mm: Add a user_ns owner to mm_struct and fix ptrace permission checks
   04804d83d483 block_dev: don't test bdev->bd_contains when it is not stable
   52d69727a441 fs: exec: apply CLOEXEC before changing dumpable task flags
   781e976ac2c6 exec: Ensure mm->user_ns contains the execed files
   fc1d3e5f3cd0 btrfs: make file clone aware of fatal signals
   8c59356c1232 Btrfs: fix incremental send failure caused by balance
   02fffa116bda Btrfs: don't BUG() during drop snapshot
   0f2e022db237 btrfs: fix a possible umount deadlock
   65563ab7271b Btrfs: fix memory leak in do_walk_down
   364b85c57d25 btrfs: clean the old superblocks before freeing the device
   6a6e9276f3f5 Btrfs: don't leak reloc root nodes on error
   4d3d9b59d963 Btrfs: return gracefully from balance if fs tree is corrupted
   a6522e487b2c Btrfs: bail out if block group has different mixed flag
   d7839adcb0e3 Btrfs: fix memory leak in reading btree blocks
   1a087cd869c6 clk: ti: omap36xx: Work around sprz319 advisory 2.1
   2b96c4b19e0a ALSA: hda: when comparing pin configurations, ignore assoc in addition to seq
   dc8144f49988 ALSA: hda - Gate the mic jack on HP Z1 Gen3 AiO
   685c4db17890 ALSA: hda - fix headset-mic problem on a Dell laptop
   b757fc019fc9 ALSA: hda - ignore the assoc and seq when comparing pin configurations
   38c6095f48fe ALSA: hda/ca0132 - Add quirk for Alienware 15 R2 2016
   5496ec423449 ALSA: hiface: Fix M2Tech hiFace driver sampling rate change
   abf549a8b969 ALSA: usb-audio: Add QuickCam Communicate Deluxe/S7500 to volume_control_quirks
   6b0a56e9aaf3 usbip: vudc: fix: Clear already_seen flag also for ep0
   a9143e58d3cc USB: UHCI: report non-PME wakeup signalling for Intel hardware
   4422a26936ae usb: gadget: composite: correctly initialize ep->maxpacket
   be8f1c44177a usb: gadget: f_uac2: fix error handling at afunc_bind
   79d5a30e37ab usb: hub: Fix auto-remount of safely removed or ejected USB-3 devices
   e3dfbc8904b3 usb: dwc3: gadget: set PCM1 field of isochronous-first TRBs
   269edaef820f USB: cdc-acm: add device id for GW Instek AFG-125
   741523f3da82 USB: serial: kl5kusb105: fix open error path
   f34b7e027eeb USB: serial: option: add dlink dwm-158
   e47e81c4e705 USB: serial: option: add support for Telit LE922A PIDs 0x1040, 0x1041
   3aa3cb940878 Btrfs: fix qgroup rescan worker initialization
   691ea6c7eb1e Btrfs: fix emptiness check for dirtied extent buffers at check_leaf()
   0695d8b10a88 btrfs: store and load values of stripes_min/stripes_max in balance status item
   80f7d2836e37 Btrfs: fix relocation incorrectly dropping data references
   f1b268d7a8e2 Btrfs: fix tree search logic when replaying directory entry deletes
   65553a02a313 Btrfs: fix deadlock caused by fsync when logging directory entries
   361e82137a2d Btrfs: fix BUG_ON in btrfs_mark_buffer_dirty
   562de9c7ce24 btrfs: limit async_work allocation and worker func duration
   f080d7094838 aoe: fix crash in page count manipulation
   8bba2e2e62cb Linux 4.8.15
   762c9bb16fce crypto: rsa - Add Makefile dependencies to fix parallel builds
   014e5a7d9354 hotplug: Make register and unregister notifier API symmetric
   3527ad05b46e batman-adv: Check for alloc errors when preparing TT local data
   32ccd76788a5 m68k: Fix ndelay() macro
   9fc7a4758608 ceph: don't set req->r_locked_dir in ceph_d_revalidate
   a05f493f8d4e ARM: dts: imx7d: fix LCDIF clock assignment
   798c825fb006 ARM: dts: orion5x: fix number of sata port for linkstation ls-gl
   d271b9bec2d3 Revert "ACPI: Execute _PTS before system reboot"
   3ee9f16cff18 can: peak: fix bad memory access and free sequence
   212e0ff80970 can: raw: raw_setsockopt: limit number of can_filter that can be set
   bdb5ed2040f5 crypto: marvell - Don't corrupt state of an STD req for re-stepped ahash
   bfef274e4dae crypto: mcryptd - Check mcryptd algorithm compatibility
   86bea59218a0 crypto: caam - fix pointer size for AArch64 boot loader, AArch32 kernel
   666531ca650e crypto: marvell - Don't copy hash operation twice into the SRAM
   04925ba9b944 acpi, nfit: fix bus vs dimm confusion in xlat_status
   53ed7c2e8d02 acpi, nfit: validate ars_status output buffer size
   e04e2dace316 acpi, nfit, libnvdimm: fix / harden ars_status output length handling
   483ac1487a9d acpi, nfit: fix extended status translations for ACPI DSMs
   0525cebf8ef7 perf/x86: Fix full width counter, counter overflow
   eceab1fd7f9e vhost-vsock: fix orphan connection reset
   b0224f36735e sched/autogroup: Fix 64-bit kernel nice level adjustment
   2a477999977c scsi: lpfc: fix oops/BUG in lpfc_sli_ringtxcmpl_put()
   ac65fe0bbdea device-dax: fix private mapping restriction, permit read-only
   2386c6b188c5 locking/rtmutex: Use READ_ONCE() in rt_mutex_owner()
   7b2347c8e803 locking/rtmutex: Prevent dequeue vs. unlock race
   bed4eef2e8fa zram: restrict add/remove attributes to root only
   4fb7569c7370 parisc: Fix TLB related boot crash on SMP machines
   b81e5db49515 parisc: Remove unnecessary TLB purges from flush_dcache_page_asm and flush_icache_page_asm
   7e8f68aa1833 parisc: Purge TLB before setting PTE
   6e284445bab5 fuse: fix clearing suid, sgid for chown()
   e70d6d2d7383 powerpc/boot: Fix build failure in 32-bit boot wrapper
   a82ad493f045 powerpc/mm: Fix lazy icache flush on pre-POWER5
   84b36287c72d powerpc/eeh: Fix deadlock when PE frozen state can't be cleared
   7b8c57cad53a Linux 4.8.14
   1670d1584701 esp6: Fix integrity verification when ESN are used
   b3e9d4982939 esp4: Fix integrity verification when ESN are used
   be5339492b29 flowcache: Increase threshold for refusing new allocations
   3a116fa8c95d Revert: "ip6_tunnel: Update skb->protocol to ETH_P_IPV6 in ip6_tnl_xmit()"
   686182870c6a ipv4: Set skb->protocol properly for local output
   e67bd82fb79d ipv6: Set skb->protocol properly for local output
   22d94c326660 Don't feed anything but regular iovec's to blk_rq_map_user_iov
   e4a6c61c6b71 constify iov_iter_count() and iter_is_iovec()
   907bc3181c9a sparc32: Fix inverted invalid_frame_pointer checks on sigreturns
   360e257f8cf3 sparc64: fix compile warning section mismatch in find_node()
   2f02dcb673a4 sparc64: Fix find_node warning if numa node cannot be found
   ad02ec7d37a2 ipv4: Drop suffix update from resize code
   0b1c601d367f ipv4: Drop leaf from suffix pull/push functions
   cd8a6c0e95bf ipv4: Fix memory leak in exception case for splitting tries
   a8780378b39e ipv4: Restore fib_trie_flush_external function and fix call ordering
   5ff5e5c06c25 net: ping: check minimum size on ICMP header length
   f818e5d86aef net: avoid signed overflows for SO_{SND|RCV}BUFFORCE
   bfecf9017f8b geneve: avoid use-after-free of skb->data
   4daa2c73eb05 tipc: check minimum bearer MTU
   1ff3209a21c8 sh_eth: remove unchecked interrupts for RZ/A1
   bbf913d774b7 net: bcmgenet: Utilize correct struct device for all DMA operations
   accb7c99fc0f cdc_ether: Fix handling connection notification
   34457543e203 ip6_offload: check segs for NULL in ipv6_gso_segment.
   cef222d40f2e packet: fix race condition in packet_set_ring
   17941a9d6409 GSO: Reload iph after pskb_may_pull
   ff0d7874078d net/dccp: fix use-after-free in dccp_invalid_packet
   023cd33ece37 net: macb: fix the RX queue reset in macb_rx()
   25d9b4bb64ea netlink: Do not schedule work from sk_destruct
   f5dad3473d83 netlink: Call cb->done from a worker thread
   360d6a23e79d net/sched: pedit: make sure that offset is valid
   aa239369bdfa net: dsa: fix unbalanced dsa_switch_tree reference counting
   9a7479273949 net, sched: respect rcu grace period on cls destruction
   a9437ebc69f5 net: dsa: bcm_sf2: Ensure we re-negotiate EEE during after link change
   ddf053431efe udplite: call proper backlog handlers
   7b0aa75be3ab ipv6: bump genid when the IFA_F_TENTATIVE flag is clear
   58c8cc33de6c rtnl: fix the loop index update error in rtnl_dump_ifinfo()
   84df56749f48 l2tp: fix racy SOCK_ZAPPED flag check in l2tp_ip{,6}_bind()
   7f8b251a0985 rtnetlink: fix FDB size computation
   c39caa8f80c0 af_unix: conditionally use freezable blocking calls in read
   bdc5c63e4b38 net: sky2: Fix shutdown crash
   a75684ab7a12 ip6_tunnel: disable caching when the traffic class is inherited
   1b079d5b9fc1 net: check dead netns for peernet2id_alloc()
   65dfc8b4547f net: dsa: b53: Fix VLAN usage and how we treat CPU port
   f959eb507439 virtio-net: add a missing synchronize_net()
   8070f33be6c4 gro_cells: mark napi struct as not busy poll candidates
   55d64c0b3c15 Linux 4.8.13
   a4edb1a2b045 arm64: suspend: Reconfigure PSTATE after resume from idle
   6353400d9130 arm64: mm: Set PSTATE.PAN from the cpu_enable_pan() call
   b49b1ae6d341 arm64: cpufeature: Schedule enable() calls instead of calling them via IPI
   e4e77deda200 batman-adv: Detect missing primaryif during tp_send as error
   f106de5604dd clk: sunxi: Fix M factor computation for APB1
   9e2d9e95094a perf/x86: Restore TASK_SIZE check on frame pointer
   ab34b429a01f drm/mediatek: fix null pointer dereference
   43b5bb262711 pwm: Fix device reference leak
   6c6947613979 KVM: use after free in kvm_ioctl_create_device()
   ff8b06b4efa6 arm64: dts: juno: fix cluster sleep state entry latency on all SoC versions
   f67b89acdfa1 drm/radeon: fix check for port PM availability
   835bb5cd3653 drm/amdgpu: fix check for port PM availability
   972d595824b6 drm/radeon: fix power state when port pm is unavailable (v2)
   be1b75edf20b drm/amdgpu: fix power state when port pm is unavailable
   bd78c077f8fe drm/i915: drop the struct_mutex when wedged or trying to reset
   5dd86b6e5873 drm/i915: Don't touch NULL sg on i915_gem_object_get_pages_gtt() error
   05abe7452b71 KVM: arm/arm64: vgic: Don't notify EOI for non-SPIs
   ca42bd35d308 mwifiex: printk() overflow with 32-byte SSIDs
   de9ba13ebfdb PCI: Set Read Completion Boundary to 128 iff Root Port supports it (_HPX)
   4f4857148b4a PCI: Export pcie_find_root_port
   27dce9bcad4d mm: workingset: fix NULL ptr in count_shadow_nodes
   60e33689a06e rcu: Fix soft lockup for rcu_nocb_kthread
   b6f9e236b7ef Input: psmouse - disable automatic probing of BYD touchpads
   6ca8ab7052c4 Input: change KEY_DATA from 0x275 to 0x277
   600bec25b855 ovl: fix d_real() for stacked fs
   5661a6926871 mm: fix false-positive WARN_ON() in truncate/invalidate for hugetlb
   48b6b50a2ba5 kasan: update kasan_global for gcc 7
   db04d354b7f1 zram: fix unbalanced idr management at hot removal
   010020900006 thp: fix corner case of munlock() of PTE-mapped THPs
   08fd95de5eee mm, thp: propagation of conditional compilation in khugepaged.c
   76e59ecacd54 ARC: Don't use "+l" inline asm constraint
   b43fb9f6f162 ARC: mm: PAE40: Fix crash at munmap
   8d1ee7b245ef scsi: libfc: fix seconds_since_last_reset miscalculation
   10e2627377b0 scsi: hpsa: use bus '3' for legacy HBA devices
   e170c1003c02 libata-scsi: Fixup ata_gen_passthru_sense()

(From OE-Core rev: 9cd1850a0a8882796f89c65c073bc80f915f413f)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:23 +00:00
Bruce Ashfield d28e6d2087 linux-yocto/4.9: -stable update to v4.9.2
The shortlog of changes follows:

   6f2fabab8d63 Linux 4.9.2
   8ed8791885aa drm/i915: Fix setting of boost freq tunable
   18a00ac6d7f1 drm/i915: skip the first 4k of stolen memory on everything >= gen8
   639641105443 drm/i915: Initialize dev_priv->atomic_cdclk_freq at init time
   159e2ea9ed49 drm/i915: Fix cdclk vs. dev_cdclk mess when not recomputing things
   d816da6f5766 drm/i915/dsi: Do not clear DPOUNIT_CLOCK_GATE_DISABLE from vlv_init_display_clock_gating
   6cb4179f97cf drm/i915/dsi: Fix chv_exec_gpio disabling the GPIOs it is setting
   2037b1b46cdb net: mvpp2: fix dma unmapping of TX buffers for fragments
   3f3a6bbe6f9f sg_write()/bsg_write() is not fit to be called under KERNEL_DS
   d024532a97db kconfig/nconf: Fix hang when editing symbol with a long prompt
   173fd37a3d21 target/user: Fix use-after-free of tcmu_cmds if they are expired
   630a2ef354bb libnvdimm, pfn: fix align attribute
   6838ac125324 of, numa: Return NUMA_NO_NODE from disable of_node_to_nid() if nid not possible.
   d5cf5ae25c95 powerpc/boot: Request no dynamic linker for boot wrapper
   efcb3d9442ff powerpc/ps3: Fix system hang with GCC 5 builds
   4b23132d6cf5 powerpc/64e: Convert cmpi to cmpwi in head_64.S
   369b330c9d82 SUNRPC: fix refcounting problems with auth_gss messages.
   ba15defe1807 pNFS: Fix a deadlock between read resends and layoutreturn
   e523ce8c99f9 pNFS: Clear NFS_LAYOUT_RETURN_REQUESTED when invalidating the layout stateid
   f32659df6e15 pNFS: Don't clear the layout stateid if a layout return is outstanding
   24b049fa0cd9 pNFS: On error, do not send LAYOUTGET until the LAYOUTRETURN has completed
   b775b86a5fe8 nfs_write_end(): fix handling of short copies
   fc6cb9c303e2 libceph: verify authorize reply on connect
   d8c34b0cc0be PCI: Check for PME in targeted sleep state
   7cc603e9a828 i40iw: Use correct src address in memcpy to rdma stats counters
   6195cd1a9628 bad_inode: add missing i_op initializers
   afd2a1994ea4 Input: drv260x - fix input device's parent assignment
   e5d92c0c84f3 v4l: tvp5150: Add missing break in set control handler
   7f89c1373637 media: solo6x10: fix lockup by avoiding delayed register write
   3fbe140e9d36 s5p-mfc: fix failure path of s5p_mfc_alloc_memdev()
   9fd64b830259 mn88473: fix chip id check on probe
   eb9afff9513d mn88472: fix chip id check on probe
   9aff8b170fe0 IB/cma: Fix a race condition in iboe_addr_get_sgid()
   476ed812c42d IB/rxe: Fix a memory leak in rxe_qp_cleanup()
   5984423bf7eb IB/multicast: Check ib_find_pkey() return value
   4187dfa67fa9 IPoIB: Avoid reading an uninitialized member variable
   382072e09f19 IB/mad: Fix an array index check
   239b40eb6189 fgraph: Handle a case where a tracer ignores set_graph_notrace
   a035dc674dd4 x86/smpboot: Make logical package management more robust
   3168762e8ad3 platform/x86: asus-nb-wmi.c: Add X45U quirk
   21be088c36c6 ftrace/x86_32: Set ftrace_stub to weak to prevent gcc from using short jumps to it
   e80ceb2da52e vsock/virtio: fix src/dst cid format
   d06485e0fcf5 fsnotify: Fix possible use-after-free in inode iteration on umount
   3f618a0b872f kvm: nVMX: Allow L1 to intercept software exceptions (#BP and #OF)
   94107133ae81 KVM: PPC: Book3S HV: Don't lose hardware R/C bit updates in H_PROTECT
   75b1053c2b8c KVM: PPC: Book3S HV: Save/restore XER in checkpointed register state
   483eeca2cf38 scsi: aacraid: remove wildcard for series 9 controllers
   8beb252f2be2 md/raid5: limit request size according to implementation limits
   a0357979d620 sc16is7xx: Drop bogus use of IRQF_ONESHOT
   7d5ec9eb3eea latent_entropy: fix ARM build error on earlier gcc
   959e95305f13 arm64: KVM: pmu: Reset PMSELR_EL0.SEL to a sane value before entering the guest
   111e0ccaf979 s390/kexec: use node 0 when re-adding crash kernel memory
   53bbee3348d8 s390/vmlogrdr: fix IUCV buffer allocation
   b3854cefe3d2 firmware: fix usermode helper fallback loading
   ce7ec3d7526c ARC: mm: arc700: Don't assume 2 colours for aliasing VIPT dcache
   9d33a3995667 scsi: avoid a permanent stop of the scsi device's request queue
   2a940b853ef6 scsi: zfcp: fix rport unblock race with LUN recovery
   744807cb251f scsi: zfcp: do not trace pure benign residual HBA responses at default level
   2ce34d9da427 scsi: zfcp: fix use-after-"free" in FC ingress path after TMF
   8032a30081c1 iscsi-target: Return error if unable to add network portal
   113783ec1cdb scsi: megaraid_sas: Do not set MPI2_TYPE_CUDA for JBOD FP path for FW which does not support JBOD sequence map
   6089f8712dcb scsi: megaraid_sas: For SRIOV enabled firmware, ensure VF driver waits for 30secs before reset
   2d2914349286 stm class: Fix device leak in open error path
   fbb28e76454f vt: fix Scroll Lock LED trigger name
   11aa5c10102a block: protect iterate_bdevs() against concurrent close
   09c154920e77 mei: me: add lewisburg device ids
   0814c3ede27a mei: request async autosuspend at the end of enumeration
   66469319c01a drivers/gpu/drm/ast: Fix infinite loop if read fails
   8dbd6f709e62 drm/amdgpu: fix init save/restore list in gfx_v8.0
   f2d3d7f84cdf drm/amdgpu: fix enable_cp_power_gating in gfx_v8.0.
   326760ba1802 drm/amd/powerplay: bypass fan table setup if no fan connected
   aa286e88fd91 drm/gma500: Add compat ioctl
   6187f21f8c97 drm/radeon/si: load the proper firmware on 0x87 oland boards
   851bedd86b95 drm/radeon: add additional pci revision to dpm workaround
   126f676b087d drm/radeon: Hide the HW cursor while it's out of bounds
   45ec673dfe0f drm/radeon: Also call cursor_move_locked when the cursor size changes
   9195157f7d03 drm/nouveau/fifo/gf100-: protect channel preempt with subdev mutex
   64a5c4725fd3 drm/nouveau/i2c/gk110b,gm10x: use the correct implementation
   bfa563bae251 drm/nouveau/ttm: wait for bo fence to signal before unmapping vmas
   a5b4c77c92da drm/nouveau/ltc: protect clearing of comptags with mutex
   d95ef8af5425 drm/nouveau/bios: require checksum to match for fast acpi shadow method
   2c256b8e81bf drm/nouveau/kms: lvds panel strap moved again on maxwell
   42e5fd6bce5b drm/nouveau/gr: fallback to legacy paths during firmware lookup
   c2a51dd3138d drm/amd/amdgpu: enable GUI idle INT after enabling CGCG
   8e1b86f30bc1 drm/amdgpu: Also call cursor_move_locked when the cursor size changes
   2cea21516231 drm/amdgpu: Store CRTC relative amdgpu_crtc->cursor_x/y values
   eb0d743b4188 drm/amdgpu: add additional pci revision to dpm workaround
   f3dd47e0f683 drm/amdgpu/si: load the proper firmware on 0x87 oland boards
   a04465251f94 ACPI / video: Add force_native quirk for HP Pavilion dv6
   6d46601e6564 ACPI / video: Add force_native quirk for Dell XPS 17 L702X
   745f7d0d1951 staging: comedi: ni_mio_common: fix E series ni_ai_insn_read() data
   bd1692bed615 staging: comedi: ni_mio_common: fix M Series ni_ai_insn_read() data mask
   3b2f287b7795 staging: lustre: ldlm: pl_recalc time handling is wrong
   38b2dc0b0f38 staging/lustre/osc: Revert erroneous list_for_each_entry_safe use
   bf6a9b31e8a9 hv: acquire vmbus_connection.channel_mutex in vmbus_free_channels()
   5bd6ccd9c95f docs: sphinx-extensions: make rstFlatTable work with docutils 0.13
   fab303ba78ee thermal: hwmon: Properly report critical temperature in sysfs
   05bc2071b11b clk: bcm2835: Avoid overwriting the div info when disabling a pll_div clk
   b6d666315b99 arm64: tegra: Add VDD_GPU regulator to Jetson TX1
   5f654078b760 gpio: chardev: Return error for seek operations
   acd0993f8e97 gpio: stmpe: fix interrupt handling bug
   ca22975afa14 timekeeping_Force_unsigned_clocksource_to_nanoseconds_conversion
   efd16f76f4da mmc: sd: Meet alignment requirements for raw_ssr DMA
   dbcde92b1b44 regulator: stw481x-vmmc: fix ages old enable error
   cee935845420 mmc: sdhci: Fix recovery from tuning timeout
   5bb425033ef1 Revert "mmc: sdhci: Reset cmd and data circuits after tuning failure"
   71717a3ef900 ath9k: do not return early to fix rcu unlocking
   de5d62f892c3 ath9k: Really fix LED polarity for some Mini PCI AR9220 MB92 cards.
   072ebf89ca23 ath9k: fix ath9k_hw_gpio_get() to return 0 or 1 on success
   1976c7689a58 cfg80211/mac80211: fix BSS leaks when abandoning assoc attempts
   3f23f7f21ac5 rtl8xxxu: Work around issue with 8192eu and 8723bu devices not reconnecting
   19d55b9f32b6 perf/x86/intel/cstate: Prevent hotplug callback leak
   ba12b35fbd69 perf annotate: Don't throw error for zero length symbols
   54fa190d0a54 perf/x86: Fix exclusion of BTS and LBR for Goldmont
   98068574928f rtlwifi: Fix enter/exit power_save
   ea23fca0c600 ath10k: fix soft lockup during firmware crash/hw-restart
   b8425f413466 ssb: Fix error routine when fallback SPROM fails
   6437abdb624e Linux 4.9.1
   705df55bd0cf x86/kbuild: enable modversions for symbols exported from asm
   c728f2b5edf2 builddeb: fix cross-building to arm64 producing host-arch debs
   e12096297ea5 xfs: set AGI buffer type in xlog_recover_clear_agi_bucket
   c11a13d6f527 xfs: fix up xfs_swap_extent_forks inline extent handling
   e67053ad4840 arm/xen: Use alloc_percpu rather than __alloc_percpu
   45394bf3e11e xen/gntdev: Use VM_MIXEDMAP instead of VM_IO to avoid NUMA balancing
   b7bbf06c21aa tpm xen: Remove bogus tpm_chip_unregister
   f726f4f411f9 kernel/debug/debug_core.c: more properly delay for secondary CPUs
   9b78d6905424 watchdog: qcom: fix kernel panic due to external abort on non-linefetch
   2eccf0e0bcb1 watchdog: mei_wdt: request stop on reboot to prevent false positive event
   36b08b819713 kernel/watchdog: use nmi registers snapshot in hardlockup handler
   c954acc0007b CIFS: Fix a possible memory corruption in push locks
   9f9d98246e5f CIFS: Decrease verbosity of ioctl call
   46890ffba1d6 CIFS: Fix a possible double locking of mutex during reconnect
   69d13b69e79c CIFS: Fix missing nls unload in smb2_reconnect()
   48f9526f4dcb CIFS: Fix a possible memory corruption during reconnect
   7aa58e7ad53b cifs: Fix smbencrypt() to stop pointing a scatterlist at the stack
   41c856b32900 ASoC: intel: Fix crash at suspend/resume without card registration
   f5dca4881fac dm space map metadata: fix 'struct sm_metadata' leak on failed create
   461f272954cf dm raid: fix discard support regression
   e362c317ba76 dm rq: fix a race condition in rq_completed()
   2c017f77e13d dm crypt: mark key as invalid until properly loaded
   3fae2a9e994b dm flakey: return -EINVAL on interval bounds error in flakey_ctr()
   e74fb822281e dm table: an 'all_blk_mq' table must be loaded for a blk-mq DM device
   470b6910f7c1 dm table: fix 'all_blk_mq' inconsistency when an empty table is loaded
   67b0069a5175 blk-mq: Do not invoke .queue_rq() for a stopped queue
   7ac62bcde2d4 PM / OPP: Don't use OPP structure outside of rcu protected section
   c7a8a0ac8fee PM / OPP: Pass opp_table to dev_pm_opp_put_regulator()
   eab1c4e2d0ad usb: gadget: composite: always set ep->mult to a sensible value
   44919a2ac4c6 mm, page_alloc: keep pcp count and list contents in sync if struct page is corrupted
   04597beae7c2 mm/vmscan.c: set correct defer count for shrinker
   fe3d462821b0 nvmet: Fix possible infinite loop triggered on hot namespace removal
   890c39d35eb0 loop: return proper error from loop_queue_rq()
   01e15b3328c4 f2fs: fix to determine start_cp_addr by sbi->cur_cp_pack
   027611ef345d f2fs: fix overflow due to condition check order
   1134ef11ffff f2fs: set ->owner for debugfs status file's file_operations
   a43e1c459a3d Revert "f2fs: use percpu_counter for # of dirty pages in inode"
   9abce3ca80a7 ext4: do not perform data journaling when data is encrypted
   acf3efd6f003 ext4: return -ENOMEM instead of success
   3e4f8da9d177 ext4: reject inodes with negative size
   8084f57bc468 ext4: add sanity checking to count_overhead()
   956e2a0e6779 ext4: fix in-superblock mount options processing
   01772f4683a9 ext4: use more strict checks for inodes_per_block on mount
   b493c715cdce ext4: fix stack memory corruption with 64k block size
   c3881abae6e7 ext4: fix mballoc breakage with 64k block size
   24d1251a5d83 ext4: don't lock buffer in ext4_commit_super if holding spinlock
   21cc91554c3d crypto: caam - fix AEAD givenc descriptors
   e71b4e061c96 ptrace: Don't allow accessing an undumpable mm
   e747b4ae3b6b ptrace: Capture the ptracer's creds not PT_PTRACE_CAP
   48466c4772d2 vfs,mm: fix return value of read() at s_maxbytes
   694a95fa6dae mm: Add a user_ns owner to mm_struct and fix ptrace permission checks
   cfa2d65b2622 block_dev: don't test bdev->bd_contains when it is not stable
   b6cce9b8e813 splice: reinstate SIGPIPE/EPIPE handling
   c1df5a63716b fs: exec: apply CLOEXEC before changing dumpable task flags
   21245b8635e8 exec: Ensure mm->user_ns contains the execed files
   0de98eef9c11 clk: ti: omap36xx: Work around sprz319 advisory 2.1
   0ce4f00087b4 ALSA: hda: when comparing pin configurations, ignore assoc in addition to seq
   e029ef3a9c82 ALSA: hda - Gate the mic jack on HP Z1 Gen3 AiO
   0119d5d44034 ALSA: hda - fix headset-mic problem on a Dell laptop
   37b7c5db5a30 ALSA: hda - ignore the assoc and seq when comparing pin configurations
   0f1047be4a9f ALSA: hda/ca0132 - Add quirk for Alienware 15 R2 2016
   fa2e770f88bc ALSA: hiface: Fix M2Tech hiFace driver sampling rate change
   205d3de9637f ALSA: usb-audio: Add QuickCam Communicate Deluxe/S7500 to volume_control_quirks
   77bd73ce21fa usbip: vudc: fix: Clear already_seen flag also for ep0
   420f170ce1ba USB: UHCI: report non-PME wakeup signalling for Intel hardware
   e0aa5ec40d6e usb: gadget: composite: correctly initialize ep->maxpacket
   5180169dae85 usb: gadget: f_uac2: fix error handling at afunc_bind
   eab169397ad6 usb: core: usbport: Use proper LED API to fix potential crash
   32a35351b7ec usb: hub: Fix auto-remount of safely removed or ejected USB-3 devices
   3666b6280351 usb: dwc3: gadget: set PCM1 field of isochronous-first TRBs
   20d7c1a68b5b USB: cdc-acm: add device id for GW Instek AFG-125
   c094cd32b0c7 USB: serial: kl5kusb105: fix open error path
   5e7c90bd53c6 USB: serial: option: add dlink dwm-158
   142513d6dc7c USB: serial: option: add support for Telit LE922A PIDs 0x1040, 0x1041
   1a5ec7dd17a9 Btrfs: fix qgroup rescan worker initialization
   a1e0e0476afb Btrfs: fix emptiness check for dirtied extent buffers at check_leaf()
   c01ea880e88a btrfs: store and load values of stripes_min/stripes_max in balance status item
   01f285fe1d88 Btrfs: fix relocation incorrectly dropping data references
   26dc52465f0d Btrfs: fix tree search logic when replaying directory entry deletes
   664b053c5363 Btrfs: fix deadlock caused by fsync when logging directory entries
   7d470f04e36c Btrfs: fix BUG_ON in btrfs_mark_buffer_dirty
   3bac322e18c3 btrfs: limit async_work allocation and worker func duration
   56eaecc8ecf3 hotplug: Make register and unregister notifier API symmetric

(From OE-Core rev: 338874156bbe1b63a225643910bcdf0491d5c7f9)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:23 +00:00
Bruce Ashfield 23e27711af kernel-yocto: firewire and audio configuration updates
Integrating firewire and audio configuration updates from Jussi:

    Add support for IEEE-1394 (Firewire)

    Adds support for IEEE-1394 aka Firewire bus and some commonly used
    devices.

    Signed-off-by: Jussi Laako <jussi.laako@linux.intel.com>

    Update audio support

    Updates audio support to work with modern audio hardware while
    dropping some legacy parts.

    Signed-off-by: Jussi Laako <jussi.laako@linux.intel.com>

(From OE-Core rev: bbde3fa90ea4470630049a92ee7f683115868466)

Signed-off-by: Jussi Laako <jussi.laako@linux.intel.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:23 +00:00
Bruce Ashfield 12da4527ea linux-yocto/4.4/4.8/4.9: netfilter: iptables: enable NAT tables
This changes adds 'nat' table in iptables. The netfilter side
is already configured for NAT but iptables config was missing.

Further, CONFIG_IP_NF_TARGET* configured below depend on
CONFIG_IP_NF_NAT but remain disabled unless CONFIG_IP_NF_NAT
is explicitly enabled.

CONFIG_IP_NF_TARGET_MASQUERADE is needed by Connman to
support tethering.

(From OE-Core rev: 0a382b58c01bb359b225f48f312f696f0badf27b)

Signed-off-by: Mikko Ylinen <mikko.ylinen@linux.intel.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:23 +00:00
Bruce Ashfield 5191d13abe kernel-yocto: tiny features aka Link Time Optimization
Integrating the following patches for the 4.4/4.8 and 4.9
kernel to enable LTO for linux-yocto-tiny configurations
(i.e. poky-tiny).

b9735c0b4235 intel-quark: Remove support for serial-all
ce02da2e7833 features/usb/serial: Add new usb serial feature
f5b00d3a7e68 soc/x1000: Remove 'default policy' features
ca2dc186ff32 soc/x1000: Remove unnecessary features
90061752cbb5 soc/x1000: Remove bsp/common-pc/*
00b26ed213c4 meta/intel-common: Have intel-quark-tiny use common-drivers-32-essential
7ce24a2c497b meta/intel-common: Add intel-common-drivers-32-essential feature
ef711e0ab70e meta: Add lto-debug feature
1ca570817bf3 meta: Add lto-disable feature
45e5c2e9118e meta: Add lto (Link-Time Optimization) enablement feature

(From OE-Core rev: 6a8e6b66ff65cf849a3c34a506cf650abfef2420)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:23 +00:00
Bruce Ashfield d3c607aee8 linux-yocto-rt/4.9: add -rt specific patches
The 4.9-rt kernel has been released, and this commit integrates
the 286 patches in that series.

(From OE-Core rev: 5249e168ac3afac7ddc5d67d526c3bf74d82aa5c)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:22 +00:00
Bruce Ashfield da46595d90 kernel: introduce linux-yocto v4.9 recipes
Introducing the 4.9 kernel recipes. 4.9 will be a LTSI kernel, so we
introduce these recipes with the intent that they'll replace 4.1 as
the LTSI kernel, and other older kernels (i.e 4.4/4.8)  once 4.9
shown to be stable.

linux-yocto-tiny and linux-yocto-rt are also part of this commit, but
are placeholders while we wait for their content to be available. They
will build, but provide nothing above the standard kernel at the
moment.

(From OE-Core rev: e8a1f4ccb10af234af1f2cb6905c638992558556)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:22 +00:00
Aníbal Limón f9c758a2e7 qemu: Upgrade to 2.7.1
Minor upgrade contains fixes from 2.7.0.

Removed patches (already in upstream):

- 0001-pci-assign-sync-MSI-MSI-X-cap-and-table-with-PCIDevi.patch
- 0001-virtio-zero-vq-inuse-in-virtio_reset.patch
- 0002-fix-CVE-2016-7423.patch

(From OE-Core rev: 0f29bd2c267efcb0087d73c38202ba233af636fd)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:22 +00:00
Francisco Pedraza 51b6df76f2 oeqa/selftest: Adds test case for sdk-update eSDK
1. Test case adds perl recipe before build eSDK.
2. After this added recipe, the script verifies the update:

    ${SDK_DEPLOY}/${TOOLCHAINEXT_OUTPUTNAME}.sh
    oe-publish-sdk [esdk] [path-to-http]
    CORE_IMAGE_EXTRA_INSTALL = "perl"
    bitbake -c populate-sdk-ext [some-image]
    devtool sdk-update

This should fix [YOCTO #9369]

(From OE-Core rev: 21bd406bf89e9ceafe1a807877406be817cacca6)

Signed-off-by: Francisco Pedraza <francisco.j.pedraza.gonzalez@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:22 +00:00
Saul Wold 45ae1e9684 linux-firmware: relocate ath9k_htc blobs to correct package
The newer firmware blobs were versioned and landing in the default
package so move them to their appropriately named package.

[YOCTO #10942]

(From OE-Core rev: d7657df13d18f982d8ca08f1c992f4605f88ceb4)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:22 +00:00
Robert Yang be60ae52f2 qemuboot.bbclass: add blank lines in comments
Add blank lines in comments to make it easy for readind and updating.

(From OE-Core rev: 3f3344d1c063b0013a9ae7203bac30ab8f4ea17c)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:22 +00:00
Robert Yang 9dd223bf18 runqemu: fixes for slirp, network device and hostfwd
Fixed:
- Add QB_NETWORK_DEVICE to set network device, it will be used by both
  slirp and tap.
- Set QB_NETWORK_DEVICE to "-device virtio-net-pci" in qemuboot.bbclass
  but runqemu will default to "-device e1000" when QB_NETWORK_DEVICE is
  not set, this is because oe-core's qemu targets support
  virtio-net-pci, but the one outside of oe-core may not,
  "-device e1000" is more common.
- Set hostfwd by default: 2222 -> 22, 2323 -> 23, and it will choose a
  usable port when the one like 222 is being used. This can avoid
  conflicts when multilib slirp qemus are running. We can forward more
  ports by default if needed, and bsp.conf can custom it.
- Use different mac sections for slirp and tap to fix conflicts when
  running both of them on the same host.

[YOCTO #7887]

CC: Nathan Rossi <nathan@nathanrossi.com>
CC: Randy Witt <randy.e.witt@linux.intel.com>
(From OE-Core rev: 7dddd090806914a62d977730440d803e48f44763)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:22 +00:00
Marek Vasut c32720422e u-boot: Update to 2017.01 release
Upgrade U-Boot to the latest version.

(From OE-Core rev: d151d86d18127ae63be3cddde605e7953bd812d9)

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: Denys Dmytriyenko <denis@denix.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:22 +00:00
Chen Qi 2a64701acf package_manager: default to have scriptlet output captured in log
We need to have scriptlet output captured in log. If we don't do so,
some useful information from scriptlets (especially postinstall script)
would be missing. In case a script has a warning message but it does not
necessarily have to fail, the message should be captured.

Opkg has already done that. Change for rpm and dpkg so that scriptlet
output is captured and no warning message is missing.

(From OE-Core rev: 0e52e0c619e02327602d83999a61d978d3a9240e)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:22 +00:00
Joe Slater 83ec24789f build-compare: derive PV from SRCPV
Currently, PV is "git" and contains no version information.

(From OE-Core rev: e1fe3f8a601ba289a2e9963ef3f1309e431704eb)

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:22 +00:00
Khem Raj 49fec741eb glibc: Upgrade to 2.25 snapshot
glibc 2.25 release is in freeze stage now

(From OE-Core rev: b72dbf70646e9dca0dbb5b22bc70d919e6eb8bdc)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:22 +00:00
Markus Lehtonen f4c96ea829 oeqa.buildperf: store measurements as a dict (object) in the JSON report
Store measurements as a dict, instead of an array, in the JSON report.
This change makes traversing of the report much easier. The change also
disallows identically named measurements under one test, as a sanity
check for the test cases.

[YOCTO #10590]

(From OE-Core rev: 81065092f38c9631dcf5917d70a25809a21de5f4)

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:22 +00:00
Markus Lehtonen 7171710acd oeqa.buildperf: change sorting in json report
Use OrderedDict() instead of sort_keys=True (of json.dump()). Makes for
more logical sorting of the values in the report.

[YOCTO #10590]

(From OE-Core rev: 75e8aec0e0d81888be47b35c3c84df73edb91868)

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:22 +00:00
Markus Lehtonen 8e01802c9f oe-build-perf-test: remove unused imports and fix indent
[YOCTO #10590]

(From OE-Core rev: 0b1892fa9165407a156609ff7cb3708e21bacd8c)

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:22 +00:00
Markus Lehtonen 0981bcb098 oe-build-perf-test: save test metadata in a separate file
The patch introduces a new metadata (.json or .xml) file in the output
directory. All test meta data, e.g. git revision information and tester
host information is now stored there. The JSON report format is slightly
changed as the metadata is not present in results.json anymore.

[YOCTO #10590]

(From OE-Core rev: 2036c646019660e32f1bc277fdec0cdbff0afdd4)

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:22 +00:00
Markus Lehtonen 0e2d84728b oeqa.buildperf: report results in chronological order
Write results in the report file in chronological order, instead of
random order dependent on test statuses.

[YOCTO #10590]

(From OE-Core rev: 91ba6ea9fe2eb82f992a6516d7971b435e1cfd32)

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:22 +00:00
Markus Lehtonen fa4742f585 oeqa.buildperf: extend xml report format with test description
Add test description as an attribute to the <testcase> element.

[YOCTO #10590]

(From OE-Core rev: 7c23ddfeb4a46ee519cafdbd83ad1880621fba4d)

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:21 +00:00
Markus Lehtonen 4a26ceaecf oeqa.buildperf: extend xml format to contain measurement data
Make the xml report format slightly non-standard by incorporating
measurement data into it.

[YOCTO #10590]

(From OE-Core rev: b7164d30fb125ff0c85a2ea508b0f1801aa57f66)

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:21 +00:00
Markus Lehtonen 07c245792e oe-build-perf-test: enable xml reporting
Add --xml command line option to oe-build-perf-test script for producing
a test report in JUnit XML format instead of JSON.

[YOCTO #10590]

(From OE-Core rev: 21ae1c491b93675254b7733640662b566ed76f98)

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:21 +00:00
Markus Lehtonen 96fcb0f7b4 oeqa.buildperf: include error details in json report
This will typically mean assert message and exception type plus a
traceback. In case of skipped tests the reason (i.e. skip message) is
included.

[YOCTO #10590]

(From OE-Core rev: bd5f5ab6f7350b4487c9cc2dbd100fa4b687d0fa)

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:21 +00:00
Markus Lehtonen 184afbc6ce oeqa.buildperf: sync test status names with JUnit
Use 'failure' instead of 'fail'. Also, use 'expected' instead of 'exp'.

[YOCTO #10590]

(From OE-Core rev: 51ae18c64eee074478157a484f71a53faadca80b)

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:21 +00:00
Markus Lehtonen ef988b3d06 oeqa.buildperf: prevent a crash on unexpected success
(From OE-Core rev: af205d9a13d182a0b590426ba8c4e3dff7f3f02b)

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:21 +00:00
Bruce Ashfield 6a4debb732 kern-tools: kconf_check: flag CONFIG options with invalid spaces
Options with spacs around = signs will be droped/ignored by the
kernel.

The audit phase can detect this and warn the user:

    % kconf_check --report -o .kernel-meta/cfg/ \
      linux-qemux86-standard-build/.config `pwd` $cfgs

     [errors (3): .kernel-meta/cfg/fragment_errors.txt
       There are errors withing the config fragments.

    % cat .kernel-meta/cfg/fragment_errors.txt
       Warning: Ignoring "CONFIG_PARAVIRTT_CLOCK =y" -- spaces around equals are invalid
       Warning: Ignoring "CONFIG_PARAVIRTTT_CLOCK = y" -- spaces around equals are invalid
       Warning: Ignoring "CONFIG_PARAVIRTTTT_CLOCK= y" -- spaces around equals are invalid

(From OE-Core rev: 952a455c09eb88755b2d24ae05c2d6b886922b63)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:21 +00:00
Bruce Ashfield e7e7e9df16 kern-tools: scc: Fix process_file error check
Commit 626ceac135fa66277c2fa53197be33cc9d4d7614 broke the error
    check in process_file by adding in three lines that stomp on $? which
    print the output file when verbose is set.

    Move output file on verbose print to an elif after the error check.

    Signed-off-by: George McCollister <george.mccollister@gmail.com>

(From OE-Core rev: 01657e8023ee535420ab5ba4a5d1952e13bce0cd)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:21 +00:00
Maxin B. John dd501e3075 busybox: refresh the flock patch
Upstream accepted the flock fix with some improvements. Backport those
changes.

(From OE-Core rev: 16813b55d1cd624820f955ab752c922f305856e8)

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:21 +00:00
Tanu Kaskinen 12106c68cd alsa-tools: 1.1.0 -> 1.1.3
Drop 0001-Cus428Midi-Explicitly-cast-constant-to-char-type.patch,
because the new release has an equivalent fix (and that's actually the
only change in the new release).

(From OE-Core rev: df748d5b9f1cc0166cb8de5d770e001171cc3926)

Signed-off-by: Tanu Kaskinen <tanuk@iki.fi>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:21 +00:00
Andreas Müller 0af7715cbb alsa-utils(-scripts): fix compile on build machines with python-docutils installed
(From OE-Core rev: dca468b5977b9c2cb2268c32c92e8c41c586f172)

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:21 +00:00
Andreas Müller 1f663369ff alsa-utils-scripts: update 1.1.2 -> 1.1.3
(From OE-Core rev: d421cbe8e323e398852404a0fe3e11283e3bb61e)

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:21 +00:00
Andreas Müller f58050d970 alsa-utils: update 1.1.2 -> 1.1.3
(From OE-Core rev: 307f4996eaad61c638cb69a04d0710c5db895ff9)

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:21 +00:00
Tanu Kaskinen 624ceb2961 flac: 1.3.1 -> 1.3.2
Changelog: https://xiph.org/flac/changelog.html

The license checksum changes are due to simple copyright year updates.

(From OE-Core rev: 2383cfd61e7be076b2079f159a3df1d237d28bb8)

Signed-off-by: Tanu Kaskinen <tanuk@iki.fi>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:21 +00:00
Richard Purdie a0336965aa python3: Add upstream random.c fixes for recent glibc
python3 fails to work with recent glibc versions on older hosts, giving
errors like:

Fatal Python error: getentropy() failed
Aborted

This breaks buildtools-tarball and hence eSDK. This patch backports the
changes to random.c from upstream that address the problem.

(From OE-Core rev: 126b2c47b1806b53fbd9a4706bc48bc7c4efd3be)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:21 +00:00
Mariano Lopez 6cea270c54 selftest/runtime-test.py: Adapt test to use new runtime framework
This adapt the current runtime selftest to use the new runtime
framework.

(From OE-Core rev: cfeec8a59ba03f98944fd3dca1a67d80e7edb4c9)

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:21 +00:00
Mariano Lopez 46ce0b5ef3 testexport.bbclass: Migrate testexport to use new framework
This migrates current testexport implmentation to use the
new OEQA framework.

[YOCTO #10686]

(From OE-Core rev: 92cb884c989460563a063b29d2be8b7acd20577e)

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:21 +00:00
Mariano Lopez 1cc2bac7ec oeqa/runtime/context.py: Add defaults for runtime context
This adds default values to OERuntimeTestContextExecutor class in
order to make easier the execution of exported test that were
generated with testexport class.

[YOCTO #10686]

(From OE-Core rev: c78aeaac3b75610bada62b138c9670815a07ee80)

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:21 +00:00
Mariano Lopez 58789be270 testimage.bbclass: Add package install feature
This allows to use the package install feature with
the new OEQA framework.

[YOCTO #10234]

(From OE-Core rev: 077dc19445574457769eb4f231de97e8059cb75e)

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:20 +00:00
Mariano Lopez f8d7db1905 testimage.bbclass: Add support for package extraction
testimage support the installation of packages without a package
manager in the target. This adds support for package extraction
required to support the installation feature.

[YOCTO #10234]

(From OE-Core rev: 8c7335290cb00ed0683241249297ca573ebd353a)

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:20 +00:00
Mariano Lopez 8970ed4b1f oeqa/core/utils/test.py: Add functions to get module path
This will add functions to get module file path from a test
case or a complete suite.

[YOCTO #10234]

(From OE-Core rev: 11dd49cb9faaf6588f045083ab5bd6679e2eafc1)

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:20 +00:00
Mariano Lopez 41e4db0eea runtime/cases/smart.py: Migrate smart tests
This migrates the smart test from the old framework to
the new one. This has its own commit because smart
test was using bb and oe libraries that are available
when exporting the test cases to run in a different host.

Because of the removal of bb and oe libraries index and
packages feeds creation will be managed in testimage bbclass.

[YOCTO #10234]

(From OE-Core rev: 8d64ac4208e8dcb8a6fde6ea2959c9b3edfe2172)

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:20 +00:00
Mariano Lopez b569aa0e00 oeqa/runtime/cases: Migrate runtime tests.
This migrates current runtime test suite to be used with the new framework.

[YOCTO #10234]

(From OE-Core rev: b39c61f2d442c79d03b73e8ffd104996fcb2177e)

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:20 +00:00
Mariano Lopez 3857e5c91d testimage.bbclass: Migrate class to use new runtime framework
This migrates testimage class to use the new framework. Most of
the code added here is to get rid off the data store dependency.

[YOCTO #10234]

(From OE-Core rev: 2aa5a4954d7610f31875ba7e655f25f8892517b6)

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:20 +00:00
Mariano Lopez 211c5be54c core/target/qemu.py Adds qemu target
This adds qemu target to be used in testimage.
It uses the current QemuRunner class in order
to boot and control qemu.

[YOCTO #10231]

(From OE-Core rev: 44d4e9d0bb31fbc28d8c1fad8860ff56e5ae043a)

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:20 +00:00
Mariano Lopez 71e456add8 oeqa/runtime/context.py: Add logger to getTarget
Current targets (ssh and qemu) require a logger in their
constructors, so in order to get a new target we need
to provide the logger.

[YOCTO #10686]

(From OE-Core rev: 26bae3c255bc1e1cc8d81db0cffc809de0182a43)

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:20 +00:00
Aníbal Limón 0e8d0a03f0 oeqa/runtime/context.py: Prepare for qemu
This commit will prepare context to use qemu and not just
simpleremote.

(From OE-Core rev: 7485a08c967916fb6edff4cc573d9314ec577031)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:20 +00:00
Aníbal Limón 2d34b08533 oeqa/utils/dump: Move get_host_dumper to OERuntimeTestContextExecutor class
To avoid getVar calls inside a utils module, also moves
get_host_dumper import inside testexport isn't needed.

[YOCTO #10231]

(From OE-Core rev: f8beaf94e943a8b20d146be47a756af312ef107c)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:20 +00:00
Aníbal Limón 1247118870 oeqa/runtime/context: Move helper functions for process args to executor
(From OE-Core rev: 07ee2fa0008a50da87fd840aea5e8bb6051c68fa)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:20 +00:00
Aníbal Limón 6c3ca00884 oeqa/runtime/context: Add runtime option group and options for target type and server ip.
(From OE-Core rev: d3cc6761a13fd1da673829797b45323aed7997d0)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:20 +00:00
Mariano Lopez 32a3f4d6ab oeqa/core/context: Add option to select tests to run
This add the option to select what tests to run in the
<module>[.<class>[.<test>]] format.

Currently it just support modules

(From OE-Core rev: 0050565d71cee5a0cc22660b2398e4334d4b6719)

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:20 +00:00
Mariano Lopez 41b0b31a84 oeqa/core/decorator: Add skipIfNotDataVar and skipIfNotInDataVar
skipIfNotDataVar will skip a test if a variable doesn't have certain value.

skipIfNotInDataVar will skip a test if a value is not in a certain variable.

(From OE-Core rev: a81045f4e2b740173237f5ae4e80e2bc0b287faa)

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:20 +00:00
Mariano Lopez c35b42cdbb oeqa/runtime/utils/targetbuildproject.py: Don't use more than 80 characters per line
(From OE-Core rev: 95a55e0736fc59ecdcb88d43f08b447ffa5a43ed)

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:20 +00:00
Mariano Lopez 5f57fd0b08 oeqa/runtime/files: Move runtime files from old directory
As part of the refactor we require to move the files used
in runtime testing to the new directory. This also adds
the path to the runtime test context.

[YOCTO #10234]

(From OE-Core rev: f80c21b46f69c42ff0853bf8abd01cf0c082c346)

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:20 +00:00
Mariano Lopez bfe20fd23c oeqa/core/decorator/data.py: Add skipIfNotFeature decorator
This adds a new decorator to check if image under tests has
certain DISTRO_FEATURE or IMAGE_FEATURE.

[YOCTO #10234]

(From OE-Core rev: 8740803d0696a0e97b72210a56f4fbd3135826ed)

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:20 +00:00
Mariano Lopez 9ee0816ca9 oeqa/runtime: Add OEHasPackage decorator
This new decorator will be used to skip the test
if the image under test doesn't have the required
packages installed.

[YOCTO #10234]

(From OE-Core rev: 021449938ff0b4d182d7f02930a80693f109c8ba)

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:20 +00:00
Mariano Lopez 4cd982566b oeqa/runtime: Add case, context and loader classes for runtime testing
This adds OERuntimeTestCase, OERuntimeTestContext, and OERuntimeTestLoader
to be used for runtime testing.

As expected there are some changes in runtime context:

- Adds the target to be used for runtime testing, the default
is a SSH connection to the device under test running a OE image.
- Runtime context requires image manifest because several
tests are skipped if a package is missing or installed.
- Several tests require the output of the ps command and it changes
its output and arguments if busybox o procps is installed, so the
case must use the correct ps command.

[YOCTO #10234]

(From OE-Core rev: f995f178de79d6d11422cd879d06371811f50651)

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:20 +00:00
Mariano Lopez 6ad52a82ea oeqa/core/target Add OESSHTarget to sent commands to targets using SSH
With this commit now it is possible to add targets with SSH for testing.
Most of it was imported for existing code, with improvements in log
handling.

[YOCTO #10234]

(From OE-Core rev: 3bc13548df4adb85f09467d200530a9c9f60da04)

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:20 +00:00
Aníbal Limón b61326efb1 oeqa/runtime: Move to runtime_cases
The new oeqa core framework will modify the structure of the runtime
folder the new runtime folder will have python code inside to support
runtime test cases.

(From OE-Core rev: 637b712096e9d230e15b1a432a561e4118db34c8)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:19 +00:00
Aníbal Limón ba1aec3407 oeqa: Fix files handling on runtime tests.
Common files was move to oeqa/files from oeqa/runtime/files
because the same files are used across Runtime,SDK,eSDK tests.

(From OE-Core rev: f099302efe8f222c3e4ae3604429f5ede4fd8c67)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:19 +00:00
Aníbal Limón e5f05409d0 oeqa/runtime: Fix TargetBuildProject instances
TargetBuildProject was refactored to avoid bitbake dependency so
the instance don't allow to pass data store anymore.

classes/testimage: Export proxies before run tests

The TargetBuildProject based tests download archives from network.

(From OE-Core rev: e275f29de500a338a02402ecc570405309963b35)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:19 +00:00
Aníbal Limón 260741847a oeqa/sdkext/cases: Migrate test case to new OEQA framework
Summary,

- Changes base case class to OESDKExtTest.
- Changes decorator classes to new ones.
- Chnages variable names sdktestdir -> sdk_dir.
- Added missing license to MIT.

(From OE-Core rev: 49568055df0a64e4228f27130b13ccafbba2a460)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:19 +00:00
Aníbal Limón 03d175f1fa classes/testsdk: Migrate to use the new OESDKExtTestContext
(From OE-Core rev: b254822dad850ce74563c83b7a9e31463501baa7)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:19 +00:00
Aníbal Limón 14eee4fdf8 oeqa/sdkext: Adds case and context modules.
The extensible sdk context and case modules extends the sdk ones,
this means that the tests from sdk are run also the sdkext tests.

Enables support in context for use oe-test esdk command for run
the test suites, the same options of sdk are required for run esdk tests.

Removes old related to case and context inside oetest.py.

[YOCTO #10599]

(From OE-Core rev: 1f0bb99249744b87dd39227a4cf37f2341f5499c)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:19 +00:00
Aníbal Limón 55f05fab2b oeqa/sdkext: Move test cases inside cases directory
For match with the new structure of the OEQA framework.

In the new framework Test component base directory in this case
sdk module will contain case and context implementations.

[YOCTO #10599]

(From OE-Core rev: bdb92fa4d9bd2e4a0a14e3adc62a6b9e9bf639d3)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:19 +00:00
Aníbal Limón 3fac2417dd classes/testsdk: Remove the need of TEST_LOG_DIR variable
The TEST_LOG_DIR was used for store sdk_target_log this log
contains the output of the run of build commands now that information
could be found also on log.do_testsdk under WORKDIR.

The log will continue to store into SDK_DIR instead of TEST_LOG_DIR.

(From OE-Core rev: 1c9ba4b698bab916d42b58255692a7bf3d773bbc)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:19 +00:00
Aníbal Limón c9fe59d7c5 oeqa/sdk/cases: Migrate tests to the new OEQA framework
Summary of the changes:

- Remove auto extend_path using pkgutil at __init__, is not needed.
- Change base class to OESDKTestCase.
- Add td_vars attr to set dependencies of certain variables in test
data.
- Change skips from module level to class level because Test context
  (tc)
now isn't at module level.
- Variable names changes to be consistent (i.e. sdktestdir ->
  sdk_dir).

[YOCTO #10599]

- Don't use bb.utils functions use instead remove_safe and shutil
  for copy files.
- SDKBuildProject pass test data variables instead of call getVar
  inside.

[YOCTO #10231]

(From OE-Core rev: 91cd1ed19a3f34c29cd77eb136036975fe465444)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:19 +00:00
Aníbal Limón 51be188063 oeqa/utils: {Target,SDK,}BuildProject remove dependency of bb
Don't use bitbake references inside utils modules, in order todo
that changes getVar calls for arguments in the __init__ method like
dl_dir for all the classes and testlogdir, builddatetime in
SDKBUildProject.

Also don't export proxies inside _download_archive method, a good
practice is to setup the proxies at init of the process instead of
do it in this helper module.

[YOCTO #10231]
[YOCTO #10599]

(From OE-Core rev: 581c34d1efe9839f50ef322761269b4e4d8a56a6)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:19 +00:00
Aníbal Limón 72e9ae377d oeqa/utils: Move targetbuild to buildproject module
The new buildproject module will contain only BuildProject class
a helper class for build source code.

The remaining classes TargetBuildProject and SDKBuildProject was
move to runtime and sdk respectively.

[YOCTO #10599]

(From OE-Core rev: 525fd2a5cda00890e921b63f7f608a10bc024d73)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:19 +00:00
Aníbal Limón 92c57a5db7 classes/testsdk: Migrates testsdk.bbclass to use new OESDKTestContext
The functionality provided is the same with imporvements on code
reuse and better interfaces.

(From OE-Core rev: 7a1ae3149965b162fb2c71fc7067e07a7a189249)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:19 +00:00
Aníbal Limón 8a37763ae9 oeqa/sdk: Add case and context modules for the SDK component
Adds case and context modules for SDK based on oetest.py old code.

Enables SDK Test component usage with oe-test, the SDK Test component
adds command line options for specify sdk installed dir, sdk environment
and target/hosts maniftest.

[YOCTO #10599]

(From OE-Core rev: 19e875dd81c42841666e6db5f6b665b4e1cddfe6)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:19 +00:00
Aníbal Limón 9a23e0f703 oeqa/{runtime,sdk}/files: Move testsdkmakefile from runtime to sdk module
It doesn't make sense to have files related to sdk module into runtime
module.

[YOCTO #10599]

(From OE-Core rev: 9a3be58b17afbe4ef00030b0e6ad8b20b03adc49)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:19 +00:00
Aníbal Limón 2726c26efe oeqa/sdk: Move test cases inside cases directory
For match with the new structure of the OEQA framework.

In the new framework Test component base directory in this case
sdk module will contain case and context implementations.

[YOCTO #10599]

(From OE-Core rev: 57af8ee4021c302bd351adf03e6d85274ad7efd5)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:19 +00:00
Aníbal Limón 8d3640b90d oeqa: Move common files to oeqa/files instead of runtime only
Those files are used by runtime and sdk test cases, so move to
base directory of oeqa module.

[YOCTO #10599]

(From OE-Core rev: ec73e8a3d3149f3866b7bfc06f169c6e05e2d338)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:19 +00:00
Mariano Lopez bbb7366db3 oeqa/utils/__init__.py: Adds compatibility with bitbake logger
The bitbake logger changes the way debug is logged and adds
different levels within debug, this is passed as argument
to the function and breaks compatibility with vanilla loggers.

This implements a way to handle this adding a new function for
debug, that will dispatch the correct logging method signature.

Also overrides info method to use logging.INFO + 1 in order to
see plain data.

Also this commit fix the issue of not showing the test summary
and results when running from bitbake.

[YOCTO #10686]

(From OE-Core rev: 619c9ab308fbef9e3563dc661e432603e764b562)

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:19 +00:00
Aníbal Limón ad2168365f classes/populate_sdk_base: Add write_sdk_test_data to postprocess
This function will generates testdata.json per SDK type.

[YOCTO #10231]

(From OE-Core rev: bff1b66c6b88fd2d99d14cecba27ee2f7462711f)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:19 +00:00
Aníbal Limón 60e5310f56 classes/rootfs-postcommands: Add write_image_test_data
This function will generates testdata.json by image type.

[YOCTO #10231]

(From OE-Core rev: 4c0061422df472395ca0caa76ef92adb860f1167)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:19 +00:00
Aníbal Limón 4054b25d5e oe/data: Add export2json function
The export2json function export the variables contained in
the data store to JSON format, the main usage for now will be
to provide test data to QA framework.

(From OE-Core rev: 57c7bf68ed66a56601e1431bb2db750c5742b5ce)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:18 +00:00
Aníbal Limón 388503c032 oeqa/core: Add README
The README has an introduction and explains how to run the test suite
and creates a new Test component.

(From OE-Core rev: 9d474172c47695be1a61538f5b87ca8d9db25fa7)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:18 +00:00
Aníbal Limón 9a5f285fe3 oeqa/core/cases: Add example test cases
Serves as an first input of how to the OEQA framework works.

(From OE-Core rev: 115f80adf1b230c5d0392e7833e9aeb274642bcb)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:18 +00:00
Aníbal Limón 94cb20f20d oeqa/core/context: Add support of OETestContextExecutor
The OETestContextExecutor class supports to use oe-test for run core
test component also is a base class for the other test components
(runtime, sdk, selftest).

Te principal functionality is to support cmdline parsing and execution
of OETestContext, the test components could extend the common options
to provide specific ones. The common options between test components
are test data file, output log and test cases path's to scan.

Also it initializes the logger to be passed to the whole OEQA framework.

[YOCTO #10230]

(From OE-Core rev: 039deafa5f2c8fab31b8373b39f8bc219377b893)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:18 +00:00
Mariano Lopez 7bf63b28f1 oeqa/core: Add tests for the OEQA framework
This test suite covers the current functionality for the OEQA
framework.

For run certain test suite,

$ cd meta/lib/oeqa/core/tests
$ ./test_data.py

(From OE-Core rev: 7d7d0dc3736fc12ae7848de2785f0066e6470cd1)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:18 +00:00
Aníbal Limón 4da4091cee oeqa/core/decorator: Add support for OETestDataDepends and skipIfDataVar
The OETestDataDepends decorator skips a test case if a variable
isn't into test data (d).

The skipIfDataVar decorator skips a test case if a variable
has certain value.

(From OE-Core rev: 7dc519d20e835ee7693c31903e164c4bc0e5e598)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:18 +00:00
Mariano Lopez b685a7c1a8 oeqa/core/decorator: Add support for OETimeout decorator
The OETimeout provides support for specify certain timeout
in seconds for a test case, if the timeout is reach the SIGALRM
is sent and an exception is raised to notify the timeout.

[YOCTO #10235]

(From OE-Core rev: 1bf66a370361912e9950d7ff45e382c93622a169)

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:18 +00:00
Mariano Lopez b8cebdb96c oeqa/core/decorator: Add support for OETestID and OETestTag
These two decorators stores certain TAG or ID for the test case
also provides support for filtering in loading step.

[YOCTO #10236]

(From OE-Core rev: 047af4ce864bbf98e2617b348ae9ccb77ac52871)

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:18 +00:00
Aníbal Limón 95a2ec6aab oeqa/core/decorator: Add support for OETestDepends
The OETestDepends decorator could be used over test cases to
define some dependency between them.

At loading time sorting the tests to grauntee that a test case
executes before also raise an exception if found a circular
dependency between test cases.

At before test case run reviews if the dependency if meet, in the
case of don't it skips the test case run.

(From OE-Core rev: 2385bd3c8a7c012fd1cad5465ec7d34675552c75)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:18 +00:00
Aníbal Limón 13c8c08b95 oeqa/core: Add loader, context and decorator modules
loader: Implements OETestLoader handling OETestDecorator
and filtering support when load tests. The OETestLoader is
responsible to set custom methods, attrs of the OEQA
frameowork.

[YOCTO #10231]
[YOCTO #10317]
[YOCTO #10353]

decorator: Add base class OETestDecorator to provide a common
way to define decorators to be used over OETestCase's, every
decorator has a method to be called when loading tests and
before test execution starts. Special decorators could be
implemented for filter tests on loading phase.

context: Provides HIGH level API for loadTests and runTests
of certain test component (i.e. runtime, sdk, selftest).

[YOCTO #10230]

(From OE-Core rev: 275ef03b77ef5f23b75cb01c55206d1ab0261342)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:18 +00:00
Mariano Lopez abb55ab304 oeqa/core: Add utils module for OEQA framework
misc: Functions for transform object to other types.
path: Functions for path handling.
test: Functions for operations related to test cases and suites.

[YOCTO #10232]

(From OE-Core rev: 102d04ccca3ca89d41b76a8c44e0ca0f436b7004)

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:18 +00:00
Aníbal Limón 08714d3b7e oeqa/core: Add base OEQA framework
case: Defines OETestCase base class that provides custom
    methods/attrs defined by the framework.
    Every OETestCase instance contains a reference to the test
    data (d), the test context (tc) and the logger.
    Also implements _oe{SetUp,TearDown}Class for make special
    handling of OEQA decorators and validations.

runner: Defines OETestRunner/OETestResult with support for RAW
    and XML result logs.

exception: Custom exceptions related to the OEQA framework based
    on class OEQAException.

[YOCTO #10230]
[YOCTO #10233]

(From OE-Core rev: c466086ccc4d4bb02d578a821cfb945945bfd529)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:18 +00:00
Ed Bartosh 253b8d7d58 selftest: fixed 3 wic test cases
Fixed test_systemd_bootdisk, test_wic_image_type and test_qemu
test cases by building core-image-minimal with correct configuration.

(From OE-Core rev: 897fe85d34302953c98d07ade4fa2dd749ae2d22)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:18 +00:00
Ed Bartosh 78d4d09cf2 selftest: wic: don't set WKS_FILE
Setting WKS_FILE variable should be done only when
wic image is expected to be built by bitbake.
If it's set for all images it breaks image building in
some cases.

(From OE-Core rev: 46b84310f7df157c2ef290a60f5c2136d4206f09)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:18 +00:00
Ed Bartosh 657f1e44b1 wic: fixed test_iso_image test case
Fixed isoimage-isohybrid plulgin and correspondent wic tet case:
- used wic-tools target when getting varlue of STAGING_LIBDIR variable
- ensured that image is built with efi and hddimg enabled

(From OE-Core rev: 5878484da64c38c7fde45bb06d76e22e608eb022)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:18 +00:00
Ed Bartosh dc4a612e60 image.bbclass: put .env files to ${STAGING_DIR}/imgdata/
As STAGING_DIR_TARGET started to point to a recipe specific
sysroot wic is not able to add .env files when .wks file refers
to multiple rootfs recipes.

Used STAGING_DIR instead of STAGING_DIR_TARGET to make the
directory with .env files the same for all recipes.

(From OE-Core rev: 3797cfd7473d3f9b7c0d999dcf9cd9608c8c7c6c)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:17 +00:00
Ed Bartosh d781747102 image_types: add RECIPE_SYSROOT_NATIVE to WICVARS
Added RECIPE_SYSROOT_NATIVE to the WICVARS for wic
to be able to access it when run from bitbake.

(From OE-Core rev: 3443ff47374c7e20ea54e838609b991f3f72810e)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:17 +00:00
Ed Bartosh 168f62e427 wic: fix getting path of native sysroot
wic used STAGING_DIR_NATIVE variable as a path to native sysroot.
This doesn't work with recipe specific sysroots as STAGING_DIR_NATIVE
points to the native sysroot of the current recipe.

Used RECIPE_SYSROOT_NATIVE variable of wic-tools recipe
to fix the issue.

(From OE-Core rev: de9d7d14cd03e4dfc5812890a53c79b706b56537)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:17 +00:00
Ed Bartosh a79b32c75a selftest: build wic-tools in the Wic.setUp
Built wic-tools recipe instead of set of tools recipes
to ensure that all tools are available from one recipe sysroot.

(From OE-Core rev: 52ce14d5ea667ffd319fdb3e147b6eb29505cf8e)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:17 +00:00
Ed Bartosh 06a4500004 image_types.bbclass: build wic-tools
Added dependency do_image_wic -> wic-tools:do_build to ensure
that all required tools are ready to use by wic.

(From OE-Core rev: 9f547605d2bec282c5679fb35cd5b28a37c5a0d5)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:17 +00:00
Ed Bartosh c13943dbf9 wic: add wic-tools recipe
This meta recipe is for building tools used by wic.
It allows wic to find tools in recipe specific sysroot as
all tools will be present in wic-tools sysroot.

NOTE: task do_build_sysroot is created to ensure that
sysroot is re-populated when package is built. Otherwise it will
be taken from sstate and sysroot will not be populated.

Generated wic-tools.env file for wic to be able to get values of
wic-tools variables when wic run from bitbake.

Also add dependency to grub-efi

Without grub-efi test_iso_image test case fails with this error:

AssertionError: Command 'wic create mkhybridiso --image-name
core-image-minimal' returned non-zero exit status 1:
Error: Please build grub-efi first

Fixed by adding dependency wic-tools -> grub-efi.

[RP: Added syslinux exclusion for non-IA arches]
(From OE-Core rev: 71066ce21514725428860ca926cc29161f710af6)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:17 +00:00
Richard Purdie 8ba68cc1f7 bitbake.conf: Exclude extend_recipe_sysroot function from sstate checksums
The extend_recipe_sysroot itself is excluded from the task hashes. This is
because it only ever acts upon the contents of the task dependencies and hence
those checksums accurately relfect what its doing. It does mean sysroots don't
repopulate if this function changes but there are other easy ways to achieve
that if needed.

(From OE-Core rev: cec305150801d43d58e3758e020e714d2e90e10b)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:17 +00:00
Richard Purdie 209a21ed46 selftest/devtool: Update to account for recipe specific sysroot
There is no common sysroot any more so add the libusb dependency using DEPENDS
and check for the output in the sysroot output directory so the tests
work with recipe specific sysroots.

(From OE-Core rev: ff30b833a423d300ec2b81bf80ef6733a6d8039b)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:17 +00:00
Richard Purdie 9107d6ca14 Switch to Recipe Specific Sysroots
This patch is comparatively large and invasive. It does only do one thing, switching the
system to build using recipe specific sysroots and where changes could be isolated from it,
that has been done.

With the current single sysroot approach, its possible for software to find things which
aren't in their dependencies. This leads to a determinism problem and is a growing issue in
several of the market segments where OE makes sense. The way to solve this problem for OE is
to have seperate sysroots for each recipe and these will only contain the dependencies for
that recipe.

Its worth noting that this is not task specific sysroots and that OE's dependencies do vary
enormously by task. This did result in some implementation challenges. There is nothing stopping
the implementation of task specific sysroots at some later point based on this work but
that as deemed a bridge too far right now.

Implementation details:

* Rather than installing the sysroot artefacts into a combined sysroots, they are now placed in
  TMPDIR/sysroot-components/PACKAGE_ARCH/PN.

* WORKDIR/recipe-sysroot and WORKDIR/recipe-sysroot-native are built by hardlinking in files
  from the sysroot-component trees. These new directories are known as RECIPE_SYSROOT and
  RECIPE_SYSROOT_NATIVE.

* This construction is primarily done by a new do_prepare_recipe_sysroot task which runs
  before do_configure and consists of a call to the extend_recipe_sysroot function.

* Other tasks need things in the sysroot before/after this, e.g. do_patch needs quilt-native
  and do_package_write_deb needs dpkg-native. The code therefore inspects the dependencies
  for each task and adds extend_recipe_sysroot as a prefunc if it has populate_sysroot
  dependencies.

* We have to do a search/replace 'fixme' operation on the files installed into the sysroot to
  change hardcoded paths into the correct ones. We create a fixmepath file in the component
  directory which lists the files which need this operation.

* Some files have "postinstall" commands which need to run against them, e.g. gdk-pixbuf each
  time a new loader is added. These are handled by adding files in bindir with the name
  prefixed by "postinst-" and are run in each sysroot as its created if they're present.
  This did mean most sstate postinstalls have to be rewritten but there shouldn't be many of them.

* Since a recipe can have multiple tasks and these tasks can run against each other at the same
  time we have to have a lock when we perform write operations against the sysroot. We also have
  to maintain manifests of what we install against a task checksum of the dependency. If the
  checksum changes, we remove its files and then add the new ones.

* The autotools logic for filtering the view of m4 files is no longer needed (and was the model
  for the way extend_recipe_sysroot works).

* For autotools, we used to build a combined m4 macros directory which had both the native and
  target m4 files. We can no longer do this so we use the target sysroot as the default and add
  the native sysroot as an extra backup include path. If we don't do this, we'd have to build
  target pkg-config before we could built anything using pkg-config for example (ditto gettext).
  Such dependencies would be painful so we haven't required that.

* PKDDATA_DIR was moved out the sysroot and works as before using sstate to build a hybrid copy
  for each machine. The paths therefore changed, the behaviour did not.

* The ccache class had to be reworked to function with rss.

* The TCBOOTSTRAP sysroot for compiler bootstrap is no longer needed but the -initial data
  does have to be filtered out from the main recipe sysroots. Putting "-initial" in a normal
  recipe name therefore remains a bad idea.

* The logic in insane needed tweaks to deal with the new path layout, as did the debug source
  file extraction code in package.bbclass.

* The logic in sstate.bbclass had to be rewritten since it previously only performed search and
  replace on extracted sstate and we now need this to happen even if the compiled path was
  "correct". This in theory could cause a mild performance issue but since the sysroot data
  was the main data that needed this and we'd have to do it there regardless with rss, I've opted
  just to change the way the class for everything. The built output used to build the sstate output
  is now retained and installed rather than deleted.

* The search and replace logic used in sstate objects also seemed weak/incorrect and didn't hold
  up against testing. This has been rewritten too. There are some assumptions made about paths, we
  save the 'proper' search and replace operations to fixmepath.cmd but then ignore this. What is
  here works but is a little hardcoded and an area for future improvement.

* In order to work with eSDK we need a way to build something that looks like the old style sysroot.
  "bitbake build-sysroots" will construct such a sysroot based on everything in the components
  directory that matches the current MACHINE. It will allow transition of external tools and can
  built target or native variants or both. It also supports a clean task. I'd suggest not relying on
  this for anything other than transitional purposes though. To see XXX in that sysroot, you'd have
  to have built that in a previous bitbake invocation.

* pseudo is run out of its components directory. This is fine as its statically linked.

* The hacks for wayland to see allarch dependencies in the multilib case are no longer needed
  and can be dropped.

* wic needed more extensive changes to work with rss and the fixes are in a separate commit series

* Various oe-selftest tweaks were needed since tests did assume the location to binaries and the
  combined sysroot in several cases.

* Most missing dependencies this work found have been sent out as separate patches as they were found
  but a few tweaks are still included here.

* A late addition is that extend_recipe_sysroot became multilib aware and able to populate multilib
  sysroots. I had hoped not to have to add that complexity but the meta-environment recipe forced my
  hand. That implementation can probably be neater but this is on the list of things to cleanup later
  at this point.

In summary, the impact people will likely see after this change:

* Recipes may fail with missing dependencies, particularly native tools like gettext-native,
  glib-2.0-native and libxml2.0-native. Some hosts have these installed and will mask these errors

* Any recipe/class using SSTATEPOSTINSTFUNCS will need that code rewriting into a postinst

* There was a separate patch series dealing with roots postinst native dependency issues. Any postinst
  which expects native tools at rootfs time will need to mark that dependency with PACKAGE_WRITE_DEPS.

There could well be other issues. This has been tested repeatedly against our autobuilders and oe-selftest
and issues found have been fixed. We believe at least OE-Core is in good shape but that doesn't mean
we've found all the issues.

Also, the logging is a bit chatty at the moment. It does help if something goes wrong and goes to the
task logfiles, not the console so I've intentionally left this like that for now. We can turn it down
easily enough in due course.

(From OE-Core rev: 809746f56df4b91af014bf6a3f28997d6698ac78)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:17 +00:00
Richard Purdie 0ccdfb116e package_rpm: Clean up pointless exception handling
The exception handling in this function seemed mildly crazy. Python will
given perfectly good or in several cases better information if we let its
standard traceback/exception handling happen. Remove the pointless code.

(From OE-Core rev: 5ecdab6c2589a83bbbc522074052ff4438782102)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-22 09:05:39 +00:00
Richard Purdie 2628a65ffe package_ipk: Clean up pointless exception handling
The exception handling in this function seemed mildly crazy. Python will
given perfectly good or in several cases better information if we let its
standard traceback/exception handling happen. Remove the pointless code.

(From OE-Core rev: 61390438aec4a1f9beb4d332821cc6cda82e0379)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-22 09:05:39 +00:00
Richard Purdie 596c9eff21 package_ipk: Improve failure debug output
Currently if the dpkg-deb command fails you see an error message like this:

ERROR: nss-3.27.1-r0 do_package_write_ipk: opkg-build execution failed
ERROR: nss-3.27.1-r0 do_package_write_ipk: Function failed: do_package_ipk

which is pretty much useless. If we use subprocess.check_output, we see a
traceback and then:

Exception: subprocess.CalledProcessError: Command '<cmd>' returned non-zero exit status 1

Subprocess output:
<output>

which is much easier to debug from.

(From OE-Core rev: 64c8366a805e9cf0168ea2331c50c8d6a70c6dc4)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-22 09:05:39 +00:00
Richard Purdie fdb52ade90 package_deb: Clean up pointless exception handling
The exception handling in this function seemed mildly crazy. Python will
given perfectly good or in several cases better information if we let its
standard traceback/exception handling happen. Remove the pointless code
along with the duplicated key checking which was broken in the inner loop
by usage of the wrong variable.

(From OE-Core rev: f755b07b528e828618141eda402399d791efba4a)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-22 09:05:39 +00:00
Richard Purdie 53a3c58774 package_deb: Improve failure debug output
Currently if the dpkg-deb command fails you see an error message like this:

ERROR: nss-3.27.1-r0 do_package_write_deb: dpkg-deb execution failed
ERROR: nss-3.27.1-r0 do_package_write_deb: Function failed: do_package_deb

which is pretty much useless. If we use subprocess.check_output, we see a
traceback and then:

Exception: subprocess.CalledProcessError: Command '<cmd>' returned non-zero exit status 1

Subprocess output:
<output>

which is much easier to debug from.

(From OE-Core rev: 18160442869f56ee71538bc2dc60d7cb6c08c8a2)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-22 09:05:39 +00:00
Richard Purdie d6b3f722c7 populate_sdk_ext: Add wic-tools to BB_SETSCENE_ENFORCE_WHITELIST
wic-tools has tasks which would always rerun and not come from sstate
to ensure we have a correctly populated sysroot. This is low overhead
and can be ignored from an eSDK perspective.

(From OE-Core rev: b631fe91b3939b7981dbf62cb2fb70f7baebe403)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-22 09:05:39 +00:00
Richard Purdie 60d8ca3e96 Revert "populate_sdk_ext: whitelist do_package tasks"
Since Paul reverted the sstate.bbclass change which was checking the sstate
mirror test results, this change should also not be needed anymore.

This reverts commit e30f5002c4.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-22 09:05:39 +00:00
Jussi Kukkonen 917c8a88e2 epiphany: Fix dependencies for recipe specific sysroot
gettext and glib-2.0 tools are required during build.

(From OE-Core rev: 082db0d21e4b628b6063b1ec713a8f15fe2caa4e)

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-22 09:05:39 +00:00
Richard Purdie b523b2cc80 meta-environment: Ensure all multilib dependencies are accounted for
Currently the recipe depends on the mulitlib libcs all being built
but the dependencies don't account for this. Fix the DEPENDS so
that the requires pieces are all built first rather than relying on
luck.

(From OE-Core rev: ef16a14725fe9bc44bff41e4632721ca611b1728)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-22 09:05:39 +00:00
Richard Purdie a49ee524a9 utils: Factor out common multilib datastore creation function
This code is already used in two places and we need it in others so
turn it into its own function.

(From OE-Core rev: 2a57e1334ff261a7ab45084be0f217e2acfe99af)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-22 09:05:39 +00:00