Re: [PATCH] firmware_loader: change enum fw_opt to u32

2020-05-23 Thread Greg Kroah-Hartman
On Fri, May 22, 2020 at 11:00:25PM +, Luis Chamberlain wrote: > On Fri, May 22, 2020 at 03:49:05PM -0700, Scott Branden wrote: > > Hi Luis, > > > > On 2020-05-22 3:45 p.m., Luis Chamberlain wrote: > > > On Fri, May 22, 2020 at 02:46:58PM -0700, Scott Branden wrote: > > > > /** > > > > - *

Re: [PATCH v2] firewire: Remove function callback casts

2020-05-23 Thread Greg KH
On Fri, May 22, 2020 at 07:43:08PM +0200, Oscar Carter wrote: > Hi, > > On Wed, May 20, 2020 at 03:16:24PM +0900, Takashi Sakamoto wrote: > > Hi, > > > > I'm an author of ALSA firewire stack and thanks for the patch. I agree with > > your intention to remove the cast of function callback toward

Re: [PATCH] MAINTAINERS: Update my maintainer entries to reorder email addresses

2020-05-23 Thread Joe Perches
On Sat, 2020-05-23 at 07:57 +0200, Mauro Carvalho Chehab wrote: > Hi Shuah, > > Em Fri, 22 May 2020 20:19:28 -0600 > Shuah Khan escreveu: > > > get_maintainer.pl picks only the first email address found in the file. > > Reorder my email addresses so it finds my linuxfoundation.org email. > >

Re: [PATCH v2] firewire: Remove function callback casts

2020-05-23 Thread greg
On Fri, May 22, 2020 at 07:43:08PM +0200, Oscar Carter wrote: > Hi, > > On Wed, May 20, 2020 at 03:16:24PM +0900, Takashi Sakamoto wrote: > > Hi, > > > > I'm an author of ALSA firewire stack and thanks for the patch. I agree with > > your intention to remove the cast of function callback toward

[PATCH] [v2] extcon: arizona: Fix runtime PM imbalance on error

2020-05-23 Thread Dinghao Liu
When arizona_request_irq() returns an error code, a pairing runtime PM usage counter decrement is needed to keep the counter balanced. For error paths after this function, things are the same. Also, remove calls to pm_runtime_disable() when pm_runtime_enable() has not been executed.

Re: linux-next: build failure after merge of the tip tree

2020-05-23 Thread Borislav Petkov
On Fri, May 22, 2020 at 05:12:23PM -0700, Paul E. McKenney wrote: > Marco, Thomas, is there any better setup I can provide Stephen? Or > is the next-20200519 -rcu tree the best we have right now? I've queued the fixes yesterday into tip:locking/kcsan and tglx said something about you having to

Re: [PATCH] firmware_loader: change enum fw_opt to u32

2020-05-23 Thread Luis Chamberlain
On Sat, May 23, 2020 at 08:05:48AM +0200, Greg Kroah-Hartman wrote: > On Fri, May 22, 2020 at 11:00:25PM +, Luis Chamberlain wrote: > > On Fri, May 22, 2020 at 03:49:05PM -0700, Scott Branden wrote: > > > Hi Luis, > > > > > > On 2020-05-22 3:45 p.m., Luis Chamberlain wrote: > > > > On Fri,

Re: [PATCH] drm/vblank: Fix -Wformat compile warnings on some arches

2020-05-23 Thread Sam Ravnborg
Hi Lyude. > > > *dev, unsigned int pipe, > > > > > > DRM_DEBUG_VBL("updating vblank count on crtc %u:" > > > " current=%llu, diff=%u, hw=%u hw_last=%u\n", > > > - pipe, atomic64_read(>count), diff, > > > + pipe, (unsigned long

Re: [PATCH 21/24] KVM: x86: always update CR3 in VMCB

2020-05-23 Thread Paolo Bonzini
On 23/05/20 00:47, Sean Christopherson wrote: > On Wed, May 20, 2020 at 10:14:47PM +0200, Paolo Bonzini wrote: >> This patch should probably be split too, so that the Fixes tags are >> separate for Intel and AMD. > > That would be nice. Will do. Anyway this series will be quite different in v2,

RE: [Intel-wired-lan] [PATCH] Fix typo in the comment

2020-05-23 Thread Kirsher, Jeffrey T
> -Original Message- > From: Intel-wired-lan On Behalf Of Hari > Sent: Friday, May 22, 2020 03:30 > To: da...@davemloft.net; k...@kernel.org > Cc: net...@vger.kernel.org; intel-wired-...@lists.osuosl.org; linux- > ker...@vger.kernel.org; Hari > Subject: [Intel-wired-lan] [PATCH] Fix typo

general protection fault in selinux_socket_recvmsg

2020-05-23 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:051143e1 Merge tag 'apparmor-pr-2020-05-21' of git://git.k.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1313f01610 kernel config: https://syzkaller.appspot.com/x/.config?x=b3368ce0cc5f5ace

Re: [PATCH v1 0/3] drm/msm: Cleanups ahead of per-instance pagetables

2020-05-23 Thread Shawn Guo
On Fri, May 22, 2020 at 04:03:13PM -0600, Jordan Crouse wrote: > These are three cleanup and reorganization patches that were originally > part of one of my many per-instance pagetable stacks [1] [2] but make life > better in general and can stand on their own. Send them now to get them > out of

Re: remove kernel_setsockopt and kernel_getsockopt v2

2020-05-23 Thread Christoph Hellwig
On Wed, May 20, 2020 at 09:54:36PM +0200, Christoph Hellwig wrote: > Hi Dave, > > this series removes the kernel_setsockopt and kernel_getsockopt > functions, and instead switches their users to small functions that > implement setting (or in one case getting) a sockopt directly using > a normal

Re: [PATCH v1 1/3] drm/msm: Attach the IOMMU device during initialization

2020-05-23 Thread Shawn Guo
On Fri, May 22, 2020 at 04:03:14PM -0600, Jordan Crouse wrote: > diff --git a/drivers/gpu/drm/msm/msm_gpummu.c > b/drivers/gpu/drm/msm/msm_gpummu.c > index 34980d8eb7ad..0ad0f848560a 100644 > --- a/drivers/gpu/drm/msm/msm_gpummu.c > +++ b/drivers/gpu/drm/msm/msm_gpummu.c > @@ -21,11 +21,6 @@

WARNING: proc registration bug in clusterip_tg_check (2)

2020-05-23 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:d2f8825a Merge tag 'for_linus' of git://git.kernel.org/pub.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=10eed27210 kernel config: https://syzkaller.appspot.com/x/.config?x=c33c7f7c5471fd39

[PATCH] media: camss: csid: Fix runtime PM imbalance in csid_set_power

2020-05-23 Thread Dinghao Liu
pm_runtime_get_sync() increments the runtime PM usage counter even when it returns an error code. Thus a pairing decrement is needed on the error handling path to keep the counter balanced. Signed-off-by: Dinghao Liu --- drivers/media/platform/qcom/camss/camss-csid.c | 4 +++- 1 file changed, 3

[tip: x86/cleanups] x86/mm: Stop printing BRK addresses

2020-05-23 Thread tip-bot2 for Arvind Sankar
The following commit has been merged into the x86/cleanups branch of tip: Commit-ID: 67d631b7c05eff955ccff4139327f0f92a5117e5 Gitweb: https://git.kernel.org/tip/67d631b7c05eff955ccff4139327f0f92a5117e5 Author:Arvind Sankar AuthorDate:Sat, 29 Feb 2020 18:11:20 -05:00

Re: [PATCH] mt76: mt7915: Use proper enum type in __mt7915_mcu_msg_send

2020-05-23 Thread Ryder Lee
On Fri, 2020-05-22 at 21:19 -0700, Nathan Chancellor wrote: > Clang warns: > > drivers/net/wireless/mediatek/mt76/mt7915/mcu.c:232:9: warning: implicit > conversion from enumeration type 'enum mt76_txq_id' to different > enumeration type 'enum mt7915_txq_id' [-Wenum-conversion] >

Re: RTL8723BS driver doesn't work for,me but I can help testing

2020-05-23 Thread Tobias Baumann
Resend html-format was inside email Am 21.05.2020 um 13:17 schrieb Tobias Baumann: Hi Martin first of all sorry for my short english writing Am 19.05.2020 um 22:16 schrieb Martin Blumenstingl: Hi Tobias, On Tue, May 19, 2020 at 8:21 AM Tobias Baumann<017623705...@o2online.de> wrote:

Re: [PATCH 5.4] KVM: x86: Fix pkru save/restore when guest CR4.PKE=0, move it to x86.c

2020-05-23 Thread Greg KH
On Fri, May 22, 2020 at 11:32:49AM -0500, Babu Moger wrote: > [Backported upstream commit 37486135d3a7b03acc7755b63627a130437f066a] > > Though rdpkru and wrpkru are contingent upon CR4.PKE, the PKRU > resource isn't. It can be read with XSAVE and written with XRSTOR. > So, if we don't set the

Re: [PATCH v2] firewire: Remove function callback casts

2020-05-23 Thread Takashi Sakamoto
Hi Greg, On Sat, May 23, 2020 at 08:10:33AM +0200, Greg KH wrote: > On Fri, May 22, 2020 at 07:43:08PM +0200, Oscar Carter wrote: > > Hi, > > > > On Wed, May 20, 2020 at 03:16:24PM +0900, Takashi Sakamoto wrote: > > > Hi, > > > > > > I'm an author of ALSA firewire stack and thanks for the patch.

Re: [PATCH v3 47/75] x86/sev-es: Add Runtime #VC Exception Handler

2020-05-23 Thread Borislav Petkov
On Tue, Apr 28, 2020 at 05:16:57PM +0200, Joerg Roedel wrote: > diff --git a/arch/x86/kernel/sev-es.c b/arch/x86/kernel/sev-es.c > index a4fa7f351bf2..bc3a58427028 100644 > --- a/arch/x86/kernel/sev-es.c > +++ b/arch/x86/kernel/sev-es.c > @@ -10,6 +10,7 @@ > #include/* For show_regs() */

