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 base #15

Merged
merged 260 commits into from
Feb 9, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
260 commits
Select commit Hold shift + click to select a range
fd989db
cris: Fix conflicting types for _etext, _edata, _end
sergey-senozhatsky Jan 5, 2018
f18affb
iommu/omap: Fix debugfs_create_*() usage
geertu Jan 2, 2018
dc98b84
iommu/exynos: Don't unconditionally steal bus ops
rmurphy-arm Jan 9, 2018
9d2e650
iommu/vt-d: Use domain instead of cache fetching
xzpeter Jan 10, 2018
5e3b4a1
iommu/vt-d: Enable upto 57 bits of domain address width
sohilmeh Dec 20, 2017
59103ca
iommu/vt-d: Add a check for 1GB page support
sohilmeh Dec 20, 2017
f1ac10c
iommu/vt-d: Add a check for 5-level paging support
sohilmeh Dec 20, 2017
2f13eb7
iommu/vt-d: Enable 5-level paging mode in the PASID entry
sohilmeh Dec 20, 2017
892d7aa
iommu/msm: Claim bus ops on probe
rmurphy-arm Jan 9, 2018
e7747d8
iommu/ipmmu-vmsa: Remove redundant of_iommu_init_fn hook
rmurphy-arm Jan 9, 2018
b0c560f
iommu: Clean up of_iommu_init_fn
rmurphy-arm Jan 9, 2018
fedbd94
Merge branches 'arm/renesas', 'arm/omap', 'arm/exynos', 'x86/amd', 'x…
joergroedel Jan 17, 2018
4827250
svcrdma: Post Receives in the Receive completion handler
chucklever Jan 3, 2018
af87fae
pcmcia: remove mailing list, update MAINTAINERS
Jan 22, 2018
3490a69
pcmcia: use proper printk format for resource
Jan 22, 2018
d3fdd70
pcmcia: soc_common: Handle return value of clk_prepare_enable
ArvindYadavCs Jun 1, 2017
2e584bc
rbd: obj_request->completion is unused
idryomov Jan 15, 2018
a0c5895
rbd: use kmem_cache_zalloc() in rbd_img_request_create()
idryomov Jan 22, 2018
d98f153
rbd: don't NULL out ->obj_request in rbd_img_obj_parent_read_full()
idryomov Jan 18, 2018
e573427
rbd: whitelist RBD_FEATURE_OPERATIONS feature bit
idryomov Jan 16, 2018
222b7f9
ceph: voluntarily drop Ax cap for requests that create new inode
ukernel Nov 23, 2017
d19a0b5
ceph: voluntarily drop Lx cap for link/rename requests
ukernel Nov 23, 2017
be70489
ceph: properly drop caps for setattr request
ukernel Nov 23, 2017
87c91a9
ceph: voluntarily drop Fx cap for readdir request
ukernel Nov 23, 2017
8d8f371
ceph: cleanup traceless reply handling for rename
ukernel Nov 24, 2017
97aeb6b
ceph: use atomic_t for ceph_inode_info::i_shared_gen
ukernel Nov 27, 2017
5495c2d
ceph: avoid dereferencing invalid pointer during cached readdir
ukernel Nov 27, 2017
5d98830
ceph: track read contexts in ceph_file_info
ukernel Dec 15, 2017
314c473
ceph: fix un-balanced fsc->writeback_count update
ukernel Dec 15, 2017
7d9c919
ceph: fix incorrect snaprealm when adding caps
ukernel Dec 19, 2017
d84b37f
ceph: limit rate of cap import/export error messages
ukernel Jan 3, 2018
ee612d9
ceph: delete unreachable code in ceph_check_caps()
ukernel Jan 8, 2018
0f439c7
ceph: fix race of queuing delayed caps
ukernel Jan 8, 2018
e30ee58
ceph: try to allocate enough memory for reserved caps
david-z Jan 24, 2018
affff07
libceph: check kstrndup() return value
Jan 26, 2018
a861702
drm/ttm: fix missing parameter change for ttm_bo_cleanup_refs
Jan 19, 2018
95244db
drm/ttm: Fix 'buf' pointer update in ttm_bo_vm_access_kmap() (v2)
Jan 26, 2018
59fd27c
drm/amdgpu: use queue 0 for kiq ring
huangrui Dec 15, 2017
d3aab67
drm/amdgpu: fix another potential cause of VM faults
ChristianKoenigAMD Jan 24, 2018
153b9e1
drm/amdgpu: fix locking in vega10_ih_prescreen_iv
ChristianKoenigAMD Jan 24, 2018
147f255
drm/amdgpu: remove WARN_ON when VM isn't found v2
ChristianKoenigAMD Jan 24, 2018
3a61b52
drm/radeon: adjust tested variable
JuliaLawall Jan 27, 2018
7e24a3e
drm/amdgpu: disable coarse grain clockgating for ST
Jan 19, 2018
16515a6
ceph: improving efficiency of syncfs
Jan 30, 2018
4d32029
virtio_balloon: include disk/file caches memory statistics
nyoxi Nov 12, 2017
473f0b1
vhost/scsi: Improve a size determination in four functions
elfring May 20, 2017
c2c9f9b
virtio-mmio: Use PTR_ERR_OR_ZERO()
Carmichael561 Nov 28, 2017
0a9e63a
firmware: Use PTR_ERR_OR_ZERO()
Carmichael561 Nov 28, 2017
3191914
virtio: virtio_mmio: make of_device_ids const.
ArvindYadavCs Jun 19, 2017
f229a55
virtio/ringtest: fix up need_event math
mstsirkin Oct 26, 2017
a311650
virtio/ringtest: virtio_ring: fix up need_event math
mstsirkin Oct 27, 2017
7b95fec
virtio: make VIRTIO a menuconfig to ease disabling it all
vincele Jan 7, 2018
daf2a50
virtio_blk: print capacity at probe time
stefanhaRH Jan 3, 2018
ac964d7
vhost: Remove the unused variable.
xpu22 Jan 9, 2018
f6f93f7
vhost: remove unused lock check flag in vhost_dev_cleanup()
Dec 24, 2017
f2b44cd
virtio: split device_register into device_initialize and device_add
Dec 21, 2017
33635bd
virtio_pci: don't kfree device on register failure
Dec 21, 2017
0063e8b
virtio_vop: don't kfree device on register failure
Dec 21, 2017
03ee47a
ringtest: ring.c malloc & memset to calloc
petermalone Feb 16, 2017
e050c7d
vhost: don't hold onto file pointer for VHOST_SET_VRING_CALL
ebiggers Jan 6, 2018
09f332a
vhost: don't hold onto file pointer for VHOST_SET_VRING_ERR
ebiggers Jan 6, 2018
d25cc43
vhost: don't hold onto file pointer for VHOST_SET_LOG_FD
ebiggers Jan 6, 2018
d9df2c0
drm/i915/gvt: Fix gen8/9_render_mmio_list[0] don't take effect
xiongzha Dec 26, 2017
03fa935
drm/i915/gvt: add PLANE_KEYMAX regs to mmio track list
pei6 Dec 26, 2017
cc753fb
drm/i915/gvt: validate gfn before set shadow page entry
hyuan3 Dec 22, 2017
8466169
drm/i915/gvt: Do not use I915_NUM_ENGINES to iterate over the mocs re…
mthierry Jan 8, 2018
2afba81
drm/i915/glk: Disable Guc and HuC on GLK
anushasr Jan 3, 2018
90024a5
drm/i915: Try EDID bitbanging on HDMI after failed read
StefanBruens Dec 31, 2017
6389902
drm/i915: Fix using BIT_ULL() vs. BIT() for power domain masks
ideak Jan 9, 2018
c950af5
drm/i915/guc: Add uc_fini_wq in gem_init unwind path
Jan 10, 2018
25da77f
drm/i915: Stop getting the fault address from RING_FAULT_REG
Dec 22, 2017
cc4f8fc
drm/i915/pmu: Reconstruct active state on starting busy-stats
ickle Jan 11, 2018
412718a
drm/i915/gvt: Keep obj->dma_buf link NULL during exporting
TinaZhangZW Jan 15, 2018
14b4434
drm/i915/gvt: cancel virtual vblank timer when no vGPU exists
zhenyw Jan 15, 2018
61a6694
drm/i915/gvt: cancel scheduler timer when no vGPU exists
zhenyw Jan 15, 2018
d13a847
drm/i915: Always call to intel_display_set_init_power() in resume_early.
mlankhorst Jan 16, 2018
c5bd1fc
drm/i915: Only attempt to scan the requested number of shrinker slabs
ickle Jan 15, 2018
124804c
drm/i915: Protect WC stash allocation against direct reclaim
ickle Jan 21, 2018
9965db2
drm/i915: Check for fused or unused pipes
mkahola Dec 18, 2017
a306343
drm/i915/edp: Do not do link training fallback or prune modes on EDP
Oct 12, 2017
b5a756a
Revert "drm/i915: mark all device info struct with __initconst"
llandwerlin-intel Jan 29, 2018
b26a32a
drm/i915: Always run hangcheck while the GPU is busy
ickle Jan 29, 2018
751b01c
drm/i915/ppgtt: Pin page directories before allocation
ickle Jan 31, 2018
fe9748b
drm/nouveau/pmu/fuc: don't use movw directly anymore
karolherbst Nov 6, 2017
94ee54d
drm/nouveau/drm/nouveau/mmu: fix odd_ptr_err.cocci warnings
chrboe Nov 30, 2017
ee0d581
drm/nouveau: nouveau: use correct string length
arndb Dec 4, 2017
b7997a3
drm/nouveau/secboot/r370: move a bunch of r375 stuff to a new impleme…
Dec 12, 2017
dcc80c8
drm/nouveau/secboot/r370: implement support for booting LS SEC2 ucode
Dec 12, 2017
2c5ac5b
drm/nouveau/secboot/gp108: implement on top of acr_r370
Dec 12, 2017
27cda22
drm/nouveau/fbcon: add module parameter to select bits-per-pixel
Jan 12, 2018
561464e
drm/nouveau/bo: add helper functions for handling pinned+mapped buffers
Jan 12, 2018
11fc017
drm/nouveau/kms/nv50: prepare for double-buffered LUTs
Jan 12, 2018
e75182f
drm/nouveau/kms/nv50: use "low res" lut for indexed mode
imirkin Dec 31, 2017
90df522
drm/nouveau/kms/nv50: use INTERPOLATE_257_UNITY_RANGE LUT on newer ch…
Jan 12, 2018
f4778f0
drm/nouveau/kms/nv50: fix handling of gamma since atomic conversion
Jan 12, 2018
b138eca
drm/nouveau: Add support for basic clockgating on Kepler1
Lyude Feb 1, 2018
1bab09a
drm/nouveau: Add support for BLCG on Kepler1
Lyude Feb 1, 2018
7d094d2
drm/nouveau: Add support for BLCG on Kepler2
Lyude Feb 1, 2018
a0f7908
drm/nouveau: Add support for SLCG for Kepler2
Lyude Feb 1, 2018
3ea7455
drm/nouveau: Introduce NvPmEnableGating option
Lyude Feb 1, 2018
e64fe9d
drm/nouveau/mmu: Fix trailing semicolon
luisbg Jan 17, 2018
b515483
drm/nouveau/clk: fix gcc-7 -Wint-in-bool-context warning
arndb Jan 16, 2018
97e45dd
ACPI / video: Use true for boolean value
GustavoARSilva Jan 23, 2018
0eedae8
ACPICA: Linux: add support for X32 ABI compilation
anujm1 Jan 24, 2018
761f0b8
ACPICA: Avoid NULL pointer arithmetic
juikim Jan 24, 2018
9cf02a0
ACPICA: Prefer ACPI_TO_POINTER() over ACPI_ADD_PTR()
juikim Jan 24, 2018
0649a09
ACPICA: Add a missing pair of parentheses
juikim Jan 24, 2018
5a98231
ACPI: export acpi_bus_get_status_handle()
jwrdegoede Jan 26, 2018
b0fd677
PCI: acpiphp_ibm: prepare for acpi_get_object_info() no longer return…
jwrdegoede Jan 26, 2018
54ddce7
ACPI / bus: Do not call _STA on battery devices with unmet dependencies
jwrdegoede Jan 26, 2018
63347db
ACPI / scan: Use acpi_bus_get_status() to initialize ACPI_TYPE_DEVICE…
jwrdegoede Jan 26, 2018
ba1edb9
ACPI: processor_perflib: Do not send _PPC change notification if not …
yu-chen-surf Jan 29, 2018
4446823
ACPI / battery: Add quirk for Asus UX360UA and UX410UAK
khfeng Jan 29, 2018
248e884
ACPI / processor: Set default C1 idle state description
yghannam Jan 29, 2018
703cbaa
cpufreq: Skip cpufreq resume if it's not suspended
byannv Jan 23, 2018
d6a841a
Merge tag 'drm-intel-next-fixes-2018-02-01' of git://anongit.freedesk…
airlied Feb 5, 2018
b8a89f5
Merge branch 'linux-4.16' of git://github.com/skeggsb/linux into drm-…
airlied Feb 5, 2018
d0945ca
sunrpc: remove dead code in svc_sock_setbufsize
Jan 8, 2018
4f17641
nfsd: Detect unhashed stids in nfsd4_verify_open_stid()
trondmypd Jan 12, 2018
2502072
nfsd4: don't set lock stateid's sc_type to CLOSED
Jan 17, 2018
80d1724
gcc-plugins: Add include required by GCC release 8
valdisk Feb 4, 2018
b867291
gcc-plugins: Use dynamic initializers
kees Feb 6, 2018
fb4bbba
drm/amdgpu: re-enable CGCG on CZ and disable on ST
Feb 5, 2018
da6f832
ACPICA: All acpica: Update copyrights to 2018
acpibob Jan 4, 2018
9481a2c
ACPICA: Update version to 20180105
acpibob Jan 24, 2018
e441501
afs: Add missing afs_put_cell()
dhowells Feb 6, 2018
fe4d774
afs: Fix missing cursor clearance
dhowells Feb 6, 2018
8305e57
afs: Need to clear responded flag in addr cursor
dhowells Feb 6, 2018
45df846
afs: Fix server list handling
dhowells Feb 6, 2018
63dc4e4
afs: Remove unused code
dhowells Feb 6, 2018
16280a1
afs: Rearrange afs_select_fileserver() a little
dhowells Feb 6, 2018
4d673da
afs: Support the AFS dynamic root
dhowells Feb 6, 2018
3690470
ACPI / bus: Parse tables as term_list for Dell XPS 9570 and Precision…
khfeng Feb 5, 2018
f859422
x86: PM: Make APM idle driver initialize polling state
rafaeljw Feb 6, 2018
7569a06
drm/i915/gvt: refine intel_vgpu_submission_ops as per engine ops
weinanl Jan 26, 2018
9212b13
drm/i915/gvt: only reset execlist state of one engine during VM engin…
weinanl Jan 26, 2018
d480b28
drm/i915/gvt: Fix aperture read/write emulation when enable x-no-mmap=on
Jan 30, 2018
95925b9
drm/i915/gvt: Use KVM r/w to access guest opregion
TinaZhangZW Jan 31, 2018
5e1df40
drm/i915/bxt, glk: Increase PCODE timeouts during CDCLK freq changing
ideak Jan 30, 2018
b18224e
drm/i915/cmdparser: Check reg_table_count before derefencing.
Feb 5, 2018
b3ad99e
drm/i915/cmdparser: Do not check past the cmd length.
Feb 5, 2018
f24c606
drm/i915/cnp: Ignore VBT request for know invalid DDC pin.
rodrigovivi Jan 23, 2018
6e3322c
drm/i915/cnp: Properly handle VBT ddc pin out of bounds.
rodrigovivi Jan 25, 2018
051803c
radix tree test suite: Remove ARRAY_SIZE
Nov 4, 2017
490645d
idr test suite: Fix ida_test_random()
Nov 10, 2017
6e6d301
IDR test suite: Check handling negative end correctly
Nov 28, 2017
b3f08b1
MAINTAINERS: update orangefs list and add myself as reviewer
Feb 1, 2018
7a3bc1f
orangefs: make orangefs_client_debug_init static
Jan 26, 2018
79d7cd6
orangefs: remove gossip_ldebug and gossip_lerr
Jan 26, 2018
538e304
orangefs: remove ORANGEFS_KERNEL_DEBUG
Jan 26, 2018
4d0cac7
orangefs: make orangefs_make_bad_inode static
Jan 26, 2018
6bdfb48
orangefs: use correct string length
Jan 8, 2018
cf546ab
Orangefs: don't propogate whacky error codes
hubcapsc Jan 25, 2018
480e5ae
orangefs: simplify orangefs_inode_is_stale
Feb 6, 2018
74e938c
orangefs: reverse sense of is-inode-stale test in d_revalidate
Feb 6, 2018
9c16094
idr: Delete idr_remove_ext function
Nov 28, 2017
234a462
idr: Delete idr_replace_ext function
Nov 28, 2017
322d884
idr: Delete idr_find_ext function
Nov 28, 2017
e096f6a
idr: Add idr_alloc_u32 helper
Nov 28, 2017
339913a
net sched actions: Convert to use idr_alloc_u32
Nov 28, 2017
9ce7549
cls_api: Convert to idr_alloc_u32
Feb 6, 2018
05af0eb
cls_basic: Convert to use idr_alloc_u32
Nov 28, 2017
0b4ce8d
cls_bpf: Convert to use idr_alloc_u32
Nov 28, 2017
85bd043
cls_flower: Convert to idr_alloc_u32
Nov 28, 2017
ffdc2d9
cls_u32: Reinstate cyclic allocation
Nov 28, 2017
f730cb9
cls_u32: Convert to idr_alloc_u32
Nov 28, 2017
460488c
idr: Remove idr_alloc_ext
Nov 28, 2017
7a45757
idr: Rename idr_for_each_entry_ext
Nov 28, 2017
72fd6c7
idr: Warn if old iterators see large IDs
Nov 28, 2017
6ce711f
idr: Make 1-based IDRs more efficient
Nov 30, 2017
ac665d9
idr: Add documentation
Feb 6, 2018
202fb4e
arm64: spinlock: Fix theoretical trylock() A-B-A with LSE atomics
wildea01 Jan 31, 2018
3060e9f
arm64: Add software workaround for Falkor erratum 1041
Jan 29, 2018
41acec6
arm64: kpti: Make use of nG dependent on arm64_kernel_unmapped_at_el0()
wildea01 Jan 29, 2018
4e60205
arm64: mm: Permit transitioning from Global to Non-Global without BBM
wildea01 Jan 29, 2018
f992b4d
arm64: kpti: Add ->enable callback to remap swapper using nG mappings
wildea01 Feb 6, 2018
6dc52b1
arm64: Force KPTI to be disabled on Cavium ThunderX
Jan 29, 2018
fa0465f
arm64: assembler: Change order of macro arguments in phys_to_ttbr
wildea01 Jan 29, 2018
f167211
arm64: entry: Reword comment about post_ttbr_update_workaround
wildea01 Jan 29, 2018
79ddab3
arm64: assembler: Align phys_to_pte with pte_to_phys
wildea01 Jan 29, 2018
439e70e
arm64: idmap: Use "awx" flags for .idmap.text .pushsection directives
wildea01 Jan 29, 2018
669474e
arm64: barrier: Add CSDB macros to control data-value prediction
wildea01 Feb 5, 2018
022620e
arm64: Implement array_index_mask_nospec()
rmurphy-arm Feb 5, 2018
51369e3
arm64: Make USER_DS an inclusive limit
rmurphy-arm Feb 5, 2018
4d8efc2
arm64: Use pointer masking to limit uaccess speculation
rmurphy-arm Feb 5, 2018
6314d90
arm64: entry: Ensure branch through syscall table is bounded under sp…
wildea01 Feb 5, 2018
c2f0ad4
arm64: uaccess: Prevent speculative use of the current addr_limit
wildea01 Feb 5, 2018
8462408
arm64: uaccess: Don't bother eliding access_ok checks in __{get, put}…
wildea01 Feb 5, 2018
f71c2ff
arm64: uaccess: Mask __user pointers for __arch_{clear, copy_*}_user
wildea01 Feb 5, 2018
91b2d34
arm64: futex: Mask __user pointers prior to dereference
wildea01 Feb 5, 2018
5dfc6ed
arm64: entry: Apply BP hardening for high-priority synchronous except…
wildea01 Feb 2, 2018
30d88c0
arm64: entry: Apply BP hardening for suspicious interrupts from EL0
wildea01 Feb 2, 2018
c0938c7
arm64: KVM: Fix SMCCC handling of unimplemented SMC/HVC calls
Feb 6, 2018
20e8175
arm: KVM: Fix SMCCC handling of unimplemented SMC/HVC calls
Feb 6, 2018
f5115e8
arm64: KVM: Increment PC after handling an SMC trap
Feb 6, 2018
1a2fb94
arm/arm64: KVM: Consolidate the PSCI include files
Feb 6, 2018
d0a144f
arm/arm64: KVM: Add PSCI_VERSION helper
Feb 6, 2018
84684fe
arm/arm64: KVM: Add smccc accessors to PSCI code
Feb 6, 2018
58e0b22
arm/arm64: KVM: Implement PSCI 1.0 support
Feb 6, 2018
09e6be1
arm/arm64: KVM: Advertise SMCCC v1.1
Feb 6, 2018
a4097b3
arm/arm64: KVM: Turn kvm_psci_version into a static inline
Feb 6, 2018
6167ec5
arm64: KVM: Report SMCCC_ARCH_WORKAROUND_1 BP hardening support
Feb 6, 2018
f72af90
arm64: KVM: Add SMCCC_ARCH_WORKAROUND_1 fast handling
Feb 6, 2018
09a8d6d
firmware/psci: Expose PSCI conduit
Feb 6, 2018
e78eef5
firmware/psci: Expose SMCCC version through psci_ops
Feb 6, 2018
ded4c39
arm/arm64: smccc: Make function identifiers an unsigned quantity
Feb 6, 2018
f2d3b2e
arm/arm64: smccc: Implement SMCCC v1.1 inline primitive
Feb 6, 2018
b092201
arm64: Add ARM_SMCCC_ARCH_WORKAROUND_1 BP hardening support
Feb 6, 2018
3a0a397
arm64: Kill PSCI_GET_VERSION as a variant-2 workaround
Feb 6, 2018
8906743
ACPI / tables: Add IORT to injectable table list
Feb 6, 2018
b52f451
ACPI / CPPC: Use 64-bit arithmetic instead of 32-bit
GustavoARSilva Feb 6, 2018
59a3b3a
cpufreq: AMD: Ignore the check for ProcFeedback in ST/CZ
Jan 18, 2018
0231d00
ACPI: SPCR: Make SPCR available to x86
prarit Jan 18, 2018
3d70671
cpufreq: remove at32ap-cpufreq
montjoie Jan 18, 2018
eb85c50
cpufreq: scpi: fix static checker warning cdev isn't an ERR_PTR
sudeep-holla Jan 22, 2018
a3381e3
PM / domains: Fix up domain-idle-states OF parsing
storulf Jan 23, 2018
168b651
x86: hibernate: fix swsusp_arch_resume() prototype
arndb Feb 2, 2018
2dd2779
Merge branch 'drm-next-4.16' of git://people.freedesktop.org/~agd5f/l…
airlied Feb 7, 2018
6dd3104
drm/i915/bios: add DP max link rate to VBT child device struct
jnikula Jan 18, 2018
94fc27a
Merge tag 'drm-intel-next-fixes-2018-02-07' of git://anongit.freedesk…
airlied Feb 7, 2018
43cdd1b
ACPI: sbshc: remove raw pointer from printk() message
gregkh Jan 19, 2018
0725390
cpufreq: scpi: fix error return code in scpi_cpufreq_init()
Jan 23, 2018
70f6bf2
cpufreq: intel_pstate: Enable HWP during system resume on CPU0
yu-chen-surf Jan 29, 2018
ffd81dc
cpufreq: Add and use cpufreq_for_each_{valid_,}entry_idx()
Jan 30, 2018
d040473
arm: imx: Add MODULE_ALIAS for cpufreq
kwizart Jan 30, 2018
616f160
Merge branches 'pm-cpufreq', 'pm-cpuidle' and 'pm-domains'
rafaeljw Feb 8, 2018
6e03772
CRIS: Restore mistakenly cleared kernel Makefile
Feb 6, 2018
b1738e3
Merge branch 'acpica'
rafaeljw Feb 8, 2018
3c9c75d
Merge branches 'acpi-tables', 'acpi-bus' and 'acpi-processor'
rafaeljw Feb 8, 2018
d4abd46
Merge branches 'acpi-video', 'acpi-battery' and 'acpi-cppc'
rafaeljw Feb 8, 2018
977e415
Merge tags 'cris-for-4.16' and 'cris-for-4.16-urgent' of git://git.ke…
torvalds Feb 8, 2018
0078117
nfsd: return RESOURCE not GARBAGE_ARGS on too many ops
Nov 15, 2017
76c4794
nfsd: encode stat->mtime for getattr instead of inode->i_mtime
amir73il Jan 3, 2018
39ca1bf
nfsd: store stat times in fill_pre_wcc() instead of inode times
amir73il Jan 3, 2018
2285ae7
NFSD: hide unused svcxdr_dupstr()
arndb Jan 22, 2018
175e031
svcrdma: Fix Read chunk round-up
chucklever Feb 2, 2018
846ade7
Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/gi…
torvalds Feb 8, 2018
c013632
Merge tag 'arm64-upstream' of git://git.kernel.org/pub/scm/linux/kern…
torvalds Feb 8, 2018
a8c6db0
cramfs: better MTD dependency expression
Feb 8, 2018
9e95dae
Merge tag 'ceph-for-4.16-rc1' of git://github.com/ceph/ceph-client
torvalds Feb 8, 2018
fe26adf
Merge tag 'drm-for-v4.16-part2-fixes' of git://people.freedesktop.org…
torvalds Feb 8, 2018
605dc77
Merge branch 'pcmcia' of git://git.kernel.org/pub/scm/linux/kernel/gi…
torvalds Feb 8, 2018
ef9417e
Merge tag 'iommu-updates-v4.16' of git://git.kernel.org/pub/scm/linux…
torvalds Feb 8, 2018
8115333
Merge tag 'afs-next-20180208' of git://git.kernel.org/pub/scm/linux/k…
torvalds Feb 8, 2018
a0f7938
Merge tag 'for-linus-4.16' of git://git.kernel.org/pub/scm/linux/kern…
torvalds Feb 8, 2018
4ed8244
Merge tag 'gcc-plugins-v4.16-rc1' of git://git.kernel.org/pub/scm/lin…
torvalds Feb 8, 2018
9d21874
Merge branch 'idr-2018-02-06' of git://git.infradead.org/users/willy/…
torvalds Feb 8, 2018
f1517df
Merge tag 'nfsd-4.16' of git://linux-nfs.org/~bfields/linux
torvalds Feb 8, 2018
a051c14
Merge tag 'pm-part2-4.16-rc1' of git://git.kernel.org/pub/scm/linux/k…
torvalds Feb 9, 2018
54ce685
Merge tag 'acpi-part2-4.16-rc1' of git://git.kernel.org/pub/scm/linux…
torvalds Feb 9, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 6 additions & 3 deletions Documentation/admin-guide/kernel-parameters.txt
Original file line number Diff line number Diff line change
Expand Up @@ -931,9 +931,12 @@

