Skip to content

Commit 33ae7f7

Browse files
committed
Merge branches 'acpi-cppc', 'acpi-video' and 'acpi-drivers'
* acpi-cppc: ACPI: CPPC: clean up acpi_get_psd_map() * acpi-video: ACPI: video: Use native backlight on Acer Aspire 5783z ACPI: video: Docs update for "acpi_backlight" kernel parameter options * acpi-drivers: thermal: int340x_thermal: fix: Update Tiger Lake ACPI device IDs platform/x86: intel-hid: fix: Update Tiger Lake ACPI device ID ACPI: Update Tiger Lake ACPI device IDs
4 parents fd03605 + b17b806 + 1c8fbc1 + 26d8bec commit 33ae7f7

File tree

9 files changed

+30
-38
lines changed

9 files changed

+30
-38
lines changed

Documentation/admin-guide/kernel-parameters.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,13 @@
2222
default: 0
2323

2424
acpi_backlight= [HW,ACPI]
25-
acpi_backlight=vendor
26-
acpi_backlight=video
27-
If set to vendor, prefer vendor specific driver
25+
{ vendor | video | native | none }
26+
If set to vendor, prefer vendor-specific driver
2827
(e.g. thinkpad_acpi, sony_acpi, etc.) instead
2928
of the ACPI video.ko driver.
29+
If set to video, use the ACPI video.ko driver.
30+
If set to native, use the device's native backlight mode.
31+
If set to none, disable the ACPI backlight interface.
3032

3133
acpi_force_32bit_fadt_addr
3234
force FADT to use 32 bit addresses rather than the

drivers/acpi/cppc_acpi.c

Lines changed: 7 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -438,13 +438,10 @@ int acpi_get_psd_map(struct cppc_cpudata **all_cpu_data)
438438
* domain info.
439439
*/
440440
for_each_possible_cpu(i) {
441-
pr = all_cpu_data[i];
442-
if (!pr)
443-
continue;
444-
445441
if (cpumask_test_cpu(i, covered_cpus))
446442
continue;
447443

444+
pr = all_cpu_data[i];
448445
cpc_ptr = per_cpu(cpc_desc_ptr, i);
449446
if (!cpc_ptr) {
450447
retval = -EFAULT;
@@ -495,44 +492,28 @@ int acpi_get_psd_map(struct cppc_cpudata **all_cpu_data)
495492
cpumask_set_cpu(j, pr->shared_cpu_map);
496493
}
497494

498-
for_each_possible_cpu(j) {
495+
for_each_cpu(j, pr->shared_cpu_map) {
499496
if (i == j)
500497
continue;
501498

502499
match_pr = all_cpu_data[j];
503-
if (!match_pr)
504-
continue;
505-
506-
match_cpc_ptr = per_cpu(cpc_desc_ptr, j);
507-
if (!match_cpc_ptr) {
508-
retval = -EFAULT;
509-
goto err_ret;
510-
}
511-
512-
match_pdomain = &(match_cpc_ptr->domain_info);
513-
if (match_pdomain->domain != pdomain->domain)
514-
continue;
515-
516500
match_pr->shared_type = pr->shared_type;
517501
cpumask_copy(match_pr->shared_cpu_map,
518502
pr->shared_cpu_map);
519503
}
520504
}
505+
goto out;
521506

522507
err_ret:
523508
for_each_possible_cpu(i) {
524509
pr = all_cpu_data[i];
525-
if (!pr)
526-
continue;
527510

528511
/* Assume no coordination on any error parsing domain info */
529-
if (retval) {
530-
cpumask_clear(pr->shared_cpu_map);
531-
cpumask_set_cpu(i, pr->shared_cpu_map);
532-
pr->shared_type = CPUFREQ_SHARED_TYPE_ALL;
533-
}
512+
cpumask_clear(pr->shared_cpu_map);
513+
cpumask_set_cpu(i, pr->shared_cpu_map);
514+
pr->shared_type = CPUFREQ_SHARED_TYPE_ALL;
534515
}
535-
516+
out:
536517
free_cpumask_var(covered_cpus);
537518
return retval;
538519
}

