Re: [PATCH V6 RESEND] HID: ASUS: Add support for ASUS N-Key keyboard

2020-10-09 Thread Andy Shevchenko
On Fri, Oct 09, 2020 at 11:38:55AM +0200, Jiri Kosina wrote: > On Thu, 24 Sep 2020, Luke D Jones wrote: > > > The ASUS N-Key keyboard uses the productId of 0x1866 and is used in > > almost all modern ASUS gaming laptops with slight changes to the > > firmware. This patch enables: Fn+key hotkeys, k

Re: [PATCH v3 11/18] dmaengine: idxd: ims setup for the vdcm

2020-10-09 Thread Jason Gunthorpe
On Fri, Oct 09, 2020 at 06:02:09AM -0700, Raj, Ashok wrote: > On Fri, Oct 09, 2020 at 09:49:45AM -0300, Jason Gunthorpe wrote: > > On Fri, Oct 09, 2020 at 05:43:07AM -0700, Raj, Ashok wrote: > > > On Fri, Oct 09, 2020 at 08:57:37AM -0300, Jason Gunthorpe wrote: > > > > On Thu, Oct 08, 2020 at 06:22

Re: [PATCH v5 0/4] mmc: sdhci-of-arasan: Enable UHS-1 support for Keem Bay SOC

2020-10-09 Thread Andy Shevchenko
On Fri, Oct 09, 2020 at 02:18:40AM +0800, muhammad.husaini.zulki...@intel.com wrote: > From: Muhammad Husaini Zulkifli > > Hi. > > The first patch is the header file to handle ATF call. > > The second patch is DT binding for arasan controller for uhs support. > > The third patch is to introdu

Re: [PATCH v2 1/2] thermal: power allocator: change the 'k_i' coefficient estimation

2020-10-09 Thread Ionela Voinescu
On Thursday 08 Oct 2020 at 18:04:25 (+0100), Lukasz Luba wrote: > Intelligent Power Allocation (IPA) is built around the PID controller > concept. The initialization code tries to setup the environment based on > the information available in DT or estimate the value based on minimum > power reporte

[PATCH] mm/swapfile.c: remove unnecessary out label in __swap_duplicate()

2020-10-09 Thread Miaohe Lin
When the code went to the out label, it must have p == NULL. So what out label really does is redundant if check and return err. We should Remove this unnecessary out label because it does not handle resource free and so on. Signed-off-by: Miaohe Lin --- mm/swapfile.c | 5 ++--- 1 file changed,

Re: [RFC PATCH v2 0/5] allow overriding default preempt mode from command line

2020-10-09 Thread Michal Hocko
On Fri 09-10-20 14:50:56, Peter Zijlstra wrote: > > Can you please not thread the new series onto the old one? That's some > seriously annoying behaviour that I see more and more... It makes me > loose whole patch-sets. Sure, no problem. This is not really unusual in mm and I personally prefer to

Re: [PATCH v3 11/18] dmaengine: idxd: ims setup for the vdcm

2020-10-09 Thread Raj, Ashok
On Fri, Oct 09, 2020 at 09:49:45AM -0300, Jason Gunthorpe wrote: > On Fri, Oct 09, 2020 at 05:43:07AM -0700, Raj, Ashok wrote: > > On Fri, Oct 09, 2020 at 08:57:37AM -0300, Jason Gunthorpe wrote: > > > On Thu, Oct 08, 2020 at 06:22:31PM -0700, Raj, Ashok wrote: > > > > > > > Not randomly put there

Re: [PATCH 1/3] io_uring: Fix use of XArray in __io_uring_files_cancel

2020-10-09 Thread Pavel Begunkov
On 09/10/2020 15:49, Matthew Wilcox (Oracle) wrote: > We have to drop the lock during each iteration, so there's no advantage > to using the advanced API. Convert this to a standard xa_for_each() loop. LGTM, but would be better to add Reported-by: syzbot+27c12725d8ff0bfe1...@syzkaller.appspotmai

Re: drmfb console switching problems/questions

2020-10-09 Thread Thomas Zimmermann
Hi Am 09.10.20 um 14:16 schrieb stsp: > 09.10.2020 14:59, Thomas Zimmermann пишет: >> Fbdev exposes the video ram (or a shadow buffer of it) to all >> applications. Only one can draw at the same time. It's a limitation of >> the design. To fix this, your application has to stop drawing when you >>

[PATCH v2] kcov, usb, vhost: specify contexts for remote coverage sections

2020-10-09 Thread Andrey Konovalov
Currently there's a KCOV remote coverage collection section in __usb_hcd_giveback_urb(). Initially that section was added based on the assumption that usb_hcd_giveback_urb() can only be called in interrupt context as indicated by a comment before it. This is what happens when syzkaller is fuzzing t

Re: [PATCH V9 1/4] perf/core: Add PERF_SAMPLE_DATA_PAGE_SIZE

