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

5.4.y+qoriq+fslc #128

Merged
merged 130 commits into from
Sep 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
130 commits
Select commit Hold shift + click to select a range
b2fc347
HID: quirks: Always poll three more Lenovo PixArt mice
sriemer Aug 17, 2020
28ffe70
drm/msm/dpu: Fix scale params in plane validation
Jul 30, 2020
8bc25de
tty: serial: qcom_geni_serial: Drop __init from qcom_geni_console_setup
johnstultz-work Aug 11, 2020
19583b2
drm/msm: add shutdown support for display platform_driver
Jun 1, 2020
e94a3d7
hwmon: (applesmc) check status earlier.
Aug 20, 2020
2c9bc7d
nvmet: Disable keep-alive timer when kato is cleared to 0h
Aug 19, 2020
dddd500
drm/msm: enable vblank during atomic commits
robclark Aug 18, 2020
c9436de
habanalabs: validate FW file size
ofirbitt Aug 11, 2020
7a55cf8
habanalabs: check correct vmalloc return code
ofirbitt Aug 11, 2020
755fd63
drm/msm/a6xx: fix gmu start on newer firmware
lumag Aug 20, 2020
0a8dcad
ceph: don't allow setlease on cephfs
jtlayton Aug 20, 2020
ad3a4ef
drm/omap: fix incorrect lock state
tomba Aug 19, 2020
c1e333e
cpuidle: Fixup IRQ state
Aug 20, 2020
c756635
nbd: restore default timeout when setting it to zero
Aug 10, 2020
29bade8
s390: don't trace preemption in percpu macros
svens-s390 Aug 20, 2020
79d3152
drm/amd/display: Reject overlay plane configurations in multi-display…
Aug 19, 2020
9947928
drivers: gpu: amd: Initialize amdgpu_dm_backlight_caps object to 0 in…
furquan-goog Aug 20, 2020
b014f28
drm/amd/display: Retry AUX write when fail occurs
Aug 18, 2020
0878655
drm/amd/display: Fix memleak in amdgpu_dm_mode_config_init
dinghaoliu Aug 26, 2020
6eb88c4
xen/xenbus: Fix granting of vmalloc'd memory
sleiner Aug 25, 2020
1a89606
fsldma: fix very broken 32-bit ppc ioread64 functionality
torvalds Aug 29, 2020
89cb604
dmaengine: of-dma: Fix of_dma_router_xlate's of_dma_xlate handling
Aug 6, 2020
2344f2f
batman-adv: Avoid uninitialized chaddr when handling DHCP
ecsv Jul 22, 2020
fd8b3ef
batman-adv: Fix own OGM check in aggregated OGMs
T-X Jul 23, 2020
2f2786b
batman-adv: bla: use netif_rx_ni when not in interrupt context
Aug 18, 2020
242a7ab
dmaengine: at_hdmac: check return value of of_find_device_by_node() i…
Aug 17, 2020
43cf7e7
rxrpc: Keep the ACK serial in a var in rxrpc_input_ack()
dhowells Aug 20, 2020
5f7798f
rxrpc: Make rxrpc_kernel_get_srtt() indicate validity
dhowells Aug 20, 2020
c5e9e36
MIPS: mm: BMIPS5000 has inclusive physical caches
ffainelli Aug 19, 2020
da8e3e5
MIPS: BMIPS: Also call bmips_cpu_setup() for secondary cores
ffainelli Aug 19, 2020
fb1e976
mmc: sdhci-acpi: Fix HS400 tuning for AMDI0040
Aug 19, 2020
929d07f
netfilter: nf_tables: add NFTA_SET_USERDATA if not null
ummakynes Aug 20, 2020
576fbd4
netfilter: nf_tables: incorrect enum nft_list_attributes definition
ummakynes Aug 20, 2020
210b889
netfilter: nf_tables: fix destination register zeroing
Aug 20, 2020
a49c0ae
net: hns: Fix memleak in hns_nic_dev_probe
dinghaoliu Aug 24, 2020
8123fa8
net: systemport: Fix memleak in bcm_sysport_probe
dinghaoliu Aug 24, 2020
268fe5a
ravb: Fixed to be able to unload modules
Aug 20, 2020
719f92d
net: arc_emac: Fix memleak in arc_mdio_probe
dinghaoliu Aug 23, 2020
24249fa
dmaengine: pl330: Fix burst length if burst size is smaller than bus …
mszyprow Aug 25, 2020
0bd92cd
gtp: add GTPA_LINK info to msg sent to userspace
NicolasDichtel Aug 25, 2020
c11510b
net: ethernet: ti: cpsw: fix clean up of vlan mc entries for host port
Aug 24, 2020
e7cbba4
bnxt_en: Don't query FW when netif_running() is false.
Aug 26, 2020
8754792
bnxt_en: Check for zero dir entries in NVRAM.
Aug 26, 2020
70699d3
bnxt_en: Fix PCI AER error recovery flow
Aug 26, 2020
927a762
bnxt_en: Fix possible crash in bnxt_fw_reset_task().
Aug 26, 2020
8227199
bnxt_en: fix HWRM error when querying VF temperature
Aug 26, 2020
da7a167
xfs: fix boundary test in xfs_attr_shortform_verify
Aug 26, 2020
f28f3cf
bnxt: don't enable NAPI until rings are ready
kuba-moo Aug 26, 2020
3fe12f4
media: vicodec: add missing v4l2_ctrl_request_hdl_put()
Aug 12, 2020
e0a1beb
media: cedrus: Add missing v4l2_ctrl_request_hdl_put()
ezequielgarcia Aug 13, 2020
c4a427b
selftests/bpf: Fix massive output from test_maps
netoptimizer Aug 26, 2020
4985758
net: dsa: mt7530: fix advertising unsupported 1000baseT_Half
Aug 27, 2020
9ff9f74
netfilter: nfnetlink: nfnetlink_unicast() reports EAGAIN instead of E…
ummakynes Aug 23, 2020
f4b830c
nvmet-fc: Fix a missed _irqsave version of spin_lock in 'nvmet_fc_fod…
tititiou36 Aug 21, 2020
50d2847
nvme: fix controller instance leak
keithbusch Aug 26, 2020
37f0a08
cxgb4: fix thermal zone device registration
bharatpotnuri Aug 28, 2020
8e2660c
perf tools: Correct SNOOPX field offset
Sep 1, 2020
901d22c
net: ethernet: mlx4: Fix memory allocation in mlx4_buddy_init()
shunghsiyu Aug 31, 2020
88405cf
fix regression in "epoll: Keep a reference on files added to the chec…
Sep 2, 2020
612e2b7
net: gemini: Fix another missing clk_disable_unprepare() in probe
Sep 2, 2020
58591dd
MIPS: add missing MSACSR and upper MSA initialization
mips-hp Sep 1, 2020
6c4ad54
xfs: fix xfs_bmap_validate_extent_raw when checking attr fork of rt f…
djwong Sep 2, 2020
b0c40f8
perf jevents: Fix suspicious code in fixregex()
namhyung Sep 3, 2020
1a7e038
tg3: Fix soft lockup when tg3_reset_task() fails.
Sep 3, 2020
920d9ff
x86, fakenuma: Fix invalid starting node ID
yhuang-intel Sep 4, 2020
0c21f1b
iommu/vt-d: Serialize IOMMU GCMD register modifications
LuBaolu Aug 28, 2020
f5b3bd3
thermal: ti-soc-thermal: Fix bogus thermal shutdowns for omap4430
tmlind Jul 6, 2020
7ce6bc1
thermal: qcom-spmi-temp-alarm: Don't suppress negative temp
Jul 29, 2020
e3d109c
iommu/amd: Restore IRTE.RemapEn bit after programming IRTE
ssuthiku-amd Sep 3, 2020
bc846b5
net/packet: fix overflow in tpacket_rcv
Sep 4, 2020
5629bb2
include/linux/log2.h: add missing () around n in roundup_pow_of_two()
jgunthorpe Sep 4, 2020
270c35d
vfio/type1: Support faulting PFNMAP vmas
akaher Sep 6, 2020
b0f5096
vfio-pci: Fault mmaps to enable vma tracking
akaher Sep 6, 2020
8f747b0
vfio-pci: Invalidate mmaps and block MMIO access on disabled memory
akaher Sep 6, 2020
036a857
iommu/vt-d: Handle 36bit addressing for x86-32
ickle Aug 22, 2020
cc6c4d8
tracing/kprobes, x86/ptrace: Fix regs argument order for i386
Aug 28, 2020
12cd8fc
ext2: don't update mtime on COW faults
Sep 5, 2020
ce690fa
xfs: don't update mtime on COW faults
Sep 5, 2020
20b591f
ARC: perf: don't bail setup if pct irq missing in device-tree
vineetgarc Jul 27, 2020
eb29635
btrfs: drop path before adding new uuid tree entry
josefbacik Aug 10, 2020
c37cc19
btrfs: allocate scrub workqueues outside of locks
josefbacik Aug 10, 2020
7e0ffb0
btrfs: set the correct lockdep class for new nodes
josefbacik Aug 10, 2020
6502753
btrfs: set the lockdep class for log tree extent buffers
josefbacik Aug 10, 2020
df0c475
btrfs: tree-checker: fix the error message for transid error
adam900710 Aug 25, 2020
de53545
net: core: use listified Rx for GRO_NORMAL in napi_gro_receive()
solbjorn Oct 14, 2019
4254a4f
btrfs: fix potential deadlock in the search ioctl
josefbacik Aug 10, 2020
62db427
Revert "net: dsa: microchip: set the correct number of ports"
Sep 7, 2020
156dd7c
Revert "ALSA: hda: Add support for Loongson 7A1000 controller"
Aug 25, 2020
a3b94af
ALSA: ca0106: fix error code handling
lzto Aug 24, 2020
79124b1
ALSA: usb-audio: Add implicit feedback quirk for UR22C
Aug 25, 2020
2ebb83a
ALSA: pcm: oss: Remove superfluous WARN_ON() for mulaw sanity check
tiwai Sep 1, 2020
4fa06a4
ALSA: hda/hdmi: always check pin power status in i915 pin fixup
kv2019i Aug 26, 2020
cebaed0
ALSA: firewire-digi00x: exclude Avid Adrenaline from detection
takaswie Aug 23, 2020
9825056
ALSA: hda - Fix silent audio output and corrupted input on MSI X570-A…
Aug 29, 2020
a253fe3
ALSA; firewire-tascam: exclude Tascam FE-8 from detection
takaswie Aug 23, 2020
7de2f56
ALSA: hda/realtek: Add quirk for Samsung Galaxy Book Ion NT950XCJ-X716A
PowerKiKi Aug 26, 2020
d074d9d
ALSA: hda/realtek - Improved routing for Thinkpad X1 7th/8th Gen
tiwai Sep 3, 2020
2816ccd
arm64: dts: mt7622: add reset node for mmc device
wenbinmei1 Aug 14, 2020
5876ee0
mmc: mediatek: add optional module reset property
wenbinmei1 Aug 14, 2020
a69047c
mmc: dt-bindings: Add resets/reset-names for Mediatek MMC bindings
wenbinmei1 Aug 14, 2020
ed48704
mmc: cqhci: Add cqhci_deactivate()
ahunter6 Mar 6, 2020
3d77c12
mmc: sdhci-pci: Fix SDHCI_RESET_ALL for CQHCI for Intel GLK-based con…
ahunter6 Aug 19, 2020
5925179
media: rc: do not access device via sysfs after rc_unregister_device()
seanyoung Aug 8, 2020
2d89e44
media: rc: uevent sysfs file races with rc_unregister_device()
seanyoung Aug 8, 2020
b6e4827
affs: fix basic permission bits to actually work
Aug 27, 2020
84c041c
block: allow for_each_bvec to support zero len bvec
Aug 17, 2020
5f5f272
block: ensure bdi->io_pages is always initialized
axboe Aug 31, 2020
f788074
libata: implement ATA_HORKAGE_MAX_TRIM_128M and apply to Sandisks
htejun Sep 2, 2020
9f4ab01
blk-iocost: ioc_pd_free() shouldn't assume irq disabled
htejun Sep 1, 2020
f84804a
dmaengine: dw-edma: Fix scatter-gather address calculation
gustavoSNPS Aug 13, 2020
6fb192c
drm/amd/pm: avoid false alarm due to confusing softwareshutdowntemp s…
Aug 25, 2020
226fb99
dm writecache: handle DAX to partitions on persistent memory correctly
Aug 24, 2020
b30f628
dm mpath: fix racey management of PG initialization
snitm Aug 24, 2020
e6ddb1d
dm integrity: fix error reporting in bitmap mode after creation
Aug 31, 2020
9dd74db
dm crypt: Initialize crypto wait structures
damien-lemoal Aug 31, 2020
392a6af
dm cache metadata: Avoid returning cmd->bm wild pointer on error
Sep 1, 2020
cfe85a4
dm thin metadata: Avoid returning cmd->bm wild pointer on error
Sep 1, 2020
291144f
dm thin metadata: Fix use-after-free in dm_bm_set_read_only
Sep 1, 2020
87fb7b0
mm: slub: fix conversion of freelist_corrupted()
Sep 4, 2020
f4fa8d9
mm: madvise: fix vma user-after-free
yang-shi Sep 4, 2020
894a6f0
vfio/pci: Fix SR-IOV VF handling with MMIO blocking
awilliam Jun 25, 2020
e915b3b
perf record: Correct the help info of option "--no-bpf-event"
stkid Aug 19, 2020
59ac5bf
sdhci: tegra: Add missing TMCLK for data timeout
Aug 27, 2020
f2cd862
checkpatch: fix the usage of capture group ( ... )
mrinal-pandey Sep 4, 2020
af7786b
mm/hugetlb: fix a race between hugetlb sysctl handlers
Sep 4, 2020
08eeec4
mm/khugepaged.c: fix khugepaged's request size in collapse_file
dhowells Sep 4, 2020
58c3e86
cfg80211: regulatory: reject invalid hints
jmberg-intel Aug 19, 2020
beaf13e
net: usb: Fix uninit-was-stored issue in asix_read_phy_addr()
himadrics Aug 27, 2020
6ffabce
Linux 5.4.64
gregkh Sep 9, 2020
4c04c44
Merge tag 'v5.4.64' into 5.4.y+qoriq+fslc
rehsack Sep 10, 2020
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
2 changes: 2 additions & 0 deletions Documentation/devicetree/bindings/mmc/mtk-sd.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ Optional properties:
error caused by stop clock(fifo full)
Valid range = [0:0x7]. if not present, default value is 0.
applied to compatible "mediatek,mt2701-mmc".
- resets: Phandle and reset specifier pair to softreset line of MSDC IP.
- reset-names: Should be "hrst".