drivers/acpi/device_pm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1321,8 +1321,8 @@ int acpi_dev_pm_attach(struct device *dev, bool power_on)
13211321
*/
13221322
static const struct acpi_device_id special_pm_ids[] = {
13231323
{"PNP0C0B", }, /* Generic ACPI fan */
1324-
{"INT1044", }, /* Fan for Tiger Lake generation */
13251324
{"INT3404", }, /* Fan */
1325+
{"INTC1044", }, /* Fan for Tiger Lake generation */
13261326
{}
13271327
};
13281328
struct acpi_device *adev = ACPI_COMPANION(dev);

drivers/acpi/dptf/dptf_power.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ static int dptf_power_remove(struct platform_device *pdev)
9797
}
9898

9999
static const struct acpi_device_id int3407_device_ids[] = {
100-
{"INT1047", 0},
101100
{"INT3407", 0},
101+
{"INTC1047", 0},
102102
{"", 0},
103103
};
104104
MODULE_DEVICE_TABLE(acpi, int3407_device_ids);

drivers/acpi/dptf/int340x_thermal.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@
1313

1414
#define INT3401_DEVICE 0X01
1515
static const struct acpi_device_id int340x_thermal_device_ids[] = {
16-
{"INT1040"},
17-
{"INT1043"},
18-
{"INT1044"},
19-
{"INT1047"},
2016
{"INT3400"},
2117
{"INT3401", INT3401_DEVICE},
2218
{"INT3402"},
@@ -28,6 +24,10 @@ static const struct acpi_device_id int340x_thermal_device_ids[] = {
2824
{"INT3409"},
2925
{"INT340A"},
3026
{"INT340B"},
27+
{"INTC1040"},
28+
{"INTC1043"},
29+
{"INTC1044"},
30+
{"INTC1047"},
3131
{""},
3232
};
3333

drivers/acpi/video_detect.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,15 @@ static const struct dmi_system_id video_detect_dmi_table[] = {
352352
DMI_MATCH(DMI_PRODUCT_NAME, "Precision 7510"),
353353
},
354354
},
355+
{
356+
.callback = video_detect_force_native,
357+
.ident = "Acer Aspire 5738z",
358+
.matches = {
359+
DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
360+
DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 5738"),
361+
DMI_MATCH(DMI_BOARD_NAME, "JV50"),
362+
},
363+
},
355364

356365
/*
357366
* Desktops which falsely report a backlight and which our heuristics

drivers/platform/x86/intel-hid.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ MODULE_LICENSE("GPL");
1919
MODULE_AUTHOR("Alex Hung");
2020

2121
static const struct acpi_device_id intel_hid_ids[] = {
22-
{"INT1051", 0},
2322
{"INT33D5", 0},
23+
{"INTC1051", 0},
2424
{"", 0},
2525
};
2626

drivers/thermal/intel/int340x_thermal/int3400_thermal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,8 +369,8 @@ static int int3400_thermal_remove(struct platform_device *pdev)
369369
}
370370

371371
static const struct acpi_device_id int3400_thermal_match[] = {
372-
{"INT1040", 0},
373372
{"INT3400", 0},
373+
{"INTC1040", 0},
374374
{}
375375
};
376376

drivers/thermal/intel/int340x_thermal/int3403_thermal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,8 +282,8 @@ static int int3403_remove(struct platform_device *pdev)
282282
}
283283

284284
static const struct acpi_device_id int3403_device_ids[] = {
285-
{"INT1043", 0},
286285
{"INT3403", 0},
286+
{"INTC1043", 0},
287287
{"", 0},
288288
};
289289
MODULE_DEVICE_TABLE(acpi, int3403_device_ids);

0 commit comments

Comments
 (0)