Re: Bug#986561: linux: Regression in drivers/hid/hid-dr.c causing horizontal D-pad to malfunction on SNES joystick

2021-04-14 Thread Ioan-Adrian Ratiu
Hi, On Wed, 14 Apr 2021, Salvatore Bonaccorso wrote: Hi Ioan-Adrian, On Wed, Apr 07, 2021 at 02:47:24PM +0200, Alessandro Grassi wrote: Source: linux Severity: normal Tags: upstream X-Debbugs-Cc: alessan...@aggro.it Greetings, I am encountering the issue described in this thread[1], usi

Re: [PATCH v4 1/2] arm: lib: xor-neon: remove unnecessary GCC < 4.6 warning

2021-01-20 Thread Adrian Ratiu
On Tue, 19 Jan 2021, Nick Desaulniers wrote: On Tue, Jan 19, 2021 at 5:17 AM Adrian Ratiu wrote: From: Nathan Chancellor Drop warning because kernel now requires GCC >= v4.9 after commit 6ec4476ac825 ("Raise gcc version requirement to 4.9") and clarify that -ftree-vectori

Re: [PATCH v4 1/2] arm: lib: xor-neon: remove unnecessary GCC < 4.6 warning

2021-01-20 Thread Adrian Ratiu
On Tue, 19 Jan 2021, Nathan Chancellor wrote: On Tue, Jan 19, 2021 at 03:17:23PM +0200, Adrian Ratiu wrote: From: Nathan Chancellor Drop warning because kernel now requires GCC >= v4.9 after commit 6ec4476ac825 ("Raise gcc version requirement to 4.9") and clarify that -ftree-

[PATCH v4 1/2] arm: lib: xor-neon: remove unnecessary GCC < 4.6 warning

2021-01-19 Thread Adrian Ratiu
b.com/ClangBuiltLinux/linux/issues/496 Link: https://github.com/ClangBuiltLinux/linux/issues/503 Reported-by: Nick Desaulniers Reviewed-by: Nick Desaulniers Signed-off-by: Nathan Chancellor Signed-off-by: Adrian Ratiu --- arch/arm/lib/xor-neon.c | 18 ++ 1 file changed, 10 inser

[PATCH v4 0/2] xor-neon: Remove GCC warn & pragmas

2021-01-19 Thread Adrian Ratiu
/issues/496 Kind regards, Adrian Adrian Ratiu (1): arm: lib: xor-neon: move pragma options to makefile Nathan Chancellor (1): arm: lib: xor-neon: remove unnecessary GCC < 4.6 warning arch/arm/lib/Makefile | 2 +- arch/arm/lib/xor-neon.c | 18 +- 2 files changed, 6 inserti

[PATCH v4 2/2] arm: lib: xor-neon: move pragma options to makefile

2021-01-19 Thread Adrian Ratiu
for this file, it's better to set them via command line. tree-vectorize is on by default in Clang, but it doesn't hurt to make it explicit. Suggested-by: Arvind Sankar Suggested-by: Ard Biesheuvel Reviewed-by: Nick Desaulniers Reviewed-by: Nathan Chancellor Signed-off-by: Ad

Re: [PATCH v3 RESEND 1/2] arm: lib: xor-neon: remove unnecessary GCC < 4.6 warning

2021-01-18 Thread Adrian Ratiu
On Mon, 18 Jan 2021, Arnd Bergmann wrote: On Mon, Jan 18, 2021 at 11:56 AM Adrian Ratiu wrote: From: Nathan Chancellor Drop warning because kernel now requires GCC >= v4.9 after commit 6ec4476ac825 ("Raise gcc version requirement to 4.9") and clarify that -ftree-vectori

[PATCH v3 RESEND 1/2] arm: lib: xor-neon: remove unnecessary GCC < 4.6 warning

2021-01-18 Thread Adrian Ratiu
k: https://github.com/ClangBuiltLinux/linux/issues/496 Link: https://github.com/ClangBuiltLinux/linux/issues/503 Reported-by: Nick Desaulniers Reviewed-by: Nick Desaulniers Signed-off-by: Nathan Chancellor Signed-off-by: Adrian Ratiu --- arch/arm/lib/xor-neon.c | 9 + 1 file changed, 1 inse

[PATCH v3 RESEND 2/2] arm: lib: xor-neon: move pragma options to makefile

2021-01-18 Thread Adrian Ratiu
for this file, it's better to set them via command line. tree-vectorize is on by default in Clang, but it doesn't hurt to make it explicit. Suggested-by: Arvind Sankar Suggested-by: Ard Biesheuvel Reviewed-by: Nick Desaulniers Reviewed-by: Nathan Chancellor Signed-off-by: Ad

[PATCH v3 RESEND 0/2] xor-neon: Remove GCC warn & pragmas

2021-01-18 Thread Adrian Ratiu
://github.com/ClangBuiltLinux/linux/issues/496 Kind regards, Adrian Adrian Ratiu (1): arm: lib: xor-neon: move pragma options to makefile Nathan Chancellor (1): arm: lib: xor-neon: remove unnecessary GCC < 4.6 warning arch/arm/lib/Makefile | 2 +- arch/arm/lib/xor-neon.c |

Re: [PATCH v6] char: tpm: add i2c driver for cr50

2020-12-14 Thread Adrian Ratiu
On Fri, 11 Dec 2020, Jarkko Sakkinen wrote: On Wed, Dec 09, 2020 at 02:41:45PM +0200, Adrian Ratiu wrote: On Tue, 08 Dec 2020, Jarkko Sakkinen wrote: > On Mon, Dec 07, 2020 at 04:20:16PM +0200, Adrian Ratiu wrote: > > From: "dlau...@chromium.org" Add > > TPM 2.0

Re: [PATCH v6] char: tpm: add i2c driver for cr50