Examples:
mmc0: mmc@11230000 {
Expand Down
16 changes: 10 additions & 6 deletions Documentation/filesystems/affs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,15 @@ The Amiga protection flags RWEDRWEDHSPARWED are handled as follows:

- R maps to r for user, group and others. On directories, R implies x.

- If both W and D are allowed, w will be set.
- W maps to w.

- E maps to x.

- H and P are always retained and ignored under Linux.
- D is ignored.

- A is always reset when a file is written to.
- H, S and P are always retained and ignored under Linux.

- A is cleared when a file is written to.

User id and group id will be used unless set[gu]id are given as mount
options. Since most of the Amiga file systems are single user systems
Expand All @@ -111,11 +113,13 @@ Linux -> Amiga:

The Linux rwxrwxrwx file mode is handled as follows:

- r permission will set R for user, group and others.
- r permission will allow R for user, group and others.

- w permission will allow W for user, group and others.

- w permission will set W and D for user, group and others.
- x permission of the user will allow E for plain files.

- x permission of the user will set E for plain files.
- D will be allowed for user, group and others.

- All other flags (suid, sgid, ...) are ignored and will
not be retained.
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: GPL-2.0
VERSION = 5
PATCHLEVEL = 4
SUBLEVEL = 63
SUBLEVEL = 64
EXTRAVERSION =
NAME = Kleptomaniac Octopus

Expand Down
14 changes: 4 additions & 10 deletions arch/arc/kernel/perf_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ static int arc_pmu_device_probe(struct platform_device *pdev)
{
struct arc_reg_pct_build pct_bcr;
struct arc_reg_cc_build cc_bcr;
int i, has_interrupts;
int i, has_interrupts, irq;
int counter_size; /* in bits */

union cc_name {
Expand Down Expand Up @@ -637,13 +637,7 @@ static int arc_pmu_device_probe(struct platform_device *pdev)
.attr_groups = arc_pmu->attr_groups,
};

if (has_interrupts) {
int irq = platform_get_irq(pdev, 0);

if (irq < 0) {
pr_err("Cannot get IRQ number for the platform\n");
return -ENODEV;
}
if (has_interrupts && (irq = platform_get_irq(pdev, 0) >= 0)) {

arc_pmu->irq = irq;

Expand All @@ -652,9 +646,9 @@ static int arc_pmu_device_probe(struct platform_device *pdev)
this_cpu_ptr(&arc_pmu_cpu));

on_each_cpu(arc_cpu_pmu_irq_init, &irq, 1);

} else
} else {
arc_pmu->pmu.capabilities |= PERF_PMU_CAP_NO_INTERRUPT;
}

/*
* perf parser doesn't really like '-' symbol in events name, so let's
Expand Down
2 changes: 2 additions & 0 deletions arch/arm64/boot/dts/mediatek/mt7622.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -686,6 +686,8 @@
clocks = <&pericfg CLK_PERI_MSDC30_0_PD>,
<&topckgen CLK_TOP_MSDC50_0_SEL>;
clock-names = "source", "hclk";
resets = <&pericfg MT7622_PERI_MSDC0_SW_RST>;
reset-names = "hrst";
status = "disabled";
};

Expand Down
2 changes: 2 additions & 0 deletions arch/mips/kernel/smp-bmips.c
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,8 @@ static int bmips_boot_secondary(int cpu, struct task_struct *idle)
*/
static void bmips_init_secondary(void)
{
bmips_cpu_setup();

switch (current_cpu_type()) {
case CPU_BMIPS4350:
case CPU_BMIPS4380:
Expand Down
12 changes: 12 additions & 0 deletions arch/mips/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -1240,6 +1240,18 @@ static int enable_restore_fp_context(int msa)
err = own_fpu_inatomic(1);
if (msa && !err) {
enable_msa();
/*
* with MSA enabled, userspace can see MSACSR
* and MSA regs, but the values in them are from
* other task before current task, restore them
* from saved fp/msa context
*/
write_msa_csr(current->thread.fpu.msacsr);
/*
* own_fpu_inatomic(1) just restore low 64bit,
* fix the high 64bit
*/
init_msa_upper();
set_thread_flag(TIF_USEDMSA);
set_thread_flag(TIF_MSA_CTX_LIVE);
}
Expand Down
4 changes: 4 additions & 0 deletions arch/mips/mm/c-r4k.c
Original file line number Diff line number Diff line change
Expand Up @@ -1676,7 +1676,11 @@ static void setup_scache(void)
printk("MIPS secondary cache %ldkB, %s, linesize %d bytes.\n",
scache_size >> 10,
way_string[c->scache.ways], c->scache.linesz);

if (current_cpu_type() == CPU_BMIPS5000)
c->options |= MIPS_CPU_INCLUSIVE_CACHES;
}

#else
if (!(c->scache.flags & MIPS_CACHE_NOT_PRESENT))
panic("Dunno how to handle MIPS32 / MIPS64 second level cache");
Expand Down
28 changes: 14 additions & 14 deletions arch/s390/include/asm/percpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@
typedef typeof(pcp) pcp_op_T__; \
pcp_op_T__ old__, new__, prev__; \
pcp_op_T__ *ptr__; \
preempt_disable(); \
preempt_disable_notrace(); \
ptr__ = raw_cpu_ptr(&(pcp)); \
prev__ = *ptr__; \
do { \
old__ = prev__; \
new__ = old__ op (val); \
prev__ = cmpxchg(ptr__, old__, new__); \
} while (prev__ != old__); \
preempt_enable(); \
preempt_enable_notrace(); \
new__; \
})

