Skip to content

Commit 4ab8d27

Browse files
committed
Merge branches 'acpi-resource', 'acpi-numa', 'acpi-soc' and 'acpi-misc'
Merge ACPI resources management quirks, ACPI NUMA updates, an ACPI LPSS (Intel SoC) driver update and an ACPI watchdog driver fixup for 6.8-rc1: - Add IRQ override quirks for some Infinity laptops and for TongFang GMxXGxx (David McFarland, Hans de Goede). - Clean up the ACPI NUMA code and fix it to ensure that fake_pxm is not the same as one of the real pxm values (Yuntao Wang). - Fix the fractional clock divider flags in the ACPI LPSS (Intel SoC) driver so as to prevent miscalculation of the values in the clock divider (Andy Shevchenko). - Adjust comments in the ACPI watchdog driver to prevent kernel-doc from complaining during documentation builds (Randy Dunlap). * acpi-resource: ACPI: resource: Add Infinity laptops to irq1_edge_low_force_override ACPI: resource: Add another DMI match for the TongFang GMxXGxx * acpi-numa: ACPI: NUMA: Fix the logic of getting the fake_pxm value ACPI: NUMA: Optimize the check for the availability of node values ACPI: NUMA: Remove unnecessary check in acpi_parse_gi_affinity() * acpi-soc: ACPI: LPSS: Fix the fractional clock divider flags * acpi-misc: ACPI: watchdog: fix kernel-doc warnings
5 parents 22349e7 + e2605d4 + e3f5778 + 3ebccf1 + 8a3134a commit 4ab8d27

File tree

4 files changed

+27
-7
lines changed

4 files changed

+27
-7
lines changed

drivers/acpi/acpi_lpss.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,8 +453,9 @@ static int register_device_clock(struct acpi_device *adev,
453453
if (!clk_name)
454454
return -ENOMEM;
455455
clk = clk_register_fractional_divider(NULL, clk_name, parent,
456+
0, prv_base, 1, 15, 16, 15,
456457
CLK_FRAC_DIVIDER_POWER_OF_TWO_PS,
457-
prv_base, 1, 15, 16, 15, 0, NULL);
458+
NULL);
458459
parent = clk_name;
459460

460461
clk_name = kasprintf(GFP_KERNEL, "%s-update", devname);

drivers/acpi/acpi_watchdog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ static const struct acpi_table_wdat *acpi_watchdog_get_wdat(void)
8181
return wdat;
8282
}
8383

84-
/**
84+
/*
8585
* Returns true if this system should prefer ACPI based watchdog instead of
8686
* the native one (which are typically the same hardware).
8787
*/

drivers/acpi/numa/srat.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ int acpi_map_pxm_to_node(int pxm)
6767
node = pxm_to_node_map[pxm];
6868

6969
if (node == NUMA_NO_NODE) {
70-
if (nodes_weight(nodes_found_map) >= MAX_NUMNODES)
71-
return NUMA_NO_NODE;
7270
node = first_unset_node(nodes_found_map);
71+
if (node >= MAX_NUMNODES)
72+
return NUMA_NO_NODE;
7373
__acpi_map_pxm_to_node(pxm, node);
7474
node_set(node, nodes_found_map);
7575
}
@@ -183,7 +183,7 @@ static int __init slit_valid(struct acpi_table_slit *slit)
183183
int i, j;
184184
int d = slit->locality_count;
185185
for (i = 0; i < d; i++) {
186-
for (j = 0; j < d; j++) {
186+
for (j = 0; j < d; j++) {
187187
u8 val = slit->entry[d*i + j];
188188
if (i == j) {
189189
if (val != LOCAL_DISTANCE)
@@ -430,7 +430,7 @@ acpi_parse_gi_affinity(union acpi_subtable_headers *header,
430430
return -EINVAL;
431431

432432
node = acpi_map_pxm_to_node(gi_affinity->proximity_domain);
433-
if (node == NUMA_NO_NODE || node >= MAX_NUMNODES) {
433+
if (node == NUMA_NO_NODE) {
434434
pr_err("SRAT: Too many proximity domains.\n");
435435
return -EINVAL;
436436
}
@@ -532,7 +532,7 @@ int __init acpi_numa_init(void)
532532
*/
533533

534534
/* fake_pxm is the next unused PXM value after SRAT parsing */
535-
for (i = 0, fake_pxm = -1; i < MAX_NUMNODES - 1; i++) {
535+
for (i = 0, fake_pxm = -1; i < MAX_NUMNODES; i++) {
536536
if (node_to_pxm_map[i] > fake_pxm)
537537
fake_pxm = node_to_pxm_map[i];
538538
}

drivers/acpi/resource.c

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,13 @@ static const struct dmi_system_id irq1_edge_low_force_override[] = {
510510
DMI_MATCH(DMI_BOARD_NAME, "GMxXGxx"),
511511
},
512512
},
513+
{
514+
/* TongFang GMxXGxx sold as Eluktronics Inc. RP-15 */
515+
.matches = {
516+
DMI_MATCH(DMI_SYS_VENDOR, "Eluktronics Inc."),
517+
DMI_MATCH(DMI_BOARD_NAME, "RP-15"),
518+
},
519+
},
513520
{
514521
/* TongFang GM6XGxX/TUXEDO Stellaris 16 Gen5 AMD */
515522
.matches = {
@@ -548,6 +555,18 @@ static const struct dmi_system_id irq1_edge_low_force_override[] = {
548555
DMI_MATCH(DMI_BOARD_NAME, "GM6BG0Q"),
549556
},
550557
},
558+
{
559+
/* Infinity E15-5A165-BM */
560+
.matches = {
561+
DMI_MATCH(DMI_BOARD_NAME, "GM5RG1E0009COM"),
562+
},
563+
},
564+
{
565+
/* Infinity E15-5A305-1M */
566+
.matches = {
567+
DMI_MATCH(DMI_BOARD_NAME, "GM5RGEE0016COM"),
568+
},
569+
},
551570
{ }
552571
};
553572

0 commit comments

Comments
 (0)