2020-12-09 Thread Adrian Ratiu
On Tue, 08 Dec 2020, Jarkko Sakkinen wrote: On Mon, Dec 07, 2020 at 04:20:16PM +0200, Adrian Ratiu wrote: From: "dlau...@chromium.org" Add TPM 2.0 compatible I2C interface for chips with cr50 firmware. The firmware running on the currently supported H1 MCU requires a special

[PATCH] media: rkvdec: silence ktest bot build warning

2020-12-08 Thread Adrian Ratiu
ockchip,rk3399-vdec" }, 969 { /* sentinel */ } 970 }; 971 MODULE_DEVICE_TABLE(of, of_rkvdec_match); 972 Cc: Boris Brezillon Cc: Ezequiel Garcia Cc: Mauro Carvalho Chehab Reported-by: kernel test robot Signed-off-by: Adrian Ratiu --- drivers/staging/media/rkvdec/rkvdec.c | 2 +-

[PATCH v6] char: tpm: add i2c driver for cr50

2020-12-07 Thread Adrian Ratiu
replace boilier plate with SPDX tag, drop asm/byteorder.h include, simplify return from probe] Signed-off-by: Stephen Boyd Signed-off-by: Fabien Lahoudere Signed-off-by: Adrian Ratiu --- Changes in v6: - Whitespace, code style and kdoc fixes (Jarkko) Changes in v5: - Fix copyringht notice (J

[PATCH v5] char: tpm: add i2c driver for cr50

2020-12-03 Thread Adrian Ratiu
replace boilier plate with SPDX tag, drop asm/byteorder.h include, simplify return from probe] Signed-off-by: Stephen Boyd Signed-off-by: Fabien Lahoudere Signed-off-by: Adrian Ratiu --- Changes in v5: - Fix copyringht notice (Jarkko) - Drop CR50_NO/FORCE defines (Jarkko) - Rename irq han

Re: [PATCH v4] char: tpm: add i2c driver for cr50

2020-12-02 Thread Adrian Ratiu
On Wed, 02 Dec 2020, Jarkko Sakkinen wrote: On Wed, Dec 02, 2020 at 12:58:05PM +0200, Adrian Ratiu wrote: From: "dlau...@chromium.org" Add TPM 2.0 compatible I2C interface for chips with cr50 firmware. The firmware running on the currently supported H1 MCU requires a special

[PATCH v4] char: tpm: add i2c driver for cr50

2020-12-02 Thread Adrian Ratiu
replace boilier plate with SPDX tag, drop asm/byteorder.h include, simplify return from probe] Signed-off-by: Stephen Boyd Signed-off-by: Fabien Lahoudere Signed-off-by: Adrian Ratiu --- Changes in v4: - Replace force_release enum with defines (Jarkko) Changes in v3: - Misc small fixes (

[PATCH v3] char: tpm: add i2c driver for cr50

2020-11-27 Thread Adrian Ratiu
replace boilier plate with SPDX tag, drop asm/byteorder.h include, simplify return from probe] Signed-off-by: Stephen Boyd Signed-off-by: Fabien Lahoudere Signed-off-by: Adrian Ratiu --- Changes in v3: - Misc small fixes (typos/renamings, comments, default values) - Moved i2c_write memcpy

Re: [PATCH v2] char: tpm: add i2c driver for cr50

2020-11-26 Thread Adrian Ratiu
, 2020 at 07:23:45PM +0200, Adrian Ratiu > > wrote: > > > From: "dlau...@chromium.org" Add > > > TPM 2.0 compatible I2C interface for chips with cr50 > > > firmware. The firmware running on the currently > > > supported H1 MCU requires a

Re: [PATCH v2] char: tpm: add i2c driver for cr50

2020-11-24 Thread Adrian Ratiu
On Tue, 24 Nov 2020, Jarkko Sakkinen wrote: On Fri, Nov 20, 2020 at 07:23:45PM +0200, Adrian Ratiu wrote: From: "dlau...@chromium.org" Add TPM 2.0 compatible I2C interface for chips with cr50 firmware. The firmware running on the currently supported H1 MCU requires a special

Re: [PATCH v2] char: tpm: add i2c driver for cr50

2020-11-23 Thread Adrian Ratiu
hance to review. Thank you very much! On 11/20/20 2:23 PM, Adrian Ratiu wrote: From: "dlau...@chromium.org" Add TPM 2.0 compatible I2C interface for chips with cr50 firmware. The firmware running on the currently supported H1 MCU requires a special driver to handle its specifi

[PATCH v2] char: tpm: add i2c driver for cr50

2020-11-20 Thread Adrian Ratiu
asm/byteorder.h include, simplify return from probe] Signed-off-by: Stephen Boyd Signed-off-by: Fabien Lahoudere Signed-off-by: Adrian Ratiu --- Changes in v2: - Various small fixes all over (reorder includes, MAX_BUFSIZE, comments, etc) - Reworked return values of i2c_wait_tpm_ready() to

[PATCH v3 0/2] xor-neon: Remove GCC warn & pragmas

2020-11-13 Thread Adrian Ratiu
) Adrian Ratiu (1): arm: lib: xor-neon: move pragma options to makefile Nathan Chancellor (1): arm: lib: xor-neon: remove unnecessary GCC < 4.6 warning arch/arm/lib/Makefile | 2 +- arch/arm/lib/xor-neon.c | 17 - 2 files changed, 1 insertion(+), 18 deletions(-) -- 2.29.2

[PATCH v3 1/2] arm: lib: xor-neon: remove unnecessary GCC < 4.6 warning

2020-11-13 Thread Adrian Ratiu
k: https://github.com/ClangBuiltLinux/linux/issues/496 Link: https://github.com/ClangBuiltLinux/linux/issues/503 Reported-by: Nick Desaulniers Reviewed-by: Nick Desaulniers Signed-off-by: Nathan Chancellor Signed-off-by: Adrian Ratiu --- arch/arm/lib/xor-neon.c | 9 + 1 file changed, 1 inse

[PATCH v3 2/2] arm: lib: xor-neon: move pragma options to makefile

