Re: KASAN: null-ptr-deref Write in binder_update_page_range

2018-09-06 Thread Minchan Kim
Thanks, Martijn, Greg, could you have a look to pick up? On Mon, Aug 27, 2018 at 03:35:24PM +0200, Martijn Coenen wrote: > Thanks Minchan! > > On Thu, Aug 23, 2018 at 7:29 AM, Minchan Kim wrote: > > Signed-off-by: Todd Kjos > > Signed-off-by: Minchan Kim > Reviewed-by: Martijn Coenen > > >

Re: [PATCH v8 4/8] media: platform: Add Cedrus VPU decoder driver

2018-09-06 Thread Hans Verkuil
On 09/05/2018 06:29 PM, Paul Kocialkowski wrote: > Hi and thanks for the review! > > Le lundi 03 septembre 2018 à 11:11 +0200, Hans Verkuil a écrit : >> On 08/28/2018 09:34 AM, Paul Kocialkowski wrote: >>> +static int cedrus_request_validate(struct media_request *req) >>> +{ >>> + struct

Re: [PATCH 1/2 dhowells/mount-api] staging: erofs: rename superblock flags (MS_xyz -> SB_xyz)

2018-09-06 Thread David Howells
Gao Xiang wrote: > This patch follows commit 1751e8a6cb93 ("Rename superblock > flags (MS_xyz -> SB_xyz)") and after commit ("vfs: Suppress > MS_* flag defs within the kernel unless explicitly enabled"), > there is no MS_RDONLY and MS_NOATIME at all. > > Reported-by: Stephen Rothwell >

[PATCH 2/2 dhowells/mount-api] staging: erofs: update .mount and .remount_sb

2018-09-06 Thread Gao Xiang
This patch updates .mount and .remount_sb after commit ("vfs: Require specification of size of mount data for internal mounts") in reference to drivers/usb/gadget/function/f_fs.c. Reported-by: Stephen Rothwell Signed-off-by: Gao Xiang --- drivers/staging/erofs/super.c | 13 +++-- 1

[PATCH 1/2 dhowells/mount-api] staging: erofs: rename superblock flags (MS_xyz -> SB_xyz)

2018-09-06 Thread Gao Xiang
This patch follows commit 1751e8a6cb93 ("Rename superblock flags (MS_xyz -> SB_xyz)") and after commit ("vfs: Suppress MS_* flag defs within the kernel unless explicitly enabled"), there is no MS_RDONLY and MS_NOATIME at all. Reported-by: Stephen Rothwell Reviewed-by: Chao Yu Signed-off-by: Gao

Re: [PATCH v2 1/2] staging: rtl8188eu: remove empty if statement in rtw_led.c

2018-09-06 Thread Dan Carpenter
Thanks. Reviewed-by: Dan Carpenter regards, dan carpenter ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH 2/2 dhowells/mount-api] staging: erofs: update .mount and .remount_sb

2018-09-06 Thread Chao Yu
On 2018/9/6 17:01, Gao Xiang wrote: > This patch updates .mount and .remount_sb after > commit ("vfs: Require specification of size of > mount data for internal mounts") in reference to > drivers/usb/gadget/function/f_fs.c. > > Reported-by: Stephen Rothwell > Signed-off-by: Gao Xiang

[PATCH] vme: remove unneeded kfree

2018-09-06 Thread Ding Xiang
put_device will call vme_dev_release to free vdev, kfree is unnecessary here. Signed-off-by: Ding Xiang --- drivers/vme/vme.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/vme/vme.c b/drivers/vme/vme.c index 92500f6..520a5f9 100644 --- a/drivers/vme/vme.c +++ b/drivers/vme/vme.c @@

[PATCH v2 21/23] mtd: rawnand: Pass a nand_chip object to chip->setup_data_interface()

