Re: [PATCH 0/8] Detach TPM space code out of the tpm_transmit() flow

2018-11-04 Thread Jarkko Sakkinen
On Sun, Nov 04, 2018 at 07:46:43AM +, Winkler, Tomas wrote: > > Subject: [PATCH 0/8] Detach TPM space code out of the tpm_transmit() flow > > You forgot to version your posts this should be V2 in the subject, right? > Thanks > Tomas Correct. Please hold with the review. I'll send soon v3.

Re: [PATCH -next v2 0/3] sysvipc: introduce STAT_ANY commands

2018-11-04 Thread Michael Kerrisk (man-pages)
Hello Davidlohr, On 3/20/18 7:55 PM, Davidlohr Bueso wrote: > On Thu, 15 Feb 2018, Davidlohr Bueso wrote: > >> Once (if) merged, I will submit the necesary manpage updates. But I'm >> thinking something like: > > Hi Michael, here are the updated manpage entries. As always, please feel > free to

[RFC/RFT][PATCH v3] cpuidle: New timer events oriented governor for tickless systems

2018-11-04 Thread Rafael J. Wysocki
From: Rafael J. Wysocki The venerable menu governor does some thigns that are quite questionable in my view. First, it includes timer wakeups in the pattern detection data and mixes them up with wakeups from other sources which in some cases causes it to expect what essentially would be a timer

Re: [PATCH v3 1/6] staging:iio:ad2s90: Make read_raw return spi_read's error code

2018-11-04 Thread Jonathan Cameron
On Sat, 3 Nov 2018 19:49:43 -0300 Matheus Tavares wrote: > Previously, when spi_read returned an error code inside ad2s90_read_raw, > the code was ignored and IIO_VAL_INT was returned. This patch makes the > function return the error code returned by spi_read when it fails. > > Signed-off-by:

Re: [PATCH v3 2/6] staging:iio:ad2s90: Make probe handle spi_setup failure

2018-11-04 Thread Jonathan Cameron
On Sat, 3 Nov 2018 19:49:44 -0300 Matheus Tavares wrote: > Previously, ad2s90_probe ignored the return code from spi_setup, not > handling its possible failure. This patch makes ad2s90_probe check if > the code is an error code and, if so, do the following: > > - Call dev_err with an

Re: [PATCH v3 3/6] staging:iio:ad2s90: Remove always overwritten assignment

2018-11-04 Thread Jonathan Cameron
On Sat, 3 Nov 2018 19:49:45 -0300 Matheus Tavares wrote: > This patch removes an initial assignment to the variable ret at probe, > that was always overwritten. > > Signed-off-by: Matheus Tavares Applied to the togreg branch of iio.git and pushed out as testing to see if we are both wrong and

Re: [PATCH v7] i2c: Add PCI and platform drivers for the AMD MP2 I2C controller

2018-11-04 Thread Elie Morisse
The errors on module exit and the hang after a read/write timeout should be fixed in v8, someone else reported the same issue here: https://github.com/Syniurge/i2c-amd-mp2/issues/1 Weird that despite a lot of trying by doing random stuff with my touchpad and touchscreen neither never ever timed

[PATCH] ext4: remove code duplication in update_ind/bind/tind_extent_range

2018-11-04 Thread Vasily Averin
update_ind/bind/tind_extent_page() differs by one variable and can be replaced by unified function. These functions are called by similar way and their caller function can be simplified too. Signed-off-by: Vasily Averin --- fs/ext4/migrate.c | 111 ++

Re: [PATCH v3 4/6] staging:iio:ad2s90: Move device registration to the end of probe

2018-11-04 Thread Jonathan Cameron
On Sat, 3 Nov 2018 19:49:46 -0300 Matheus Tavares wrote: > Previously, devm_iio_device_register was being called before the > spi_setup call and the spi_device's max_speed_hz and mode assignments. > This could lead to a race condition since the driver was still being > set up after it was

Re: [alsa-devel] [PATCH] ASoC: skl: always select SND_SOC_HDAC_HDA

2018-11-04 Thread Pierre-Louis Bossart
On 11/2/18 5:03 PM, Arnd Bergmann wrote: On 11/2/18, Pierre-Louis Bossart wrote: On 11/2/18 6:24 AM, Arnd Bergmann wrote: The skylake sound support is written to work both with or without CONFIG_SND_SOC_HDAC_HDA, and uses an #ifdef to decide whether it should link against that. However,

Re: [PATCH v3 5/6] staging:iio:ad2s90: Add IIO_CHAN_INFO_SCALE to channel spec and read_raw

2018-11-04 Thread Jonathan Cameron
On Sat, 3 Nov 2018 19:49:47 -0300 Matheus Tavares wrote: > This patch adds the IIO_CHAN_INFO_SCALE mask to ad2s90_chan and > implements the relative read behavior at ad2s90_read_raw. > > Signed-off-by: Victor Colombo > Signed-off-by: Matheus Tavares Hi Matheus, Somewhere in the process, the

Re: [PATCH v3 6/6] staging:iio:ad2s90: Check channel type at read_raw