earlycon= [KNL] Output early console device and options.

When used with no options, the early console is
determined by the stdout-path property in device
tree's chosen node.
[ARM64] The early console is determined by the
stdout-path property in device tree's chosen node,
or determined by the ACPI SPCR table.

[X86] When used with no options the early console is
determined by the ACPI SPCR table.

cdns,<addr>[,options]
Start an early, polled-mode console on a Cadence
Expand Down
79 changes: 79 additions & 0 deletions Documentation/core-api/idr.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
.. SPDX-License-Identifier: CC-BY-SA-4.0

=============
ID Allocation
=============

:Author: Matthew Wilcox

Overview
========

A common problem to solve is allocating identifiers (IDs); generally
small numbers which identify a thing. Examples include file descriptors,
process IDs, packet identifiers in networking protocols, SCSI tags
and device instance numbers. The IDR and the IDA provide a reasonable
solution to the problem to avoid everybody inventing their own. The IDR
provides the ability to map an ID to a pointer, while the IDA provides
only ID allocation, and as a result is much more memory-efficient.

IDR usage
=========

Start by initialising an IDR, either with :c:func:`DEFINE_IDR`
for statically allocated IDRs or :c:func:`idr_init` for dynamically
allocated IDRs.

You can call :c:func:`idr_alloc` to allocate an unused ID. Look up
the pointer you associated with the ID by calling :c:func:`idr_find`
and free the ID by calling :c:func:`idr_remove`.

