Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4935028yba; Mon, 13 May 2019 02:19:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqwI7748oya7ZL5Vjm1ZYNmOH7M3z4dKK+msLdBDosBAc2Kn2ck5xKryrNNYnvh3xdsygHi3 X-Received: by 2002:a63:c54d:: with SMTP id g13mr29866484pgd.376.1557739192227; Mon, 13 May 2019 02:19:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557739192; cv=none; d=google.com; s=arc-20160816; b=TXRV9AGMiws5jxbMc152nkbbu8ob8gSjDExD+4Wpft8w+sj/iEA9ELaJmWVPbRWcjO lqX1qQT0HjnoPAuWEe1GWcJuLhw+bLiTF4VTDBOOuPR8WgXOyD683/2mhEMmMHCgDMHK U3Z79txh7iJbjeResveL1nl0inLsgBnsuVXiDwKVZhEuLSLmaawEI9B+fu1bGs1ffZP9 eKOITMjTaQJGBh1FFgMVLEgThEYfmM/AzebJ2EgJMtHKAawJmRgz9d91kLrvshG1XUh9 q+P6XlyuoL1dveGLpqChCwvr5sq7y8vVJqhQMszliH4zpYuycjt5638pV3g5s24Rzdqc YQAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=UzIz/OqhDW/aA2hwotioqmyYDuvBlglmy6CuzpgH6sA=; b=Bf00FCQw4c7/y+r53Mik7bl1XoxXFNSmYUDxtvh27CvcK1geobbf1jVe/RC0UDC9Dt 2MaIM8CVuuV5aDQ+E98uD59e3BqLm8TluhXKYwRFh8ntOrNgoRCWG+NGs9+KHauGU2K1 k7v6XIO/xcNTYWnqgboMdAs5OQGh+xjoNYLmqYHi/YloLnKa0NJIKp55r9m4FKAmm+s0 ouQoOyq5kuu+7RByRwvTN54fOeB1SeyNNYdYnog+i2KySMCmcnjtPA72BRGqMQvpmCox njYlpIACefYucqL2NcVLqeXTCNUtK+f4hnHkrTPBRW5OxoJ1qtdNXgWH+xJqJ99GMRtK oE+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=sbkFKWTh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k193si15223506pge.306.2019.05.13.02.19.36; Mon, 13 May 2019 02:19:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=sbkFKWTh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727913AbfEMJQA (ORCPT + 99 others); Mon, 13 May 2019 05:16:00 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:37783 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726841AbfEMJQA (ORCPT ); Mon, 13 May 2019 05:16:00 -0400 Received: by mail-wr1-f67.google.com with SMTP id e15so1941916wrs.4 for ; Mon, 13 May 2019 02:15:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=UzIz/OqhDW/aA2hwotioqmyYDuvBlglmy6CuzpgH6sA=; b=sbkFKWThl7SS5AJ0CygWfFeJN0O3kIB0+t9Vbb1WtqGtQop4D5UImzY3w/2zHaMszb i2J54jvYjY1fOlF5bA35RWmnT98jFKLSLvIVLSoO8PP7D/ve/VhZTo9Fimdobt4oUfxj m3qq17QF4zEeIsIs6qRq8mwYn0tpc2oCkLBj67jRJQr0z3IsE0KK+xb/bLvr4OTQ25Yd TQJIUmCvXxM0oUoDJa0Q6k8FlYO168/Gr9T74jKF2s0r9JAXBQ2YZGvd90GfTBMB+NwJ 5R9/9u5Rl+S6WAEuxnfUAfG+bb0Vhht4Z7X7nKNIvwjnhJSabOZHL5GqZ43vGh9ohjih NK5w== 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=UzIz/OqhDW/aA2hwotioqmyYDuvBlglmy6CuzpgH6sA=; b=m3A+V/Q/6U/EPe8NWx6Xv+Gy3IZ+Bz+A4NOTTUabGOCahysfaZJpmMaKzY744/t59H bfoiVnCT0gTdH5ZJWi+7UxTBcc4rxOkI5Nlq8X6RZnHh5EJF6gKvndYDhI1HMhDN/6nx yjQKuTJLrx6a/HtJ+lK1nlfDzFDMQpX59TMEYOSvjuVlbwgWHzt25AxeK/89ekuw54oE P82t0K1Gj4xYex4KMTD3CD+MHJvpXEsH+TfqBjYcMw4fbKCi46FW0l7MOO44Zi9IIpMV +No8UuEI+hZ+s6kdq/gsr+EGEcdjh4iOirVL89ZnAPT1yk7moxkYllUnVI8Ctn3RkcoC BSKA== X-Gm-Message-State: APjAAAWx7RQ7t83ew3cWtW9vhckUCtD/SV6tUsOh1hrEOVXfYwORfFGt KoszKU3Un1mkfN7dAhGGKniNKw== X-Received: by 2002:adf:f44b:: with SMTP id f11mr93972wrp.128.1557738958141; Mon, 13 May 2019 02:15:58 -0700 (PDT) Received: from bender.baylibre.local (lmontsouris-657-1-212-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id g10sm10795091wrq.2.2019.05.13.02.15.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 13 May 2019 02:15:57 -0700 (PDT) From: Neil Armstrong To: ulf.hansson@linaro.org, khilman@baylibre.com Cc: baylibre-upstreaming@groups.io, Neil Armstrong , linux-mmc@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/3] mmc: meson-gx: add ddr-access-quirk support Date: Mon, 13 May 2019 11:15:45 +0200 Message-Id: <20190513091548.16674-1-narmstrong@baylibre.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On the Amlogic G12A SoC family, (only) the SDIO controller fails to access the data from DDR, leading to a broken controller. Add the amlogic,ddr-access-quirk property so signal this particular controller has this bug and needs a quirk to work properly. But each MMC controller has 1,5KiB of SRAM after the registers, that can be used as bounce buffer to avoid direct DDR access from the integrated DMAs (this SRAM may be used by the boot ROM when DDR is not yet initialized). The quirk is to disable the chained descriptor for this controller, and use this SRAM memory zone as buffer for the bounce buffer fallback mode. The performance hit hasn't been evaluated, but the fix has been tested using a WiFi AP6398S SDIO module, and the iperf3 Bandwidth measurement gave 55.2 Mbits/sec over a 63 Hours long test, with the SDIO ios set as High-Speed at 50MHz clock. It gave around 170 Mbits/sec as SDR104 and 200MHz clock. Neil Armstrong (3): dt-bindings: mmc: meson-gx: add ddr-access-quirk property mmc: meson-gx: add ddr-access-quirk arm64: dts: meson-g12a: add ddr-access-quirk property to SDIO controller .../bindings/mmc/amlogic,meson-gx.txt | 4 ++ arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 1 + drivers/mmc/host/meson-gx-mmc.c | 65 +++++++++++++++---- 3 files changed, 57 insertions(+), 13 deletions(-) -- 2.21.0