[PATCH] net: smsc911x: Fix runtime PM imbalance on error

2020-05-23 Thread Dinghao Liu
Remove runtime PM usage counter decrement when the increment function has not been called to keep the counter balanced. Signed-off-by: Dinghao Liu --- drivers/net/ethernet/smsc/smsc911x.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git

[PATCH] media: vsp1: dl: Fix NULL pointer dereference on unbind

2020-05-23 Thread Eugeniu Rosca
v4.19 commit f3b98e3c4d2e16 ("media: vsp1: Provide support for extended command pools") introduced below issue [*], consistently reproduced. In order to fix it, inspire from the sibling/predecessor v4.18-rc1 commit 5de0473982aab2 ("media: vsp1: Provide a body pool"), which saves the vsp1 instance

Re: Writeback bug causing writeback stalls

2020-05-23 Thread Martijn Coenen
Jaegeuk wondered whether callers of write_inode_now() should hold i_rwsem, and whether that would also prevent this problem. Some existing callers of write_inode_now() do, eg ntfs and hfs: hfs_file_fsync() inode_lock(inode); /* sync the inode to buffers */ ret =

Re: [PATCH v4 01/16] spi: dw: Add Tx/Rx finish wait methods to the MID DMA

2020-05-23 Thread Serge Semin
On Fri, May 22, 2020 at 04:22:41PM +0100, Mark Brown wrote: > On Fri, May 22, 2020 at 05:45:42PM +0300, Serge Semin wrote: > > On Fri, May 22, 2020 at 05:36:39PM +0300, Andy Shevchenko wrote: > > > > My point is: let's warn and see if anybody comes with a bug report. We > > > will > > > solve an