2018-09-06 Thread Boris Brezillon
Let's make the raw NAND API consistent by patching all helpers and hooks to take a nand_chip object instead of an mtd_info one or remove the mtd_info object when both are passed. Let's tackle the chip->setup_data_interface() hook. Signed-off-by: Boris Brezillon ---

[PATCH v2 20/23] mtd: rawnand: Pass a nand_chip object to chip->setup_read_retry()

2018-09-06 Thread Boris Brezillon
Let's make the raw NAND API consistent by patching all helpers and hooks to take a nand_chip object instead of an mtd_info one or remove the mtd_info object when both are passed. Let's tackle the chip->setup_read_retry() hook. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/raw/nand_base.c

[PATCH v2 17/23] mtd: rawnand: Pass a nand_chip object to chip->waitfunc()

2018-09-06 Thread Boris Brezillon
Let's make the raw NAND API consistent by patching all helpers and hooks to take a nand_chip object instead of an mtd_info one or remove the mtd_info object when both are passed. Let's tackle the chip->waitfunc() hook. Signed-off-by: Boris Brezillon ---

[PATCH v2 10/23] mtd: rawnand: Pass a nand_chip object to chip->read_xxx() hooks

2018-09-06 Thread Boris Brezillon
Let's make the raw NAND API consistent by patching all helpers and hooks to take a nand_chip object instead of an mtd_info one or remove the mtd_info object when both are passed. Let's tackle all chip->read_xxx() hooks at once. Signed-off-by: Boris Brezillon ---

[PATCH v2 09/23] mtd: rawnand: Pass a nand_chip object to ecc->write_xxx() hooks

2018-09-06 Thread Boris Brezillon
Let's make the raw NAND API consistent by patching all helpers and hooks to take a nand_chip object instead of an mtd_info one or remove the mtd_info object when both are passed. Let's tackle all ecc->write_xxx() hooks at once. Signed-off-by: Boris Brezillon ---

Re: [PATCH 1/2 dhowells/mount-api] staging: erofs: rename superblock flags (MS_xyz -> SB_xyz)

2018-09-06 Thread Gao Xiang
On 2018/9/6 18:08, David Howells wrote: > Gao Xiang wrote: > >> This patch follows commit 1751e8a6cb93 ("Rename superblock >> flags (MS_xyz -> SB_xyz)") and after commit ("vfs: Suppress >> MS_* flag defs within the kernel unless explicitly enabled"), >> there is no MS_RDONLY and MS_NOATIME at

[PATCH v2 04/23] mtd: rawnand: Pass a nand_chip object to nand_wait_ready()

2018-09-06 Thread Boris Brezillon
Let's make the raw NAND API consistent by patching all helpers to take a nand_chip object instead of an mtd_info one. Now is nand_wait_ready()'s turn. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/raw/bcm47xxnflash/ops_bcm4706.c | 2 +- drivers/mtd/nand/raw/cafe_nand.c |

[PATCH v2 00/23] mtd: rawnand: Stop passing mtd_info to drivers

2018-09-06 Thread Boris Brezillon
Hello, This is the first set of patches aiming at cleaning the raw NAND API. This one focuses on inconsistencies we have in the API + the nand_chip and nand_ecc_ctrl interfaces. Some functions/hooks are passed a nand_chip object, some are passed an mtd_info object and some are passed both.

[PATCH v2 01/23] mtd: rawnand: plat_nand: Pass a nand_chip object to all platform_nand_ctrl hooks

2018-09-06 Thread Boris Brezillon
Let's make the raw NAND API consistent by patching all helpers and hooks to take a nand_chip object instead of an mtd_info one or remove the mtd_info object when both are passed. In order to do that, we first need to update the platform_nand_ctrl hooks to take a nand_chip object instead of an

Re: [PATCH 2/2 dhowells/mount-api] staging: erofs: update .mount and .remount_sb