2018-11-04 Thread Jonathan Cameron
On Sat, 3 Nov 2018 19:49:48 -0300 Matheus Tavares wrote: > This patch adds a channel type check at the beginning of the > ad2s90_read_raw function. Since ad2s90 has only one channel, it just > checks if the given channel is the expected one and if not, return > -EINVAL. > > Signed-off-by:

Hello

2018-11-04 Thread Dr. Joshua Mene
Good day I am Dr. Joshua Mene a banker, I have a profitable business proposal for you. kindly replyfor more details. Regards Dr. Joshua Mene

Linux Foundation Technical Advisory Board Elections -- Call for nominations

2018-11-04 Thread Chris Mason
Hello everyone, Friendly reminder that the TAB elections are coming soon. The Linux Foundation Technical Advisory Board (TAB) serves as the interface between the kernel development community and the Linux Foundation. The TAB advises the Foundation on kernel-related matters, helps member

[PATCH V6 8/8] KVM: Log ROE violations in system log

2018-11-04 Thread Ahmed Abd El Mawgood
Signed-off-by: Ahmed Abd El Mawgood --- virt/kvm/kvm_main.c| 7 +++ virt/kvm/roe.c | 14 ++ virt/kvm/roe_generic.h | 2 ++ 3 files changed, 23 insertions(+) diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 48c5d9d9474e..d625db7f5350 100644 ---

[PATCH V6 7/8] KVM: X86: Port ROE_MPROTECT_CHUNK to x86

2018-11-04 Thread Ahmed Abd El Mawgood
Apply d->memslot->partial_roe_bitmap to shadow page table entries too. Signed-off-by: Ahmed Abd El Mawgood --- arch/x86/kvm/roe.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/x86/kvm/roe.c b/arch/x86/kvm/roe.c index cd3e6944c15f..b2b50fbcd598 100644 ---

[PATCH V6 2/8] KVM: X86: Add arbitrary data pointer in kvm memslot iterator functions

2018-11-04 Thread Ahmed Abd El Mawgood
This will help sharing data into the slot_level_handler callback. In my case I need to a share a counter for the pages traversed to use it in some bitmap. Being able to send arbitrary memory pointer into the slot_level_handler callback made it easy. Signed-off-by: Ahmed Abd El Mawgood ---

[PATCH V6 3/8] KVM: Document Memory ROE

2018-11-04 Thread Ahmed Abd El Mawgood
ROE version documented here is implemented in the next 2 patches Signed-off-by: Ahmed Abd El Mawgood --- Documentation/virtual/kvm/hypercalls.txt | 31 1 file changed, 31 insertions(+) diff --git a/Documentation/virtual/kvm/hypercalls.txt

Call Trace: ...event ... with 4.18.17

2018-11-04 Thread Toralf Förster
At a stable hardened Gentoo Linxu I observed with 4.18.17 at a headless server: Nov 4 18:13:27 mr-fox kernel: sd 1:0:0:0: [sdb] Attached SCSI disk Nov 4 18:13:27 mr-fox kernel: EXT4-fs (sda4): mounted filesystem with ordered data mode. Opts: (null) Nov 4 18:13:27 mr-fox kernel: VFS: Mounted

4.19.0: BUG: KASAN: use-after-free in memcmp+0x24/0x70

2018-11-04 Thread Toralf Förster
Got at a stable hardened Gentoo this splat (BTW - no chance to get 4.19.0 nor 4.19.1 up and running at this headless server for longer than 1-2 minutes - it dies w/o any further log message) Oct 22 22:24:58 mr-fox kernel: == Oct

[PATCH] ext4: missing !bh check in ext4_xattr_inode_write()

2018-11-04 Thread Vasily Averin
ext4_getblk() called with map_flags=0 can return NULL, it can lead to oops on bh dereferemce Fixes e50e5129f384 ("ext4: xattr-in-inode support") Cc: sta...@kernel.org # 4.13 Signed-off-by: Vasily Averin --- fs/ext4/xattr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/ext4/xattr.c

Re: perf script doesn't dump a normal call trace

2018-11-04 Thread Jiri Olsa
On Sat, Nov 03, 2018 at 06:36:21PM +0900, Xin Long wrote: > On Fri, Nov 2, 2018 at 7:26 PM Jiri Olsa wrote: > > > > On Fri, Nov 02, 2018 at 03:36:13PM +0900, Xin Long wrote: > > > On upstream kernel(4.19) or RHEL-8 kernel(4.18.0): > > > > > > # perf record -e 'skb:consume_skb' -ag > > > ^C[ perf

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

2018-11-04 Thread syzbot
syzbot has found a reproducer for the following crash on: HEAD commit:71e56028173b Merge branch 'sched-urgent-for-linus' of git:.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=14c5cfe540 kernel config:

Re: [PATCH] perf: replace automatic const char[] variables by statics

2018-11-04 Thread Jiri Olsa
On Sat, Nov 03, 2018 at 12:06:23AM +0100, Rasmus Villemoes wrote: > An automatic const char[] variable gets initialized at runtime, just > like any other automatic variable. For long strings, that uses a lot of > stack and wastes time building the string; e.g. for the "No %s > allocation