2020-11-13 Thread Adrian Ratiu
for this file, it's better to set them via command line. tree-vectorize is on by default in Clang, but it doesn't hurt to make it explicit. Suggested-by: Arvind Sankar Suggested-by: Ard Biesheuvel Reviewed-by: Nick Desaulniers Reviewed-by: Nathan Chancellor Signed-off-by: Ad

Re: [PATCH v2 1/2] arm: lib: xor-neon: remove unnecessary GCC < 4.6 warning

2020-11-13 Thread Adrian Ratiu
On Fri, 13 Nov 2020, Ard Biesheuvel wrote: On Fri, 13 Nov 2020 at 12:05, Adrian Ratiu wrote: Hi Ard, On Fri, 13 Nov 2020, Ard Biesheuvel wrote: > On Thu, 12 Nov 2020 at 22:23, Adrian Ratiu > wrote: >> >> From: Nathan Chancellor >> >> Drop warning b

Re: [PATCH v2 2/2] arm: lib: xor-neon: move pragma options to makefile

2020-11-13 Thread Adrian Ratiu
On Fri, 13 Nov 2020, Ard Biesheuvel wrote: On Thu, 12 Nov 2020 at 22:23, Adrian Ratiu wrote: Using a pragma like GCC optimize is a bad idea because it tags all functions with an __attribute__((optimize)) which replaces optimization options rather than appending so could result in

Re: [PATCH v2 1/2] arm: lib: xor-neon: remove unnecessary GCC < 4.6 warning

2020-11-13 Thread Adrian Ratiu
Hi Ard, On Fri, 13 Nov 2020, Ard Biesheuvel wrote: On Thu, 12 Nov 2020 at 22:23, Adrian Ratiu wrote: From: Nathan Chancellor Drop warning because kernel now requires GCC >= v4.9 after commit 6ec4476ac825 ("Raise gcc version requirement to 4.9"). Reported-by: Nick Desauln

[PATCH v2 2/2] arm: lib: xor-neon: move pragma options to makefile

2020-11-12 Thread Adrian Ratiu
for this file, it's better to set them via command line. tree-vectorize is on by default in Clang, but it doesn't hurt to make it explicit. Suggested-by: Arvind Sankar Suggested-by: Ard Biesheuvel Signed-off-by: Adrian Ratiu --- arch/arm/lib/Makefile | 2 +- arch/arm/lib/xor-n

[PATCH v2 1/2] arm: lib: xor-neon: remove unnecessary GCC < 4.6 warning

2020-11-12 Thread Adrian Ratiu
From: Nathan Chancellor Drop warning because kernel now requires GCC >= v4.9 after commit 6ec4476ac825 ("Raise gcc version requirement to 4.9"). Reported-by: Nick Desaulniers Signed-off-by: Nathan Chancellor Signed-off-by: Adrian Ratiu --- arch/arm/lib/xor-neon.c | 9 +---

[PATCH v2 0/2] xor-neon: Remove GCC warn & pragmas

2020-11-12 Thread Adrian Ratiu
to makefile cmdline options (Arvid and Ard) Adrian Ratiu (1): arm: lib: xor-neon: move pragma options to makefile Nathan Chancellor (1): arm: lib: xor-neon: remove unnecessary GCC < 4.6 warning arch/arm/lib/Makefile | 2 +- arch/arm/lib/xor-neon.c | 17 - 2 fi

Re: [PATCH 2/2] arm: lib: xor-neon: disable clang vectorization

2020-11-11 Thread Adrian Ratiu
On Tue, 10 Nov 2020, Nick Desaulniers wrote: On Tue, Nov 10, 2020 at 3:54 PM Adrian Ratiu wrote: On Tue, 10 Nov 2020, Nick Desaulniers wrote: > On Mon, Nov 9, 2020 at 11:51 AM Adrian Ratiu > wrote: >> >> On Fri, 06 Nov 2020, Nick Desaulniers >> wrote:

Re: [PATCH v5 0/3] media: rkvdec: Add a VP9 backend

2020-11-10 Thread Adrian Ratiu
On Tue, 10 Nov 2020, Ezequiel Garcia wrote: On Wed, 2020-11-11 at 00:28 +0200, Adrian Ratiu wrote: Hi Ezequiel, On Tue, 10 Nov 2020, Ezequiel Garcia wrote: > On Mon, 2 Nov 2020 at 16:04, Adrian Ratiu > wrote: > > Dear all, This is v5 of the series adding VP9 profile 0

Re: [PATCH 2/2] arm: lib: xor-neon: disable clang vectorization

2020-11-10 Thread Adrian Ratiu
On Tue, 10 Nov 2020, Nick Desaulniers wrote: On Mon, Nov 9, 2020 at 11:51 AM Adrian Ratiu wrote: On Fri, 06 Nov 2020, Nick Desaulniers wrote: > +#pragma clang loop vectorize(enable) > do { > p1[0] ^= p2[0] ^ p3[0] ^ p4[0] ^ p5[0]; p1[1] >

Re: [PATCH v5 0/3] media: rkvdec: Add a VP9 backend

2020-11-10 Thread Adrian Ratiu
Hi Ezequiel, On Tue, 10 Nov 2020, Ezequiel Garcia wrote: On Mon, 2 Nov 2020 at 16:04, Adrian Ratiu wrote: Dear all, This is v5 of the series adding VP9 profile 0 decoding to rkvdec. All feedback from v4 should be addressed, there's just one thing I did not ad

Re: [PATCH 2/2] arm: lib: xor-neon: disable clang vectorization

2020-11-09 Thread Adrian Ratiu
On Fri, 06 Nov 2020, Nick Desaulniers wrote: On Fri, Nov 6, 2020 at 3:50 AM Adrian Ratiu wrote: Hi Nathan, On Fri, 06 Nov 2020, Nathan Chancellor wrote: > + Ard, who wrote this code. > > On Fri, Nov 06, 2020 at 07:14:36AM +0200, Adrian Ratiu wrote: >> Due to a Cla

Re: [PATCH 2/2] arm: lib: xor-neon: disable clang vectorization

