From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtp.codeaurora.org ([198.145.29.96]:43890 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751378AbdDMOGo (ORCPT ); Thu, 13 Apr 2017 10:06:44 -0400 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Subject: Re: brcmfmac: properly align buffers on certain platforms with 64 bit DMA From: Kalle Valo In-Reply-To: <7120e0d6-8687-2622-7432-cb78dae3e122@gmail.com> References: <7120e0d6-8687-2622-7432-cb78dae3e122@gmail.com> To: Heiner Kallweit Cc: Arend van Spriel , Franky Lin , Hante Meuleman , linux-wireless@vger.kernel.org, brcm80211-dev-list.pdl@broadcom.com, Helmut Klein Message-Id: <20170413140644.45B2660D70@smtp.codeaurora.org> (sfid-20170413_160650_484205_DD9236CE) Date: Thu, 13 Apr 2017 14:06:44 +0000 (UTC) Sender: linux-wireless-owner@vger.kernel.org List-ID: Heiner Kallweit wrote: > Systems with 64 bit DMA at least partially require buffers to be used > for DMA to be 8-byte-aligned. One example is Amlogic Meson GX. > Switching the MMC/SDIO driver for this platform to SG DMA mode > resulted in problems due to unaligned buffers. > > Fortunately the brcmfmac driver has a global define for the alignment. > Changing it to 8 fixed the issues with Meson GX. > > Suggested-by: Helmut Klein > Tested-by: Helmut Klein > Signed-off-by: Heiner Kallweit Patch applied to wireless-drivers-next.git, thanks. 6e84ab604bde brcmfmac: properly align buffers on certain platforms with 64 bit DMA -- https://patchwork.kernel.org/patch/9665425/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches