Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update from linux #2

Merged
merged 100 commits into from
Jan 2, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
100 commits
Select commit Hold shift + click to select a range
542134c
HID: cp2112: Fix I2C_BLOCK_DATA transactions
eudean-arista Nov 21, 2017
56075f6
HID: holtekff: move MODULE_* parameters out of #ifdef block
daxtens Nov 26, 2017
7cb4774
HID: core: lower log level for unknown main item tags to warnings
jwrdegoede Dec 6, 2017
964728f
USB: chipidea: msm: fix ulpi-node lookup
jhovold Nov 13, 2017
0893309
USB: serial: option: add support for Telit ME910 PID 0x1101
dnlplm Dec 14, 2017
92a18a6
USB: serial: qcserial: add Sierra Wireless EM7565
Dec 14, 2017
0460467
phy: tegra: fix device-tree node lookups
jhovold Nov 15, 2017
e796cc6
phy: cpcap-usb: Fix platform_get_irq_byname's error checking.
ArvindYadavCs Nov 17, 2017
3cb0ab6
phy: rockchip-typec: add pm_runtime_disable in err case
zywang33 Sep 8, 2016
2b88212
phy: rcar-gen3-usb2: select USB_COMMON
arndb Nov 2, 2017
c739f93
x86/espfix/64: Fix espfix double-fault handling on 5-level systems
amluto Dec 12, 2017
f57ab9a
drivers: base: cacheinfo: fix cache type for non-architected system c…
sudeep-holla Nov 17, 2017
5f0e3fe
x86/build: Make isoimage work on Debian
Nov 14, 2017
cce1fea
thunderbolt: Make pathname to force_power shorter
andy-shev Dec 1, 2017
78dfa29
MAINTAINERS: Add thunderbolt.rst to the Thunderbolt driver entry
westeri Dec 1, 2017
7465718
thunderbolt: Mask ring interrupt properly when polling starts
westeri Dec 1, 2017
9d5f38b
x86/mm: Unbreak modules that use the DMA API
tlendacky Dec 15, 2017
bf29cb2
sched/isolation: Make CONFIG_NO_HZ_FULL select CONFIG_CPU_ISOLATION
paulmck Dec 14, 2017
2c43838
sched/isolation: Enable CONFIG_CPU_ISOLATION=y by default
Dec 14, 2017
d94d105
sched/isolation: Document boot parameters dependency on CONFIG_CPU_IS…
Dec 14, 2017
869b556
vmbus: unregister device_obj->channels_kset
dcui Nov 14, 2017
7f3dc00
binder: fix proc->files use-after-free
Nov 27, 2017
5cfee7a
perf tools: Use shell function for perl cflags retrieval
olsajiri Nov 8, 2017
61fb26a
perf tools: Fix up build in hardened environments
olsajiri Dec 4, 2017
ca58d7e
perf jvmti: Generate correct debug information for inlined code
bengaineyarm Nov 23, 2017
10b9baa
tools arch s390: Do not include header files from the kernel sources
acmel Nov 28, 2017
ca26cff
x86/asm: Allow again using asm.h when building for the 'bpf' clang ta…
acmel Dec 4, 2017
2e36463
Merge tag 'perf-urgent-for-mingo-4.15-20171218' of git://git.kernel.o…
Dec 18, 2017
81b6c99
scsi: core: check for device state in __scsi_remove_target()
hreinecke Dec 13, 2017
6454b3b
x86/stacktrace: Make zombie stack traces reliable
jpoimboe Dec 18, 2017
3920bb7
USB: serial: option: adding support for YUGA CLM920-NC5
Dec 19, 2017
6074bc0
Merge tag 'phy-for-4.15-rc_v2' of git://git.kernel.org/pub/scm/linux/…
gregkh Dec 19, 2017
07b9f12
USB: Fix off by one in type-specific length check of BOS SSP capability
matnyman Dec 19, 2017
8272d09
usbip: vhci: stop printing kernel pointer addresses in messages
Dec 19, 2017
248a220
usbip: stub: stop printing kernel pointer addresses in messages
Dec 19, 2017
90120d1
usbip: prevent leaking socket pointer address in messages
Dec 15, 2017
10c9012
usbip: stub_rx: fix static checker warning on unnecessary checks
Dec 15, 2017
544c460
usbip: fix usbip bind writing random string after command in match_busid
Dec 15, 2017
b9096d9
usb: add RESET_RESUME for ELSA MicroLink 56K
oneukum Dec 12, 2017
7f038d2
usb: Add device quirk for Logitech HD Pro Webcam C925e
dmitryfleytman Dec 19, 2017
a936390
staging: lustre: lnet: Fix recent breakage from list_for_each conversion
Dec 14, 2017
f292b9b
staging: ion: Fix ion_cma_heap allocations
johnstultz-work Dec 16, 2017
d6b246b
staging: android: ion: Fix dma direction for dma_sync_sg_for_cpu/device
Dec 15, 2017
76916b6
Merge tag 'usb-ci-v4.15-rc5' of git://git.kernel.org/pub/scm/linux/ke…
gregkh Dec 19, 2017
d1b8b23
scsi: storvsc: Fix scsi_cmd error assignments in storvsc_handle_error
caavery Dec 19, 2017
9b3fa47
kobject: fix suppressing modalias in uevents delivered over netlink
dtor Dec 13, 2017
966031f
n_tty: fix EXTPROC vs ICANON interaction with TIOCINQ (aka FIONREAD)
torvalds Dec 21, 2017
8a42d3f
nvmem: meson-mx-efuse: fix reading from an offset other than 0
xdarklight Dec 15, 2017
c6a36ad
USB: serial: ftdi_sio: add id for Airbus DS P8GR
Dec 20, 2017
66da168
Merge tag 'usb-serial-4.15-rc6' of https://git.kernel.org/pub/scm/lin…
gregkh Dec 27, 2017
052f71e
xhci: Fix xhci debugfs NULL pointer dereference in resume from hibernate
matnyman Dec 21, 2017
dde6340
xhci: Fix use-after-free in xhci debugfs
Dec 21, 2017
da99706
usb: xhci: Add XHCI_TRUST_TX_LENGTH for Renesas uPD720201
daniel-thompson Dec 21, 2017
76dc6c0
cpu/hotplug: Move inline keyword at the beginning of declaration
malaterre Dec 26, 2017
7ad1437
perf/x86/intel: Plug memory leak in intel_pmu_init()
KAGA-KOKO Dec 27, 2017
7ac139e
x86: Remove unused parameter of prepare_switch_to
rodrigosiqueira Dec 15, 2017
ac46112
x86-32: Fix kexec with stack canary (CONFIG_CC_STACKPROTECTOR)
torvalds Dec 27, 2017
59585b4
sparc64: repair calling incorrect hweight function from stubs
jengelh Dec 25, 2017
39c3fd5
kernel/irq: Extend lockdep class for request mutex
lunn Dec 2, 2017
11bca0a
genirq: Guard handle_bad_irq log messages
groeck Dec 2, 2017
4fcab66
x86/apic: Avoid wrong warning when parsing 'apic=' in X86-32 case
douliyang Dec 4, 2017
64e05d1
x86/apic: Update the 'apic=' description of setting APIC driver
douliyang Dec 4, 2017
e7e83dd
objtool: Fix Clang enum conversion warning
bulwahn Dec 26, 2017
a31e58e
x86/apic: Switch all APICs to Fixed delivery mode
KAGA-KOKO Dec 28, 2017
8880c13
gpio: brcmstb: Make really use of the new lockdep class
KAGA-KOKO Dec 29, 2017
da5dd9e
genirq/msi: Handle reactivation only on success
KAGA-KOKO Dec 29, 2017
69790ba
genirq: Introduce IRQD_CAN_RESERVE flag
KAGA-KOKO Dec 29, 2017
945f50a
x86/vector: Use IRQD_CAN_RESERVE flag
KAGA-KOKO Dec 29, 2017
702cb0a
genirq/irqdomain: Rename early argument of irq_domain_activate_irq()
KAGA-KOKO Dec 29, 2017
bc97623
genirq/msi, x86/vector: Prevent reservation mode for non maskable MSI
KAGA-KOKO Dec 29, 2017
ced6d5c
timers: Use deferrable base independent of base::nohz_active
anna-marialx Dec 22, 2017
26456f8
timers: Reinitialize per cpu bases on hotplug
KAGA-KOKO Dec 27, 2017
5d62c18
nohz: Prevent a timer interrupt storm in tick_nohz_stop_sched_tick()
KAGA-KOKO Dec 22, 2017
fd45bb7
timers: Invoke timer_start_debug() where it makes sense
KAGA-KOKO Dec 22, 2017
9f4533c
timerqueue: Document return values of timerqueue_add/del()
KAGA-KOKO Dec 22, 2017
3ce120b
kbuild: add '-fno-stack-check' to kernel build options
torvalds Dec 30, 2017
efdd17f
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…
torvalds Dec 30, 2017
d89e426
objtool: Fix seg fault caused by missing parameter
emersion Dec 30, 2017
ce90aaf
objtool: Fix seg fault with clang-compiled objects
emersion Dec 30, 2017
71ee203
Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/g…
torvalds Dec 30, 2017
322f8b8
x86/smpboot: Remove stale TLB flush invocations
KAGA-KOKO Dec 30, 2017
decab08
x86/mm: Remove preempt_disable/enable() from __native_flush_tlb()
KAGA-KOKO Dec 30, 2017
a62d698
x86/ldt: Plug memory leak in error path
KAGA-KOKO Dec 31, 2017
7f41419
x86/ldt: Make LDT pgtable free conditional
KAGA-KOKO Dec 31, 2017
6bba94d
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc
torvalds Dec 31, 2017
c0b2390
MAINTAINERS: mark arch/blackfin/ and its gubbins as orphaned
kilobyte Dec 25, 2017
a9746e4
Merge tag 'usb-4.15-rc6' of git://git.kernel.org/pub/scm/linux/kernel…
torvalds Dec 31, 2017
bc7236f
Merge tag 'tty-4.15-rc6' of git://git.kernel.org/pub/scm/linux/kernel…
torvalds Dec 31, 2017
29a9b00
Merge tag 'staging-4.15-rc6' of git://git.kernel.org/pub/scm/linux/ke…
torvalds Dec 31, 2017
4288e6b
Merge tag 'driver-core-4.15-rc6' of git://git.kernel.org/pub/scm/linu…
torvalds Dec 31, 2017
8371e5a
Merge tag 'char-misc-4.15-rc6' of git://git.kernel.org/pub/scm/linux/…
torvalds Dec 31, 2017
31336ed
Merge branch 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/…
torvalds Dec 31, 2017
88fa025
Merge branch 'irq-urgent-for-linus' of git://git.kernel.org/pub/scm/l…
torvalds Dec 31, 2017
e7c632f
Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/…
torvalds Dec 31, 2017
4c47031
Merge branch 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm…
torvalds Dec 31, 2017
8d517bd
Merge branch 'smp-urgent-for-linus' of git://git.kernel.org/pub/scm/l…
torvalds Dec 31, 2017
cea92e8
Merge branch 'timers-urgent-for-linus' of git://git.kernel.org/pub/sc…
torvalds Dec 31, 2017
52c90f2
Merge branch 'x86-pti-for-linus' of git://git.kernel.org/pub/scm/linu…
torvalds Dec 31, 2017
f39d7d7
Merge branch 'x86/urgent' of git://git.kernel.org/pub/scm/linux/kerne…
torvalds Dec 31, 2017
30a7acd
Linux 4.15-rc6
torvalds Dec 31, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Documentation/admin-guide/kernel-parameters.rst
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ parameter is applicable::
IPV6 IPv6 support is enabled.
ISAPNP ISA PnP code is enabled.
ISDN Appropriate ISDN support is enabled.
ISOL CPU Isolation is enabled.
JOY Appropriate joystick support is enabled.
KGDB Kernel debugger support is enabled.
KVM Kernel Virtual Machine support is enabled.
Expand Down
10 changes: 7 additions & 3 deletions Documentation/admin-guide/kernel-parameters.txt
Original file line number Diff line number Diff line change
Expand Up @@ -328,11 +328,15 @@
not play well with APC CPU idle - disable it if you have
APC and your system crashes randomly.