2020-11-07 Thread Adrian Ratiu
On Sat, 07 Nov 2020, Russell King - ARM Linux admin wrote: On Fri, Nov 06, 2020 at 07:14:36AM +0200, Adrian Ratiu wrote: diff --git a/arch/arm/lib/xor-neon.c b/arch/arm/lib/xor-neon.c index e1e76186ec23..84c91c48dfa2 100644 --- a/arch/arm/lib/xor-neon.c +++ b/arch/arm/lib/xor-neon.c @@ -18,6

Re: [PATCH 2/2] arm: lib: xor-neon: disable clang vectorization

2020-11-07 Thread Adrian Ratiu
On Fri, 06 Nov 2020, Nick Desaulniers wrote: On Fri, Nov 6, 2020 at 3:50 AM Adrian Ratiu wrote: Hi Nathan, On Fri, 06 Nov 2020, Nathan Chancellor wrote: > + Ard, who wrote this code. > > On Fri, Nov 06, 2020 at 07:14:36AM +0200, Adrian Ratiu wrote: >> Due to a Cla

Re: [PATCH 2/2] arm: lib: xor-neon: disable clang vectorization

2020-11-06 Thread Adrian Ratiu
Hi Nathan, On Fri, 06 Nov 2020, Nathan Chancellor wrote: + Ard, who wrote this code. On Fri, Nov 06, 2020 at 07:14:36AM +0200, Adrian Ratiu wrote: Due to a Clang bug [1] neon autoloop vectorization does not happen or happens badly with no gains and considering previous GCC experiences

[PATCH 0/2] arm: lib: xor-neon: Remove warn & disble neon vect

2020-11-05 Thread Adrian Ratiu
w_bug.cgi?id=40976 [3] https://bugs.llvm.org/show_bug.cgi?id=40976#c6 Kind regards, Adrian Adrian Ratiu (1): arm: lib: xor-neon: disable clang vectorization Nathan Chancellor (1): arm: lib: xor-neon: remove unnecessary GCC < 4.6 warning arch/arm/include/asm/xor.h | 3 ++- arch/arm/

[PATCH 1/2] arm: lib: xor-neon: remove unnecessary GCC < 4.6 warning

2020-11-05 Thread Adrian Ratiu
From: Nathan Chancellor Drop warning because kernel now requires GCC >= v4.9 after commit 6ec4476ac825 ("Raise gcc version requirement to 4.9"). Reported-by: Nick Desaulniers Signed-off-by: Nathan Chancellor Signed-off-by: Adrian Ratiu --- arch/arm/lib/xor-neon.c | 9 +---

[PATCH 2/2] arm: lib: xor-neon: disable clang vectorization

2020-11-05 Thread Adrian Ratiu
d be added for users to upgrade their compilers like was done for GCC. [1] https://bugs.llvm.org/show_bug.cgi?id=40976 Signed-off-by: Adrian Ratiu --- arch/arm/include/asm/xor.h | 3 ++- arch/arm/lib/Makefile | 3 +++ arch/arm/lib/xor-neon.c| 4 3 files changed, 9 insertions(+),

[PATCH v5 1/3] media: rkvdec: Fix .buf_prepare

2020-11-02 Thread Adrian Ratiu
ned-off-by: Ezequiel Garcia Signed-off-by: Adrian Ratiu --- drivers/staging/media/rkvdec/rkvdec.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/staging/media/rkvdec/rkvdec.c b/drivers/staging/media/rkvdec/rkvdec.c index d25c4a37e2af..0adc3828a4ba 100644 --- a/drive

[PATCH v5 0/3] media: rkvdec: Add a VP9 backend

2020-11-02 Thread Adrian Ratiu
Dear all, This is v5 of the series adding VP9 profile 0 decoding to rkvdec. All feedback from v4 should be addressed, there's just one thing I did not address: ref_frame_sign_biases in the uAPI. The userspace tool I'm using [1] apparently doesn't need it or the default hwreg value for it is capab

[PATCH v5 3/3] media: rkvdec: Add the VP9 backend

2020-11-02 Thread Adrian Ratiu
From: Boris Brezillon The Rockchip VDEC supports VP9 profile 0 up to 4096x2304@30fps. Add a backend for this new format. Signed-off-by: Boris Brezillon Signed-off-by: Ezequiel Garcia Signed-off-by: Adrian Ratiu --- drivers/staging/media/rkvdec/Makefile |2 +- drivers/staging/media

[PATCH v5 2/3] media: uapi: Add VP9 stateless decoder controls

2020-11-02 Thread Adrian Ratiu
From: Boris Brezillon Add the VP9 stateless decoder controls plus the documentation that goes with it. Signed-off-by: Boris Brezillon Signed-off-by: Ezequiel Garcia Signed-off-by: Adrian Ratiu --- .../userspace-api/media/v4l/biblio.rst| 10 + .../media/v4l/ext-ctrls-codec.rst

Re: [PATCH v9 00/11] Genericize DW MIPI DSI bridge and add i.MX 6 driver

2020-10-23 Thread Adrian Ratiu
regress Rockchip with a partial integration, so I'm getting a panel for RK to test to be sure and will re-submit. On 24/08/2020 11:47, Neil Armstrong wrote: Hi, On 15/08/2020 15:05, Ezequiel Garcia wrote: Hi Neil, On Wed, 2020-07-01 at 09:35 +0300, Adrian Ratiu wrote: Hi Neil, On Mo

[PATCH v2] regmap: mmio: add config option to allow relaxed MMIO accesses

2020-10-14 Thread Adrian Ratiu
/ config to preserve existing behaviour. Cc: Mark Brown Signed-off-by: Adrian Ratiu --- Changes in v2: - Moved conditional outside of I/O call path, to be done just once during context initialization (Mark) --- drivers/base/regmap/regmap-mmio.c | 90 --- include

Re: [PATCH 07/18] regmap: mmio: add config option to allow relaxed MMIO accesses

