diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-05 18:57:04 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-05 18:57:04 -0400 |
| commit | eb3d3ec567e868c8a3bfbfdfc9465ffd52983d11 (patch) | |
| tree | 75acf38b8d73cd281e5ce4dcc941faf48e244b98 /include/linux | |
| parent | c3c55a07203947f72afa50a3218460b27307c47d (diff) | |
| parent | bd63ce27d9d62bc40a962b991cbbbe4f0dc913d2 (diff) | |
Merge branch 'for-linus' of git://ftp.arm.linux.org.uk/~rmk/linux-arm into next
Pull ARM updates from Russell King:
- Major clean-up of the L2 cache support code. The existing mess was
becoming rather unmaintainable through all the additions that others
have done over time. This turns it into a much nicer structure, and
implements a few performance improvements as well.
- Clean up some of the CP15 control register tweaks for alignment
support, moving some code and data into alignment.c
- DMA properties for ARM, from Santosh and reviewed by DT people. This
adds DT properties to specify bus translations we can't discover
automatically, and to indicate whether devices are coherent.
- Hibernation support for ARM
- Make ftrace work with read-only text in modules
- add suspend support for PJ4B CPUs
- rework interrupt masking for undefined instruction handling, which
allows us to enable interrupts earlier in the handling of these
exceptions.
- support for big endian page tables
- fix stacktrace support to exclude stacktrace functions from the
trace, and add save_stack_trace_regs() implementation so that kprobes
can record stack traces.
- Add support for the Cortex-A17 CPU.
- Remove last vestiges of ARM710 support.
- Removal of ARM "meminfo" structure, finally converting us solely to
memblock to handle the early memory initialisation.
* 'for-linus' of git://ftp.arm.linux.org.uk/~rmk/linux-arm: (142 commits)
ARM: ensure C page table setup code follows assembly code (part II)
ARM: ensure C page table setup code follows assembly code
ARM: consolidate last remaining open-coded alignment trap enable
ARM: remove global cr_no_alignment
ARM: remove CPU_CP15 conditional from alignment.c
ARM: remove unused adjust_cr() function
ARM: move "noalign" command line option to alignment.c
ARM: provide common method to clear bits in CPU control register
ARM: 8025/1: Get rid of meminfo
ARM: 8060/1: mm: allow sub-architectures to override PCI I/O memory type
ARM: 8066/1: correction for ARM patch 8031/2
ARM: 8049/1: ftrace/add save_stack_trace_regs() implementation
ARM: 8065/1: remove last use of CONFIG_CPU_ARM710
ARM: 8062/1: Modify ldrt fixup handler to re-execute the userspace instruction
ARM: 8047/1: rwsem: use asm-generic rwsem implementation
ARM: l2c: trial at enabling some Cortex-A9 optimisations
ARM: l2c: add warnings for stuff modifying aux_ctrl register values
ARM: l2c: print a warning with L2C-310 caches if the cache size is modified
ARM: l2c: remove old .set_debug method
ARM: l2c: kill L2X0_AUX_CTRL_MASK before anyone else makes use of this
...
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/device.h | 2 | ||||
| -rw-r--r-- | include/linux/dma-mapping.h | 7 | ||||
| -rw-r--r-- | include/linux/of_address.h | 14 | ||||
| -rw-r--r-- | include/linux/suspend.h | 2 | ||||
| -rw-r--r-- | include/linux/uprobes.h | 3 |
5 files changed, 28 insertions, 0 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index 580e3eed4b78..af424acd393d 100644 --- a/include/linux/device.h +++ b/include/linux/device.h | |||
| @@ -692,6 +692,7 @@ struct acpi_dev_node { | |||
| 692 | * @coherent_dma_mask: Like dma_mask, but for alloc_coherent mapping as not all | 692 | * @coherent_dma_mask: Like dma_mask, but for alloc_coherent mapping as not all |
| 693 | * hardware supports 64-bit addresses for consistent allocations | 693 | * hardware supports 64-bit addresses for consistent allocations |
| 694 | * such descriptors. | 694 | * such descriptors. |
| 695 | * @dma_pfn_offset: offset of DMA memory range relatively of RAM | ||
| 695 | * @dma_parms: A low level driver may set these to teach IOMMU code about | 696 | * @dma_parms: A low level driver may set these to teach IOMMU code about |
| 696 | * segment limitations. | 697 | * segment limitations. |
| 697 | * @dma_pools: Dma pools (if dma'ble device). | 698 | * @dma_pools: Dma pools (if dma'ble device). |
| @@ -759,6 +760,7 @@ struct device { | |||
| 759 | not all hardware supports | 760 | not all hardware supports |
| 760 | 64 bit addresses for consistent | 761 | 64 bit addresses for consistent |
| 761 | allocations such descriptors. */ | 762 | allocations such descriptors. */ |
| 763 | unsigned long dma_pfn_offset; | ||
| 762 | 764 | ||
| 763 | struct device_dma_parameters *dma_parms; | 765 | struct device_dma_parameters *dma_parms; |
| 764 | 766 | ||
diff --git a/include/linux/dma-mapping.h b/include/linux/dma-mapping.h index 0c3eab1e39ac..931b70986272 100644 --- a/include/linux/dma-mapping.h +++ b/include/linux/dma-mapping.h | |||
| @@ -129,6 +129,13 @@ static inline int dma_coerce_mask_and_coherent(struct device *dev, u64 mask) | |||
| 129 | 129 | ||
| 130 | extern u64 dma_get_required_mask(struct device *dev); | 130 | extern u64 dma_get_required_mask(struct device *dev); |
| 131 | 131 | ||
| 132 | #ifndef set_arch_dma_coherent_ops | ||
| 133 | static inline int set_arch_dma_coherent_ops(struct device *dev) | ||
| 134 | { | ||
| 135 | return 0; | ||
| 136 | } | ||
| 137 | #endif | ||
| 138 | |||
| 132 | static inline unsigned int dma_get_max_seg_size(struct device *dev) | 139 | static inline unsigned int dma_get_max_seg_size(struct device *dev) |
| 133 | { | 140 | { |
| 134 | return dev->dma_parms ? dev->dma_parms->max_segment_size : 65536; | 141 | return dev->dma_parms ? dev->dma_parms->max_segment_size : 65536; |
diff --git a/include/linux/of_address.h b/include/linux/of_address.h index 906ca7681756..c13b8782a4eb 100644 --- a/include/linux/of_address.h +++ b/include/linux/of_address.h | |||
| @@ -62,6 +62,9 @@ extern int of_pci_range_parser_init(struct of_pci_range_parser *parser, | |||
| 62 | extern struct of_pci_range *of_pci_range_parser_one( | 62 | extern struct of_pci_range *of_pci_range_parser_one( |
| 63 | struct of_pci_range_parser *parser, | 63 | struct of_pci_range_parser *parser, |
| 64 | struct of_pci_range *range); | 64 | struct of_pci_range *range); |
| 65 | extern int of_dma_get_range(struct device_node *np, u64 *dma_addr, | ||
| 66 | u64 *paddr, u64 *size); | ||
| 67 | extern bool of_dma_is_coherent(struct device_node *np); | ||
| 65 | #else /* CONFIG_OF_ADDRESS */ | 68 | #else /* CONFIG_OF_ADDRESS */ |
| 66 | static inline struct device_node *of_find_matching_node_by_address( | 69 | static inline struct device_node *of_find_matching_node_by_address( |
| 67 | struct device_node *from, | 70 | struct device_node *from, |
| @@ -89,6 +92,17 @@ static inline struct of_pci_range *of_pci_range_parser_one( | |||
| 89 | { | 92 | { |
| 90 | return NULL; | 93 | return NULL; |
| 91 | } | 94 | } |
| 95 | |||
| 96 | static inline int of_dma_get_range(struct device_node *np, u64 *dma_addr, | ||
| 97 | u64 *paddr, u64 *size) | ||
| 98 | { | ||
| 99 | return -ENODEV; | ||
| 100 | } | ||
| 101 | |||
| 102 | static inline bool of_dma_is_coherent(struct device_node *np) | ||
| 103 | { | ||
| 104 | return false; | ||
| 105 | } | ||
| 92 | #endif /* CONFIG_OF_ADDRESS */ | 106 | #endif /* CONFIG_OF_ADDRESS */ |
| 93 | 107 | ||
| 94 | #ifdef CONFIG_OF | 108 | #ifdef CONFIG_OF |
diff --git a/include/linux/suspend.h b/include/linux/suspend.h index 91d66fd8dce1..f76994b9396c 100644 --- a/include/linux/suspend.h +++ b/include/linux/suspend.h | |||
| @@ -327,6 +327,8 @@ extern unsigned long get_safe_page(gfp_t gfp_mask); | |||
| 327 | extern void hibernation_set_ops(const struct platform_hibernation_ops *ops); | 327 | extern void hibernation_set_ops(const struct platform_hibernation_ops *ops); |
| 328 | extern int hibernate(void); | 328 | extern int hibernate(void); |
| 329 | extern bool system_entering_hibernation(void); | 329 | extern bool system_entering_hibernation(void); |
| 330 | asmlinkage int swsusp_save(void); | ||
| 331 | extern struct pbe *restore_pblist; | ||
| 330 | #else /* CONFIG_HIBERNATION */ | 332 | #else /* CONFIG_HIBERNATION */ |
| 331 | static inline void register_nosave_region(unsigned long b, unsigned long e) {} | 333 | static inline void register_nosave_region(unsigned long b, unsigned long e) {} |
| 332 | static inline void register_nosave_region_late(unsigned long b, unsigned long e) {} | 334 | static inline void register_nosave_region_late(unsigned long b, unsigned long e) {} |
diff --git a/include/linux/uprobes.h b/include/linux/uprobes.h index edff2b97b864..c52f827ba6ce 100644 --- a/include/linux/uprobes.h +++ b/include/linux/uprobes.h | |||
| @@ -32,6 +32,7 @@ struct vm_area_struct; | |||
| 32 | struct mm_struct; | 32 | struct mm_struct; |
| 33 | struct inode; | 33 | struct inode; |
| 34 | struct notifier_block; | 34 | struct notifier_block; |
| 35 | struct page; | ||
| 35 | 36 | ||
| 36 | #define UPROBE_HANDLER_REMOVE 1 | 37 | #define UPROBE_HANDLER_REMOVE 1 |
| 37 | #define UPROBE_HANDLER_MASK 1 | 38 | #define UPROBE_HANDLER_MASK 1 |
| @@ -127,6 +128,8 @@ extern int arch_uprobe_exception_notify(struct notifier_block *self, unsigned l | |||
| 127 | extern void arch_uprobe_abort_xol(struct arch_uprobe *aup, struct pt_regs *regs); | 128 | extern void arch_uprobe_abort_xol(struct arch_uprobe *aup, struct pt_regs *regs); |
| 128 | extern unsigned long arch_uretprobe_hijack_return_addr(unsigned long trampoline_vaddr, struct pt_regs *regs); | 129 | extern unsigned long arch_uretprobe_hijack_return_addr(unsigned long trampoline_vaddr, struct pt_regs *regs); |
| 129 | extern bool __weak arch_uprobe_ignore(struct arch_uprobe *aup, struct pt_regs *regs); | 130 | extern bool __weak arch_uprobe_ignore(struct arch_uprobe *aup, struct pt_regs *regs); |
| 131 | extern void __weak arch_uprobe_copy_ixol(struct page *page, unsigned long vaddr, | ||
| 132 | void *src, unsigned long len); | ||
| 130 | #else /* !CONFIG_UPROBES */ | 133 | #else /* !CONFIG_UPROBES */ |
| 131 | struct uprobes_state { | 134 | struct uprobes_state { |
| 132 | }; | 135 | }; |