If you need to change the pointer associated with an ID, you can call
:c:func:`idr_replace`. One common reason to do this is to reserve an
ID by passing a ``NULL`` pointer to the allocation function; initialise the
object with the reserved ID and finally insert the initialised object
into the IDR.

Some users need to allocate IDs larger than ``INT_MAX``. So far all of
these users have been content with a ``UINT_MAX`` limit, and they use
:c:func:`idr_alloc_u32`. If you need IDs that will not fit in a u32,
we will work with you to address your needs.

If you need to allocate IDs sequentially, you can use
:c:func:`idr_alloc_cyclic`. The IDR becomes less efficient when dealing
with larger IDs, so using this function comes at a slight cost.

To perform an action on all pointers used by the IDR, you can
either use the callback-based :c:func:`idr_for_each` or the
iterator-style :c:func:`idr_for_each_entry`. You may need to use
:c:func:`idr_for_each_entry_continue` to continue an iteration. You can
also use :c:func:`idr_get_next` if the iterator doesn't fit your needs.

When you have finished using an IDR, you can call :c:func:`idr_destroy`
to release the memory used by the IDR. This will not free the objects
pointed to from the IDR; if you want to do that, use one of the iterators
to do it.

You can use :c:func:`idr_is_empty` to find out whether there are any
IDs currently allocated.

