RE: [PATCH 1/2] media: i2c: Add driver for the Analog Devices ADDI9036 ToF front-end

2020-09-18 Thread Togorean, Bogdan
Hi Laurent, > > Hi Bogdan, > > On Thu, Sep 17, 2020 at 07:06:10AM +, Togorean, Bogdan wrote: > > Hi Laurent and Sakari, > > Thank you for your review, > > > Hi Bogdan, > > > > > > On Fri, Sep 11, 2020 at 01:32:39PM +, Togorean, Bogdan wrote: > > > > > On Thu, Sep 10, 2020 at 07:24:06PM +0

Re: [PATCH] dmaengine: sf-pdma: remove unused 'desc'

2020-09-18 Thread Vinod Koul
On 14-09-20, 11:23, Vinod Koul wrote: > 'desc' variable is now defined but not used in sf_pdma_donebh_tasklet(), > causing this warning: > > drivers/dma/sf-pdma/sf-pdma.c: In function 'sf_pdma_donebh_tasklet': > drivers/dma/sf-pdma/sf-pdma.c:287:23: warning: unused variable 'desc' > [-Wunused-var

Re: [patch 09/10] sched/core: Add migrate_disable/enable()

2020-09-18 Thread Thomas Gleixner
On Thu, Sep 17 2020 at 16:24, peterz wrote: > On Thu, Sep 17, 2020 at 11:42:11AM +0200, Thomas Gleixner wrote: > >> +static inline void update_nr_migratory(struct task_struct *p, long delta) >> +{ >> +if (p->nr_cpus_allowed > 1 && p->sched_class->update_migratory) >> +p->sched_class

Re: [PATCH v6 1/4] KEYS: trusted: Add generic trusted keys framework

2020-09-18 Thread Sumit Garg
On Thu, 17 Sep 2020 at 21:55, Jarkko Sakkinen wrote: > > On Thu, Sep 17, 2020 at 07:21:49PM +0300, Jarkko Sakkinen wrote: > > On Thu, Sep 17, 2020 at 07:16:35PM +0530, Sumit Garg wrote: > > > Current trusted keys framework is tightly coupled to use TPM device as > > > an underlying implementation

Re: [PATCH -next] dmaengine: mediatek: simplify the return expression of mtk_uart_apdma_runtime_resume()

2020-09-18 Thread Vinod Koul
On 15-09-20, 11:26, Liu Shixin wrote: > Simplify the return expression. > Applied, thanks -- ~Vinod

Re: [PATCH -next] dmaengine: sf-pdma: Remove set but not used variable "desc"

2020-09-18 Thread Vinod Koul
On 17-09-20, 15:17, Liu Shixin wrote: > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/dma/sf-pdma/sf-pdma.c: In function 'sf_pdma_donebh_tasklet': > drivers/dma/sf-pdma/sf-pdma.c:287:23: warning: unused variable 'desc' > [-Wunused-variable] > > After commit 8f6b6d060602 ("dmaengine:

Re: [PATCH 3/3] crypto: hisilicon/hpre - fix a bug in dh algorithm

2020-09-18 Thread Herbert Xu
On Thu, Sep 10, 2020 at 07:25:22PM +0800, Meng Yu wrote: > > diff --git a/drivers/crypto/hisilicon/hpre/hpre_crypto.c > b/drivers/crypto/hisilicon/hpre/hpre_crypto.c > index 0cbe99a1..2d91593 100644 > --- a/drivers/crypto/hisilicon/hpre/hpre_crypto.c > +++ b/drivers/crypto/hisilicon/hpre/hpre_cryp

Re: [PATCH v2] EDAC/mc_sysfs: Add missing newlines when printing {max,dimm}_location

2020-09-18 Thread Borislav Petkov
On Fri, Sep 18, 2020 at 10:37:28AM +0800, Xiongfeng Wang wrote: > Thansk a lot. I will send another version. Also I will change the > 'snprintf' in 'dimmdev_location_show()' to 'scnprintf' No need to send another one - I have everything locally and just amended it. Thx. -- Regards/Gruss, Bo

[PATCH] scsi: 53c700: Remove set but not used variable

2020-09-18 Thread Zheng Yongjun
Fixes gcc '-Wunused-but-set-variable' warning: drivers/scsi/53c700.c: In function NCR_700_intr: drivers/scsi/53c700.c:1488:27: warning: variable ‘state’ set but not used [-Wunused-but-set-variable] drivers/scsi/53c700.c: In function NCR_700_queuecommand_lck: drivers/scsi/53c700.c:1742:26: warnin

Re: [PATCH 2/2] serial: core: fix console port-lock regression

2020-09-18 Thread Tony Lindgren
* Andy Shevchenko [200916 12:34]: > On Mon, Sep 14, 2020 at 11:09:16AM +0300, Tony Lindgren wrote: > > * Andy Shevchenko [200910 09:27]: > > > +Cc: Tony, let me add Tony to the discussion. > > > > > > On Thu, Sep 10, 2020 at 09:35:27AM +0200, Johan Hovold wrote: > > > > And what about power mana

[PATCH] net: openswitch: reuse the helper variable to improve the code readablity

2020-09-18 Thread Zeng Tao
In the function ovs_ct_limit_exit, there is already a helper vaibale which could be reused to improve the readability, so i fix it in this patch. Signed-off-by: Zeng Tao --- net/openvswitch/conntrack.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/openvswitch/conntr

[PATCH -next] rapidio: Remove set but not used variable 'rc'

2020-09-18 Thread Zheng Yongjun
Fixes gcc '-Wunused-but-set-variable' warning: drivers/rapidio/rio_cm.c: In function rio_txcq_handler: drivers/rapidio/rio_cm.c:673:7: warning: variable ‘rc’ set but not used [-Wunused-but-set-variable] rc is never used, so remove it. Signed-off-by: Zheng Yongjun --- drivers/rapidio/rio_cm.c

[PATCH -next] rapidio: Remove set but not used variable 'rc'

2020-09-18 Thread Zheng Yongjun
Fixes gcc '-Wunused-but-set-variable' warning: drivers/rapidio/rio_cm.c: In function rio_txcq_handler: drivers/rapidio/rio_cm.c:673:7: warning: variable ‘rc’ set but not used [-Wunused-but-set-variable] rc is never used, so remove it. Signed-off-by: Zheng Yongjun --- drivers/rapidio/rio_cm.c

RE: [PATCH AUTOSEL 5.4 265/330] drm/amd/powerplay: try to do a graceful shutdown on SW CTF

2020-09-18 Thread Quan, Evan
[AMD Official Use Only - Internal Distribution Only] Hi @Sasha Levin @Deucher, Alexander, The following changes need to be applied also. Otherwise, you may see unexpected shutdown on stress gpu loading on Vega10. drm/amd/pm: avoid false alarm due to confusing softwareshutdowntemp setting drm/amd

[PATCH -next] rapidio: Remove set but not used variable 'rc'

2020-09-18 Thread Zheng Yongjun
Fixes gcc '-Wunused-but-set-variable' warning: drivers/rapidio/rio_cm.c: In function rio_txcq_handler: drivers/rapidio/rio_cm.c:673:7: warning: variable ‘rc’ set but not used [-Wunused-but-set-variable] rc is never used, so remove it. Signed-off-by: Zheng Yongjun --- drivers/rapidio/rio_cm.c

linux-next: build warning after merge of the v4l-dvb-fixes tree

2020-09-18 Thread Stephen Rothwell
Hi all, After merging the v4l-dvb-fixes tree, today's linux-next build (htmldocs) produced this warning: Documentation/userspace-api/media/v4l/buffer.rst:692: WARNING: The "flat-table" directive is empty; content required. .. flat-table:: :header-rows: 0 :stub-columns: 0 :widths:

Re: [PATCH v4 2/3] Documentation: ABI: testing: mt6360: Add ADC sysfs guideline

2020-09-18 Thread Gene Chen
Jonathan Cameron 於 2020年9月18日 週五 上午1:43寫道: > > On Wed, 16 Sep 2020 01:36:08 +0800 > Gene Chen wrote: > > > From: Gene Chen > > > > Add ABI documentation for mt6360 ADC sysfs interfaces. > > > > Signed-off-by: Gene Chen > Would you consider using the proposed label attribute for channels? > > ht

Re: [PATCH RFC 1/4] mm/page_alloc: convert "report" flag of __free_one_page() to a proper flag

2020-09-18 Thread David Hildenbrand
On 18.09.20 03:53, Wei Yang wrote: > On Wed, Sep 16, 2020 at 08:34:08PM +0200, David Hildenbrand wrote: >> Let's prepare for additional flags and avoid long parameter lists of bools. >> Follow-up patches will also make use of the flags in __free_pages_ok(), >> however, I wasn't able to come up with

[PATCH v7 05/17] crypto: sun8i-ss: Add more comment on some structures

2020-09-18 Thread Corentin Labbe
This patch adds some comment on structures used by sun8i-ss. Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/sun8i-ss/sun8i-ss.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/crypto/allwinner/sun8i-ss/sun8i-ss.h b/drivers/crypto/allwinner/sun8i-ss/sun8i-ss.h index da7

[PATCH v7 00/17] crypto: allwinner: add xRNG and hashes

2020-09-18 Thread Corentin Labbe
Hello The main goal of this serie is to add support for TRNG, PRNG and hashes to the sun8i-ss/sun8i-ce driver. The whole serie is tested with CRYPTO_EXTRA_TESTS enabled and loading tcrypt. The PRNG and TRNG are tested with rngtest. Both LE and BE kernel are tested. This serie was tested on: - sun

[PATCH v7 17/17] crypto: sun8i-ss: fix comparison of integer expressions of different signedness

2020-09-18 Thread Corentin Labbe
This patch fixes the warning: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/sun8i-ss/sun8i-ss-core.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff

[PATCH] block/rnbd: send_msg_close if any error occurs after send_msg_open

2020-09-18 Thread Gioh Kim
From: Gioh Kim After send_msg_open is done, send_msg_close should be done if any error occurs and it is necessary to recover what has been done. Signed-off-by: Gioh Kim --- drivers/block/rnbd/rnbd-clt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/block/rnbd/r

[PATCH v7 16/17] crypto: sun8i-ce: fix comparison of integer expressions of different signedness

2020-09-18 Thread Corentin Labbe
This patch fixes the warning: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/sun8i-ce/sun8i-ce-core.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff

[PATCH v7 14/17] crypto: sun8i-ce: Add support for the PRNG

2020-09-18 Thread Corentin Labbe
This patch had support for the PRNG present in the CE. The output was tested with rngtest without any failure. Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/Kconfig | 8 + drivers/crypto/allwinner/sun8i-ce/Makefile| 1 + .../crypto/allwinner/sun8i-ce/sun8i-ce-co

[PATCH v7 07/17] crypto: sun8i-ce: handle endianness of t_common_ctl

2020-09-18 Thread Corentin Labbe
t_common_ctl is LE32 so we need to convert its value before using it. This value is only used on H6 (ignored on other SoCs) and not handling the endianness cause failure on xRNG/hashes operations on H6 when running BE. Fixes: 06f751b61329 ("crypto: allwinner - Add sun8i-ce Crypto Engine") Signed-o

[PATCH v7 11/17] crypto: sun8i-ce: rename has_t_dlen_in_bytes to cipher_t_dlen_in_bytes

2020-09-18 Thread Corentin Labbe
Hash algorithms will need also a spetial t_dlen handling, but since the meaning will be different, rename the current flag to specify it apply only on ciphers algorithms. Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/sun8i-ce/sun8i-ce-cipher.c | 2 +- drivers/crypto/allwinner/sun8i-

[PATCH v7 02/17] crypto: sun8i-ss: Add support for the PRNG

2020-09-18 Thread Corentin Labbe
This patch had support for the PRNG present in the SS. The output was tested with rngtest without any failure. Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/Kconfig | 8 + drivers/crypto/allwinner/sun8i-ss/Makefile| 1 + .../crypto/allwinner/sun8i-ss/sun8i-ss-co

[PATCH v7 15/17] crypto: sun8i-ce: Add support for the TRNG

2020-09-18 Thread Corentin Labbe
This patch had support for the TRNG present in the CE. Note that according to the algorithm ID, 2 version of the TRNG exists, the first present in H3/H5/R40/A64 and the second present in H6. This patch adds support for both, but only the second is working reliabily according to rngtest. Signed-off

[PATCH v7 06/17] crypto: sun8i-ss: better debug printing

2020-09-18 Thread Corentin Labbe
This patch reworks the way debug info are printed. Instead of printing raw numbers, let's add a bit of context. Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/sun8i-ss/sun8i-ss-core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/crypto/allwinner/s

[PATCH v7 03/17] crypto: sun8i-ss: support hash algorithms

2020-09-18 Thread Corentin Labbe
The SS support multiples hash algorithms, this patch adds support for MD5, SHA1, SHA224 and SHA256. Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/Kconfig | 9 + drivers/crypto/allwinner/sun8i-ss/Makefile| 1 + .../crypto/allwinner/sun8i-ss/sun8i-ss-core.c | 155

[PATCH v7 04/17] crypto: sun8i-ss: fix a trivial typo

2020-09-18 Thread Corentin Labbe
This fixes a trivial typo. Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/sun8i-ss/sun8i-ss.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/allwinner/sun8i-ss/sun8i-ss.h b/drivers/crypto/allwinner/sun8i-ss/sun8i-ss.h index 377ea7acb54d..da71d8059

[PATCH v7 10/17] crypto: sun8i-ce: handle different error registers

2020-09-18 Thread Corentin Labbe
Error registers are different across SoCs. This patch handle those difference. Signed-off-by: Corentin Labbe --- .../crypto/allwinner/sun8i-ce/sun8i-ce-core.c | 62 --- drivers/crypto/allwinner/sun8i-ce/sun8i-ce.h | 8 +++ 2 files changed, 62 insertions(+), 8 deletions(-) diff

[PATCH v7 12/17] crypto: sun8i-ce: support hash algorithms

2020-09-18 Thread Corentin Labbe
The CE support multiples hash algorithms, this patch adds support for MD5, SHA1, SHA224, SHA256, SHA384 and SHA512. Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/Kconfig | 10 + drivers/crypto/allwinner/sun8i-ce/Makefile| 1 + .../crypto/allwinner/sun8i-ce/sun8i-

[PATCH v7 01/17] crypto: sun8i-ss: Add SS_START define

2020-09-18 Thread Corentin Labbe
Instead of using an hardcoded value, let's use a defined value for SS_START. Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/sun8i-ss/sun8i-ss-core.c | 2 +- drivers/crypto/allwinner/sun8i-ss/sun8i-ss.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers

[PATCH v7 13/17] crypto: sun8i-ce: Add stat_bytes debugfs

2020-09-18 Thread Corentin Labbe
This patch adds a new stat_bytes counter in the sun8i-ce debugfs. Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/sun8i-ce/sun8i-ce.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/crypto/allwinner/sun8i-ce/sun8i-ce.h b/drivers/crypto/allwinner/sun8i-ce/sun8i-ce.h inde

[PATCH v7 09/17] crypto: sun8i-ce: split into prepare/run/unprepare

2020-09-18 Thread Corentin Labbe
This patch split the do_one_request into three. Prepare will handle all DMA mapping and initialisation of the task structure. Unprepare will clean all DMA mapping. And the do_one_request will be limited to just executing the task. Signed-off-by: Corentin Labbe --- .../allwinner/sun8i-ce/sun8i-ce

[PATCH v7 08/17] crypto: sun8i-ce: move iv data to request context

2020-09-18 Thread Corentin Labbe
Instead of storing IV data in the channel context, store them in the request context. Storing them in the channel structure was conceptualy wrong since they are per request related. Signed-off-by: Corentin Labbe --- .../allwinner/sun8i-ce/sun8i-ce-cipher.c | 27 +-- drivers/

Re: [PATCH -next] dmaengine: iop-adma: Fix pointer cast warnings

2020-09-18 Thread Vinod Koul
On 18-08-20, 19:51, YueHaibing wrote: > drivers/dma/iop-adma.c: In function ‘iop_adma_alloc_chan_resources’: > drivers/dma/iop-adma.c:447:13: warning: cast to pointer from integer of > different size [-Wint-to-pointer-cast] >hw_desc = (char *) iop_chan->device->dma_desc_pool; > ^

Re: [PATCH v12 3/9] x86: kdump: use macro CRASH_ADDR_LOW_MAX in functions reserve_crashkernel[_low]()

2020-09-18 Thread Baoquan He
Hi, On 09/07/20 at 09:47pm, Chen Zhou wrote: > To make the functions reserve_crashkernel[_low]() as generic, > replace some hard-coded numbers with macro CRASH_ADDR_LOW_MAX. > > Signed-off-by: Chen Zhou > --- > arch/x86/kernel/setup.c | 11 ++- > 1 file changed, 6 insertions(+), 5 delet

RE: [PATCH v10 1/3] dt-bindings: drm/bridge: Document Cadence MHDP8546 bridge bindings

2020-09-18 Thread Swapnil Kashinath Jakhade
Hi Tomi, > -Original Message- > From: Tomi Valkeinen > Sent: Wednesday, September 16, 2020 5:48 PM > To: Swapnil Kashinath Jakhade ; airl...@linux.ie; > dan...@ffwll.ch; laurent.pinch...@ideasonboard.com; robh...@kernel.org; > a.ha...@samsung.com; narmstr...@baylibre.com; jo...@kwiboo.se;

Re: [PATCH RFC 2/4] mm/page_alloc: place pages to tail in __putback_isolated_page()

2020-09-18 Thread David Hildenbrand
On 18.09.20 04:07, Wei Yang wrote: > On Wed, Sep 16, 2020 at 08:34:09PM +0200, David Hildenbrand wrote: >> __putback_isolated_page() already documents that pages will be placed to >> the tail of the freelist - this is, however, not the case for >> "order >= MAX_ORDER - 2" (see buddy_merge_likely())

Re: [PATCH v2 00/10] crypto: hisilicon/zip - misc clean up

2020-09-18 Thread Herbert Xu
On Mon, Sep 07, 2020 at 04:21:52PM +0800, Yang Shen wrote: > This patchset make some clean up: > patch 1:remove useless parameters > patch 4:replace 'sprintf' with 'scnprintf' > patch 7:fix static check warning > and the rest patch fix some coding style > > v2: > - remove the return check of 'scnp

Re: [PATCH RFC 2/4] mm/page_alloc: place pages to tail in __putback_isolated_page()

2020-09-18 Thread David Hildenbrand
On 18.09.20 04:16, Wei Yang wrote: > On Wed, Sep 16, 2020 at 08:34:09PM +0200, David Hildenbrand wrote: >> __putback_isolated_page() already documents that pages will be placed to >> the tail of the freelist - this is, however, not the case for >> "order >= MAX_ORDER - 2" (see buddy_merge_likely())

Re: [PATCH v2 1/4] crypto: caam - Fix kerneldoc

2020-09-18 Thread Herbert Xu
On Thu, Sep 10, 2020 at 09:29:16PM +0200, Krzysztof Kozlowski wrote: > Fix kerneldoc warnings like: > > drivers/crypto/caam/caamalg_qi2.c:73: warning: cannot understand function > prototype: 'struct caam_ctx' > drivers/crypto/caam/caamalg_qi2.c:2962: warning: cannot understand function > pro

Re: [PATCH RFC 3/4] mm/page_alloc: always move pages to the tail of the freelist in unset_migratetype_isolate()

2020-09-18 Thread David Hildenbrand
On 18.09.20 04:29, Wei Yang wrote: > On Wed, Sep 16, 2020 at 08:34:10PM +0200, David Hildenbrand wrote: >> Page isolation doesn't actually touch the pages, it simply isolates >> pageblocks and moves all free pages to the MIGRATE_ISOLATE freelist. >> >> We already place pages to the tail of the free

Re: [PATCH 4/7] crypto: sun4i-ss: handle BigEndian for cipher

2020-09-18 Thread Herbert Xu
On Thu, Sep 17, 2020 at 06:35:55PM +, Corentin Labbe wrote: > Ciphers produce invalid results on BE. > Key and IV need to be written in LE. > Furthermore, the non-optimized function is too complicated to convert, > let's simply fallback on BE for the moment. > > Fixes: 6298e948215f2 ("crypto:

Re: [PATCH RFC 0/4] mm: place pages to the freelist tail when onling and undoing isolation

2020-09-18 Thread David Hildenbrand
On 18.09.20 04:30, Wei Yang wrote: > On Wed, Sep 16, 2020 at 09:31:21PM +0200, David Hildenbrand wrote: >> >> >>> Am 16.09.2020 um 20:50 schrieb osalva...@suse.de: >>> >>> On 2020-09-16 20:34, David Hildenbrand wrote: When adding separate memory blocks via add_memory*() and onlining them

Re: [PATCH 01/13] mm: use add_page_to_lru_list()

2020-09-18 Thread Michal Hocko
On Thu 17-09-20 21:00:39, Yu Zhao wrote: > This patch replaces the only open-coded lru list addition with > add_page_to_lru_list(). > > Before this patch, we have: > update_lru_size() > list_move() > > After this patch, we have: > list_del() > add_page_to_lru_list() >

Re: [PATCH v2] software_node: Add support for fwnode_graph*() family of functions

2020-09-18 Thread Sakari Ailus
On Fri, Sep 18, 2020 at 07:49:31AM +0100, Dan Scally wrote: > Good morning > > On 18/09/2020 07:22, Sakari Ailus wrote: > > Hi Dan, > > > > On Wed, Sep 16, 2020 at 02:22:10PM +0100, Dan Scally wrote: > >> Hi Sakari - thanks for the comments > >> > >> On 16/09/2020 10:17, Sakari Ailus wrote: > >>>

Re: [PATCH 02/13] mm: use page_off_lru()

2020-09-18 Thread Michal Hocko
On Thu 17-09-20 21:00:40, Yu Zhao wrote: > This patch replaces the only open-coded __ClearPageActive() with > page_off_lru(). There is no open-coded __ClearPageUnevictable()s. > > Before this patch, we have: > __ClearPageActive() > add_page_to_lru_list() > > After this patch, we have:

Re: [PATCH v2] dmaengine: ti: k3-udma-glue: fix channel enable functions

2020-09-18 Thread Vinod Koul
On 16-09-20, 15:09, Grygorii Strashko wrote: > Now the K3 UDMA glue layer enable functions perform RMW operation on UDMA > RX/TX RT_CTL registers to set EN bit and enable channel, which is > incorrect, because only EN bit has to be set in those registers to enable > channel (all other bits should b

Re: [PATCH 03/13] mm: move __ClearPageLRU() into page_off_lru()

2020-09-18 Thread Michal Hocko
On Thu 17-09-20 21:00:41, Yu Zhao wrote: > Now we have a total of three places that free lru pages when their > references become zero (after we drop the reference from isolation). > > Before this patch, they all do: > __ClearPageLRU() > page_off_lru() > del_page_from_lru_list()

[PATCH v4] ASoC: tlv320adcx140: Add support for configuring GPIO pin

2020-09-18 Thread Camel Guo
From: Camel Guo Add support to configure the GPIO pin to the specific configuration. The GPIO pin can be configured as GPO, IRQ, SDOUT2, PDMCLK, MICBASE_EN, GPI, MCLK, SDIN, PDMDIN1, PDMDIN2, PDMDIN3 or PDMDIN4 and the output drive can be configured with various configuration. Signed-off-by: Cam

[media] st-hva: potential null pointer dereference in hva_hw_its_irq_thread()

2020-09-18 Thread Evgeny Novikov
If ctx_id >= HVA_MAX_INSTANCES in hva_hw_its_irq_thread(), it dereferences ctx that is initialized to NULL. I can not provide the patch since I do not know the logic of the driver and I have not a capability to test it. Found by Linux Driver Verification project (linuxtesting.org). --  Best rega

Re: [PATCH 2/9] ARM: traps: use get_kernel_nofault instead of set_fs()

2020-09-18 Thread Russell King - ARM Linux admin
On Thu, Sep 17, 2020 at 07:29:37PM +0200, Arnd Bergmann wrote: > On Tue, Sep 8, 2020 at 8:15 AM Christoph Hellwig wrote: > > > > > +static void dump_mem(const char *, const char *, unsigned long, unsigned > > > long, bool kernel_mode); > > > > This adds a pointlessly long line. > > Fixed. > > >

[tip: x86/pasid] drm, iommu: Change type of pasid to u32

2020-09-18 Thread tip-bot2 for Fenghua Yu
The following commit has been merged into the x86/pasid branch of tip: Commit-ID: c7b6bac9c72c5fcbd6e9e12545bd3022c7f21860 Gitweb: https://git.kernel.org/tip/c7b6bac9c72c5fcbd6e9e12545bd3022c7f21860 Author:Fenghua Yu AuthorDate:Tue, 15 Sep 2020 09:30:05 -07:00 Committer:

[tip: x86/pasid] x86/mmu: Allocate/free a PASID

2020-09-18 Thread tip-bot2 for Fenghua Yu
The following commit has been merged into the x86/pasid branch of tip: Commit-ID: 20f0afd1fb3d7d44f4a3db5a4b6e904410862140 Gitweb: https://git.kernel.org/tip/20f0afd1fb3d7d44f4a3db5a4b6e904410862140 Author:Fenghua Yu AuthorDate:Tue, 15 Sep 2020 09:30:13 -07:00 Committer:

[tip: x86/pasid] x86/cpufeatures: Mark ENQCMD as disabled when configured out

2020-09-18 Thread tip-bot2 for Fenghua Yu
The following commit has been merged into the x86/pasid branch of tip: Commit-ID: 1478b99a76534b6c244cfe24fa616280a9441118 Gitweb: https://git.kernel.org/tip/1478b99a76534b6c244cfe24fa616280a9441118 Author:Fenghua Yu AuthorDate:Tue, 15 Sep 2020 09:30:12 -07:00 Committer:

[tip: x86/pasid] Documentation/x86: Add documentation for SVA (Shared Virtual Addressing)

2020-09-18 Thread tip-bot2 for Ashok Raj
The following commit has been merged into the x86/pasid branch of tip: Commit-ID: 4e7b11567d946ebe14a3d10b697b078971a9da89 Gitweb: https://git.kernel.org/tip/4e7b11567d946ebe14a3d10b697b078971a9da89 Author:Ashok Raj AuthorDate:Tue, 15 Sep 2020 09:30:07 -07:00 Committer:

[tip: x86/pasid] mm: Add a pasid member to struct mm_struct

2020-09-18 Thread tip-bot2 for Fenghua Yu
The following commit has been merged into the x86/pasid branch of tip: Commit-ID: 52ad9bc64c74167466e70e0df4b99ee5ccef0078 Gitweb: https://git.kernel.org/tip/52ad9bc64c74167466e70e0df4b99ee5ccef0078 Author:Fenghua Yu AuthorDate:Tue, 15 Sep 2020 09:30:11 -07:00 Committer:

[tip: x86/pasid] x86/fpu/xstate: Add supervisor PASID state for ENQCMD

2020-09-18 Thread tip-bot2 for Yu-cheng Yu
The following commit has been merged into the x86/pasid branch of tip: Commit-ID: b454feb9abc1a9ee876fb84bfea0fc8d726f5bc4 Gitweb: https://git.kernel.org/tip/b454feb9abc1a9ee876fb84bfea0fc8d726f5bc4 Author:Yu-cheng Yu AuthorDate:Tue, 15 Sep 2020 09:30:09 -07:00 Committer:

[tip: x86/pasid] x86/cpufeatures: Enumerate ENQCMD and ENQCMDS instructions

2020-09-18 Thread tip-bot2 for Fenghua Yu
The following commit has been merged into the x86/pasid branch of tip: Commit-ID: ff4f82816dff28ffaaff96d1409bb3811d345514 Gitweb: https://git.kernel.org/tip/ff4f82816dff28ffaaff96d1409bb3811d345514 Author:Fenghua Yu AuthorDate:Tue, 15 Sep 2020 09:30:08 -07:00 Committer:

[tip: x86/pasid] iommu/vt-d: Change flags type to unsigned int in binding mm

2020-09-18 Thread tip-bot2 for Fenghua Yu
The following commit has been merged into the x86/pasid branch of tip: Commit-ID: 2a5054c6e7b16906984ac36a7363ca46b8d99ade Gitweb: https://git.kernel.org/tip/2a5054c6e7b16906984ac36a7363ca46b8d99ade Author:Fenghua Yu AuthorDate:Tue, 15 Sep 2020 09:30:06 -07:00 Committer:

回复:[PATCH] riscv: fix pfn_to_virt err in do_page_fault().

2020-09-18 Thread 刘邵华BTD
Hi Christoph, > On Thu, Sep 17, 2020 at 03:25:49PM +0800, liush wrote: > > The argument to pfn_to_virt() should be pfn not the value of CSR_SATP. > > > > Signed-off-by: liush > > --- > > arch/riscv/mm/fault.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/arch/ri

[tip: x86/pasid] x86/msr-index: Define an IA32_PASID MSR

2020-09-18 Thread tip-bot2 for Fenghua Yu
The following commit has been merged into the x86/pasid branch of tip: Commit-ID: f0f2f9feb4ee6f28729e5388da3c03ce1dac077a Gitweb: https://git.kernel.org/tip/f0f2f9feb4ee6f28729e5388da3c03ce1dac077a Author:Fenghua Yu AuthorDate:Tue, 15 Sep 2020 09:30:10 -07:00 Committer:

Re: [PATCH 00/13] mm: clean up some lru related pieces

2020-09-18 Thread Michal Hocko
On Thu 17-09-20 21:00:38, Yu Zhao wrote: > Hi Andrew, > > I see you have taken this: > mm: use add_page_to_lru_list()/page_lru()/page_off_lru() > Do you mind dropping it? > > Michal asked to do a bit of additional work. So I thought I probably > should create a series to do more cleanups I've b

Re: [PATCH v2] software_node: Add support for fwnode_graph*() family of functions

2020-09-18 Thread Dan Scally
On 18/09/2020 08:34, Sakari Ailus wrote: > On Fri, Sep 18, 2020 at 07:49:31AM +0100, Dan Scally wrote: >> Good morning >> >> On 18/09/2020 07:22, Sakari Ailus wrote: >>> Hi Dan, >>> >>> On Wed, Sep 16, 2020 at 02:22:10PM +0100, Dan Scally wrote: Hi Sakari - thanks for the comments On

Re: [PATCH -next] rapidio: Remove set but not used variable 'rc'

2020-09-18 Thread Greg KH
On Fri, Sep 18, 2020 at 03:18:44PM +0800, Zheng Yongjun wrote: > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/rapidio/rio_cm.c: In function rio_txcq_handler: > drivers/rapidio/rio_cm.c:673:7: warning: variable ‘rc’ set but not used > [-Wunused-but-set-variable] > > rc is never used

Re: [PATCH AUTOSEL 5.4 265/330] drm/amd/powerplay: try to do a graceful shutdown on SW CTF

2020-09-18 Thread Greg KH
On Fri, Sep 18, 2020 at 07:17:10AM +, Quan, Evan wrote: > [AMD Official Use Only - Internal Distribution Only] That didn't work :)

[PATCH] vt: fix some doc warnings in vt.c

2020-09-18 Thread Xiaofei Tan
Fix following warnings caused by mismatch bewteen function parameters and comments. drivers/tty/vt/vt.c:3994: warning: Function parameter or member 'vc' not described in 'con_debug_enter' drivers/tty/vt/vt.c:3994: warning: Excess function parameter 'sw' description in 'con_debug_enter' drivers/tt

Re: linux-next: manual merge of the staging tree with the crypto tree

2020-09-18 Thread Greg KH
On Fri, Sep 18, 2020 at 03:41:34PM +1000, Herbert Xu wrote: > On Fri, Sep 18, 2020 at 03:21:27PM +1000, Stephen Rothwell wrote: > > Hi all, > > > > Today's linux-next merge of the staging tree got a conflict in: > > > > drivers/staging/rtl8192e/Kconfig > > > > between commit: > > > > 054694

Re: linux-next: manual merge of the staging tree with the crypto tree

2020-09-18 Thread Herbert Xu
On Fri, Sep 18, 2020 at 09:49:11AM +0200, Greg KH wrote: > > Ok, I'll go revert these. Thanks! > > As the driver has been converted over to the lib arc4 API, it > > does not need to select CRYPTO at all. > > Is it converted in your tree? If so, have a branch/tag I can pull in to > prevent merge

Re: [PATCH 5/8] x86/mce: Avoid tail copy when machine check terminated a copy from user

2020-09-18 Thread Borislav Petkov
On Thu, Sep 17, 2020 at 02:57:51PM -0700, Luck, Tony wrote: > On Thu, Sep 17, 2020 at 07:04:06PM +0200, Borislav Petkov wrote: > > So actually, I'm thinking: > > > > .LMCE_during_user_access: > > mov $-ENODEV, %eax > > ASM_CLAC > > ret > > > > I have no clue which error code we should

Re: [PATCH] vt: fix some doc warnings in vt.c

2020-09-18 Thread Jiri Slaby
On 18. 09. 20, 9:47, Xiaofei Tan wrote: > Fix following warnings caused by mismatch bewteen function parameters > and comments. > drivers/tty/vt/vt.c:3994: warning: Function parameter or member 'vc' not > described in 'con_debug_enter' > drivers/tty/vt/vt.c:3994: warning: Excess function parameter

Re: [PATCHv3 1/1] ext4: Optimize file overwrites

2020-09-18 Thread Sedat Dilek
On Fri, Sep 18, 2020 at 7:09 AM Ritesh Harjani wrote: > > In case if the file already has underlying blocks/extents allocated > then we don't need to start a journal txn and can directly return > the underlying mapping. Currently ext4_iomap_begin() is used by > both DAX & DIO path. We can check if

Re: [PATCH 1/2] usb: serial: option: Fix the lackage for Quectel EG95 LTE modem support

2020-09-18 Thread Johan Hovold
On Tue, Sep 01, 2020 at 01:00:21PM +0800, William Sung wrote: > * Add reset-resume callback for resetting USB devices after MCU exits > from suspend/sleep mode. Please split this in it's own patch and argue for why it's needed. > * Because Quectel EG95 uses USB interface 4 as a USB network device

Re: [RFC PATCH] Add bridge driver to connect sensors to CIO2 device via software nodes on ACPI platforms

2020-09-18 Thread Sakari Ailus
Hi Andy, On Thu, Sep 17, 2020 at 03:45:14PM +0300, Andy Shevchenko wrote: > On Thu, Sep 17, 2020 at 11:52:28AM +0100, Dan Scally wrote: > > On 17/09/2020 11:33, Sakari Ailus wrote: > > > a module and not enlarge everyone's kernel, and the initialisation would > > > at > > > the same time take pla

Re: linux-next: build warning after merge of the v4l-dvb-fixes tree

2020-09-18 Thread Sergey Senozhatsky
On (20/09/18 17:21), Stephen Rothwell wrote: > Hi all, > > After merging the v4l-dvb-fixes tree, today's linux-next build (htmldocs) > produced this warning: > > Documentation/userspace-api/media/v4l/buffer.rst:692: WARNING: The > "flat-table" directive is empty; content required. > > .. flat-t

[PATCH] nvme: use correct upper limit for tag in nvme_handle_cqe()

2020-09-18 Thread Xianting Tian
We met a crash issue when hot-insert a nvme device, blk_mq_tag_to_rq() returned null(req=null), then crash happened in nvme_end_request(): req = blk_mq_tag_to_rq(); struct nvme_request *rq = nvme_req(req); //rq = req + 1 rq->result = result; <==crash here!!! [ 1124

Re: [PATCH v2 01/13] dt-bindings: gpio: add common schema for GPIO controllers

2020-09-18 Thread Krzysztof Kozlowski
On Thu, 17 Sep 2020 at 22:10, Laurent Pinchart wrote: > > Hi Krzysztof, > > Thank you for the patch. > > On Thu, Sep 17, 2020 at 06:52:49PM +0200, Krzysztof Kozlowski wrote: > > Convert parts of gpio.txt bindings into common dtschema file for GPIO > > controllers. > > How about deleting the part t

Re: [PATCH v2] usb: serial: option: Fix the lackage for Quectel EG95 LTE modem support

2020-09-18 Thread Johan Hovold
On Wed, Sep 02, 2020 at 07:03:01PM +0800, William Sung wrote: > * Add reset-resume callback for resetting USB devices after MCU exits > from suspend/sleep mode. Looks like both your patches try to do this. Again, one logical change per patch, please. > * Add zero packet support > > Fixes: da6902

Re: [PATCH 3/3 v4] KVM: SVM: Don't flush cache if hardware enforces cache coherency across encryption domains

2020-09-18 Thread Borislav Petkov
On Thu, Sep 17, 2020 at 09:20:38PM +, Krish Sadhukhan wrote: > In some hardware implementations, coherency between the encrypted and > unencrypted mappings of the same physical page in a VM is enforced. In such a > system, it is not required for software to flush the VM's page from all CPU > ca

Re: [PATCH v6 08/12] mm,hwpoison: Rework soft offline for in-use pages

2020-09-18 Thread osalvador
On 2020-08-06 20:49, nao.horigu...@gmail.com wrote: From: Oscar Salvador This patch changes the way we set and handle in-use poisoned pages. Until now, poisoned pages were released to the buddy allocator, trusting that the checks that take place prior to hand the page would act as a safe net

Re: [PATCH v2] software_node: Add support for fwnode_graph*() family of functions

2020-09-18 Thread Sakari Ailus
On Fri, Sep 18, 2020 at 08:46:52AM +0100, Dan Scally wrote: > On 18/09/2020 08:34, Sakari Ailus wrote: > > On Fri, Sep 18, 2020 at 07:49:31AM +0100, Dan Scally wrote: > >> Good morning > >> > >> On 18/09/2020 07:22, Sakari Ailus wrote: > >>> Hi Dan, > >>> > >>> On Wed, Sep 16, 2020 at 02:22:10PM +0

[tip: x86/cpu] x86/cpu: Add hardware-enforced cache coherency as a CPUID feature

2020-09-18 Thread tip-bot2 for Krish Sadhukhan
The following commit has been merged into the x86/cpu branch of tip: Commit-ID: f1f325183519ba25370765607e2732d6edf53de1 Gitweb: https://git.kernel.org/tip/f1f325183519ba25370765607e2732d6edf53de1 Author:Krish Sadhukhan AuthorDate:Thu, 17 Sep 2020 21:20:36 Committer:

[tip: x86/cpu] x86/mm/pat: Don't flush cache if hardware enforces cache coherency across encryption domnains

2020-09-18 Thread tip-bot2 for Krish Sadhukhan
The following commit has been merged into the x86/cpu branch of tip: Commit-ID: 789521fca70ec8cb98f7257b880405e46f8a47a1 Gitweb: https://git.kernel.org/tip/789521fca70ec8cb98f7257b880405e46f8a47a1 Author:Krish Sadhukhan AuthorDate:Thu, 17 Sep 2020 21:20:37 Committer:

[PATCH v2 0/2] perf probe: Support debuginfod client

2020-09-18 Thread Masami Hiramatsu
Hi, Here is the 2nd version of a series to enable debuginfod support on perf probe command. This allows users to access debuginfo binary from remote device. In this version I fixed a build error when libdebuginfod is not installed ([2/2]). Since the perf-probe heavily depends on the debuginfo,

[PATCH v2 1/2] perf probe: Fix to adjust symbol address with correct reloc_sym address

2020-09-18 Thread Masami Hiramatsu
Perf probe uses ref_reloc_sym to adjust symbol offset address from debuginfo address or ref_reloc_sym based address, but that is misused the reloc_sym->addr and reloc_sym->unrelocated_addr. If map is not relocated (map->reloc == 0), we can use reloc_sym->addr as unrelocated address instead of reloc

[PATCH v2 2/2] perf probe: Fall back to debuginfod query if debuginfo and source not found

2020-09-18 Thread Masami Hiramatsu
Since the perf-probe heavily depends on the debuginfo, debuginfod gives us many benefits on the perf probe command on remote machine. Especially, this will be helpful for the embedded devices which will not have enough storage, or boot with a cross-build kernel whose source code is in the host mach

Re: [PATCH v2 05/37] kasan: rename KASAN_SHADOW_* to KASAN_GRANULE_*

2020-09-18 Thread Alexander Potapenko
On Tue, Sep 15, 2020 at 11:16 PM Andrey Konovalov wrote: > > This is a preparatory commit for the upcoming addition of a new hardware > tag-based (MTE-based) KASAN mode. > > The new mode won't be using shadow memory, but will still use the concept > of memory granules. KASAN documentation doesn't

Re: [PATCH v4 3/3] iio: adc: mt6360: Add ADC driver for MT6360

2020-09-18 Thread Gene Chen
Jonathan Cameron 於 2020年9月18日 週五 上午1:53寫道: > > On Wed, 16 Sep 2020 01:36:09 +0800 > Gene Chen wrote: > > > From: Gene Chen > > > > Add MT6360 ADC driver include Charger Current, Voltage, and > > Temperature. > > > > Signed-off-by: Gene Chen > Comments inline. > > > --- > > drivers/iio/adc/Kcon

Re: linux-next: build warning after merge of the v4l-dvb-fixes tree

2020-09-18 Thread Stephen Rothwell
Hi Sergey, On Fri, 18 Sep 2020 16:52:30 +0900 Sergey Senozhatsky wrote: > > On (20/09/18 17:21), Stephen Rothwell wrote: > > After merging the v4l-dvb-fixes tree, today's linux-next build (htmldocs) > > produced this warning: > > > > Documentation/userspace-api/media/v4l/buffer.rst:692: WARNING

Re: linux-next: manual merge of the staging tree with the crypto tree

2020-09-18 Thread Greg KH
On Fri, Sep 18, 2020 at 05:50:36PM +1000, Herbert Xu wrote: > On Fri, Sep 18, 2020 at 09:49:11AM +0200, Greg KH wrote: > > > > Ok, I'll go revert these. > > Thanks! > > > > As the driver has been converted over to the lib arc4 API, it > > > does not need to select CRYPTO at all. > > > > Is it co

[PATCH -next] ARM: zx: Use devm_platform_ioremap_resource()

2020-09-18 Thread Wang ShaoBo
Make use of devm_platform_ioremap_resource() provided by driver core platform instead of duplicated analogue. dev_err() is removed because it has been done in devm_ioremap_resource(). Signed-off-by: Wang ShaoBo --- arch/arm/mach-zx/zx296702-pm-domain.c | 13 ++--- 1 file changed, 2 inser

Re: [RFC PATCH] Add bridge driver to connect sensors to CIO2 device via software nodes on ACPI platforms

2020-09-18 Thread Dan Carpenter
I ran Smatch over the code and it spotted an off by one. On Wed, Sep 16, 2020 at 10:36:18PM +0100, Daniel Scally wrote: > +#define MAX_CONNECTED_DEVICES4 > +#define SWNODE_SENSOR_HID0 > +#define SWNODE_SENSOR_PORT 1 > +#define SWNODE_SE

Re: [PATCH 4/7] crypto: sun4i-ss: handle BigEndian for cipher

2020-09-18 Thread LABBE Corentin
On Fri, Sep 18, 2020 at 05:31:28PM +1000, Herbert Xu wrote: > On Thu, Sep 17, 2020 at 06:35:55PM +, Corentin Labbe wrote: > > Ciphers produce invalid results on BE. > > Key and IV need to be written in LE. > > Furthermore, the non-optimized function is too complicated to convert, > > let's simp

[PATCH] docs: admin-guide: update kdump documentation due to change of crash URL

2020-09-18 Thread Lianbo Jiang
Since crash utility has moved to github, the original URL is no longer available. Let's update it accordingly. Suggested-by: Dave Young Signed-off-by: Lianbo Jiang --- Documentation/admin-guide/kdump/kdump.rst | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Documentat

Re: [PATCH] ARM: dts: picoxcell: drop unused reg-io-width from DW APB GPIO controller

2020-09-18 Thread Jamie Iles
On Thu, Sep 17, 2020 at 06:49:09PM +0200, Krzysztof Kozlowski wrote: > The Synopsys DesignWare APB GPIO controller driver does not parse > reg-io-width and dtschema does not allow it so drop it to fix dtschema > warnings like: > > arch/arm/boot/dts/picoxcell-pc7302-pc3x2.dt.yaml: gpio@2: >

Re: [PATCH] drm: fsl-dcu: enable PIXCLK on LS1021A

2020-09-18 Thread Matthias Schiffer
On Fri, 2020-08-21 at 15:41 +0200, Stefan Agner wrote: > Hi Matthias, > > On 2020-08-20 12:58, Matthias Schiffer wrote: > > The PIXCLK needs to be enabled in SCFG before accessing the DCU on LS1021A, > > or the access will hang. > > Hm, this seems a rather ad-hoc access to SCFG from the DCU. We d

Re: [PATCH v4 1/3] iio: core: Add optional symbolic label to a device channel

2020-09-18 Thread Jonathan Cameron
On Wed, 16 Sep 2020 16:21:15 +0300 Cristian Pop wrote: > If a label is defined in the device tree for this channel add that > to the channel specific attributes. This is useful for userspace to > be able to identify an individual channel. > > Signed-off-by: Cristian Pop Hi Cristian. I (and lor

  1   2   3   4   5   6   7   8   9   10   >