apic= [APIC,X86-32] Advanced Programmable Interrupt Controller
apic= [APIC,X86] Advanced Programmable Interrupt Controller
Change the output verbosity whilst booting
Format: { quiet (default) | verbose | debug }
Change the amount of debugging information output
when initialising the APIC and IO-APIC components.
For X86-32, this can also be used to specify an APIC
driver name.
Format: apic=driver_name
Examples: apic=bigsmp

apic_extnmi= [APIC,X86] External NMI delivery setting
Format: { bsp (default) | all | none }
Expand Down Expand Up @@ -1737,7 +1741,7 @@
isapnp= [ISAPNP]
Format: <RDP>,<reset>,<pci_scan>,<verbosity>

isolcpus= [KNL,SMP] Isolate a given set of CPUs from disturbance.
isolcpus= [KNL,SMP,ISOL] Isolate a given set of CPUs from disturbance.
[Deprecated - use cpusets instead]
Format: [flag-list,]<cpu-list>

Expand Down Expand Up @@ -2662,7 +2666,7 @@
Valid arguments: on, off
Default: on

nohz_full= [KNL,BOOT]
nohz_full= [KNL,BOOT,SMP,ISOL]
The argument is a cpu list, as described above.
In kernels built with CONFIG_NO_HZ_FULL=y, set
the specified list of CPUs whose tick will be stopped
Expand Down
2 changes: 1 addition & 1 deletion Documentation/admin-guide/thunderbolt.rst
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ If supported by your machine this will be exposed by the WMI bus with
a sysfs attribute called "force_power".