Expand Down Expand Up @@ -68,7 +68,7 @@
typedef typeof(pcp) pcp_op_T__; \
pcp_op_T__ val__ = (val); \
pcp_op_T__ old__, *ptr__; \
preempt_disable(); \
preempt_disable_notrace(); \
ptr__ = raw_cpu_ptr(&(pcp)); \
if (__builtin_constant_p(val__) && \
((szcast)val__ > -129) && ((szcast)val__ < 128)) { \
Expand All @@ -84,7 +84,7 @@
: [val__] "d" (val__) \
: "cc"); \
} \
preempt_enable(); \
preempt_enable_notrace(); \
}

#define this_cpu_add_4(pcp, val) arch_this_cpu_add(pcp, val, "laa", "asi", int)
Expand All @@ -95,14 +95,14 @@
typedef typeof(pcp) pcp_op_T__; \
pcp_op_T__ val__ = (val); \
pcp_op_T__ old__, *ptr__; \
preempt_disable(); \
preempt_disable_notrace(); \
ptr__ = raw_cpu_ptr(&(pcp)); \
asm volatile( \
op " %[old__],%[val__],%[ptr__]\n" \
: [old__] "=d" (old__), [ptr__] "+Q" (*ptr__) \
: [val__] "d" (val__) \
: "cc"); \
preempt_enable(); \
preempt_enable_notrace(); \
old__ + val__; \
})

