History log of /openbmc/u-boot/lib/linux_compat.c (Results 1 – 18 of 18)
Revision Date Author Comments
# b2f90c46 04-Sep-2018 Tom Rini <trini@konsulko.com>

Merge branch 'master' of git://git.denx.de/u-boot-imx


# e3332e1a 24-Aug-2018 Masahiro Yamada <yamada.masahiro@socionext.com>

Make kmalloc'ed memory really DMA-safe

In Linux, the memory returned by kmalloc() is DMA-capable.
However, it is not true in U-Boot.

At a glance, kmalloc() in U-Boot returns add

Make kmalloc'ed memory really DMA-safe

In Linux, the memory returned by kmalloc() is DMA-capable.
However, it is not true in U-Boot.

At a glance, kmalloc() in U-Boot returns address aligned with
ARCH_DMA_MINALIGN. However, it never pads the allocated memory.
This half-way house is completely useless because calling kmalloc()
and malloc() in this order causes a cache sharing problem.

Change the implementation to call malloc_cache_aligned(), which
allocates really DMA-capable memory.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>

show more ...


# 7c0e5d86 30-Aug-2015 Tom Rini <trini@konsulko.com>

Merge branch 'master' of git://git.denx.de/u-boot-video


# 7a1af7a7 02-Aug-2015 Tom Rini <trini@konsulko.com>

Merge branch 'master' of git://www.denx.de/git/u-boot-imx


# 6f4e0506 24-Jul-2015 Tom Rini <trini@konsulko.com>

Merge git://git.denx.de/u-boot-usb


# 413978d1 23-Jul-2015 Tom Rini <trini@konsulko.com>

Merge git://git.denx.de/u-boot-uniphier


# 3c9cc70d 23-Jul-2015 Tom Rini <trini@konsulko.com>

Merge git://git.denx.de/u-boot-marvell


# 6b9f9ead 12-Jul-2015 Masahiro Yamada <yamada.masahiro@socionext.com>

linux_compat: handle __GFP_ZERO in kmalloc()

Currently, kzalloc() returns zero-filled memory, while kmalloc()
simply ignores the second argument and never fills the memory
area with

linux_compat: handle __GFP_ZERO in kmalloc()

Currently, kzalloc() returns zero-filled memory, while kmalloc()
simply ignores the second argument and never fills the memory
area with zeros.

I want kmalloc(size, __GFP_ZERO) to behave as kzalloc() does,
which will make it easier to add more memory allocator variants.

With the introduction of __GFP_ZERO flag, going forward, kzmalloc()
variants can fall back to kmalloc() enabling the __GFP_ZERO flag.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
Acked-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Lukasz Majewski <l.majewski@samsung.com>

show more ...


# ebc3328c 12-Jul-2015 Masahiro Yamada <yamada.masahiro@socionext.com>

linux_compat: move vzalloc() to header file as an inline function

The vzalloc(size) is equivalent to kzalloc(size, 0). Move it to
include/linux/compat.h as an inline function in order t

linux_compat: move vzalloc() to header file as an inline function

The vzalloc(size) is equivalent to kzalloc(size, 0). Move it to
include/linux/compat.h as an inline function in order to avoid the
function call overhead.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
Acked-by: Simon Glass <sjg@chromium.org>

show more ...


# 2c19478e 02-Sep-2014 Tom Rini <trini@ti.com>

Merge branch 'master' of git://git.denx.de/u-boot-arc


# 6defdc0b 29-Aug-2014 Tom Rini <trini@ti.com>

Merge branch 'master' of git://git.denx.de/u-boot-ti


# 7f14fb20 29-Aug-2014 Tom Rini <trini@ti.com>

Merge branch 'zynq' of git://www.denx.de/git/u-boot-microblaze


# 5ddc3293 29-Aug-2014 Tom Rini <trini@ti.com>

Merge branch 'master' of git://git.denx.de/u-boot-tegra


# 5a1095a8 29-Aug-2014 Tom Rini <trini@ti.com>

Merge branch 'master' of git://www.denx.de/git/u-boot-imx


# 6af857c5 29-Aug-2014 Tom Rini <trini@ti.com>

Merge branch 'master' of http://git.denx.de/u-boot-sunxi


# 3e1b36bd 28-Aug-2014 Tom Rini <trini@ti.com>

Merge branch 'master' of git://git.denx.de/u-boot-arm


# f91df8ca 28-Aug-2014 Tom Rini <trini@ti.com>

Merge branch 'patman' of http://git.denx.de/u-boot-x86


# 0c06db59 24-Jun-2014 Heiko Schocher <hs@denx.de>

lib, linux: move linux specific defines to linux/compat.h

- move linux specific defines from usb and video code
into linux/compat.h
- move common linux specific defines from includ

lib, linux: move linux specific defines to linux/compat.h

- move linux specific defines from usb and video code
into linux/compat.h
- move common linux specific defines from include/ubi_uboot.h
to linux/compat.h
- add for new mtd/ubi/ubifs sync new needed linux specific
defines to linux/compat.h

Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Marek Vasut <marex@denx.de>
Cc: Anatolij Gustschin <agust@denx.de>
[trini: Add spin_lock_irqsave/spin_unlock_irqrestore dummies from
usb/lin_gadet_compat.h]
Signed-off-by: Tom Rini <trini@ti.com>

show more ...