2018-09-06 Thread David Howells
Gao Xiang wrote: > This patch updates .mount and .remount_sb after > commit ("vfs: Require specification of size of > mount data for internal mounts") in reference to > drivers/usb/gadget/function/f_fs.c. > > Reported-by: Stephen Rothwell > Signed-off-by: Gao Xiang I've folded this into my

[PATCH v2 07/23] mtd: rawnand: Pass a nand_chip object to ecc->correct()

2018-09-06 Thread Boris Brezillon
Let's make the raw NAND API consistent by patching all helpers and hooks to take a nand_chip object instead of an mtd_info one. Now is ecc->correct()'s turn. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/raw/davinci_nand.c | 9 - drivers/mtd/nand/raw/diskonchip.c | 3 +--

[PATCH v2 14/23] mtd: rawnand: Pass a nand_chip object to chip->cmd_ctrl()

2018-09-06 Thread Boris Brezillon
Let's make the raw NAND API consistent by patching all helpers and hooks to take a nand_chip object instead of an mtd_info one or remove the mtd_info object when both are passed. Let's tackle the chip->cmd_ctrl() hook. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/raw/ams-delta.c

[PATCH v2 08/23] mtd: rawnand: Pass a nand_chip object to ecc->read_xxx() hooks

2018-09-06 Thread Boris Brezillon
Let's make the raw NAND API consistent by patching all helpers and hooks to take a nand_chip object instead of an mtd_info one or remove the mtd_info object when both are passed. Let's tackle all ecc->read_xxx() hooks at once. Signed-off-by: Boris Brezillon Acked-by: Stefan Agner --- Changes

[PATCH v2 15/23] mtd: rawnand: Pass a nand_chip object to chip->dev_ready()

2018-09-06 Thread Boris Brezillon
Let's make the raw NAND API consistent by patching all helpers and hooks to take a nand_chip object instead of an mtd_info one or remove the mtd_info object when both are passed. Let's tackle the chip->dev_ready() hook. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/raw/ams-delta.c

[PATCH v2 23/23] mtd: rawnand: Pass a nand_chip object nand_erase_nand()

2018-09-06 Thread Boris Brezillon
Let's make the raw NAND API consistent by patching all helpers and hooks to take a nand_chip object instead of an mtd_info one or remove the mtd_info object when both are passed. Let's tackle the nand_erase_nand() helper. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/raw/nand_base.c | 10

[PATCH v2 22/23] mtd: rawnand: Pass a nand_chip object to all nand_xxx_bbt() helpers

2018-09-06 Thread Boris Brezillon
Let's make the raw NAND API consistent by patching all helpers and hooks to take a nand_chip object instead of an mtd_info one or remove the mtd_info object when both are passed. Let's tackle the nand_xxx_bbt() helpers. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/raw/nand_base.c | 6

[PATCH v2 13/23] mtd: rawnand: Pass a nand_chip object to chip->block_xxx() hooks

2018-09-06 Thread Boris Brezillon
Let's make the raw NAND API consistent by patching all helpers and hooks to take a nand_chip object instead of an mtd_info one or remove the mtd_info object when both are passed. Let's tackle all chip->block_xxx() hooks at once. Signed-off-by: Boris Brezillon ---

[PATCH v2 18/23] mtd: rawnand: Pass a nand_chip object to chip->erase()

2018-09-06 Thread Boris Brezillon
Let's make the raw NAND API consistent by patching all helpers and hooks to take a nand_chip object instead of an mtd_info one or remove the mtd_info object when both are passed. Let's tackle the chip->erase() hook. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/raw/denali.c| 4 ++--

[PATCH v2 19/23] mtd: rawnand: Pass a nand_chip object to chip->{get, set}_features()

2018-09-06 Thread Boris Brezillon
Let's make the raw NAND API consistent by patching all helpers and hooks to take a nand_chip object instead of an mtd_info one or remove the mtd_info object when both are passed. Let's tackle the chip->{get,set}_features() hooks. Signed-off-by: Boris Brezillon ---