Re: [Patch v4 17/18] x86/speculation: Update SPEC_CTRL MSRs of remote CPUs

2018-11-04 Thread Thomas Gleixner
Tim, On Tue, 30 Oct 2018, Tim Chen wrote: > void arch_set_security(struct task_struct *tsk, unsigned int value) > diff --git a/arch/x86/kernel/process.c b/arch/x86/kernel/process.c > index 943e90d..048b7f4b 100644 > --- a/arch/x86/kernel/process.c > +++ b/arch/x86/kernel/process.c > @@ -426,7

Re: [PATCH RFC] hist lookups

2018-11-04 Thread Jiri Olsa
On Fri, Nov 02, 2018 at 11:30:03PM -0700, David Miller wrote: > From: David Miller > Date: Wed, 31 Oct 2018 09:08:16 -0700 (PDT) > > > From: Jiri Olsa > > Date: Wed, 31 Oct 2018 16:39:07 +0100 > > > >> it'd be great to make hist processing faster, but is your main target here > >> to get the

Schnappen Sie sich dieses begrenzte Angebot und bewerben Sie sich jetzt !!!!

2018-11-04 Thread Mr Davis Wright
Wir sind ein lizenzierter Geldverleiher und bieten einen schnellen Kredit und eine schnelle Genehmigung zu einem Zinssatz von 2%. Wir bieten Rechtskreditlösungen für Personen und Unternehmen, die eine Finanzierung benötigen (Fonds). Wir verstehen den emotionalen und mentalen Stress, sich im

Re: [PATCH v3 1/7] Fix "x86/alternatives: Lockdep-enforce text_mutex in text_poke*()"

2018-11-04 Thread Thomas Gleixner
On Fri, 2 Nov 2018, Nadav Amit wrote: > text_mutex is expected to be held before text_poke() is called, but we > cannot add a lockdep assertion since kgdb does not take it, and instead > *supposedly* ensures the lock is not taken and will not be acquired by > any other core while text_poke() is

Re: [PATCH v2] x86/build: Build VSMP support only if CONFIG_PCI is selected

2018-11-04 Thread Thomas Gleixner
Eial, On Thu, 1 Nov 2018, Eial Czerwacki wrote: > Subject: x86/build: Build VSMP support only if CONFIG_PCI is selected That's not what the patch does, right? > vsmp dependency on pv_irq_ops removed some years ago, so now let's clean > it up from vsmp_64.c. > > In short, "cap & ctl & (1 <<

[PATCH] s390: numa: Export __node_distance

2018-11-04 Thread Guenter Roeck
__node_distance is used by nvme, resulting in: ERROR: "__node_distance" [drivers/nvme/host/nvme-core.ko] undefined! when trying to build nvme as module. Fixes: f333444708f8 ("nvme: take node locality into account when selecting a path") Cc: Christoph Hellwig Signed-off-by: Guenter Roeck ---

Re: [PATCH v2 0/7] Input: sx8654 - reset-gpio, sx865[056] support, etc.

2018-11-04 Thread Richard Leitner
Hi, friendly question for the status of this patchset of mine. thanksRichard.L On 10/17/18 2:51 PM, Richard Leitner wrote: Add reset-gpio, sx8654[056] and common of_touchscreen functions support for the sx8654 driver. Changes v2: - use devm_gpiod_get_optional in probe instead of in

[PATCH] ARM: dts: qcom: msm8974-hammerhead: add WiFi support

2018-11-04 Thread Brian Masney
From: Jonathan Marek This patch adds WiFi support to the LG Nexus 5 (hammerhead) phone. Signed-off-by: Jonathan Marek [masn...@onstation.org: Enabled wlan_regulator_pin and wlan_sleep_clk_pin] Signed-off-by: Brian Masney --- .../qcom-msm8974-lge-nexus5-hammerhead.dts| 70

[PATCH] checkpatch: Warn on const char foo[] = "bar"; declarations

2018-11-04 Thread Joe Perches
These declarations should generally be static const to avoid poor compilation and runtime performance where compilers tend to initialize the const declaration for every call instead of using .rodata for the string. Miscellanea: o Convert spaces to tabs for indentation in 2 adjacent checks

Re: [GIT PULL] vfs: fix many problems in vfs clone/dedupe implementation

2018-11-04 Thread Dave Chinner
On Sat, Nov 03, 2018 at 10:13:37AM -0700, Linus Torvalds wrote: > On Fri, Nov 2, 2018 at 4:36 PM Dave Chinner wrote: > > > > On Fri, Nov 02, 2018 at 09:35:23AM -0700, Linus Torvalds wrote: > > > > > > I don't love the timing of this at the end of the merge window, but > > > pulled, > > > > When

[PATCH 2/2] mm: avoid unnecessary swap_info_struct allocation

2018-11-04 Thread Vasily Averin
Currently newly allocated swap_info_struct can be quickly freed. This patch avoid uneccessary high-order page allocation and helps to decrease the memory pressure. Signed-off-by: Vasily Averin --- mm/swapfile.c | 18 +- 1 file changed, 13 insertions(+), 5 deletions(-) diff