For example the intel-wmi-thunderbolt driver exposes this attribute in:
/sys/devices/platform/PNP0C14:00/wmi_bus/wmi_bus-PNP0C14:00/86CCFD48-205E-4A77-9C48-2021CBEDE341/force_power
/sys/bus/wmi/devices/86CCFD48-205E-4A77-9C48-2021CBEDE341/force_power

To force the power to on, write 1 to this attribute file.
To disable force power, write 0 to this attribute file.
Expand Down
17 changes: 8 additions & 9 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -2621,50 +2621,48 @@ F: fs/bfs/
F: include/uapi/linux/bfs_fs.h

BLACKFIN ARCHITECTURE
M: Steven Miao <realmz6@gmail.com>
L: adi-buildroot-devel@lists.sourceforge.net (moderated for non-subscribers)
T: git git://git.code.sf.net/p/adi-linux/code
W: http://blackfin.uclinux.org
S: Supported
S: Orphan
F: arch/blackfin/

BLACKFIN EMAC DRIVER
L: adi-buildroot-devel@lists.sourceforge.net (moderated for non-subscribers)
W: http://blackfin.uclinux.org
S: Supported
S: Orphan
F: drivers/net/ethernet/adi/

BLACKFIN MEDIA DRIVER
M: Scott Jiang <scott.jiang.linux@gmail.com>
L: adi-buildroot-devel@lists.sourceforge.net (moderated for non-subscribers)
W: http://blackfin.uclinux.org/
S: Supported
S: Orphan
F: drivers/media/platform/blackfin/
F: drivers/media/i2c/adv7183*
F: drivers/media/i2c/vs6624*