[PATCH v2 16/23] mtd: rawnand: Pass a nand_chip object to chip->cmdfunc()

2018-09-06 Thread Boris Brezillon
Let's make the raw NAND API consistent by patching all helpers and hooks to take a nand_chip object instead of an mtd_info one or remove the mtd_info object when both are passed. Let's tackle the chip->cmdfunc() hook. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/raw/au1550nd.c

[PATCH v2 12/23] mtd: rawnand: Pass a nand_chip object to chip->select_chip()

2018-09-06 Thread Boris Brezillon
Let's make the raw NAND API consistent by patching all helpers and hooks to take a nand_chip object instead of an mtd_info one or remove the mtd_info object when both are passed. Let's tackle the chip->select_chip() hook. Signed-off-by: Boris Brezillon ---

[PATCH v2 11/23] mtd: rawnand: Pass a nand_chip object to chip->write_xxx() hooks

2018-09-06 Thread Boris Brezillon
Let's make the raw NAND API consistent by patching all helpers and hooks to take a nand_chip object instead of an mtd_info one or remove the mtd_info object when both are passed. Let's tackle all chip->write_xxx() hooks at once. Signed-off-by: Boris Brezillon ---

[PATCH v2 03/23] mtd: rawnand: Pass a nand_chip object to nand_release()

2018-09-06 Thread Boris Brezillon
Let's make the raw NAND API consistent by patching all helpers to take a nand_chip object instead of an mtd_info one. Now is nand_release()'s turn. Signed-off-by: Boris Brezillon --- Documentation/driver-api/mtdnand.rst | 2 +- drivers/mtd/nand/raw/ams-delta.c | 2 +-

[PATCH v2 05/23] mtd: rawnand: Pass a nand_chip object to ecc->hwctl()

2018-09-06 Thread Boris Brezillon
Let's make the raw NAND API consistent by patching all helpers and hooks to take a nand_chip object instead of an mtd_info one. Now is ecc->hwctl()'s turn. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/raw/cs553x_nand.c | 3 +-- drivers/mtd/nand/raw/davinci_nand.c | 10 +-

[PATCH v2 02/23] mtd: rawnand: Pass a nand_chip object to nand_scan()

2018-09-06 Thread Boris Brezillon
Let's make the raw NAND API consistent by patching all helpers to take a nand_chip object instead of an mtd_info one. We start with nand_scan(). Signed-off-by: Boris Brezillon --- Changes in v2: - Fix commit message --- Documentation/driver-api/mtdnand.rst | 2 +-

[PATCH v2 06/23] mtd: rawnand: Pass a nand_chip object to ecc->calculate()

2018-09-06 Thread Boris Brezillon
Let's make the raw NAND API consistent by patching all helpers and hooks to take a nand_chip object instead of an mtd_info one. Now is ecc->calculate()'s turn. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/raw/cs553x_nand.c | 4 ++-- drivers/mtd/nand/raw/davinci_nand.c | 12

[PATCH] staging: rtl8723bs: check for i out of range before accessing szLine[i]

2018-09-06 Thread Colin King
From: Colin Ian King Currently szLine[i] is being accessed before the index i is being ranged checked. Fix this by checking the range first. Also, evaluate the length of the string szLine just once rather than multiple times and move the loop variable i to an inner scope and make it an int.

Re: [PATCH v2 1/2] staging: rtl8188eu: remove empty if statement in rtw_led.c

2018-09-06 Thread Joe Perches
On Thu, 2018-09-06 at 13:32 +0300, Dan Carpenter wrote: > Thanks. > > Reviewed-by: Dan Carpenter Trivial, but these case statement blocks should prefer unindented blocks instead of reformatting the test. Perhaps similar to the below for each of the cases: ---

Re: [PATCH v2 00/23] mtd: rawnand: Stop passing mtd_info to drivers

