#include <linux/clkdev.h>
#include <linux/clk-provider.h>
#include <linux/debugfs.h>
+#include <linux/dmi.h>
#include <linux/idr.h>
#include <linux/ioport.h>
#include <linux/kernel.h>
static DEFINE_IDA(intel_lpss_devid_ida);
static struct dentry *intel_lpss_debugfs;
+static const struct dmi_system_id mtrr_large_wc_region[] = {
+ {
+ .ident = "Dell Computer Corporation",
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
+ DMI_MATCH(DMI_PRODUCT_NAME, "XPS 13 7390 2-in-1"),
+ },
+ },
+ { }
+};
+
static int intel_lpss_request_dma_module(const char *name)
{
static bool intel_lpss_dma_requested;
if (!lpss)
return -ENOMEM;
- lpss->priv = devm_ioremap(dev, info->mem->start + LPSS_PRIV_OFFSET,
- LPSS_PRIV_SIZE);
+ if (dmi_check_system(mtrr_large_wc_region))
+ lpss->priv = devm_ioremap_uc(dev, info->mem->start + LPSS_PRIV_OFFSET,
+ LPSS_PRIV_SIZE);
+ else
+ lpss->priv = devm_ioremap(dev, info->mem->start + LPSS_PRIV_OFFSET,
+ LPSS_PRIV_SIZE);
if (!lpss->priv)
return -ENOMEM;