2020-10-09 Thread Peter Zijlstra
On Fri, Oct 09, 2020 at 08:29:25AM -0400, Liang, Kan wrote: > > > On 10/9/2020 5:09 AM, Peter Zijlstra wrote: > > (we might not need the #ifdef gunk, but I've not yet dug out my cross > > compilers this morning) > > > > --- > > --- a/kernel/events/core.c > > +++ b/kernel/events/core.c > > @@ -

Re: [PATCH 1/3] venus: vdec: Fix non reliable setting of LAST flag

2020-10-09 Thread Alexandre Courbot
On Tue, Sep 29, 2020 at 1:44 AM Stanimir Varbanov wrote: > > In real use of dynamic-resolution-change it is observed that the > LAST buffer flag (which marks the last decoded buffer with the > resolution before the resolution-change event) is not reliably set. > > Fix this by set the LAST buffer f

[RFC PATCH] scripts: kernel-doc: allow printing the documented symbols

2020-10-09 Thread Mauro Carvalho Chehab
It is useful to know what symbols are documented, as scripts could use this in order to check for documentation issues. This comes almost for free from kernel-doc parsing. So, add support for it. Signed-off-by: Mauro Carvalho Chehab --- While checking what's documented on some media files, I fo

[PATCH] coccinelle: api: kfree_sensitive: print memset position

2020-10-09 Thread Denis Efremov
Print memset() call position in addition to the kfree() position to ease issues identification. Signed-off-by: Denis Efremov --- scripts/coccinelle/api/kfree_sensitive.cocci | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/coccinelle/api/kfree_sensitive.cocc

Re: [PATCH 05/13] m68k: coldfire: use legacy_timer_tick()

2020-10-09 Thread Greg Ungerer
Hi Arnd, On 9/10/20 1:46 am, Arnd Bergmann wrote: Replace the indirect function calls in the timer code with direct calls to the newly added legacy_timer_tick() helper for those that have not yet been converted to generic clockevents. This makes the timer code a little more self-contained. Sig

Re: KASAN: use-after-free Read in __io_uring_files_cancel

2020-10-09 Thread Pavel Begunkov
On 09/10/2020 15:35, Matthew Wilcox wrote: > On Fri, Oct 09, 2020 at 03:28:54PM +0300, Pavel Begunkov wrote: >> On 09/10/2020 15:12, Matthew Wilcox wrote: It seems this fails on "node->shift" in xas_next_entry(), that would mean that the node itself was freed while we're iterating on it.

Re: [PATCH v2] MIPS: replace add_memory_region with memblock

2020-10-09 Thread Thomas Bogendoerfer
On Fri, Oct 09, 2020 at 11:00:36AM +0800, Jiaxun Yang wrote: > > > 在 2020/10/8 23:20, Serge Semin 写道: > > [...] > > > >>- add_memory_region(LOONGSON_HIGHMEM_START, > >>- highmemsize << 20, BOOT_MEM_RAM); > >>- > >>- add_memory_region(LOONGSON_PCI_MEM_END +

Re: [PATCH v2] MIPS: replace add_memory_region with memblock

2020-10-09 Thread Thomas Bogendoerfer
On Thu, Oct 08, 2020 at 06:20:06PM +0300, Serge Semin wrote: > > Signed-off-by: Thomas Bogendoerfer > > --- > > Changes in v2: > > fixed missing memblock include in fw/sni/sniprom.c > > tested on cobalt, IP22, IP28, IP30, IP32, JAZZ, SNI > > ... > > > diff --git a/arch/mips/kernel/prom.c

Re: [RFC PATCH v2 0/5] allow overriding default preempt mode from command line

2020-10-09 Thread Peter Zijlstra
Can you please not thread the new series onto the old one? That's some seriously annoying behaviour that I see more and more... It makes me loose whole patch-sets.

Re: [PATCH 00/12] soc: mediatek: pm-domains: Add new driver for SCPSYS power domains controller

2020-10-09 Thread Matthias Brugger
On 06/10/2020 08:53, Weiyi Lu wrote: On Fri, 2020-09-25 at 16:04 +0200, Matthias Brugger wrote: On 25/09/2020 12:06, Weiyi Lu wrote: On Thu, 2020-09-10 at 19:28 +0200, Enric Balletbo i Serra wrote: Dear all, This is a new driver with the aim to deprecate the mtk-scpsys driver. The problem

[PATCH 2/3] io_uring: Fix XArray usage in io_uring_add_task_file

2020-10-09 Thread Matthew Wilcox (Oracle)
The xas_store() wasn't paired with an xas_nomem() loop, so if it couldn't allocate memory using GFP_NOWAIT, it would leak the reference to the file descriptor. Also the node pointed to by the xas could be freed between the call to xas_load() under the rcu_read_lock() and the acquisition of the xa_

[PATCH 1/3] io_uring: Fix use of XArray in __io_uring_files_cancel

2020-10-09 Thread Matthew Wilcox (Oracle)
We have to drop the lock during each iteration, so there's no advantage to using the advanced API. Convert this to a standard xa_for_each() loop. Signed-off-by: Matthew Wilcox (Oracle) --- fs/io_uring.c | 19 +-- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/fs/

Re: [PATCH v3 11/18] dmaengine: idxd: ims setup for the vdcm

2020-10-09 Thread Jason Gunthorpe
On Fri, Oct 09, 2020 at 05:43:07AM -0700, Raj, Ashok wrote: > On Fri, Oct 09, 2020 at 08:57:37AM -0300, Jason Gunthorpe wrote: > > On Thu, Oct 08, 2020 at 06:22:31PM -0700, Raj, Ashok wrote: > > > > > Not randomly put there Jason :-).. There is a good reason for it. > > > > Sure the PASID value

[PATCH 3/3] io_uring: Convert advanced XArray uses to the normal API

2020-10-09 Thread Matthew Wilcox (Oracle)
There are no bugs here that I've spotted, it's just easier to use the normal API and there are no performance advantages to using the more verbose advanced API. Signed-off-by: Matthew Wilcox (Oracle) --- fs/io_uring.c | 14 ++ 1 file changed, 2 insertions(+), 12 deletions(-) diff --

Re: [PATCH v2 09/17] mm: Add unsafe_follow_pfn

2020-10-09 Thread Jason Gunthorpe
On Fri, Oct 09, 2020 at 02:37:23PM +0200, Mauro Carvalho Chehab wrote: > I'm not a mm/ expert, but, from what I understood from Daniel's patch > description is that this is unsafe *only if* __GFP_MOVABLE is used. No, it is unconditionally unsafe. The CMA movable mappings are specific VMAs that w

[PATCH 5.9 RT] net: openvswitch: Fix using smp_processor_id() in preemptible code

2020-10-09 Thread Juri Lelli
The following BUG has been reported (slightly edited): BUG: using smp_processor_id() in preemptible [] code: handler106/3082 caller is flow_lookup.isra.15+0x2c/0xf0 [openvswitch] CPU: 46 PID: 3082 Comm: handler106 Not tainted ... #1 Hardware name: Dell Inc. PowerEdge R640/06DKY5, BIOS

Re: [PATCH 1/3] venus: vdec: Fix non reliable setting of LAST flag

2020-10-09 Thread Alexandre Courbot
On Tue, Sep 29, 2020 at 1:44 AM Stanimir Varbanov wrote: > > In real use of dynamic-resolution-change it is observed that the > LAST buffer flag (which marks the last decoded buffer with the > resolution before the resolution-change event) is not reliably set. > > Fix this by set the LAST buffer f

Re: [PATCH 4/5] firmware: arm_scmi: smc transport supports multi-message pool

2020-10-09 Thread Etienne Carriere
On Thu, 8 Oct 2020 at 23:11, Sudeep Holla wrote: > > On Thu, Oct 08, 2020 at 04:37:21PM +0200, Etienne Carriere wrote: > > There is no reason for the smc transport to restrict itself to a 1 > > message pool. More can be allocated, messages are copied from/to the > > shared memory only on SMC exit/

Re: [PATCH v3 11/18] dmaengine: idxd: ims setup for the vdcm

2020-10-09 Thread Raj, Ashok
On Fri, Oct 09, 2020 at 08:57:37AM -0300, Jason Gunthorpe wrote: > On Thu, Oct 08, 2020 at 06:22:31PM -0700, Raj, Ashok wrote: > > > Not randomly put there Jason :-).. There is a good reason for it. > > Sure the PASID value being associated with the IRQ make sense, but > combining that register

