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

4.8.x+fslc #7

Merged
merged 184 commits into from
Jan 23, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
184 commits
Select commit Hold shift + click to select a range
f080d70
aoe: fix crash in page count manipulation
axboe Nov 12, 2016
562de9c
btrfs: limit async_work allocation and worker func duration
Dec 12, 2016
361e821
Btrfs: fix BUG_ON in btrfs_mark_buffer_dirty
Sep 2, 2016
65553a0
Btrfs: fix deadlock caused by fsync when logging directory entries
Oct 28, 2016
f1b268d
Btrfs: fix tree search logic when replaying directory entry deletes
Oct 7, 2016
80f7d28
Btrfs: fix relocation incorrectly dropping data references
fdmanana Nov 1, 2016
0695d8b
btrfs: store and load values of stripes_min/stripes_max in balance st…
kdave Nov 1, 2016
691ea6c
Btrfs: fix emptiness check for dirtied extent buffers at check_leaf()
fdmanana Nov 23, 2016
3aa3cb9
Btrfs: fix qgroup rescan worker initialization
fdmanana Nov 24, 2016
e47e81c
USB: serial: option: add support for Telit LE922A PIDs 0x1040, 0x1041
dnlplm Dec 1, 2016
f34b7e0
USB: serial: option: add dlink dwm-158
fid0did0 Dec 6, 2016
741523f
USB: serial: kl5kusb105: fix open error path
jhovold Nov 29, 2016
269edae
USB: cdc-acm: add device id for GW Instek AFG-125
Dec 5, 2016
e3dfbc8
usb: dwc3: gadget: set PCM1 field of isochronous-first TRBs
Sep 22, 2016
79d5a30
usb: hub: Fix auto-remount of safely removed or ejected USB-3 devices
matnyman Nov 17, 2016
be8f1c4
usb: gadget: f_uac2: fix error handling at afunc_bind
Nov 8, 2016
4422a26
usb: gadget: composite: correctly initialize ep->maxpacket
Sep 28, 2016
a9143e5
USB: UHCI: report non-PME wakeup signalling for Intel hardware
AlanStern Oct 21, 2016
6b0a56e
usbip: vudc: fix: Clear already_seen flag also for ep0
kopasiak Dec 1, 2016
abf549a
ALSA: usb-audio: Add QuickCam Communicate Deluxe/S7500 to volume_cont…
Dec 9, 2016
5496ec4
ALSA: hiface: Fix M2Tech hiFace driver sampling rate change
jlaako Nov 28, 2016
38c6095
ALSA: hda/ca0132 - Add quirk for Alienware 15 R2 2016
Nov 25, 2016
b757fc0
ALSA: hda - ignore the assoc and seq when comparing pin configurations
jason77-wang Nov 23, 2016
685c4db
ALSA: hda - fix headset-mic problem on a Dell laptop
jason77-wang Nov 23, 2016
dc8144f
ALSA: hda - Gate the mic jack on HP Z1 Gen3 AiO
tiwai Dec 6, 2016
2b96c4b
ALSA: hda: when comparing pin configurations, ignore assoc in additio…
khfeng Dec 6, 2016
1a087cd
clk: ti: omap36xx: Work around sprz319 advisory 2.1
rrw1000w Dec 2, 2016
d7839ad
Btrfs: fix memory leak in reading btree blocks
Aug 3, 2016
a6522e4
Btrfs: bail out if block group has different mixed flag
Aug 26, 2016
4d3d9b5
Btrfs: return gracefully from balance if fs tree is corrupted
Sep 14, 2016
6a6e927
Btrfs: don't leak reloc root nodes on error
Sep 2, 2016
364b85c
btrfs: clean the old superblocks before freeing the device
jeffmahoney Sep 20, 2016
65563ab
Btrfs: fix memory leak in do_walk_down
Sep 14, 2016
0f2e022
btrfs: fix a possible umount deadlock
asj Sep 22, 2016
02fffa1
Btrfs: don't BUG() during drop snapshot
Sep 23, 2016
8c59356
Btrfs: fix incremental send failure caused by balance
fdmanana Sep 19, 2016
fc1d3e5
btrfs: make file clone aware of fatal signals
wangxiaoguang Oct 13, 2016
781e976
exec: Ensure mm->user_ns contains the execed files
ebiederm Nov 17, 2016
52d6972
fs: exec: apply CLOEXEC before changing dumpable task flags
cyphar Dec 21, 2016
04804d8
block_dev: don't test bdev->bd_contains when it is not stable
Dec 12, 2016
e45692f
mm: Add a user_ns owner to mm_struct and fix ptrace permission checks
ebiederm Oct 14, 2016
23d179a
vfs,mm: fix return value of read() at s_maxbytes
torvalds Dec 14, 2016
ade692b
ptrace: Capture the ptracer's creds not PT_PTRACE_CAP
ebiederm Nov 15, 2016
8022387
crypto: caam - fix AEAD givenc descriptors
alexandru-porosanu-nxp Nov 9, 2016
86efd99
ext4: fix mballoc breakage with 64k block size
Nov 15, 2016
7505584
ext4: fix stack memory corruption with 64k block size
Nov 15, 2016
52a9daa
ext4: use more strict checks for inodes_per_block on mount
tytso Nov 18, 2016
9689eb9
ext4: fix in-superblock mount options processing
tytso Nov 18, 2016
1bfcffb
ext4: add sanity checking to count_overhead()
tytso Nov 18, 2016
3664877
ext4: reject inodes with negative size
djwong Dec 10, 2016
e33673b
ext4: return -ENOMEM instead of success
Dec 10, 2016
d06eaf2
ext4: do not perform data journaling when data is encrypted
skaramov Dec 10, 2016
67e5239
Revert "f2fs: use percpu_counter for # of dirty pages in inode"
Dec 2, 2016
154d83a
f2fs: set ->owner for debugfs status file's file_operations
nicstange Nov 20, 2016
bf0f020
f2fs: fix overflow due to condition check order
Nov 23, 2016
6290a3b
loop: return proper error from loop_queue_rq()
osandov Nov 14, 2016
3e0ef1b
nvmet: Fix possible infinite loop triggered on hot namespace removal
sashas-lb Oct 30, 2016
0927d28
mm/vmscan.c: set correct defer count for shrinker
shligit Dec 13, 2016
d4f4b2e
mm, page_alloc: keep pcp count and list contents in sync if struct pa…
gormanm Dec 13, 2016
8b63a92
usb: gadget: composite: always set ep->mult to a sensible value
Sep 28, 2016
e3742a1
PM / OPP: Pass opp_table to dev_pm_opp_put_regulator()
bebarino Nov 30, 2016
45f6311
blk-mq: Do not invoke .queue_rq() for a stopped queue
Oct 29, 2016
d948d3b
dm table: fix 'all_blk_mq' inconsistency when an empty table is loaded
snitm Nov 23, 2016
1ca66d6
dm table: an 'all_blk_mq' table must be loaded for a blk-mq DM device
Dec 8, 2016
bd5fcd1
dm flakey: return -EINVAL on interval bounds error in flakey_ctr()
weiyj Aug 8, 2016
26011e6
dm crypt: mark key as invalid until properly loaded
oniko Nov 2, 2016
454b98d
dm rq: fix a race condition in rq_completed()
Nov 12, 2016
ab10ab0
dm raid: fix discard support regression
mauelsha Nov 29, 2016
769c092
dm space map metadata: fix 'struct sm_metadata' leak on failed create
bmarzins Nov 30, 2016
6cb589c
ASoC: intel: Fix crash at suspend/resume without card registration
tiwai Nov 25, 2016
ff04da3
CIFS: Fix a possible memory corruption during reconnect
piastry Nov 4, 2016
9f1f507
CIFS: Fix missing nls unload in smb2_reconnect()
piastry Nov 29, 2016
bbf23f0
CIFS: Fix a possible memory corruption in push locks
piastry Nov 30, 2016
2f826a7
kernel/watchdog: use nmi registers snapshot in hardlockup handler
koct9i Dec 14, 2016
bf902ea
watchdog: mei_wdt: request stop on reboot to prevent false positive e…
ausyskin Nov 8, 2016
63b33e0
watchdog: qcom: fix kernel panic due to external abort on non-linefetch
chunkeey Nov 14, 2016
8419f52
kernel/debug/debug_core.c: more properly delay for secondary CPUs
dianders Dec 14, 2016
883f12a
tpm xen: Remove bogus tpm_chip_unregister
jgunthorpe Oct 26, 2016
6fbd3fb
xen/gntdev: Use VM_MIXEDMAP instead of VM_IO to avoid NUMA balancing
Nov 21, 2016
959e363
arm/xen: Use alloc_percpu rather than __alloc_percpu
Dec 7, 2016
587e89b
xfs: set AGI buffer type in xlog_recover_clear_agi_bucket
sandeen Dec 5, 2016
7742256
arm64: mark reserved memblock regions explicitly in iomem
Aug 22, 2016
99d6d4e
Revert "netfilter: nat: convert nat bysrc hash to rhashtable"
gregkh Jan 4, 2017
f199bdb
Revert "netfilter: move nat hlist_head to nf_conn"
gregkh Jan 4, 2017
6458972
driver core: fix race between creating/querying glue dir and its cleanup
Jul 10, 2016
c65ed08
Linux 4.8.16
gregkh Jan 6, 2017
c9fce6b
ssb: Fix error routine when fallback SPROM fails
lwfinger Nov 5, 2016
e24523a
rtlwifi: Fix enter/exit power_save
lwfinger Nov 26, 2016
7b9e1a1
perf/x86: Fix exclusion of BTS and LBR for Goldmont
Dec 9, 2016
2abcc02
perf/x86/intel/cstate: Prevent hotplug callback leak
KAGA-KOKO Dec 22, 2016
d2546f6
rtl8xxxu: Work around issue with 8192eu and 8723bu devices not reconn…
Nov 29, 2016
42e76c5
cfg80211/mac80211: fix BSS leaks when abandoning assoc attempts
jmberg-intel Dec 8, 2016
d80ff7c
ath9k: fix ath9k_hw_gpio_get() to return 0 or 1 on success
neocturne Nov 15, 2016
0ed0b25
ath9k: Really fix LED polarity for some Mini PCI AR9220 MB92 cards.
VittGam Nov 9, 2016
52980ce
mmc: sdhci: Fix recovery from tuning timeout
ahunter6 Dec 2, 2016
95d2a43
regulator: stw481x-vmmc: fix ages old enable error
linusw Nov 12, 2016
61d0b71
timekeeping_Force_unsigned_clocksource_to_nanoseconds_conversion
KAGA-KOKO Dec 8, 2016
bd12562
gpio: chardev: Return error for seek operations
larsclausen Nov 30, 2016
2f885da
arm64: tegra: Add VDD_GPU regulator to Jetson TX1
Gnurou Dec 2, 2016
def2c87
clk: bcm2835: Avoid overwriting the div info when disabling a pll_div…
Dec 1, 2016
a26a016
thermal: hwmon: Properly report critical temperature in sysfs
krzk Nov 22, 2016
235394e
docs: sphinx-extensions: make rstFlatTable work with docutils 0.13
mitya57 Dec 18, 2016
823c5c9
hv: acquire vmbus_connection.channel_mutex in vmbus_free_channels()
vittyvk Dec 3, 2016
689d592
staging: comedi: ni_mio_common: fix M Series ni_ai_insn_read() data mask
ian-abbott Nov 14, 2016
ce81006
staging: comedi: ni_mio_common: fix E series ni_ai_insn_read() data
ian-abbott Nov 14, 2016
b7eea51
ACPI / video: Add force_native quirk for Dell XPS 17 L702X
jwrdegoede Nov 29, 2016
bab5208
ACPI / video: Add force_native quirk for HP Pavilion dv6
jwrdegoede Nov 29, 2016
fef5427
drm/amd/amdgpu: enable GUI idle INT after enabling CGCG
amd-anath Nov 25, 2016
00e1fb1
drm/nouveau/gr: fallback to legacy paths during firmware lookup
Gnurou Nov 4, 2016
764e8e8
drm/nouveau/kms: lvds panel strap moved again on maxwell
Oct 19, 2016
ce71868
drm/nouveau/bios: require checksum to match for fast acpi shadow method
Oct 14, 2016
82d9824
drm/nouveau/ltc: protect clearing of comptags with mutex
Dec 12, 2016
28d1864
drm/nouveau/ttm: wait for bo fence to signal before unmapping vmas
Dec 12, 2016
2a7a437
drm/nouveau/i2c/gk110b,gm10x: use the correct implementation
Nov 3, 2016
9c6fb7b
drm/nouveau/fifo/gf100-: protect channel preempt with subdev mutex
Nov 5, 2016
6fb9422
drm/radeon: Also call cursor_move_locked when the cursor size changes
Oct 27, 2016
1f884ec
drm/radeon: Hide the HW cursor while it's out of bounds
Oct 27, 2016
cdb7aaa
drm/radeon: add additional pci revision to dpm workaround
alexdeucher Dec 2, 2016
10b598d
drm/radeon/si: load the proper firmware on 0x87 oland boards
alexdeucher Dec 2, 2016
8bfa4f5
drm/gma500: Add compat ioctl
patjak Nov 1, 2016
0f95e4a
drm/amdgpu: fix init save/restore list in gfx_v8.0
Dec 7, 2016
dfc3c8a
drivers/gpu/drm/ast: Fix infinite loop if read fails
ruscur Dec 15, 2016
7be0a5f
mei: request async autosuspend at the end of enumeration
ausyskin Nov 24, 2016
2695afd
mei: me: add lewisburg device ids
Nov 29, 2016
6d8bb56
block: protect iterate_bdevs() against concurrent close
vwax Dec 1, 2016
698ac69
vt: fix Scroll Lock LED trigger name
maciejsszmigiero Nov 15, 2016
3863ab6
stm class: Fix device leak in open error path
jhovold Nov 18, 2016
dbd4e6c
scsi: megaraid_sas: For SRIOV enabled firmware, ensure VF driver wait…
kadesai16 Oct 21, 2016
9c3928b
scsi: megaraid_sas: Do not set MPI2_TYPE_CUDA for JBOD FP path for FW…
kadesai16 Oct 21, 2016
de8a06c
iscsi-target: Return error if unable to add network portal
Dec 11, 2016
5cebfea
scsi: zfcp: fix use-after-"free" in FC ingress path after TMF
Benjamin-Block Dec 9, 2016
057fe03
scsi: zfcp: do not trace pure benign residual HBA responses at defaul…
steffen-maier Dec 9, 2016
6d675df
scsi: zfcp: fix rport unblock race with LUN recovery
steffen-maier Dec 9, 2016
cc328ce
scsi: avoid a permanent stop of the scsi device's request queue
FWei-HW Dec 13, 2016
5c98bf8
ARC: mm: arc700: Don't assume 2 colours for aliasing VIPT dcache
vineetgarc Dec 19, 2016
f356ab0
firmware: fix usermode helper fallback loading
corsac-s Nov 11, 2016
9652b62
s390/vmlogrdr: fix IUCV buffer allocation
gerald-schaefer Nov 21, 2016
d3d61bb
s390/kexec: use node 0 when re-adding crash kernel memory
heicarst Nov 28, 2016
c33e1ab
arm64: KVM: pmu: Reset PMSELR_EL0.SEL to a sane value before entering…
Dec 6, 2016
4709034
sc16is7xx: Drop bogus use of IRQF_ONESHOT
Oct 13, 2016
b202064
md/raid5: limit request size according to implementation limits
koct9i Nov 27, 2016
0773e92
scsi: aacraid: remove wildcard for series 9 controllers
Dec 8, 2016
b751eb6
KVM: PPC: Book3S HV: Save/restore XER in checkpointed register state
paulusmack Nov 7, 2016
9a5cf8c
KVM: PPC: Book3S HV: Don't lose hardware R/C bit updates in H_PROTECT
paulusmack Nov 16, 2016
43983ce
kvm: nVMX: Allow L1 to intercept software exceptions (#BP and #OF)
jsmattsonjr Dec 12, 2016
576ea9e
fsnotify: Fix possible use-after-free in inode iteration on umount
jankara Dec 12, 2016
8569aad
vsock/virtio: fix src/dst cid format
mstsirkin Dec 6, 2016
f61152e
ftrace/x86_32: Set ftrace_stub to weak to prevent gcc from using shor…
rostedt Dec 8, 2016
b2758da
platform/x86: asus-nb-wmi.c: Add X45U quirk
marcosps Nov 30, 2016
e661b5d
fgraph: Handle a case where a tracer ignores set_graph_notrace
rostedt Dec 9, 2016
f079fc1
IB/mad: Fix an array index check
Nov 21, 2016
37d4adb
IPoIB: Avoid reading an uninitialized member variable
Nov 21, 2016
2a0aa77
IB/multicast: Check ib_find_pkey() return value
Nov 21, 2016
7b3721a
IB/rxe: Fix a memory leak in rxe_qp_cleanup()
Dec 15, 2016
15d1d22
IB/cma: Fix a race condition in iboe_addr_get_sgid()
Dec 19, 2016
84b2f66
mn88472: fix chip id check on probe
palosaari Dec 1, 2016
c3fe33d
mn88473: fix chip id check on probe
palosaari Nov 30, 2016
88bfde2
s5p-mfc: fix failure path of s5p_mfc_alloc_memdev()
mszyprow Sep 16, 2016
4963b19
media: solo6x10: fix lockup by avoiding delayed register write
Oct 22, 2016
b784371
v4l: tvp5150: Add missing break in set control handler
pinchartl Dec 8, 2016
7d0a6cf
Input: drv260x - fix input device's parent assignment
Catramen Dec 12, 2016
c75bc2b
i40iw: Use correct src address in memcpy to rdma stats counters
shirazsaleem Nov 11, 2016
1f93d1a
PCI: Check for PME in targeted sleep state
AlanStern Oct 21, 2016
1678ada
libceph: verify authorize reply on connect
idryomov Dec 2, 2016
8f5ff87
nfs_write_end(): fix handling of short copies
Sep 6, 2016
7de1b81
pNFS: On error, do not send LAYOUTGET until the LAYOUTRETURN has comp…
trondmypd Oct 17, 2016
f061c76
pNFS: Don't clear the layout stateid if a layout return is outstanding
trondmypd Nov 14, 2016
abb2903
pNFS: Clear NFS_LAYOUT_RETURN_REQUESTED when invalidating the layout …
trondmypd Nov 14, 2016
c513ade
pNFS: Fix a deadlock between read resends and layoutreturn
trondmypd Nov 27, 2016
0349fbe
SUNRPC: fix refcounting problems with auth_gss messages.
Dec 5, 2016
e451d67
powerpc/64e: Convert cmpi to cmpwi in head_64.S
npiggin Nov 23, 2016
3a4e428
powerpc/ps3: Fix system hang with GCC 5 builds
glevand Nov 29, 2016
29f3d11
libnvdimm, pfn: fix align attribute
djbw Dec 10, 2016
e141d1a
target/user: Fix use-after-free of tcmu_cmds if they are expired
Nov 22, 2016
d787c6b
kconfig/nconf: Fix hang when editing symbol with a long prompt
bwh-ct Nov 24, 2016
48f26ed
sg_write()/bsg_write() is not fit to be called under KERNEL_DS
Dec 16, 2016
4803ec2
net: mvpp2: fix dma unmapping of TX buffers for fragments
tpetazzoni Dec 21, 2016
6a412ff
drm/i915/dsi: Fix chv_exec_gpio disabling the GPIOs it is setting
jwrdegoede Dec 1, 2016
294bb34
drm/i915/dsi: Do not clear DPOUNIT_CLOCK_GATE_DISABLE from vlv_init_d…
jwrdegoede Dec 2, 2016
22aba47
drm/i915: Fix cdclk vs. dev_cdclk mess when not recomputing things
vsyrjala Nov 14, 2016
000e612
drm/i915: Initialize dev_priv->atomic_cdclk_freq at init time
vsyrjala Nov 29, 2016
adf363f
drm/i915: skip the first 4k of stolen memory on everything >= gen8
pzanoni-intel Dec 14, 2016
3d8f8d0
Linux 4.8.17
gregkh Jan 9, 2017
35ef795
Merge tag 'v4.8.17' into 4.8.x+fslc
redbrain17 Jan 23, 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
5 changes: 5 additions & 0 deletions Documentation/sphinx/rstFlatTable.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,11 @@ def __init__(self, directive):
def buildTableNode(self):

colwidths = self.directive.get_column_widths(self.max_cols)
if isinstance(colwidths, tuple):
# Since docutils 0.13, get_column_widths returns a (widths,
# colwidths) tuple, where widths is a string (i.e. 'auto').
# See https://sourceforge.net/p/docutils/patches/120/.
colwidths = colwidths[1]
stub_columns = self.directive.options.get('stub-columns', 0)
header_rows = self.directive.options.get('header-rows', 0)

Expand Down
1 change: 1 addition & 0 deletions Documentation/virtual/kvm/api.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2039,6 +2039,7 @@ registers, find a list below:
PPC | KVM_REG_PPC_TM_VSCR | 32
PPC | KVM_REG_PPC_TM_DSCR | 64
PPC | KVM_REG_PPC_TM_TAR | 64
PPC | KVM_REG_PPC_TM_XER | 64
| |
MIPS | KVM_REG_MIPS_R0 | 64
...
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
VERSION = 4
PATCHLEVEL = 8
SUBLEVEL = 15
SUBLEVEL = 17
EXTRAVERSION =
NAME = Psychotic Stoned Sheep

Expand Down
6 changes: 4 additions & 2 deletions arch/arc/include/asm/cacheflush.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ void flush_anon_page(struct vm_area_struct *vma,
*/
#define PG_dc_clean PG_arch_1

#define CACHE_COLORS_NUM 4
#define CACHE_COLORS_MSK (CACHE_COLORS_NUM - 1)
#define CACHE_COLOR(addr) (((unsigned long)(addr) >> (PAGE_SHIFT)) & CACHE_COLORS_MSK)

/*
* Simple wrapper over config option
* Bootup code ensures that hardware matches kernel configuration
Expand All @@ -94,8 +98,6 @@ static inline int cache_is_vipt_aliasing(void)
return IS_ENABLED(CONFIG_ARC_CACHE_VIPT_ALIASING);
}

#define CACHE_COLOR(addr) (((unsigned long)(addr) >> (PAGE_SHIFT)) & 1)

/*
* checks if two addresses (after page aligning) index into same cache set
*/
Expand Down
13 changes: 9 additions & 4 deletions arch/arc/mm/cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -967,11 +967,16 @@ void arc_cache_init(void)
/* check for D-Cache aliasing on ARCompact: ARCv2 has PIPT */
if (is_isa_arcompact()) {
int handled = IS_ENABLED(CONFIG_ARC_CACHE_VIPT_ALIASING);

if (dc->alias && !handled)
panic("Enable CONFIG_ARC_CACHE_VIPT_ALIASING\n");
else if (!dc->alias && handled)
int num_colors = dc->sz_k/dc->assoc/TO_KB(PAGE_SIZE);

if (dc->alias) {
if (!handled)
panic("Enable CONFIG_ARC_CACHE_VIPT_ALIASING\n");
if (CACHE_COLORS_NUM != num_colors)
panic("CACHE_COLORS_NUM not optimized for config\n");
} else if (!dc->alias && handled) {
panic("Disable CONFIG_ARC_CACHE_VIPT_ALIASING\n");
}
}
}

Expand Down
3 changes: 1 addition & 2 deletions arch/arm/xen/enlighten.c
Original file line number Diff line number Diff line change
Expand Up @@ -372,8 +372,7 @@ static int __init xen_guest_init(void)
* for secondary CPUs as they are brought up.
* For uniformity we use VCPUOP_register_vcpu_info even on cpu0.
*/
xen_vcpu_info = __alloc_percpu(sizeof(struct vcpu_info),
sizeof(struct vcpu_info));
xen_vcpu_info = alloc_percpu(struct vcpu_info);
if (xen_vcpu_info == NULL)
return -ENOMEM;

Expand Down
18 changes: 18 additions & 0 deletions arch/arm64/boot/dts/nvidia/tegra210-p2180.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
reg = <0x0 0x80000000 0x1 0x0>;
};