If you need to take a lock while allocating a new ID from the IDR,
you may need to pass a restrictive set of GFP flags, which can lead
to the IDR being unable to allocate memory. To work around this,
you can call :c:func:`idr_preload` before taking the lock, and then
:c:func:`idr_preload_end` after the allocation.

.. kernel-doc:: include/linux/idr.h
:doc: idr sync

IDA usage
=========

.. kernel-doc:: lib/idr.c
:doc: IDA description

Functions and structures
========================

.. kernel-doc:: include/linux/idr.h
.. kernel-doc:: lib/idr.c
1 change: 1 addition & 0 deletions Documentation/core-api/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Core utilities
atomic_ops
refcount-vs-atomic
cpu_hotplug
idr
local_ops
workqueue
genericirq
Expand Down
12 changes: 0 additions & 12 deletions Documentation/core-api/kernel-api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -103,18 +103,6 @@ CRC Functions
.. kernel-doc:: lib/crc-itu-t.c
:export:

idr/ida Functions
-----------------

.. kernel-doc:: include/linux/idr.h
:doc: idr sync

.. kernel-doc:: lib/idr.c
:doc: IDA description

.. kernel-doc:: lib/idr.c
:export:

Math Functions in Linux
=======================

Expand Down
4 changes: 4 additions & 0 deletions Documentation/cpu-freq/cpu-drivers.txt
Original file line number Diff line number Diff line change
Expand Up @@ -291,3 +291,7 @@ For example:
/* Do something with pos */
pos->frequency = ...
}