Expand All @@ -114,14 +114,14 @@
typedef typeof(pcp) pcp_op_T__; \
pcp_op_T__ val__ = (val); \
pcp_op_T__ old__, *ptr__; \
preempt_disable(); \
preempt_disable_notrace(); \
ptr__ = raw_cpu_ptr(&(pcp)); \
asm volatile( \
op " %[old__],%[val__],%[ptr__]\n" \
: [old__] "=d" (old__), [ptr__] "+Q" (*ptr__) \
: [val__] "d" (val__) \
: "cc"); \
preempt_enable(); \
preempt_enable_notrace(); \
}

#define this_cpu_and_4(pcp, val) arch_this_cpu_to_op(pcp, val, "lan")
Expand All @@ -136,10 +136,10 @@
typedef typeof(pcp) pcp_op_T__; \
pcp_op_T__ ret__; \
pcp_op_T__ *ptr__; \
preempt_disable(); \
preempt_disable_notrace(); \
ptr__ = raw_cpu_ptr(&(pcp)); \
ret__ = cmpxchg(ptr__, oval, nval); \
preempt_enable(); \
preempt_enable_notrace(); \
ret__; \
})

Expand All @@ -152,10 +152,10 @@
({ \
typeof(pcp) *ptr__; \
typeof(pcp) ret__; \
preempt_disable(); \
preempt_disable_notrace(); \
ptr__ = raw_cpu_ptr(&(pcp)); \
ret__ = xchg(ptr__, nval); \
preempt_enable(); \
preempt_enable_notrace(); \
ret__; \
})