BLACKFIN RTC DRIVER
L: adi-buildroot-devel@lists.sourceforge.net (moderated for non-subscribers)
W: http://blackfin.uclinux.org
S: Supported
S: Orphan
F: drivers/rtc/rtc-bfin.c

BLACKFIN SDH DRIVER
L: adi-buildroot-devel@lists.sourceforge.net (moderated for non-subscribers)
W: http://blackfin.uclinux.org
S: Supported
S: Orphan
F: drivers/mmc/host/bfin_sdh.c

BLACKFIN SERIAL DRIVER
L: adi-buildroot-devel@lists.sourceforge.net (moderated for non-subscribers)
W: http://blackfin.uclinux.org
S: Supported
S: Orphan
F: drivers/tty/serial/bfin_uart.c

BLACKFIN WATCHDOG DRIVER
L: adi-buildroot-devel@lists.sourceforge.net (moderated for non-subscribers)
W: http://blackfin.uclinux.org
S: Supported
S: Orphan
F: drivers/watchdog/bfin_wdt.c

BLINKM RGB LED DRIVER
Expand Down Expand Up @@ -13493,6 +13491,7 @@ M: Mika Westerberg <mika.westerberg@linux.intel.com>
M: Yehezkel Bernat <yehezkel.bernat@intel.com>
T: git git://git.kernel.org/pub/scm/linux/kernel/git/westeri/thunderbolt.git
S: Maintained
F: Documentation/admin-guide/thunderbolt.rst
F: drivers/thunderbolt/
F: include/linux/thunderbolt.h

Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
VERSION = 4
PATCHLEVEL = 15
SUBLEVEL = 0
EXTRAVERSION = -rc5
EXTRAVERSION = -rc6
NAME = Fearless Coyote

