diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-20 13:15:33 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-20 13:15:33 -0400 |
commit | b19a42e3cb9e73cad59e60ab7403e5afe7f4b262 (patch) | |
tree | 5b8ebea37f8d655abdfcab89647e118686dc29e8 /arch/s390/include/asm | |
parent | 5ca08a82a75c9109f8207cbcbef8705334b4713a (diff) | |
parent | 80ed156a3d12819a8c839f40f5b6996c4aa117a5 (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux
Pull more s390 updates from Martin Schwidefsky:
"The big thing in this second merge for s390 is the new eBPF JIT from
Michael which replaces the old 32-bit backend.
The remaining commits are bug fixes"
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux:
s390/pci: add locking for fmb access
s390/pci: extract software counters from fmb
s390/dasd: Fix unresumed device after suspend/resume having no paths
s390/dasd: fix unresumed device after suspend/resume
s390/dasd: fix inability to set a DASD device offline
s390/mm: Fix memory hotplug for unaligned standby memory
s390/bpf: Add s390x eBPF JIT compiler backend
s390: Use bool function return values of true/false not 1/0
Diffstat (limited to 'arch/s390/include/asm')
-rw-r--r-- | arch/s390/include/asm/dma-mapping.h | 2 | ||||
-rw-r--r-- | arch/s390/include/asm/pci.h | 10 |
2 files changed, 7 insertions, 5 deletions
diff --git a/arch/s390/include/asm/dma-mapping.h b/arch/s390/include/asm/dma-mapping.h index 709955ddaa4d..9d395961e713 100644 --- a/arch/s390/include/asm/dma-mapping.h +++ b/arch/s390/include/asm/dma-mapping.h | |||
@@ -42,7 +42,7 @@ static inline int dma_supported(struct device *dev, u64 mask) | |||
42 | static inline bool dma_capable(struct device *dev, dma_addr_t addr, size_t size) | 42 | static inline bool dma_capable(struct device *dev, dma_addr_t addr, size_t size) |
43 | { | 43 | { |
44 | if (!dev->dma_mask) | 44 | if (!dev->dma_mask) |
45 | return 0; | 45 | return false; |
46 | return addr + size - 1 <= *dev->dma_mask; | 46 | return addr + size - 1 <= *dev->dma_mask; |
47 | } | 47 | } |
48 | 48 | ||
diff --git a/arch/s390/include/asm/pci.h b/arch/s390/include/asm/pci.h index ef803c202d42..a648338c434a 100644 --- a/arch/s390/include/asm/pci.h +++ b/arch/s390/include/asm/pci.h | |||
@@ -7,6 +7,7 @@ | |||
7 | #define PCI_BAR_COUNT 6 | 7 | #define PCI_BAR_COUNT 6 |
8 | 8 | ||
9 | #include <linux/pci.h> | 9 | #include <linux/pci.h> |
10 | #include <linux/mutex.h> | ||
10 | #include <asm-generic/pci.h> | 11 | #include <asm-generic/pci.h> |
11 | #include <asm-generic/pci-dma-compat.h> | 12 | #include <asm-generic/pci-dma-compat.h> |
12 | #include <asm/pci_clp.h> | 13 | #include <asm/pci_clp.h> |
@@ -44,10 +45,6 @@ struct zpci_fmb { | |||
44 | u64 rpcit_ops; | 45 | u64 rpcit_ops; |
45 | u64 dma_rbytes; | 46 | u64 dma_rbytes; |
46 | u64 dma_wbytes; | 47 | u64 dma_wbytes; |
47 | /* software counters */ | ||
48 | atomic64_t allocated_pages; | ||
49 | atomic64_t mapped_pages; | ||
50 | atomic64_t unmapped_pages; | ||
51 | } __packed __aligned(16); | 48 | } __packed __aligned(16); |
52 | 49 | ||
53 | enum zpci_state { | 50 | enum zpci_state { |
@@ -80,6 +77,7 @@ struct zpci_dev { | |||
80 | u8 pft; /* pci function type */ | 77 | u8 pft; /* pci function type */ |
81 | u16 domain; | 78 | u16 domain; |
82 | 79 | ||
80 | struct mutex lock; | ||
83 | u8 pfip[CLP_PFIP_NR_SEGMENTS]; /* pci function internal path */ | 81 | u8 pfip[CLP_PFIP_NR_SEGMENTS]; /* pci function internal path */ |
84 | u32 uid; /* user defined id */ | 82 | u32 uid; /* user defined id */ |
85 | u8 util_str[CLP_UTIL_STR_LEN]; /* utility string */ | 83 | u8 util_str[CLP_UTIL_STR_LEN]; /* utility string */ |
@@ -111,6 +109,10 @@ struct zpci_dev { | |||
111 | /* Function measurement block */ | 109 | /* Function measurement block */ |
112 | struct zpci_fmb *fmb; | 110 | struct zpci_fmb *fmb; |
113 | u16 fmb_update; /* update interval */ | 111 | u16 fmb_update; /* update interval */ |
112 | /* software counters */ | ||
113 | atomic64_t allocated_pages; | ||
114 | atomic64_t mapped_pages; | ||
115 | atomic64_t unmapped_pages; | ||
114 | 116 | ||
115 | enum pci_bus_speed max_bus_speed; | 117 | enum pci_bus_speed max_bus_speed; |
116 | 118 | ||