All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vadym Kochan <vadym.kochan@plvision.eu>
To: Hu Ziji <huziji@marvell.com>,
	Ulf Hansson <ulf.hansson@linaro.org>,
	Rob Herring <robh+dt@kernel.org>,
	Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
	Adrian Hunter <adrian.hunter@intel.com>,
	linux-mmc@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org
Cc: Elad Nachman <enachman@marvell.com>,
	Chris Packham <chris.packham@alliedtelesis.co.nz>,
	Vadym Kochan <vadym.kochan@plvision.eu>
Subject: [PATCH v3 0/3] mmc: xenon: Fix 2G DMA limitation on AC5 SoC
Date: Mon,  5 Dec 2022 12:59:27 +0200	[thread overview]
Message-ID: <20221205105931.410686-1-vadym.kochan@plvision.eu> (raw)

There is a limitation on AC5 SoC that mmc controller
can't have DMA access over 2G memory, so use SDMA with
a bounce buffer. Swiotlb can't help because on arm64 arch
it reserves memblock's at the end of the memory.

Additionally set mask to 34 bit since on AC5 SoC RAM starts
at 0x2_00000000.

Also add compatible string for AC5 SoC.

v3:
   #1 Fix missing EXPORT_SYMBOL_GPL for sdhci_set_dma_mask

   #2 Put compatible string in alphabetical order in the yaml file

v2:
   #1 Add compatible string for dt-bindings

   #2 Use SDMA with a bounce buffer instead of PIO.

Vadym Kochan (3):
  dt-bindings: mmc: xenon: Add compatible string for AC5 SoC
  mmc: sdhci: Export sdhci_set_dma_mask to be used by the drivers
  mmc: xenon: Fix 2G limitation on AC5 SoC

 .../bindings/mmc/marvell,xenon-sdhci.yaml     |  1 +
 drivers/mmc/host/sdhci-xenon.c                | 38 +++++++++++++++++++
 drivers/mmc/host/sdhci-xenon.h                |  3 +-
 drivers/mmc/host/sdhci.c                      |  3 +-
 drivers/mmc/host/sdhci.h                      |  2 +
 5 files changed, 45 insertions(+), 2 deletions(-)

-- 
2.25.1


             reply	other threads:[~2022-12-05 11:00 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-05 10:59 Vadym Kochan [this message]
2022-12-05 10:59 ` [PATCH v3 1/3] dt-bindings: mmc: xenon: Add compatible string for AC5 SoC Vadym Kochan
2022-12-05 13:28   ` Krzysztof Kozlowski
2022-12-05 10:59 ` [PATCH v3 2/3] mmc: sdhci: Export sdhci_set_dma_mask to be used by the drivers Vadym Kochan
2022-12-05 10:59 ` [PATCH v3 3/3] mmc: xenon: Fix 2G limitation on AC5 SoC Vadym Kochan
2022-12-07 13:40   ` Linus Walleij
2022-12-08 10:19     ` [EXT] " Elad Nachman
2022-12-08 21:35       ` Linus Walleij
2022-12-09  7:23   ` Adrian Hunter
2022-12-09 11:39     ` Vadym Kochan
2022-12-09 11:53       ` Adrian Hunter
2022-12-09 12:10         ` Vadym Kochan
2022-12-09 12:13           ` Adrian Hunter
2022-12-09 13:27             ` Vadym Kochan
2022-12-12  8:42               ` Adrian Hunter
2022-12-12 11:34                 ` Vadym Kochan
2022-12-12 13:13                   ` Adrian Hunter
2022-12-13  9:22                   ` Linus Walleij
2022-12-13  9:16                 ` Linus Walleij
2022-12-13  9:21                   ` Vadym Kochan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221205105931.410686-1-vadym.kochan@plvision.eu \
    --to=vadym.kochan@plvision.eu \
    --cc=adrian.hunter@intel.com \
    --cc=chris.packham@alliedtelesis.co.nz \
    --cc=devicetree@vger.kernel.org \
    --cc=enachman@marvell.com \
    --cc=huziji@marvell.com \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mmc@vger.kernel.org \
    --cc=robh+dt@kernel.org \
    --cc=ulf.hansson@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.