Re: [RFC PATCH v2] Add functionality to ipu3-cio2 driver allowing software_node connections to sensors on platforms designed for Windows

2020-10-09 Thread Andy Shevchenko
On Thu, Oct 08, 2020 at 10:51:46PM +0100, Dan Scally wrote: > On 01/10/2020 18:37, Andy Shevchenko wrote: > > On Thu, Oct 01, 2020 at 10:33:26AM +0100, Daniel Scally wrote: > > Awesome work! > > My, almost minor, comments below. > Thanks as always for your help - great comments. I'll work through

Re: [PATCH 0/4] Add support for SCMIv3.0 Voltage Domain Protocol and SCMI-Regulator

2020-10-09 Thread Cristian Marussi
On Mon, Oct 05, 2020 at 05:38:52PM -0700, Florian Fainelli wrote: > > > On 10/5/2020 3:26 PM, Cristian Marussi wrote: > >Hi, > > > >this series introduces the support for the new SCMI Voltage Domain Protocol > >defined by the upcoming SCMIv3.0 specification, whose BETA release is > >available at

Re: [PATCH RESEND 1/1] perf build: Allow nested externs to enable BUILD_BUG() usage

2020-10-09 Thread Jiri Olsa
On Fri, Oct 09, 2020 at 02:25:23PM +0200, Vasily Gorbik wrote: > Currently BUILD_BUG() macro is expanded to smth like the following: >do { >extern void __compiletime_assert_0(void) >__attribute__((error("BUILD_BUG failed"))); >if (!(!(1))) >

Re: [PATCH v2 09/17] mm: Add unsafe_follow_pfn

2020-10-09 Thread Mauro Carvalho Chehab
Em Fri, 9 Oct 2020 14:37:23 +0200 Mauro Carvalho Chehab escreveu: > Em Fri, 9 Oct 2020 09:21:11 -0300 > Jason Gunthorpe escreveu: > > > On Fri, Oct 09, 2020 at 12:34:21PM +0200, Mauro Carvalho Chehab wrote: > > > Hi, > > > > > > Em Fri, 9 Oct 2020 09:59:26 +0200 > > > Daniel Vetter escreve

Re: [PATCH v2 07/11] drivers/android/binder: convert stats, transaction_log to counter_atomic32

2020-10-09 Thread Christian Brauner
On Tue, Oct 06, 2020 at 02:44:38PM -0600, Shuah Khan wrote: > counter_atomic* is introduced to be used when a variable is used as > a simple counter and doesn't guard object lifetimes. This clearly > differentiates atomic_t usages that guard object lifetimes. > > counter_atomic* variables will wra

Re: [PATCH 2/5] firmware: arm_scmi: fix transfer missing re-initialization

2020-10-09 Thread Etienne Carriere
On Thu, 8 Oct 2020 at 23:18, Sudeep Holla wrote: > > On Thu, Oct 08, 2020 at 04:37:19PM +0200, Etienne Carriere wrote: > > Implement helper function scmi_do_xfer_again() to process consecutive > > transfers that are initialized only once with scmi_xfer_get_init() > > and hence get the pool complet

Re: [PATCH v2 09/17] mm: Add unsafe_follow_pfn

2020-10-09 Thread Mauro Carvalho Chehab
Em Fri, 9 Oct 2020 09:21:11 -0300 Jason Gunthorpe escreveu: > On Fri, Oct 09, 2020 at 12:34:21PM +0200, Mauro Carvalho Chehab wrote: > > Hi, > > > > Em Fri, 9 Oct 2020 09:59:26 +0200 > > Daniel Vetter escreveu: > > > > > Way back it was a reasonable assumptions that iomem mappings never > >

Re: [PATCH 1/4] firmware: arm_scmi: Add Voltage Domain Support

2020-10-09 Thread Cristian Marussi
On Thu, Oct 08, 2020 at 12:10:25PM +0200, Etienne Carriere wrote: > Hello Christian, > > I faced an issue with this change, see below. > Hi Etienne, thanks for the review. [snip] > > + > > +static int scmi_voltage_descriptors_get(const struct scmi_handle *handle, > > +

Re: KASAN: use-after-free Read in __io_uring_files_cancel

2020-10-09 Thread Matthew Wilcox
On Fri, Oct 09, 2020 at 03:28:54PM +0300, Pavel Begunkov wrote: > On 09/10/2020 15:12, Matthew Wilcox wrote: > >> It seems this fails on "node->shift" in xas_next_entry(), that would > >> mean that the node itself was freed while we're iterating on it. > >> > >> __io_uring_files_cancel() iterates w

[PATCH] ASoC: mchp-spdiftx: remove 'TX' from playback stream name

2020-10-09 Thread Codrin Ciubotariu
Do not include the 'TX' in the stream name since it's obvious for playback. Signed-off-by: Codrin Ciubotariu --- sound/soc/atmel/mchp-spdiftx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/atmel/mchp-spdiftx.c b/sound/soc/atmel/mchp-spdiftx.c index 36c23eb3a5ad..

Re: [PATCH v7 2/2] soc: mediatek: add mt6779 devapc driver

2020-10-09 Thread Matthias Brugger
On 08/10/2020 11:39, Neal Liu wrote: On Thu, 2020-10-08 at 10:45 +0200, Matthias Brugger wrote: On 08/10/2020 04:35, Neal Liu wrote: On Wed, 2020-10-07 at 12:44 +0200, Matthias Brugger wrote: On 27/08/2020 05:06, Neal Liu wrote: [...] +static int mtk_devapc_probe(struct platform_device

Re: [PATCH 3/5] firmware: arm_scmi: add config dependency for smc transport

2020-10-09 Thread Etienne Carriere
On Thu, 8 Oct 2020 at 23:08, Sudeep Holla wrote: > > On Thu, Oct 08, 2020 at 04:37:20PM +0200, Etienne Carriere wrote: > > Fix dependencies for configuration switch ARM_SCMI_PROTOCOL that > > is not exclusively dependent on MAILBOX since the alternate > > smc transport that is depends on HAVE_ARM_

[PATCH 1/7] media: platform: add missing put_device() call in mtk_jpeg_clk_init()

2020-10-09 Thread Yu Kuai
if of_find_device_by_node() succeed, mtk_jpeg_clk_init() doesn't have a corresponding put_device(). Thus add put_device() to fix the exception handling for this function implementation. Fixes: 648372a87cee ("media: platform: Change the call functions of getting/enable/disable the jpeg's clock") S

[PATCH 2/7] media: platform: add missing put_device() call in mtk_jpeg_probe()

2020-10-09 Thread Yu Kuai
if mtk_jpeg_clk_init() succeed, mtk_jpeg_probe() doesn't have a corresponding put_device(). Thus add put_device() in jump target to fix the exception handling for this function implementation. Fixes: b2f0d2724ba4 ("[media] vcodec: mediatek: Add Mediatek JPEG Decoder Driver") Signed-off-by: Yu Kua

[PATCH 7/7] media: mtk-vcodec: add missing put_device() call in mtk_vcodec_release_enc_pm()

2020-10-09 Thread Yu Kuai
mtk_vcodec_release_enc_pm() will be called in two places: a. mtk_vcodec_init_enc_pm() succeed while mtk_vcodec_probe() return error. b. mtk_vcodec_enc_remove(). In both cases put_device() call is needed, since of_find_device_by_node() was called in mtk_vcodec_init_enc_pm() previously. Thus add p

[PATCH 5/7] media: mtk-vcodec: add missing put_device() call in mtk_vcodec_release_dec_pm()

2020-10-09 Thread Yu Kuai
mtk_vcodec_release_dec_pm() will be called in two places: a. mtk_vcodec_init_dec_pm() succeed while mtk_vcodec_probe() return error. b. mtk_vcodec_dec_remove(). In both cases put_device() call is needed, since of_find_device_by_node() was called in mtk_vcodec_init_dec_pm() previously. Thus add p

[PATCH V2 0/7] patches to add missing put_device() call

2020-10-09 Thread Yu Kuai
changes in V2: - add several patches suggested by Hans Yu Kuai (7): media: platform: add missing put_device() call in mtk_jpeg_clk_init() media: platform: add missing put_device() call in mtk_jpeg_probe() media: platform: add missing put_device() call in mtk_jpeg_remove() media: mtk-vcode

[PATCH 4/7] media: mtk-vcodec: add missing put_device() call in mtk_vcodec_init_dec_pm()

2020-10-09 Thread Yu Kuai
if of_find_device_by_node() succeed, mtk_vcodec_init_dec_pm() doesn't have a corresponding put_device(). Thus add jump target to fix the exception handling for this function implementation. Fixes: 590577a4e525 ("[media] vcodec: mediatek: Add Mediatek V4L2 Video Decoder Driver") Signed-off-by: Yu

[PATCH 3/7] media: platform: add missing put_device() call in mtk_jpeg_remove()

2020-10-09 Thread Yu Kuai
of_find_device_by_node() is called in mtk_jpeg_clk_init() from mtk_jpeg_probe(), and mtk_jpeg_remove() doesn't have a corresponding put_device(). Fixes: b2f0d2724ba4 ("[media] vcodec: mediatek: Add Mediatek JPEG Decoder Driver") Signed-off-by: Yu Kuai --- drivers/media/platform/mtk-jpeg/mtk_jpe

[PATCH 6/7] media: mtk-vcodec: add missing put_device() call in mtk_vcodec_init_enc_pm()

2020-10-09 Thread Yu Kuai
if of_find_device_by_node() succeed, mtk_vcodec_init_enc_pm() doesn't have a corresponding put_device(). Thus add jump target to fix the exception handling for this function implementation. Fixes: 4e855a6efa54 ("[media] vcodec: mediatek: Add Mediatek V4L2 Video Encoder Driver") Signed-off-by: Yu

Re: [PATCH] KVM: SVM: Use a separate vmcb for the nested L2 guest

2020-10-09 Thread Cathy Avery
On 10/8/20 6:23 AM, Maxim Levitsky wrote: diff --git a/arch/x86/kvm/svm/nested.c b/arch/x86/kvm/svm/nested.c index 0a06e62010d8c..7293ba23b3cbc 100644 --- a/arch/x86/kvm/svm/nested.c +++ b/arch/x86/kvm/svm/nested.c @@ -436,6 +436,9 @@ int enter_svm_guest_mode(struct vcpu_svm *svm, u64 vmcb_gpa,

Re: [PATCH 1/5] firmware: arm_scmi: always initialize protocols

2020-10-09 Thread Etienne Carriere
On Thu, 8 Oct 2020 at 21:17, Sudeep Holla wrote: > > On Thu, Oct 08, 2020 at 04:37:18PM +0200, Etienne Carriere wrote: > > Remove the IDR replacement that prevent initializing an SCMI protocol > > when it has already been initialized. This is needed when there are > > several SCMI agents that do i

Re: KASAN: use-after-free Read in __io_uring_files_cancel

2020-10-09 Thread Pavel Begunkov
On 09/10/2020 15:12, Matthew Wilcox wrote: > On Fri, Oct 09, 2020 at 02:10:49PM +0300, Pavel Begunkov wrote: >>> kasan_report.cold+0x1f/0x37 mm/kasan/report.c:562 >>> xas_next_entry include/linux/xarray.h:1630 [inline] >>> __io_uring_files_cancel+0x417/0x440 fs/io_uring.c:8681 >>> io_uring_file

Re: [PATCH v2 14/17] resource: Move devmem revoke code to resource framework

2020-10-09 Thread Jason Gunthorpe
On Fri, Oct 09, 2020 at 09:59:31AM +0200, Daniel Vetter wrote: > +struct address_space *iomem_get_mapping(void) > +{ > + return iomem_inode->i_mapping; This should pair an acquire with the release below > + /* > + * Publish /dev/mem initialized. > + * Pairs with smp_load_acquir

Re: [PATCH v10 2/3] arm64: dts: add dts nodes for MT6779

2020-10-09 Thread Matthias Brugger
On 30/07/2020 15:30, Hanks Chen wrote: this adds initial MT6779 dts settings for board support, including cpu, gic, timer, ccf, pinctrl, uart, sysirq...etc. Signed-off-by: Hanks Chen --- arch/arm64/boot/dts/mediatek/Makefile | 1 + arch/arm64/boot/dts/mediatek/mt6779-evb.dts | 31

[RFC PATCH v2 2/5] kernel: allow to configure PREEMPT_NONE, PREEMPT_VOLUNTARY on kernel command line

2020-10-09 Thread Michal Hocko
From: Michal Hocko Many people are still relying on pre built distribution kernels and so distributions have to provide mutliple kernel flavors to offer different preemption models. Most of them are providing PREEMPT_NONE for typical server deployments and PREEMPT_VOLUNTARY for desktop users. Ha

[RFC PATCH v2 3/5] kernel: ARCH_NO_PREEMPT shouldn't exclude PREEMPT_VOLUNTARY

2020-10-09 Thread Michal Hocko
From: Michal Hocko PREEMPT_VOLUNTARY is fully arch agnostic so there shouldn't be any reason to restrict this preemption mode by ARCH_NO_PREEMPT. Signed-off-by: Michal Hocko --- kernel/Kconfig.preempt | 1 - 1 file changed, 1 deletion(-) diff --git a/kernel/Kconfig.preempt b/kernel/Kconfig.pr

[RFC PATCH v2 0/5] allow overriding default preempt mode from command line

2020-10-09 Thread Michal Hocko
Hi, let me repost the pile that has grown from the initial patch based on the review feedback I have collected from Peter. I do realize that he also suggested to go from the other direction and implement this for the full preemption mode first. As I've said I believe this would require to examine a

[RFC PATCH v2 1/5] jump_label: split out declaration parts into its own headers

2020-10-09 Thread Michal Hocko
From: Michal Hocko Follow up patch would like to add a static key into kernel.h and that requires a declaration of the key in the same file. Including jump_label.h into kernel.h is not possible due to headers dependencies. Separate parts needed for declaration into its own header which doesn't d

[RFC PATCH v2 4/5] kernel: introduce CONFIG_PREEMPT_DYNAMIC

2020-10-09 Thread Michal Hocko
From: Michal Hocko Boot time preemption mode selection is currently hardcoded for !CONFIG_PREEMPTION. Peter has suggested to introduce a dedicated option for the functionality because not each archiveture implements implements static branches (jump labels) effectively and therefore an additional

Re: [PATCH V9 1/4] perf/core: Add PERF_SAMPLE_DATA_PAGE_SIZE

2020-10-09 Thread Liang, Kan
On 10/9/2020 5:09 AM, Peter Zijlstra wrote: (we might not need the #ifdef gunk, but I've not yet dug out my cross compilers this morning) --- --- a/kernel/events/core.c +++ b/kernel/events/core.c @@ -7009,6 +7009,7 @@ static u64 perf_virt_to_phys(u64 virt) */ static u64 __perf_get_page

Re: [EXT] Re: [PATCH v6 3/3] net: dsa: ocelot: Add support for QinQ Operation

2020-10-09 Thread Vladimir Oltean
Hi Hongbo, On Thu, Sep 17, 2020 at 02:37:59AM +, Hongbo Wang wrote: > > On Wed, Sep 16, 2020 at 10:28:38AM +, Hongbo Wang wrote: > > > Hi Vladimir, > > > > > > if swp0 connects with customer, and swp1 connects with ISP, According > > > to the VSC99599_1_00_TS.pdf, swp0 and swp1 will have d

[RFC PATCH v2 5/5] kernel: drop PREEMPT_NONE compile time option

2020-10-09 Thread Michal Hocko
From: Michal Hocko Now that preempt_mode command line parameter supports both preempt_none and preempt_voluntary we do not necessarily need a config option for this preemption mode and we can reduce the overall config space a bit. Suggested-by: Peter Zijlstra Signed-off-by: Michal Hocko --- k

[PATCH] MIPS: cpu-probe: remove MIPS_CPU_BP_GHIST option bit

2020-10-09 Thread Thomas Bogendoerfer
MIPS_CPU_BP_GHIST is only set two times and more or less immediately used in cpu-probe.c itself. Remove this option to make room in options word. Signed-off-by: Thomas Bogendoerfer --- arch/mips/include/asm/cpu-features.h | 3 --- arch/mips/include/asm/cpu.h

Re: [PATCH v4 2/3] iommu/tegra-smmu: Rework tegra_smmu_probe_device()

2020-10-09 Thread Thierry Reding
On Thu, Oct 08, 2020 at 02:12:10PM -0700, Nicolin Chen wrote: > On Thu, Oct 08, 2020 at 11:53:43AM +0200, Thierry Reding wrote: > > On Mon, Oct 05, 2020 at 06:05:46PM -0700, Nicolin Chen wrote: > > > On Mon, Oct 05, 2020 at 11:57:54AM +0200, Thierry Reding wrote: > > > > On Fri, Oct 02, 2020 at 11:

[PATCH RESEND 1/1] perf build: Allow nested externs to enable BUILD_BUG() usage

2020-10-09 Thread Vasily Gorbik
Currently BUILD_BUG() macro is expanded to smth like the following: do { extern void __compiletime_assert_0(void) __attribute__((error("BUILD_BUG failed"))); if (!(!(1))) __compiletime_assert_0(); } while (0); If used in a function

Re: [PATCH 1/1] perf build: Allow nested externs to enable BUILD_BUG() usage

2020-10-09 Thread Vasily Gorbik
On Fri, Oct 09, 2020 at 01:23:27PM +0200, Jiri Olsa wrote: > On Fri, Oct 09, 2020 at 08:47:45AM +0200, Vasily Gorbik wrote: > > Currently BUILD_BUG() macro is expanded to smth like the following: ...snip... > > diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config > > index 190be4fa5

Re: [PATCH 4/5] dt-bindings: memory: tegra: Add missing swgroups

2020-10-09 Thread Thierry Reding
On Wed, Oct 07, 2020 at 05:37:45PM -0700, Nicolin Chen wrote: > According to Tegra X1 TRM, there are missing swgroups in the > tegra210_swgroups list. So this patch adds them in bindings. > > Note that the TEGRA_SWGROUP_GPU (in list) should be actually > TEGRA_SWGROUP_GPUB (in TRM), yet TEGRA_SWGR

Re: [PATCH v2 09/17] mm: Add unsafe_follow_pfn

2020-10-09 Thread Jason Gunthorpe
On Fri, Oct 09, 2020 at 12:34:21PM +0200, Mauro Carvalho Chehab wrote: > Hi, > > Em Fri, 9 Oct 2020 09:59:26 +0200 > Daniel Vetter escreveu: > > > Way back it was a reasonable assumptions that iomem mappings never > > change the pfn range they point at. But this has changed: > > > > - gpu driv

Re: [PATCH v3 2/2] power: supply: bq25790: Introduce the BQ25790 charger driver

2020-10-09 Thread Dan Murphy
-m021-20201009 (attached as .config) compiler: gcc-9 (Debian 9.3.0-15) 9.3.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot Reported-by: Dan Carpenter smatch warnings: drivers/power/supply/bq25790_charger.c:170 bq25790_usb_work() warn: ignoring

Re: drmfb console switching problems/questions

2020-10-09 Thread stsp
09.10.2020 14:59, Thomas Zimmermann пишет: Fbdev exposes the video ram (or a shadow buffer of it) to all applications. Only one can draw at the same time. It's a limitation of the design. To fix this, your application has to stop drawing when you switch consoles. OK, thanks for info. Quite a sad

[PATCH 2/2] crypto: sun8x-ce*: update entries to its documentation

2020-10-09 Thread Mauro Carvalho Chehab
The README file was converted to ReST format. Update the references for it accordingly. Signed-off-by: Mauro Carvalho Chehab --- drivers/crypto/allwinner/sun8i-ce/sun8i-ce-hash.c | 2 +- drivers/crypto/allwinner/sun8i-ce/sun8i-ce-prng.c | 2 +- drivers/crypto/allwinner/sun8i-ce/sun8i-ce-trng.c |

[PATCH 1/2] MAINTAINERS: fix broken doc refs due to yaml conversion

2020-10-09 Thread Mauro Carvalho Chehab
Several *.txt files got converted to yaml. Update their references at MAINTAINERS file accordingly. Signed-off-by: Mauro Carvalho Chehab --- Documentation/devicetree/bindings/clock/hi6220-clock.txt | 2 +- MAINTAINERS | 9 - .../devicetree/bin

[PATCH 0/2] Fix new warnings at linux-next

2020-10-09 Thread Mauro Carvalho Chehab
There are some file renames at linux-next that are causing some new documentation warnings. Address them. Mauro Carvalho Chehab (2): MAINTAINERS: fix broken doc refs due to yaml conversion crypto: sun8x-ce*: update entries to its documentation Documentation/devicetree/bindings/clock/hi6220-c

Re: [PATCH 1/4] mm: introduce vma_set_file function v2

2020-10-09 Thread Christian König
Am 09.10.20 um 14:12 schrieb Jason Gunthorpe: On Fri, Oct 09, 2020 at 09:39:00AM +0200, Daniel Vetter wrote: I just noticed this here in the patch because everyone else does not do this. But looking at the mmap_region() code in mmap.c we seem to indeed have this problem for the error path: unma

Re: [PATCH v3 2/2] power: supply: bq25790: Introduce the BQ25790 charger driver

2020-10-09 Thread Dan Carpenter
Hi Dan, url: https://github.com/0day-ci/linux/commits/Dan-Murphy/dt-bindings-power-Add-the-bq25790-dt-bindings/20201008-234450 base: https://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply.git for-next config: i386-randconfig-m021-20201009 (attached as .config) compiler

Re: [PATCH 2/5] memory: tegra: Correct tegra210_mc_clients def values

2020-10-09 Thread Thierry Reding
On Wed, Oct 07, 2020 at 05:37:43PM -0700, Nicolin Chen wrote: > Some def values are mismatched with Tegra X1 TRM, probably because > being copied from tegra124.c file. So this patch fixes them. > > Signed-off-by: Nicolin Chen > --- > drivers/memory/tegra/tegra210.c | 28 ++---

[PATCH v3] MIPS: replace add_memory_region with memblock

2020-10-09 Thread Thomas Bogendoerfer
add_memory_region was the old interface for registering memory and was already changed to used memblock internaly. Replace it by directly calling memblock functions. Signed-off-by: Thomas Bogendoerfer --- Changes in v3: removed early_init_dt_add_memory_arch and early_init_dt_reser

Re: [PATCH 3/5] memory: tegra: Sort tegra210_swgroups by reg address

2020-10-09 Thread Thierry Reding
On Wed, Oct 07, 2020 at 05:37:44PM -0700, Nicolin Chen wrote: > This is a cleanup change to prepare for new swgroups. > > Signed-off-by: Nicolin Chen > --- > drivers/memory/tegra/tegra210.c | 20 ++-- > 1 file changed, 10 insertions(+), 10 deletions(-) Acked-by: Thierry Reding

Re: [PATCH] slub: Actually fix freelist pointer vs redzoning

2020-10-09 Thread Marco Elver
On Fri, 9 Oct 2020 at 01:34, Kees Cook wrote: > It turns out that SLUB redzoning ("slub_debug=Z") checks from > s->object_size rather than from s->inuse (which is normally bumped to > make room for the freelist pointer), so a cache created with an object > size less than 24 would have their freeli

Re: KASAN: use-after-free Read in __io_uring_files_cancel

2020-10-09 Thread Matthew Wilcox
On Fri, Oct 09, 2020 at 02:10:49PM +0300, Pavel Begunkov wrote: > > kasan_report.cold+0x1f/0x37 mm/kasan/report.c:562 > > xas_next_entry include/linux/xarray.h:1630 [inline] > > __io_uring_files_cancel+0x417/0x440 fs/io_uring.c:8681 > > io_uring_files_cancel include/linux/io_uring.h:35 [inline]

[PATCH] power: supply: bq25980: Fix uninitialized wd_reg_val and overrun

2020-10-09 Thread Dan Murphy
Fix the issue when 'i' is equal to array size then array index over runs the array when checking for the watch dog value. This also fixes the uninitialized wd_reg_val if the for..loop was not successful in finding an appropriate match. Fixes: 5069185fc18e ("power: supply: bq25980: Add support for

Re: [PATCH 1/4] mm: introduce vma_set_file function v2

2020-10-09 Thread Jason Gunthorpe
On Fri, Oct 09, 2020 at 09:39:00AM +0200, Daniel Vetter wrote: > I just noticed this here in the patch because everyone else does not do > this. But looking at the mmap_region() code in mmap.c we seem to indeed > have this problem for the error path: > > unmap_and_free_vma: > vma->vm_file =

Re: [PATCH 1/5] memory: tegra: Correct la.reg address of seswr

2020-10-09 Thread Thierry Reding
On Wed, Oct 07, 2020 at 05:37:42PM -0700, Nicolin Chen wrote: > According to Tegra X1 TRM, ALLOWANCE_SESWR is located in field > [23:16] of register at address 0x3e0 with a reset value of 0x80 > at register 0x3e0, while bit-1 of register 0xb98 is for enable > bit of seswr. So this patch fixes it. >

Re: [PATCH v2 10/11] soc: ti: k3-ringacc: Use correct device for allocation in RING mode

2020-10-09 Thread Peter Ujfalusi
On 09/10/2020 14.59, Nishanth Menon wrote: > On 10:43-20201009, Peter Ujfalusi wrote: >> Nishanth, >> >> On 09/10/2020 6.02, Nishanth Menon wrote: >>> On 14:52-20201008, Peter Ujfalusi wrote: >>>> - ring->ring_mem_virt = dma_alloc_coher

Re: [PATCH 00/13] selftests fixes

2020-10-09 Thread Christian Brauner
On Thu, Oct 08, 2020 at 03:26:20PM +0300, Tommi Rantala wrote: > Hi, small fixes to issues I hit with selftests. > > Tommi Rantala (13): > selftests: filter kselftest headers from command in lib.mk > selftests: pidfd: fix compilation errors due to wait.h > selftests: add vmaccess to .gitigno

Re: [PATCH 01/13] selftests: filter kselftest headers from command in lib.mk

2020-10-09 Thread Christian Brauner
On Thu, Oct 08, 2020 at 03:26:21PM +0300, Tommi Rantala wrote: > Commit 1056d3d2c97e ("selftests: enforce local header dependency in > lib.mk") added header dependency to the rule, but as the rule uses $^, > the headers are added to the compiler command line. > > This can cause unexpected precompi

Re: [PATCH 09/13] selftests: android: fix multiple definition of sock_name

2020-10-09 Thread Christian Brauner
On Thu, Oct 08, 2020 at 03:26:29PM +0300, Tommi Rantala wrote: > Fix multiple definition of sock_name compilation error: > > tools/testing/selftests/android/ion/ipcsocket.h:8: multiple definition of > `sock_name' > > Signed-off-by: Tommi Rantala > --- Ion will be removed from the kernel soon

Re: [PATCH 07/13] selftests: pidfd: add CONFIG_CHECKPOINT_RESTORE=y to config

2020-10-09 Thread Christian Brauner
On Thu, Oct 08, 2020 at 03:26:27PM +0300, Tommi Rantala wrote: > kcmp syscall is used in pidfd_getfd_test.c, so add > CONFIG_CHECKPOINT_RESTORE=y to config to ensure kcmp is available. > > Signed-off-by: Tommi Rantala > --- Good catch, thanks! Acked-by: Christian Brauner

Re: [PATCH 08/13] selftests: pidfd: drop needless linux/kcmp.h inclusion in pidfd_setns_test.c

2020-10-09 Thread Christian Brauner
On Thu, Oct 08, 2020 at 03:26:28PM +0300, Tommi Rantala wrote: > kcmp is not used in pidfd_setns_test.c, so do not include > > Signed-off-by: Tommi Rantala > --- Thanks! Acked-by: Christian Brauner

Re: [PATCH 06/13] selftests: pidfd: skip test on kcmp() ENOSYS

2020-10-09 Thread Christian Brauner
On Thu, Oct 08, 2020 at 03:26:26PM +0300, Tommi Rantala wrote: > Skip test if kcmp() is not available, for example if kernel is compiled > without CONFIG_CHECKPOINT_RESTORE=y. > > Signed-off-by: Tommi Rantala > --- Good catch, thanks! Acked-by: Christian Brauner

Re: [PATCH 05/13] selftests: pidfd: use ksft_test_result_skip() when skipping test

2020-10-09 Thread Christian Brauner
On Thu, Oct 08, 2020 at 03:26:25PM +0300, Tommi Rantala wrote: > There's planned tests != run tests in pidfd_test when some test is > skipped: > > $ ./pidfd_test > TAP version 13 > 1..8 > [...] > # pidfd_send_signal signal recycled pid test: Skipping test > # Planned tests != run tests

Re: [PATCH 03/13] selftests: add vmaccess to .gitignore

2020-10-09 Thread Christian Brauner
On Thu, Oct 08, 2020 at 03:26:23PM +0300, Tommi Rantala wrote: > Commit 2de4e82318c7 ("selftests/ptrace: add test cases for dead-locks") > added vmaccess testcase, add the binary to .gitignore > > Fixes: 2de4e82318c7 ("selftests/ptrace: add test cases for dead-locks") > Signed-off-by: Tommi Rantal

Re: [PATCH] dt-bindings: pwm: imx: document i.MX compatibles

2020-10-09 Thread Thierry Reding
On Sat, Sep 26, 2020 at 03:41:57PM +0200, Krzysztof Kozlowski wrote: > On Sat, Sep 26, 2020 at 03:22:17PM +0200, Uwe Kleine-König wrote: > > On Fri, Sep 25, 2020 at 11:26:09PM +0200, Krzysztof Kozlowski wrote: > > > Document all ARMv5, ARMv6 and ARMv7 i.MX compatibles to fix dtbs_check > > > warnin

sound/pci/au88x0/au88x0_core.c:2029 vortex_adb_checkinout() warn: signedness bug returning '(-22)'

2020-10-09 Thread kernel test robot
Hi Luc, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: c85fb28b6f999db9928b841f63f1beeb3074eeca commit: 80591e61a0f7e88deaada69844e4a31280c4a38f kbuild: tell sparse about the $ARCH config: powerpc64-randconfig-m0

Re: [PATCH 04/13] selftests/harness: prettify SKIP message whitespace again

2020-10-09 Thread Christian Brauner
On Thu, Oct 08, 2020 at 03:26:24PM +0300, Tommi Rantala wrote: > Commit 9847d24af95c ("selftests/harness: Refactor XFAIL into SKIP") > replaced XFAIL with SKIP in the output. Add one more space to make the > output aligned and pretty again. > > Fixes: 9847d24af95c ("selftests/harness: Refactor XFA

KMSAN: uninit-value in skb_copy_bits

2020-10-09 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:5edb1df2 kmsan: drop the _nosanitize string functions git tree: https://github.com/google/kmsan.git master console output: https://syzkaller.appspot.com/x/log.txt?x=155a804f90 kernel config: https://syzkaller.appspot.com/x/.co

Re: [PATCH v2 10/11] soc: ti: k3-ringacc: Use correct device for allocation in RING mode

2020-10-09 Thread Nishanth Menon
On 10:43-20201009, Peter Ujfalusi wrote: > Nishanth, > > On 09/10/2020 6.02, Nishanth Menon wrote: > > On 14:52-20201008, Peter Ujfalusi wrote: > >> - ring->ring_mem_virt = dma_alloc_coherent(ringacc->dev, > >> + ring->ring_m

Re: drmfb console switching problems/questions

2020-10-09 Thread Thomas Zimmermann
Hi Am 09.10.20 um 12:50 schrieb stsp: > Hi! > > I am trying to run my sdl1-based app > under linux kms framebuffer (amdgpudrmfb > in my case). > The app itself works perfectly, but > console switching is not. > > If I switch the console while the app > is drawing, then it will corrupt the > VC I

Re: [PATCH v3 11/18] dmaengine: idxd: ims setup for the vdcm

2020-10-09 Thread Jason Gunthorpe
On Thu, Oct 08, 2020 at 06:22:31PM -0700, Raj, Ashok wrote: > Not randomly put there Jason :-).. There is a good reason for it. Sure the PASID value being associated with the IRQ make sense, but combining that register with the interrupt mask is just a compltely random thing to do. If this HW w

Re: [PATCH v2 2/2] thermal: power allocator: change how estimation code is called

2020-10-09 Thread Lukasz Luba
Hi Ionela, On 10/9/20 12:19 PM, Ionela Voinescu wrote: Hi Lukasz, On Thursday 08 Oct 2020 at 18:04:26 (+0100), Lukasz Luba wrote: The sustainable power value might come from the Device Tree or can be estimated in run time. There is no need to estimate every time when the governor is called and

<    3   4   5   6   7   8   9   10   11   >