Re: BUG at arch/x86/mm/physaddr.c:5

From: Luis R. Rodriguez
Date: Mon Jul 26 2010 - 12:56:25 EST


2010/7/25 Jike Song <albcamus@xxxxxxxxx>:
> 2010/7/23 Ortwin GlÃck <odi@xxxxxx>:
>> On 23.07.2010 10:04, Jike Song wrote:
>>> Seems to be a logical error? ÂDoes the following patch remove your Oops?
>>
>> Looking at the init code I agree. Yes, the patch fixes the OOPS. I am sure
>> because the OOPS occurred at every boot and now it's gone.
>>
>> Thanks!
>>
>> Ortwin
>
> Hi Maintainers,
>
> ÂSince Ortwin has confirmed this patch , would you give me an ACK/NAK please?
>
>
> --
> Thanks,
> Jike
>
>
> From 1414829dcc5b53ef4802f5de2b9be58e2ca0fb23 Mon Sep 17 00:00:00 2001
> From: Jike Song <albcamus@xxxxxxxxx>
> Date: Mon, 26 Jul 2010 13:42:41 +0800
> Subject: [PATCH] ath9k: fix wrong DMA direction in RX tasklet
> MIME-Version: 1.0
> Content-Type: text/plain; charset=utf-8
> Content-Transfer-Encoding: 8bit
>
> Commit b5c80475abaad015699384ca64ef8229fdd88758 introduced edma
> support for RX, hence bidirectional DMA support. But it
> specified the DMA type as DMA_FROM_DEVICE by mistake.
>
> Reported-and-tested-by: Ortwin GlÃck <odi@xxxxxx>
> Signed-off-by: Jike Song <albcamus@xxxxxxxxx>
> ---
> Âdrivers/net/wireless/ath/ath9k/recv.c | Â Â4 ++--
> Â1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/net/wireless/ath/ath9k/recv.c
> b/drivers/net/wireless/ath/ath9k/recv.c
> index ca6065b..e3e5291 100644
> --- a/drivers/net/wireless/ath/ath9k/recv.c
> +++ b/drivers/net/wireless/ath/ath9k/recv.c
> @@ -844,9 +844,9 @@ int ath_rx_tasklet(struct ath_softc *sc, int flush, bool hp)
> Â Â Â Âint dma_type;
>
> Â Â Â Âif (edma)
> - Â Â Â Â Â Â Â dma_type = DMA_FROM_DEVICE;
> - Â Â Â else
> Â Â Â Â Â Â Â Âdma_type = DMA_BIDIRECTIONAL;
> + Â Â Â else
> + Â Â Â Â Â Â Â dma_type = DMA_FROM_DEVICE;
>
> Â Â Â Âqtype = hp ? ATH9K_RX_QUEUE_HP : ATH9K_RX_QUEUE_LP;
> Â Â Â Âspin_lock_bh(&sc->rx.rxbuflock);
> --

I'll let Felix chime in on this one as he last reviewed this path.
There were some serious issues with MIPs and DMA that at this point I
think only he grocked.

Luis
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/