diff options
Diffstat (limited to 'arch/ia64/include')
-rw-r--r-- | arch/ia64/include/asm/io.h | 1 | ||||
-rw-r--r-- | arch/ia64/include/asm/kvm_host.h | 6 | ||||
-rw-r--r-- | arch/ia64/include/asm/pci.h | 2 | ||||
-rw-r--r-- | arch/ia64/include/asm/pgalloc.h | 5 | ||||
-rw-r--r-- | arch/ia64/include/asm/processor.h | 2 | ||||
-rw-r--r-- | arch/ia64/include/asm/thread_info.h | 3 | ||||
-rw-r--r-- | arch/ia64/include/asm/xen/page-coherent.h | 38 | ||||
-rw-r--r-- | arch/ia64/include/uapi/asm/socket.h | 2 |
8 files changed, 48 insertions, 11 deletions
diff --git a/arch/ia64/include/asm/io.h b/arch/ia64/include/asm/io.h index 74a7cc3293bc..0d2bcb37ec35 100644 --- a/arch/ia64/include/asm/io.h +++ b/arch/ia64/include/asm/io.h | |||
@@ -424,6 +424,7 @@ extern void __iomem * ioremap(unsigned long offset, unsigned long size); | |||
424 | extern void __iomem * ioremap_nocache (unsigned long offset, unsigned long size); | 424 | extern void __iomem * ioremap_nocache (unsigned long offset, unsigned long size); |
425 | extern void iounmap (volatile void __iomem *addr); | 425 | extern void iounmap (volatile void __iomem *addr); |
426 | extern void __iomem * early_ioremap (unsigned long phys_addr, unsigned long size); | 426 | extern void __iomem * early_ioremap (unsigned long phys_addr, unsigned long size); |
427 | #define early_memremap(phys_addr, size) early_ioremap(phys_addr, size) | ||
427 | extern void early_iounmap (volatile void __iomem *addr, unsigned long size); | 428 | extern void early_iounmap (volatile void __iomem *addr, unsigned long size); |
428 | static inline void __iomem * ioremap_cache (unsigned long phys_addr, unsigned long size) | 429 | static inline void __iomem * ioremap_cache (unsigned long phys_addr, unsigned long size) |
429 | { | 430 | { |
diff --git a/arch/ia64/include/asm/kvm_host.h b/arch/ia64/include/asm/kvm_host.h index 989dd3fe8de1..db95f570705f 100644 --- a/arch/ia64/include/asm/kvm_host.h +++ b/arch/ia64/include/asm/kvm_host.h | |||
@@ -234,10 +234,6 @@ struct kvm_vm_data { | |||
234 | #define KVM_REQ_PTC_G 32 | 234 | #define KVM_REQ_PTC_G 32 |
235 | #define KVM_REQ_RESUME 33 | 235 | #define KVM_REQ_RESUME 33 |
236 | 236 | ||
237 | #define KVM_HPAGE_GFN_SHIFT(x) 0 | ||
238 | #define KVM_NR_PAGE_SIZES 1 | ||
239 | #define KVM_PAGES_PER_HPAGE(x) 1 | ||
240 | |||
241 | struct kvm; | 237 | struct kvm; |
242 | struct kvm_vcpu; | 238 | struct kvm_vcpu; |
243 | 239 | ||
@@ -480,7 +476,7 @@ struct kvm_arch { | |||
480 | 476 | ||
481 | struct list_head assigned_dev_head; | 477 | struct list_head assigned_dev_head; |
482 | struct iommu_domain *iommu_domain; | 478 | struct iommu_domain *iommu_domain; |
483 | int iommu_flags; | 479 | bool iommu_noncoherent; |
484 | 480 | ||
485 | unsigned long irq_sources_bitmap; | 481 | unsigned long irq_sources_bitmap; |
486 | unsigned long irq_states[KVM_IOAPIC_NUM_PINS]; | 482 | unsigned long irq_states[KVM_IOAPIC_NUM_PINS]; |
diff --git a/arch/ia64/include/asm/pci.h b/arch/ia64/include/asm/pci.h index 80775f55f03f..71fbaaa495cc 100644 --- a/arch/ia64/include/asm/pci.h +++ b/arch/ia64/include/asm/pci.h | |||
@@ -95,7 +95,7 @@ struct iospace_resource { | |||
95 | }; | 95 | }; |
96 | 96 | ||
97 | struct pci_controller { | 97 | struct pci_controller { |
98 | void *acpi_handle; | 98 | struct acpi_device *companion; |
99 | void *iommu; | 99 | void *iommu; |
100 | int segment; | 100 | int segment; |
101 | int node; /* nearest node with memory or -1 for global allocation */ | 101 | int node; /* nearest node with memory or -1 for global allocation */ |
diff --git a/arch/ia64/include/asm/pgalloc.h b/arch/ia64/include/asm/pgalloc.h index 96a8d927db28..5767cdfc08db 100644 --- a/arch/ia64/include/asm/pgalloc.h +++ b/arch/ia64/include/asm/pgalloc.h | |||
@@ -91,7 +91,10 @@ static inline pgtable_t pte_alloc_one(struct mm_struct *mm, unsigned long addr) | |||
91 | if (!pg) | 91 | if (!pg) |
92 | return NULL; | 92 | return NULL; |
93 | page = virt_to_page(pg); | 93 | page = virt_to_page(pg); |
94 | pgtable_page_ctor(page); | 94 | if (!pgtable_page_ctor(page)) { |
95 | quicklist_free(0, NULL, pg); | ||
96 | return NULL; | ||
97 | } | ||
95 | return page; | 98 | return page; |
96 | } | 99 | } |
97 | 100 | ||
diff --git a/arch/ia64/include/asm/processor.h b/arch/ia64/include/asm/processor.h index e0a899a1a8a6..5a84b3a50741 100644 --- a/arch/ia64/include/asm/processor.h +++ b/arch/ia64/include/asm/processor.h | |||
@@ -319,7 +319,7 @@ struct thread_struct { | |||
319 | regs->loadrs = 0; \ | 319 | regs->loadrs = 0; \ |
320 | regs->r8 = get_dumpable(current->mm); /* set "don't zap registers" flag */ \ | 320 | regs->r8 = get_dumpable(current->mm); /* set "don't zap registers" flag */ \ |
321 | regs->r12 = new_sp - 16; /* allocate 16 byte scratch area */ \ | 321 | regs->r12 = new_sp - 16; /* allocate 16 byte scratch area */ \ |
322 | if (unlikely(!get_dumpable(current->mm))) { \ | 322 | if (unlikely(get_dumpable(current->mm) != SUID_DUMP_USER)) { \ |
323 | /* \ | 323 | /* \ |
324 | * Zap scratch regs to avoid leaking bits between processes with different \ | 324 | * Zap scratch regs to avoid leaking bits between processes with different \ |
325 | * uid/privileges. \ | 325 | * uid/privileges. \ |
diff --git a/arch/ia64/include/asm/thread_info.h b/arch/ia64/include/asm/thread_info.h index cade13dd0299..5957cf61f898 100644 --- a/arch/ia64/include/asm/thread_info.h +++ b/arch/ia64/include/asm/thread_info.h | |||
@@ -11,9 +11,6 @@ | |||
11 | #include <asm/processor.h> | 11 | #include <asm/processor.h> |
12 | #include <asm/ptrace.h> | 12 | #include <asm/ptrace.h> |
13 | 13 | ||
14 | #define PREEMPT_ACTIVE_BIT 30 | ||
15 | #define PREEMPT_ACTIVE (1 << PREEMPT_ACTIVE_BIT) | ||
16 | |||
17 | #ifndef __ASSEMBLY__ | 14 | #ifndef __ASSEMBLY__ |
18 | 15 | ||
19 | /* | 16 | /* |
diff --git a/arch/ia64/include/asm/xen/page-coherent.h b/arch/ia64/include/asm/xen/page-coherent.h new file mode 100644 index 000000000000..96e42f97fa1f --- /dev/null +++ b/arch/ia64/include/asm/xen/page-coherent.h | |||
@@ -0,0 +1,38 @@ | |||
1 | #ifndef _ASM_IA64_XEN_PAGE_COHERENT_H | ||
2 | #define _ASM_IA64_XEN_PAGE_COHERENT_H | ||
3 | |||
4 | #include <asm/page.h> | ||
5 | #include <linux/dma-attrs.h> | ||
6 | #include <linux/dma-mapping.h> | ||
7 | |||
8 | static inline void *xen_alloc_coherent_pages(struct device *hwdev, size_t size, | ||
9 | dma_addr_t *dma_handle, gfp_t flags, | ||
10 | struct dma_attrs *attrs) | ||
11 | { | ||
12 | void *vstart = (void*)__get_free_pages(flags, get_order(size)); | ||
13 | *dma_handle = virt_to_phys(vstart); | ||
14 | return vstart; | ||
15 | } | ||
16 | |||
17 | static inline void xen_free_coherent_pages(struct device *hwdev, size_t size, | ||
18 | void *cpu_addr, dma_addr_t dma_handle, | ||
19 | struct dma_attrs *attrs) | ||
20 | { | ||
21 | free_pages((unsigned long) cpu_addr, get_order(size)); | ||
22 | } | ||
23 | |||
24 | static inline void xen_dma_map_page(struct device *hwdev, struct page *page, | ||
25 | unsigned long offset, size_t size, enum dma_data_direction dir, | ||
26 | struct dma_attrs *attrs) { } | ||
27 | |||
28 | static inline void xen_dma_unmap_page(struct device *hwdev, dma_addr_t handle, | ||
29 | size_t size, enum dma_data_direction dir, | ||
30 | struct dma_attrs *attrs) { } | ||
31 | |||
32 | static inline void xen_dma_sync_single_for_cpu(struct device *hwdev, | ||
33 | dma_addr_t handle, size_t size, enum dma_data_direction dir) { } | ||
34 | |||
35 | static inline void xen_dma_sync_single_for_device(struct device *hwdev, | ||
36 | dma_addr_t handle, size_t size, enum dma_data_direction dir) { } | ||
37 | |||
38 | #endif /* _ASM_IA64_XEN_PAGE_COHERENT_H */ | ||
diff --git a/arch/ia64/include/uapi/asm/socket.h b/arch/ia64/include/uapi/asm/socket.h index 556d0701a155..c25302fb48d9 100644 --- a/arch/ia64/include/uapi/asm/socket.h +++ b/arch/ia64/include/uapi/asm/socket.h | |||
@@ -85,4 +85,6 @@ | |||
85 | 85 | ||
86 | #define SO_BUSY_POLL 46 | 86 | #define SO_BUSY_POLL 46 |
87 | 87 | ||
88 | #define SO_MAX_PACING_RATE 47 | ||
89 | |||
88 | #endif /* _ASM_IA64_SOCKET_H */ | 90 | #endif /* _ASM_IA64_SOCKET_H */ |