[PATCH 1/2] mm: use kvzalloc for swap_info_struct allocation

2018-11-04 Thread Vasily Averin
commit a2468cc9bfdf ("swap: choose swap device according to numa node") increased size of swap_info_struct up to 44 Kbytes, now it requires 4th order page. Switch to kvzmalloc allows to avoid unexpected allocation failures. Signed-off-by: Vasily Averin --- mm/swapfile.c | 6 +++--- 1 file

Re: [GIT PULL] UBIFS updates for 4.20-rc1

2018-11-04 Thread Linus Torvalds
On Sun, Nov 4, 2018 at 11:25 AM Richard Weinberger wrote: > > I'm sorry to pester you a second time. > The first ping had you only in CC, > let's hope this mail passes your spam filter. Interesting. Your two first emails used 'torva...@linuxfoundation.org" (without the dash between "linux" and

Re: [GIT PULL] UBIFS updates for 4.20-rc1

2018-11-04 Thread Linus Torvalds
On Wed, Oct 31, 2018 at 2:22 PM Richard Weinberger wrote: > > This pull request contains updates for UBIFS: Now pulled, Linus

Re: [GIT PULL] UBIFS updates for 4.20-rc1

2018-11-04 Thread Richard Weinberger
Am Sonntag, 4. November 2018, 23:45:50 CET schrieb Linus Torvalds: > On Sun, Nov 4, 2018 at 11:25 AM Richard Weinberger > wrote: > > > > I'm sorry to pester you a second time. > > The first ping had you only in CC, > > let's hope this mail passes your spam filter. > > Interesting. Your two first

Re: linux-next: Tree for Oct 31 (vboxguest)

2018-11-04 Thread Changbin Du
On Sun, Nov 04, 2018 at 11:43:44AM +0900, Masahiro Yamada wrote: > On Sat, Nov 3, 2018 at 12:55 AM Arnd Bergmann wrote: > > > > On 11/2/18, Masahiro Yamada wrote: > > > On Thu, Nov 1, 2018 at 11:32 PM Changbin Du wrote: > > >> On Thu, Nov 01, 2018 at 12:32:48PM +0900, Masahiro Yamada wrote: > >

Linux 4.20-rc1

2018-11-04 Thread Linus Torvalds
So I did debate calling it 5.0, but if we all help each other, I'm sure we can count to 20. It's a nice round number, and I didn't want to make a pattern of it. I think 5.0 happens next year, because then I *really* run out of fingers and toes. Anyway, 4.20-rc1 is tagged and pushed out, and the

Re: [PATCH] mm, memory_hotplug: teach has_unmovable_pages about of LRU migrateable pages

2018-11-04 Thread Baoquan He
Hi Michal, On 11/02/18 at 04:55pm, Michal Hocko wrote: > From: Michal Hocko > > Baoquan He has noticed that 15c30bc09085 ("mm, memory_hotplug: make > has_unmovable_pages more robust") is causing memory offlining failures > on a movable node. After a further debugging it turned out that >

Re: [PATCH] perf top: Display the LBR stats in callchain entry

2018-11-04 Thread Jin, Yao
Hi, Any comments for this patch? Thanks Jin Yao On 10/31/2018 7:06 PM, Jin Yao wrote: Perf report has supported the displaying of LBR stats (such as cycles, predicted%) in callchain entry. For example, perf report --branch-history --stdio --1.01%--intel_idle mwait.h:29 intel_idle

Re: [PATCH v4 3/3] iio: magnetometer: Add driver support for PNI RM3100

2018-11-04 Thread Song Qiang
On 2018/11/2 下午5:24, Jonathan Cameron wrote: On Fri, 2 Nov 2018 15:55:27 +0800 Song Qiang wrote: On 2018/10/21 下午10:14, Jonathan Cameron wrote: On Thu, 18 Oct 2018 16:24:15 +0800 Song Qiang wrote: ... +static irqreturn_t rm3100_trigger_handler(int irq, void *p) +{ + struct

[RESEND PATCH] sched/fair: fix a comment in task_numa_fault()

2018-11-04 Thread Yi Wang
Fix the comment in task_numa_fault() to avoid confusing. Signed-off-by: Yi Wang Reviewed-by: Xi Xu --- kernel/sched/fair.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 908c9cd..6430c0a 100644 --- a/kernel/sched/fair.c

Re: [PATCH 1/2] mm: use kvzalloc for swap_info_struct allocation

2018-11-04 Thread Huang, Ying
Vasily Averin writes: > commit a2468cc9bfdf ("swap: choose swap device according to numa node") > increased size of swap_info_struct up to 44 Kbytes, now it requires > 4th order page. Why swap_info_struct could be so large? Because MAX_NUMNODES could be thousands so that 'avail_lists' field

Re: [PATCH RFC] hist lookups

2018-11-04 Thread David Miller
From: Jiri Olsa Date: Sun, 4 Nov 2018 21:18:21 +0100 > do you have some code I could check on? All I have is this patch which parallelizes the mmap readers in perf top. It's not complete and you need to add proper locking, particularly around the machine__resolve() call. diff --git

Re: [PATCH] net: skbuff.h: remove unnecessary unlikely()

2018-11-04 Thread David Miller
Networking patches must be submitted to net...@vger.kernel.org Thank you.

Re: [PATCH 2/2] mm: avoid unnecessary swap_info_struct allocation

2018-11-04 Thread Huang, Ying
Vasily Averin writes: > Currently newly allocated swap_info_struct can be quickly freed. > This patch avoid uneccessary high-order page allocation and helps > to decrease the memory pressure. I think swapon/swapoff are rare operations, so it will not increase the memory pressure much. Best

[PATCH] cpufreq: imx6q: add return value check for voltage scale

2018-11-04 Thread Anson Huang
Add return value check for voltage scale when ARM clock rate change fail. Signed-off-by: Anson Huang --- drivers/cpufreq/imx6q-cpufreq.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/cpufreq/imx6q-cpufreq.c b/drivers/cpufreq/imx6q-cpufreq.c index

[PATCH V2 2/2] clocksource: imx-gpt: add necessary kfree to avoid resource leak

2018-11-04 Thread Anson Huang
kfree should be called to free resource in error path before return. Signed-off-by: Anson Huang --- drivers/clocksource/timer-imx-gpt.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/clocksource/timer-imx-gpt.c b/drivers/clocksource/timer-imx-gpt.c index

[PATCH V2 1/2] clocksource: imx-gpt: add support for ARM64

2018-11-04 Thread Anson Huang
This patch allows building and compile-testing the i.MX GPT driver also for ARM64. The delay_timer is only supported on ARMv7. Signed-off-by: Anson Huang --- no change since V1. drivers/clocksource/Kconfig | 2 +- drivers/clocksource/timer-imx-gpt.c | 4 2 files changed, 5

Re: [PATCH v5 3/3] iio: magnetometer: Add driver support for PNI RM3100

2018-11-04 Thread Song Qiang
On 2018/11/4 上午1:19, Jonathan Cameron wrote: On Fri, 2 Nov 2018 15:42:09 +0800 Song Qiang wrote: ... +int rm3100_common_probe(struct device *dev, struct regmap *regmap, int irq) +{ + struct iio_dev *indio_dev; + struct rm3100_data *data; + unsigned int tmp; + int

[PATCH 04/12] gfs2: properly initial file_lock used for unlock.

2018-11-04 Thread NeilBrown
Rather than assuming all-zeros is sufficient, use the available API to initialize the file_lock structure use for unlock. VFS-level changes will soon make it important that the list_heads in file_lock are always properly initialized. Signed-off-by: NeilBrown --- fs/gfs2/file.c | 10 +-

[PATCH 03/12] NFS: use locks_copy_lock() to copy locks.

2018-11-04 Thread NeilBrown
Using memcpy() to copy lock requests leave the various list_head in an inconsistent state. As we will soon attach a list of conflicting request to another pending request, we need these lists to be consistent. So change NFS to use locks_init_lock/locks_copy_lock instead of memcpy. Signed-off-by:

[PATCH 02/12] fs/locks: split out __locks_wake_up_blocks().

2018-11-04 Thread NeilBrown
This functionality will be useful in future patches, so split it out from locks_wake_up_blocks(). Signed-off-by: NeilBrown --- fs/locks.c | 27 --- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/fs/locks.c b/fs/locks.c index a6c6d601286c..b8f33792a0a6

[PATCH 00/12] Series short description

2018-11-04 Thread NeilBrown
Here is the respin on this series with the file_lock properly initlized for unlock requests. I found one that I had missed before - in locks_remove_flock() The change makes this code smaller! Original series description: If you have a many-core machine, and have many threads all wanting to

[PATCH 01/12] fs/locks: rename some lists and pointers.

2018-11-04 Thread NeilBrown
struct file lock contains an 'fl_next' pointer which is used to point to the lock that this request is blocked waiting for. So rename it to fl_blocker. The fl_blocked list_head in an active lock is the head of a list of blocked requests. In a request it is a node in that list. These are two

[PATCH 05/12] ocfs2: properly initial file_lock used for unlock.

2018-11-04 Thread NeilBrown
Rather than assuming all-zeros is sufficient, use the available API to initialize the file_lock structure use for unlock. VFS-level changes will soon make it important that the list_heads in file_lock are always properly initialized. Signed-off-by: NeilBrown --- fs/ocfs2/locks.c | 10

[PATCH 07/12] fs/locks: allow a lock request to block other requests.

2018-11-04 Thread NeilBrown
Currently, a lock can block pending requests, but all pending requests are equal. If lots of pending requests are mutually exclusive, this means they will all be woken up and all but one will fail. This can hurt performance. So we will allow pending requests to block other requests. Only the

[PATCH 09/12] fs/locks: change all *_conflict() functions to return bool.

2018-11-04 Thread NeilBrown
posix_locks_conflict() and flock_locks_conflict() both return int. leases_conflict() returns bool. This inconsistency will cause problems for the next patch if not fixed. So change posix_locks_conflict() and flock_locks_conflict() to return bool. Also change the locks_conflict() helper. And

[PATCH 10/12] fs/locks: create a tree of dependent requests.

2018-11-04 Thread NeilBrown
When we find an existing lock which conflicts with a request, and the request wants to wait, we currently add the request to a list. When the lock is removed, the whole list is woken. This can cause the thundering-herd problem. To reduce the problem, we make use of the (new) fact that a pending

[PATCH 08/12] fs/locks: always delete_block after waiting.

2018-11-04 Thread NeilBrown
Now that requests can block other requests, we need to be careful to always clean up those blocked requests. Any time that we wait for a request, we might have other requests attached, and when we stop waiting, we must clean them up. If the lock was granted, the requests might have been moved to

[PATCH 06/12] locks: use properly initialized file_lock when unlocking.

2018-11-04 Thread NeilBrown
Both locks_remove_posix() and locks_remove_flock() use a struct file_lock without calling locks_init_lock() on it. This means the various list_heads are not initialized, which will become a problem with a later patch. So change them both to initialize properly. For flock locks, this involves

[PATCH 12/12] VFS: locks: remove unnecessary white space.

2018-11-04 Thread NeilBrown
- spaces before tabs, - spaces at the end of lines, - multiple blank lines, - blank lines before EXPORT_SYMBOL, can all go. Signed-off-by: NeilBrown --- fs/locks.c | 33 - 1 file changed, 12 insertions(+), 21 deletions(-) diff --git a/fs/locks.c

[PATCH 11/12] locks: merge posix_unblock_lock() and locks_delete_block()

2018-11-04 Thread NeilBrown
posix_unblock_lock() is not specific to posix locks, and behaves nearly identically to locks_delete_block() - the former returning a status while the later doesn't. So discard posix_unblock_lock() and use locks_delete_block() instead, after giving that function an appropriate return value.

[PATCH v3 00/16] Remove nested TPM operations

2018-11-04 Thread Jarkko Sakkinen
[was Detach TPM space code out of the tpm_transmit() flow but the scope expanded a bit.] Make the changes necessary to detach TPM space code and TPM activation code out of the tpm_transmit() flow because of both of these can cause nested tpm_transmit() calls. The nesteds calls make the whole

[PATCH v3 01/16] tpm: use tpm_buf in tpm_transmit_cmd() as the IO parameter

2018-11-04 Thread Jarkko Sakkinen
Since we pass an initialized struct tpm_buf instance in every call site now, it is cleaner to pass that directly to the tpm_transmit_cmd() as the TPM command/response buffer. Fine-tune a little bit tpm_transmit() and tpm_transmit_cmd() comments while doing this. Signed-off-by: Jarkko Sakkinen

[PATCH v3 03/16] tpm: return 0 from pcrs_show() when tpm1_pcr_read() fails

2018-11-04 Thread Jarkko Sakkinen
Do not print partial list of PCRs when tpm1_pcr_read() fails but instead return 0 from pcrs_show(). This is consistent behavior with other sysfs functions. Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm-sysfs.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git

[PATCH v3 06/16] tpm: clean up tpm_try_transmit() error handling flow

2018-11-04 Thread Jarkko Sakkinen
Move locking, locality handling and power management to tpm_transmit() in order to simplify the flow. Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm-interface.c | 90 ++-- 1 file changed, 39 insertions(+), 51 deletions(-) diff --git

[PATCH v3 07/16] tpm: access command header through struct in tpm_try_transmit()

2018-11-04 Thread Jarkko Sakkinen
Instead of accessing fields of the command header through offsets to the raw buffer, it is a better idea to use the header struct pointer that is already used elsewhere in the function. Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm-interface.c | 4 ++-- 1 file changed, 2

[PATCH v3 04/16] tpm: call tpm2_flush_space() on error in tpm_try_transmit()

2018-11-04 Thread Jarkko Sakkinen
Always call tpm2_flush_space() on failure in tpm_try_transmit() so that the volatile memory of the TPM gets cleared. If /dev/tpm0 does not have sufficient permissions (usually it has), this could leak to the leakage of TPM objects. Through /dev/tpmrm0 this issue does not raise new security

[PATCH v3 02/16] tpm: fix invalid return value in pubek_show()

2018-11-04 Thread Jarkko Sakkinen
Return zero when tpm_buf_init() fails as we do for other functions in tpm-sysfs.c. Fixes: da379f3c1db0c ("tpm: migrate pubek_show to struct tpm_buf") Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm-sysfs.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git

[PATCH v3 05/16] tpm: print tpm2_commit_space() error inside tpm2_commit_space()

2018-11-04 Thread Jarkko Sakkinen
The error logging for tpm2_commit_space() is in a wrong place. This commit moves it inside that function. Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm2-space.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/char/tpm/tpm2-space.c

[PATCH v3 08/16] tpm: move tpm_validate_commmand() to tpm2-space.c

2018-11-04 Thread Jarkko Sakkinen
Move tpm_validate_command() to tpm2-space.c and make it part of the tpm2_prepare_space() flow. Make cc resolution as part of the TPM space functionality in order to detach it from rest of the tpm_transmit() flow. Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm-interface.c | 72

[PATCH v3 09/16] tpm: encapsulate tpm_dev_transmit()

2018-11-04 Thread Jarkko Sakkinen
Encapsulate tpm_transmit() call pattern to tpm_dev_transmit() because it is identically used from two places. Use unlocked version of tpm_transmit() so that we are able to move the calls to tpm2_prepare_space() and tpm2_commit_space() later on to this new function. Signed-off-by: Jarkko Sakkinen

[PATCH v3 10/16] tpm: move TPM space code out of tpm_transmit()

2018-11-04 Thread Jarkko Sakkinen
Prepare and commit TPM space before and after calling tpm_transmit() instead of doing that inside tpm_transmit(). After this change we can remove TPM_TRANSMIT_NESTED flag from tpm2_prepare_space() and tpm2_commit_space() and replace it with TPM_TRANSMIT_UNLOCKED. Signed-off-by: Jarkko Sakkinen

[PATCH v3 12/16] tpm: use tpm_try_get_ops() in tpm-sysfs.c.

2018-11-04 Thread Jarkko Sakkinen
Use tpm_try_get_ops() in tpm-sysfs.c so that we can consider moving other decorations (locking, localities, power management for example) inside it. This direction can be of course taken only after other call sites for tpm_transmit() have been treated in the same way. Signed-off-by: Jarkko

[PATCH v3 13/16] tpm: remove TPM_TRANSMIT_UNLOCKED flag

2018-11-04 Thread Jarkko Sakkinen
Added locking as part of tpm_try_get_ops() and tpm_put_ops() as they are anyway used in most of the call sites except in tpmrm_release() where we take the locks manually. Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm-chip.c | 2 ++ drivers/char/tpm/tpm-dev-common.c | 4 +---

[PATCH v3 15/16] tpm: take TPM chip power gating out of tpm_transmit()

2018-11-04 Thread Jarkko Sakkinen
Call tpm_chip_start() and tpm_chip_stop() in * tpm_try_get_ops() and tpm_put_ops() * tpm_chip_register() * tpm2_del_space() And remove these calls from tpm_transmit(). The core reason for this change is that in tpm_vtpm_proxy a locality change requires a virtual TPM command (a command made up

[PATCH v3 14/16] tpm: introduce tpm_chip_start() and tpm_chip_stop()

2018-11-04 Thread Jarkko Sakkinen
Encapsulate power gating and locality functionality to tpm_chip_start() and tpm_chip_stop() in order to clean up the branching mess in tpm_transmit(). Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm-chip.c | 110 +++ drivers/char/tpm/tpm-interface.c |

[PATCH v3 16/16] tpm: remove @flags from tpm_transmit()

2018-11-04 Thread Jarkko Sakkinen
Remove @flags from tpm_transmit() API. It is no longer used for anything. Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm-chip.c | 32 ++--- drivers/char/tpm/tpm-dev-common.c | 2 +- drivers/char/tpm/tpm-interface.c | 18 drivers/char/tpm/tpm-sysfs.c

multiplexing /dev/console to all console= entries

2018-11-04 Thread Dusty Mabe
Hi Greg, Jiri, I'd like to bring up a question about multiplexing /dev/console to all specified console= devices on the kernel command line rather than just the last entry. In my personal experience using linux systems and also in my experience dealing with users of various server images

RE: [Resend PATCH v13 08/12] KVM: x86: Add Intel PT context switch for each vcpu

2018-11-04 Thread Kang, Luwei
> >> If you "have to enable or disable anything" it means you have to > >> override the default. But the default in this patches is "no change > >> compared to before the patches", leaving tracing of both host and > >> guest entirely to the host, so I don't understand your remark. What > >>

Re: [PATCH] misc: mic: fix a DMA pool free failure

2018-11-04 Thread Sudeep Dutt
On Thu, 2018-10-18 at 14:46 -0500, Wenwen Wang wrote: > In _scif_prog_signal(), a DMA pool is allocated if the MIC Coprocessor is > not X100, i.e., the boolean variable 'x100' is false. This DMA pool will be > freed eventually through the callback function scif_prog_signal_cb() with > the

Re: [PATCH v3] ARM: dts: imx6sx-sdb: Fix enet phy regulator

2018-11-04 Thread Shawn Guo
On Mon, Oct 08, 2018 at 03:28:01PM +, Leonard Crestez wrote: > Bindings for "fixed-regulator" only explicitly support "gpio" property, > not "gpios". Fix by correcting the property name. > > The enet PHYs on imx6sx-sdb needs to be explicitly reset after a power > cycle, this can be handled by

Re: [PATCH 7/7] ARM: dts: imx6: add mmdc ipg clock

2018-11-04 Thread Shawn Guo
On Fri, Aug 31, 2018 at 03:53:18PM +0800, Anson Huang wrote: > i.MX6 SoCs has MMDC clock gates in CCM CCGR, add > clock property for MMDC driver's clock operation. > > Signed-off-by: Anson Huang Applied, thanks.

Re: [PATCH] cpufreq: imx6q: add return value check for voltage scale

2018-11-04 Thread Viresh Kumar
On 05-11-18, 00:59, Anson Huang wrote: > Add return value check for voltage scale when ARM clock > rate change fail. > > Signed-off-by: Anson Huang > --- > drivers/cpufreq/imx6q-cpufreq.c | 7 ++- > 1 file changed, 6 insertions(+), 1 deletion(-) > > diff --git

[PATCH RCU -stable] Make need_resched() respond to urgent RCU-QS needs

2018-11-04 Thread Paul E. McKenney
commit 92aa39e9dc77 upstream. The per-CPU rcu_dynticks.rcu_urgent_qs variable communicates an urgent need for an RCU quiescent state from the force-quiescent-state processing within the grace-period kthread to context switches and to cond_resched(). Unfortunately, such urgent needs are not

[PATCH] mtd: nand: drop kernel-doc notation for a deleted function parameter

2018-11-04 Thread Randy Dunlap
From: Randy Dunlap Remove kernel-doc notation for a deleted function parameter to prevent a kernel-doc warning: ../drivers/mtd/nand/raw/nand_base.c:603: warning: Excess function parameter 'mtd' description in 'panic_nand_wait' Fixes: f1d46942e823 ("mtd: rawnand: Pass a nand_chip object to

[PATCH] kernel/resource.c: fix new kernel-doc warnings

2018-11-04 Thread Randy Dunlap
From: Randy Dunlap Fix kernel-doc warnings in kernel/resource.c. The first group of warnings is caused by a "/**" kernel-doc notation marker but the function comments are not in kernel-doc format. Also add another error return value here. ../kernel/resource.c:337: warning: Function parameter or

[PATCH] kbuild: consolidate Clang compiler flags

2018-11-04 Thread Masahiro Yamada
Add basic options for Clang such as --target, --prefix, --gcc-toolchain, -no-integrated-as to a single variable CLANG_FLAGS. Signed-off-by: Masahiro Yamada --- Makefile | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 93315eb..58c838a

Re: Grant

2018-11-04 Thread M. M. Fridman
I, Mikhail Fridman have selected you specifically as one of my beneficiaries for my Charitable Donation of $5 Million Dollars, Check the link below for confirmation: https://www.rt.com/business/343781-mikhail-fridman-will-charity/ I await your earliest response for further directives. Best

Re: linux-next: Tree for Oct 31 (vboxguest)

2018-11-04 Thread Masahiro Yamada
On Mon, Nov 5, 2018 at 9:54 AM Changbin Du wrote: > > On Sun, Nov 04, 2018 at 11:43:44AM +0900, Masahiro Yamada wrote: > > On Sat, Nov 3, 2018 at 12:55 AM Arnd Bergmann wrote: > > > > > > On 11/2/18, Masahiro Yamada wrote: > > > > On Thu, Nov 1, 2018 at 11:32 PM Changbin Du > > > > wrote: > >

The CONFIG_UNWINDER_ORC bug is back.

2018-11-04 Thread Rob Landley
Do "make defconfig" on x86-64, fire up menuconfig and select the frame pointer uwinder (under kernel hacking -> choose unwinder) and: $ make Makefile:966: *** "Cannot generate ORC metadata for CONFIG_UNWINDER_ORC=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel". Stop.

[PATCH RFC 0/3] Add support for using external dma in SDHCI

2018-11-04 Thread Chunyan Zhang
Currently the generic SDHCI code in the Linux kernel supports the SD standard DMA integrated into the host controller but does not have any support for external DMA controllers implemented using dmaengine meaning that custom code is needed for any systems that use a generic DMA controller with

[PATCH] PCI: Add HXT vendor ID and ACS quirk

2018-11-04 Thread Shunyong Yang
Add the HXT vendor ID to pci_ids.h and use it in quirks. As the design of HXT SD4800 ACS feature is the same as QCOM QDF2xxx, pci_quirk_qcom_rp_acs() is reused for SD4800 quirk. Cc: Joey Zheng Signed-off-by: Shunyong Yang --- drivers/pci/quirks.c| 2 ++ include/linux/pci_ids.h | 2 ++ 2

[PATCH RFC 3/3] dt-bindings: sdhci-omap: Add example for using dmaengine

2018-11-04 Thread Chunyan Zhang
sdhci-omap can support both external dma controllers via dmaengine framework as well as ADMA in which the controller acts as DMA master. Signed-off-by: Chunyan Zhang --- Documentation/devicetree/bindings/mmc/sdhci-omap.txt | 7 +++ 1 file changed, 7 insertions(+) diff --git

[PATCH RFC 1/3] mmc: sdhci: add support for using external DMA devices

2018-11-04 Thread Chunyan Zhang
Some standard SD host controller can support both external dma controllers as well as ADMA in which the controller acts as DMA master. Currently the generic SDHCI code supports ADMA/SDMA integrated into the host controller but does not have any support for external DMA controllers implemented

[PATCH RFC 2/3] mmc: sdhci-omap: Add using external dma

2018-11-04 Thread Chunyan Zhang
sdhci-omap can support both external dma controllers via dmaengine framework as well as ADMA in which the controller acts as DMA master. Signed-off-by: Chunyan Zhang --- drivers/mmc/host/sdhci-omap.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/mmc/host/sdhci-omap.c

<    3   4   5   6   7   8   9   >