gpu@57000000 {
vdd-supply = <&vdd_gpu>;
};

/* debug port */
serial@70006000 {
status = "okay";
Expand Down Expand Up @@ -291,4 +295,18 @@
clock-frequency = <32768>;
};
};

regulators {
vdd_gpu: regulator@100 {
compatible = "pwm-regulator";
reg = <100>;
pwms = <&pwm 1 4880>;
regulator-name = "VDD_GPU";
regulator-min-microvolt = <710000>;
regulator-max-microvolt = <1320000>;
enable-gpios = <&pmic 6 GPIO_ACTIVE_HIGH>;
regulator-ramp-delay = <80>;
regulator-enable-ramp-delay = <1000>;
};
};
};
8 changes: 6 additions & 2 deletions arch/arm64/include/asm/acpi.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#ifndef _ASM_ACPI_H
#define _ASM_ACPI_H

#include <linux/mm.h>
#include <linux/memblock.h>
#include <linux/psci.h>

#include <asm/cputype.h>
Expand All @@ -32,7 +32,11 @@
static inline void __iomem *acpi_os_ioremap(acpi_physical_address phys,
acpi_size size)
{
if (!page_is_ram(phys >> PAGE_SHIFT))
/*
* EFI's reserve_regions() call adds memory with the WB attribute
* to memblock via early_init_dt_add_memory_arch().
*/
if (!memblock_is_memory(phys))
return ioremap(phys, size);

return ioremap_cache(phys, size);
Expand Down
9 changes: 7 additions & 2 deletions arch/arm64/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,10 +206,15 @@ static void __init request_standard_resources(void)

for_each_memblock(memory, region) {
res = alloc_bootmem_low(sizeof(*res));
res->name = "System RAM";
if (memblock_is_nomap(region)) {
res->name = "reserved";
res->flags = IORESOURCE_MEM | IORESOURCE_BUSY;
} else {
res->name = "System RAM";
res->flags = IORESOURCE_SYSTEM_RAM | IORESOURCE_BUSY;
}
res->start = __pfn_to_phys(memblock_region_memory_base_pfn(region));
res->end = __pfn_to_phys(memblock_region_memory_end_pfn(region)) - 1;
res->flags = IORESOURCE_SYSTEM_RAM | IORESOURCE_BUSY;

request_resource(&iomem_resource, res);

Expand Down
8 changes: 7 additions & 1 deletion arch/arm64/kvm/hyp/switch.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,13 @@ static void __hyp_text __activate_traps(struct kvm_vcpu *vcpu)
write_sysreg(val, hcr_el2);
/* Trap on AArch32 cp15 c15 accesses (EL1 or EL0) */
write_sysreg(1 << 15, hstr_el2);
/* Make sure we trap PMU access from EL0 to EL2 */
/*
* Make sure we trap PMU access from EL0 to EL2. Also sanitize
* PMSELR_EL0 to make sure it never contains the cycle
* counter, which could make a PMXEVCNTR_EL0 access UNDEF at
* EL1 instead of being trapped to EL2.
*/
write_sysreg(0, pmselr_el0);
write_sysreg(ARMV8_PMU_USERENR_MASK, pmuserenr_el0);
write_sysreg(vcpu->arch.mdcr_el2, mdcr_el2);
__activate_traps_arch()();
Expand Down
5 changes: 0 additions & 5 deletions arch/powerpc/boot/ps3-head.S
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,6 @@ __system_reset_overlay:
bctr

1:
/* Save the value at addr zero for a null pointer write check later. */

li r4, 0
lwz r3, 0(r4)

/* Primary delays then goes to _zimage_start in wrapper. */

or 31, 31, 31 /* db16cyc */
Expand Down
8 changes: 1 addition & 7 deletions arch/powerpc/boot/ps3.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,12 @@ void ps3_copy_vectors(void)
flush_cache((void *)0x100, 512);
}

void platform_init(unsigned long null_check)
void platform_init(void)
{
const u32 heapsize = 0x1000000 - (u32)_end; /* 16MiB */
void *chosen;
unsigned long ft_addr;
u64 rm_size;
unsigned long val;

console_ops.write = ps3_console_write;
platform_ops.exit = ps3_exit;
Expand Down Expand Up @@ -153,11 +152,6 @@ void platform_init(unsigned long null_check)

printf(" flat tree at 0x%lx\n\r", ft_addr);

val = *(unsigned long *)0;

if (val != null_check)
printf("null check failed: %lx != %lx\n\r", val, null_check);

((kernel_entry_t)0)(ft_addr, 0, NULL);

ps3_exit();
Expand Down
1 change: 1 addition & 0 deletions arch/powerpc/include/asm/kvm_host.h
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,7 @@ struct kvm_vcpu_arch {
u64 tfiar;

u32 cr_tm;
u64 xer_tm;
u64 lr_tm;
u64 ctr_tm;
u64 amr_tm;
Expand Down
1 change: 1 addition & 0 deletions arch/powerpc/include/uapi/asm/kvm.h
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,7 @@ struct kvm_get_htab_header {
#define KVM_REG_PPC_TM_VSCR (KVM_REG_PPC_TM | KVM_REG_SIZE_U32 | 0x67)
#define KVM_REG_PPC_TM_DSCR (KVM_REG_PPC_TM | KVM_REG_SIZE_U64 | 0x68)
#define KVM_REG_PPC_TM_TAR (KVM_REG_PPC_TM | KVM_REG_SIZE_U64 | 0x69)
#define KVM_REG_PPC_TM_XER (KVM_REG_PPC_TM | KVM_REG_SIZE_U64 | 0x6a)

/* PPC64 eXternal Interrupt Controller Specification */
#define KVM_DEV_XICS_GRP_SOURCES 1 /* 64-bit source attributes */
Expand Down
1 change: 1 addition & 0 deletions arch/powerpc/kernel/asm-offsets.c
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,7 @@ int main(void)
DEFINE(VCPU_VRS_TM, offsetof(struct kvm_vcpu, arch.vr_tm.vr));
DEFINE(VCPU_VRSAVE_TM, offsetof(struct kvm_vcpu, arch.vrsave_tm));
DEFINE(VCPU_CR_TM, offsetof(struct kvm_vcpu, arch.cr_tm));
DEFINE(VCPU_XER_TM, offsetof(struct kvm_vcpu, arch.xer_tm));
DEFINE(VCPU_LR_TM, offsetof(struct kvm_vcpu, arch.lr_tm));
DEFINE(VCPU_CTR_TM, offsetof(struct kvm_vcpu, arch.ctr_tm));
DEFINE(VCPU_AMR_TM, offsetof(struct kvm_vcpu, arch.amr_tm));
Expand Down
8 changes: 4 additions & 4 deletions arch/powerpc/kernel/head_64.S
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,9 @@ booting_thread_hwid:
*/
_GLOBAL(book3e_start_thread)
LOAD_REG_IMMEDIATE(r5, MSR_KERNEL)
cmpi 0, r3, 0
cmpwi r3, 0
beq 10f
cmpi 0, r3, 1
cmpwi r3, 1
beq 11f
/* If the thread id is invalid, just exit. */
b 13f
Expand All @@ -228,9 +228,9 @@ _GLOBAL(book3e_start_thread)
* r3 = the thread physical id
*/
_GLOBAL(book3e_stop_thread)
cmpi 0, r3, 0
cmpwi r3, 0
beq 10f
cmpi 0, r3, 1
cmpwi r3, 1
beq 10f
/* If the thread id is invalid, just exit. */
b 13f
Expand Down
6 changes: 6 additions & 0 deletions arch/powerpc/kvm/book3s_hv.c
Original file line number Diff line number Diff line change
Expand Up @@ -1235,6 +1235,9 @@ static int kvmppc_get_one_reg_hv(struct kvm_vcpu *vcpu, u64 id,
case KVM_REG_PPC_TM_CR:
*val = get_reg_val(id, vcpu->arch.cr_tm);
break;
case KVM_REG_PPC_TM_XER:
*val = get_reg_val(id, vcpu->arch.xer_tm);
break;
case KVM_REG_PPC_TM_LR:
*val = get_reg_val(id, vcpu->arch.lr_tm);
break;
Expand Down Expand Up @@ -1442,6 +1445,9 @@ static int kvmppc_set_one_reg_hv(struct kvm_vcpu *vcpu, u64 id,
case KVM_REG_PPC_TM_CR:
vcpu->arch.cr_tm = set_reg_val(id, *val);
break;
case KVM_REG_PPC_TM_XER:
vcpu->arch.xer_tm = set_reg_val(id, *val);
break;
case KVM_REG_PPC_TM_LR:
vcpu->arch.lr_tm = set_reg_val(id, *val);
break;
Expand Down
2 changes: 2 additions & 0 deletions arch/powerpc/kvm/book3s_hv_rm_mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,8 @@ long kvmppc_h_protect(struct kvm_vcpu *vcpu, unsigned long flags,
HPTE_V_ABSENT);
do_tlbies(kvm, &rb, 1, global_invalidates(kvm, flags),
true);
/* Don't lose R/C bit updates done by hardware */
r |= be64_to_cpu(hpte[1]) & (HPTE_R_R | HPTE_R_C);
hpte[1] = cpu_to_be64(r);
}
}
Expand Down
4 changes: 4 additions & 0 deletions arch/powerpc/kvm/book3s_hv_rmhandlers.S
Original file line number Diff line number Diff line change
Expand Up @@ -2579,11 +2579,13 @@ kvmppc_save_tm:
mfctr r7
mfspr r8, SPRN_AMR
mfspr r10, SPRN_TAR
mfxer r11
std r5, VCPU_LR_TM(r9)
stw r6, VCPU_CR_TM(r9)
std r7, VCPU_CTR_TM(r9)
std r8, VCPU_AMR_TM(r9)
std r10, VCPU_TAR_TM(r9)
std r11, VCPU_XER_TM(r9)

/* Restore r12 as trap number. */
lwz r12, VCPU_TRAP(r9)
Expand Down Expand Up @@ -2676,11 +2678,13 @@ kvmppc_restore_tm:
ld r7, VCPU_CTR_TM(r4)
ld r8, VCPU_AMR_TM(r4)
ld r9, VCPU_TAR_TM(r4)
ld r10, VCPU_XER_TM(r4)
mtlr r5
mtcr r6
mtctr r7
mtspr SPRN_AMR, r8
mtspr SPRN_TAR, r9
mtxer r10

/*
* Load up PPR and DSCR values but don't put them in the actual SPRs
Expand Down
2 changes: 1 addition & 1 deletion arch/s390/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ static void __init setup_resources(void)
* part of the System RAM resource.
*/
if (crashk_res.end) {
memblock_add(crashk_res.start, resource_size(&crashk_res));
memblock_add_node(crashk_res.start, resource_size(&crashk_res), 0);
memblock_reserve(crashk_res.start, resource_size(&crashk_res));
insert_resource(&iomem_resource, &crashk_res);
}
Expand Down
4 changes: 2 additions & 2 deletions arch/x86/entry/entry_32.S
Original file line number Diff line number Diff line change
Expand Up @@ -852,8 +852,8 @@ ftrace_graph_call:
jmp ftrace_stub
#endif

.globl ftrace_stub
ftrace_stub:
/* This is weak to keep gas from relaxing the jumps */
WEAK(ftrace_stub)
ret
END(ftrace_caller)

Expand Down
8 changes: 6 additions & 2 deletions arch/x86/events/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,11 @@ int x86_add_exclusive(unsigned int what)
{
int i;

if (x86_pmu.lbr_pt_coexist)
/*
* When lbr_pt_coexist we allow PT to coexist with either LBR or BTS.
* LBR and BTS are still mutually exclusive.
*/
if (x86_pmu.lbr_pt_coexist && what == x86_lbr_exclusive_pt)
return 0;

if (!atomic_inc_not_zero(&x86_pmu.lbr_exclusive[what])) {
Expand All @@ -387,7 +391,7 @@ int x86_add_exclusive(unsigned int what)

void x86_del_exclusive(unsigned int what)
{
if (x86_pmu.lbr_pt_coexist)
if (x86_pmu.lbr_pt_coexist && what == x86_lbr_exclusive_pt)
return;

atomic_dec(&x86_pmu.lbr_exclusive[what]);
Expand Down
14 changes: 7 additions & 7 deletions arch/x86/events/intel/cstate.c
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,9 @@ static int __init cstate_probe(const struct cstate_model *cm)

static inline void cstate_cleanup(void)
{
cpuhp_remove_state_nocalls(CPUHP_AP_PERF_X86_CSTATE_ONLINE);
cpuhp_remove_state_nocalls(CPUHP_AP_PERF_X86_CSTATE_STARTING);

if (has_cstate_core)
perf_pmu_unregister(&cstate_core_pmu);

Expand All @@ -583,16 +586,16 @@ static int __init cstate_init(void)
int err;

cpuhp_setup_state(CPUHP_AP_PERF_X86_CSTATE_STARTING,
"AP_PERF_X86_CSTATE_STARTING", cstate_cpu_init,
NULL);
"perf/x86/cstate:starting", cstate_cpu_init, NULL);
cpuhp_setup_state(CPUHP_AP_PERF_X86_CSTATE_ONLINE,
"AP_PERF_X86_CSTATE_ONLINE", NULL, cstate_cpu_exit);
"perf/x86/cstate:online", NULL, cstate_cpu_exit);

if (has_cstate_core) {
err = perf_pmu_register(&cstate_core_pmu, cstate_core_pmu.name, -1);
if (err) {
has_cstate_core = false;
pr_info("Failed to register cstate core pmu\n");
cstate_cleanup();
return err;
}
}
Expand All @@ -606,8 +609,7 @@ static int __init cstate_init(void)
return err;
}
}

return err;
return 0;
}

static int __init cstate_pmu_init(void)
Expand All @@ -632,8 +634,6 @@ module_init(cstate_pmu_init);

static void __exit cstate_pmu_exit(void)
{
cpuhp_remove_state_nocalls(CPUHP_AP_PERF_X86_CSTATE_ONLINE);
cpuhp_remove_state_nocalls(CPUHP_AP_PERF_X86_CSTATE_STARTING);
cstate_cleanup();
}
module_exit(cstate_pmu_exit);
Loading