Tweaking the qemuarm -tiny configuration so it will boot to a
prompt. There are still some remaining issues (like hvc console
warnings), but this is much better than a silent boot, or boot
hang like we previously had.
(From OE-Core rev: 12a5d50e65cd3510ba790cd7867b5319ef5028f4)
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Integrating the following configuration change:
Author: Kevin Hao <kexin.hao@windriver.com>
Date: Wed Apr 3 19:30:58 2019 +0800
mips: Enable the poweroff driver for the qemumips/qemumips64
As Indicated by Richard Purdie, in order to shutdown the machine we have
to explicitly enable the PIIX4 poweroff driver for the
qemumips/qemumips64 after the kernel commit dd129c6374e9 ("MIPS: Malta:
Use PIIX4 poweroff driver to power down") is merged.
Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
(From OE-Core rev: a166e005eb02e2486d59404938ff639bb4860bdf)
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Integrating the follow config tweak:
cgl: audit: Remove CONFIG_AUDIT_WATCH and CONFIG_AUDIT_WATCH
In the following commits, these two options have been replaced by
CONFIG_AUDITSYSCALL which is in audit.cfg.
c8fc5d49c341 ("audit: remove WATCH and TREE config options")
cb74ed278f80 ("audit: always enable syscall auditing when supported and audit is enabled")
Signed-off-by: He Zhe <zhe.he@windriver.com>
(From OE-Core rev: 2fff1900a580d592acc22dd095b226b3830c36ff)
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
The following upstream commits have renamed INTEL_RDT to RESCTRL.
6fe07ce35e8a ("x86/resctrl: Rename the config option INTEL_RDT to RESCTRL")
e6d429313ea5 ("x86/resctrl: Avoid confusion over the new X86_RESCTRL config")
(From OE-Core rev: 7c33bfc37b154efce28c359f527ad32063479122)
Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
The 5.0 release of preempt-rt is available, so we import the
patches to the standard/preempt-rt/* branches.
(From OE-Core rev: 3af366d0f14d3d0a4cfbd9600f753f5ad2752551)
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Integrating the korg -stable releases that comprise the following
commits:
449959917f0c Linux 5.0.3
847c02bcb48a drm: Block fb changes for async plane updates
a51603120204 It's wrong to add len to sector_nr in raid10 reshape twice
0912fa3dfcea perf/x86/intel: Make dev_attr_allow_tsx_force_abort static
c075798c05d9 perf/x86/intel: Fix memory corruption
291ad91aad03 ALSA: hda/realtek: Enable headset MIC of Acer TravelMate X514-51T with ALC255
843a9a5b5675 ALSA: hda/realtek - Reduce click noise on Dell Precision 5820 headphone
6f63adaf8881 ALSA: hda/realtek: Enable audio jacks of ASUS UX362FA with ALC294
19fcfe5ad57c ALSA: hda - add more quirks for HP Z2 G4 and HP Z240
f36b6691acdd ALSA: hda: Extend i915 component bind timeout
69bf155eec9e ALSA: firewire-motu: fix construction of PCM frame for capture direction
b072cb42f01e ALSA: bebob: use more identical mod_alias for Saffire Pro 10 I/O against Liquid Saffire 56
9826a60a2aca perf/x86: Fixup typo in stub functions
94f93c5900e3 f2fs: wait on atomic writes to count F2FS_CP_WB_DATA
15c5945f83c1 net: sched: flower: insert new filter to idr after setting its mask
882e7866ad28 vsock/virtio: fix kernel panic from virtio_transport_reset_no_sock
c7bc9d62033a net: hns3: fix to stop multiple HNS reset due to the AER changes
b31539bd3595 net: dsa: mv88e6xxx: Set correct interface mode for CPU/DSA ports
7e30fd0627db net/mlx4_core: Fix qp mtt size calculation
979785bea346 net/mlx4_core: Fix locking in SRIOV mode when switching between events and polling
f1ac81bb23a4 net/mlx4_core: Fix reset flow when in command polling mode
11e457c165d0 vxlan: test dev->flags & IFF_UP before calling gro_cells_receive()
854b83c7493c vxlan: Fix GRO cells race condition between receive and link delete
3460bb198560 tcp: handle inet_csk_reqsk_queue_add() failures
dfcf44d29a7f tcp: Don't access TCP_SKB_CB before initializing it
75c9b039f9bd tcp: do not report TCP_CM_INQ of 0 for closed connections
05ad31a85e96 sctp: remove sched init from sctp_stream_init
3aca89318497 rxrpc: Fix client call queueing, waiting for channel
ed98b01c0523 route: set the deleted fnhe fnhe_daddr to 0 in ip_del_fnhe to fix a race
cfa5b557d9d0 ravb: Decrease TxFIFO depth of Q3 and Q2 to one
41b802e6f2a8 pptp: dst_release sk_dst_cache in pptp_sock_destruct
a6e37802e050 net/x25: reset state in x25_connect()
391c4c5228d8 net/x25: fix use-after-free in x25_device_event()
0f27e8de5678 net: sit: fix UBSAN Undefined behaviour in check_6rd
bfca8925f758 net/hsr: fix possible crash in add_timer()
251eb21781bf net: hsr: fix memory leak in hsr_dev_finalize()
4b7730375855 net: hns3: add dma_rmb() for rx description
93a96dc0a610 lan743x: Fix TX Stall Issue
8c223fee4ad4 lan743x: Fix RX Kernel Panic
a53dc7db54c7 l2tp: fix infoleak in l2tp_ip6_recvmsg()
b41988c24100 ipv4/route: fail early when inet dev is missing
ab62510ac2ea gro_cells: make sure device is up in gro_cells_receive()
a9b0ebbf75c3 fou, fou6: avoid uninit-value in gue_err() and gue6_err()
c4b5717a0168 connector: fix unsafe usage of ->real_parent
9e6fdea016e4 Linux 5.0.2
84ff8f265a91 perf/x86/intel: Implement support for TSX Force Abort
9870cd07a132 x86: Add TSX Force Abort CPUID/MSR
93c2f72c7933 perf/x86/intel: Generalize dynamic constraint creation
3ad8e57560d7 perf/x86/intel: Make cpuc allocations consistent
3dfe7538f80a ath9k: Avoid OF no-EEPROM quirks without qca,no-eeprom
72bc954e8a5f scripts/gdb: replace flags (MS_xyz -> SB_xyz)
e7b0b71c22e7 staging: erofs: compressed_pages should not be accessed again after freed
a56c9e263786 staging: erofs: keep corrupted fs from crashing kernel in erofs_namei()
66ad3d56ab62 gfs2: Fix missed wakeups in find_insert_glock
97e5d51f123a bpf: Stop the psock parser before canceling its work
5b31a61305cd Revert "PCI/PME: Implement runtime PM callbacks"
fd0b578b41c6 media: Revert "media: rc: some events are dropped by userspace"
e3f5c3cbe163 drm: disable uncached DMA optimization for ARM and arm64
b7ea06838d14 ARM: dts: exynos: Fix max voltage for buck8 regulator on Odroid XU3/XU4
cc637b0563f7 ARM: dts: exynos: Add minimal clkout parameters to Exynos3250 PMU
6eb775cb560d ARM: dts: exynos: Fix pinctrl definition for eMMC RTSN line on Odroid X2/U3
d2370201967a arm64: dts: hikey: Revert "Enable HS200 mode on eMMC"
34294e187622 arm64: dts: hikey: Give wifi some time after power-on
bab3cf9d1531 arm64: dts: zcu100-revC: Give wifi some time after power-on
39ab777e42ec x86/PCI: Fixup RTIT_BAR of Intel Denverton Trace Hub
1830d0d33dcd scsi: aacraid: Fix missing break in switch statement
d4f05a4aaf98 iscsi_ibft: Fix missing break in switch statement
61f7963e347d Input: elan_i2c - add id for touchpad found in Lenovo s21e-20
4a33538bd425 Input: wacom_serial4 - add support for Wacom ArtPad II tablet
e83b05c4c17e media: uvcvideo: Fix 'type' check leading to overflow
283506fcd65d Linux 5.0.1
a9bda122bd77 exec: Fix mem leak in kernel_read_file
bc60931448e7 Bluetooth: Fix locking in bt_accept_enqueue() for BH context
95b6840860ee Bluetooth: btrtl: Restore old logic to assume firmware is already loaded
302f4908d4f9 selftests: firmware: fix verify_reqs() return value
5e73c19ca66e Revert "selftests: firmware: remove use of non-standard diff -Z option"
66da661f94eb Revert "selftests: firmware: add CONFIG_FW_LOADER_USER_HELPER_FALLBACK to config"
44c81a482310 USB: serial: cp210x: fix GPIO in autosuspend
02c66213c80a gnss: sirf: fix premature wakeup interrupt enable
ff204bb4c71b xtensa: fix get_wchan
c9255e2479ef aio: Fix locking in aio_poll()
2ac0fa7f3373 MIPS: irq: Allocate accurate order pages for irq stack
a8cc62bd8806 alpha: wire up io_pgetevents system call
46ce9ec42b78 applicom: Fix potential Spectre v1 vulnerabilities
92424a683915 usb: xhci: Fix for Enabling USB ROLE SWITCH QUIRK on INTEL_SUNRISEPOINT_LP_XHCI
511ba5f2287c xhci: tegra: Prevent error pointer dereference
1eadda06dcda tracing: Fix event filters and triggers to handle negative numbers
ad0051c0d6da x86/boot/compressed/64: Do not read legacy ROM on EFI system
b8907034edaf x86/CPU/AMD: Set the CPB bit unconditionally on F17h
258c4bfcea44 tipc: fix RDM/DGRAM connect() regression
b0c649843a76 team: Free BPF filter when unregistering netdev
3445d44b8330 sky2: Disable MSI on Dell Inspiron 1545 and Gateway P-79
9dc9563fbb38 sctp: call iov_iter_revert() after sending ABORT
43610748b73d qmi_wwan: Add support for Quectel EG12/EM12
1ba288215704 net-sysfs: Fix mem leak in netdev_register_kobject
cd267ea6a70c net: sched: put back q.qlen into a single location
e1c9e3fe2d34 net: mscc: Enable all ports in QSGMII
050c7ff6f46c net: dsa: mv8e6xxx: fix number of internal PHYs for 88E6x90 family
c2e346e38c2a net: dsa: mv88e6xxx: handle unknown duplex modes gracefully in mv88e6xxx_port_set_duplex
9590cdffe8c4 net: dsa: mv88e6xxx: add call to mv88e6xxx_ports_cmode_init to probe for new DSA framework
9b3149338ace ip6mr: Do not call __IP6_INC_STATS() from preemptible context
b592247edd6b staging: android: ashmem: Avoid range_alloc() allocation with ashmem_mutex held.
6a6b0c1b4731 staging: android: ashmem: Don't call fallocate() with ashmem_mutex held.
6e2cda2e854b staging: android: ion: fix sys heap pool's gfp_flags
f14ab1e367d2 staging: wilc1000: fix to set correct value for 'vif_num'
e872d586158c staging: comedi: ni_660x: fix missing break in switch statement
116ad909da64 staging: erofs: fix illegal address access under memory pressure
fa42199d9dab staging: erofs: fix race of initializing xattrs of a inode at the same time
6df0b3ebdade staging: erofs: fix memleak of inode's shared xattr array
27f2f4877a00 staging: erofs: fix fast symlink w/o xattr when fs xattr is on
091520a14086 driver core: Postpone DMA tear-down until after devres release
0e14eb6e3f42 USB: serial: ftdi_sio: add ID for Hjelmslund Electronics USB485
eefd31d3c9af USB: serial: cp210x: add ID for Ingenico 3070
8510d6a23c3d USB: serial: option: add Telit ME910 ECM composition
ed1776bb5d0b binder: create node flag to request sender's security context
e93cd6500ff9 staging: erofs: fix mis-acted TAIL merging behavior
e36e066ffa78 cpufreq: Use struct kobj_attribute instead of struct global_attr
(From OE-Core rev: c7042659b192be96d42dbaef5c5b08d1d25cb88e)
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Integrating the following commit:
[
Author: Tom Rini <trini@konsulko.com>
Date: Tue Mar 12 11:40:33 2019 -0400
sound: Re-enable ENS1370 support
Both the qemux86 and qemux86-64 targets RRECOMMEND the ens1370 kernel
module and set QB_AUDIO_OPT to support that as one of the audio cards as
well.
Fixes: daadaf7fd7d5 ("yocto-kernel-cache: [PATCH] Update audio support v2")
Signed-off-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]
(From OE-Core rev: 26aa9ed853e6b4a7e36bc0a523e924c47e8c954a)
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Add new QEMU BSP for a Arm Cortex-A15 system and use this as qemuarm,
moving the old armv5te Versatile PB based machine to qemuarmv5.
The new machine uses the QEMU virt machine type, which should be
faster to emulate and updates the qemuarm support to a modern
architecture.
(From OE-Core rev: 6fc70eb4f3494bee2be10ee24fe3ea1c8b5ff988)
Signed-off-by: Jon Mason <jdmason@kudzu.us>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Integrating Richard Purdie's kernel patch to fix systemtap on arm:
[
arm/Makefile: Fix systemtap
Currently systemtap fails to operate correctly on armv7 systems such as beaglebone and
soon, qemuarm.
root@qemuarm:/usr/src/kernel# env -uARCH -uKBUILD_EXTMOD -uCROSS_COMPILE -uKBUILD_IMAGE -uKCONFIG_CONFIG -uINSTALL_PATH -uLD_LIBRARY_PATH PATH=/usr/bin:/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin make -C /lib/modules/4.19.19-yocto-standard/build M=/tmp/staptcNU6M modules CONFIG_DEBUG_INFO= CONFIG_STACK_VALIDATION= ARCH=arm stap_4321_src.i --no-print-directory -j2 V=1
test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \
echo >&2; \
echo >&2 " ERROR: Kernel configuration is invalid."; \
echo >&2 " include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo >&2 ; \
/bin/false)
mkdir -p /tmp/staptcNU6M/.tmp_versions ; rm -f /tmp/staptcNU6M/.tmp_versions/*
make -f ./scripts/Makefile.build obj=/tmp/staptcNU6M
(cat /dev/null; echo kernel//tmp/staptcNU6M/stap_4321.ko;) > /tmp/staptcNU6M/modules.order
gcc -Wp,-MD,/tmp/staptcNU6M/.stap_4321_src.o.d -nostdinc -isystem /usr/lib/gcc/arm-poky-linux-gnueabi/8.3.0/include -I./arch/arm/include -I./arch/arm/include/generated -I./include -I./arch/arm/include/uapi -I./arch/arm/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -mlittle-endian -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -DCC_HAVE_ASM_GOTO -fno-dwarf2-cfi-asm -fno-omit-frame-pointer -mapcs -mno-sched-prolog -fno-ipa-sra -mabi=aapcs-linux -mfpu=vfp -funwind-tables -marm -Wa,-mno-warn-deprecated -D__LINUX_ARM_ARCH__=7 -march=armv5t -Wa,-march=armv7-a -msoft-float -Uarm -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-int-in-bool-context -Os -Wno-maybe-uninitialized --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -Wdeclaration-after-statement -Wno-pointer-sign -Wno-stringop-truncation -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -Iinclude2/asm/mach-default -I/lib/modules/4.19.19-yocto-standard/build -include /tmp/staptcNU6M/stapconf_4321.h -D "STP_NO_VELREL_CHECK" -freorder-blocks -fasynchronous-unwind-tables -Wframe-larger-than=512 -fno-ipa-icf -Wno-unused -Wno-tautological-compare -Werror -I/usr/share/systemtap/runtime -DMODULE -DKBUILD_BASENAME='"stap_4321_src"' -DKBUILD_MODNAME='"stap_4321"' -c -o /tmp/staptcNU6M/stap_4321_src.o /tmp/staptcNU6M/stap_4321_src.c
/tmp/ccaE9CMG.s: Assembler messages:
/tmp/ccaE9CMG.s:49: Error: selected processor does not support `dmb ish' in ARM mode
/tmp/ccaE9CMG.s:52: Error: architectural extension `mp' is not allowed for the current b
(which was from running the stap command with -v -v -v -k and then being able to run the command individually)
Note that it says armv5t above.
That comes from the code this patch changes
root@qemuarm:/usr/src/kernel# gcc -march=armv7-a /tmp/staptcNU6M/stap_4321_aux_0.c
cc1: error: -mfloat-abi=hard: selected processor lacks an FPU
which makes me wonder if cc-option fails unless -mfpu-vfp is on the commandline too.
Since we have a gcc which accepts the armv7-a arch, just remove the cc-option
wrapper unconditionally here.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
]
(From OE-Core rev: 8c446ac6c1bba1502ac0a710a39b90c78fff41a3)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
We need to enable the arm unwinder for systemtap to work out of the
box:
root@qemuarm:~# stap --disable-cache -DSTP_NO_VERREL_CHECK ./hello.stp
[ 1600.955262] stap_2097: loading out-of-tree module taints kernel.
hello world
This option is useful for much more than systemtap, so it is a good
idea to have on in the base configs. It make the image slightly larger,
but has no performance impacts.
(From OE-Core rev: 8a3cc10c2deb933866e384b326d730d17a49a269)
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Integrating configuration changes from Kevin Hao for the reference
boards on the 5.0 kernel:
be627e4e386 beaglebone: Switch to the 8250 omap driver
957f6060c25 beaglebone: Update the audio options
ab5298a6983 mpc8315e-rdb: Enable the CONFIG_MTD_PHYSMAP
(From OE-Core rev: 6aec31d1ca35ab1aa1cfe8f10381ad7dfd49218e)
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Introducing the 5.0 linux-yocto reference kernel, which will become
the "latest" kernel as part of the spring yocto release.
qemu* has been built and sanity tested against this kernel, and it
is suitable to become the default build for the emulated references.
Some minor configuration cleanup was performed, but otherwise, things
are very similar to the 4.19 kernel config:
7fdb966db86 (HEAD -> yocto-5.0) aufs4: kbuild patch
c76b027a8b2 iosched: remove configs for removed legacy io schedules
5d1f8102244 netfilter: drop removed config options
8ff16f508f5 kernel-yocto: 5.0 kernel prep
Feature wise, this is a match for 4.19, with yaffs2 and aufs4 being
kept around for another release. Aufs is scheduled for removal in
the fall release.
(From OE-Core rev: c802c355f02e808b29d396fcc286da6f18ce6a78)
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>