# *DOCUMENTATION*
Expand Down Expand Up @@ -789,6 +789,9 @@ KBUILD_CFLAGS += $(call cc-disable-warning, pointer-sign)
# disable invalid "can't wrap" optimizations for signed / pointers
KBUILD_CFLAGS += $(call cc-option,-fno-strict-overflow)

# Make sure -fstack-check isn't enabled (like gentoo apparently did)
KBUILD_CFLAGS += $(call cc-option,-fno-stack-check,)

# conserve stack if available
KBUILD_CFLAGS += $(call cc-option,-fconserve-stack)

Expand Down
4 changes: 3 additions & 1 deletion arch/powerpc/sysdev/fsl_msi.c
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,7 @@ static int fsl_of_msi_remove(struct platform_device *ofdev)
}

static struct lock_class_key fsl_msi_irq_class;
static struct lock_class_key fsl_msi_irq_request_class;

static int fsl_msi_setup_hwirq(struct fsl_msi *msi, struct platform_device *dev,
int offset, int irq_index)
Expand All @@ -373,7 +374,8 @@ static int fsl_msi_setup_hwirq(struct fsl_msi *msi, struct platform_device *dev,
dev_err(&dev->dev, "No memory for MSI cascade data\n");
return -ENOMEM;
}
irq_set_lockdep_class(virt_msir, &fsl_msi_irq_class);
irq_set_lockdep_class(virt_msir, &fsl_msi_irq_class,
&fsl_msi_irq_request_class);
cascade_data->index = offset;
cascade_data->msi_data = msi;
cascade_data->virq = virt_msir;
Expand Down
4 changes: 2 additions & 2 deletions arch/sparc/lib/hweight.S
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ EXPORT_SYMBOL(__arch_hweight32)
.previous

ENTRY(__arch_hweight64)
sethi %hi(__sw_hweight16), %g1
jmpl %g1 + %lo(__sw_hweight16), %g0
sethi %hi(__sw_hweight64), %g1
jmpl %g1 + %lo(__sw_hweight64), %g0
nop
ENDPROC(__arch_hweight64)
EXPORT_SYMBOL(__arch_hweight64)
Expand Down
28 changes: 16 additions & 12 deletions arch/x86/boot/genimage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,39 +80,43 @@ genfdimage288() {
mcopy $FBZIMAGE w:linux
}

