Gentoo Archives: gentoo-commits

From: Mike Pagano <mpagano@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/linux-patches:4.9 commit in: /
Date: Sun, 10 Sep 2017 14:38:48
Message-Id: 1505054313.57a4132eae68a941350a6387cdc669f3ef2557ac.mpagano@gentoo
1 commit: 57a4132eae68a941350a6387cdc669f3ef2557ac
2 Author: Mike Pagano <mpagano <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 10 14:38:33 2017 +0000
4 Commit: Mike Pagano <mpagano <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 10 14:38:33 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=57a4132e
7
8 Linux patch 4.9.49
9
10 0000_README | 4 +
11 1048_linux-4.9.49.patch | 889 ++++++++++++++++++++++++++++++++++++++++++++++++
12 2 files changed, 893 insertions(+)
13
14 diff --git a/0000_README b/0000_README
15 index da58adf..e403e79 100644
16 --- a/0000_README
17 +++ b/0000_README
18 @@ -235,6 +235,10 @@ Patch: 1047_linux-4.9.48.patch
19 From: http://www.kernel.org
20 Desc: Linux 4.9.48
21
22 +Patch: 1048_linux-4.9.49.patch
23 +From: http://www.kernel.org
24 +Desc: Linux 4.9.49
25 +
26 Patch: 1500_XATTR_USER_PREFIX.patch
27 From: https://bugs.gentoo.org/show_bug.cgi?id=470644
28 Desc: Support for namespace user.pax.* on tmpfs.
29
30 diff --git a/1048_linux-4.9.49.patch b/1048_linux-4.9.49.patch
31 new file mode 100644
32 index 0000000..01d99cd
33 --- /dev/null
34 +++ b/1048_linux-4.9.49.patch
35 @@ -0,0 +1,889 @@
36 +diff --git a/Makefile b/Makefile
37 +index cfa188b427b1..1ebc553f5464 100644
38 +--- a/Makefile
39 ++++ b/Makefile
40 +@@ -1,6 +1,6 @@
41 + VERSION = 4
42 + PATCHLEVEL = 9
43 +-SUBLEVEL = 48
44 ++SUBLEVEL = 49
45 + EXTRAVERSION =
46 + NAME = Roaring Lionus
47 +
48 +diff --git a/arch/s390/include/asm/pgtable.h b/arch/s390/include/asm/pgtable.h
49 +index 0cea7026e4ff..d33f245af5e9 100644
50 +--- a/arch/s390/include/asm/pgtable.h
51 ++++ b/arch/s390/include/asm/pgtable.h
52 +@@ -480,7 +480,7 @@ static inline int mm_alloc_pgste(struct mm_struct *mm)
53 + * In the case that a guest uses storage keys
54 + * faults should no longer be backed by zero pages
55 + */
56 +-#define mm_forbids_zeropage mm_use_skey
57 ++#define mm_forbids_zeropage mm_has_pgste
58 + static inline int mm_use_skey(struct mm_struct *mm)
59 + {
60 + #ifdef CONFIG_PGSTE
61 +diff --git a/arch/s390/mm/gmap.c b/arch/s390/mm/gmap.c
62 +index 3ba622702ce4..cb2cd04e6698 100644
63 +--- a/arch/s390/mm/gmap.c
64 ++++ b/arch/s390/mm/gmap.c
65 +@@ -2124,6 +2124,37 @@ static inline void thp_split_mm(struct mm_struct *mm)
66 + #endif
67 + }
68 +
69 ++/*
70 ++ * Remove all empty zero pages from the mapping for lazy refaulting
71 ++ * - This must be called after mm->context.has_pgste is set, to avoid
72 ++ * future creation of zero pages
73 ++ * - This must be called after THP was enabled
74 ++ */
75 ++static int __zap_zero_pages(pmd_t *pmd, unsigned long start,
76 ++ unsigned long end, struct mm_walk *walk)
77 ++{
78 ++ unsigned long addr;
79 ++
80 ++ for (addr = start; addr != end; addr += PAGE_SIZE) {
81 ++ pte_t *ptep;
82 ++ spinlock_t *ptl;
83 ++
84 ++ ptep = pte_offset_map_lock(walk->mm, pmd, addr, &ptl);
85 ++ if (is_zero_pfn(pte_pfn(*ptep)))
86 ++ ptep_xchg_direct(walk->mm, addr, ptep, __pte(_PAGE_INVALID));
87 ++ pte_unmap_unlock(ptep, ptl);
88 ++ }
89 ++ return 0;
90 ++}
91 ++
92 ++static inline void zap_zero_pages(struct mm_struct *mm)
93 ++{
94 ++ struct mm_walk walk = { .pmd_entry = __zap_zero_pages };
95 ++
96 ++ walk.mm = mm;
97 ++ walk_page_range(0, TASK_SIZE, &walk);
98 ++}
99 ++
100 + /*
101 + * switch on pgstes for its userspace process (for kvm)
102 + */
103 +@@ -2141,6 +2172,7 @@ int s390_enable_sie(void)
104 + mm->context.has_pgste = 1;
105 + /* split thp mappings and disable thp for future mappings */
106 + thp_split_mm(mm);
107 ++ zap_zero_pages(mm);
108 + up_write(&mm->mmap_sem);
109 + return 0;
110 + }
111 +@@ -2153,13 +2185,6 @@ EXPORT_SYMBOL_GPL(s390_enable_sie);
112 + static int __s390_enable_skey(pte_t *pte, unsigned long addr,
113 + unsigned long next, struct mm_walk *walk)
114 + {
115 +- /*
116 +- * Remove all zero page mappings,
117 +- * after establishing a policy to forbid zero page mappings
118 +- * following faults for that page will get fresh anonymous pages
119 +- */
120 +- if (is_zero_pfn(pte_pfn(*pte)))
121 +- ptep_xchg_direct(walk->mm, addr, pte, __pte(_PAGE_INVALID));
122 + /* Clear storage key */
123 + ptep_zap_key(walk->mm, addr, pte);
124 + return 0;
125 +diff --git a/drivers/ata/pata_amd.c b/drivers/ata/pata_amd.c
126 +index 8d4d959a821c..8706533db57b 100644
127 +--- a/drivers/ata/pata_amd.c
128 ++++ b/drivers/ata/pata_amd.c
129 +@@ -616,6 +616,7 @@ static const struct pci_device_id amd[] = {
130 + { PCI_VDEVICE(NVIDIA, PCI_DEVICE_ID_NVIDIA_NFORCE_MCP73_IDE), 8 },
131 + { PCI_VDEVICE(NVIDIA, PCI_DEVICE_ID_NVIDIA_NFORCE_MCP77_IDE), 8 },
132 + { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_CS5536_IDE), 9 },
133 ++ { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_CS5536_DEV_IDE), 9 },
134 +
135 + { },
136 + };
137 +diff --git a/drivers/ata/pata_cs5536.c b/drivers/ata/pata_cs5536.c
138 +index 6c15a554efbe..dc1255294628 100644
139 +--- a/drivers/ata/pata_cs5536.c
140 ++++ b/drivers/ata/pata_cs5536.c
141 +@@ -289,6 +289,7 @@ static int cs5536_init_one(struct pci_dev *dev, const struct pci_device_id *id)
142 +
143 + static const struct pci_device_id cs5536[] = {
144 + { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_CS5536_IDE), },
145 ++ { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_CS5536_DEV_IDE), },
146 + { },
147 + };
148 +
149 +diff --git a/drivers/base/bus.c b/drivers/base/bus.c
150 +index 6470eb8088f4..e32a74eb28a3 100644
151 +--- a/drivers/base/bus.c
152 ++++ b/drivers/base/bus.c
153 +@@ -736,7 +736,7 @@ int bus_add_driver(struct device_driver *drv)
154 +
155 + out_unregister:
156 + kobject_put(&priv->kobj);
157 +- kfree(drv->p);
158 ++ /* drv->p is freed in driver_release() */
159 + drv->p = NULL;
160 + out_put_bus:
161 + bus_put(bus);
162 +diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
163 +index dd220fad366c..74e677ac8e37 100644
164 +--- a/drivers/bluetooth/btusb.c
165 ++++ b/drivers/bluetooth/btusb.c
166 +@@ -342,6 +342,7 @@ static const struct usb_device_id blacklist_table[] = {
167 + { USB_DEVICE(0x13d3, 0x3410), .driver_info = BTUSB_REALTEK },
168 + { USB_DEVICE(0x13d3, 0x3416), .driver_info = BTUSB_REALTEK },
169 + { USB_DEVICE(0x13d3, 0x3459), .driver_info = BTUSB_REALTEK },
170 ++ { USB_DEVICE(0x13d3, 0x3494), .driver_info = BTUSB_REALTEK },
171 +
172 + /* Additional Realtek 8821AE Bluetooth devices */
173 + { USB_DEVICE(0x0b05, 0x17dc), .driver_info = BTUSB_REALTEK },
174 +diff --git a/drivers/gpu/drm/bridge/adv7511/adv7511.h b/drivers/gpu/drm/bridge/adv7511/adv7511.h
175 +index 161c923d6162..3e74e1a6584c 100644
176 +--- a/drivers/gpu/drm/bridge/adv7511/adv7511.h
177 ++++ b/drivers/gpu/drm/bridge/adv7511/adv7511.h
178 +@@ -315,6 +315,8 @@ struct adv7511 {
179 + bool edid_read;
180 +
181 + wait_queue_head_t wq;
182 ++ struct work_struct hpd_work;
183 ++
184 + struct drm_bridge bridge;
185 + struct drm_connector connector;
186 +
187 +diff --git a/drivers/gpu/drm/bridge/adv7511/adv7511_drv.c b/drivers/gpu/drm/bridge/adv7511/adv7511_drv.c
188 +index 8ed3906dd411..213d892b6fa3 100644
189 +--- a/drivers/gpu/drm/bridge/adv7511/adv7511_drv.c
190 ++++ b/drivers/gpu/drm/bridge/adv7511/adv7511_drv.c
191 +@@ -402,6 +402,27 @@ static bool adv7511_hpd(struct adv7511 *adv7511)
192 + return false;
193 + }
194 +
195 ++static void adv7511_hpd_work(struct work_struct *work)
196 ++{
197 ++ struct adv7511 *adv7511 = container_of(work, struct adv7511, hpd_work);
198 ++ enum drm_connector_status status;
199 ++ unsigned int val;
200 ++ int ret;
201 ++
202 ++ ret = regmap_read(adv7511->regmap, ADV7511_REG_STATUS, &val);
203 ++ if (ret < 0)
204 ++ status = connector_status_disconnected;
205 ++ else if (val & ADV7511_STATUS_HPD)
206 ++ status = connector_status_connected;
207 ++ else
208 ++ status = connector_status_disconnected;
209 ++
210 ++ if (adv7511->connector.status != status) {
211 ++ adv7511->connector.status = status;
212 ++ drm_kms_helper_hotplug_event(adv7511->connector.dev);
213 ++ }
214 ++}
215 ++
216 + static int adv7511_irq_process(struct adv7511 *adv7511, bool process_hpd)
217 + {
218 + unsigned int irq0, irq1;
219 +@@ -419,7 +440,7 @@ static int adv7511_irq_process(struct adv7511 *adv7511, bool process_hpd)
220 + regmap_write(adv7511->regmap, ADV7511_REG_INT(1), irq1);
221 +
222 + if (process_hpd && irq0 & ADV7511_INT0_HPD && adv7511->bridge.encoder)
223 +- drm_helper_hpd_irq_event(adv7511->connector.dev);
224 ++ schedule_work(&adv7511->hpd_work);
225 +
226 + if (irq0 & ADV7511_INT0_EDID_READY || irq1 & ADV7511_INT1_DDC_ERROR) {
227 + adv7511->edid_read = true;
228 +@@ -1006,6 +1027,8 @@ static int adv7511_probe(struct i2c_client *i2c, const struct i2c_device_id *id)
229 + goto err_i2c_unregister_edid;
230 + }
231 +
232 ++ INIT_WORK(&adv7511->hpd_work, adv7511_hpd_work);
233 ++
234 + if (i2c->irq) {
235 + init_waitqueue_head(&adv7511->wq);
236 +
237 +diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/pci/base.c b/drivers/gpu/drm/nouveau/nvkm/subdev/pci/base.c
238 +index eb9b278198b2..a4cb82495cee 100644
239 +--- a/drivers/gpu/drm/nouveau/nvkm/subdev/pci/base.c
240 ++++ b/drivers/gpu/drm/nouveau/nvkm/subdev/pci/base.c
241 +@@ -192,6 +192,10 @@ nvkm_pci_new_(const struct nvkm_pci_func *func, struct nvkm_device *device,
242 + }
243 + }
244 +
245 ++#ifdef __BIG_ENDIAN
246 ++ pci->msi = false;
247 ++#endif
248 ++
249 + pci->msi = nvkm_boolopt(device->cfgopt, "NvMSI", pci->msi);
250 + if (pci->msi && func->msi_rearm) {
251 + pci->msi = pci_enable_msi(pci->pdev) == 0;
252 +diff --git a/drivers/hwtracing/intel_th/pci.c b/drivers/hwtracing/intel_th/pci.c
253 +index 0bba3842336e..63b5db4e4070 100644
254 +--- a/drivers/hwtracing/intel_th/pci.c
255 ++++ b/drivers/hwtracing/intel_th/pci.c
256 +@@ -85,6 +85,16 @@ static const struct pci_device_id intel_th_pci_id_table[] = {
257 + PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0xa2a6),
258 + .driver_data = (kernel_ulong_t)0,
259 + },
260 ++ {
261 ++ /* Cannon Lake H */
262 ++ PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0xa326),
263 ++ .driver_data = (kernel_ulong_t)0,
264 ++ },
265 ++ {
266 ++ /* Cannon Lake LP */
267 ++ PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x9da6),
268 ++ .driver_data = (kernel_ulong_t)0,
269 ++ },
270 + { 0 },
271 + };
272 +
273 +diff --git a/drivers/iio/adc/ti-ads1015.c b/drivers/iio/adc/ti-ads1015.c
274 +index cde6f130a99a..472641fc890c 100644
275 +--- a/drivers/iio/adc/ti-ads1015.c
276 ++++ b/drivers/iio/adc/ti-ads1015.c
277 +@@ -80,18 +80,12 @@ static const unsigned int ads1115_data_rate[] = {
278 + 8, 16, 32, 64, 128, 250, 475, 860
279 + };
280 +
281 +-static const struct {
282 +- int scale;
283 +- int uscale;
284 +-} ads1015_scale[] = {
285 +- {3, 0},
286 +- {2, 0},
287 +- {1, 0},
288 +- {0, 500000},
289 +- {0, 250000},
290 +- {0, 125000},
291 +- {0, 125000},
292 +- {0, 125000},
293 ++/*
294 ++ * Translation from PGA bits to full-scale positive and negative input voltage
295 ++ * range in mV
296 ++ */
297 ++static int ads1015_fullscale_range[] = {
298 ++ 6144, 4096, 2048, 1024, 512, 256, 256, 256
299 + };
300 +
301 + #define ADS1015_V_CHAN(_chan, _addr) { \
302 +@@ -182,6 +176,12 @@ struct ads1015_data {
303 + struct ads1015_channel_data channel_data[ADS1015_CHANNELS];
304 +
305 + unsigned int *data_rate;
306 ++ /*
307 ++ * Set to true when the ADC is switched to the continuous-conversion
308 ++ * mode and exits from a power-down state. This flag is used to avoid
309 ++ * getting the stale result from the conversion register.
310 ++ */
311 ++ bool conv_invalid;
312 + };
313 +
314 + static bool ads1015_is_writeable_reg(struct device *dev, unsigned int reg)
315 +@@ -234,33 +234,43 @@ static int ads1015_set_power_state(struct ads1015_data *data, bool on)
316 + ret = pm_runtime_put_autosuspend(dev);
317 + }
318 +
319 +- return ret;
320 ++ return ret < 0 ? ret : 0;
321 + }
322 +
323 + static
324 + int ads1015_get_adc_result(struct ads1015_data *data, int chan, int *val)
325 + {
326 + int ret, pga, dr, conv_time;
327 +- bool change;
328 ++ unsigned int old, mask, cfg;
329 +
330 + if (chan < 0 || chan >= ADS1015_CHANNELS)
331 + return -EINVAL;
332 +
333 ++ ret = regmap_read(data->regmap, ADS1015_CFG_REG, &old);
334 ++ if (ret)
335 ++ return ret;
336 ++
337 + pga = data->channel_data[chan].pga;
338 + dr = data->channel_data[chan].data_rate;
339 ++ mask = ADS1015_CFG_MUX_MASK | ADS1015_CFG_PGA_MASK |
340 ++ ADS1015_CFG_DR_MASK;
341 ++ cfg = chan << ADS1015_CFG_MUX_SHIFT | pga << ADS1015_CFG_PGA_SHIFT |
342 ++ dr << ADS1015_CFG_DR_SHIFT;
343 +
344 +- ret = regmap_update_bits_check(data->regmap, ADS1015_CFG_REG,
345 +- ADS1015_CFG_MUX_MASK |
346 +- ADS1015_CFG_PGA_MASK,
347 +- chan << ADS1015_CFG_MUX_SHIFT |
348 +- pga << ADS1015_CFG_PGA_SHIFT,
349 +- &change);
350 +- if (ret < 0)
351 ++ cfg = (old & ~mask) | (cfg & mask);
352 ++
353 ++ ret = regmap_write(data->regmap, ADS1015_CFG_REG, cfg);
354 ++ if (ret)
355 + return ret;
356 +
357 +- if (change) {
358 +- conv_time = DIV_ROUND_UP(USEC_PER_SEC, data->data_rate[dr]);
359 ++ if (old != cfg || data->conv_invalid) {
360 ++ int dr_old = (old & ADS1015_CFG_DR_MASK) >>
361 ++ ADS1015_CFG_DR_SHIFT;
362 ++
363 ++ conv_time = DIV_ROUND_UP(USEC_PER_SEC, data->data_rate[dr_old]);
364 ++ conv_time += DIV_ROUND_UP(USEC_PER_SEC, data->data_rate[dr]);
365 + usleep_range(conv_time, conv_time + 1);
366 ++ data->conv_invalid = false;
367 + }
368 +
369 + return regmap_read(data->regmap, ADS1015_CONV_REG, val);
370 +@@ -297,17 +307,20 @@ static irqreturn_t ads1015_trigger_handler(int irq, void *p)
371 + return IRQ_HANDLED;
372 + }
373 +
374 +-static int ads1015_set_scale(struct ads1015_data *data, int chan,
375 ++static int ads1015_set_scale(struct ads1015_data *data,
376 ++ struct iio_chan_spec const *chan,
377 + int scale, int uscale)
378 + {
379 + int i, ret, rindex = -1;
380 ++ int fullscale = div_s64((scale * 1000000LL + uscale) <<
381 ++ (chan->scan_type.realbits - 1), 1000000);
382 +
383 +- for (i = 0; i < ARRAY_SIZE(ads1015_scale); i++)
384 +- if (ads1015_scale[i].scale == scale &&
385 +- ads1015_scale[i].uscale == uscale) {
386 ++ for (i = 0; i < ARRAY_SIZE(ads1015_fullscale_range); i++) {
387 ++ if (ads1015_fullscale_range[i] == fullscale) {
388 + rindex = i;
389 + break;
390 + }
391 ++ }
392 + if (rindex < 0)
393 + return -EINVAL;
394 +
395 +@@ -317,32 +330,23 @@ static int ads1015_set_scale(struct ads1015_data *data, int chan,
396 + if (ret < 0)
397 + return ret;
398 +
399 +- data->channel_data[chan].pga = rindex;
400 ++ data->channel_data[chan->address].pga = rindex;
401 +
402 + return 0;
403 + }
404 +
405 + static int ads1015_set_data_rate(struct ads1015_data *data, int chan, int rate)
406 + {
407 +- int i, ret, rindex = -1;
408 ++ int i;
409 +
410 +- for (i = 0; i < ARRAY_SIZE(ads1015_data_rate); i++)
411 ++ for (i = 0; i < ARRAY_SIZE(ads1015_data_rate); i++) {
412 + if (data->data_rate[i] == rate) {
413 +- rindex = i;
414 +- break;
415 ++ data->channel_data[chan].data_rate = i;
416 ++ return 0;
417 + }
418 +- if (rindex < 0)
419 +- return -EINVAL;
420 +-
421 +- ret = regmap_update_bits(data->regmap, ADS1015_CFG_REG,
422 +- ADS1015_CFG_DR_MASK,
423 +- rindex << ADS1015_CFG_DR_SHIFT);
424 +- if (ret < 0)
425 +- return ret;
426 +-
427 +- data->channel_data[chan].data_rate = rindex;
428 ++ }
429 +
430 +- return 0;
431 ++ return -EINVAL;
432 + }
433 +
434 + static int ads1015_read_raw(struct iio_dev *indio_dev,
435 +@@ -384,9 +388,9 @@ static int ads1015_read_raw(struct iio_dev *indio_dev,
436 + }
437 + case IIO_CHAN_INFO_SCALE:
438 + idx = data->channel_data[chan->address].pga;
439 +- *val = ads1015_scale[idx].scale;
440 +- *val2 = ads1015_scale[idx].uscale;
441 +- ret = IIO_VAL_INT_PLUS_MICRO;
442 ++ *val = ads1015_fullscale_range[idx];
443 ++ *val2 = chan->scan_type.realbits - 1;
444 ++ ret = IIO_VAL_FRACTIONAL_LOG2;
445 + break;
446 + case IIO_CHAN_INFO_SAMP_FREQ:
447 + idx = data->channel_data[chan->address].data_rate;
448 +@@ -413,7 +417,7 @@ static int ads1015_write_raw(struct iio_dev *indio_dev,
449 + mutex_lock(&data->lock);
450 + switch (mask) {
451 + case IIO_CHAN_INFO_SCALE:
452 +- ret = ads1015_set_scale(data, chan->address, val, val2);
453 ++ ret = ads1015_set_scale(data, chan, val, val2);
454 + break;
455 + case IIO_CHAN_INFO_SAMP_FREQ:
456 + ret = ads1015_set_data_rate(data, chan->address, val);
457 +@@ -445,7 +449,10 @@ static const struct iio_buffer_setup_ops ads1015_buffer_setup_ops = {
458 + .validate_scan_mask = &iio_validate_scan_mask_onehot,
459 + };
460 +
461 +-static IIO_CONST_ATTR(scale_available, "3 2 1 0.5 0.25 0.125");
462 ++static IIO_CONST_ATTR_NAMED(ads1015_scale_available, scale_available,
463 ++ "3 2 1 0.5 0.25 0.125");
464 ++static IIO_CONST_ATTR_NAMED(ads1115_scale_available, scale_available,
465 ++ "0.1875 0.125 0.0625 0.03125 0.015625 0.007813");
466 +
467 + static IIO_CONST_ATTR_NAMED(ads1015_sampling_frequency_available,
468 + sampling_frequency_available, "128 250 490 920 1600 2400 3300");
469 +@@ -453,7 +460,7 @@ static IIO_CONST_ATTR_NAMED(ads1115_sampling_frequency_available,
470 + sampling_frequency_available, "8 16 32 64 128 250 475 860");
471 +
472 + static struct attribute *ads1015_attributes[] = {
473 +- &iio_const_attr_scale_available.dev_attr.attr,
474 ++ &iio_const_attr_ads1015_scale_available.dev_attr.attr,
475 + &iio_const_attr_ads1015_sampling_frequency_available.dev_attr.attr,
476 + NULL,
477 + };
478 +@@ -463,7 +470,7 @@ static const struct attribute_group ads1015_attribute_group = {
479 + };
480 +
481 + static struct attribute *ads1115_attributes[] = {
482 +- &iio_const_attr_scale_available.dev_attr.attr,
483 ++ &iio_const_attr_ads1115_scale_available.dev_attr.attr,
484 + &iio_const_attr_ads1115_sampling_frequency_available.dev_attr.attr,
485 + NULL,
486 + };
487 +@@ -624,6 +631,15 @@ static int ads1015_probe(struct i2c_client *client,
488 + dev_err(&client->dev, "iio triggered buffer setup failed\n");
489 + return ret;
490 + }
491 ++
492 ++ ret = regmap_update_bits(data->regmap, ADS1015_CFG_REG,
493 ++ ADS1015_CFG_MOD_MASK,
494 ++ ADS1015_CONTINUOUS << ADS1015_CFG_MOD_SHIFT);
495 ++ if (ret)
496 ++ return ret;
497 ++
498 ++ data->conv_invalid = true;
499 ++
500 + ret = pm_runtime_set_active(&client->dev);
501 + if (ret)
502 + goto err_buffer_cleanup;
503 +@@ -679,10 +695,15 @@ static int ads1015_runtime_resume(struct device *dev)
504 + {
505 + struct iio_dev *indio_dev = i2c_get_clientdata(to_i2c_client(dev));
506 + struct ads1015_data *data = iio_priv(indio_dev);
507 ++ int ret;
508 +
509 +- return regmap_update_bits(data->regmap, ADS1015_CFG_REG,
510 ++ ret = regmap_update_bits(data->regmap, ADS1015_CFG_REG,
511 + ADS1015_CFG_MOD_MASK,
512 + ADS1015_CONTINUOUS << ADS1015_CFG_MOD_SHIFT);
513 ++ if (!ret)
514 ++ data->conv_invalid = true;
515 ++
516 ++ return ret;
517 + }
518 + #endif
519 +
520 +diff --git a/drivers/input/mouse/trackpoint.c b/drivers/input/mouse/trackpoint.c
521 +index ce6ff9b301bb..7e2dc5e56632 100644
522 +--- a/drivers/input/mouse/trackpoint.c
523 ++++ b/drivers/input/mouse/trackpoint.c
524 +@@ -381,8 +381,8 @@ int trackpoint_detect(struct psmouse *psmouse, bool set_properties)
525 + return 0;
526 +
527 + if (trackpoint_read(&psmouse->ps2dev, TP_EXT_BTN, &button_info)) {
528 +- psmouse_warn(psmouse, "failed to get extended button data\n");
529 +- button_info = 0;
530 ++ psmouse_warn(psmouse, "failed to get extended button data, assuming 3 buttons\n");
531 ++ button_info = 0x33;
532 + }
533 +
534 + psmouse->private = kzalloc(sizeof(struct trackpoint_data), GFP_KERNEL);
535 +diff --git a/drivers/mcb/mcb-lpc.c b/drivers/mcb/mcb-lpc.c
536 +index d072c088ce73..945091a88354 100644
537 +--- a/drivers/mcb/mcb-lpc.c
538 ++++ b/drivers/mcb/mcb-lpc.c
539 +@@ -114,6 +114,12 @@ static struct resource sc24_fpga_resource = {
540 + .flags = IORESOURCE_MEM,
541 + };
542 +
543 ++static struct resource sc31_fpga_resource = {
544 ++ .start = 0xf000e000,
545 ++ .end = 0xf000e000 + CHAM_HEADER_SIZE,
546 ++ .flags = IORESOURCE_MEM,
547 ++};
548 ++
549 + static struct platform_driver mcb_lpc_driver = {
550 + .driver = {
551 + .name = "mcb-lpc",
552 +@@ -132,6 +138,15 @@ static const struct dmi_system_id mcb_lpc_dmi_table[] = {
553 + .driver_data = (void *)&sc24_fpga_resource,
554 + .callback = mcb_lpc_create_platform_device,
555 + },
556 ++ {
557 ++ .ident = "SC31",
558 ++ .matches = {
559 ++ DMI_MATCH(DMI_SYS_VENDOR, "MEN"),
560 ++ DMI_MATCH(DMI_PRODUCT_VERSION, "14SC31"),
561 ++ },
562 ++ .driver_data = (void *)&sc31_fpga_resource,
563 ++ .callback = mcb_lpc_create_platform_device,
564 ++ },
565 + {}
566 + };
567 + MODULE_DEVICE_TABLE(dmi, mcb_lpc_dmi_table);
568 +diff --git a/drivers/net/wireless/ath/ath10k/core.c b/drivers/net/wireless/ath/ath10k/core.c
569 +index 972b5e224d5d..366d3dcb8e9d 100644
570 +--- a/drivers/net/wireless/ath/ath10k/core.c
571 ++++ b/drivers/net/wireless/ath/ath10k/core.c
572 +@@ -1852,6 +1852,12 @@ int ath10k_core_start(struct ath10k *ar, enum ath10k_firmware_mode mode,
573 + goto err_wmi_detach;
574 + }
575 +
576 ++ /* If firmware indicates Full Rx Reorder support it must be used in a
577 ++ * slightly different manner. Let HTT code know.
578 ++ */
579 ++ ar->htt.rx_ring.in_ord_rx = !!(test_bit(WMI_SERVICE_RX_FULL_REORDER,
580 ++ ar->wmi.svc_map));
581 ++
582 + status = ath10k_htt_rx_alloc(&ar->htt);
583 + if (status) {
584 + ath10k_err(ar, "failed to alloc htt rx: %d\n", status);
585 +@@ -1964,12 +1970,6 @@ int ath10k_core_start(struct ath10k *ar, enum ath10k_firmware_mode mode,
586 + }
587 + }
588 +
589 +- /* If firmware indicates Full Rx Reorder support it must be used in a
590 +- * slightly different manner. Let HTT code know.
591 +- */
592 +- ar->htt.rx_ring.in_ord_rx = !!(test_bit(WMI_SERVICE_RX_FULL_REORDER,
593 +- ar->wmi.svc_map));
594 +-
595 + status = ath10k_htt_rx_ring_refill(ar);
596 + if (status) {
597 + ath10k_err(ar, "failed to refill htt rx ring: %d\n", status);
598 +diff --git a/drivers/net/wireless/intel/iwlwifi/pcie/drv.c b/drivers/net/wireless/intel/iwlwifi/pcie/drv.c
599 +index 2f8134b2a504..177fd5be2811 100644
600 +--- a/drivers/net/wireless/intel/iwlwifi/pcie/drv.c
601 ++++ b/drivers/net/wireless/intel/iwlwifi/pcie/drv.c
602 +@@ -429,6 +429,7 @@ static const struct pci_device_id iwl_hw_card_ids[] = {
603 + {IWL_PCI_DEVICE(0x095B, 0x520A, iwl7265_2ac_cfg)},
604 + {IWL_PCI_DEVICE(0x095A, 0x9000, iwl7265_2ac_cfg)},
605 + {IWL_PCI_DEVICE(0x095A, 0x9400, iwl7265_2ac_cfg)},
606 ++ {IWL_PCI_DEVICE(0x095A, 0x9E10, iwl7265_2ac_cfg)},
607 +
608 + /* 8000 Series */
609 + {IWL_PCI_DEVICE(0x24F3, 0x0010, iwl8260_2ac_cfg)},
610 +diff --git a/drivers/net/wireless/marvell/mwifiex/cfg80211.c b/drivers/net/wireless/marvell/mwifiex/cfg80211.c
611 +index afdbbf59a278..8677a53ef725 100644
612 +--- a/drivers/net/wireless/marvell/mwifiex/cfg80211.c
613 ++++ b/drivers/net/wireless/marvell/mwifiex/cfg80211.c
614 +@@ -4188,7 +4188,7 @@ int mwifiex_init_channel_scan_gap(struct mwifiex_adapter *adapter)
615 + if (adapter->config_bands & BAND_A)
616 + n_channels_a = mwifiex_band_5ghz.n_channels;
617 +
618 +- adapter->num_in_chan_stats = max_t(u32, n_channels_bg, n_channels_a);
619 ++ adapter->num_in_chan_stats = n_channels_bg + n_channels_a;
620 + adapter->chan_stats = vmalloc(sizeof(*adapter->chan_stats) *
621 + adapter->num_in_chan_stats);
622 +
623 +diff --git a/drivers/net/wireless/marvell/mwifiex/scan.c b/drivers/net/wireless/marvell/mwifiex/scan.c
624 +index 97c9765b5bc6..78d59a67f7e1 100644
625 +--- a/drivers/net/wireless/marvell/mwifiex/scan.c
626 ++++ b/drivers/net/wireless/marvell/mwifiex/scan.c
627 +@@ -2479,6 +2479,12 @@ mwifiex_update_chan_statistics(struct mwifiex_private *priv,
628 + sizeof(struct mwifiex_chan_stats);
629 +
630 + for (i = 0 ; i < num_chan; i++) {
631 ++ if (adapter->survey_idx >= adapter->num_in_chan_stats) {
632 ++ mwifiex_dbg(adapter, WARN,
633 ++ "FW reported too many channel results (max %d)\n",
634 ++ adapter->num_in_chan_stats);
635 ++ return;
636 ++ }
637 + chan_stats.chan_num = fw_chan_stats->chan_num;
638 + chan_stats.bandcfg = fw_chan_stats->bandcfg;
639 + chan_stats.flags = fw_chan_stats->flags;
640 +diff --git a/drivers/net/wireless/realtek/rtlwifi/pci.c b/drivers/net/wireless/realtek/rtlwifi/pci.c
641 +index 5be4fc96002d..75ffeaa54ed8 100644
642 +--- a/drivers/net/wireless/realtek/rtlwifi/pci.c
643 ++++ b/drivers/net/wireless/realtek/rtlwifi/pci.c
644 +@@ -2269,7 +2269,7 @@ int rtl_pci_probe(struct pci_dev *pdev,
645 + /* find adapter */
646 + if (!_rtl_pci_find_adapter(pdev, hw)) {
647 + err = -ENODEV;
648 +- goto fail3;
649 ++ goto fail2;
650 + }
651 +
652 + /* Init IO handler */
653 +@@ -2339,10 +2339,10 @@ int rtl_pci_probe(struct pci_dev *pdev,
654 + pci_set_drvdata(pdev, NULL);
655 + rtl_deinit_core(hw);
656 +
657 ++fail2:
658 + if (rtlpriv->io.pci_mem_start != 0)
659 + pci_iounmap(pdev, (void __iomem *)rtlpriv->io.pci_mem_start);
660 +
661 +-fail2:
662 + pci_release_regions(pdev);
663 + complete(&rtlpriv->firmware_loading_complete);
664 +
665 +diff --git a/drivers/scsi/sg.c b/drivers/scsi/sg.c
666 +index fed37aabf828..9236a13d5d2a 100644
667 +--- a/drivers/scsi/sg.c
668 ++++ b/drivers/scsi/sg.c
669 +@@ -1244,6 +1244,7 @@ sg_mmap(struct file *filp, struct vm_area_struct *vma)
670 + unsigned long req_sz, len, sa;
671 + Sg_scatter_hold *rsv_schp;
672 + int k, length;
673 ++ int ret = 0;
674 +
675 + if ((!filp) || (!vma) || (!(sfp = (Sg_fd *) filp->private_data)))
676 + return -ENXIO;
677 +@@ -1254,8 +1255,11 @@ sg_mmap(struct file *filp, struct vm_area_struct *vma)
678 + if (vma->vm_pgoff)
679 + return -EINVAL; /* want no offset */
680 + rsv_schp = &sfp->reserve;
681 +- if (req_sz > rsv_schp->bufflen)
682 +- return -ENOMEM; /* cannot map more than reserved buffer */
683 ++ mutex_lock(&sfp->f_mutex);
684 ++ if (req_sz > rsv_schp->bufflen) {
685 ++ ret = -ENOMEM; /* cannot map more than reserved buffer */
686 ++ goto out;
687 ++ }
688 +
689 + sa = vma->vm_start;
690 + length = 1 << (PAGE_SHIFT + rsv_schp->page_order);
691 +@@ -1269,7 +1273,9 @@ sg_mmap(struct file *filp, struct vm_area_struct *vma)
692 + vma->vm_flags |= VM_IO | VM_DONTEXPAND | VM_DONTDUMP;
693 + vma->vm_private_data = sfp;
694 + vma->vm_ops = &sg_mmap_vm_ops;
695 +- return 0;
696 ++out:
697 ++ mutex_unlock(&sfp->f_mutex);
698 ++ return ret;
699 + }
700 +
701 + static void
702 +@@ -1741,9 +1747,12 @@ sg_start_req(Sg_request *srp, unsigned char *cmd)
703 + !sfp->res_in_use) {
704 + sfp->res_in_use = 1;
705 + sg_link_reserve(sfp, srp, dxfer_len);
706 +- } else if ((hp->flags & SG_FLAG_MMAP_IO) && sfp->res_in_use) {
707 ++ } else if (hp->flags & SG_FLAG_MMAP_IO) {
708 ++ res = -EBUSY; /* sfp->res_in_use == 1 */
709 ++ if (dxfer_len > rsv_schp->bufflen)
710 ++ res = -ENOMEM;
711 + mutex_unlock(&sfp->f_mutex);
712 +- return -EBUSY;
713 ++ return res;
714 + } else {
715 + res = sg_build_indirect(req_schp, sfp, dxfer_len);
716 + if (res) {
717 +diff --git a/drivers/staging/rts5208/rtsx_scsi.c b/drivers/staging/rts5208/rtsx_scsi.c
718 +index becb4bba166c..b3790334fd3f 100644
719 +--- a/drivers/staging/rts5208/rtsx_scsi.c
720 ++++ b/drivers/staging/rts5208/rtsx_scsi.c
721 +@@ -414,7 +414,7 @@ void set_sense_data(struct rtsx_chip *chip, unsigned int lun, u8 err_code,
722 + sense->ascq = ascq;
723 + if (sns_key_info0 != 0) {
724 + sense->sns_key_info[0] = SKSV | sns_key_info0;
725 +- sense->sns_key_info[1] = (sns_key_info1 & 0xf0) >> 8;
726 ++ sense->sns_key_info[1] = (sns_key_info1 & 0xf0) >> 4;
727 + sense->sns_key_info[2] = sns_key_info1 & 0x0f;
728 + }
729 + }
730 +diff --git a/drivers/usb/core/devio.c b/drivers/usb/core/devio.c
731 +index 840930b014f6..c8075eb3db26 100644
732 +--- a/drivers/usb/core/devio.c
733 ++++ b/drivers/usb/core/devio.c
734 +@@ -629,6 +629,8 @@ static void async_completed(struct urb *urb)
735 + if (as->status < 0 && as->bulk_addr && as->status != -ECONNRESET &&
736 + as->status != -ENOENT)
737 + cancel_bulk_urbs(ps, as->bulk_addr);
738 ++
739 ++ wake_up(&ps->wait);
740 + spin_unlock(&ps->lock);
741 +
742 + if (signr) {
743 +@@ -636,8 +638,6 @@ static void async_completed(struct urb *urb)
744 + put_pid(pid);
745 + put_cred(cred);
746 + }
747 +-
748 +- wake_up(&ps->wait);
749 + }
750 +
751 + static void destroy_async(struct usb_dev_state *ps, struct list_head *list)
752 +diff --git a/drivers/usb/core/quirks.c b/drivers/usb/core/quirks.c
753 +index 574da2b4529c..82806e311202 100644
754 +--- a/drivers/usb/core/quirks.c
755 ++++ b/drivers/usb/core/quirks.c
756 +@@ -57,8 +57,9 @@ static const struct usb_device_id usb_quirk_list[] = {
757 + /* Microsoft LifeCam-VX700 v2.0 */
758 + { USB_DEVICE(0x045e, 0x0770), .driver_info = USB_QUIRK_RESET_RESUME },
759 +
760 +- /* Logitech HD Pro Webcams C920 and C930e */
761 ++ /* Logitech HD Pro Webcams C920, C920-C and C930e */
762 + { USB_DEVICE(0x046d, 0x082d), .driver_info = USB_QUIRK_DELAY_INIT },
763 ++ { USB_DEVICE(0x046d, 0x0841), .driver_info = USB_QUIRK_DELAY_INIT },
764 + { USB_DEVICE(0x046d, 0x0843), .driver_info = USB_QUIRK_DELAY_INIT },
765 +
766 + /* Logitech ConferenceCam CC3000e */
767 +@@ -217,6 +218,9 @@ static const struct usb_device_id usb_quirk_list[] = {
768 + { USB_DEVICE(0x1a0a, 0x0200), .driver_info =
769 + USB_QUIRK_LINEAR_UFRAME_INTR_BINTERVAL },
770 +
771 ++ /* Corsair Strafe RGB */
772 ++ { USB_DEVICE(0x1b1c, 0x1b20), .driver_info = USB_QUIRK_DELAY_INIT },
773 ++
774 + /* Acer C120 LED Projector */
775 + { USB_DEVICE(0x1de1, 0xc102), .driver_info = USB_QUIRK_NO_LPM },
776 +
777 +diff --git a/drivers/usb/host/pci-quirks.c b/drivers/usb/host/pci-quirks.c
778 +index 5f4ca7890435..58b9685eb21f 100644
779 +--- a/drivers/usb/host/pci-quirks.c
780 ++++ b/drivers/usb/host/pci-quirks.c
781 +@@ -142,29 +142,30 @@ static int amd_chipset_sb_type_init(struct amd_chipset_info *pinfo)
782 + pinfo->sb_type.gen = AMD_CHIPSET_SB700;
783 + else if (rev >= 0x40 && rev <= 0x4f)
784 + pinfo->sb_type.gen = AMD_CHIPSET_SB800;
785 +- }
786 +- pinfo->smbus_dev = pci_get_device(PCI_VENDOR_ID_AMD,
787 +- 0x145c, NULL);
788 +- if (pinfo->smbus_dev) {
789 +- pinfo->sb_type.gen = AMD_CHIPSET_TAISHAN;
790 + } else {
791 + pinfo->smbus_dev = pci_get_device(PCI_VENDOR_ID_AMD,
792 + PCI_DEVICE_ID_AMD_HUDSON2_SMBUS, NULL);
793 +
794 +- if (!pinfo->smbus_dev) {
795 +- pinfo->sb_type.gen = NOT_AMD_CHIPSET;
796 +- return 0;
797 ++ if (pinfo->smbus_dev) {
798 ++ rev = pinfo->smbus_dev->revision;
799 ++ if (rev >= 0x11 && rev <= 0x14)
800 ++ pinfo->sb_type.gen = AMD_CHIPSET_HUDSON2;
801 ++ else if (rev >= 0x15 && rev <= 0x18)
802 ++ pinfo->sb_type.gen = AMD_CHIPSET_BOLTON;
803 ++ else if (rev >= 0x39 && rev <= 0x3a)
804 ++ pinfo->sb_type.gen = AMD_CHIPSET_YANGTZE;
805 ++ } else {
806 ++ pinfo->smbus_dev = pci_get_device(PCI_VENDOR_ID_AMD,
807 ++ 0x145c, NULL);
808 ++ if (pinfo->smbus_dev) {
809 ++ rev = pinfo->smbus_dev->revision;
810 ++ pinfo->sb_type.gen = AMD_CHIPSET_TAISHAN;
811 ++ } else {
812 ++ pinfo->sb_type.gen = NOT_AMD_CHIPSET;
813 ++ return 0;
814 ++ }
815 + }
816 +-
817 +- rev = pinfo->smbus_dev->revision;
818 +- if (rev >= 0x11 && rev <= 0x14)
819 +- pinfo->sb_type.gen = AMD_CHIPSET_HUDSON2;
820 +- else if (rev >= 0x15 && rev <= 0x18)
821 +- pinfo->sb_type.gen = AMD_CHIPSET_BOLTON;
822 +- else if (rev >= 0x39 && rev <= 0x3a)
823 +- pinfo->sb_type.gen = AMD_CHIPSET_YANGTZE;
824 + }
825 +-
826 + pinfo->sb_type.rev = rev;
827 + return 1;
828 + }
829 +diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c
830 +index 261ed2ca28f9..a6b6b1cf1317 100644
831 +--- a/drivers/usb/musb/musb_core.c
832 ++++ b/drivers/usb/musb/musb_core.c
833 +@@ -2655,6 +2655,13 @@ static int musb_suspend(struct device *dev)
834 + {
835 + struct musb *musb = dev_to_musb(dev);
836 + unsigned long flags;
837 ++ int ret;
838 ++
839 ++ ret = pm_runtime_get_sync(dev);
840 ++ if (ret < 0) {
841 ++ pm_runtime_put_noidle(dev);
842 ++ return ret;
843 ++ }
844 +
845 + musb_platform_disable(musb);
846 + musb_generic_disable(musb);
847 +@@ -2703,14 +2710,6 @@ static int musb_resume(struct device *dev)
848 + if ((devctl & mask) != (musb->context.devctl & mask))
849 + musb->port1_status = 0;
850 +
851 +- /*
852 +- * The USB HUB code expects the device to be in RPM_ACTIVE once it came
853 +- * out of suspend
854 +- */
855 +- pm_runtime_disable(dev);
856 +- pm_runtime_set_active(dev);
857 +- pm_runtime_enable(dev);
858 +-
859 + musb_start(musb);
860 +
861 + spin_lock_irqsave(&musb->lock, flags);
862 +@@ -2720,6 +2719,9 @@ static int musb_resume(struct device *dev)
863 + error);
864 + spin_unlock_irqrestore(&musb->lock, flags);
865 +
866 ++ pm_runtime_mark_last_busy(dev);
867 ++ pm_runtime_put_autosuspend(dev);
868 ++
869 + return 0;
870 + }
871 +
872 +diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c
873 +index fe123153b1a5..2a9944326210 100644
874 +--- a/drivers/usb/serial/option.c
875 ++++ b/drivers/usb/serial/option.c
876 +@@ -2023,6 +2023,7 @@ static const struct usb_device_id option_ids[] = {
877 + { USB_DEVICE_AND_INTERFACE_INFO(0x2001, 0x7d03, 0xff, 0x02, 0x01) },
878 + { USB_DEVICE_AND_INTERFACE_INFO(0x2001, 0x7d03, 0xff, 0x00, 0x00) },
879 + { USB_DEVICE_INTERFACE_CLASS(0x2001, 0x7d04, 0xff) }, /* D-Link DWM-158 */
880 ++ { USB_DEVICE_INTERFACE_CLASS(0x2001, 0x7d0e, 0xff) }, /* D-Link DWM-157 C1 */
881 + { USB_DEVICE_INTERFACE_CLASS(0x2001, 0x7e19, 0xff), /* D-Link DWM-221 B1 */
882 + .driver_info = (kernel_ulong_t)&net_intf4_blacklist },
883 + { USB_DEVICE_INTERFACE_CLASS(0x2001, 0x7e35, 0xff), /* D-Link DWM-222 */
884 +diff --git a/fs/dlm/user.c b/fs/dlm/user.c
885 +index 58c2f4a21b7f..9ac65914ab5b 100644
886 +--- a/fs/dlm/user.c
887 ++++ b/fs/dlm/user.c
888 +@@ -355,6 +355,10 @@ static int dlm_device_register(struct dlm_ls *ls, char *name)
889 + error = misc_register(&ls->ls_device);
890 + if (error) {
891 + kfree(ls->ls_device.name);
892 ++ /* this has to be set to NULL
893 ++ * to avoid a double-free in dlm_device_deregister
894 ++ */
895 ++ ls->ls_device.name = NULL;
896 + }
897 + fail:
898 + return error;
899 +diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h
900 +index 3e5dbbe75f70..43082049baf2 100644
901 +--- a/include/linux/pci_ids.h
902 ++++ b/include/linux/pci_ids.h
903 +@@ -574,6 +574,7 @@
904 + #define PCI_DEVICE_ID_AMD_CS5536_EHC 0x2095
905 + #define PCI_DEVICE_ID_AMD_CS5536_UDC 0x2096
906 + #define PCI_DEVICE_ID_AMD_CS5536_UOC 0x2097
907 ++#define PCI_DEVICE_ID_AMD_CS5536_DEV_IDE 0x2092
908 + #define PCI_DEVICE_ID_AMD_CS5536_IDE 0x209A
909 + #define PCI_DEVICE_ID_AMD_LX_VIDEO 0x2081
910 + #define PCI_DEVICE_ID_AMD_LX_AES 0x2082
911 +diff --git a/include/linux/workqueue.h b/include/linux/workqueue.h
912 +index 733a21ef8da4..1061add575d2 100644
913 +--- a/include/linux/workqueue.h
914 ++++ b/include/linux/workqueue.h
915 +@@ -311,8 +311,8 @@ enum {
916 +
917 + __WQ_DRAINING = 1 << 16, /* internal: workqueue is draining */
918 + __WQ_ORDERED = 1 << 17, /* internal: workqueue is ordered */
919 +- __WQ_ORDERED_EXPLICIT = 1 << 18, /* internal: alloc_ordered_workqueue() */
920 + __WQ_LEGACY = 1 << 18, /* internal: create*_workqueue() */
921 ++ __WQ_ORDERED_EXPLICIT = 1 << 19, /* internal: alloc_ordered_workqueue() */
922 +
923 + WQ_MAX_ACTIVE = 512, /* I like 512, better ideas? */
924 + WQ_MAX_UNBOUND_PER_CPU = 4, /* 4 * #cpus for unbound wq */