2020-10-14 Thread Adrian Ratiu
On Wed, 14 Oct 2020, Mark Brown wrote: On Wed, Oct 14, 2020 at 02:51:14PM +0300, Adrian Ratiu wrote: On Tue, 13 Oct 2020, Mark Brown wrote: > On Mon, Oct 12, 2020 at 11:59:46PM +0300, Adrian Ratiu wrote: > > - writeb(val, ctx->regs + reg); + if > > (ctx->relaxed_mmio)

Re: [PATCH 07/18] regmap: mmio: add config option to allow relaxed MMIO accesses

2020-10-14 Thread Adrian Ratiu
Hello Mark, On Tue, 13 Oct 2020, Mark Brown wrote: On Mon, Oct 12, 2020 at 11:59:46PM +0300, Adrian Ratiu wrote: - writeb(val, ctx->regs + reg); + if (ctx->relaxed_mmio) + writeb_relaxed(val, ctx->regs + reg); + else + writeb(val, ctx->regs + reg); There is no poin

Re: [PATCH 00/18] Add Hantro regmap and VC8000 h264 decode support

2020-10-12 Thread Adrian Ratiu
Hi Jonas, On Mon, 12 Oct 2020, Jonas Karlman wrote: Hi, On 2020-10-12 22:59, Adrian Ratiu wrote: Dear all, This series introduces a regmap infrastructure for the Hantro driver which is used to compensate for different HW-revision register layouts. To justify it h264 decoding capability

[PATCH 09/18] media: hantro: default regmap to relaxed MMIO

2020-10-12 Thread Adrian Ratiu
This is done to match the pre-regmap membarrier behaviour, ensuring default regmap_write calls in _relaxed() are indeed relaxed while the non-relaxed versions include an explicit mem-barrier call. Signed-off-by: Adrian Ratiu --- drivers/staging/media/hantro/hantro.h| 4 drivers

[PATCH 17/18] media: hantro: add dump registers debug option before decode start

2020-10-12 Thread Adrian Ratiu
It is very useful to know the status of all the decoder configuration registers right before starting a decode operation, so add an option to print them if register debugging is enabled (debug bit 7 is set). Signed-off-by: Adrian Ratiu --- drivers/staging/media/hantro/hantro.h | 1

[PATCH 13/18] media: hantro: add VC8000D postproc support

2020-10-12 Thread Adrian Ratiu
nd support for pipeline mode de-tiling. Signed-off-by: Adrian Ratiu Signed-off-by: Ezequiel Garcia --- .../staging/media/hantro/hantro_postproc.c| 58 --- drivers/staging/media/hantro/hantro_regmap.c | 41 + drivers/staging/media/hantro/hantro_regmap.h | 8 ++

[PATCH 06/18] media: hantro: imx8mq: simplify ctrlblk reset logic

2020-10-12 Thread Adrian Ratiu
roller driver as the reset framework also supports shared reset resources so the runtime PM logic can disable both cores when none of them are in use (this is not done yet because only G1 is supported in the driver so there is no need to account for G2). Signed-off-by: Adrian Ratiu --- drivers/

[PATCH 10/18] media: hantro: convert G1 h264 decoder to regmap fields

2020-10-12 Thread Adrian Ratiu
Populate the regmap field API for G1 h264 decoding and convert the G1 h264 decoder source to use the new API. This is done because we will add support for the newer VC8000D core which will configure the regmap API fields differently to match its own hwreg layout. Signed-off-by: Adrian Ratiu

[PATCH 12/18] media: hantro: add VC8000D h264 decoding

2020-10-12 Thread Adrian Ratiu
VC8000D is a newer core combining both previous G1 and G2 cores into one chip. As a result of this register layouts took a hit but the HW functions mostly the same, so we can use regmap fields to compensate. Signed-off-by: Adrian Ratiu --- .../staging/media/hantro/hantro_g1_h264_dec.c | 29

[PATCH 18/18] media: hantro: document encoder reg fields

2020-10-12 Thread Adrian Ratiu
Even though these fields are currently unused it is still a good idea to have them documented for future encoder implementations. Signed-off-by: Ezequiel Garcia Signed-off-by: Adrian Ratiu --- drivers/staging/media/hantro/hantro_regmap.c | 580 ++- drivers/staging/media/hantro

[PATCH 11/18] media: hantro: convert G1 postproc to regmap

2020-10-12 Thread Adrian Ratiu
, but the fields can be used for other core revisions like VC8000D which will be added shortly. While we're at it also document a few more important PP registers for eg scaling, cropping and rotation. Signed-off-by: Adrian Ratiu --- drivers/staging/media/hantro/hantro.h | 19 - dr

[PATCH 16/18] media: hantro: rename h264_dec as it's not G1 specific anymore

2020-10-12 Thread Adrian Ratiu
after they have been ported to the new regmap API. Signed-off-by: Adrian Ratiu --- drivers/staging/media/hantro/Makefile | 2 +- .../media/hantro/{hantro_g1_h264_dec.c => hantro_h264_dec.c}| 0 2 files changed, 1 insertion(+), 1 deletion(-) rename drivers/staging

[PATCH 15/18] media: hantro: add user-selectable, platform-selectable H264 High10

2020-10-12 Thread Adrian Ratiu
modes, otherwise the driver will use the platform configured default. Currently only 8bit decoding is implemented in the high10 mode. Signed-off-by: Ezequiel Garcia Signed-off-by: Adrian Ratiu --- drivers/staging/media/hantro/hantro.h | 7 + drivers/staging/media/hantro/hantro_drv.c |

[PATCH 07/18] regmap: mmio: add config option to allow relaxed MMIO accesses

2020-10-12 Thread Adrian Ratiu
API / config to preserve their existing behaviour. Signed-off-by: Adrian Ratiu --- drivers/base/regmap/regmap-mmio.c | 34 +++ include/linux/regmap.h| 5 + 2 files changed, 35 insertions(+), 4 deletions(-) diff --git a/drivers/base/regmap/regmap-mmio.c

[PATCH 05/18] media: hantro: prepare clocks before variant inits are run

