On 12/07/2017 01:05 PM, Prarit Bhargava wrote:
Please give us a chance to test this patch before merging. We've had a
lot of problems with our E44 work-around, and we need to make sure
that qdf2400_erratum_44_present function is called before the pl011
driver is probed.
Timor, do you know of a specific system that has this problem? If so, I
could see if we have one @ Red Hat and test on it to verify the WAR.
Yes, Red Hat has our QDF2400 systems. You need one with 1.x silicon.
Contact anyone you know in the ARM server group. Email me offline if
you can't find anyone.
+ * APM X-Gene v1 and v2 UART hardware is an 16550 like device but has its
+ * register aligned to 32-bit. In addition, the BIOS also encoded the
+ * access width to be 8 bits. This function detects this errata condition.
+ */
+static bool xgene_8250_erratum_present(struct acpi_table_spcr *tb)
+{
+ bool xgene_8250 = false;
+
+ if (tb->interface_type != ACPI_DBG2_16550_COMPATIBLE)
+ return false;
+
+ if (memcmp(tb->header.oem_id, "APMC0D", ACPI_OEM_ID_SIZE) &&
+ memcmp(tb->header.oem_id, "HPE ", ACPI_OEM_ID_SIZE))
+ return false;
+
+ if (!memcmp(tb->header.oem_table_id, "XGENESPC",
+ ACPI_OEM_TABLE_ID_SIZE) && tb->header.oem_revision == 0)
+ xgene_8250 = true;
+
+ if (!memcmp(tb->header.oem_table_id, "ProLiant",
+ ACPI_OEM_TABLE_ID_SIZE) && tb->header.oem_revision == 1)
+ xgene_8250 = true;
+
+ return xgene_8250;
+}
I suspect that this function has the same issues as
qdf2400_erratum_44_present().
Ditto.
I don't know if Red Hat has any XGene systems.
+config ACPI_SPCR_TABLE
+ bool "ACPI Serial Port Console Redirection Support"
+ default y if ARM64
+ help
+ Enable support for Serial Port Console Redirection (SPCR) Table.
+ This table provides information about the configuration of the
+ earlycon console.
+
So ACPI without SPCR has never been tested by us. Making it optional
makes me a little nervous. We'll have to evaluate this change.
It is 'y' for ARM64? Maybe I have that wrong but I thought that would
always build it for ARM64.
It was forced 't' for ARM64. That is, if ACPI is enabled, SPCR is
always enabled and always used. With your patch, we would need to test
our kernel with console=ttyAMA0,0xfeblabla,etc to make sure that it
still works.
'default y' means that some can turn SPCR off, but keep ACPI still on.
--
Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm
Technologies, Inc. Qualcomm Technologies, Inc. is a member of the
Code Aurora Forum, a Linux Foundation Collaborative Project.
--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html