Re: [PATCH v2] xfrm: policy: Fix xfrm policy match

2020-05-23 Thread Xin Long
On Fri, May 22, 2020 at 8:39 PM Yuehaibing wrote: > > On 2020/5/22 13:49, Xin Long wrote: > > On Fri, May 22, 2020 at 9:45 AM Yuehaibing wrote: > >> > >> On 2020/5/21 14:49, Xin Long wrote: > >>> On Tue, May 19, 2020 at 4:53 PM Steffen Klassert > >>> wrote: > > On Fri, May 15, 2020 at

Re: [PATCH] VMBus channel interrupts reassignment - Fixes

2020-05-23 Thread Wei Liu
On Fri, May 22, 2020 at 07:18:59PM +0200, Andrea Parri (Microsoft) wrote: > Two fixes on top of the channel interrupts reassignment series, both > addressing race conditions between the initialization of the target > CPUs and the CPU hot removal path. (Fixes: tags refer to commit IDs > from the

Re: [PATCH 2/2] e1000e: Make WOL info in ethtool consistent with device wake up ability

2020-05-23 Thread Chen Yu
Hi Michal, Thanks for reviewing, and sorry for late reply. On Thu, May 21, 2020 at 09:23:42PM +0200, Michal Kubecek wrote: > On Fri, May 22, 2020 at 01:59:13AM +0800, Chen Yu wrote: > > Currently the ethtool shows that WOL(Wake On Lan) is enabled > > even if the device wakeup ability has been

Re: [PATCH v2] kasan: Disable branch tracing for core runtime

2020-05-23 Thread Marco Elver
On Sat, 23 May 2020 at 01:42, Andrew Morton wrote: > > On Fri, 22 May 2020 09:52:07 +0200 Marco Elver wrote: > > > During early boot, while KASAN is not yet initialized, it is possible to > > enter reporting code-path and end up in kasan_report(). While > > uninitialized, the branch there

Re: KASAN: slab-out-of-bounds Read in ovl_check_fb_len

2020-05-23 Thread Amir Goldstein
On Sat, May 23, 2020 at 1:23 AM syzbot wrote: > > Hello, > > syzbot found the following crash on: > > HEAD commit:b85051e7 Merge tag 'fixes-for-5.7-rc6' of git://git.kernel.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=165d2b8110 > kernel config:

Re: [tip: perf/core] perf: Add cond_resched() to task_function_call()

2020-05-23 Thread Jiri Olsa
On Fri, May 01, 2020 at 06:22:05PM -, tip-bot2 for Barret Rhoden wrote: > The following commit has been merged into the perf/core branch of tip: > > Commit-ID: 2ed6edd33a214bca02bd2b45e3fc3038a059436b > Gitweb: > https://git.kernel.org/tip/2ed6edd33a214bca02bd2b45e3fc3038a059436b

Re: [PATCH v3 49/75] x86/sev-es: Handle instruction fetches from user-space

2020-05-23 Thread Borislav Petkov
On Tue, Apr 28, 2020 at 05:16:59PM +0200, Joerg Roedel wrote: > From: Joerg Roedel > > When a #VC exception is triggered by user-space the instruction decoder > needs to read the instruction bytes from user addresses. Enhance > vc_decode_insn() to safely fetch kernel and user instructions. > >

Re: [PATCH] uio: disable lazy irq disable to avoid double fire

2020-05-23 Thread Thommy Jakobsson
On 2020-05-22 11:14, Greg KH wrote: > On Thu, May 21, 2020 at 04:42:09PM +0200, Thommy Jakobsson wrote: >> +if (uioinfo->irq) { > > How is this not true at this point in time based on the code above this? > ->irq should always be set here, right? It seems to me like there is a path to

Re: [tip: perf/core] perf: Add cond_resched() to task_function_call()

2020-05-23 Thread Jiri Olsa
On Sat, May 23, 2020 at 11:20:13AM +0200, Jiri Olsa wrote: > On Fri, May 01, 2020 at 06:22:05PM -, tip-bot2 for Barret Rhoden wrote: > > The following commit has been merged into the perf/core branch of tip: > > > > Commit-ID: 2ed6edd33a214bca02bd2b45e3fc3038a059436b > > Gitweb: >

Re: [PATCH] drm: rcar-du: Fix build error

2020-05-23 Thread Daniel G
Hi Laurent, On Fri, 22 May 2020 at 22:24, Laurent Pinchart wrote: > > Hi Daniel, > > Thank you for the patch. > > On Mon, May 18, 2020 at 10:16:46PM +0200, Daniel Gomez wrote: > > Select DRM_KMS_HELPER dependency. > > > > Build error when DRM_KMS_HELPER is not selected: > > > >

Re: [PATCH v2 0/4] mm/gup, drm/i915: refactor gup_fast, convert to pin_user_pages()

2020-05-23 Thread Chris Wilson
Quoting John Hubbard (2020-05-22 06:19:27) > The purpose of posting this series is to launch a test in the > intel-gfx-ci tree. (The patches have already been merged into Andrew's > linux-mm tree.) > > This applies to today's linux.git (note the base-commit tag at the > bottom). > > Changes

Re: [PATCH 1/4] gpio: gpiolib: Allow GPIO IRQs to lazy disable

2020-05-23 Thread Marc Zyngier
On 2020-05-22 14:19, Maulik Shah wrote: With 'commit 461c1a7d4733 ("gpiolib: override irq_enable/disable")' gpiolib overrides irqchip's irq_enable and irq_disable callbacks. If irq_disable callback is implemented then genirq takes unlazy path to disable irq. Underlying irqchip may not want to

Re: linux-next: build failure after merge of the tip tree

2020-05-23 Thread Thomas Gleixner
Borislav Petkov writes: > On Fri, May 22, 2020 at 05:12:23PM -0700, Paul E. McKenney wrote: >> Marco, Thomas, is there any better setup I can provide Stephen? Or >> is the next-20200519 -rcu tree the best we have right now? > > I've queued the fixes yesterday into tip:locking/kcsan and tglx

[PATCH 2/2] rtc: mpc5121: Fix return value of mpc5121_rtc_probe()

2020-05-23 Thread Tiezhu Yang
When call function devm_platform_ioremap_resource(), we should use IS_ERR() to check the return value and return PTR_ERR() if failed. Fixes: d53d4ae981d0 ("rtc: mpc5121: simplify probe") Signed-off-by: Tiezhu Yang --- drivers/rtc/rtc-mpc5121.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 1/2] rtc: goldfish: Fix return value of goldfish_rtc_probe()

2020-05-23 Thread Tiezhu Yang
When call function devm_platform_ioremap_resource(), we should use IS_ERR() to check the return value and return PTR_ERR() if failed. Fixes: 89576bebbc17 ("rtc: Use devm_platform_ioremap_resource()") Signed-off-by: Tiezhu Yang --- drivers/rtc/rtc-goldfish.c | 2 +- 1 file changed, 1

[PATCH] media: coda: Fix runtime PM imbalance in coda_probe

2020-05-23 Thread Dinghao Liu
When coda_firmware_request() returns an error code, a pairing runtime PM usage counter decrement is needed to keep the counter balanced. Also, the caller expects coda_probe() to increase PM usage counter, there should be a refcount decrement in coda_remove() to keep the counter balanced.

Re: [PATCH] kbuild: reuse vmlinux.o in vmlinux_link

2020-05-23 Thread Nicholas Piggin
Excerpts from Masahiro Yamada's message of May 23, 2020 3:44 am: > + Michael, and PPC ML. > > They may know something about the reason of failure. Because the linker can't put branch stubs within object code sections, so when you incrementally link them too large, the linker can't resolve

Re: RE: RE: [EXT] [PATCH] scsi: ufs-bsg: Fix runtime PM imbalance on error

2020-05-23 Thread dinghao . liu
> Hi, Dinghao > > > Thank you for your advice! Moving original pm_runtime_put_sync() to after > > "out" label will influence an error path branched from > > ups_bsg_verify_query_size(). So I think changing "goto out" to "break" is a > > good > > idea. But in this case we may execute an extra > >

[GIT PULL] s390 updates for 5.7-rc7

2020-05-23 Thread Vasily Gorbik
Hello Linus, please pull s390 changes for 5.7-rc7. Thank you, Vasily The following changes since commit 2ef96a5bb12be62ef75b5828c0aab838ebb29cb8: Linux 5.7-rc5 (2020-05-10 15:16:58 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux.git

Re: [PATCH 2/3] drm/etnaviv: Don't ignore errors on getting clocks

2020-05-23 Thread Lubomir Rintel
Cc += robh On Wed, May 20, 2020 at 04:04:39PM +0200, Lucas Stach wrote: > Am Mittwoch, den 20.05.2020, 15:38 +0200 schrieb Lubomir Rintel: > > On Thu, May 14, 2020 at 09:53:08AM +0100, Russell King - ARM Linux admin > > wrote: > > > On Thu, May 14, 2020 at 10:40:58AM +0200, Lucas Stach wrote: >

Re: [PATCH 3/4] dt-bindings: i2c-stm32: add SMBus Alert bindings

2020-05-23 Thread w...@kernel.org
> > > +st,smbus-alert: > > > + description: Enable the SMBus Alert feature > > > + $ref: /schemas/types.yaml#/definitions/flag > > > + > > > > We already have smbus_alert interrupt. Can't you just check for this in > > the slave nodes and enable if found? > > My

Re: [RT PATCH] Fixed: line break of pr_cont not take effect

2020-05-23 Thread John Ogness
Thank you. I added Sebastian Siewior and linux-rt-users to the addresses since this is a patch against PREEMPT_RT. On 2020-05-23, wrote: > Line break of pr_cont not take effect. > Use several pr_cont to print continuous paragraph, it is expected to > have line break when line ends up with '\n',

[PATCH v2 1/4] drm/etnaviv: Fix error path on failure to enable bus clk

2020-05-23 Thread Lubomir Rintel
Since commit 65f037e8e908 ("drm/etnaviv: add support for slave interface clock") the reg clock is enabled before the bus clock and we need to undo its enablement on error. Fixes: 65f037e8e908 ("drm/etnaviv: add support for slave interface clock") Signed-off-by: Lubomir Rintel ---

[PATCH v2 3/4] drm/etnaviv: Make the "core" clock mandatory

2020-05-23 Thread Lubomir Rintel
It is always present. It was documented as mandatory prior to commit 90aeca875f8a ("dt-bindings: display: Convert etnaviv to json-schema"). Signed-off-by: Lubomir Rintel --- Changes since v1: - Add this patch --- drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH v2 2/4] drm/etnaviv: Don't ignore errors on getting clocks

2020-05-23 Thread Lubomir Rintel
There might be good reasons why the getting a clock failed. To treat the clocks as optional we're specifically only interested in ignoring -ENOENT, and devm_clk_get_optional() does just that. Note that this preserves the original behavior of all clocks being optional. The binding document

[PATCH v2 4/4] drm/etnaviv: Simplify clock enable/disable

2020-05-23 Thread Lubomir Rintel
All the NULL checks are pointless, clk_*() routines already deal with NULL just fine. Signed-off-by: Lubomir Rintel --- drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 53 ++- 1 file changed, 19 insertions(+), 34 deletions(-) diff --git a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c

[PATCH v2 0/4] drm/etnaviv: Tidy up clocks handling

2020-05-23 Thread Lubomir Rintel
Hi, please consider applying patches that are chained to this message. They make getting/enabling the clocks in the etnaviv driver slightly nicer, first two also fix potential problems. Compared to v1, patch 2/4 was fixed and patch 3/4 was added. As it was pointed out in response to v1, the

Re: [PATCH 1/4] i2c: smbus: add core function handling SMBus host-notify

2020-05-23 Thread Wolfram Sang
Adding Benjamin who mainly implemented this. On Tue, May 05, 2020 at 07:51:08AM +0200, Alain Volmat wrote: > SMBus Host-Notify protocol, from the adapter point of view > consist of receiving a message from a client, including the > client address and some other data. > > It can be simply

Re: [PATCH 2/4] i2c: addition of client reg/unreg callbacks

2020-05-23 Thread Wolfram Sang
On Tue, May 05, 2020 at 07:51:09AM +0200, Alain Volmat wrote: > Addition of two callbacks reg_client and unreg_client that can be > implemented by adapter drivers in order to take action whenever a > client is being registered to it. > > Signed-off-by: Alain Volmat Sorry, but NACK. After years

Re: [PATCH 4/4] i2c: stm32f7: Add SMBus-specific protocols support

2020-05-23 Thread Wolfram Sang
> +static int stm32f7_i2c_reg_client(struct i2c_client *client) > +{ > + struct stm32f7_i2c_dev *i2c_dev = i2c_get_adapdata(client->adapter); > + int ret; > + > + if (client->flags & I2C_CLIENT_HOST_NOTIFY) { > + /* Only enable on the first device registration */ > +

Re: [PATCH v4 1/6] printk: Collapse shutdown types into a single dump reason

2020-05-23 Thread Michael Ellerman
Kees Cook writes: > To turn the KMSG_DUMP_* reasons into a more ordered list, collapse > the redundant KMSG_DUMP_(RESTART|HALT|POWEROFF) reasons into > KMSG_DUMP_SHUTDOWN. The current users already don't meaningfully > distinguish between them, so there's no need to, as discussed here: >

Re: KASAN: slab-out-of-bounds Read in ovl_check_fb_len

2020-05-23 Thread syzbot
Hello, syzbot has tested the proposed patch and the reproducer did not trigger crash: Reported-and-tested-by: syzbot+6195b1c60361a...@syzkaller.appspotmail.com Tested on: commit: 30981015 ovl: fix out of bounds access warning in ovl_chec.. git tree:

Re: Re: Re: [PATCH] spi: tegra20-slink: Fix runtime PM imbalance on error

2020-05-23 Thread dinghao . liu
> On Fri, May 22, 2020 at 6:20 PM Andy Shevchenko > wrote: > > On Fri, May 22, 2020 at 10:46 AM wrote: > > ... > > > Moreover, consider below case > > > > CPU1: ...somewhere in the code... > > pm_runtime_get() // with success! > > ...see below... > > pm_runtime_put() > > > > CPU2: ...on

[PATCH 1/2] pinctrl: Fix return value about devm_platform_ioremap_resource()

2020-05-23 Thread Tiezhu Yang
When call function devm_platform_ioremap_resource(), we should use IS_ERR() to check the return value and return PTR_ERR() if failed. Fixes: 4b024225c4a8 ("pinctrl: use devm_platform_ioremap_resource() to simplify code") Signed-off-by: Tiezhu Yang --- drivers/pinctrl/bcm/pinctrl-bcm281xx.c | 2

[PATCH 2/2] pinctrl: at91-pio4: Add COMPILE_TEST support

2020-05-23 Thread Tiezhu Yang
Add COMPILE_TEST support to the AT91 PIO4 pinctrl driver for better compile testing coverage. Signed-off-by: Tiezhu Yang --- drivers/pinctrl/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/Kconfig b/drivers/pinctrl/Kconfig index 834c599..649b700

[PATCH] media: vpif: Fix runtime PM imbalance in vpif_probe

2020-05-23 Thread Dinghao Liu
When platform_get_resource() returns an error code, a pairing runtime PM usage counter decrement is needed to keep the counter balanced. Signed-off-by: Dinghao Liu --- drivers/media/platform/davinci/vpif.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/platform/davinci/vpif.c

Re: [PATCH] media: s3c-camif: fix missing disable in tegra_adma_probe()

2020-05-23 Thread Markus Elfring
> "pm_runtime_enable()" was not handled by "pm_runtime_disable()" > after a call of the function “pm_runtime_get_sync” failed. How do you think about to use typographic quotation characters in a consistent ways for the final commit message? Regards, Markus

Re: Re: Re: [PATCH] spi: tegra20-slink: Fix runtime PM imbalance on error

2020-05-23 Thread Andy Shevchenko
On Sat, May 23, 2020 at 2:32 PM wrote: > > > On Fri, May 22, 2020 at 6:20 PM Andy Shevchenko > > wrote: > > > On Fri, May 22, 2020 at 10:46 AM wrote: ... > I also checked many other implementation of probe in drivers. > It seems that using pm_runtime_put() is ok. In *error path* or normal

[PATCH] media: vsp1: Fix runtime PM imbalance in vsp1_probe

2020-05-23 Thread Dinghao Liu
pm_runtime_get_sync() increments the runtime PM usage counter even when it returns an error code. Thus a pairing decrement is needed on the error handling path to keep the counter balanced. Signed-off-by: Dinghao Liu --- drivers/media/platform/vsp1/vsp1_drv.c | 4 +++- 1 file changed, 3

[PATCH v2 0/3] x86/boot: get rid of GOT entries and associated fixup code

2020-05-23 Thread Ard Biesheuvel
Building position independent code using GCC by default results in references to symbols with external linkage to be resolved via GOT entries, which carry the absolute addresses of the symbols, and thus need to be corrected if the load time address of the executable != the link time address. For

[PATCH v2 2/3] x86/boot/compressed: force hidden visibility for all symbol references

2020-05-23 Thread Ard Biesheuvel
Eliminate all GOT entries in the decompressor binary, by forcing hidden visibility for all symbol references, which informs the compiler that such references will be resolved at link time without the need for allocating GOT entries. To ensure that no GOT entries will creep back in, add an

[PATCH v2 3/3] x86/boot/compressed: get rid of GOT fixup code

2020-05-23 Thread Ard Biesheuvel
In a previous patch, we have eliminated GOT entries from the decompressor binary and added an assertion that the .got section is empty. This means that the GOT fixup routines that exist in both the 32-bit and 64-bit startup routines have become dead code, and can be removed. Signed-off-by: Ard

[PATCH v2 1/3] x86/boot/compressed: move .got.plt entries out of the .got section

2020-05-23 Thread Ard Biesheuvel
The .got.plt section contains the part of the GOT which is used by PLT entries, and which gets updated lazily by the dynamic loader when function calls are dispatched through those PLT entries. On fully linked binaries such as the kernel proper or the decompressor, this never happens, and so in

Re: [PATCH v4 1/2] x86, powerpc: Rename memcpy_mcsafe() to copy_mc_to_{user, kernel}()

2020-05-23 Thread Michael Ellerman
Hi Dan, Sorry one minor nit below. Dan Williams writes: > diff --git a/tools/testing/selftests/powerpc/copyloops/.gitignore > b/tools/testing/selftests/powerpc/copyloops/.gitignore > index ddaf140b8255..1152bcc819fe 100644 > --- a/tools/testing/selftests/powerpc/copyloops/.gitignore > +++

Re: [PATCH] sctp: check assoc before SCTP_ADDR_{MADE_PRIM,ADDED} event

2020-05-23 Thread Jonas Falkevik
On Tue, May 19, 2020 at 10:42 PM Marcelo Ricardo Leitner wrote: > > On Fri, May 15, 2020 at 10:30:29AM +0200, Jonas Falkevik wrote: > > On Wed, May 13, 2020 at 11:32 PM Marcelo Ricardo Leitner > > wrote: > > > > > > On Wed, May 13, 2020 at 10:11:05PM +0200, Jonas Falkevik wrote: > > > > On Wed,

Re: Re: Re: Re: [PATCH] spi: tegra20-slink: Fix runtime PM imbalance on error

2020-05-23 Thread dinghao . liu
> On Sat, May 23, 2020 at 2:32 PM wrote: > > > > > On Fri, May 22, 2020 at 6:20 PM Andy Shevchenko > > > wrote: > > > > On Fri, May 22, 2020 at 10:46 AM wrote: > > ... > > > I also checked many other implementation of probe in drivers. > > It seems that using pm_runtime_put() is ok. > > In

I need your partnership

2020-05-23 Thread WU SS
Pls, i need your interest over a transaction of $10.million. thanks, From. bank Manager.

Linux 3.16.84

2020-05-23 Thread Ben Hutchings
I'm announcing the release of the 3.16.84 kernel. All users of the 3.16 kernel series should upgrade. The updated 3.16.y git tree can be found at: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.16.y and can be browsed at the normal kernel.org git web

Re: general protection fault in selinux_socket_recvmsg

2020-05-23 Thread Ondrej Mosnacek
On Sat, May 23, 2020 at 9:14 AM syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:051143e1 Merge tag 'apparmor-pr-2020-05-21' of git://git.k.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=1313f01610 > kernel config:

Re: [PATCH v11 2/6] mfd: mp2629: Add support for mps battery charger

2020-05-23 Thread saravanan sekar
Hi Lee, On 19/05/20 12:37 pm, Lee Jones wrote: On Thu, 30 Apr 2020, Saravanan Sekar wrote: mp2629 is a highly-integrated switching-mode battery charge management device for single-cell Li-ion or Li-polymer battery. Add MFD core enables chip access for ADC driver for battery readings, and a

Re: [PATCH v5] arch/x86: Update config and kernel doc for MPK feature on AMD

2020-05-23 Thread Borislav Petkov
On Wed, May 13, 2020 at 05:39:12PM -0500, Babu Moger wrote: > diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig > index 1197b5596d5a..6b7303ccc1dd 100644 > --- a/arch/x86/Kconfig > +++ b/arch/x86/Kconfig > @@ -1887,10 +1887,10 @@ config X86_UMIP > results are dummy. > > config

Re: [PATCH 06/12] xen-blkfront: add callbacks for PM suspend and hibernation

2020-05-23 Thread kbuild test robot
Hi Anchal, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v5.7-rc6] [cannot apply to xen-tip/linux-next tip/irq/core tip/auto-latest next-20200519] [if your patch is applied to the wrong git tree, please drop us a note

[PATCH] [v2] spi: tegra20-slink: Fix runtime PM imbalance on error

2020-05-23 Thread Dinghao Liu
pm_runtime_get_sync() increments the runtime PM usage counter even when it returns an error code. Thus a pairing decrement is needed on the error handling path to keep the counter balanced. Signed-off-by: Dinghao Liu --- Changelog: v2: - Use pm_runtime_put_noidle() instead of pm_runtime_put().

Re: [PATCH 1/4] gpio: gpiolib: Allow GPIO IRQs to lazy disable

2020-05-23 Thread kbuild test robot
Hi Maulik, Thank you for the patch! Yet something to improve: [auto build test ERROR on gpio/for-next] [also build test ERROR on pinctrl/devel v5.7-rc6 next-20200522] [cannot apply to tip/irq/core] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system.

Re: [PATCH] thermal: imx8mm: Add get_trend ops

2020-05-23 Thread Daniel Lezcano
On 23/05/2020 02:35, Anson Huang wrote: > Hi, Daniel > > >> Subject: Re: [PATCH] thermal: imx8mm: Add get_trend ops >> >> On 13/05/2020 04:58, Anson Huang wrote: >>> Add get_trend ops for i.MX8MM thermal to apply fast cooling mechanism, >>> when temperature exceeds passive trip point, the

[PATCH] [v2] spi: tegra20-sflash: Fix runtime PM imbalance on error

2020-05-23 Thread Dinghao Liu
pm_runtime_get_sync() increments the runtime PM usage counter even when it returns an error code. Thus a pairing decrement is needed on the error handling path to keep the counter balanced. Signed-off-by: Dinghao Liu --- Changelog: v2: - Use pm_runtime_put_noidle() instead of pm_runtime_put().

[PATCH] ASoC: ingenic: Unconditionally depend on devicetree

2020-05-23 Thread Paul Cercueil
All boards with Ingenic SoCs probe with devicetree already, we have no use for a non-devicetree path. This solves some compilation warnings that were caused by unused variables in the case where CONFIG_OF was disabled. Signed-off-by: Paul Cercueil Reported-by: kbuild test robot ---

[PATCH] [v2] spi: tegra114: Fix runtime PM imbalance on error

2020-05-23 Thread Dinghao Liu
pm_runtime_get_sync() increments the runtime PM usage counter even when it returns an error code. Thus a pairing decrement is needed on the error handling path to keep the counter balanced. Signed-off-by: Dinghao Liu --- Changelog: v2: - Use pm_runtime_put_noidle() instead of pm_runtime_put().

Re: [RFC][PATCH 0/4] x86/entry: disallow #DB more

2020-05-23 Thread Peter Zijlstra
On Fri, May 22, 2020 at 03:13:57PM -0700, Andy Lutomirski wrote: > On Fri, May 22, 2020 at 1:49 PM Peter Zijlstra wrote: > > > > Hai, this kills #DB during NMI/#MC and with that allows removing all the > > nasty > > IST rewrite crud. > > > > This is great, except that the unconditional DR7

Re: [patch V6 00/37] x86/entry: Rework leftovers and merge plan

2020-05-23 Thread Peter Zijlstra
On Sat, May 23, 2020 at 10:52:24AM +0800, Lai Jiangshan wrote: > Hello, > > I, who don't know how does the objtool handle it, am just curious. > _begin() and _end() are symmetrical, which means if _end() (without nop) > can escape, so can _begin() in a reverse way. For example: > > noinstr void

[PATCH] arm64: dts: qcom: sm8250: use dt-bindings defines for clocks

2020-05-23 Thread Jonathan Marek
Use the dt-bindings defines for qupv3_id_1 node's clocks. Signed-off-by: Jonathan Marek --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index

[PATCH] e1000: Fix typo in the comment

2020-05-23 Thread Hari
Continuous Double "the" in a comment. Changed it to single "the" Signed-off-by: Hari --- drivers/net/ethernet/intel/e1000/e1000_hw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel/e1000/e1000_hw.c b/drivers/net/ethernet/intel/e1000/e1000_hw.c

Re: [PATCH v5 00/11] mediatek: add support for MediaTek Ethernet MAC

2020-05-23 Thread Matthias Brugger
On 5/22/20 11:36 PM, David Miller wrote: > From: Matthias Brugger > Date: Fri, 22 May 2020 23:31:50 +0200 > >> >> >> On 22/05/2020 23:20, David Miller wrote: >>> From: Bartosz Golaszewski >>> Date: Fri, 22 May 2020 14:06:49 +0200 >>> This series adds support for the STAR Ethernet

Re: [PATCH 0/5] net: provide a devres variant of register_netdev()

2020-05-23 Thread Bartosz Golaszewski
sob., 23 maj 2020 o 00:36 David Miller napisał(a): > > From: Bartosz Golaszewski > Date: Wed, 20 May 2020 13:44:10 +0200 > > > net: ethernet: mtk_eth_mac: use devm_register_netdev() > > This patch doesn't apply to net-next. > > Neither the source file

[GIT PULL] Staging/IIO driver fixes for 5.7-rc7

2020-05-23 Thread Greg KH
The following changes since commit 2ef96a5bb12be62ef75b5828c0aab838ebb29cb8: Linux 5.7-rc5 (2020-05-10 15:16:58 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git tags/staging-5.7-rc7 for you to fetch changes up to

[GIT PULL] Driver core fixes for 5.7-rc7

2020-05-23 Thread Greg KH
The following changes since commit 2ef96a5bb12be62ef75b5828c0aab838ebb29cb8: Linux 5.7-rc5 (2020-05-10 15:16:58 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git tags/driver-core-5.7-rc7 for you to fetch changes up to

[GIT PULL] TTY/Serial driver fix for 5.7-rc7

2020-05-23 Thread Greg KH
The following changes since commit 2ef96a5bb12be62ef75b5828c0aab838ebb29cb8: Linux 5.7-rc5 (2020-05-10 15:16:58 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git tags/tty-5.7-rc7 for you to fetch changes up to

[GIT PULL] Char/Misc driver fixes for 5.7-rc7

2020-05-23 Thread Greg KH
The following changes since commit 2ef96a5bb12be62ef75b5828c0aab838ebb29cb8: Linux 5.7-rc5 (2020-05-10 15:16:58 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git tags/char-misc-5.7-rc7 for you to fetch changes up to

Re: [PATCH] kobject: Make sure the parent does not get released before its children

2020-05-23 Thread Guenter Roeck
On Wed, May 13, 2020 at 06:18:40PM +0300, Heikki Krogerus wrote: > In the function kobject_cleanup(), kobject_del(kobj) is > called before the kobj->release(). That makes it possible to > release the parent of the kobject before the kobject itself. > > To fix that, adding function __kboject_del()

[PATCH] arm64: dts: qcom: sm8250: rename spmi node to spmi_bus

2020-05-23 Thread Jonathan Marek
The pm8150 dtsi files refer to it as spmi_bus, so change it. Signed-off-by: Jonathan Marek --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index

[PATCH] arm64: dts: qcom: sm8250: sort nodes by physical address

2020-05-23 Thread Jonathan Marek
Other dts have nodes sorted by physical address, be consistent with that. Signed-off-by: Jonathan Marek --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 176 +-- 1 file changed, 88 insertions(+), 88 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi

[PATCH v2 1/5] Documentation: devres: add a missing section for networking helpers

2020-05-23 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Add a new section for networking devres helpers to devres.rst and list the two existing devm functions. Signed-off-by: Bartosz Golaszewski --- Documentation/driver-api/driver-model/devres.rst | 4 1 file changed, 4 insertions(+) diff --git

[PATCH v2 4/5] net: devres: provide devm_register_netdev()

2020-05-23 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Provide devm_register_netdev() - a device resource managed variant of register_netdev(). This new helper will only work for net_device structs that are also already managed by devres. Signed-off-by: Bartosz Golaszewski --- .../driver-api/driver-model/devres.rst

[PATCH v2 3/5] net: devres: define a separate devres structure for devm_alloc_etherdev()

2020-05-23 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Not using a proxy structure to store struct net_device doesn't save anything in terms of compiled code size or memory usage but significantly decreases the readability of the code with all the pointer casting. Define struct net_device_devres and use it in

  1   2   3   4   >