If you need to work with the position of pos within driver_freq_table,
do not subtract the pointers, as it is quite costly. Instead, use the
macros cpufreq_for_each_entry_idx() and cpufreq_for_each_valid_entry_idx().
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ Required Properties:
- "renesas,ipmmu-r8a7793" for the R8A7793 (R-Car M2-N) IPMMU.
- "renesas,ipmmu-r8a7794" for the R8A7794 (R-Car E2) IPMMU.
- "renesas,ipmmu-r8a7795" for the R8A7795 (R-Car H3) IPMMU.
- "renesas,ipmmu-r8a7796" for the R8A7796 (R-Car M3-W) IPMMU.
- "renesas,ipmmu-r8a77970" for the R8A77970 (R-Car V3M) IPMMU.
- "renesas,ipmmu-r8a77995" for the R8A77995 (R-Car D3) IPMMU.
- "renesas,ipmmu-vmsa" for generic R-Car Gen2 VMSA-compatible IPMMU.

- reg: Base address and size of the IPMMU registers.
Expand Down
17 changes: 17 additions & 0 deletions Documentation/filesystems/afs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Contents:
- Overview.
- Usage.
- Mountpoints.
- Dynamic root.
- Proc filesystem.
- The cell database.
- Security.
Expand Down Expand Up @@ -127,6 +128,22 @@ mounted on /afs in one go by doing:
umount /afs