genisoimage() {
geniso() {
tmp_dir=`dirname $FIMAGE`/isoimage
rm -rf $tmp_dir
mkdir $tmp_dir
for i in lib lib64 share end ; do
for i in lib lib64 share ; do
for j in syslinux ISOLINUX ; do
if [ -f /usr/$i/$j/isolinux.bin ] ; then
isolinux=/usr/$i/$j/isolinux.bin
cp $isolinux $tmp_dir
fi
done
for j in syslinux syslinux/modules/bios ; do
if [ -f /usr/$i/$j/ldlinux.c32 ]; then
ldlinux=/usr/$i/$j/ldlinux.c32
cp $ldlinux $tmp_dir
fi
done
if [ -n "$isolinux" -a -n "$ldlinux" ] ; then
break
fi
if [ $i = end -a -z "$isolinux" ] ; then
echo 'Need an isolinux.bin file, please install syslinux/isolinux.'
exit 1
fi
done
if [ -z "$isolinux" ] ; then
echo 'Need an isolinux.bin file, please install syslinux/isolinux.'
exit 1
fi
if [ -z "$ldlinux" ] ; then
echo 'Need an ldlinux.c32 file, please install syslinux/isolinux.'
exit 1
fi
cp $isolinux $tmp_dir
cp $ldlinux $tmp_dir
cp $FBZIMAGE $tmp_dir/linux
echo "$KCMDLINE" > $tmp_dir/isolinux.cfg
if [ -f "$FDINITRD" ] ; then
cp "$FDINITRD" $tmp_dir/initrd.img
fi
mkisofs -J -r -input-charset=utf-8 -quiet -o $FIMAGE -b isolinux.bin \
-c boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table \
$tmp_dir
genisoimage -J -r -input-charset=utf-8 -quiet -o $FIMAGE \
-b isolinux.bin -c boot.cat -no-emul-boot -boot-load-size 4 \
-boot-info-table $tmp_dir
isohybrid $FIMAGE 2>/dev/null || true
rm -rf $tmp_dir
}
Expand All @@ -121,6 +125,6 @@ case $1 in
bzdisk) genbzdisk;;
fdimage144) genfdimage144;;
fdimage288) genfdimage288;;
isoimage) genisoimage;;
isoimage) geniso;;
*) echo 'Unknown image format'; exit 1;
esac
5 changes: 4 additions & 1 deletion arch/x86/events/intel/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -3847,14 +3847,15 @@ static struct attribute *intel_pmu_attrs[] = {

__init int intel_pmu_init(void)
{
struct attribute **extra_attr = NULL;
struct attribute **to_free = NULL;
union cpuid10_edx edx;
union cpuid10_eax eax;
union cpuid10_ebx ebx;
struct event_constraint *c;
unsigned int unused;
struct extra_reg *er;
int version, i;
struct attribute **extra_attr = NULL;
char *name;

if (!cpu_has(&boot_cpu_data, X86_FEATURE_ARCH_PERFMON)) {
Expand Down Expand Up @@ -4294,6 +4295,7 @@ __init int intel_pmu_init(void)
extra_attr = boot_cpu_has(X86_FEATURE_RTM) ?
hsw_format_attr : nhm_format_attr;
extra_attr = merge_attr(extra_attr, skl_format_attr);
to_free = extra_attr;
x86_pmu.cpu_events = get_hsw_events_attrs();
intel_pmu_pebs_data_source_skl(
boot_cpu_data.x86_model == INTEL_FAM6_SKYLAKE_X);
Expand Down Expand Up @@ -4401,6 +4403,7 @@ __init int intel_pmu_init(void)
pr_cont("full-width counters, ");
}

kfree(to_free);
return 0;
}

Expand Down
2 changes: 2 additions & 0 deletions arch/x86/include/asm/asm.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@
#endif

#ifndef __ASSEMBLY__
#ifndef __BPF__
/*
* This output constraint should be used for any inline asm which has a "call"
* instruction. Otherwise the asm may be inserted before the frame pointer
Expand All @@ -145,5 +146,6 @@
register unsigned long current_stack_pointer asm(_ASM_SP);
#define ASM_CALL_CONSTRAINT "+r" (current_stack_pointer)
#endif
#endif

#endif /* _ASM_X86_ASM_H */
2 changes: 1 addition & 1 deletion arch/x86/include/asm/irqdomain.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ extern int mp_irqdomain_alloc(struct irq_domain *domain, unsigned int virq,
extern void mp_irqdomain_free(struct irq_domain *domain, unsigned int virq,
unsigned int nr_irqs);
extern int mp_irqdomain_activate(struct irq_domain *domain,
struct irq_data *irq_data, bool early);
struct irq_data *irq_data, bool reserve);
extern void mp_irqdomain_deactivate(struct irq_domain *domain,
struct irq_data *irq_data);
extern int mp_irqdomain_ioapic_idx(struct irq_domain *domain);
Expand Down
5 changes: 2 additions & 3 deletions arch/x86/include/asm/switch_to.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ void __switch_to_xtra(struct task_struct *prev_p, struct task_struct *next_p,
struct tss_struct *tss);

/* This runs runs on the previous thread's stack. */
static inline void prepare_switch_to(struct task_struct *prev,
struct task_struct *next)
static inline void prepare_switch_to(struct task_struct *next)
{
#ifdef CONFIG_VMAP_STACK
/*
Expand Down Expand Up @@ -70,7 +69,7 @@ struct fork_frame {

#define switch_to(prev, next, last) \
do { \
prepare_switch_to(prev, next); \
prepare_switch_to(next); \
\
((last) = __switch_to_asm((prev), (next))); \
} while (0)
Expand Down
14 changes: 8 additions & 6 deletions arch/x86/include/asm/tlbflush.h
Original file line number Diff line number Diff line change
Expand Up @@ -348,15 +348,17 @@ static inline void invalidate_user_asid(u16 asid)
*/
static inline void __native_flush_tlb(void)
{
invalidate_user_asid(this_cpu_read(cpu_tlbstate.loaded_mm_asid));
/*
* If current->mm == NULL then we borrow a mm which may change
* during a task switch and therefore we must not be preempted
* while we write CR3 back:
* Preemption or interrupts must be disabled to protect the access
* to the per CPU variable and to prevent being preempted between
* read_cr3() and write_cr3().
*/
preempt_disable();
WARN_ON_ONCE(preemptible());

invalidate_user_asid(this_cpu_read(cpu_tlbstate.loaded_mm_asid));

/* If current->mm == NULL then the read_cr3() "borrows" an mm */
native_write_cr3(__native_read_cr3());
preempt_enable();
}

/*
Expand Down
16 changes: 8 additions & 8 deletions arch/x86/include/asm/trace/irq_vectors.h
Original file line number Diff line number Diff line change
Expand Up @@ -283,34 +283,34 @@ TRACE_EVENT(vector_alloc_managed,
DECLARE_EVENT_CLASS(vector_activate,

TP_PROTO(unsigned int irq, bool is_managed, bool can_reserve,
bool early),
bool reserve),

TP_ARGS(irq, is_managed, can_reserve, early),
TP_ARGS(irq, is_managed, can_reserve, reserve),

TP_STRUCT__entry(
__field( unsigned int, irq )
__field( bool, is_managed )
__field( bool, can_reserve )
__field( bool, early )
__field( bool, reserve )
),

TP_fast_assign(
__entry->irq = irq;
__entry->is_managed = is_managed;
__entry->can_reserve = can_reserve;
__entry->early = early;
__entry->reserve = reserve;
),

TP_printk("irq=%u is_managed=%d can_reserve=%d early=%d",
TP_printk("irq=%u is_managed=%d can_reserve=%d reserve=%d",
__entry->irq, __entry->is_managed, __entry->can_reserve,
__entry->early)
__entry->reserve)
);

#define DEFINE_IRQ_VECTOR_ACTIVATE_EVENT(name) \
DEFINE_EVENT_FN(vector_activate, name, \
TP_PROTO(unsigned int irq, bool is_managed, \
bool can_reserve, bool early), \
TP_ARGS(irq, is_managed, can_reserve, early), NULL, NULL); \
bool can_reserve, bool reserve), \
TP_ARGS(irq, is_managed, can_reserve, reserve), NULL, NULL); \

DEFINE_IRQ_VECTOR_ACTIVATE_EVENT(vector_activate);
DEFINE_IRQ_VECTOR_ACTIVATE_EVENT(vector_deactivate);
Expand Down
2 changes: 2 additions & 0 deletions arch/x86/kernel/apic/apic.c
Original file line number Diff line number Diff line change
Expand Up @@ -2626,11 +2626,13 @@ static int __init apic_set_verbosity(char *arg)
apic_verbosity = APIC_DEBUG;
else if (strcmp("verbose", arg) == 0)
apic_verbosity = APIC_VERBOSE;
#ifdef CONFIG_X86_64
else {
pr_warning("APIC Verbosity level %s not recognised"
" use apic=verbose or apic=debug\n", arg);
return -EINVAL;
}
#endif

return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/kernel/apic/apic_flat_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ static struct apic apic_flat __ro_after_init = {
.apic_id_valid = default_apic_id_valid,
.apic_id_registered = flat_apic_id_registered,

.irq_delivery_mode = dest_LowestPrio,
.irq_delivery_mode = dest_Fixed,
.irq_dest_mode = 1, /* logical */

.disable_esr = 0,
Expand Down
Loading