2020-10-12 Thread Adrian Ratiu
avoid duing a full prepare_enable/ unprepare_disable, so move the clk prepare a bit earlier. Signed-off-by: Adrian Ratiu --- drivers/staging/media/hantro/hantro_drv.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/staging/media/hantro/hantro_drv.c b

[PATCH 08/18] media: hantro: add initial MMIO regmap infrastructure

2020-10-12 Thread Adrian Ratiu
known register layout divergence. Signed-off-by: Adrian Ratiu Signed-off-by: Ezequiel Garcia --- drivers/staging/media/hantro/Makefile| 1 + drivers/staging/media/hantro/hantro.h| 35 +++-- drivers/staging/media/hantro/hantro_drv.c| 15 +- drivers/staging/media/hantro

[PATCH 03/18] media: hantro: make G1_REG_SOFT_RESET Rockchip specific

2020-10-12 Thread Adrian Ratiu
/control logic at the end of the VPU map, so it makes sense to make this register RK-specific. Signed-off-by: Adrian Ratiu --- drivers/staging/media/hantro/hantro_g1_regs.h | 1 - drivers/staging/media/hantro/rk3288_vpu_hw.c | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a

[PATCH 04/18] media: hantro: add reset controller support

2020-10-12 Thread Adrian Ratiu
can't be accessed. If the SoC has no reset controller or there is no "resets" DT property defined, this new code will have no effect. Signed-off-by: Adrian Ratiu Signed-off-by: Ezequiel Garcia --- drivers/staging/media/hantro/hantro.h | 1 + drivers/staging/media/hantro/h

[PATCH 14/18] media: hantro: make PP enablement logic a bit smarter

2020-10-12 Thread Adrian Ratiu
: Adrian Ratiu --- drivers/staging/media/hantro/hantro.h | 10 ++- .../staging/media/hantro/hantro_postproc.c| 29 +++ 2 files changed, 32 insertions(+), 7 deletions(-) diff --git a/drivers/staging/media/hantro/hantro.h b/drivers/staging/media/hantro/hantro.h index

[PATCH 01/18] media: hantro: document all int reg bits up to vc8000

2020-10-12 Thread Adrian Ratiu
used by G1 and G2 have been merged at the same address. Signed-off-by: Adrian Ratiu --- drivers/staging/media/hantro/hantro_g1_regs.h | 39 +-- 1 file changed, 28 insertions(+), 11 deletions(-) diff --git a/drivers/staging/media/hantro/hantro_g1_regs.h b/drivers/staging/media/h

[PATCH 02/18] media: hantro: make consistent use of decimal register notation

2020-10-12 Thread Adrian Ratiu
This header used a combination of direct hex offsets and decimal register notation - via the G1_SWREG() macro - which is annoying when comparing with the ref manuals which always use the equivalent of G1_SWREG(), so convert the entire file to G1_SWREG() notation. Signed-off-by: Adrian Ratiu

[PATCH 00/18] Add Hantro regmap and VC8000 h264 decode support

2020-10-12 Thread Adrian Ratiu
o it is an acceptable trade-off to have a more generic driver. This has been tested on next-20201009 with imx8mq for G1 and an SoC with VC8000 which has not yet been added (hopefuly support lands soon). Kind regards, Adrian Adrian Ratiu (18): media: hantro: document all int reg bits up to vc80

Re: [PATCH] media: v4l2-mem2mem: Fix spurious v4l2_m2m_buf_done

2020-09-28 Thread Adrian Ratiu
Thank you Ezequiel, Tested-by: Adrian Ratiu On Mon, 28 Sep 2020, Ezequiel Garcia wrote: A seemingly bad rebase introduced a spurious v4l2_m2m_buf_done, which releases a buffer twice and therefore triggers a noisy warning on each job: WARNING: CPU: 0 PID: 0 at drivers/media/common/videobuf2

Re: [PATCH v12 07/29] media: v4l2-mem2mem: add v4l2_m2m_suspend, v4l2_m2m_resume

2020-09-25 Thread Adrian Ratiu
Hi, I'm having a problem with this patch which landed in linux-next. On Fri, 14 Aug 2020, Xia Jiang wrote: From: Pi-Hsun Shih Add two functions that can be used to stop new jobs from being queued / continue running queued job. This can be used while a driver using m2m helper is going to su

Re: [PATCH v9 00/11] Genericize DW MIPI DSI bridge and add i.MX 6 driver

2020-07-01 Thread Adrian Ratiu
Hi Heiko, On Wed, 01 Jul 2020, Heiko Stübner wrote: Hi Adrian, Am Dienstag, 9. Juni 2020, 19:49:48 CEST schrieb Adrian Ratiu: [Re-submitting to cc dri-devel, sorry about the noise] Hello all, v9 cleanly applies on top of latest next-20200609 tree. at least it doesn't apply on t

Re: [PATCH v9 00/11] Genericize DW MIPI DSI bridge and add i.MX 6 driver

2020-06-30 Thread Adrian Ratiu
Hi Neil, On Mon, 29 Jun 2020, Neil Armstrong wrote: Hi Adrian, On 09/06/2020 19:49, Adrian Ratiu wrote: [Re-submitting to cc dri-devel, sorry about the noise] Hello all, v9 cleanly applies on top of latest next-20200609 tree. v9 does not depend on other patches as the last binding doc

[PATCH v9 01/11] drm: bridge: dw_mipi_dsi: add initial regmap infrastructure

2020-06-09 Thread Adrian Ratiu
: Adrian Ratiu --- Changes since v8: - Minor typo fix - Added Reviewed-by Enric tag Changes since v7: - Minor checkpatch line fix Changes since v6: - Select REGMAP_MMIO in Kconfig (Enric) - Drop unnecessary stack variable inits (Enric) - Make bridge error ASAP after a bad revision read

[PATCH v9 00/11] Genericize DW MIPI DSI bridge and add i.MX 6 driver