============
DYNAMIC ROOT
============

A mount option is available to create a serverless mount that is only usable
for dynamic lookup. Creating such a mount can be done by, for example:

mount -t afs none /afs -o dyn

This creates a mount that just has an empty directory at the root. Attempting
to look up a name in this directory will cause a mountpoint to be created that
looks up a cell of the same name, for example:

ls /afs/grand.central.org/


===============
PROC FILESYSTEM
===============
Expand Down
9 changes: 4 additions & 5 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -10331,7 +10331,8 @@ F: fs/ocfs2/

ORANGEFS FILESYSTEM
M: Mike Marshall <[email protected]>
L: [email protected] (subscribers-only)
R: Martin Brandenburg <[email protected]>
L: [email protected]
T: git git://git.kernel.org/pub/scm/linux/kernel/git/hubcap/linux.git
S: Supported
F: fs/orangefs/
Expand Down Expand Up @@ -10799,11 +10800,9 @@ S: Maintained
F: drivers/pci/dwc/*spear*

PCMCIA SUBSYSTEM
P: Linux PCMCIA Team
L: [email protected]
W: http://lists.infradead.org/mailman/listinfo/linux-pcmcia
M: Dominik Brodowski <[email protected]>
T: git git://git.kernel.org/pub/scm/linux/kernel/git/brodo/pcmcia.git
S: Maintained
S: Odd Fixes
F: Documentation/pcmcia/
F: tools/pcmcia/
F: drivers/pcmcia/
Expand Down
7 changes: 7 additions & 0 deletions arch/arm/include/asm/kvm_host.h
Original file line number Diff line number Diff line change
Expand Up @@ -306,4 +306,11 @@ static inline void kvm_fpsimd_flush_cpu_state(void) {}

static inline void kvm_arm_vhe_guest_enter(void) {}
static inline void kvm_arm_vhe_guest_exit(void) {}

static inline bool kvm_arm_harden_branch_predictor(void)
{
/* No way to detect it yet, pretend it is not there. */
return false;
}