2018-09-06 Thread Miquel Raynal
Hi Boris, Boris Brezillon wrote on Thu, 6 Sep 2018 14:05:12 +0200: > Hello, > > This is the first set of patches aiming at cleaning the raw NAND API. > > This one focuses on inconsistencies we have in the API + the nand_chip > and nand_ecc_ctrl interfaces. Some functions/hooks are passed a >

Re: [PATCH v2 01/23] mtd: rawnand: plat_nand: Pass a nand_chip object to all platform_nand_ctrl hooks

2018-09-06 Thread Paul Burton
Hi Boris, On Thu, Sep 06, 2018 at 02:05:13PM +0200, Boris Brezillon wrote: > Let's make the raw NAND API consistent by patching all helpers and > hooks to take a nand_chip object instead of an mtd_info one or > remove the mtd_info object when both are passed. > > In order to do that, we first

[PATCH v9 4/9] dt-bindings: media: Document bindings for the Cedrus VPU driver

2018-09-06 Thread Paul Kocialkowski
From: Paul Kocialkowski This adds a device-tree binding document that specifies the properties used by the Cedrus VPU driver, as well as examples. Signed-off-by: Paul Kocialkowski Reviewed-by: Rob Herring Acked-by: Maxime Ripard --- .../devicetree/bindings/media/cedrus.txt | 54

[PATCH v9 3/9] media: v4l: Add definition for the Sunxi tiled NV12 format