2020-06-09 Thread Adrian Ratiu
let's add them to the TODO doc. :) I intend to tackle those after this series is merged to avoid two complex inter-dependent simultaneous series. As always more testing is welcome especially on Rockchip and STM SoCs. Big thank you to everyone who has contributed to this up to now, Adrian Ad

[PATCH v9 03/11] drm: bridge: dw_mipi_dsi: add dsi v1.01 support

2020-06-09 Thread Adrian Ratiu
symbolized by new registers so adding support for it is just a matter of defining the new layout and adding a couple of dsi version checks. Tested-by: Adrian Pop Tested-by: Arnaud Ferraris Signed-off-by: Adrian Ratiu --- Changes since v7: - Minor commit msg rewording for consistency Changes

[PATCH v9 04/11] drm: bridge: dw_mipi_dsi: remove bind/unbind API

2020-06-09 Thread Adrian Ratiu
doesn't convert it to a proper bridge daisy-chain with simple encoder and bridge .attach call-backs, that refactoring work should be done separately (and the i.MX6 driver can be used as reference). Suggested-by: Laurent Pinchart Signed-off-by: Adrian Ratiu --- New in v9. --- drivers/gp

[PATCH v9 11/11] Documentation: gpu: todo: Add dw-mipi-dsi consolidation plan

2020-06-09 Thread Adrian Ratiu
Cc: Sam Ravnborg Cc: Daniel Vetter Signed-off-by: Adrian Ratiu --- Documentation/gpu/todo.rst | 25 + 1 file changed, 25 insertions(+) diff --git a/Documentation/gpu/todo.rst b/Documentation/gpu/todo.rst index 658b52f7ffc6c..2b142980a4b16 100644 --- a/Documentation/gpu

[PATCH v9 09/11] drm: bridge: dw-mipi-dsi: split low power cfg register into fields

2020-06-09 Thread Adrian Ratiu
ugly defines and making field ranges & values written more explicit. Tested-by: Adrian Pop Tested-by: Arnaud Ferraris Signed-off-by: Adrian Ratiu --- New in v6. --- drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 105 ++ 1 file changed, 33 insertions(+), 72 deletions(-) diff -

[PATCH v9 08/11] drm: stm: dw-mipi-dsi: let the bridge handle the HW version check

2020-06-09 Thread Adrian Ratiu
he version test. Tested on STM32F769 and STM32MP1. Cc: linux-st...@st-md-mailman.stormreply.com Cc: Emil Velikov Reported-by: Adrian Pop Tested-by: Adrian Pop Tested-by: Arnaud Ferraris Signed-off-by: Adrian Ratiu --- New in v6. --- drivers/gpu/drm/stm/dw_mipi_dsi-stm.c | 16 +++- 1

[PATCH v9 07/11] drm: imx: Add i.MX 6 MIPI DSI host platform driver

2020-06-09 Thread Adrian Ratiu
Ying Cc: Fabio Estevam Cc: Enric Balletbo i Serra Reviewed-by: Emil Velikov Tested-by: Adrian Pop Tested-by: Arnaud Ferraris Signed-off-by: Sjoerd Simons Signed-off-by: Martyn Welch Signed-off-by: Adrian Ratiu --- Changes since v8: - Changed Enric's email in the CC tag to his

[PATCH v9 10/11] drm: bridge: dw-mipi-dsi: fix bad register field offsets

2020-06-09 Thread Adrian Ratiu
ed-by: Arnaud Ferraris Signed-off-by: Adrian Ratiu --- New in v6. --- drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 46 +-- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c b/drivers/gpu/drm/bridge/synopsys/dw-mipi-

[PATCH v9 06/11] ARM: dts: imx6qdl: add missing mipi dsi properties

2020-06-09 Thread Adrian Ratiu
Now that we have a proper driver for the imx6 mipi dsi host controller we can fill in the missing properties to get it working. Cc: Laurent Pinchart Cc: Rob Herring Cc: devicet...@vger.kernel.org Signed-off-by: Adrian Ratiu --- New in v8. --- arch/arm/boot/dts/imx6qdl.dtsi | 8 1

[PATCH v9 02/11] drm: bridge: dw_mipi_dsi: abstract register access using reg_fields

2020-06-09 Thread Adrian Ratiu
by: Arnaud Ferraris Signed-off-by: Adrian Ratiu --- Changes since v5: - Fix CONFIG_DEBUG_FS build (Adrian) - Fix DRM_MODE_FLAG_* test negation (Adrian) - Fixed cfg_phy_status range from [0,0] to [0,2] - Replace do {} while(0) with GCC extension ({}) (Andrzej) - Fixed payload no-op wri

[PATCH v9 05/11] dt-bindings: display: add i.MX6 MIPI DSI host controller doc

2020-06-09 Thread Adrian Ratiu
Signed-off-by: Sjoerd Simons Signed-off-by: Martyn Welch Signed-off-by: Adrian Ratiu --- Changes since v8: - Fixed small compatible string typo caught by checkpatch - Added custom select for 'fsl,imx6-mipi-dsi' (Rob) - Replaced additionalProperties -> unevaluatedProperties (Rob)

Re: [PATCH v8 04/10] drm: bridge: dw_mipi_dsi: allow bridge daisy chaining

2020-06-03 Thread Adrian Ratiu
On Wed, 03 Jun 2020, Laurent Pinchart wrote: Hi Adrian, Hi Laurent, Thank you for the patch. On Mon, Apr 27, 2020 at 11:19:46AM +0300, Adrian Ratiu wrote: Up until now the assumption was that the synopsis dsi bridge will directly connect to an encoder provided by the platform driver

Re: [Linux-stm32] [PATCH v8 08/10] drm: stm: dw-mipi-dsi: let the bridge handle the HW version check

2020-06-03 Thread Adrian Ratiu
On Tue, 02 Jun 2020, Emil Velikov wrote: Hi Adrian, Hi Email, On Mon, 1 Jun 2020 at 10:14, Adrian Ratiu wrote: On Fri, 29 May 2020, Philippe CORNU wrote: > Hi Adrian, and thank you very much for the patchset. Thank > you also for having tested it on STM32F769 and ST