#endif /* __ARM_KVM_HOST_H__ */
27 changes: 0 additions & 27 deletions arch/arm/include/asm/kvm_psci.h

This file was deleted.

17 changes: 13 additions & 4 deletions arch/arm/kvm/handle_exit.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <asm/kvm_emulate.h>
#include <asm/kvm_coproc.h>
#include <asm/kvm_mmu.h>
#include <asm/kvm_psci.h>
#include <kvm/arm_psci.h>
#include <trace/events/kvm.h>

#include "trace.h"
Expand All @@ -36,9 +36,9 @@ static int handle_hvc(struct kvm_vcpu *vcpu, struct kvm_run *run)
kvm_vcpu_hvc_get_imm(vcpu));
vcpu->stat.hvc_exit_stat++;

ret = kvm_psci_call(vcpu);
ret = kvm_hvc_call_handler(vcpu);
if (ret < 0) {
kvm_inject_undefined(vcpu);
vcpu_set_reg(vcpu, 0, ~0UL);
return 1;
}

Expand All @@ -47,7 +47,16 @@ static int handle_hvc(struct kvm_vcpu *vcpu, struct kvm_run *run)

static int handle_smc(struct kvm_vcpu *vcpu, struct kvm_run *run)
{
kvm_inject_undefined(vcpu);
/*
* "If an SMC instruction executed at Non-secure EL1 is
* trapped to EL2 because HCR_EL2.TSC is 1, the exception is a
* Trap exception, not a Secure Monitor Call exception [...]"
*
* We need to advance the PC after the trap, as it would
* otherwise return to the same address...
*/
vcpu_set_reg(vcpu, 0, ~0UL);
kvm_skip_instr(vcpu, kvm_vcpu_trap_il_is32bit(vcpu));
return 1;
}