2018-09-06 Thread Paul Kocialkowski
From: Paul Kocialkowski This introduces support for the Sunxi tiled NV12 format, where each component of the YUV frame is divided into macroblocks. Hence, the size of each plane requires specific alignment. The pixels inside each macroblock are coded in linear order (line after line from top to

[PATCH v9 6/9] ARM: dts: sun5i: Add Video Engine and reserved memory nodes

2018-09-06 Thread Paul Kocialkowski
From: Paul Kocialkowski This adds nodes for the Video Engine and the associated reserved memory for sun5i-based platforms. Up to 96 MiB of memory are dedicated to the CMA pool. The VPU can only map the first 256 MiB of DRAM, so the reserved memory pool has to be located in that area. Following

[PATCH 06/19] mtd: rawnand: Deprecate ->block_{bad,markbad}() hooks

2018-09-06 Thread Boris Brezillon
Those hooks have been overloaded by some drivers for bad reasons: either the driver was not fitting in the NAND framework and should have been an MTD driver (docg4), or it was not properly implementing the OOB read/write request or had a weird layout where BBM are trashed. In any case, we should

[PATCH 02/19] mtd: rawnand: Create a legacy struct and move ->IO_ADDR_{R, W} there

2018-09-06 Thread Boris Brezillon
We regularly have new NAND controller drivers that are making use of fields/hooks that we want to get rid of but can't because of all the legacy drivers that we might break if we do. So, instead of removing those fields/hooks, let's move them to a sub-struct which is clearly documented as

[PATCH 03/19] mtd: rawnand: Deprecate ->{read, write}_{byte, buf}() hooks

2018-09-06 Thread Boris Brezillon
All those hooks have been replaced by ->exec_op(). Move them to the nand_legacy struct. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/raw/ams-delta.c | 6 +-- drivers/mtd/nand/raw/atmel/nand-controller.c | 8 ++-- drivers/mtd/nand/raw/au1550nd.c | 6

[PATCH 09/19] mtd: rawnand: Deprecate ->chip_delay

2018-09-06 Thread Boris Brezillon
The wait timeouts and delays are directly extracted from the NAND timings and ->chip_delay is only used in legacy path, so let's move it to the nand_legacy struct to make it clear. Signed-off-by: Boris Brezillon --- Documentation/driver-api/mtdnand.rst | 2 +-

[PATCH 10/19] mtd: rawnand: Move function prototypes after struct declarations

2018-09-06 Thread Boris Brezillon
Move nand_scan[_with_ids]() and nand_wait_ready() at the end of the file where all function prototype lies. This will also allow us to get rid of the nand_flash_dev forward declaration. Signed-off-by: Boris Brezillon --- include/linux/mtd/rawnand.h | 24 1 file changed,

[PATCH 05/19] mtd: rawnand: Deprecate ->dev_ready() and ->waitfunc()

2018-09-06 Thread Boris Brezillon
Those hooks have been replaced by ->exec_op(). Move them to the nand_legacy struct. Signed-off-by: Boris Brezillon --- Documentation/driver-api/mtdnand.rst | 4 +-- drivers/mtd/nand/raw/ams-delta.c | 4 +-- drivers/mtd/nand/raw/atmel/nand-controller.c | 8

[PATCH 07/19] mtd: rawnand: Deprecate ->erase()

2018-09-06 Thread Boris Brezillon
The ->erase() hook have been overloaded by some drivers for bad reasons: either the driver was not fitting in the NAND framework and should have been an MTD driver (docg4), or the driver uses a specific path for the ERASE operation (denali), instead of implementing it generically. In any case, we

[PATCH 12/19] mtd: rawnand: Get rid of the duplicate nand_chip forward declaration

2018-09-06 Thread Boris Brezillon
There's already a forward declaration of nand_chip at the beginning of the file. Get rid of this one. Signed-off-by: Boris Brezillon --- include/linux/mtd/rawnand.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/linux/mtd/rawnand.h b/include/linux/mtd/rawnand.h index

[PATCH 17/19] mtd: rawnand: Move legacy code to nand_legacy.c

2018-09-06 Thread Boris Brezillon
Allows us to move a few hundred lines of deprecated code out of the core file which is quite big. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/raw/Makefile | 2 +- drivers/mtd/nand/raw/internals.h | 6 + drivers/mtd/nand/raw/nand_base.c | 618

[PATCH 11/19] mtd: rawnand: Get rid of nand_flash_dev forward declation

2018-09-06 Thread Boris Brezillon
nand_scan[with_ids]() have been moved at the end of the file. We can now get rid of of the nand_flash_dev forward declaration. Signed-off-by: Boris Brezillon --- include/linux/mtd/rawnand.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/mtd/rawnand.h

[PATCH 16/19] mtd: rawnand: Keep all internal stuff private

2018-09-06 Thread Boris Brezillon
A lot of things defined in rawnand.h should not be exposed to NAND controller drivers and should only be shared by core files. Create the drivers/mtd/nand/rawn/internals.h header to store such definitions, and move all private defs to this header. Also remove EXPORT_SYMBOLS() on functions that

[PATCH 00/19] mtd: rawnand: API cleanup (2nd batch)

2018-09-06 Thread Boris Brezillon
Hello, This is the 2nd batch of API cleanup patches. This time we move deprecated hooks/fields to the nand_legacy struct, and then move some of the code found in nand_base.c into separate source/header files. With this new organization, new comers should more easily identify the bits they can

[PATCH 01/19] mtd: rawnand: Leave chip->IO_ADDR_{R, W} to NULL when unused

2018-09-06 Thread Boris Brezillon
There's no point in poisoning the ->IO_ADDR_{R,W}, a NULL pointer is just as good to detect unexpected ->IO_ADDR_{R,W} usage. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/raw/brcmnand/brcmnand.c | 3 --- drivers/mtd/nand/raw/socrates_nand.c | 4 2 files changed, 7 deletions(-)

[PATCH v9 9/9] ARM: dts: sun8i-h3: Add Video Engine and reserved memory nodes

2018-09-06 Thread Paul Kocialkowski
From: Paul Kocialkowski This adds nodes for the Video Engine and the associated reserved memory for the H3. Up to 96 MiB of memory are dedicated to the CMA pool. Signed-off-by: Paul Kocialkowski Acked-by: Maxime Ripard --- arch/arm/boot/dts/sun8i-h3.dtsi | 25 + 1

[PATCH v9 2/9] media: v4l: Add definitions for MPEG-2 slice format and metadata

2018-09-06 Thread Paul Kocialkowski
From: Paul Kocialkowski Stateless video decoding engines require both the MPEG-2 slices and associated metadata from the video stream in order to decode frames. This introduces definitions for a new pixel format, describing buffers with MPEG-2 slice data, as well as control structure sfor

[PATCH v9 1/9] media: videobuf2-core: Rework and rename helper for request buffer count

2018-09-06 Thread Paul Kocialkowski
The helper indicating whether buffers are associated with the request is reworked and renamed to return the number of associated buffer objects. This is useful for drivers that need to check how many buffers are in the request to validate it. Existing users of the helper don't need particular

[PATCH v9 5/9] media: platform: Add Cedrus VPU decoder driver

2018-09-06 Thread Paul Kocialkowski
From: Paul Kocialkowski This introduces the Cedrus VPU driver that supports the VPU found in Allwinner SoCs, also known as Video Engine. It is implemented through a V4L2 M2M decoder device and a media device (used for media requests). So far, it only supports MPEG-2 decoding. Since this VPU is

[PATCH v9 8/9] ARM: dts: sun8i-a33: Add Video Engine and reserved memory nodes

2018-09-06 Thread Paul Kocialkowski
From: Paul Kocialkowski This adds nodes for the Video Engine and the associated reserved memory for the A33. Up to 96 MiB of memory are dedicated to the CMA pool. The VPU can only map the first 256 MiB of DRAM, so the reserved memory pool has to be located in that area. Following Allwinner's

[PATCH v9 7/9] ARM: dts: sun7i-a20: Add Video Engine and reserved memory nodes

2018-09-06 Thread Paul Kocialkowski
From: Paul Kocialkowski This adds nodes for the Video Engine and the associated reserved memory for the A20. Up to 96 MiB of memory are dedicated to the CMA pool. The VPU can only map the first 256 MiB of DRAM, so the reserved memory pool has to be located in that area. Following Allwinner's

[PATCH 15/19] mtd: rawnand: Inline onfi_get_async_timing_mode()

2018-09-06 Thread Boris Brezillon
onfi_get_async_timing_mode() is only used in one place inside nand_base.c. Let's inline the code and kill the helper. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/raw/nand_base.c | 5 +++-- include/linux/mtd/rawnand.h | 9 - 2 files changed, 3 insertions(+), 11 deletions(-)

[PATCH 08/19] mtd: rawnand: Deprecate ->{set,get}_features() hooks

2018-09-06 Thread Boris Brezillon
Those hooks should be replaced by a proper ->exec_op() implementation. Move them to the nand_legacy struct to make it clear. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/raw/bcm47xxnflash/ops_bcm4706.c | 4 +- drivers/mtd/nand/raw/cafe_nand.c | 4 +-

[PATCH 13/19] mtd: rawnand: Get rid of a few unused definitions

2018-09-06 Thread Boris Brezillon
Those definitions are not used, let's remove them. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/raw/nand_timings.c | 14 -- include/linux/mtd/rawnand.h | 8 2 files changed, 22 deletions(-) diff --git a/drivers/mtd/nand/raw/nand_timings.c

[PATCH 04/19] mtd: rawnand: Deprecate ->cmd_ctrl() and ->cmdfunc()

2018-09-06 Thread Boris Brezillon
Those hooks have been replaced by ->exec_op(). Move them to the nand_legacy struct. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/raw/ams-delta.c | 2 +- drivers/mtd/nand/raw/atmel/nand-controller.c | 4 +- drivers/mtd/nand/raw/au1550nd.c | 2 +-

[PATCH 14/19] mtd: rawnand: Move platform_nand_xxx definitions out of rawnand.h

2018-09-06 Thread Boris Brezillon
platform_nand_xxx definitions are just used by the plat_nand driver. Let's move those definitions out of the core/driver-agnostic rawnand.h header. Signed-off-by: Boris Brezillon --- arch/arm/mach-ep93xx/snappercl15.c | 3 +- arch/arm/mach-ep93xx/ts72xx.c | 3 +-

[PATCH 18/19] mtd: rawnand: Move ONFI code to nand_onfi.c

2018-09-06 Thread Boris Brezillon
This moves ONFI related code to nand_onfi.c and ONFI related struct/macros to include/linux/mtd/onfi.h. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/raw/Makefile| 1 + drivers/mtd/nand/raw/internals.h | 7 + drivers/mtd/nand/raw/nand_base.c | 296

[PATCH 19/19] mtd: rawnand: Move JEDEC code to nand_jedec.c

2018-09-06 Thread Boris Brezillon
This moves ONFI related code to nand_onfi.c and ONFI related struct/macros to include/linux/mtd/onfi.h. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/raw/Makefile | 1 + drivers/mtd/nand/raw/internals.h | 3 + drivers/mtd/nand/raw/nand_base.c | 98

[PATCH v9 0/9] Cedrus driver for the Allwinner Video Engine, using media requests

2018-09-06 Thread Paul Kocialkowski
This is the ninth iteration of the updated Cedrus driver, that supports the Video Engine found on most Allwinner SoCs, starting with the A10. It was tested on the A13, A20, A33 and H3. The initial version of this driver[0] was originally written and submitted by Florent Revest using a previous

Re: [PATCH] vme: remove unneeded kfree

2018-09-06 Thread Linus Torvalds
On Thu, Sep 6, 2018 at 1:51 AM Ding Xiang wrote: > > put_device will call vme_dev_release to free vdev, kfree is > unnecessary here. That does seem to be the case. I think "unnecessary" is overly kind, it does seem to be a double free. Looks like the issue was introduced back in 2013 by commit

[ 1/1] KVM/MMU: Fix comment in walk_shadow_page_lockless_end()

2018-09-06 Thread Tianyu Lan
kvm_commit_zap_page() has been renamed to kvm_mmu_commit_zap_page() This patch is to fix the commit. Signed-off-by: Lan Tianyu --- arch/x86/kvm/mmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index 7ccd29b95746..648b839a349d

Re: [PATCH v8 4/8] media: platform: Add Cedrus VPU decoder driver

2018-09-06 Thread Hans Verkuil
On 09/06/2018 09:01 AM, Hans Verkuil wrote: > On 09/05/2018 06:29 PM, Paul Kocialkowski wrote: >> Hi and thanks for the review! >> >> Le lundi 03 septembre 2018 à 11:11 +0200, Hans Verkuil a écrit : >>> On 08/28/2018 09:34 AM, Paul Kocialkowski wrote: +static int cedrus_queue_setup(struct

Re: [PATCH v8 4/8] media: platform: Add Cedrus VPU decoder driver

2018-09-06 Thread Tomasz Figa
On Thu, Sep 6, 2018 at 4:01 PM Hans Verkuil wrote: > > On 09/05/2018 06:29 PM, Paul Kocialkowski wrote: > > Hi and thanks for the review! > > > > Le lundi 03 septembre 2018 à 11:11 +0200, Hans Verkuil a écrit : > >> On 08/28/2018 09:34 AM, Paul Kocialkowski wrote: > >>> +static int

Re: [PATCH v8 4/8] media: platform: Add Cedrus VPU decoder driver

2018-09-06 Thread Hans Verkuil
On 09/06/2018 09:25 AM, Tomasz Figa wrote: > On Thu, Sep 6, 2018 at 4:01 PM Hans Verkuil wrote: >> >> On 09/05/2018 06:29 PM, Paul Kocialkowski wrote: >>> Hi and thanks for the review! >>> >>> Le lundi 03 septembre 2018 à 11:11 +0200, Hans Verkuil a écrit : On 08/28/2018 09:34 AM, Paul