Re: [Linux-stm32] [PATCH v8 08/10] drm: stm: dw-mipi-dsi: let the bridge handle the HW version check

2020-06-01 Thread Adrian Ratiu
n over a month since I posted v8 and I was just gearing up to address all feedback, rebase & retest to prepare v9 but I'll wait a little longer, no problem, it's no rush. Have an awesome day, Adrian On 4/27/20 10:19 AM, Adrian Ratiu wrote: The stm mipi-dsi platform dri

Re: [PATCH v7 4/8] drm: imx: Add i.MX 6 MIPI DSI host platform driver

2020-04-28 Thread Adrian Ratiu
Hi Daniel, On Tue, 28 Apr 2020, Daniel Vetter wrote: On Wed, Apr 22, 2020 at 04:07:27AM +0300, Laurent Pinchart wrote: Hi Adrian, On Tue, Apr 21, 2020 at 07:16:06PM +0300, Adrian Ratiu wrote: > This adds support for the Synopsis DesignWare MIPI DSI v1.01 > host controller wh

[PATCH 1/2] brcmfmac: don't WARN when there are no requests

2019-09-25 Thread Adrian Ratiu
When n_reqs == 0 there is nothing to do so it doesn't make sense to search for requests and issue a warning because none is found. Signed-off-by: Martyn Welch Signed-off-by: Adrian Ratiu --- drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c | 4 1 file changed, 4 insertions(+)

[PATCH 2/2] brcmfmac: fix suspend/resume when power is cut off

2019-09-25 Thread Adrian Ratiu
re correct reinitialization in the case when MMC_PM_KEEP_POWER is not supported. Suggested-by: Gustavo Padovan Signed-off-by: Adrian Ratiu --- .../broadcom/brcm80211/brcmfmac/bcmsdh.c | 53 ++- 1 file changed, 39 insertions(+), 14 deletions(-) diff --git a/drivers/net/wireles

[PATCH] selftests/bpf: Add arm target register definitions

2019-03-04 Thread Adrian Ratiu
print. The only missing pieces are these helper macros which otherwise have to be redefined by each eBPF arm program. [1] https://github.com/iovisor/gobpf/tree/master/elf Signed-off-by: Adrian Ratiu --- tools/testing/selftests/bpf/bpf_helpers.h | 18 ++ 1 file changed, 18 insertion

Re: [RFC][PATCH] Revert "ARM: dts: bcm2837: Fix polarity of wifi reset GPIOs"

2019-01-28 Thread Ioan-Adrian Ratiu
Hi Stefan and thank you for looking into this, On Sun, 27 Jan 2019, Stefan Wahren wrote: Hi Ioan-Adrian, Ioan-Adrian Ratiu hat am 27. Januar 2019 um 21:28 geschrieben: This reverts commit bea8a160c621d19f7f78b13e14e03f4b8e44cd4b. Contrary to what the commit message says, on my rpi 3 b

Re: [RFC][PATCH] Revert "ARM: dts: bcm2837: Fix polarity of wifi reset GPIOs"

2019-01-27 Thread Ioan-Adrian Ratiu
Link to the full 4.19.18 config I'm using: https://drive.google.com/open?id=1ZI3MeGB2fkYMsEjzGQYXUk2wqr0h9h7R On Sun, 27 Jan 2019, Ioan-Adrian Ratiu wrote: This reverts commit bea8a160c621d19f7f78b13e14e03f4b8e44cd4b. Contrary to what the commit message says, on my rpi 3 b v1.2 changin

[RFC][PATCH] Revert "ARM: dts: bcm2837: Fix polarity of wifi reset GPIOs"

2019-01-27 Thread Ioan-Adrian Ratiu
, abort command and terminate frame The only solution I currently have is to revert and everything works as expected and as before changing the polarity. Link: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=911443 Signed-off-by: Ioan-Adrian Ratiu --- arch/arm/boot/dts/bcm2837-rpi-3-b-plus.dts

[PATCH] usb: dwc2: detect power supplies to reduce spam

2018-03-03 Thread Ioan-Adrian Ratiu
ed-off-by: Ioan-Adrian Ratiu --- drivers/usb/dwc2/core.h | 5 +++-- drivers/usb/dwc2/platform.c | 46 +++-- 2 files changed, 35 insertions(+), 16 deletions(-) diff --git a/drivers/usb/dwc2/core.h b/drivers/usb/dwc2/core.h index cd77af3b1565..c50b9fc4a1

[PATCH v3 1/2] ALSA: usb-audio: Fix irq/process data synchronization

2017-01-04 Thread Ioan-Adrian Ratiu
583bb ("Revert "ALSA: usb-audio: Fix race at stopping the stream"") Signed-off-by: Ioan-Adrian Ratiu --- sound/usb/endpoint.c | 17 +++-- sound/usb/endpoint.h | 2 +- sound/usb/pcm.c | 10 +- 3 files changed, 13 insertions(+), 16 deletions(-) diff

[PATCH v3 2/2] ALSA: usb-audio: test EP_FLAG_RUNNING at urb completion

2017-01-04 Thread Ioan-Adrian Ratiu
Testing EP_FLAG_RUNNING in snd_complete_urb() before running the completion logic allows us to save a few cpu cycles by returning early, skipping the pending urb in case the stream was stopped; the stop logic handles the urb and sets the completion callbacks to NULL. Signed-off-by: Ioan-Adrian

[PATCH v3 0/2] ALSA: Fix usb-audio races

2017-01-04 Thread Ioan-Adrian Ratiu
Changes since v2: * Fixed snd_usb_*lock_shutdown imbalance caused by an early return in snd_usb_pcm_prepare() Ioan-Adrian Ratiu (2): ALSA: usb-audio: Fix irq/process data synchronization ALSA: usb-audio: test EP_FLAG_RUNNING at urb completion sound/usb/endpoint.c | 20

  1   2   >