Expand Down
43 changes: 42 additions & 1 deletion arch/arm64/include/asm/assembler.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,24 @@
hint #16
.endm

/*
* Value prediction barrier
*/
.macro csdb
hint #20
.endm

/*
* Sanitise a 64-bit bounded index wrt speculation, returning zero if out
* of bounds.
*/
.macro mask_nospec64, idx, limit, tmp
sub \tmp, \idx, \limit
bic \tmp, \tmp, \idx
and \idx, \idx, \tmp, asr #63
csdb
.endm

/*
* NOP sequence
*/
Expand Down Expand Up @@ -514,7 +532,7 @@ alternative_endif
* phys: physical address, preserved
* ttbr: returns the TTBR value
*/
.macro phys_to_ttbr, phys, ttbr
.macro phys_to_ttbr, ttbr, phys
#ifdef CONFIG_ARM64_PA_BITS_52
orr \ttbr, \phys, \phys, lsr #46
and \ttbr, \ttbr, #TTBR_BADDR_MASK_52
Expand All @@ -523,6 +541,29 @@ alternative_endif
#endif
.endm

.macro phys_to_pte, pte, phys
#ifdef CONFIG_ARM64_PA_BITS_52
/*
* We assume \phys is 64K aligned and this is guaranteed by only
* supporting this configuration with 64K pages.
*/
orr \pte, \phys, \phys, lsr #36
and \pte, \pte, #PTE_ADDR_MASK
#else
mov \pte, \phys
#endif
.endm

.macro pte_to_phys, phys, pte
#ifdef CONFIG_ARM64_PA_BITS_52
ubfiz \phys, \pte, #(48 - 16 - 12), #16
bfxil \phys, \pte, #16, #32
lsl \phys, \phys, #16
#else
and \phys, \pte, #PTE_ADDR_MASK
#endif
.endm

/**
* Errata workaround prior to disable MMU. Insert an ISB immediately prior
* to executing the MSR that will change SCTLR_ELn[M] from a value of 1 to 0.
Expand Down
22 changes: 22 additions & 0 deletions arch/arm64/include/asm/barrier.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#define dsb(opt) asm volatile("dsb " #opt : : : "memory")

#define psb_csync() asm volatile("hint #17" : : : "memory")
#define csdb() asm volatile("hint #20" : : : "memory")

#define mb() dsb(sy)
#define rmb() dsb(ld)
Expand All @@ -40,6 +41,27 @@
#define dma_rmb() dmb(oshld)
#define dma_wmb() dmb(oshst)

/*
* Generate a mask for array_index__nospec() that is ~0UL when 0 <= idx < sz
* and 0 otherwise.
*/
#define array_index_mask_nospec array_index_mask_nospec
static inline unsigned long array_index_mask_nospec(unsigned long idx,
unsigned long sz)
{
unsigned long mask;

asm volatile(
" cmp %1, %2\n"
" sbc %0, xzr, xzr\n"
: "=r" (mask)
: "r" (idx), "Ir" (sz)
: "cc");

csdb();
return mask;
}

#define __smp_mb() dmb(ish)
#define __smp_rmb() dmb(ishld)
#define __smp_wmb() dmb(ishst)
Expand Down
Loading