From: andre.przywara@linaro.org (Andre Przywara)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/2] DMA: fix AMBA PL08x driver issue with 64bit DMA address type
Date: Wed, 21 Aug 2013 23:22:07 +0200 [thread overview]
Message-ID: <52152F7F.9070708@linaro.org> (raw)
In-Reply-To: <CACRpkdZg6kQSY2bm6LWpNCDhd90-7G2GSFQv7Jho2+Xq-EQCkw@mail.gmail.com>
On 08/21/2013 11:01 PM, Linus Walleij wrote:
> On Wed, Aug 14, 2013 at 2:52 PM, Andre Przywara
> <andre.przywara@linaro.org> wrote:
>
>> In Rob's recent pull request the patch
>> ARM: highbank: select ARCH_DMA_ADDR_T_64BIT for LPAE
>> promotes dma_addr_t to 64bit, which breaks compilation of the
>> AMBA PL08x DMA driver.
>> GCC has no function for the 64bit/8bit modulo operation.
>> Looking more closely the divisor can only be 1, 2 or 4, so the full
>> featured '%' modulo operation is overkill and can be replaced by
>> simple bit masking.
>>
>> Signed-off-by: Andre Przywara <andre.przywara@linaro.org>
>
> Can you give some context? Which platform have you tested
> this on after the change, or is this only compile-tested?
Only compile tested (sorry, forgot to mention that).
Actually I don't have this hardware anywhere, I just happened to had
this in my config - probably just by accident as a leftover from some
experiments.
So if you have access to any of those platforms, please give it a test.
> Of the current defconfigs selecting this driver, none is 64bit,
But it would be selected by allyesconfig or randconfig, right? And with
more and more platforms moving into single zImage, we will spot more of
those, as one "64-bit platform" will promote the types for every other.
> so makes me a bit curious if there is really some PL08x
> on the Highbank or similar?
Sorry, no hidden DMA controller on Highbank ;-)
Regards,
Andre.
next prev parent reply other threads:[~2013-08-21 21:22 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-14 12:52 [PATCH 0/2] DMA: AMBA PL08x DMA driver fixes due to ARCH_DMA_ADDR_T_64BIT Andre Przywara
2013-08-14 12:52 ` [PATCH 1/2] DMA: fix AMBA PL08x driver issue with 64bit DMA address type Andre Przywara
2013-08-14 13:00 ` Russell King - ARM Linux
2013-08-14 19:13 ` Rob Herring
2013-08-15 21:07 ` Andre Przywara
2013-08-15 21:15 ` Russell King - ARM Linux
2013-08-19 10:19 ` [PATCH v2] DMA: fix AMBA PL08x compilation " Andre Przywara
2013-08-19 13:26 ` Rob Herring
2013-08-21 6:17 ` Vinod Koul
2013-08-21 21:01 ` [PATCH 1/2] DMA: fix AMBA PL08x driver " Linus Walleij
2013-08-21 21:22 ` Andre Przywara [this message]
2013-08-21 21:49 ` Matt Sealey
2013-08-14 12:52 ` [PATCH 2/2] DMA: fix printk warning in AMBA PL08x DMA driver Andre Przywara
2013-08-14 13:00 ` Russell King - ARM Linux
2013-08-14 13:00 ` [PATCH 0/2] DMA: AMBA PL08x DMA driver fixes due to ARCH_DMA_ADDR_T_64BIT Russell King - ARM Linux
2013-08-14 14:05 ` Rob Herring
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=52152F7F.9070708@linaro.org \
--to=andre.przywara@linaro.org \
--cc=linux-arm-kernel@lists.infradead.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.