From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by mx.groups.io with SMTP id smtpd.web12.7401.1574952535104045754 for ; Thu, 28 Nov 2019 06:48:55 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@linaro.org header.s=google header.b=i+kH96O6; spf=pass (domain: linaro.org, ip: 209.85.221.68, mailfrom: ard.biesheuvel@linaro.org) Received: by mail-wr1-f68.google.com with SMTP id t2so31425422wrr.1 for ; Thu, 28 Nov 2019 06:48:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=LvBN9wRT4BZEHkAQi+h1bMatLwYSfJos0W7P2z+PB1I=; b=i+kH96O6/Pl85SC6rSg0fQ/LiQ6vCyGFR1431gHETfpEe4kfvmKLL4DvfophbfAQu7 40jr4JMNjMpRr0kl7m/yHMUC8LNP20uNfmw0XhBmNxV4TdGEyfe6EHi7DxbLlRrcn5YH FZZmCF5W/WVkt9HV/nKjT6I35bsYRM3SiGQKgBpoC2ClkD0FgCUk0BHFTYtvTh1uP6qd HOW6ZvF+4PAnSac068S/d0VLAaXBknAiS1NA3N2PVAY+BoKLhuQAIQ1hrtMyxocNnHrp MA937DS0WMM3OiaZZf37xn3G4o5gL0wSiSk8H/2In9a1jPn3ZfkdQnBD6Hgtp23s0KfK DtWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=LvBN9wRT4BZEHkAQi+h1bMatLwYSfJos0W7P2z+PB1I=; b=csrcYKo4WbnkbjOXKcEdOXh6gWPQKziyKM7LvnohUyZsE79YJsgYHpHcTHgbS9TY2v 5NFuxsDw0WPujXnTW1J5ocbbRRfhszJryQaPO3fILBUqMdtdLR7sZT6jnWClOc8B4c2M UEj+jzhrk495/bY4N1fbsXdVs8NoLwH4KAngjaP6yZt29rJomUcdmWENRP3+AekPGAca sXGWdgqi5rFt9Of8vNunH0Dlvic7bTDtP5m5cOL4uwU29LWSIeaTn6X3JM+bbFAeF6+r WRm6ZKUoSc3ujzaqfi7uBu6C95zYkj1de7Wsluk/t5Nj3K5xXCywNljZyy6z3QSXT1jn BVUg== X-Gm-Message-State: APjAAAXtxQtK17uCrfNarTXrValEHnFZ5605teVSq8FJMVoq9Qx3VMC4 JkD8Q+IatwzEwlI8AX1azZnNDBs7g14= X-Google-Smtp-Source: APXvYqw9XB+p2Npoi9hKrtLsyIz9FJiHP53Zop/W49X6dHbvvZhEKfzxDOWyiLNFWSfT/UW4zUfg+Q== X-Received: by 2002:adf:f44a:: with SMTP id f10mr8880985wrp.63.1574952533164; Thu, 28 Nov 2019 06:48:53 -0800 (PST) Return-Path: Received: from localhost.localdomain (91-167-84-221.subs.proxad.net. [91.167.84.221]) by smtp.gmail.com with ESMTPSA id b63sm9919268wmb.40.2019.11.28.06.48.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Nov 2019 06:48:52 -0800 (PST) From: "Ard Biesheuvel" To: devel@edk2.groups.io Cc: leif.lindholm@linaro.org, Ard Biesheuvel Subject: [PATCH edk2-platforms 1/2] Silicon/SynQuacer/PlatformDxe: set NETSEC DMA as coherent Date: Thu, 28 Nov 2019 15:48:39 +0100 Message-Id: <20191128144840.25654-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit We switched to cache coherent DMA for the NETSEC network controller ages ago, but the platform driver that registers the non-discoverable device currently does not reflect this change, which we haven't noticed since the driver doesn't look at this flag. Let's fix this nonetheless, in case it ever matters. Signed-off-by: Ard Biesheuvel --- Silicon/Socionext/SynQuacer/Drivers/PlatformDxe/PlatformDxe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Silicon/Socionext/SynQuacer/Drivers/PlatformDxe/PlatformDxe.c b/Silicon/Socionext/SynQuacer/Drivers/PlatformDxe/PlatformDxe.c index 73cc560fa8d8..57f8fa90343a 100644 --- a/Silicon/Socionext/SynQuacer/Drivers/PlatformDxe/PlatformDxe.c +++ b/Silicon/Socionext/SynQuacer/Drivers/PlatformDxe/PlatformDxe.c @@ -130,7 +130,7 @@ RegisterDevice ( } Device->Type = TypeGuid; - Device->DmaType = NonDiscoverableDeviceDmaTypeNonCoherent; + Device->DmaType = NonDiscoverableDeviceDmaTypeCoherent; Device->Resources = Desc; Status = gBS->InstallMultipleProtocolInterfaces (Handle, -- 2.20.1