lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <c36c4ef0-fb7d-3f3a-9f2c-ec8ecad3aab4@monstr.eu>
Date:   Mon, 29 May 2017 11:00:17 +0200
From:   Michal Simek <monstr@...str.eu>
To:     Geliang Tang <geliangtang@...il.com>,
        Andrew Morton <akpm@...ux-foundation.org>,
        Robin Murphy <robin.murphy@....com>,
        Hans-Christian Noren Egtvedt <egtvedt@...fundet.no>,
        Joerg Roedel <jroedel@...e.de>,
        Bart Van Assche <bart.vanassche@...disk.com>,
        Alexander Duyck <alexander.h.duyck@...el.com>,
        Krzysztof Kozlowski <krzk@...nel.org>
Cc:     linux-kernel@...r.kernel.org
Subject: Re: [PATCH] microblaze: use sg_phys()

On 23.3.2017 14:16, Geliang Tang wrote:
> Use sg_phys() instead of open-coding it.
> 
> Signed-off-by: Geliang Tang <geliangtang@...il.com>
> ---
>  arch/microblaze/kernel/dma.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/arch/microblaze/kernel/dma.c b/arch/microblaze/kernel/dma.c
> index 12e093a..e45ada8 100644
> --- a/arch/microblaze/kernel/dma.c
> +++ b/arch/microblaze/kernel/dma.c
> @@ -65,8 +65,7 @@ static int dma_direct_map_sg(struct device *dev, struct scatterlist *sgl,
>  		if (attrs & DMA_ATTR_SKIP_CPU_SYNC)
>  			continue;
>  
> -		__dma_sync(page_to_phys(sg_page(sg)) + sg->offset,
> -							sg->length, direction);
> +		__dma_sync(sg_phys(sg), sg->length, direction);
>  	}
>  
>  	return nents;
> 

Applied.

Thanks,
Michal

-- 
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Xilinx Microblaze
Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP SoCs




Download attachment "signature.asc" of type "application/pgp-signature" (199 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