Re: [PATCH 07/16] media: i2c: rdacm2x: Fix wake up delay

2021-02-17 Thread Geert Uytterhoeven
On Tue, Feb 16, 2021 at 6:41 PM Jacopo Mondi wrote: > The MAX9271 chip manual prescribes a delay of 5 milliseconds > after the chip exists from low power state. exits Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68

[PATCH v1 00/18] Add HANTRO G2/HEVC decoder support for IMX8MQ

2021-02-17 Thread Benjamin Gaignard
The IMX8MQ got two VPUs but until now only G1 has been enabled. This series aim to add the second VPU (aka G2) and provide basic HEVC decoding support. To be able to decode HEVC it is needed to add/update some of the structures in the uapi. In addition of them one HANTRO dedicated control is requ

Re: [PATCH v3 1/2] drm/i915/gen9bc: Handle TGP PCH during suspend/resume

2021-02-17 Thread Imre Deak
On Tue, Feb 16, 2021 at 09:53:36PM -0500, Lyude Paul wrote: > From: Tejas Upadhyay > > For Legacy S3 suspend/resume GEN9 BC needs to enable and > setup TGP PCH. > > v2: > * Move Wa_14010685332 into it's own function - vsyrjala > * Add TODO comment about figuring out if we can move this workaroun

[PATCH v1 01/18] include: media: hevc: Add scaling and decode params controls

2021-02-17 Thread Benjamin Gaignard
Define scaling and decode params controls for HEVC codec. Signed-off-by: Benjamin Gaignard Signed-off-by: Ezequiel Garcia Signed-off-by: Adrian Ratiu --- include/media/hevc-ctrls.h | 4 1 file changed, 4 insertions(+) diff --git a/include/media/hevc-ctrls.h b/include/media/hevc-ctrls.h i

[PATCH v1 04/18] media: hevc: add structures for hevc codec

2021-02-17 Thread Benjamin Gaignard
Define additional structures to be used by HEVC codecs. This will allow to provide the needed information to the hardware block. Adapt Cedrus driver to use these new structures Signed-off-by: Benjamin Gaignard Signed-off-by: Ezequiel Garcia Signed-off-by: Adrian Ratiu --- drivers/staging/media

[PATCH v1 03/18] arm64: dts: imx8mq-evk: add reserve memory node for CMA region

2021-02-17 Thread Benjamin Gaignard
Define allocation range for the default CMA region. Signed-off-by: Benjamin Gaignard Signed-off-by: Ezequiel Garcia Signed-off-by: Adrian Ratiu --- arch/arm64/boot/dts/freescale/imx8mq-evk.dts | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/im

[PATCH v1 02/18] media: hantro: Define HEVC codec profiles and supported features

2021-02-17 Thread Benjamin Gaignard
Define which HEVC profiles (up to level 5.1) and features (no scaling, no 10 bits) are supported by the driver. Signed-off-by: Benjamin Gaignard Signed-off-by: Ezequiel Garcia Signed-off-by: Adrian Ratiu --- drivers/staging/media/hantro/hantro.h | 2 + drivers/staging/media/hantro/hantro_

[PATCH v1 05/18] media: controls: Add control for HEVC codec

2021-02-17 Thread Benjamin Gaignard
Add HEVC decode params and scaling matrix controls. Signed-off-by: Benjamin Gaignard Signed-off-by: Ezequiel Garcia Signed-off-by: Adrian Ratiu --- drivers/media/v4l2-core/v4l2-ctrls.c | 36 ++-- 1 file changed, 29 insertions(+), 7 deletions(-) diff --git a/drivers/med

[PATCH v1 06/18] media: hantro: Make sure that ctx->codex_ops is set

2021-02-17 Thread Benjamin Gaignard
Do not try to call ctx->codec_ops->done if ctx->codec_ops is not set. Signed-off-by: Benjamin Gaignard Signed-off-by: Ezequiel Garcia Signed-off-by: Adrian Ratiu --- drivers/staging/media/hantro/hantro_drv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/

[PATCH v1 07/18] media: hantro: Add a field to distinguish the hardware versions

2021-02-17 Thread Benjamin Gaignard
Decoders hardware blocks could exist in multiple versions: add a field to distinguish them at runtime. Keep the default behavoir to be G1 hardware. Signed-off-by: Benjamin Gaignard Signed-off-by: Ezequiel Garcia Signed-off-by: Adrian Ratiu --- drivers/staging/media/hantro/hantro.h | 5

[PATCH v1 09/18] media: hantro: move hantro_needs_postproc function

2021-02-17 Thread Benjamin Gaignard
hantro_needs_postproc function becoming to much complex to stray inline in .h file move it to .c file. Signed-off-by: Benjamin Gaignard Signed-off-by: Ezequiel Garcia Signed-off-by: Adrian Ratiu --- drivers/staging/media/hantro/hantro.h | 8 ++-- drivers/staging/media/hantro/hant

[PATCH v1 08/18] media: hantro: Add HEVC structures

2021-02-17 Thread Benjamin Gaignard
Add structures and context for HEVC support Signed-off-by: Benjamin Gaignard Signed-off-by: Ezequiel Garcia Signed-off-by: Adrian Ratiu --- drivers/staging/media/hantro/hantro.h| 3 ++ drivers/staging/media/hantro/hantro_hw.h | 35 2 files changed, 38 insertions(+

[PATCH v1 16/18] media: hantro: IMX8M: add variant for G2/HEVC codec

2021-02-17 Thread Benjamin Gaignard
Add variant to IMX8M to enable G2/HEVC codec. Define the capabilities for the hardware up to 3840x2160. Retrieve the hardware version at init to distinguish G1 from G2. Signed-off-by: Benjamin Gaignard Signed-off-by: Ezequiel Garcia Signed-off-by: Adrian Ratiu --- drivers/staging/media/hantro/

[PATCH v1 12/18] media: uapi: Add a control for HANTRO driver

2021-02-17 Thread Benjamin Gaignard
The HEVC HANTRO driver needs to know the number of bits to skip at the beginning of the slice header. That is a hardware specific requirement so create a dedicated control that this purpose. Signed-off-by: Benjamin Gaignard Signed-off-by: Ezequiel Garcia Signed-off-by: Adrian Ratiu --- include

[PATCH v1 10/18] media: hantro: Add helper functions for buffer information

2021-02-17 Thread Benjamin Gaignard
Add help functions to retrieve buffer address and size. Signed-off-by: Benjamin Gaignard Signed-off-by: Ezequiel Garcia Signed-off-by: Adrian Ratiu --- drivers/staging/media/hantro/hantro.h | 16 1 file changed, 16 insertions(+) diff --git a/drivers/staging/media/hantro/hantr

[PATCH v1 14/18] media: hantro: add G2 support to postproc

2021-02-17 Thread Benjamin Gaignard
G2 doesn't have the same post processor feature than G1. Adapt post processor code for G2 requirements. Signed-off-by: Benjamin Gaignard Signed-off-by: Ezequiel Garcia Signed-off-by: Adrian Ratiu --- .../staging/media/hantro/hantro_postproc.c| 35 --- 1 file changed, 23 ins

[PATCH v1 17/18] dt-bindings: media: nxp,imx8mq-vpu: Update bindings

2021-02-17 Thread Benjamin Gaignard
The introduction on HEVC decoder lead to update the bindings to support it. Signed-off-by: Benjamin Gaignard Signed-off-by: Ezequiel Garcia Signed-off-by: Adrian Ratiu --- .../bindings/media/nxp,imx8mq-vpu.yaml| 54 --- 1 file changed, 36 insertions(+), 18 deletions(-)

[PATCH v1 13/18] media: hantro: Introduce G2/HEVC decoder

2021-02-17 Thread Benjamin Gaignard
Implement all the logic to get G2 hardware decoding HEVC frames. It support up level 5.1 HEVC stream. It doesn't support yet 10 bits formats or scaling feature. Add HANTRO HEVC dedicated control to skip some bits at the beginning of the slice header. That is very specific to this hardware so can't

[PATCH v1 15/18] media: hantro: handle V4L2_PIX_FMT_HEVC_SLICE control

2021-02-17 Thread Benjamin Gaignard
Make sure that V4L2_PIX_FMT_HEVC_SLICE is correctly handle by v4l2 of the driver. Signed-off-by: Benjamin Gaignard Signed-off-by: Ezequiel Garcia Signed-off-by: Adrian Ratiu --- drivers/staging/media/hantro/hantro_v4l2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dri

Re: [PATCH v5 1/5] dt-bindings: aspeed-lpc: Remove LPC partitioning

2021-02-17 Thread Andrew Jeffery
On Wed, 17 Feb 2021, at 18:14, Joel Stanley wrote: > Hi Chaiwei, > > On Wed, 17 Feb 2021 at 07:40, ChiaWei Wang > wrote: > > > > Hi All, > > > > Do you have update on this patch series? > > Aspeed has subsequent LPC module upstream plan. > > We hope that the following patches can be on the ba

RE: [PATCH v5 1/5] dt-bindings: aspeed-lpc: Remove LPC partitioning

2021-02-17 Thread ChiaWei Wang
Hi Joel, Thanks for your feedback. Really appreciate all your review effort. Chiawei > -Original Message- > From: Joel Stanley > Sent: Wednesday, February 17, 2021 3:45 PM > To: ChiaWei Wang > Subject: Re: [PATCH v5 1/5] dt-bindings: aspeed-lpc: Remove LPC partitioning > > Hi Chaiwei,

Re: [PATCH 09/16] media: i2c: rdacm21: Re-work OV10640 initialization

2021-02-17 Thread Geert Uytterhoeven
Hi Jacopo, On Tue, Feb 16, 2021 at 6:41 PM Jacopo Mondi wrote: > The OV10640 image sensor reset and powerdown on signals are controlled Drop the "on"? > by the embedded OV490 ISP. The current reset procedure does not respect > the 1 millisecond power-up delay and releases the reset signal befor

Re: [PATCH] i2c: exynos5: Preserve high speed master code

2021-02-17 Thread Krzysztof Kozlowski
On Tue, Feb 16, 2021 at 11:09:33PM +0100, Marten Lindahl wrote: > > Any reason why not "|= MASTER_ID(i2c->adap.nr)" here instead of more > > expensive IO read? It's quite important because your current code will > > bitwise-or old I2C slave address with a new one... This should break > > during tes

[PATCH v1 18/18] arm64: dts: imx8mq: Add node to G2 hardware

2021-02-17 Thread Benjamin Gaignard
Split VPU node in two: one for G1 and one for G2 since they are different hardware blocks. Signed-off-by: Benjamin Gaignard --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 43 +-- 1 file changed, 33 insertions(+), 10 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/im

Re: [PATCH 10/16] media: i2c: max9286: Rename reverse_channel_mv

2021-02-17 Thread Geert Uytterhoeven
On Tue, Feb 16, 2021 at 6:41 PM Jacopo Mondi wrote: > Rename the reverse_channel_mv variable to init_rev_chan_mv as > the next patches will cache the reverse channel amplitude in patch? > a new driver variable. > > Signed-off-by: Jacopo Mondi Gr{oetje,eeting}s, Geert

Re: [PATCH v1 00/18] Add HANTRO G2/HEVC decoder support for IMX8MQ

2021-02-17 Thread Greg KH
On Wed, Feb 17, 2021 at 09:02:48AM +0100, Benjamin Gaignard wrote: > The IMX8MQ got two VPUs but until now only G1 has been enabled. > This series aim to add the second VPU (aka G2) and provide basic > HEVC decoding support. Why are you adding this directly to drivers/staging/media/ and not drive

[PATCH v1 11/18] media: hantro: Add helper function for auxiliary buffers allocation

2021-02-17 Thread Benjamin Gaignard
Add helper functions to allocate and free auxiliary buffers. These buffers aren't for frames but are needed by the hardware to store scaling matrix, tiles size, border filters etc... Signed-off-by: Benjamin Gaignard Signed-off-by: Ezequiel Garcia Signed-off-by: Adrian Ratiu --- drivers/staging

Re: [PATCH v2] vfs: prevent copy_file_range to copy across devices

2021-02-17 Thread Amir Goldstein
On Tue, Feb 16, 2021 at 11:15 PM Steve French wrote: > > On Tue, Feb 16, 2021 at 1:40 PM Amir Goldstein wrote: > > > > On Tue, Feb 16, 2021 at 9:31 PM Steve French wrote: > > > > > > On Tue, Feb 16, 2021 at 1:29 PM Anna Schumaker > > > wrote: > > > > > > > > On Tue, Feb 16, 2021 at 2:22 PM Amir

Re: [PATCH 11/16] media: i2c: max9286: Cache channel amplitude

2021-02-17 Thread Geert Uytterhoeven
On Tue, Feb 16, 2021 at 6:41 PM Jacopo Mondi wrote: > Cache the current channel amplitude in a driver variable > to skip updating it if the new requested value is the same newly > as the currently configured one. > > Signed-off-by: Jacopo Mondi Gr{oetje,eeting}s, Geert

Re: [PATCH V0 3/6] soc: qcom: dcc:Add driver support for Data Capture and Compare unit(DCC)

2021-02-17 Thread kernel test robot
'--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Souradeep-Chowdhury/Add-driver-support-for-Data-Capture-and-Compare-Engine-DCC-for-SM8150/20210217-145428 base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.gi

Re: [External] Re: [PATCH v15 4/8] mm: hugetlb: alloc the vmemmap pages associated with each HugeTLB page

2021-02-17 Thread Michal Hocko
On Tue 16-02-21 11:44:34, Mike Kravetz wrote: [...] > If we are not going to do the allocations under the lock, then we will need > to either preallocate or take the workqueue approach. We can still drop the lock temporarily right? As we already do before calling destroy_compound_gigantic_page...

Re: [PATCH 13/16] media: i2c: rdacm2x: Implement .init() subdev op

2021-02-17 Thread Geert Uytterhoeven
On Tue, Feb 16, 2021 at 6:41 PM Jacopo Mondi wrote: > The current probe() procedure of the RDACM20 and RDACM20 performs > initialization of the serializer image sensors and increases the noise > immunity threshold as last operation, which is then compensated by the > remote deserializer by increas

Re: [PATCH v4 2/2] pinctrl: pinmux: Add pinmux-select debugfs file

2021-02-17 Thread Dan Carpenter
On Thu, Feb 11, 2021 at 07:35:33PM -0800, Drew Fustini wrote: > On Thu, Feb 11, 2021 at 10:39:38AM +0300, Dan Carpenter wrote: > > On Wed, Feb 10, 2021 at 11:24:23PM -0800, Joe Perches wrote: > > > On Thu, 2021-02-11 at 10:11 +0300, Dan Carpenter wrote: > > > > On Wed, Feb 10, 2021 at 02:28:54PM -0

Re: [PATCH 14/16] media: i2c: max9286: Initialize remotes when bound

2021-02-17 Thread Geert Uytterhoeven
On Tue, Feb 16, 2021 at 6:41 PM Jacopo Mondi wrote: > With the introduction of the .init() core subdev operation in the > max9271 GMSL serializer, the max9286 deserializer needs to explicitly > initialize the remote devices by calling the .init() subdev operation on > each probed camera. > > Call

Re: [PATCH 16/16] media: i2c: gmsl: Use 339Kbps I2C bit-rate

2021-02-17 Thread Geert Uytterhoeven
On Tue, Feb 16, 2021 at 6:41 PM Jacopo Mondi wrote: > With the camera modules initialization routines now running with > the noise immunity threshold enabled, it is possible to restore > the bit rate of the I2C transactions transported on the GMSL control > channel to 339 Kbps. > > The 339 Kbps bi

[RESEND PATCH v4 0/3] proc: Relax check of mount visibility

2021-02-17 Thread Alexey Gladkov
If only the dynamic part of procfs is mounted (subset=pid), then there is no need to check if procfs is fully visible to the user in the new user namespace. Changelog - v4: * Set SB_I_DYNAMIC only if pidonly is set. * Add an error message if subset=pid is canceled during remount. v3: * Ad

[RESEND PATCH v4 2/3] proc: Show /proc/self/net only for CAP_NET_ADMIN

2021-02-17 Thread Alexey Gladkov
Cache the mounters credentials and make access to the net directories contingent of the permissions of the mounter of proc. Show /proc/self/net only if mounter has CAP_NET_ADMIN and if proc is mounted with subset=pid option. Signed-off-by: Alexey Gladkov --- fs/proc/proc_net.c | 8

[RESEND PATCH v4 3/3] proc: Disable cancellation of subset=pid option

2021-02-17 Thread Alexey Gladkov
There is no way to remount procfs mountpoint with subset=pid option without it. This is done in order not to make visible what was hidden since some checks occur during mount. This patch makes this limitation explicit and demonstrates the error. Signed-off-by: Alexey Gladkov --- fs/proc/root.c

[RESEND PATCH v4 1/3] proc: Relax check of mount visibility

2021-02-17 Thread Alexey Gladkov
Allow to mount of procfs with subset=pid option even if the entire procfs is not fully accessible to the user. Signed-off-by: Alexey Gladkov --- fs/namespace.c | 27 --- fs/proc/root.c | 17 ++--- include/linux/fs.h | 1 + 3 files changed, 27 insertio

Re: [PATCH v1 00/18] Add HANTRO G2/HEVC decoder support for IMX8MQ

2021-02-17 Thread Benjamin Gaignard
Le 17/02/2021 à 09:08, Greg KH a écrit : On Wed, Feb 17, 2021 at 09:02:48AM +0100, Benjamin Gaignard wrote: The IMX8MQ got two VPUs but until now only G1 has been enabled. This series aim to add the second VPU (aka G2) and provide basic HEVC decoding support. Why are you adding this directly

[PATCH v2 0/5] iio: Add output buffer support

2021-02-17 Thread Alexandru Ardelean
This patchset is based on the new multibuffer set. It doesn't require the high-speed/mmap interface. That will come later on a v2. Changelog v1 -> v2: * https://lore.kernel.org/linux-iio/20210212102021.47276-4-alexandru.ardel...@analog.com/T/#u * removed DMA patches for now * in patch 'iio: Add o

[PATCH v2 1/5] iio: Documentation: update definitions for bufferY and scan_elements

2021-02-17 Thread Alexandru Ardelean
Since the new change to the IIO buffer infrastructure, the buffer/ and scan_elements/ directories have been merged into bufferY/ to have some attributes available per-buffer. This change updates the ABI docs to reflect this change. The hwfifo attributes are not updated, as for now these should be

[PATCH v2 2/5] iio: Add output buffer support

2021-02-17 Thread Alexandru Ardelean
From: Lars-Peter Clausen Currently IIO only supports buffer mode for capture devices like ADCs. Add support for buffered mode for output devices like DACs. The output buffer implementation is analogous to the input buffer implementation. Instead of using read() to get data from the buffer write(

[PATCH v2 3/5] iio: kfifo-buffer: Add output buffer support

2021-02-17 Thread Alexandru Ardelean
From: Lars-Peter Clausen Add output buffer support to the kfifo buffer implementation. The implementation is straight forward and mostly just wraps the kfifo API to provide the required operations. Signed-off-by: Lars-Peter Clausen Signed-off-by: Alexandru Ardelean --- drivers/iio/buffer/kfi

[PATCH v2 4/5] iio: triggered-buffer: extend support to configure output buffers

2021-02-17 Thread Alexandru Ardelean
Now that output (kfifo) buffers are supported, we need to extend the {devm_}iio_triggered_buffer_setup_ext() parameter list to take a direction parameter. This allows us to attach an output triggered buffer to a DAC device. Unfortunately it's a bit difficult to add another macro to avoid changing

[PATCH v2 5/5] iio: dac: ad5686: Add PWM as a trigger source

2021-02-17 Thread Alexandru Ardelean
From: Mircea Caprioru A PWM signal will be used as a trigger source to have a deterministic sampling frequency since this family of DAC has no hardware interrupt source. This feature is made optional however, as there are some board setups where this isn't used. Signed-off-by: Mircea Caprioru

Re: [PATCH v2] i2c: exynos5: Preserve high speed master code

2021-02-17 Thread Krzysztof Kozlowski
On Tue, Feb 16, 2021 at 11:25:38PM +0100, Mårten Lindahl wrote: > From: Mårten Lindahl > > When the driver starts to send a message with the MASTER_ID field > set (high speed), the whole I2C_ADDR register is overwritten including > MASTER_ID as the SLV_ADDR_MAS field is set. > > This patch prese

Re: [PATCH v1 00/18] Add HANTRO G2/HEVC decoder support for IMX8MQ

2021-02-17 Thread Greg KH
On Wed, Feb 17, 2021 at 09:28:09AM +0100, Benjamin Gaignard wrote: > > Le 17/02/2021 à 09:08, Greg KH a écrit : > > On Wed, Feb 17, 2021 at 09:02:48AM +0100, Benjamin Gaignard wrote: > > > The IMX8MQ got two VPUs but until now only G1 has been enabled. > > > This series aim to add the second VPU (

Re: [PATCH v1 00/18] Add HANTRO G2/HEVC decoder support for IMX8MQ

2021-02-17 Thread Paul Kocialkowski
Hi Benjamin, On Wed 17 Feb 21, 09:28, Benjamin Gaignard wrote: > Le 17/02/2021 à 09:08, Greg KH a écrit : > > On Wed, Feb 17, 2021 at 09:02:48AM +0100, Benjamin Gaignard wrote: > > > The IMX8MQ got two VPUs but until now only G1 has been enabled. > > > This series aim to add the second VPU (aka G2

Re: [PATCH] i2c: exynos5: Preserve high speed master code

2021-02-17 Thread Jesper Nilsson
On Wed, Feb 17, 2021 at 09:07:47AM +0100, Krzysztof Kozlowski wrote: > On Tue, Feb 16, 2021 at 11:09:33PM +0100, Marten Lindahl wrote: > > > Any reason why not "|= MASTER_ID(i2c->adap.nr)" here instead of more > > > expensive IO read? It's quite important because your current code will > > > bitwis

Re: [PATCH] i2c: exynos5: Preserve high speed master code

2021-02-17 Thread Krzysztof Kozlowski
On Wed, Feb 17, 2021 at 09:32:11AM +0100, Jesper Nilsson wrote: > On Wed, Feb 17, 2021 at 09:07:47AM +0100, Krzysztof Kozlowski wrote: > > On Tue, Feb 16, 2021 at 11:09:33PM +0100, Marten Lindahl wrote: > > > > Any reason why not "|= MASTER_ID(i2c->adap.nr)" here instead of more > > > > expensive I

RE: [PATCH 2/2] mmc: core: Add no single read retries

2021-02-17 Thread DooHyun Hwang
On 17/02/21 8:00 am, Adrian Hunter wrote: >On 17/02/21 7:46 am, Adrian Hunter wrote: >> On 17/02/21 7:22 am, DooHyun Hwang wrote: >>> This makes to handle read errors faster by not retrying multiple >>> block read(CMD18) errors with single block reads(CMD17). >>> >>> On some bad SD Cards that hav

Re: [RFC 1/2] mm: disable LRU pagevec during the migration temporarily

2021-02-17 Thread Michal Hocko
On Tue 16-02-21 09:03:47, Minchan Kim wrote: > LRU pagevec holds refcount of pages until the pagevec are drained. > It could prevent migration since the refcount of the page is greater > than the expection in migration logic. To mitigate the issue, > callers of migrate_pages drains LRU pagevec via

Re: [PATCH 5.10 022/104] kbuild: simplify GCC_PLUGINS enablement in dummy-tools/gcc

2021-02-17 Thread Pavel Machek
Hi! > From: Masahiro Yamada > > [ Upstream commit f4c3b83b75b91c5059726cb91e3165cc01764ce7 ] > > With commit 1e860048c53e ("gcc-plugins: simplify GCC plugin-dev > capability test") applied, this hunk can be way simplified because > now scripts/gcc-plugins/Kconfig only checks plugin-version.h A

[PATCH v20 0/4] scsi: ufs: Add Host Performance Booster Support

2021-02-17 Thread Daejun Park
Changelog: v19 -> v20 1. Add documentation for sysfs entries of hpb->stat. 2. Fix read buffer command for under-sized sub-region. 3. Fix wrong condition checking for kick map work. 4. Delete redundant response UPIU checking. 5. Add LUN checking in response UPIU. 6. Fix possible deadlock problem

Re: [PATCH v1 00/18] Add HANTRO G2/HEVC decoder support for IMX8MQ

2021-02-17 Thread Hans Verkuil
On 17/02/2021 09:36, Greg KH wrote: > On Wed, Feb 17, 2021 at 09:28:09AM +0100, Benjamin Gaignard wrote: >> >> Le 17/02/2021 à 09:08, Greg KH a écrit : >>> On Wed, Feb 17, 2021 at 09:02:48AM +0100, Benjamin Gaignard wrote: The IMX8MQ got two VPUs but until now only G1 has been enabled. Th

Re: [RFC PATCH] mm, oom: introduce vm.sacrifice_hugepage_on_oom

2021-02-17 Thread David Hildenbrand
On 16.02.21 04:07, Eiichi Tsukata wrote: Hugepages can be preallocated to avoid unpredictable allocation latency. If we run into 4k page shortage, the kernel can trigger OOM even though there were free hugepages. When OOM is triggered by user address page fault handler, we can use oom notifier to

回复: [PATCH] workqueue: Move the position of debug_work_activate() in __queue_work()

2021-02-17 Thread Zhang, Qiang
Hello Tejun Heo Excuse me, do you have time to make some suggestions for this modification? Thanks Qiang 发件人: Zhang, Qiang 发送时间: 2021年2月11日 16:24 收件人: t...@kernel.org; jiangshan...@gmail.com 抄送: linux-kernel@vger.kernel.org 主题: [PATCH] workqueue: Move th

[PATCH v20 1/4] scsi: ufs: Introduce HPB feature

2021-02-17 Thread Daejun Park
This is a patch for the HPB initialization and adds HPB function calls to UFS core driver. NAND flash-based storage devices, including UFS, have mechanisms to translate logical addresses of IO requests to the corresponding physical addresses of the flash storage. In UFS, Logical-address-to-Physica

[PATCH v20 2/4] scsi: ufs: L2P map management for HPB read

2021-02-17 Thread Daejun Park
This is a patch for managing L2P map in HPB module. The HPB divides logical addresses into several regions. A region consists of several sub-regions. The sub-region is a basic unit where L2P mapping is managed. The driver loads L2P mapping data of each sub-region. The loaded sub-region is called a

[PATCH v20 3/4] scsi: ufs: Prepare HPB read for cached sub-region

2021-02-17 Thread Daejun Park
This patch changes the read I/O to the HPB read I/O. If the logical address of the read I/O belongs to active sub-region, the HPB driver modifies the read I/O command to HPB read. It modifies the UPIU command of UFS instead of modifying the existing SCSI command. In the HPB version 1.0, the maxim

[PATCH v20 4/4] scsi: ufs: Add HPB 2.0 support

2021-02-17 Thread Daejun Park
This patch supports the HPB 2.0. The HPB 2.0 supports read of varying sizes from 4KB to 512KB. In the case of Read (<= 32KB) is supported as single HPB read. In the case of Read (36KB ~ 512KB) is supported by as a combination of write buffer command and HPB read command to deliver more PPN. The wr

Re: [PATCH for 5.4] Fix unsynchronized access to sev members through svm_register_enc_region

2021-02-17 Thread Dov Murik
Hi Peter, On 08/02/2021 18:48, Peter Gonda wrote: > commit 19a23da53932bc8011220bd8c410cb76012de004 upstream. > > Grab kvm->lock before pinning memory when registering an encrypted > region; sev_pin_memory() relies on kvm->lock being held to ensure > correctness when checking and updating the num

Re: [PATCH v1 00/18] Add HANTRO G2/HEVC decoder support for IMX8MQ

2021-02-17 Thread Greg KH
On Wed, Feb 17, 2021 at 10:10:35AM +0100, Hans Verkuil wrote: > On 17/02/2021 09:36, Greg KH wrote: > > On Wed, Feb 17, 2021 at 09:28:09AM +0100, Benjamin Gaignard wrote: > >> > >> Le 17/02/2021 à 09:08, Greg KH a écrit : > >>> On Wed, Feb 17, 2021 at 09:02:48AM +0100, Benjamin Gaignard wrote: > >>

[PATCH 1/2] optee: fix tee out of memory failure seen during kexec reboot

2021-02-17 Thread Allen Pais
From: Allen Pais The following out of memory errors are seen on kexec reboot from the optee core. [0.368428] tee_bnxt_fw optee-clnt0: tee_shm_alloc failed [0.368461] tee_bnxt_fw: probe of optee-clnt0 failed with error -22 tee_shm_release() is not invoked on dma shm buffer. Implement .s

Re: [PATCH 5.10 043/104] kasan: add explicit preconditions to kasan_report()

2021-02-17 Thread Greg Kroah-Hartman
On Tue, Feb 16, 2021 at 12:50:29PM +0100, Pavel Machek wrote: > Hi! > > > From: Vincenzo Frascino > > > > [ Upstream commit 49c6631d3b4f61a7b5bb0453a885a12bfa06ffd8 ] > > > > Patch series "kasan: Fix metadata detection for KASAN_HW_TAGS", v5. > > > > With the introduction of KASAN_HW_TAGS, kas

[PATCH 0/2] optee: fix OOM seen due to tee_shm_free()

2021-02-17 Thread Allen Pais
From: Allen Pais The following out of memory errors are seen on kexec reboot from the optee core. [0.368428] tee_bnxt_fw optee-clnt0: tee_shm_alloc failed [0.368461] tee_bnxt_fw: probe of optee-clnt0 failed with error -22 tee_shm_release() is not invoked on dma shm buffer.

[PATCH 2/2] firmware: tee_bnxt: implement shutdown method to handle kexec reboots

2021-02-17 Thread Allen Pais
From: Allen Pais On kexec reboot the firmware driver fails to deallocate shm memory leading to a memory leak. Implement .shutdown() method to handle kexec reboots and to release shm buffers correctly. Signed-off-by: Allen Pais --- drivers/firmware/broadcom/tee_bnxt_fw.c | 9 + 1 file

Re: [PATCH 5.10 022/104] kbuild: simplify GCC_PLUGINS enablement in dummy-tools/gcc

2021-02-17 Thread Greg Kroah-Hartman
On Wed, Feb 17, 2021 at 10:08:54AM +0100, Pavel Machek wrote: > Hi! > > > From: Masahiro Yamada > > > > [ Upstream commit f4c3b83b75b91c5059726cb91e3165cc01764ce7 ] > > > > With commit 1e860048c53e ("gcc-plugins: simplify GCC plugin-dev > > capability test") applied, this hunk can be way simpli

Re: 5.10 LTS Kernel: 2 or 6 years?

2021-02-17 Thread Greg Kroah-Hartman
On Tue, Jan 26, 2021 at 07:51:18PM +0100, Greg Kroah-Hartman wrote: > On Tue, Jan 26, 2021 at 10:30:16AM -0800, Scott Branden wrote: > > Hi Greg, > > > > > > On 2021-01-25 11:29 p.m., Greg Kroah-Hartman wrote: > > > On Mon, Jan 25, 2021 at 11:55:11AM -0800, Scott Branden wrote: > > >> Hi All, > >

Re: [PATCH] RTIC: selinux: ARM64: Move selinux_state to a separate page

2021-02-17 Thread Will Deacon
[Please include arm64 and kvm folks for threads involving the stage-2 MMU] On Tue, Feb 16, 2021 at 03:47:52PM +0530, Preeti Nagar wrote: > The changes introduce a new security feature, RunTime Integrity Check > (RTIC), designed to protect Linux Kernel at runtime. The motivation > behind these chan

Re: [PATCH v2] ARM: Implement Clang's SLS mitigation

2021-02-17 Thread Will Deacon
On Fri, Feb 12, 2021 at 11:52:53AM -0800, Jian Cai wrote: > This patch adds CONFIG_HARDEN_SLS_ALL that can be used to turn on > -mharden-sls=all, which mitigates the straight-line speculation > vulnerability, speculative execution of the instruction following some > unconditional jumps. Notice -mha

Re: [RFC 1/2] mm: disable LRU pagevec during the migration temporarily

2021-02-17 Thread Michal Hocko
On Wed 17-02-21 09:59:54, Michal Hocko wrote: > On Tue 16-02-21 09:03:47, Minchan Kim wrote: [...] > > /* > > * migrate_prep() needs to be called before we start compiling a list of > > pages > > * to be migrated using isolate_lru_page(). If scheduling work on other > > CPUs is > > @@ -64,11

[PATCH net-next 1/1] net: stmmac: Add PCI bus info to ethtool driver query output

2021-02-17 Thread Wong Vee Khee
This patch populates the PCI bus info in the ethtool driver query data. Users will be able to view PCI bus info using 'ethtool -i '. Signed-off-by: Wong Vee Khee --- drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c| 1 + drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c | 4 includ

Re: [PATCH] RTIC: selinux: ARM64: Move selinux_state to a separate page

2021-02-17 Thread Ard Biesheuvel
On Wed, 17 Feb 2021 at 10:42, Will Deacon wrote: > > [Please include arm64 and kvm folks for threads involving the stage-2 MMU] > > On Tue, Feb 16, 2021 at 03:47:52PM +0530, Preeti Nagar wrote: > > The changes introduce a new security feature, RunTime Integrity Check > > (RTIC), designed to protec

Re: [PATCH v4 4/9] cxl/mem: Add basic IOCTL interface

2021-02-17 Thread Jonathan Cameron
On Tue, 16 Feb 2021 10:34:32 -0800 Ben Widawsky wrote: ... > > > diff --git a/drivers/cxl/mem.c b/drivers/cxl/mem.c > > > index 237b956f0be0..4ca4f5afd9d2 100644 > > > --- a/drivers/cxl/mem.c > > > +++ b/drivers/cxl/mem.c > > > @@ -686,7 +686,11 @@ static int cxl_validate_cmd_from_user(struct cx

Re: linux-next: manual merge of the pm tree with the i3c tree

2021-02-17 Thread Andy Shevchenko
On Wed, Feb 17, 2021 at 4:11 AM Stephen Rothwell wrote: > > Hi all, > > Today's linux-next merge of the pm tree got a conflict in: > > MAINTAINERS > > between commit: > > f06a1af8e739 ("MAINTAINERS: Add Silvaco I3C master") > > from the i3c tree and commit: > > 4590d98f5a4f ("sfi: Remove fra

Re: [PATCH] [v13] wireless: Initial driver submission for pureLiFi STA devices

2021-02-17 Thread Kalle Valo
Srinivasan Raju writes: > This introduces the pureLiFi LiFi driver for LiFi-X, LiFi-XC > and LiFi-XL USB devices. > > This driver implementation has been based on the zd1211rw driver. > > Driver is based on 802.11 softMAC Architecture and uses > native 802.11 for configuration and management. > >

Re: [PATCH 09/10] drm/qxl: map/unmap framebuffers in prepare_fb+cleanup_fb callbacks.

2021-02-17 Thread Gerd Hoffmann
On Tue, Feb 16, 2021 at 02:46:21PM +0100, Thomas Zimmermann wrote: > > > Am 16.02.21 um 14:27 schrieb Thomas Zimmermann: > > Hi > > > > this is a shadow-buffered plane. Did you consider using the new helpers > > for shadow-buffered planes? They will map the user BO for you and > > provide the ma

Re: [PATCH] [v13] wireless: Initial driver submission for pureLiFi STA devices

2021-02-17 Thread Kalle Valo
Johannes Berg writes: >> +++ b/drivers/net/wireless/purelifi/Makefile >> @@ -0,0 +1,2 @@ >> +# SPDX-License-Identifier: GPL-2.0-only >> +obj-$(CONFIG_WLAN_VENDOR_PURELIFI) := plfxlc/ > > Although this one doesn't do anything, so all you did was save a level > of Kconfig inclusion I guess

[PATCH 0/2] Make alloc_contig_range handle Hugetlb pages

2021-02-17 Thread Oscar Salvador
Hi, this is the new version of [1]. RFC -> v1: - Drop RFC - Addressed feedback from David and Mike - Fence off gigantic pages as there is a cyclic dependency between them and alloc_contig_range - Re-organize the code to make race-window smaller and to put all details in hugetlb code

[PATCH 1/2] mm: Make alloc_contig_range handle free hugetlb pages

2021-02-17 Thread Oscar Salvador
Free hugetlb pages are tricky to handle so as to no userspace application notices disruption, we need to replace the current free hugepage with a new one. In order to do that, a new function called alloc_and_dissolve_huge_page is introduced. This function will first try to get a new fresh hugetlb

[PATCH 2/2] mm: Make alloc_contig_range handle in-use hugetlb pages

2021-02-17 Thread Oscar Salvador
In-use hugetlb pages can be migrated as any other page (LRU and Movable), so let alloc_contig_range handle them. All we need is to succesfully isolate such page. Signed-off-by: Oscar Salvador --- include/linux/hugetlb.h | 5 +++-- mm/compaction.c | 11 ++- mm/hugetlb.c

Re: [PATCH] [v13] wireless: Initial driver submission for pureLiFi STA devices

2021-02-17 Thread Kalle Valo
Srinivasan Raju writes: > This introduces the pureLiFi LiFi driver for LiFi-X, LiFi-XC > and LiFi-XL USB devices. > > This driver implementation has been based on the zd1211rw driver. > > Driver is based on 802.11 softMAC Architecture and uses > native 802.11 for configuration and management. > >

Re: [PATCH v6 2/3] pinctrl: pinmux: Add pinmux-select debugfs file

2021-02-17 Thread Andy Shevchenko
On Wed, Feb 17, 2021 at 12:45 AM Drew Fustini wrote: > > Add "pinmux-select" to debugfs which will activate a function and group: > > echo "" > pinmux-select > > The write operation pinmux_select() handles this by checking that the > names map to valid selectors and then calling ops->set_mux().

Linux 5.4.99

2021-02-17 Thread Greg Kroah-Hartman
I'm announcing the release of the 5.4.99 kernel. All users of the 5.4 kernel series must upgrade. The updated 5.4.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.4.y and can be browsed at the normal kernel.org git web browser:

Linux 5.10.17

2021-02-17 Thread Greg Kroah-Hartman
I'm announcing the release of the 5.10.17 kernel. All users of the 5.10 kernel series must upgrade. The updated 5.10.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.10.y and can be browsed at the normal kernel.org git web browser:

Re: Linux 5.4.99

2021-02-17 Thread Greg Kroah-Hartman
diff --git a/Makefile b/Makefile index 4f6bfcf434e8..a0491ba1d759 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 5 PATCHLEVEL = 4 -SUBLEVEL = 98 +SUBLEVEL = 99 EXTRAVERSION = NAME = Kleptomaniac Octopus diff --git a/arch/arm/boot/dts/lpc32xx

Re: Linux 5.10.17

2021-02-17 Thread Greg Kroah-Hartman
diff --git a/Makefile b/Makefile index 9a1f26680d83..b740f9c933cb 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 5 PATCHLEVEL = 10 -SUBLEVEL = 16 +SUBLEVEL = 17 EXTRAVERSION = NAME = Kleptomaniac Octopus diff --git a/arch/arm/boot/dts/lpc32x

Re: [PATCH] [v13] wireless: Initial driver submission for pureLiFi STA devices

2021-02-17 Thread Kalle Valo
Kalle Valo writes: > Srinivasan Raju writes: > >> This introduces the pureLiFi LiFi driver for LiFi-X, LiFi-XC >> and LiFi-XL USB devices. >> >> This driver implementation has been based on the zd1211rw driver. >> >> Driver is based on 802.11 softMAC Architecture and uses >> native 802.11 for co

Re: linux-next: manual merge of the tip tree with the pm tree

2021-02-17 Thread Andy Shevchenko
On Wed, Feb 17, 2021 at 7:38 AM Stephen Rothwell wrote: > > Hi all, > > Today's linux-next merge of the tip tree got a conflict in: > > arch/x86/platform/intel-mid/device_libs/platform_bt.c > > between commit: > > 4590d98f5a4f ("sfi: Remove framework for deprecated firmware") > > from the pm t

Re: [PATCH] RTIC: selinux: ARM64: Move selinux_state to a separate page

2021-02-17 Thread Marc Zyngier
On 2021-02-17 09:42, Will Deacon wrote: [Please include arm64 and kvm folks for threads involving the stage-2 MMU] On Tue, Feb 16, 2021 at 03:47:52PM +0530, Preeti Nagar wrote: The changes introduce a new security feature, RunTime Integrity Check (RTIC), designed to protect Linux Kernel at run

Re: [PATCH v6 3/3] docs/pinctrl: document debugfs files

2021-02-17 Thread Andy Shevchenko
On Wed, Feb 17, 2021 at 12:45 AM Drew Fustini wrote: > > Document debugfs directories and files created for pinctrl subsystem. Thanks for doing this! I won't bikeshed now because it's about debugfs anyway, so Reviewed-by: Andy Shevchenko > Suggested-by: Andy Shevchenko > Signed-off-by: Drew Fu

Re: [PATCH v2 0/7] Allocate memmap from hotadded memory (per device)

2021-02-17 Thread Oscar Salvador
On Tue, Feb 09, 2021 at 02:38:47PM +0100, Oscar Salvador wrote: > Hi, > > here is v2. > > Changes from v1 -> v2 > - Addressed feedback from David > - Fence off the feature in case struct page size is not >multiple of PMD size or pageblock alignment cannot be guaranted > - Tested on x86_64

Re: [PATCH] [v13] wireless: Initial driver submission for pureLiFi STA devices

2021-02-17 Thread Kalle Valo
Srinivasan Raju writes: > This introduces the pureLiFi LiFi driver for LiFi-X, LiFi-XC > and LiFi-XL USB devices. > > This driver implementation has been based on the zd1211rw driver. > > Driver is based on 802.11 softMAC Architecture and uses > native 802.11 for configuration and management. > >

Re: [PATCH] [v13] wireless: Initial driver submission for pureLiFi STA devices

2021-02-17 Thread Srinivasan Raju
> Ah, kbuild bot had already reported few issues: > https://patchwork.kernel.org/project/linux-wireless/patch/20210212115030.124490-1-srini.r...@purelifi.com/ > Please fix those and I recommend waiting few days in case the bot finds > more issues. After that you can submitt v14 fixing the comme

Re: [PATCH RESEND V12 2/8] fuse: 32-bit user space ioctl compat for fuse device

2021-02-17 Thread Miklos Szeredi
On Mon, Jan 25, 2021 at 4:31 PM Alessio Balsini wrote: > > With a 64-bit kernel build the FUSE device cannot handle ioctl requests > coming from 32-bit user space. > This is due to the ioctl command translation that generates different > command identifiers that thus cannot be used for direct comp

Re: [PATCH 09/10] drm/qxl: map/unmap framebuffers in prepare_fb+cleanup_fb callbacks.

2021-02-17 Thread Thomas Zimmermann
Hi Am 17.02.21 um 11:02 schrieb Gerd Hoffmann: On Tue, Feb 16, 2021 at 02:46:21PM +0100, Thomas Zimmermann wrote: Am 16.02.21 um 14:27 schrieb Thomas Zimmermann: Hi this is a shadow-buffered plane. Did you consider using the new helpers for shadow-buffered planes? They will map the user BO

Re: [PATCH net-next v4 8/8] net: dsa: felix: Add support for MRP

2021-02-17 Thread Vladimir Oltean
On Tue, Feb 16, 2021 at 10:42:05PM +0100, Horatiu Vultur wrote: > @@ -112,6 +113,7 @@ static struct sk_buff *ocelot_rcv(struct sk_buff *skb, > ocelot_xfh_get_qos_class(extraction, &qos_class); > ocelot_xfh_get_tag_type(extraction, &tag_type); > ocelot_xfh_get_vlan_tci(extraction,

[PATCH 3/3] misc: lis3lv02d: Do not log an error when kmalloc fails

2021-02-17 Thread Hans de Goede
Logging an error when kmalloc fails is not necessary (and in general should be avoided) because the malloc failure will already complain loudly itself. Signed-off-by: Hans de Goede --- drivers/misc/lis3lv02d/lis3lv02d.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drive

  1   2   3   4   5   6   7   8   9   10   >