Expand All @@ -171,11 +171,11 @@
typeof(pcp1) *p1__; \
typeof(pcp2) *p2__; \
int ret__; \
preempt_disable(); \
preempt_disable_notrace(); \
p1__ = raw_cpu_ptr(&(pcp1)); \
p2__ = raw_cpu_ptr(&(pcp2)); \
ret__ = __cmpxchg_double(p1__, p2__, o1__, o2__, n1__, n2__); \
preempt_enable(); \
preempt_enable_notrace(); \
ret__; \
})

Expand Down
2 changes: 1 addition & 1 deletion arch/x86/include/asm/ptrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,8 @@ static inline unsigned long regs_get_kernel_argument(struct pt_regs *regs,
static const unsigned int argument_offs[] = {
#ifdef __i386__
offsetof(struct pt_regs, ax),
offsetof(struct pt_regs, cx),
offsetof(struct pt_regs, dx),
offsetof(struct pt_regs, cx),
#define NR_REG_ARGUMENTS 3
#else
offsetof(struct pt_regs, di),
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/mm/numa_emulation.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ static int __init split_nodes_size_interleave(struct numa_meminfo *ei,
u64 addr, u64 max_addr, u64 size)
{
return split_nodes_size_interleave_uniform(ei, pi, addr, max_addr, size,
0, NULL, NUMA_NO_NODE);
0, NULL, 0);
}

int __init setup_emu2phys_nid(int *dfl_phys_nid)
Expand Down
1 change: 1 addition & 0 deletions block/blk-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,7 @@ struct request_queue *blk_alloc_queue_node(gfp_t gfp_mask, int node_id)
goto fail_stats;

q->backing_dev_info->ra_pages = VM_READAHEAD_PAGES;
q->backing_dev_info->io_pages = VM_READAHEAD_PAGES;
q->backing_dev_info->capabilities = BDI_CAP_CGROUP_WRITEBACK;
q->backing_dev_info->name = "block";
q->node = node_id;
Expand Down
5 changes: 3 additions & 2 deletions block/blk-iocost.c
Original file line number Diff line number Diff line change
Expand Up @@ -2074,14 +2074,15 @@ static void ioc_pd_free(struct blkg_policy_data *pd)
{
struct ioc_gq *iocg = pd_to_iocg(pd);
struct ioc *ioc = iocg->ioc;
unsigned long flags;

if (ioc) {
spin_lock(&ioc->lock);
spin_lock_irqsave(&ioc->lock, flags);
if (!list_empty(&iocg->active_list)) {
propagate_active_weight(iocg, 0, 0);
list_del_init(&iocg->active_list);
}
spin_unlock(&ioc->lock);
spin_unlock_irqrestore(&ioc->lock, flags);

hrtimer_cancel(&iocg->waitq_timer);
hrtimer_cancel(&iocg->delay_timer);
Expand Down
5 changes: 2 additions & 3 deletions drivers/ata/libata-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -4474,9 +4474,8 @@ static const struct ata_blacklist_entry ata_device_blacklist [] = {
/* https://bugzilla.kernel.org/show_bug.cgi?id=15573 */
{ "C300-CTFDDAC128MAG", "0001", ATA_HORKAGE_NONCQ, },

/* Some Sandisk SSDs lock up hard with NCQ enabled. Reported on
SD7SN6S256G and SD8SN8U256G */
{ "SanDisk SD[78]SN*G", NULL, ATA_HORKAGE_NONCQ, },
/* Sandisk SD7/8/9s lock up hard on large trims */
{ "SanDisk SD[789]*", NULL, ATA_HORKAGE_MAX_TRIM_128M, },

/* devices which puke on READ_NATIVE_MAX */
{ "HDS724040KLSA80", "KFAOA20N", ATA_HORKAGE_BROKEN_HPA, },
Expand Down
8 changes: 7 additions & 1 deletion drivers/ata/libata-scsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -2374,6 +2374,7 @@ static unsigned int ata_scsiop_inq_89(struct ata_scsi_args *args, u8 *rbuf)

static unsigned int ata_scsiop_inq_b0(struct ata_scsi_args *args, u8 *rbuf)
{
struct ata_device *dev = args->dev;
u16 min_io_sectors;

rbuf[1] = 0xb0;
Expand All @@ -2399,7 +2400,12 @@ static unsigned int ata_scsiop_inq_b0(struct ata_scsi_args *args, u8 *rbuf)
* with the unmap bit set.
*/
if (ata_id_has_trim(args->id)) {
put_unaligned_be64(65535 * ATA_MAX_TRIM_RNUM, &rbuf[36]);
u64 max_blocks = 65535 * ATA_MAX_TRIM_RNUM;

if (dev->horkage & ATA_HORKAGE_MAX_TRIM_128M)
max_blocks = 128 << (20 - SECTOR_SHIFT);

put_unaligned_be64(max_blocks, &rbuf[36]);
put_unaligned_be32(1, &rbuf[28]);
}

Expand Down
2 changes: 2 additions & 0 deletions drivers/block/nbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1349,6 +1349,8 @@ static void nbd_set_cmd_timeout(struct nbd_device *nbd, u64 timeout)
nbd->tag_set.timeout = timeout * HZ;
if (timeout)
blk_queue_rq_timeout(nbd->disk->queue, timeout * HZ);
else
blk_queue_rq_timeout(nbd->disk->queue, 30 * HZ);
}

/* Must be called with config_lock held */
Expand Down
3 changes: 2 additions & 1 deletion drivers/cpuidle/cpuidle.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ static void enter_s2idle_proper(struct cpuidle_driver *drv,
*/
stop_critical_timings();
drv->states[index].enter_s2idle(dev, drv, index);
WARN_ON(!irqs_disabled());
if (WARN_ON_ONCE(!irqs_disabled()))
local_irq_disable();
/*
* timekeeping_resume() that will be called by tick_unfreeze() for the
* first CPU executing it calls functions containing RCU read-side
Expand Down
2 changes: 2 additions & 0 deletions drivers/dma/at_hdmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -1667,6 +1667,8 @@ static struct dma_chan *at_dma_xlate(struct of_phandle_args *dma_spec,
return NULL;

dmac_pdev = of_find_device_by_node(dma_spec->np);
if (!dmac_pdev)
return NULL;

dma_cap_zero(mask);
dma_cap_set(DMA_SLAVE, mask);
Expand Down
11 changes: 6 additions & 5 deletions drivers/dma/dw-edma/dw-edma-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -391,35 +391,36 @@ dw_edma_device_transfer(struct dw_edma_transfer *xfer)
if (xfer->cyclic) {
burst->dar = xfer->xfer.cyclic.paddr;
} else {
burst->dar = sg_dma_address(sg);
burst->dar = dst_addr;
/* Unlike the typical assumption by other
* drivers/IPs the peripheral memory isn't
* a FIFO memory, in this case, it's a
* linear memory and that why the source
* and destination addresses are increased
* by the same portion (data length)
*/
src_addr += sg_dma_len(sg);
}
} else {
burst->dar = dst_addr;
if (xfer->cyclic) {
burst->sar = xfer->xfer.cyclic.paddr;
} else {
burst->sar = sg_dma_address(sg);
burst->sar = src_addr;
/* Unlike the typical assumption by other
* drivers/IPs the peripheral memory isn't
* a FIFO memory, in this case, it's a
* linear memory and that why the source
* and destination addresses are increased
* by the same portion (data length)
*/
dst_addr += sg_dma_len(sg);
}
}

if (!xfer->cyclic)
if (!xfer->cyclic) {
src_addr += sg_dma_len(sg);
dst_addr += sg_dma_len(sg);
sg = sg_next(sg);
}
}

return vchan_tx_prep(&chan->vc, &desc->vd, xfer->flags);
Expand Down
Loading