diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/asm-generic/io.h | 3 | ||||
| -rw-r--r-- | include/drm/drm_drv.h | 2 | ||||
| -rw-r--r-- | include/linux/blkdev.h | 2 | ||||
| -rw-r--r-- | include/linux/compiler-gcc.h | 14 | ||||
| -rw-r--r-- | include/linux/compiler_types.h | 8 | ||||
| -rw-r--r-- | include/linux/fs.h | 5 | ||||
| -rw-r--r-- | include/linux/genhd.h | 5 | ||||
| -rw-r--r-- | include/linux/hid.h | 1 | ||||
| -rw-r--r-- | include/linux/kvm_host.h | 2 | ||||
| -rw-r--r-- | include/linux/mfd/da9063/pdata.h | 16 | ||||
| -rw-r--r-- | include/linux/mlx5/driver.h | 8 | ||||
| -rw-r--r-- | include/linux/mm_types.h | 2 | ||||
| -rw-r--r-- | include/linux/mm_types_task.h | 2 | ||||
| -rw-r--r-- | include/linux/mod_devicetable.h | 1 | ||||
| -rw-r--r-- | include/linux/pci.h | 3 | ||||
| -rw-r--r-- | include/linux/vga_switcheroo.h | 3 | ||||
| -rw-r--r-- | include/linux/vm_event_item.h | 1 | ||||
| -rw-r--r-- | include/linux/vmacache.h | 5 | ||||
| -rw-r--r-- | include/net/netfilter/nf_conntrack_timeout.h | 2 | ||||
| -rw-r--r-- | include/net/tls.h | 19 | ||||
| -rw-r--r-- | include/sound/hdaudio.h | 1 | ||||
| -rw-r--r-- | include/sound/soc-dapm.h | 1 | ||||
| -rw-r--r-- | include/uapi/linux/kvm.h | 1 | ||||
| -rw-r--r-- | include/uapi/sound/skl-tplg-interface.h | 106 | ||||
| -rw-r--r-- | include/xen/mem-reservation.h | 7 |
25 files changed, 115 insertions, 105 deletions
diff --git a/include/asm-generic/io.h b/include/asm-generic/io.h index 66d1d45fa2e1..d356f802945a 100644 --- a/include/asm-generic/io.h +++ b/include/asm-generic/io.h | |||
| @@ -1026,7 +1026,8 @@ static inline void __iomem *ioremap_wt(phys_addr_t offset, size_t size) | |||
| 1026 | #define ioport_map ioport_map | 1026 | #define ioport_map ioport_map |
| 1027 | static inline void __iomem *ioport_map(unsigned long port, unsigned int nr) | 1027 | static inline void __iomem *ioport_map(unsigned long port, unsigned int nr) |
| 1028 | { | 1028 | { |
| 1029 | return PCI_IOBASE + (port & MMIO_UPPER_LIMIT); | 1029 | port &= IO_SPACE_LIMIT; |
| 1030 | return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; | ||
| 1030 | } | 1031 | } |
| 1031 | #endif | 1032 | #endif |
| 1032 | 1033 | ||
diff --git a/include/drm/drm_drv.h b/include/drm/drm_drv.h index 46a8009784df..152b3055e9e1 100644 --- a/include/drm/drm_drv.h +++ b/include/drm/drm_drv.h | |||
| @@ -675,7 +675,7 @@ static inline bool drm_core_check_feature(struct drm_device *dev, int feature) | |||
| 675 | static inline bool drm_drv_uses_atomic_modeset(struct drm_device *dev) | 675 | static inline bool drm_drv_uses_atomic_modeset(struct drm_device *dev) |
| 676 | { | 676 | { |
| 677 | return drm_core_check_feature(dev, DRIVER_ATOMIC) || | 677 | return drm_core_check_feature(dev, DRIVER_ATOMIC) || |
| 678 | dev->mode_config.funcs->atomic_commit != NULL; | 678 | (dev->mode_config.funcs && dev->mode_config.funcs->atomic_commit != NULL); |
| 679 | } | 679 | } |
| 680 | 680 | ||
| 681 | 681 | ||
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index d6869e0e2b64..6980014357d4 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h | |||
| @@ -54,7 +54,7 @@ struct blk_stat_callback; | |||
| 54 | * Maximum number of blkcg policies allowed to be registered concurrently. | 54 | * Maximum number of blkcg policies allowed to be registered concurrently. |
| 55 | * Defined here to simplify include dependency. | 55 | * Defined here to simplify include dependency. |
| 56 | */ | 56 | */ |
| 57 | #define BLKCG_MAX_POLS 3 | 57 | #define BLKCG_MAX_POLS 5 |
| 58 | 58 | ||
| 59 | typedef void (rq_end_io_fn)(struct request *, blk_status_t); | 59 | typedef void (rq_end_io_fn)(struct request *, blk_status_t); |
| 60 | 60 | ||
diff --git a/include/linux/compiler-gcc.h b/include/linux/compiler-gcc.h index 763bbad1e258..4d36b27214fd 100644 --- a/include/linux/compiler-gcc.h +++ b/include/linux/compiler-gcc.h | |||
| @@ -79,20 +79,6 @@ | |||
| 79 | #define __noretpoline __attribute__((indirect_branch("keep"))) | 79 | #define __noretpoline __attribute__((indirect_branch("keep"))) |
| 80 | #endif | 80 | #endif |
| 81 | 81 | ||
| 82 | /* | ||
| 83 | * it doesn't make sense on ARM (currently the only user of __naked) | ||
| 84 | * to trace naked functions because then mcount is called without | ||
| 85 | * stack and frame pointer being set up and there is no chance to | ||
| 86 | * restore the lr register to the value before mcount was called. | ||
| 87 | * | ||
| 88 | * The asm() bodies of naked functions often depend on standard calling | ||
| 89 | * conventions, therefore they must be noinline and noclone. | ||
| 90 | * | ||
| 91 | * GCC 4.[56] currently fail to enforce this, so we must do so ourselves. | ||
| 92 | * See GCC PR44290. | ||
| 93 | */ | ||
| 94 | #define __naked __attribute__((naked)) noinline __noclone notrace | ||
| 95 | |||
| 96 | #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__) | 82 | #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__) |
| 97 | 83 | ||
| 98 | #define __optimize(level) __attribute__((__optimize__(level))) | 84 | #define __optimize(level) __attribute__((__optimize__(level))) |
diff --git a/include/linux/compiler_types.h b/include/linux/compiler_types.h index 3525c179698c..db192becfec4 100644 --- a/include/linux/compiler_types.h +++ b/include/linux/compiler_types.h | |||
| @@ -226,6 +226,14 @@ struct ftrace_likely_data { | |||
| 226 | #define notrace __attribute__((no_instrument_function)) | 226 | #define notrace __attribute__((no_instrument_function)) |
| 227 | #endif | 227 | #endif |
| 228 | 228 | ||
| 229 | /* | ||
| 230 | * it doesn't make sense on ARM (currently the only user of __naked) | ||
| 231 | * to trace naked functions because then mcount is called without | ||
| 232 | * stack and frame pointer being set up and there is no chance to | ||
| 233 | * restore the lr register to the value before mcount was called. | ||
| 234 | */ | ||
| 235 | #define __naked __attribute__((naked)) notrace | ||
| 236 | |||
| 229 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b) | 237 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b) |
| 230 | 238 | ||
| 231 | /* | 239 | /* |
diff --git a/include/linux/fs.h b/include/linux/fs.h index 33322702c910..6c0b4a1c22ff 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
| @@ -1763,6 +1763,7 @@ struct file_operations { | |||
| 1763 | u64); | 1763 | u64); |
| 1764 | int (*dedupe_file_range)(struct file *, loff_t, struct file *, loff_t, | 1764 | int (*dedupe_file_range)(struct file *, loff_t, struct file *, loff_t, |
| 1765 | u64); | 1765 | u64); |
| 1766 | int (*fadvise)(struct file *, loff_t, loff_t, int); | ||
| 1766 | } __randomize_layout; | 1767 | } __randomize_layout; |
| 1767 | 1768 | ||
| 1768 | struct inode_operations { | 1769 | struct inode_operations { |
| @@ -3459,4 +3460,8 @@ static inline bool dir_relax_shared(struct inode *inode) | |||
| 3459 | extern bool path_noexec(const struct path *path); | 3460 | extern bool path_noexec(const struct path *path); |
| 3460 | extern void inode_nohighmem(struct inode *inode); | 3461 | extern void inode_nohighmem(struct inode *inode); |
| 3461 | 3462 | ||
| 3463 | /* mm/fadvise.c */ | ||
| 3464 | extern int vfs_fadvise(struct file *file, loff_t offset, loff_t len, | ||
| 3465 | int advice); | ||
| 3466 | |||
| 3462 | #endif /* _LINUX_FS_H */ | 3467 | #endif /* _LINUX_FS_H */ |
diff --git a/include/linux/genhd.h b/include/linux/genhd.h index 57864422a2c8..25c08c6c7f99 100644 --- a/include/linux/genhd.h +++ b/include/linux/genhd.h | |||
| @@ -83,10 +83,10 @@ struct partition { | |||
| 83 | } __attribute__((packed)); | 83 | } __attribute__((packed)); |
| 84 | 84 | ||
| 85 | struct disk_stats { | 85 | struct disk_stats { |
| 86 | u64 nsecs[NR_STAT_GROUPS]; | ||
| 86 | unsigned long sectors[NR_STAT_GROUPS]; | 87 | unsigned long sectors[NR_STAT_GROUPS]; |
| 87 | unsigned long ios[NR_STAT_GROUPS]; | 88 | unsigned long ios[NR_STAT_GROUPS]; |
| 88 | unsigned long merges[NR_STAT_GROUPS]; | 89 | unsigned long merges[NR_STAT_GROUPS]; |
| 89 | unsigned long ticks[NR_STAT_GROUPS]; | ||
| 90 | unsigned long io_ticks; | 90 | unsigned long io_ticks; |
| 91 | unsigned long time_in_queue; | 91 | unsigned long time_in_queue; |
| 92 | }; | 92 | }; |
| @@ -354,6 +354,9 @@ static inline void free_part_stats(struct hd_struct *part) | |||
| 354 | 354 | ||
| 355 | #endif /* CONFIG_SMP */ | 355 | #endif /* CONFIG_SMP */ |
| 356 | 356 | ||
| 357 | #define part_stat_read_msecs(part, which) \ | ||
| 358 | div_u64(part_stat_read(part, nsecs[which]), NSEC_PER_MSEC) | ||
| 359 | |||
| 357 | #define part_stat_read_accum(part, field) \ | 360 | #define part_stat_read_accum(part, field) \ |
| 358 | (part_stat_read(part, field[STAT_READ]) + \ | 361 | (part_stat_read(part, field[STAT_READ]) + \ |
| 359 | part_stat_read(part, field[STAT_WRITE]) + \ | 362 | part_stat_read(part, field[STAT_WRITE]) + \ |
diff --git a/include/linux/hid.h b/include/linux/hid.h index 834e6461a690..d44a78362942 100644 --- a/include/linux/hid.h +++ b/include/linux/hid.h | |||
| @@ -526,6 +526,7 @@ struct hid_input { | |||
| 526 | const char *name; | 526 | const char *name; |
| 527 | bool registered; | 527 | bool registered; |
| 528 | struct list_head reports; /* the list of reports */ | 528 | struct list_head reports; /* the list of reports */ |
| 529 | unsigned int application; /* application usage for this input */ | ||
| 529 | }; | 530 | }; |
| 530 | 531 | ||
| 531 | enum hid_type { | 532 | enum hid_type { |
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 0205aee44ded..c926698040e0 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h | |||
| @@ -733,8 +733,6 @@ bool kvm_vcpu_wake_up(struct kvm_vcpu *vcpu); | |||
| 733 | void kvm_vcpu_kick(struct kvm_vcpu *vcpu); | 733 | void kvm_vcpu_kick(struct kvm_vcpu *vcpu); |
| 734 | int kvm_vcpu_yield_to(struct kvm_vcpu *target); | 734 | int kvm_vcpu_yield_to(struct kvm_vcpu *target); |
| 735 | void kvm_vcpu_on_spin(struct kvm_vcpu *vcpu, bool usermode_vcpu_not_eligible); | 735 | void kvm_vcpu_on_spin(struct kvm_vcpu *vcpu, bool usermode_vcpu_not_eligible); |
| 736 | void kvm_load_guest_fpu(struct kvm_vcpu *vcpu); | ||
| 737 | void kvm_put_guest_fpu(struct kvm_vcpu *vcpu); | ||
| 738 | 736 | ||
| 739 | void kvm_flush_remote_tlbs(struct kvm *kvm); | 737 | void kvm_flush_remote_tlbs(struct kvm *kvm); |
| 740 | void kvm_reload_remote_mmus(struct kvm *kvm); | 738 | void kvm_reload_remote_mmus(struct kvm *kvm); |
diff --git a/include/linux/mfd/da9063/pdata.h b/include/linux/mfd/da9063/pdata.h index 8a125701ef7b..50bed4f89c1a 100644 --- a/include/linux/mfd/da9063/pdata.h +++ b/include/linux/mfd/da9063/pdata.h | |||
| @@ -21,7 +21,7 @@ | |||
| 21 | /* | 21 | /* |
| 22 | * Regulator configuration | 22 | * Regulator configuration |
| 23 | */ | 23 | */ |
| 24 | /* DA9063 regulator IDs */ | 24 | /* DA9063 and DA9063L regulator IDs */ |
| 25 | enum { | 25 | enum { |
| 26 | /* BUCKs */ | 26 | /* BUCKs */ |
| 27 | DA9063_ID_BCORE1, | 27 | DA9063_ID_BCORE1, |
| @@ -37,18 +37,20 @@ enum { | |||
| 37 | DA9063_ID_BMEM_BIO_MERGED, | 37 | DA9063_ID_BMEM_BIO_MERGED, |
| 38 | /* When two BUCKs are merged, they cannot be reused separately */ | 38 | /* When two BUCKs are merged, they cannot be reused separately */ |
| 39 | 39 | ||
| 40 | /* LDOs */ | 40 | /* LDOs on both DA9063 and DA9063L */ |
| 41 | DA9063_ID_LDO3, | ||
| 42 | DA9063_ID_LDO7, | ||
| 43 | DA9063_ID_LDO8, | ||
| 44 | DA9063_ID_LDO9, | ||
| 45 | DA9063_ID_LDO11, | ||
| 46 | |||
| 47 | /* DA9063-only LDOs */ | ||
| 41 | DA9063_ID_LDO1, | 48 | DA9063_ID_LDO1, |
| 42 | DA9063_ID_LDO2, | 49 | DA9063_ID_LDO2, |
| 43 | DA9063_ID_LDO3, | ||
| 44 | DA9063_ID_LDO4, | 50 | DA9063_ID_LDO4, |
| 45 | DA9063_ID_LDO5, | 51 | DA9063_ID_LDO5, |
| 46 | DA9063_ID_LDO6, | 52 | DA9063_ID_LDO6, |
| 47 | DA9063_ID_LDO7, | ||
| 48 | DA9063_ID_LDO8, | ||
| 49 | DA9063_ID_LDO9, | ||
| 50 | DA9063_ID_LDO10, | 53 | DA9063_ID_LDO10, |
| 51 | DA9063_ID_LDO11, | ||
| 52 | }; | 54 | }; |
| 53 | 55 | ||
| 54 | /* Regulators platform data */ | 56 | /* Regulators platform data */ |
diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h index 7a452716de4b..66d94b4557cf 100644 --- a/include/linux/mlx5/driver.h +++ b/include/linux/mlx5/driver.h | |||
| @@ -362,8 +362,8 @@ struct mlx5_frag_buf { | |||
| 362 | struct mlx5_frag_buf_ctrl { | 362 | struct mlx5_frag_buf_ctrl { |
| 363 | struct mlx5_frag_buf frag_buf; | 363 | struct mlx5_frag_buf frag_buf; |
| 364 | u32 sz_m1; | 364 | u32 sz_m1; |
| 365 | u32 frag_sz_m1; | 365 | u16 frag_sz_m1; |
| 366 | u32 strides_offset; | 366 | u16 strides_offset; |
| 367 | u8 log_sz; | 367 | u8 log_sz; |
| 368 | u8 log_stride; | 368 | u8 log_stride; |
| 369 | u8 log_frag_strides; | 369 | u8 log_frag_strides; |
| @@ -995,7 +995,7 @@ static inline u32 mlx5_base_mkey(const u32 key) | |||
| 995 | } | 995 | } |
| 996 | 996 | ||
| 997 | static inline void mlx5_fill_fbc_offset(u8 log_stride, u8 log_sz, | 997 | static inline void mlx5_fill_fbc_offset(u8 log_stride, u8 log_sz, |
| 998 | u32 strides_offset, | 998 | u16 strides_offset, |
| 999 | struct mlx5_frag_buf_ctrl *fbc) | 999 | struct mlx5_frag_buf_ctrl *fbc) |
| 1000 | { | 1000 | { |
| 1001 | fbc->log_stride = log_stride; | 1001 | fbc->log_stride = log_stride; |
| @@ -1052,7 +1052,7 @@ int mlx5_cmd_free_uar(struct mlx5_core_dev *dev, u32 uarn); | |||
| 1052 | void mlx5_health_cleanup(struct mlx5_core_dev *dev); | 1052 | void mlx5_health_cleanup(struct mlx5_core_dev *dev); |
| 1053 | int mlx5_health_init(struct mlx5_core_dev *dev); | 1053 | int mlx5_health_init(struct mlx5_core_dev *dev); |
| 1054 | void mlx5_start_health_poll(struct mlx5_core_dev *dev); | 1054 | void mlx5_start_health_poll(struct mlx5_core_dev *dev); |
| 1055 | void mlx5_stop_health_poll(struct mlx5_core_dev *dev); | 1055 | void mlx5_stop_health_poll(struct mlx5_core_dev *dev, bool disable_health); |
| 1056 | void mlx5_drain_health_wq(struct mlx5_core_dev *dev); | 1056 | void mlx5_drain_health_wq(struct mlx5_core_dev *dev); |
| 1057 | void mlx5_trigger_health_work(struct mlx5_core_dev *dev); | 1057 | void mlx5_trigger_health_work(struct mlx5_core_dev *dev); |
| 1058 | void mlx5_drain_health_recovery(struct mlx5_core_dev *dev); | 1058 | void mlx5_drain_health_recovery(struct mlx5_core_dev *dev); |
diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h index cd2bc939efd0..5ed8f6292a53 100644 --- a/include/linux/mm_types.h +++ b/include/linux/mm_types.h | |||
| @@ -341,7 +341,7 @@ struct mm_struct { | |||
| 341 | struct { | 341 | struct { |
| 342 | struct vm_area_struct *mmap; /* list of VMAs */ | 342 | struct vm_area_struct *mmap; /* list of VMAs */ |
| 343 | struct rb_root mm_rb; | 343 | struct rb_root mm_rb; |
| 344 | u32 vmacache_seqnum; /* per-thread vmacache */ | 344 | u64 vmacache_seqnum; /* per-thread vmacache */ |
| 345 | #ifdef CONFIG_MMU | 345 | #ifdef CONFIG_MMU |
| 346 | unsigned long (*get_unmapped_area) (struct file *filp, | 346 | unsigned long (*get_unmapped_area) (struct file *filp, |
| 347 | unsigned long addr, unsigned long len, | 347 | unsigned long addr, unsigned long len, |
diff --git a/include/linux/mm_types_task.h b/include/linux/mm_types_task.h index 5fe87687664c..d7016dcb245e 100644 --- a/include/linux/mm_types_task.h +++ b/include/linux/mm_types_task.h | |||
| @@ -32,7 +32,7 @@ | |||
| 32 | #define VMACACHE_MASK (VMACACHE_SIZE - 1) | 32 | #define VMACACHE_MASK (VMACACHE_SIZE - 1) |
| 33 | 33 | ||
| 34 | struct vmacache { | 34 | struct vmacache { |
| 35 | u32 seqnum; | 35 | u64 seqnum; |
| 36 | struct vm_area_struct *vmas[VMACACHE_SIZE]; | 36 | struct vm_area_struct *vmas[VMACACHE_SIZE]; |
| 37 | }; | 37 | }; |
| 38 | 38 | ||
diff --git a/include/linux/mod_devicetable.h b/include/linux/mod_devicetable.h index 1298a7daa57d..01797cb4587e 100644 --- a/include/linux/mod_devicetable.h +++ b/include/linux/mod_devicetable.h | |||
| @@ -754,6 +754,7 @@ struct tb_service_id { | |||
| 754 | * struct typec_device_id - USB Type-C alternate mode identifiers | 754 | * struct typec_device_id - USB Type-C alternate mode identifiers |
| 755 | * @svid: Standard or Vendor ID | 755 | * @svid: Standard or Vendor ID |
| 756 | * @mode: Mode index | 756 | * @mode: Mode index |
| 757 | * @driver_data: Driver specific data | ||
| 757 | */ | 758 | */ |
| 758 | struct typec_device_id { | 759 | struct typec_device_id { |
| 759 | __u16 svid; | 760 | __u16 svid; |
diff --git a/include/linux/pci.h b/include/linux/pci.h index e72ca8dd6241..6925828f9f25 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
| @@ -1235,6 +1235,9 @@ void pci_bus_remove_resources(struct pci_bus *bus); | |||
| 1235 | int devm_request_pci_bus_resources(struct device *dev, | 1235 | int devm_request_pci_bus_resources(struct device *dev, |
| 1236 | struct list_head *resources); | 1236 | struct list_head *resources); |
| 1237 | 1237 | ||
| 1238 | /* Temporary until new and working PCI SBR API in place */ | ||
| 1239 | int pci_bridge_secondary_bus_reset(struct pci_dev *dev); | ||
| 1240 | |||
| 1238 | #define pci_bus_for_each_resource(bus, res, i) \ | 1241 | #define pci_bus_for_each_resource(bus, res, i) \ |
| 1239 | for (i = 0; \ | 1242 | for (i = 0; \ |
| 1240 | (res = pci_bus_resource_n(bus, i)) || i < PCI_BRIDGE_RESOURCE_NUM; \ | 1243 | (res = pci_bus_resource_n(bus, i)) || i < PCI_BRIDGE_RESOURCE_NUM; \ |
diff --git a/include/linux/vga_switcheroo.h b/include/linux/vga_switcheroo.h index a34539b7f750..7e6ac0114d55 100644 --- a/include/linux/vga_switcheroo.h +++ b/include/linux/vga_switcheroo.h | |||
| @@ -133,15 +133,18 @@ struct vga_switcheroo_handler { | |||
| 133 | * @can_switch: check if the device is in a position to switch now. | 133 | * @can_switch: check if the device is in a position to switch now. |
| 134 | * Mandatory. The client should return false if a user space process | 134 | * Mandatory. The client should return false if a user space process |
| 135 | * has one of its device files open | 135 | * has one of its device files open |
| 136 | * @gpu_bound: notify the client id to audio client when the GPU is bound. | ||
| 136 | * | 137 | * |
| 137 | * Client callbacks. A client can be either a GPU or an audio device on a GPU. | 138 | * Client callbacks. A client can be either a GPU or an audio device on a GPU. |
| 138 | * The @set_gpu_state and @can_switch methods are mandatory, @reprobe may be | 139 | * The @set_gpu_state and @can_switch methods are mandatory, @reprobe may be |
| 139 | * set to NULL. For audio clients, the @reprobe member is bogus. | 140 | * set to NULL. For audio clients, the @reprobe member is bogus. |
| 141 | * OTOH, @gpu_bound is only for audio clients, and not used for GPU clients. | ||
| 140 | */ | 142 | */ |
| 141 | struct vga_switcheroo_client_ops { | 143 | struct vga_switcheroo_client_ops { |
| 142 | void (*set_gpu_state)(struct pci_dev *dev, enum vga_switcheroo_state); | 144 | void (*set_gpu_state)(struct pci_dev *dev, enum vga_switcheroo_state); |
| 143 | void (*reprobe)(struct pci_dev *dev); | 145 | void (*reprobe)(struct pci_dev *dev); |
| 144 | bool (*can_switch)(struct pci_dev *dev); | 146 | bool (*can_switch)(struct pci_dev *dev); |
| 147 | void (*gpu_bound)(struct pci_dev *dev, enum vga_switcheroo_client_id); | ||
| 145 | }; | 148 | }; |
| 146 | 149 | ||
| 147 | #if defined(CONFIG_VGA_SWITCHEROO) | 150 | #if defined(CONFIG_VGA_SWITCHEROO) |
diff --git a/include/linux/vm_event_item.h b/include/linux/vm_event_item.h index 5c7f010676a7..47a3441cf4c4 100644 --- a/include/linux/vm_event_item.h +++ b/include/linux/vm_event_item.h | |||
| @@ -105,7 +105,6 @@ enum vm_event_item { PGPGIN, PGPGOUT, PSWPIN, PSWPOUT, | |||
| 105 | #ifdef CONFIG_DEBUG_VM_VMACACHE | 105 | #ifdef CONFIG_DEBUG_VM_VMACACHE |
| 106 | VMACACHE_FIND_CALLS, | 106 | VMACACHE_FIND_CALLS, |
| 107 | VMACACHE_FIND_HITS, | 107 | VMACACHE_FIND_HITS, |
| 108 | VMACACHE_FULL_FLUSHES, | ||
| 109 | #endif | 108 | #endif |
| 110 | #ifdef CONFIG_SWAP | 109 | #ifdef CONFIG_SWAP |
| 111 | SWAP_RA, | 110 | SWAP_RA, |
diff --git a/include/linux/vmacache.h b/include/linux/vmacache.h index 3e9a963edd6a..6fce268a4588 100644 --- a/include/linux/vmacache.h +++ b/include/linux/vmacache.h | |||
| @@ -10,7 +10,6 @@ static inline void vmacache_flush(struct task_struct *tsk) | |||
| 10 | memset(tsk->vmacache.vmas, 0, sizeof(tsk->vmacache.vmas)); | 10 | memset(tsk->vmacache.vmas, 0, sizeof(tsk->vmacache.vmas)); |
| 11 | } | 11 | } |
| 12 | 12 | ||
| 13 | extern void vmacache_flush_all(struct mm_struct *mm); | ||
| 14 | extern void vmacache_update(unsigned long addr, struct vm_area_struct *newvma); | 13 | extern void vmacache_update(unsigned long addr, struct vm_area_struct *newvma); |
| 15 | extern struct vm_area_struct *vmacache_find(struct mm_struct *mm, | 14 | extern struct vm_area_struct *vmacache_find(struct mm_struct *mm, |
| 16 | unsigned long addr); | 15 | unsigned long addr); |
| @@ -24,10 +23,6 @@ extern struct vm_area_struct *vmacache_find_exact(struct mm_struct *mm, | |||
| 24 | static inline void vmacache_invalidate(struct mm_struct *mm) | 23 | static inline void vmacache_invalidate(struct mm_struct *mm) |
| 25 | { | 24 | { |
| 26 | mm->vmacache_seqnum++; | 25 | mm->vmacache_seqnum++; |
| 27 | |||
| 28 | /* deal with overflows */ | ||
| 29 | if (unlikely(mm->vmacache_seqnum == 0)) | ||
| 30 | vmacache_flush_all(mm); | ||
| 31 | } | 26 | } |
| 32 | 27 | ||
| 33 | #endif /* __LINUX_VMACACHE_H */ | 28 | #endif /* __LINUX_VMACACHE_H */ |
diff --git a/include/net/netfilter/nf_conntrack_timeout.h b/include/net/netfilter/nf_conntrack_timeout.h index d5f62cc6c2ae..3394d75e1c80 100644 --- a/include/net/netfilter/nf_conntrack_timeout.h +++ b/include/net/netfilter/nf_conntrack_timeout.h | |||
| @@ -30,7 +30,7 @@ struct nf_conn_timeout { | |||
| 30 | }; | 30 | }; |
| 31 | 31 | ||
| 32 | static inline unsigned int * | 32 | static inline unsigned int * |
| 33 | nf_ct_timeout_data(struct nf_conn_timeout *t) | 33 | nf_ct_timeout_data(const struct nf_conn_timeout *t) |
| 34 | { | 34 | { |
| 35 | struct nf_ct_timeout *timeout; | 35 | struct nf_ct_timeout *timeout; |
| 36 | 36 | ||
diff --git a/include/net/tls.h b/include/net/tls.h index d5c683e8bb22..0a769cf2f5f3 100644 --- a/include/net/tls.h +++ b/include/net/tls.h | |||
| @@ -171,15 +171,14 @@ struct cipher_context { | |||
| 171 | char *rec_seq; | 171 | char *rec_seq; |
| 172 | }; | 172 | }; |
| 173 | 173 | ||
| 174 | union tls_crypto_context { | ||
| 175 | struct tls_crypto_info info; | ||
| 176 | struct tls12_crypto_info_aes_gcm_128 aes_gcm_128; | ||
| 177 | }; | ||
| 178 | |||
| 174 | struct tls_context { | 179 | struct tls_context { |
| 175 | union { | 180 | union tls_crypto_context crypto_send; |
| 176 | struct tls_crypto_info crypto_send; | 181 | union tls_crypto_context crypto_recv; |
| 177 | struct tls12_crypto_info_aes_gcm_128 crypto_send_aes_gcm_128; | ||
| 178 | }; | ||
| 179 | union { | ||
| 180 | struct tls_crypto_info crypto_recv; | ||
| 181 | struct tls12_crypto_info_aes_gcm_128 crypto_recv_aes_gcm_128; | ||
| 182 | }; | ||
| 183 | 182 | ||
| 184 | struct list_head list; | 183 | struct list_head list; |
| 185 | struct net_device *netdev; | 184 | struct net_device *netdev; |
| @@ -367,8 +366,8 @@ static inline void tls_fill_prepend(struct tls_context *ctx, | |||
| 367 | * size KTLS_DTLS_HEADER_SIZE + KTLS_DTLS_NONCE_EXPLICIT_SIZE | 366 | * size KTLS_DTLS_HEADER_SIZE + KTLS_DTLS_NONCE_EXPLICIT_SIZE |
| 368 | */ | 367 | */ |
| 369 | buf[0] = record_type; | 368 | buf[0] = record_type; |
| 370 | buf[1] = TLS_VERSION_MINOR(ctx->crypto_send.version); | 369 | buf[1] = TLS_VERSION_MINOR(ctx->crypto_send.info.version); |
| 371 | buf[2] = TLS_VERSION_MAJOR(ctx->crypto_send.version); | 370 | buf[2] = TLS_VERSION_MAJOR(ctx->crypto_send.info.version); |
| 372 | /* we can use IV for nonce explicit according to spec */ | 371 | /* we can use IV for nonce explicit according to spec */ |
| 373 | buf[3] = pkt_len >> 8; | 372 | buf[3] = pkt_len >> 8; |
| 374 | buf[4] = pkt_len & 0xFF; | 373 | buf[4] = pkt_len & 0xFF; |
diff --git a/include/sound/hdaudio.h b/include/sound/hdaudio.h index 6f1e1f3b3063..cd1773d0e08f 100644 --- a/include/sound/hdaudio.h +++ b/include/sound/hdaudio.h | |||
| @@ -412,6 +412,7 @@ void snd_hdac_bus_init_cmd_io(struct hdac_bus *bus); | |||
| 412 | void snd_hdac_bus_stop_cmd_io(struct hdac_bus *bus); | 412 | void snd_hdac_bus_stop_cmd_io(struct hdac_bus *bus); |
| 413 | void snd_hdac_bus_enter_link_reset(struct hdac_bus *bus); | 413 | void snd_hdac_bus_enter_link_reset(struct hdac_bus *bus); |
| 414 | void snd_hdac_bus_exit_link_reset(struct hdac_bus *bus); | 414 | void snd_hdac_bus_exit_link_reset(struct hdac_bus *bus); |
| 415 | int snd_hdac_bus_reset_link(struct hdac_bus *bus, bool full_reset); | ||
| 415 | 416 | ||
| 416 | void snd_hdac_bus_update_rirb(struct hdac_bus *bus); | 417 | void snd_hdac_bus_update_rirb(struct hdac_bus *bus); |
| 417 | int snd_hdac_bus_handle_stream_irq(struct hdac_bus *bus, unsigned int status, | 418 | int snd_hdac_bus_handle_stream_irq(struct hdac_bus *bus, unsigned int status, |
diff --git a/include/sound/soc-dapm.h b/include/sound/soc-dapm.h index af9ef16cc34d..fdaaafdc7a00 100644 --- a/include/sound/soc-dapm.h +++ b/include/sound/soc-dapm.h | |||
| @@ -407,6 +407,7 @@ int snd_soc_dapm_new_dai_widgets(struct snd_soc_dapm_context *dapm, | |||
| 407 | int snd_soc_dapm_link_dai_widgets(struct snd_soc_card *card); | 407 | int snd_soc_dapm_link_dai_widgets(struct snd_soc_card *card); |
| 408 | void snd_soc_dapm_connect_dai_link_widgets(struct snd_soc_card *card); | 408 | void snd_soc_dapm_connect_dai_link_widgets(struct snd_soc_card *card); |
| 409 | int snd_soc_dapm_new_pcm(struct snd_soc_card *card, | 409 | int snd_soc_dapm_new_pcm(struct snd_soc_card *card, |
| 410 | struct snd_soc_pcm_runtime *rtd, | ||
| 410 | const struct snd_soc_pcm_stream *params, | 411 | const struct snd_soc_pcm_stream *params, |
| 411 | unsigned int num_params, | 412 | unsigned int num_params, |
| 412 | struct snd_soc_dapm_widget *source, | 413 | struct snd_soc_dapm_widget *source, |
diff --git a/include/uapi/linux/kvm.h b/include/uapi/linux/kvm.h index 07548de5c988..251be353f950 100644 --- a/include/uapi/linux/kvm.h +++ b/include/uapi/linux/kvm.h | |||
| @@ -952,6 +952,7 @@ struct kvm_ppc_resize_hpt { | |||
| 952 | #define KVM_CAP_S390_HPAGE_1M 156 | 952 | #define KVM_CAP_S390_HPAGE_1M 156 |
| 953 | #define KVM_CAP_NESTED_STATE 157 | 953 | #define KVM_CAP_NESTED_STATE 157 |
| 954 | #define KVM_CAP_ARM_INJECT_SERROR_ESR 158 | 954 | #define KVM_CAP_ARM_INJECT_SERROR_ESR 158 |
| 955 | #define KVM_CAP_MSR_PLATFORM_INFO 159 | ||
| 955 | 956 | ||
| 956 | #ifdef KVM_CAP_IRQ_ROUTING | 957 | #ifdef KVM_CAP_IRQ_ROUTING |
| 957 | 958 | ||
diff --git a/include/uapi/sound/skl-tplg-interface.h b/include/uapi/sound/skl-tplg-interface.h index f58cafa42f18..f39352cef382 100644 --- a/include/uapi/sound/skl-tplg-interface.h +++ b/include/uapi/sound/skl-tplg-interface.h | |||
| @@ -10,6 +10,8 @@ | |||
| 10 | #ifndef __HDA_TPLG_INTERFACE_H__ | 10 | #ifndef __HDA_TPLG_INTERFACE_H__ |
| 11 | #define __HDA_TPLG_INTERFACE_H__ | 11 | #define __HDA_TPLG_INTERFACE_H__ |
| 12 | 12 | ||
| 13 | #include <linux/types.h> | ||
| 14 | |||
| 13 | /* | 15 | /* |
| 14 | * Default types range from 0~12. type can range from 0 to 0xff | 16 | * Default types range from 0~12. type can range from 0 to 0xff |
| 15 | * SST types start at higher to avoid any overlapping in future | 17 | * SST types start at higher to avoid any overlapping in future |
| @@ -143,10 +145,10 @@ enum skl_module_param_type { | |||
| 143 | }; | 145 | }; |
| 144 | 146 | ||
| 145 | struct skl_dfw_algo_data { | 147 | struct skl_dfw_algo_data { |
| 146 | u32 set_params:2; | 148 | __u32 set_params:2; |
| 147 | u32 rsvd:30; | 149 | __u32 rsvd:30; |
| 148 | u32 param_id; | 150 | __u32 param_id; |
| 149 | u32 max; | 151 | __u32 max; |
| 150 | char params[0]; | 152 | char params[0]; |
| 151 | } __packed; | 153 | } __packed; |
| 152 | 154 | ||
| @@ -163,68 +165,68 @@ enum skl_tuple_type { | |||
| 163 | /* v4 configuration data */ | 165 | /* v4 configuration data */ |
| 164 | 166 | ||
| 165 | struct skl_dfw_v4_module_pin { | 167 | struct skl_dfw_v4_module_pin { |
| 166 | u16 module_id; | 168 | __u16 module_id; |
| 167 | u16 instance_id; | 169 | __u16 instance_id; |
| 168 | } __packed; | 170 | } __packed; |
| 169 | 171 | ||
| 170 | struct skl_dfw_v4_module_fmt { | 172 | struct skl_dfw_v4_module_fmt { |
| 171 | u32 channels; | 173 | __u32 channels; |
| 172 | u32 freq; | 174 | __u32 freq; |
| 173 | u32 bit_depth; | 175 | __u32 bit_depth; |
| 174 | u32 valid_bit_depth; | 176 | __u32 valid_bit_depth; |
| 175 | u32 ch_cfg; | 177 | __u32 ch_cfg; |
| 176 | u32 interleaving_style; | 178 | __u32 interleaving_style; |
| 177 | u32 sample_type; | 179 | __u32 sample_type; |
| 178 | u32 ch_map; | 180 | __u32 ch_map; |
| 179 | } __packed; | 181 | } __packed; |
| 180 | 182 | ||
| 181 | struct skl_dfw_v4_module_caps { | 183 | struct skl_dfw_v4_module_caps { |
| 182 | u32 set_params:2; | 184 | __u32 set_params:2; |
| 183 | u32 rsvd:30; | 185 | __u32 rsvd:30; |
| 184 | u32 param_id; | 186 | __u32 param_id; |
| 185 | u32 caps_size; | 187 | __u32 caps_size; |
| 186 | u32 caps[HDA_SST_CFG_MAX]; | 188 | __u32 caps[HDA_SST_CFG_MAX]; |
| 187 | } __packed; | 189 | } __packed; |
| 188 | 190 | ||
| 189 | struct skl_dfw_v4_pipe { | 191 | struct skl_dfw_v4_pipe { |
| 190 | u8 pipe_id; | 192 | __u8 pipe_id; |
| 191 | u8 pipe_priority; | 193 | __u8 pipe_priority; |
| 192 | u16 conn_type:4; | 194 | __u16 conn_type:4; |
| 193 | u16 rsvd:4; | 195 | __u16 rsvd:4; |
| 194 | u16 memory_pages:8; | 196 | __u16 memory_pages:8; |
| 195 | } __packed; | 197 | } __packed; |
| 196 | 198 | ||
| 197 | struct skl_dfw_v4_module { | 199 | struct skl_dfw_v4_module { |
| 198 | char uuid[SKL_UUID_STR_SZ]; | 200 | char uuid[SKL_UUID_STR_SZ]; |
| 199 | 201 | ||
| 200 | u16 module_id; | 202 | __u16 module_id; |
| 201 | u16 instance_id; | 203 | __u16 instance_id; |
| 202 | u32 max_mcps; | 204 | __u32 max_mcps; |
| 203 | u32 mem_pages; | 205 | __u32 mem_pages; |
| 204 | u32 obs; | 206 | __u32 obs; |
| 205 | u32 ibs; | 207 | __u32 ibs; |
| 206 | u32 vbus_id; | 208 | __u32 vbus_id; |
| 207 | 209 | ||
| 208 | u32 max_in_queue:8; | 210 | __u32 max_in_queue:8; |
| 209 | u32 max_out_queue:8; | 211 | __u32 max_out_queue:8; |
| 210 | u32 time_slot:8; | 212 | __u32 time_slot:8; |
| 211 | u32 core_id:4; | 213 | __u32 core_id:4; |
| 212 | u32 rsvd1:4; | 214 | __u32 rsvd1:4; |
| 213 | 215 | ||
| 214 | u32 module_type:8; | 216 | __u32 module_type:8; |
| 215 | u32 conn_type:4; | 217 | __u32 conn_type:4; |
| 216 | u32 dev_type:4; | 218 | __u32 dev_type:4; |
| 217 | u32 hw_conn_type:4; | 219 | __u32 hw_conn_type:4; |
| 218 | u32 rsvd2:12; | 220 | __u32 rsvd2:12; |
| 219 | 221 | ||
| 220 | u32 params_fixup:8; | 222 | __u32 params_fixup:8; |
| 221 | u32 converter:8; | 223 | __u32 converter:8; |
| 222 | u32 input_pin_type:1; | 224 | __u32 input_pin_type:1; |
| 223 | u32 output_pin_type:1; | 225 | __u32 output_pin_type:1; |
| 224 | u32 is_dynamic_in_pin:1; | 226 | __u32 is_dynamic_in_pin:1; |
| 225 | u32 is_dynamic_out_pin:1; | 227 | __u32 is_dynamic_out_pin:1; |
| 226 | u32 is_loadable:1; | 228 | __u32 is_loadable:1; |
| 227 | u32 rsvd3:11; | 229 | __u32 rsvd3:11; |
| 228 | 230 | ||
| 229 | struct skl_dfw_v4_pipe pipe; | 231 | struct skl_dfw_v4_pipe pipe; |
| 230 | struct skl_dfw_v4_module_fmt in_fmt[MAX_IN_QUEUE]; | 232 | struct skl_dfw_v4_module_fmt in_fmt[MAX_IN_QUEUE]; |
diff --git a/include/xen/mem-reservation.h b/include/xen/mem-reservation.h index 80b52b4945e9..a2ab516fcd2c 100644 --- a/include/xen/mem-reservation.h +++ b/include/xen/mem-reservation.h | |||
| @@ -17,11 +17,12 @@ | |||
| 17 | 17 | ||
| 18 | #include <xen/page.h> | 18 | #include <xen/page.h> |
| 19 | 19 | ||
| 20 | extern bool xen_scrub_pages; | ||
| 21 | |||
| 20 | static inline void xenmem_reservation_scrub_page(struct page *page) | 22 | static inline void xenmem_reservation_scrub_page(struct page *page) |
| 21 | { | 23 | { |
| 22 | #ifdef CONFIG_XEN_SCRUB_PAGES | 24 | if (xen_scrub_pages) |
| 23 | clear_highpage(page); | 25 | clear_highpage(page); |
| 24 | #endif | ||
| 25 | } | 26 | } |
| 26 | 27 | ||
| 27 | #ifdef CONFIG_XEN_HAVE_PVMMU | 28 | #ifdef CONFIG_XEN_HAVE_PVMMU |
