Re: [PATCH V2 1/3] thermal/int340x_thermal: Export GDDV

2020-05-29 Thread Pandruvada, Srinivas
On Mon, 2020-05-18 at 23:18 +, Pandruvada, Srinivas wrote: > On Mon, 2020-04-13 at 19:09 -0700, Matthew Garrett wrote: > > From: Matthew Garrett > > > > Implementing DPTF properly requires making use of firmware-provided > > information associated with the INT3400 device. Calling GDDV > >

[PATCH v2] usb/phy-generic: Add support for OTG VBUS supply control

2020-05-29 Thread Mike Looijmans
This enables support for VBUS on boards where the power is supplied by a regulator. The regulator is enabled when the USB port enters HOST mode. Signed-off-by: Mike Looijmans --- v2: Added missing "return 0;" in set_vbus method .../devicetree/bindings/usb/usb-nop-xceiv.txt | 3 ++

Re: [PATCH V2 1/3] thermal/int340x_thermal: Export GDDV

2020-05-29 Thread Zhang Rui
On Fri, 2020-05-29 at 00:00 -0600, Pandruvada, Srinivas wrote: > On Mon, 2020-05-18 at 23:18 +, Pandruvada, Srinivas wrote: > > On Mon, 2020-04-13 at 19:09 -0700, Matthew Garrett wrote: > > > From: Matthew Garrett > > > > > > Implementing DPTF properly requires making use of firmware- > > >

Re: linux-next: Tree for May 14 (objtool 2/2)

2020-05-29 Thread Kees Cook
On Thu, May 28, 2020 at 10:44:04AM -0500, Josh Poimboeuf wrote: > On Thu, May 14, 2020 at 09:04:36AM -0700, Randy Dunlap wrote: > > On 5/14/20 4:07 AM, Stephen Rothwell wrote: > > > Hi all, > > > > > > Changes since 20200512: > > > > > > > on x86_64: > > > > drivers/ide/ide-tape.o: warning:

[PATCH 1/2] dt-bindings: rtc: add wakeup-source for FlexTimer

2020-05-29 Thread Ran Wang
Signed-off-by: Ran Wang --- Documentation/devicetree/bindings/rtc/rtc-fsl-ftm-alarm.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/rtc/rtc-fsl-ftm-alarm.txt b/Documentation/devicetree/bindings/rtc/rtc-fsl-ftm-alarm.txt index fffac74..d7c482c 100644

[PATCH 2/2] rtc: fsl-ftm-alarm: fix freeze(s2idle) doesnot wake

2020-05-29 Thread Ran Wang
Use dev_pm_set_wake_irq() instead of flag IRQF_NO_SUSPEND to enable wakeup system feature for both freeze(s2idle) and mem(deep). Use property 'wakeup-source' to control this feature. Signed-off-by: Ran Wang --- drivers/rtc/rtc-fsl-ftm-alarm.c | 12 ++-- 1 file changed, 10

Re: [PATCH] staging: gasket: Convert get_user_pages*() --> pin_user_pages*()

2020-05-29 Thread Souptick Joarder
On Thu, May 28, 2020 at 4:34 PM Dan Carpenter wrote: > > On Thu, May 28, 2020 at 02:32:42AM +0530, Souptick Joarder wrote: > > This code was using get_user_pages_fast(), in a "Case 2" scenario > > (DMA/RDMA), using the categorization from [1]. That means that it's > > time to convert the

Re: WARNING: suspicious RCU usage in idtentry_exit

2020-05-29 Thread Dmitry Vyukov
On Thu, May 28, 2020 at 10:48 PM Paul E. McKenney wrote: > > On Thu, May 28, 2020 at 10:19:02PM +0200, Thomas Gleixner wrote: > > Paul, > > > > "Paul E. McKenney" writes: > > > On Thu, May 28, 2020 at 03:33:44PM +0200, Thomas Gleixner wrote: > > >> syzbot writes: > > >> Weird. I have no idea

linux-next: manual merge of the rcu tree with the tip tree

2020-05-29 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the rcu tree got a conflict in: kernel/rcu/tree.c between commits: 806f04e9fd2c ("rcu: Allow for smp_call_function() running callbacks from idle") aaf2bc50df1f ("rcu: Abstract out rcu_irq_enter_check_tick() from rcu_nmi_enter()") from the tip tree

Re: general protection fault in inet_unhash

2020-05-29 Thread Dmitry Vyukov
On Thu, May 28, 2020 at 11:01 PM 'Andrii Nakryiko' via syzkaller-bugs wrote: > > On 5/28/20 9:44 AM, syzbot wrote: > > Hello, > > > > syzbot found the following crash on: > > > > HEAD commit:dc0f3ed1 net: phy: at803x: add cable diagnostics support f.. > > git tree: net-next > > console

Re: [PATCH] crypto: hisilicon/qm - allow smaller reads in debugfs

2020-05-29 Thread Zhou Wang
On 2020/5/28 20:37, Dan Carpenter wrote: > Originally this code rejected any read less than 256 bytes. There > is no need for this artificial limit. > > Also I have changed the snprintf() functions to scnprintf(). The > difference is that snprintf() returns the number of bytes which would >

Re: [PATCH v2 1/3] seccomp: Add find_notification helper

2020-05-29 Thread Kees Cook
On Thu, May 28, 2020 at 04:08:56AM -0700, Sargun Dhillon wrote: > This adds a helper which can iterate through a seccomp_filter to > find a notification matching an ID. It removes several replicated > chunks of code. Nice, yes. I was noticing this redundancy too while I was looking at notify

Re: [PATCH] staging: gasket: Convert get_user_pages*() --> pin_user_pages*()

2020-05-29 Thread Souptick Joarder
On Fri, May 29, 2020 at 11:46 AM Souptick Joarder wrote: > > On Thu, May 28, 2020 at 4:34 PM Dan Carpenter > wrote: > > > > On Thu, May 28, 2020 at 02:32:42AM +0530, Souptick Joarder wrote: > > > This code was using get_user_pages_fast(), in a "Case 2" scenario > > > (DMA/RDMA), using the

Re: [RFC] dt-bindings: mailbox: add doorbell support to ARM MHU

2020-05-29 Thread Viresh Kumar
On 29-05-20, 00:20, Jassi Brar wrote: > The fact that all these bits are backed by one physical signal makes I believe that within the IP itself, there must be 32 signals, just that only one comes out of it all OR'd together. Maybe that can be verified by writing 0x01 to it multiple times and it

Re: general protection fault in inet_unhash

2020-05-29 Thread Andrii Nakryiko
On 5/28/20 2:27 PM, Eric Dumazet wrote: On 5/28/20 2:01 PM, Andrii Nakryiko wrote: On 5/28/20 9:44 AM, syzbot wrote: Hello, syzbot found the following crash on: HEAD commit:    dc0f3ed1 net: phy: at803x: add cable diagnostics support f.. git tree:   net-next console output:

[PATCH] dt-bindings: clock: Convert i.MX8QXP LPCG to json-schema

2020-05-29 Thread Anson Huang
Convert the i.MX8QXP LPCG binding to DT schema format using json-schema. Signed-off-by: Anson Huang --- .../devicetree/bindings/clock/imx8qxp-lpcg.txt | 51 --- .../devicetree/bindings/clock/imx8qxp-lpcg.yaml| 72 ++ 2 files changed, 72 insertions(+), 51

Re: [PATCH 1/4] exfat: redefine PBR as boot_sector

2020-05-29 Thread Tetsuhiro Kohada
I'll make another small patch, OK? No, It make sense to make v3, because you have renamed the variables in boot_sector on this patch. OK. BTW I have a concern about fs_name. The exfat specification says that this field is "EXFAT". I think it's a important field for determining the

Re: general protection fault in inet_unhash

2020-05-29 Thread Andrii Nakryiko
On 5/28/20 11:23 PM, Dmitry Vyukov wrote: On Thu, May 28, 2020 at 11:01 PM 'Andrii Nakryiko' via syzkaller-bugs wrote: On 5/28/20 9:44 AM, syzbot wrote: Hello, syzbot found the following crash on: HEAD commit:dc0f3ed1 net: phy: at803x: add cable diagnostics support f.. git tree:

Re: [PATCH 3/3] f2fs: fix to cover meta flush with cp_lock

2020-05-29 Thread Chao Yu
On 2020/5/29 3:00, Jaegeuk Kim wrote: > On 05/28, Chao Yu wrote: >> On 2020/5/28 9:26, Jaegeuk Kim wrote: >>> On 05/28, Chao Yu wrote: On 2020/5/28 5:02, Jaegeuk Kim wrote: > On 05/27, Chao Yu wrote: >> meta inode page should be flushed under cp_lock, fix it. > > It doesn't

Re: general protection fault in inet_unhash

2020-05-29 Thread Dmitry Vyukov
On Fri, May 29, 2020 at 8:33 AM Andrii Nakryiko wrote: > > On 5/28/20 11:23 PM, Dmitry Vyukov wrote: > > On Thu, May 28, 2020 at 11:01 PM 'Andrii Nakryiko' via syzkaller-bugs > > wrote: > >> > >> On 5/28/20 9:44 AM, syzbot wrote: > >>> Hello, > >>> > >>> syzbot found the following crash on: >

[PATCH] x86/apic/flat64: Add back the early_param("apic", parse_apic)

2020-05-29 Thread Dexuan Cui
parse_apic() allows the user to try a different apic driver than the default one that's automatically chosen. It works for x86_32, but doesn't work for x86_64 becauase it was removed in 2009 for x86_64 by: commit 7b38725318f4 ("x86: remove subarchitecture support code"), whose changelog doesn't

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

2020-05-29 Thread Stephen Rothwell
Hi all, On Fri, 29 May 2020 16:22:34 +1000 Stephen Rothwell wrote: > > Hi all, > > Today's linux-next merge of the rcu tree got a conflict in: > > kernel/rcu/tree.c > > between commits: > > 806f04e9fd2c ("rcu: Allow for smp_call_function() running callbacks from > idle") >

Re: [PATCH] mm, memory_failure: only send BUS_MCEERR_AO to early-kill process

2020-05-29 Thread 堀口 直也
On Fri, May 29, 2020 at 01:56:25PM +0800, wetp wrote: > On 2020/5/29 上午10:12, HORIGUCHI NAOYA(堀口 直也) wrote: ... > > > > > @@ -225,8 +225,9 @@ static int kill_proc(struct to_kill *tk, unsigned > > > > > long pfn, int flags) > > > > >* This could cause a loop when the user sets

Re: [PATCH v4 1/2] clk: hisilicon: Use correct return value about hisi_reset_init()

2020-05-29 Thread Tiezhu Yang
On 05/29/2020 12:31 PM, Stephen Boyd wrote: Quoting Tiezhu Yang (2020-05-28 21:02:05) On 05/29/2020 11:58 AM, Stephen Boyd wrote: Quoting Tiezhu Yang (2020-05-28 19:03:54) On 05/29/2020 07:15 AM, Stephen Boyd wrote: Quoting Tiezhu Yang (2020-05-27 19:27:42) On 05/28/2020 03:06 AM, Stephen

Re: [PATCH 0/6] arm64: dts: qcom: smmu/USB nodes and HDK855/HDK865 dts

2020-05-29 Thread Bjorn Andersson
On Thu 28 May 20:15 PDT 2020, Jonathan Marek wrote: > On 5/28/20 11:05 PM, Bjorn Andersson wrote: > > On Sat 23 May 19:38 PDT 2020, Jonathan Marek wrote: > > > > > Add dts nodes for apps_smmu and USB for both sm8150 and sm8250. > > > > > > Also add initial dts files for HDK855 and HDK865, based

Re: [PATCH 05/28] KVM: nSVM: correctly inject INIT vmexits

2020-05-29 Thread Krish Sadhukhan
On 5/26/20 10:22 AM, Paolo Bonzini wrote: The usual drill at this point, except there is no code to remove because this case was not handled at all. Signed-off-by: Paolo Bonzini --- arch/x86/kvm/svm/nested.c | 27 +++ 1 file changed, 27 insertions(+) diff --git

linux-next: manual merge of the kvm tree with the s390 tree

2020-05-29 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the kvm tree got a conflict in: arch/s390/kvm/vsie.c between commit: 0b0ed657fe00 ("s390: remove critical section cleanup from entry.S") from the s390 tree and commit: d075fc3154be ("KVM: s390: vsie: Move conditional reschedule") from the kvm tree.

Re: [PATCH 05/14] mm: workingset: let cache workingset challenge anon

2020-05-29 Thread Joonsoo Kim
2020년 5월 29일 (금) 오전 2:02, Johannes Weiner 님이 작성: > > On Thu, May 28, 2020 at 04:16:50PM +0900, Joonsoo Kim wrote: > > 2020년 5월 27일 (수) 오후 10:43, Johannes Weiner 님이 작성: > > > > > > On Wed, May 27, 2020 at 11:06:47AM +0900, Joonsoo Kim wrote: > > > > 2020년 5월 21일 (목) 오전 8:26, Johannes Weiner 님이 작성:

Re: [PATCH] lightnvm: pblk: Fix reference count leak in pblk_sysfs_init.

2020-05-29 Thread Matias Bjørling
On 27/05/2020 23.06, wu000...@umn.edu wrote: From: Qiushi Wu kobject_init_and_add() takes reference even when it fails. Thus, when kobject_init_and_add() returns an error, kobject_put() must be called to properly clean up the kobject. Fixes: a4bd217b4326 ("lightnvm: physical block device

Re: [PATCH] drm/radeon: Convert get_user_pages() --> pin_user_pages()

2020-05-29 Thread Souptick Joarder
On Thu, May 28, 2020 at 12:37 AM John Hubbard wrote: > > On 2020-05-27 01:51, Daniel Vetter wrote: > > On Wed, May 27, 2020 at 10:48:52AM +0200, Daniel Vetter wrote: > >> On Tue, May 26, 2020 at 03:57:45PM -0700, John Hubbard wrote: > >>> On 2020-05-26 14:00, Souptick Joarder wrote: > This

Re: [PATCH v2 00/12] clean-up the migration target allocation functions

2020-05-29 Thread Joonsoo Kim
2020년 5월 29일 (금) 오전 4:25, Vlastimil Babka 님이 작성: > > On 5/27/20 8:44 AM, js1...@gmail.com wrote: > > From: Joonsoo Kim > > > > This patchset clean-up the migration target allocation functions. > > > > * Changes on v2 > > - add acked-by tags > > - fix missing compound_head() call for the patch #3

Re: [PATCH] reiserfs: Replace kmalloc with kcalloc in the comment

2020-05-29 Thread Jan Kara
On Fri 29-05-20 09:02:30, Yi Wang wrote: > From: Liao Pingfang > > Use kcalloc instead of kmalloc in the comment according to > the previous kcalloc() call. > > Signed-off-by: Liao Pingfang Thanks. I've added the patch to my tree.

Re: [PATCH v4 2/7] dt-bindings: mdf: ti,j721e-system-controller.yaml: Add J721e

2020-05-29 Thread Roger Quadros
Hi Rob, On 19/05/2020 16:51, Roger Quadros wrote: Add DT binding schema for J721e system controller. Signed-off-by: Roger Quadros --- Changelog: v4 -address comments. Hope this patch is OK now? cheers, -roger  .../mfd/ti,j721e-system-controller.yaml   | 76 +++  1

Re: [PATCH 08/10] clk: qcom: Add graphics clock controller driver for SM8250

2020-05-29 Thread Sai Prakash Ranjan
Hi Bjorn, On 2020-05-29 06:41, Bjorn Andersson wrote: On Mon 25 May 02:47 PDT 2020, Sai Prakash Ranjan wrote: Hi Jonathan, On 2020-05-25 02:36, Jonathan Marek wrote: > Add support for the graphics clock controller found on SM8250 > based devices. This would allow graphics drivers to probe

[PATCH 1/4] workqueue: void unneeded requeuing the pwq in rescuer thread

2020-05-29 Thread Lai Jiangshan
008847f66c3 ("workqueue: allow rescuer thread to do more work.") made the rescuer worker requeue the pwq immediately if there may be more work items which need rescuing instead of waiting for the next mayday timer expiration. Unfortunately, it checks only whether the pool needs help from

[PATCH 0/4] workqueue: simple cleanups

2020-05-29 Thread Lai Jiangshan
Simple cleanups found when I was reviewing the lkml patches. Lai Jiangshan (4): workqueue: void unneeded requeuing the pwq in rescuer thread workqueue: rescuer doesn't check wq->rescuer workqueue: free wq->unbound_attrs earlier workqueue: remove useless unlock() and lock() in series Cc:

[PATCH 4/4] workqueue: remove useless unlock() and lock() in series

2020-05-29 Thread Lai Jiangshan
This is no point to unlock() and then lock() the same mutex back to back. Signed-off-by: Lai Jiangshan --- kernel/workqueue.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/kernel/workqueue.c b/kernel/workqueue.c index c0cbe0de95d0..415893cfb074 100644 --- a/kernel/workqueue.c +++

[PATCH 2/4] workqueue: don't check wq->rescuer in rescuer

2020-05-29 Thread Lai Jiangshan
Now rescuer checks pwq->nr_active before requeues the pwq, it is a more robust check and the rescuer must be still valid. Signed-off-by: Lai Jiangshan --- kernel/workqueue.c | 23 +-- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/kernel/workqueue.c

[PATCH 3/4] workqueue: free wq->unbound_attrs earlier

2020-05-29 Thread Lai Jiangshan
wq->unbound_attrs is never accessed in rcu read site, so that it can be freed earlier and relieves memory pressure earlier, although slightly. Signed-off-by: Lai Jiangshan --- kernel/workqueue.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kernel/workqueue.c

linux-next: manual merge of the kvm-arm tree with the arm64 tree

2020-05-29 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the kvm-arm tree got a conflict in: arch/arm64/include/asm/ptrace.h between commit: 8ef8f360cf30 ("arm64: Basic Branch Target Identification support") from the arm64 tree and commit: d9d7d84d9906 ("KVM: arm64: Parametrize exception entry with a

Re: [PATCH v4 1/4] sysctl: Add register_sysctl_init() interface

2020-05-29 Thread Luis Chamberlain
On Tue, May 19, 2020 at 11:31:08AM +0800, Xiaoming Ni wrote: > --- a/kernel/sysctl.c > +++ b/kernel/sysctl.c > @@ -3358,6 +3358,25 @@ int __init sysctl_init(void) > kmemleak_not_leak(hdr); > return 0; > } > + > +/* > + * The sysctl interface is used to modify the interface value, > +

[PATCH] venus: move platform specific data to platform file

2020-05-29 Thread Dikshita Agarwal
Move all data specific to platform into a separate file. Signed-off-by: Dikshita Agarwal --- drivers/media/platform/qcom/venus/Makefile | 3 +- drivers/media/platform/qcom/venus/core.c | 20 ++--- drivers/media/platform/qcom/venus/core.h | 10 +--

[PATCH v2 1/1] drivers: mtd: spi-nor: update read capabilities for w25q64 and s25fl064k

2020-05-29 Thread Rayagonda Kokatanur
Both w25q64 and s25fl064k nor flash support QUAD and DUAL read command, hence update the same in flash_info table. This is tested on Broadcom Stingray SoC (bcm958742t). Signed-off-by: Rayagonda Kokatanur --- Changes from v1: -Address review comments from Vignesh Raghavendra Update commit

[PATCH] venus: Add platform specific capabilities

2020-05-29 Thread Dikshita Agarwal
Add platform specific capabilities and use them in place of firmware capabilities. Signed-off-by: Dikshita Agarwal --- drivers/media/platform/qcom/venus/core.c | 3 + drivers/media/platform/qcom/venus/hfi_helper.h | 3 +- drivers/media/platform/qcom/venus/hfi_parser.c |

Re: [PATCH] usb/phy-generic: Add support for OTG VBUS supply control

2020-05-29 Thread Peter Chen
On 20-05-29 07:47:37, Mike Looijmans wrote: > > Met vriendelijke groet / kind regards, > > Mike Looijmans > System Expert > > > TOPIC Embedded Products B.V. > Materiaalweg 4, 5681 RJ Best > The Netherlands > > T: +31 (0) 499 33 69 69 > E: mike.looijm...@topicproducts.com > W: >

Re: [PATCH] mm, memcg: reclaim more aggressively before high allocator throttling

2020-05-29 Thread Michal Hocko
On Thu 28-05-20 16:29:44, Johannes Weiner wrote: [...] > How about this: > > Reclaim memcg_nr_pages_over_high in the first iteration, then switch > to SWAP_CLUSTER_MAX in the retries. Yes, that makes much more sense to me. -- Michal Hocko SUSE Labs

Re: [PATCH][next] RDMA/hns: remove duplicate assignment to pointer raq

2020-05-29 Thread oulijun
在 2020/5/28 23:04, Colin King 写道: From: Colin Ian King The pointer raq is being assigned twice. Fix this by removing one of the redundant assignments. Fixes: 14ba87304bf9 ("RDMA/hns: Remove redundant type cast for general pointers") Addressses-Coverity: ("Evaluation order violation")

Re: [PATCH v4 1/4] sysctl: Add register_sysctl_init() interface

2020-05-29 Thread Xiaoming Ni
On 2020/5/29 15:09, Luis Chamberlain wrote: On Tue, May 19, 2020 at 11:31:08AM +0800, Xiaoming Ni wrote: --- a/kernel/sysctl.c +++ b/kernel/sysctl.c @@ -3358,6 +3358,25 @@ int __init sysctl_init(void) kmemleak_not_leak(hdr); return 0; } + +/* + * The sysctl interface is used

Re: [PATCH] drm/radeon: Convert get_user_pages() --> pin_user_pages()

2020-05-29 Thread John Hubbard
On 2020-05-28 23:49, Souptick Joarder wrote: ... This is what case 3 was *intended* to cover, but it looks like case 3 needs to be written a little better. I'll attempt that, and Cc you on the actual patch to -mm. (I think we also need a case 5 for an unrelated scenario, too, so it's time.)

Re: [PATCH] mm, memcg: reclaim more aggressively before high allocator throttling

2020-05-29 Thread Michal Hocko
On Thu 28-05-20 17:48:48, Chris Down wrote: > Michal Hocko writes: > > > We send a simple bug fix: bring this instance of reclaim in line with > > > how everybody else is using the reclaim API, to meet the semantics as > > > they are intendend and documented. > > > > Here is where we are not on

Re: [PATCH v2 2/3] seccomp: Introduce addfd ioctl to seccomp user notifier

2020-05-29 Thread Kees Cook
On Thu, May 28, 2020 at 04:08:57AM -0700, Sargun Dhillon wrote: > This adds a seccomp notifier ioctl which allows for the listener to "add" > file descriptors to a process which originated a seccomp user > notification. This allows calls like mount, and mknod to be "implemented", > as the return

Re: [RFC] METADATA design using V4l2 Request API

2020-05-29 Thread Hans Verkuil
On 29/05/2020 04:18, Nicolas Dufresne wrote: > Le jeudi 28 mai 2020 à 16:18 +0530, diksh...@codeaurora.org a écrit : >>> not allowed. So I need to know more about this. >>> Regards, >>>Hans >> >> we need this for use cases like HDR10+ where metadata info is part of >> the bitstream. >> >>

Re: linux-next: Fixes tag needs some work in the spi-nor tree

2020-05-29 Thread Tudor.Ambarus
On Friday, May 29, 2020 12:06:47 AM EEST Stephen Rothwell wrote: > Hi all, Hi, Stephen, > > In commit > > 5587fa489747 ("mtd: spi-nor: spansion: fix writes on S25FS512S") > > Fixes tag > > Fixes: dfd2b74530e ("mtd: spi-nor: add Spansion S25FS512S ID") > > has these problem(s): > > -

RE: Oops at boot with linux-next kernel with IMA boot options

2020-05-29 Thread Roberto Sassu
> From: Takashi Iwai [mailto:ti...@suse.de] > On Thu, 28 May 2020 19:36:55 +0200, > Roberto Sassu wrote: > > > > > From: linux-integrity-ow...@vger.kernel.org [mailto:linux-integrity- > > > ow...@vger.kernel.org] On Behalf Of Takashi Iwai > > > On Thu, 28 May 2020 17:35:16 +0200, > > > Takashi

[PATCH v4 3/7] mtd: spi-nor: sfdp: parse command sequences to change octal DTR mode

2020-05-29 Thread Mason Yang
A set of simple command sequences is provided which can be executed directly by the host controller to enable octal DTR mode. Each command sequence is 8 per byte for single SPI mode. Signed-off-by: Mason Yang --- drivers/mtd/spi-nor/core.h | 20 + drivers/mtd/spi-nor/sfdp.c | 104

[PATCH v4 1/7] mtd: spi-nor: sfdp: get octal mode maximum speed from BFPT

2020-05-29 Thread Mason Yang
Get maximum operation speed of device in octal mode from BFPT 20th DWORD. Signed-off-by: Mason Yang --- drivers/mtd/spi-nor/core.h | 2 ++ drivers/mtd/spi-nor/sfdp.c | 36 drivers/mtd/spi-nor/sfdp.h | 4 3 files changed, 42 insertions(+) diff --git

[PATCH v4 6/7] spi: mxic: patch for octal DTR mode support

2020-05-29 Thread Mason Yang
Driver patch for octal 8D-8D-8D mode support. Signed-off-by: Mason Yang --- drivers/spi/spi-mxic.c | 98 +- 1 file changed, 66 insertions(+), 32 deletions(-) diff --git a/drivers/spi/spi-mxic.c b/drivers/spi/spi-mxic.c index 69491f3..a9b3817

[PATCH v4 2/7] mtd: spi-nor: sfdp: parse xSPI Profile 1.0 table

2020-05-29 Thread Mason Yang
JESD251, xSPI profile 1.0 table supports octal DTR mode. Extract information like the fast read opcode, dummy cycles for various frequencies, the number of dummy cycles needed for a Read Status Register command, the number of address bytes needed for a Read Status Register command, read volatile

[PATCH v4 7/7] mtd: spi-nor: macronix: Add Octal 8D-8D-8D supports for Macronix mx25uw51245g

2020-05-29 Thread Mason Yang
Macronix mx25uw51245g is a SPI NOR that supports 1-1-1/8-8-8 mode. Correct the dummy cycles to device for various frequencies after xSPI profile 1.0 table parsed. Enable mx25uw51245g to Octal DTR mode by executing the command sequences to change to octal DTR mode. Signed-off-by: Mason Yang ---

[PATCH v4 5/7] mtd: spi-nor: core: execute command sequences to change octal DTR mode

2020-05-29 Thread Mason Yang
Execute command sequences to change octal DTR mode. Signed-off-by: Mason Yang --- drivers/mtd/spi-nor/core.c | 71 ++ drivers/mtd/spi-nor/core.h | 1 + 2 files changed, 72 insertions(+) diff --git a/drivers/mtd/spi-nor/core.c

[PATCH v4 0/7] mtd: spi-nor: add xSPI Octal DTR support

2020-05-29 Thread Mason Yang
Hello, JESD216C has defined specification for Octal 8S-8S-8S and 8D-8D-8D. Based on JEDEC216C Basic Flash Parameter Table (BFPT) driver extract DWORD-18: command and command extension type. DWORD-20: Maximum operation speed of device in Octal mode. xSPI profile 1.0 table: DWORD-1: Read Fast

Re: [PATCH v4 1/4] sysctl: Add register_sysctl_init() interface

2020-05-29 Thread Luis Chamberlain
On Fri, May 29, 2020 at 03:27:22PM +0800, Xiaoming Ni wrote: > On 2020/5/29 15:09, Luis Chamberlain wrote: > > On Tue, May 19, 2020 at 11:31:08AM +0800, Xiaoming Ni wrote: > > > --- a/kernel/sysctl.c > > > +++ b/kernel/sysctl.c > > > @@ -3358,6 +3358,25 @@ int __init sysctl_init(void) > > >

[PATCH v4 4/7] mtd: spi-nor: core: add configuration register 2 read & write support

2020-05-29 Thread Mason Yang
Configuration register 2 is to set the device operation condition like STR or DTR mode at address offset 0 and DQS mode at address offset 0x200. Each device has various address offset for it's specific operatoin setting. Signed-off-by: Mason Yang --- drivers/mtd/spi-nor/core.c | 78

Re: [PATCH v2 2/3] seccomp: Introduce addfd ioctl to seccomp user notifier

2020-05-29 Thread Christian Brauner
On Fri, May 29, 2020 at 12:31:37AM -0700, Kees Cook wrote: > On Thu, May 28, 2020 at 04:08:57AM -0700, Sargun Dhillon wrote: > > This adds a seccomp notifier ioctl which allows for the listener to "add" > > file descriptors to a process which originated a seccomp user > > notification. This allows

Re: [PATCH] staging: gasket: Convert get_user_pages*() --> pin_user_pages*()

2020-05-29 Thread John Hubbard
On 2020-05-28 23:27, Souptick Joarder wrote: On Fri, May 29, 2020 at 11:46 AM Souptick Joarder wrote: On Thu, May 28, 2020 at 4:34 PM Dan Carpenter wrote: On Thu, May 28, 2020 at 02:32:42AM +0530, Souptick Joarder wrote: This code was using get_user_pages_fast(), in a "Case 2" scenario

[PATCH] dt-bindings: thermal: Convert qoriq to json-schema

2020-05-29 Thread Anson Huang
Convert the qoriq thermal binding to DT schema format using json-schema Signed-off-by: Anson Huang --- .../devicetree/bindings/thermal/qoriq-thermal.txt | 71 - .../devicetree/bindings/thermal/qoriq-thermal.yaml | 111 + 2 files changed, 111 insertions(+), 71

[PATCH 07/13] test_sysctl: use new sysctl subdir helper register_sysctl_subdir()

2020-05-29 Thread Luis Chamberlain
This simplifies the code considerably. The following coccinelle SmPL grammar rule was used to transform this code. // pycocci sysctl-subdir.cocci lib/test_sysctl.c @c1@ expression E1; identifier subdir, sysctls; @@ static struct ctl_table subdir[] = { { .procname = E1,

[PATCH 10/13] eventpoll: simplify sysctl declaration with register_sysctl_subdir()

2020-05-29 Thread Luis Chamberlain
From: Xiaoming Ni Move epoll_table sysctl to fs/eventpoll.c and remove the clutter out of kernel/sysctl.c by using register_sysctl_subdir().. Signed-off-by: Xiaoming Ni Signed-off-by: Luis Chamberlain --- fs/eventpoll.c | 10 +- include/linux/poll.h | 2 --

[PATCH 11/13] random: simplify sysctl declaration with register_sysctl_subdir()

2020-05-29 Thread Luis Chamberlain
From: Xiaoming Ni Move random_table sysctl from kernel/sysctl.c to drivers/char/random.c and use register_sysctl_subdir() to help remove the clutter out of kernel/sysctl.c. Signed-off-by: Xiaoming Ni Signed-off-by: Luis Chamberlain --- drivers/char/random.c | 14 --

[PATCH 01/13] sysctl: add new register_sysctl_subdir() helper

2020-05-29 Thread Luis Chamberlain
Often enough all we need to do is create a subdirectory so that we can stuff sysctls underneath it. However, *if* that directory was already created early on the boot sequence we really have no need to use the full boiler plate code for it, we can just use local variables to help us guide sysctl

[PATCH 09/13] firmware_loader: simplify sysctl declaration with register_sysctl_subdir()

2020-05-29 Thread Luis Chamberlain
From: Xiaoming Ni Move the firmware config sysctl table to fallback_table.c and use the new register_sysctl_subdir() helper. This removes the clutter from kernel/sysctl.c. Signed-off-by: Xiaoming Ni Signed-off-by: Luis Chamberlain --- drivers/base/firmware_loader/fallback.c | 4

[PATCH 08/13] inotify: simplify sysctl declaration with register_sysctl_subdir()

2020-05-29 Thread Luis Chamberlain
From: Xiaoming Ni move inotify_user sysctl to inotify_user.c and use the new register_sysctl_subdir() helper. Signed-off-by: Xiaoming Ni Signed-off-by: Luis Chamberlain --- fs/notify/inotify/inotify_user.c | 11 ++- include/linux/inotify.h | 3 --- kernel/sysctl.c

[PATCH 06/13] ocfs2: use new sysctl subdir helper register_sysctl_subdir()

2020-05-29 Thread Luis Chamberlain
This simplifies the code considerably. The following coccinelle SmPL grammar rule was used to transform this code. // pycocci sysctl-subdir.cocci fs/ocfs2/stackglue.c @c1@ expression E1; identifier subdir, sysctls; @@ static struct ctl_table subdir[] = { { .procname =

[PATCH 04/13] i915: use new sysctl subdir helper register_sysctl_subdir()

2020-05-29 Thread Luis Chamberlain
This simplifies the code considerably. The following coccinelle SmPL grammar rule was used to transform this code. // pycocci sysctl-subdir.cocci drivers/gpu/drm/i915/i915_perf.c @c1@ expression E1; identifier subdir, sysctls; @@ static struct ctl_table subdir[] = { {

[PATCH 12/13] sysctl: add helper to register empty subdir

2020-05-29 Thread Luis Chamberlain
The way to create a subdirectory from the base set of directories is a bit obscure, so provide a helper which makes this clear, and also helps remove boiler plate code required to do this work. Signed-off-by: Luis Chamberlain --- include/linux/sysctl.h | 7 +++ kernel/sysctl.c| 16

[PATCH 03/13] hpet: use new sysctl subdir helper register_sysctl_subdir()

2020-05-29 Thread Luis Chamberlain
This simplifies the code considerably. The following coccinelle SmPL grammar rule was used to transform this code. // pycocci sysctl-subdir.cocci drivers/char/hpet.c @c1@ expression E1; identifier subdir, sysctls; @@ static struct ctl_table subdir[] = { { .procname = E1,

[PATCH 13/13] fs: move binfmt_misc sysctl to its own file

2020-05-29 Thread Luis Chamberlain
This moves the binfmt_misc sysctl to its own file to help remove clutter from kernel/sysctl.c. Signed-off-by: Luis Chamberlain --- fs/binfmt_misc.c | 1 + kernel/sysctl.c | 7 --- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/fs/binfmt_misc.c b/fs/binfmt_misc.c index

[PATCH 02/13] cdrom: use new sysctl subdir helper register_sysctl_subdir()

2020-05-29 Thread Luis Chamberlain
This simplifies the code considerably. The following coccinelle SmPL grammar rule was used to transform this code. // pycocci sysctl-subdir.cocci drivers/cdrom/cdrom.c @c1@ expression E1; identifier subdir, sysctls; @@ static struct ctl_table subdir[] = { { .procname =

[PATCH 05/13] macintosh/mac_hid.c: use new sysctl subdir helper register_sysctl_subdir()

2020-05-29 Thread Luis Chamberlain
This simplifies the code considerably. The following coccinelle SmPL grammar rule was used to transform this code. // pycocci sysctl-subdir.cocci drivers/macintosh/mac_hid.c @c1@ expression E1; identifier subdir, sysctls; @@ static struct ctl_table subdir[] = { {

[PATCH 00/13] sysctl: spring cleaning

2020-05-29 Thread Luis Chamberlain
Me and Xiaoming are working on some kernel/sysctl.c spring cleaning. During a recent linux-next merge conflict it became clear that the kitchen sink on kernel/sysctl.c creates too many conflicts, and so we need to do away with stuffing everyone's knobs on this one file. This is part of that work.

Re: [PATCH v2 3/3] selftests/seccomp: Test SECCOMP_IOCTL_NOTIF_ADDFD

2020-05-29 Thread Kees Cook
On Thu, May 28, 2020 at 04:08:58AM -0700, Sargun Dhillon wrote: > + EXPECT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_SEND, ), 0); > + > + nextid = req.id + 1; > + > + /* Wait for getppid to be called for the second time */ > + sleep(1); I always rebel at finding "sleep" in tests. ;)

[PATCH RESEND] Enable full width counting for KVM: x86/pmu

2020-05-29 Thread Like Xu
Hi Paolo, As you said, you will queue the v3 of KVM patch, but it looks like we are missing that part at the top of the kvm/queue tree. For your convenience, let me resend v4 so that we can upstream this feature in the next merged window. Also this patch series includes patches for qemu and

[PATCH RESEND v4 1/2] KVM: x86/pmu: Tweak kvm_pmu_get_msr to pass 'struct msr_data' in

2020-05-29 Thread Like Xu
From: Wei Wang Change kvm_pmu_get_msr() to get the msr_data struct, as the host_initiated field from the struct could be used by get_msr. This also makes this API consistent with kvm_pmu_set_msr. No functional changes. Signed-off-by: Wei Wang --- arch/x86/kvm/pmu.c | 4 ++--

[PATCH RESEND v4 2/2] KVM: x86/pmu: Support full width counting

2020-05-29 Thread Like Xu
Intel CPUs have a new alternative MSR range (starting from MSR_IA32_PMC0) for GP counters that allows writing the full counter width. Enable this range from a new capability bit (IA32_PERF_CAPABILITIES.FW_WRITE[bit 13]). The guest would query CPUID to get the counter width, and sign extends the

[kvm-unit-tests PATCH] x86: pmu: Test full-width counter writes support

2020-05-29 Thread Like Xu
When the full-width writes capability is set, use the alternative MSR range to write larger sign counter values (up to GP counter width). Signed-off-by: Like Xu --- lib/x86/msr.h | 1 + x86/pmu.c | 125 -- 2 files changed, 102 insertions(+),

[Qemu-devel PATCH] target/i386: define a new MSR based feature word - FEAT_PERF_CAPABILITIES

2020-05-29 Thread Like Xu
The Perfmon and Debug Capability MSR named IA32_PERF_CAPABILITIES is a feature-enumerating MSR, which only enumerates the feature full-width write (via bit 13) by now which indicates the processor supports IA32_A_PMCx interface for updating bits 32 and above of IA32_PMCx. The existence of MSR

Re: [PATCH v2 2/3] seccomp: Introduce addfd ioctl to seccomp user notifier

2020-05-29 Thread Kees Cook
On Fri, May 29, 2020 at 09:38:28AM +0200, Christian Brauner wrote: > On Fri, May 29, 2020 at 12:31:37AM -0700, Kees Cook wrote: > > Nit: please use BIT() > > Fwiw, I don't think we can use BIT() in uapi headers, see: Argh. How many times do I get to trip over this? :P Thank you; yes, please

Re: Oops at boot with linux-next kernel with IMA boot options

2020-05-29 Thread Takashi Iwai
On Fri, 29 May 2020 09:33:34 +0200, Roberto Sassu wrote: > > > From: Takashi Iwai [mailto:ti...@suse.de] > > On Thu, 28 May 2020 19:36:55 +0200, > > Roberto Sassu wrote: > > > > > > > From: linux-integrity-ow...@vger.kernel.org [mailto:linux-integrity- > > > > ow...@vger.kernel.org] On Behalf Of

Re: [PATCH] staging: gasket: Convert get_user_pages*() --> pin_user_pages*()

2020-05-29 Thread Dan Carpenter
On Fri, May 29, 2020 at 12:38:20AM -0700, John Hubbard wrote: > On 2020-05-28 23:27, Souptick Joarder wrote: > > On Fri, May 29, 2020 at 11:46 AM Souptick Joarder > > wrote: > > > > > > On Thu, May 28, 2020 at 4:34 PM Dan Carpenter > > > wrote: > > > > > > > > On Thu, May 28, 2020 at

Re: [PATCH] KVM: x86: Initialize tdp_level during vCPU creation

2020-05-29 Thread Vitaly Kuznetsov
Sean Christopherson writes: > I'll looking into writing a script to run all selftests with a single > command, unless someone already has one laying around? Is 'make run_tests' in tools/testing/selftests/kvm/ what you're looking for? -- Vitaly

Re: [PATCH] staging: gasket: Convert get_user_pages*() --> pin_user_pages*()

2020-05-29 Thread Dan Carpenter
On Fri, May 29, 2020 at 11:57:09AM +0530, Souptick Joarder wrote: > On Fri, May 29, 2020 at 11:46 AM Souptick Joarder > wrote: > > > > On Thu, May 28, 2020 at 4:34 PM Dan Carpenter > > wrote: > > > > > > On Thu, May 28, 2020 at 02:32:42AM +0530, Souptick Joarder wrote: > > > > This code was

Re: [PATCH v2 1/2] seccomp: notify user trap about unused filter

2020-05-29 Thread Christian Brauner
On Thu, May 28, 2020 at 04:11:00PM -0700, Kees Cook wrote: > On Thu, May 28, 2020 at 05:14:11PM +0200, Christian Brauner wrote: > > * @usage: reference count to manage the object lifetime. > > * get/put helpers should be used when accessing an instance > > * outside of a

[GIT PULL] GNSS updates for 5.8-rc1

2020-05-29 Thread Johan Hovold
The following changes since commit 2ef96a5bb12be62ef75b5828c0aab838ebb29cb8: Linux 5.7-rc5 (2020-05-10 15:16:58 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/johan/gnss.git tags/gnss-5.8-rc1 for you to fetch changes up to

Re: [PATCH v2 1/2] seccomp: notify user trap about unused filter

2020-05-29 Thread Christian Brauner
On Fri, May 29, 2020 at 01:32:03AM +0200, Jann Horn wrote: > On Fri, May 29, 2020 at 1:11 AM Kees Cook wrote: > > On Thu, May 28, 2020 at 05:14:11PM +0200, Christian Brauner wrote: > > > * @usage: reference count to manage the object lifetime. > > > * get/put helpers should be used

Re: [PATCH v5 03/16] spi: dw: Locally wait for the DMA transactions completion

2020-05-29 Thread Andy Shevchenko
On Fri, May 29, 2020 at 7:02 AM Serge Semin wrote: > > Even if DMA transactions are finished it doesn't mean that the SPI > transfers are also completed. It's specifically concerns the Tx-only > SPI transfers, since there might be data left in the SPI Tx FIFO after > the DMA engine notifies that

Re: [PATCH v2 1/2] seccomp: notify user trap about unused filter

2020-05-29 Thread Kees Cook
On Fri, May 29, 2020 at 09:51:37AM +0200, Christian Brauner wrote: > Aside from this being not an issue now, can we please not dump seccomp > filter contents in proc. That sounds terrible and what's the rationale, > libseccomp already let's you dump filter contents while loading and you > could

Re: [PATCH v5 5/7] blktrace: fix debugfs use after free

2020-05-29 Thread Luis Chamberlain
On Wed, May 27, 2020 at 06:15:10PM -0700, Bart Van Assche wrote: > On 2020-05-26 20:12, Luis Chamberlain wrote: > > + /* > > +* Blktrace needs a debugsfs name even for queues that don't register > > +* a gendisk, so it lazily registers the debugfs directory. But that > > +* can get

Re: [PATCH v2 1/2] seccomp: notify user trap about unused filter

2020-05-29 Thread Christian Brauner
On Thu, May 28, 2020 at 04:11:00PM -0700, Kees Cook wrote: > On Thu, May 28, 2020 at 05:14:11PM +0200, Christian Brauner wrote: > > * @usage: reference count to manage the object lifetime. > > * get/put helpers should be used when accessing an instance > > * outside of a

Re: [PATCH] staging: gasket: Convert get_user_pages*() --> pin_user_pages*()

2020-05-29 Thread John Hubbard
On 2020-05-29 00:46, Dan Carpenter wrote: On Fri, May 29, 2020 at 11:57:09AM +0530, Souptick Joarder wrote: On Fri, May 29, 2020 at 11:46 AM Souptick Joarder wrote: On Thu, May 28, 2020 at 4:34 PM Dan Carpenter wrote: On Thu, May 28, 2020 at 02:32:42AM +0530, Souptick Joarder wrote: This

Re: [PATCH v2 2/2] tests: test seccomp filter notifications

2020-05-29 Thread Christian Brauner
On Thu, May 28, 2020 at 10:41:45PM -0700, Kees Cook wrote: > On Thu, May 28, 2020 at 05:14:12PM +0200, Christian Brauner wrote: > > This verifies we're correctly notified when a seccomp filter becomes > > unused when a notifier is in use. > > While you're adding this, can you adjust the other

  1   2   3   4   5   6   7   8   9   10   >