Re: [PATCH v5 2/3] x86/topology: Avoid wasting 128k for package id array

2017-11-10 Thread Andi Kleen
> > All of that works. There is no way to make sure that a lookup is fully > > serialized against a concurrent update. Even if the lookup holds > > cpu_read_lock() the new package might arrive right after the unlock. > > > > Thanks Thomas. > > Andi, do you want to take a look at this? I was ori

Re: vDSO maximum stack usage, stack probes, and -fstack-check

2017-11-10 Thread Andy Lutomirski
On Fri, Nov 10, 2017 at 2:40 AM, Hector Martin 'marcan' wrote: > As far as I know, the vDSO specs (both Documentation/ABI/stable/vdso and > `man 7 vdso`) make no mention of how much stack the vDSO functions are > allowed to use. They just say "the usual C ABI", which makes no guarantees. > > It tu

[PATCH] cramfs: fix MTD dependency

2017-11-10 Thread Arnd Bergmann
With CONFIG_MTD=m and CONFIG_CRAMFS=y, we now get a link failure: fs/cramfs/inode.o: In function `cramfs_mount': inode.c:(.text+0x220): undefined reference to `mount_mtd' fs/cramfs/inode.o: In function `cramfs_mtd_fill_super': inode.c:(.text+0x6d8): undefined reference to `mtd_point' inode.c:(.tex

[PATCH 2/2] ASoC: rt5514: work around link error

2017-11-10 Thread Arnd Bergmann
The main rt5514 driver optionally calls into the SPI back-end to load the firmware. This causes a link error when one driver selects rt5514 as built-in and another driver selects rt5514-spi as a loadable module: sound/soc/codecs/rt5514.o: In function `rt5514_dsp_voice_wake_up_put': rt5514.c:(.text

[PATCH 1/2] ASoC: rt5514: mark PM functions as __maybe_unused

2017-11-10 Thread Arnd Bergmann
The new functions are only used when CONFIG_PM is enabled, leading to a harmless warning: sound/soc/codecs/rt5514-spi.c:474:12: error: 'rt5514_resume' defined but not used [-Werror=unused-function] sound/soc/codecs/rt5514-spi.c:464:12: error: 'rt5514_suspend' defined but not used [-Werror=unused

Re: [PATCH 2/2] rtc: at91rm9200: fix reading alarm value

2017-11-10 Thread Nicolas Ferre
On 10/11/2017 at 09:59, Alexandre Belloni wrote: > When alarm value is read at boot time, at91_alarm_year is not yet set to > the proper value so the year is always set to 1900. > > This results in that kind of message at boot: > rtc rtc0: invalid alarm value: 1900-1-14 2:11:39 > > There is no wa

Re: [PATCH 1/2] sched: force update of blocked load of idle cpus

2017-11-10 Thread Brendan Jackman
Hi Todd, On Thu, Nov 09 2017 at 19:56, Todd Kjos wrote: >> @@ -8683,6 +8692,10 @@ static void nohz_balancer_kick(void) >> >> if (test_and_set_bit(NOHZ_BALANCE_KICK, nohz_flags(ilb_cpu))) >> return; >> + >> + if (only_update) >> + set_bit(NOHZ_STATS_KICK

Re: [PATCH v3 2/3] drivers: hwmon: Add W83773G driver

2017-11-10 Thread Guenter Roeck
On 11/08/2017 11:09 PM, Lei YU wrote: Nuvoton W83773G is a hardware monitor IC providing one local temperature and two remote temperature sensors. Signed-off-by: Lei YU Nicely done. Couple of nitpicks left. Thanks! Guenter --- v2: - Rewrite the driver using regmap - Add offset and upda

N900 kernel support

2017-11-10 Thread Pali Rohár
Hi! Yesterday I updated https://elinux.org/N900 page based on data which I found in linux git repository. So driver status should be up-to-date. I would like to ask, what is current status of the bluetooth driver? It is working on N900, or it has a problems? Also are the any plans for bringing fr

Re: [alsa-devel] [PATCH] ASoC: Intel: common: Replace sst_acpi_check_hid with acpi_dev_present

2017-11-10 Thread Pierre-Louis Bossart
On 11/10/2017 05:33 AM, Hans de Goede wrote: Hi, On 09-11-17 22:07, Jeremy Cline wrote: Replace the sst_acpi_check_hid helper function added in commit 915ae2b9f0fe ("ASoC: Intel: Create a helper to search for matching machine") with the generic acpi_dev_present helper function and remove the

Re: [PATCH v2 2/4] kernelshark: Adding a GUI event handler

2017-11-10 Thread Steven Rostedt
On Fri, 10 Nov 2017 14:29:13 +0200 "Yordan Karadzhov (VMware)" wrote: > gui_event_handler is defined. Instruments for dealing > with this handler are added. Please add why this patch is needed in the change log. > > Signed-off-by: Yordan Karadzhov (VMware) > --- > Makefile| 6 ++---

Re: [PATCH v2 1/4] kernelshark: Adding infrastructure for GUI plugins

2017-11-10 Thread Steven Rostedt
On Fri, 10 Nov 2017 14:29:12 +0200 "Yordan Karadzhov (VMware)" wrote: > --- a/kernel-shark.c > +++ b/kernel-shark.c > @@ -339,6 +339,96 @@ int kernelshark_load_file(struct shark_info *info, const > char *file) > return 0; > } > > +static struct plugin_list { > + struct plugin_list

Re: [PATCH V2 2/3] dmaengine: qcom_hidma: add support for the new revision

2017-11-10 Thread Robin Murphy
On 10/11/17 14:03, Sinan Kaya wrote: +linux-acpi, +Rafael for context On 11/8/2017 12:51 PM, Robin Murphy wrote: Apologies if I wasn't very clear, but what I meant to imply by dropping the of_device_get_match_data() hint was to follow one of the common patterns where you either just have so

Re: [PATCH V2 2/3] dmaengine: qcom_hidma: add support for the new revision

2017-11-10 Thread Timur Tabi
On 11/10/2017 08:03 AM, Sinan Kaya wrote: I did post v3 with this approach. However, I could not really find a ACPI function that returns the driver data very similar to of_device_get_match_data(). The only thing that is closer is acpi_match_device(). This is what I do in the EMAC driver: ht

[GIT PULL] Ceph fix for 4.14-rc9

2017-11-10 Thread Ilya Dryomov
Hi Linus, The following changes since commit 39dae59d66acd86d1de24294bd2f343fd5e7a625: Linux 4.14-rc8 (2017-11-05 13:05:14 -0800) are available in the git repository at: https://github.com/ceph/ceph-client.git tags/ceph-for-4.14-rc9 for you to fetch changes up to 1e37f2f84680fa7f8394fd444b

Re: [PATCH net-next 1/2] net: dsa: lan9303: Set up trapping of IGMP to CPU port

2017-11-10 Thread Andrew Lunn
On Fri, Nov 10, 2017 at 12:54:34PM +0100, Egil Hjelmeland wrote: > IGMP packets should be trapped to the CPU port. The SW bridge knows > whether to forward to other ports. > > With "IGMP snooping for local traffic" merged, IGMP trapping is also > required for stable IGMPv2 operation. > > LAN9303

Re: [PATCH net-next 0/2] net: dsa: lan9303: IGMP handling

2017-11-10 Thread Andrew Lunn
> skb->offload_fwd_mark calculation is a candidate for consolidation into the > DSA core. The calculation can probably be more polished when done at a point > where DSA has updated skb. Hi Egil Yes, at some point we should do this. But at the moment it is too early. We don't have enough experie

Re: [PATCH V2 2/3] dmaengine: qcom_hidma: add support for the new revision

2017-11-10 Thread Sinan Kaya
+linux-acpi, +Rafael for context On 11/8/2017 12:51 PM, Robin Murphy wrote: > Apologies if I wasn't very clear, but what I meant to imply by dropping the > of_device_get_match_data() hint was to follow one of the common patterns > where you either just have some version token: > > enum foo_

Re: [kernel-hardening] [PATCH v4] scripts: add leaking_addresses.pl

2017-11-10 Thread kaiwan . billimoria
On Tue, 2017-11-07 at 21:32 +1100, Tobin C. Harding wrote: > Currently we are leaking addresses from the kernel to user space. > This > script is an attempt to find some of those leakages. Script parses > `dmesg` output and /proc and /sys files for hex strings that look > like > kernel addresses. >

Re: [nfsd4] potentially hardware breaking regression in 4.14-rc and 4.13.11

2017-11-10 Thread Arnd Bergmann
On Fri, Nov 10, 2017 at 2:58 AM, Patrick McLean wrote: > On 2017-11-09 12:04 PM, Linus Torvalds wrote: >> On Thu, Nov 9, 2017 at 11:51 AM, Patrick McLean wrote: > > We will check our fork against the in-kernel cp201x driver to make sure > we didn't miss anything, but it seems odd we would be hit

Re: [PATCH v2 08/16] iommu: introduce device fault data

2017-11-10 Thread Jean-Philippe Brucker
On 09/11/17 19:36, Jacob Pan wrote: > On Tue, 7 Nov 2017 11:38:50 + > Jean-Philippe Brucker wrote: > >> I think the IOMMU should pass the struct device associated to the BDF >> to the fault handler. The fault handler can then deduce the BDF from >> struct device if it needs to. This also allo

Re: Firmware signing -- Re: [PATCH 00/27] security, efi: Add kernel lockdown

2017-11-10 Thread Mimi Zohar
On Fri, 2017-11-10 at 02:46 +0100, Luis R. Rodriguez wrote: > On Thu, Nov 09, 2017 at 10:48:43AM +0900, AKASHI, Takahiro wrote: > > On Wed, Nov 08, 2017 at 08:46:26PM +0100, Luis R. Rodriguez wrote: > > > But perhaps I'm not understanding the issue well, let me know. > > > > My point is quite simp

Re: drivers/x86: add thinkpad-wmi

2017-11-10 Thread Corentin Chary
On Wed, Nov 8, 2017 at 10:31 PM, Darren Hart wrote: > On Tue, Nov 07, 2017 at 02:46:19PM +0200, Andy Shevchenko wrote: >> On Mon, Nov 6, 2017 at 8:16 PM, wrote: >> >> On Tue, Oct 24, 2017 at 10:59 PM, Mario Limonciello >> >> wrote: >> >> Mario, thanks for your comments on the subject. >> >> >>

Re: [PATCH v2] checkpatch: Fix checks for Kconfig help text

2017-11-10 Thread Joe Perches
On Fri, 2017-11-10 at 14:42 +0800, Leo Yan wrote: > If one patch has Kconfig section, the check script variable '$is_start' > will be set by first 'config' line and the variable '$is_end' is to be > set by the second 'config' line. But patches often only has one > 'config' line so we have no chance

Re: [PATCH 1/2] rtc: at91rm9200: stop calculating yday in at91_rtc_readalarm

2017-11-10 Thread Nicolas Ferre
On 10/11/2017 at 09:59, Alexandre Belloni wrote: > Calculating yday in the read_alarm callback is useless as this value is > never used later. Also, it was buggy anyway because at the time this is > done, tm_year is always 0 as the alarm register doesn't hold the year. > > Signed-off-by: Alexandre

Re: Firmware signing -- Re: [PATCH 00/27] security, efi: Add kernel lockdown

2017-11-10 Thread Mimi Zohar
On Thu, 2017-11-09 at 13:46 +0900, AKASHI, Takahiro wrote: > Mimi, > > On Wed, Nov 08, 2017 at 09:17:37PM -0500, Mimi Zohar wrote: > > > > IMHO that should just fail then, ie, a "locked down" kernel should not > > > > want to > > > > *pass* a firmware signature if such thing could not be done. >

[PATCH v2] drm: gem_cma_helper.c: Allow importing of contiguous scatterlists with nents > 1

2017-11-10 Thread Liviu Dudau
drm_gem_cma_prime_import_sg_table() will fail if the number of entries in the sg_table > 1. However, you can have a device that uses an IOMMU engine and can map a discontiguous buffer with multiple entries that have consecutive sg_dma_addresses, effectively making it contiguous. Allow for that scen

Re: [PATCH v5 15/37] tracing: Add variable support to hist triggers

2017-11-10 Thread Steven Rostedt
On Fri, 10 Nov 2017 16:28:41 +0900 Namhyung Kim wrote: > > + hist_data->attrs->var_defs.expr[n_vars++] = s; > > + > > + hist_data->attrs->var_defs.n_vars = n_vars; > > + > > + if (n_vars == TRACING_MAP_VARS_MAX) > > +

Re: [PATCH v6 0/6] perf report/script: Support percent and multiple range in --time option

2017-11-10 Thread Jin, Yao
On 11/6/2017 8:21 PM, Jin Yao wrote: v6: --- 1. Create a new option "--timestamp-boundary" in perf record. Currently '--buildid-all' is not enabled by default. So the walking on all samples is the default operation. There is no big overhead to calculate the timestamp boundary

Re: [PATCH] uprobes/x86: emulate push insns for uprobe on x86

2017-11-10 Thread Oleg Nesterov
Yonghong, The patch looks good to me, but I'll try to read it carefully later. Just a couple of cosmetic nits for now. On 11/09, Yonghong Song wrote: > > --- a/arch/x86/include/asm/uprobes.h > +++ b/arch/x86/include/asm/uprobes.h > @@ -53,6 +53,10 @@ struct arch_uprobe { > u

Re: [PATCH 08/30] x86, kaiser: unmap kernel from userspace page tables (core patch)

2017-11-10 Thread Ingo Molnar
* Dave Hansen wrote: > From: Dave Hansen > > These patches are based on work from a team at Graz University of > Technology: https://github.com/IAIK/KAISER . This work would not have > been possible without their work as a starting point. > Note: The original KAISER authors signed-off on the

Re: [PATCH v5 2/3] x86/topology: Avoid wasting 128k for package id array

2017-11-10 Thread Thomas Gleixner
On Fri, 10 Nov 2017, Thomas Gleixner wrote: > On Fri, 10 Nov 2017, Prarit Bhargava wrote: > > On 11/09/2017 07:43 PM, Thomas Gleixner wrote: > > > On Sun, 5 Nov 2017, Prarit Bhargava wrote: > > >> [v5]: Change kmalloc to GFP_ATOMIC to fix "sleeping function" warning on > > >> virtual machines. > >

[tip:locking/core] locking/x86: Use LOCK ADD for smp_mb() instead of MFENCE

2017-11-10 Thread tip-bot for Michael S. Tsirkin
Commit-ID: 450cbdd0125cfa5d7bbf9e2a6b6961cc48d29730 Gitweb: https://git.kernel.org/tip/450cbdd0125cfa5d7bbf9e2a6b6961cc48d29730 Author: Michael S. Tsirkin AuthorDate: Fri, 27 Oct 2017 19:14:31 +0300 Committer: Ingo Molnar CommitDate: Fri, 10 Nov 2017 13:43:44 +0100 locking/x86: Use LOC

Re: [PATCH] USB :core :Prevent USB devices to autosuspend while setting interface

2017-11-10 Thread Felipe Balbi
Hi, abhij...@vger.kernel.org, ku...@vger.kernel.org writes: these emails don't exist. Fix your email client. > From: abhijeet kumar capitalize names > Runtime resume USB device in order to ensure that PM framework > knows that the we might be using the device in a short time and doesn't > au

Re: [PATCH v5 2/3] x86/topology: Avoid wasting 128k for package id array

2017-11-10 Thread Thomas Gleixner
On Fri, 10 Nov 2017, Prarit Bhargava wrote: > On 11/09/2017 07:43 PM, Thomas Gleixner wrote: > > On Sun, 5 Nov 2017, Prarit Bhargava wrote: > >> [v5]: Change kmalloc to GFP_ATOMIC to fix "sleeping function" warning on > >> virtual machines. > > > > What has this to do with virtual machines? The ve

[PATCH 4/4] ASN.1: Use common error handling code in main()

2017-11-10 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 10 Nov 2017 13:31:22 +0100 * Add jump targets so that a bit of exception handling can be better reused in this function implementation. * Replace ten calls of the function "exit" by goto statements. * Replace two function calls by return statements. This issue

[PATCH 3/4] ASN.1: Improve exiting from build_type_list()

2017-11-10 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 10 Nov 2017 12:56:33 +0100 * Add jump targets so that a call of the function "perror" and "exit" is stored only once in an if branch of this function. * Replace two calls by goto statements. Signed-off-by: Markus Elfring --- scripts/asn1_compiler.c | 11 +

[PATCH 2/4] ASN.1: Improve exiting from parse_type()

2017-11-10 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 10 Nov 2017 11:21:13 +0100 * Add a jump target so that a call of the function "exit" is stored only once at the end of this function. * Replace nine calls by goto statements. Signed-off-by: Markus Elfring --- scripts/asn1_compiler.c | 19 ++-

[PATCH 1/4] ASN.1: Adjust two function calls together with a variable assignment

2017-11-10 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 10 Nov 2017 10:40:17 +0100 The script "checkpatch.pl" pointed information out like the following. ERROR: do not use assignment in if condition Thus fix the affected source code places. Signed-off-by: Markus Elfring --- scripts/asn1_compiler.c | 6 -- 1 fil

Re: [PATCH 3/4] x86/boot/compressed/64: Introduce place_trampoline()

2017-11-10 Thread Ingo Molnar
* Kirill A. Shutemov wrote: > > One other detail I noticed: > > > > /* Bound size of trampoline code */ > > .orglvl5_trampoline_src + LVL5_TRAMPOLINE_CODE_SIZE > > > > will this generate a build error if the trampoline code exceeds 0x40? > > Yes, this is the point. Just a

[PATCH 0/4] ASN.1: Fine-tuning for three function implementations

2017-11-10 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 10 Nov 2017 13:38:43 +0100 A few update suggestions were taken into account from static source code analysis. Markus Elfring (4): Adjust two function calls together with a variable assignment Improve exiting from parse_type() Improve exiting from build_type_

Re: [PATCH v3 0/4] KVM: Paravirt remote TLB flush

2017-11-10 Thread David Hildenbrand
On 10.11.2017 10:49, Wanpeng Li wrote: > Remote flushing api's does a busy wait which is fine in bare-metal > scenario. But with-in the guest, the vcpus might have been pre-empted > or blocked. In this scenario, the initator vcpu would end up > busy-waiting for a long amount of time. > > This patc

[PATCH] USB :core :Prevent USB devices to autosuspend while setting interface

2017-11-10 Thread Abhijeet
From: abhijeet kumar Runtime resume USB device in order to ensure that PM framework knows that the we might be using the device in a short time and doesn't autosuspend the device while we updating it's interface. Signed-off-by: abhijeet kumar --- drivers/usb/core/message.c | 3 +++ 1 file chan

Re: [PATCH v2 28/37] hrtimer: Implement support for softirq based hrtimers

2017-11-10 Thread Sebastian Andrzej Siewior
On 2017-10-22 23:40:06 [+0200], Anna-Maria Gleixner wrote: > --- a/include/linux/hrtimer.h > +++ b/include/linux/hrtimer.h > @@ -528,25 +546,42 @@ static ktime_t __hrtimer_next_event_base > * Recomputes cpu_base::*next_timer and returns the earliest expires_next but > * does not set cpu_base::*

Re: [RFC v4 13/17] [media] vb2: add in-fence support to QBUF

2017-11-10 Thread Gustavo Padovan
2017-10-25 Brian Starkey : > Hi Gustavo, > > On Fri, Oct 20, 2017 at 07:50:08PM -0200, Gustavo Padovan wrote: > > From: Gustavo Padovan > > > > Receive in-fence from userspace and add support for waiting on them > > before queueing the buffer to the driver. Buffers are only queued > > to the dr

Re: [PATCH v2 3/3] HID: cp2112: fix broken gpio_direction_input callback

2017-11-10 Thread Jiri Kosina
On Fri, 10 Nov 2017, Sébastien Szymanski wrote: > When everything goes smoothly, ret is set to 0 which makes the function > to return EIO error. > > Fixes: 8e9faa15469e ("HID: cp2112: fix gpio-callback error handling") > Signed-off-by: Sébastien Szymanski > --- > Changes in v2: > - rework error

Re: [PATCH v1 0/2] DRM driver for ILI9225 display panels

2017-11-10 Thread Noralf Trønnes
Hi David, nice to see a new driver. Den 08.11.2017 04.52, skrev David Lechner: This is a new driver for ILI9225 based display panels. There are a couple of things that stand out: 1. Despite my best efforts, I could not find a name for this display[1], so I have made up a generic name for

[PATCH v2 3/4] kernelshark: Adding gui_event_handlers for View and Graph

2017-11-10 Thread Yordan Karadzhov (VMware)
gui_event_handlers are added to trace_view_store and graph_info. The handlers are used to execute plugin-specific actions during the processing of the trace data. Signed-off-by: Yordan Karadzhov (VMware) --- kshark-plugin.h| 3 +++ trace-graph.c | 41 +++

Re: [PATCH V9 1/4] dma-mapping: Rework dma_get_cache_alignment()

2017-11-10 Thread Christoph Hellwig
> diff --git a/drivers/net/ethernet/broadcom/b44.c > b/drivers/net/ethernet/broadcom/b44.c > index a1125d1..2f6ffe5 100644 > --- a/drivers/net/ethernet/broadcom/b44.c > +++ b/drivers/net/ethernet/broadcom/b44.c > @@ -2344,6 +2344,10 @@ static int b44_init_one(struct ssb_device *sdev, > struc

[PATCH v2 4/4] kernelshark: Adding a GUI plugin for xenomai events

2017-11-10 Thread Yordan Karadzhov (VMware)
A plugin for processing xenomai events "cobalt_switch_context" and "cobalt_thread_resume" is added. Signed-off-by: Yordan Karadzhov (VMware) --- Makefile | 1 + kshark-plugin.h | 10 ++ plugin_xenomai_gui.c | 300 +++ 3 files ch

Re: linux-next: Tree for Nov 7

2017-11-10 Thread Michal Hocko
Hi Joel, On Wed 08-11-17 15:20:50, Michal Hocko wrote: [...] > > There are a lot of messages on the way up that look like this: > > > > [2.527460] Uhuuh, elf segement at 000d9000 requested but the > > memory is mapped already > > [2.540160] Uhuuh, elf segement at 000d9000 requested but th

[PATCH v2 1/4] kernelshark: Adding infrastructure for GUI plugins

2017-11-10 Thread Yordan Karadzhov (VMware)
Makefile modified in order to support building of GUI plugins. kshark_plugin_loader and kshark_plugin_unloader are modified kshark_plugin_reloader is defined and is called when the user loads a new trace data file. Signed-off-by: Yordan Karadzhov (VMware) --- Makefile| 31 ++--

[PATCH v2 2/4] kernelshark: Adding a GUI event handler

2017-11-10 Thread Yordan Karadzhov (VMware)
gui_event_handler is defined. Instruments for dealing with this handler are added. Signed-off-by: Yordan Karadzhov (VMware) --- Makefile| 6 ++--- kshark-plugin.c | 69 + kshark-plugin.h | 22 ++ 3 files changed, 94

Re: [linux-next][0692229e] next-20171106 fails to boot on Power 7

2017-11-10 Thread Michal Hocko
Hi Abdul, On Tue 07-11-17 11:28:54, Michal Hocko wrote: > On Tue 07-11-17 15:20:29, Abdul Haleem wrote: > > Hi, > > > > Today's next kernel fails to boot on Power 7 Machine with below errors > > in boot log messages. > > > > 'Uhuuh, elf segement at 1004 requested but the memory is >

Re: [PATCH v5 2/3] x86/topology: Avoid wasting 128k for package id array

2017-11-10 Thread Prarit Bhargava
On 11/09/2017 07:43 PM, Thomas Gleixner wrote: > On Sun, 5 Nov 2017, Prarit Bhargava wrote: >> [v5]: Change kmalloc to GFP_ATOMIC to fix "sleeping function" warning on >> virtual machines. > > What has this to do with virtual machines? The very same issue is on > physcial hardware because this i

Re: [PATCH] au0828: fix use-after-free at USB probing

2017-11-10 Thread Andrey Konovalov
On Fri, Nov 10, 2017 at 1:21 AM, Gustavo A. R. Silva wrote: > Hi Andrey, > > Could you please try this patch? > > Thank you Hi Gustavo, With your patch I get a different crash. Not sure if it's another bug or the same one manifesting differently. au0828: recv_control_msg() Failed receiving cont

[PATCH] arch, mm: introduce arch_tlb_gather_mmu_lazy (was: Re: [RESEND PATCH] mm, oom_reaper: gather each vma to prevent) leaking TLB entry

2017-11-10 Thread Michal Hocko
On Fri 10-11-17 11:15:29, Michal Hocko wrote: > On Fri 10-11-17 09:19:33, Minchan Kim wrote: > > On Tue, Nov 07, 2017 at 09:54:53AM +, Wang Nan wrote: > > > tlb_gather_mmu(&tlb, mm, 0, -1) means gathering the whole virtual memory > > > space. In this case, tlb->fullmm is true. Some archs like a

Re: [PATCH 22/30] x86, pcid, kaiser: allow flushing for future ASID switches

2017-11-10 Thread Peter Zijlstra
On Wed, Nov 08, 2017 at 11:47:28AM -0800, Dave Hansen wrote: > +/* > + * We get here when we do something requiring a TLB invalidation > + * but could not go invalidate all of the contexts. We do the > + * necessary invalidation by clearing out the 'ctx_id' which > + * forces a TLB flush when the

[PATCH] Coccinelle: Add scripts/coccinelle/alloc/vzalloc-simple.cocci

2017-11-10 Thread Himanshu Jha
Use vzalloc rather than vmalloc followed by memset with region of memory filled with 0 value. It considers only simple cases. 0-day tested without any issues. Signed-off-by: Himanshu Jha --- scripts/coccinelle/api/alloc/vzalloc-simple.cocci | 75 +++ 1 file changed, 75 inser

Re: [PATCH 20/30] x86, mm: remove hard-coded ASID limit checks

2017-11-10 Thread Peter Zijlstra
On Wed, Nov 08, 2017 at 11:47:24AM -0800, Dave Hansen wrote: > +#define CR3_HW_ASID_BITS 12 > +#define NR_AVAIL_ASIDS ((1< - VM_WARN_ON_ONCE(asid > 4094); > + VM_WARN_ON_ONCE(asid > NR_AVAIL_ASIDS); Not the same number

Re: [PATCH 18/30] x86, kaiser: map virtually-addressed performance monitoring buffers

2017-11-10 Thread Peter Zijlstra
On Wed, Nov 08, 2017 at 11:47:20AM -0800, Dave Hansen wrote: > +static > +DEFINE_PER_CPU_SHARED_ALIGNED_USER_MAPPED(struct debug_store, > cpu_debug_store); > + > /* The size of a BTS record in bytes: */ > #define BTS_RECORD_SIZE 24 > > @@ -278,6 +282,39 @@ void fini_debug_store_on

Welcome!

2017-11-10 Thread Ailyn Alberca Rubin
Hello dear, compliments of the season, I sent series of mail, have you seen them ?

Re: [PATCH v6 00/10] rockchip: kevin: Enable edp display

2017-11-10 Thread Enric Balletbo Serra
Dear all, 2017-11-01 20:33 GMT+01:00 Sean Paul : > On Tue, Oct 31, 2017 at 12:37:43PM +0800, JeffyChen wrote: >> Hi Heiko, >> >> On 10/31/2017 07:01 AM, Heiko Stuebner wrote: >> > As I was just looking at the edp dts change in patch1 again, does this >> > series also contain a fix for the issue be

[PATCH v2 3/3] HID: cp2112: fix broken gpio_direction_input callback

2017-11-10 Thread Sébastien Szymanski
When everything goes smoothly, ret is set to 0 which makes the function to return EIO error. Fixes: 8e9faa15469e ("HID: cp2112: fix gpio-callback error handling") Signed-off-by: Sébastien Szymanski --- Changes in v2: - rework error handling to have only one exit path as suggested by Benjamin

Re: [PATCH] drm/rockchip: analogix_dp: Use mutex rather than spinlock

2017-11-10 Thread Enric Balletbo Serra
2017-10-04 19:53 GMT+02:00 Emil Renner Berthing : > On the Samsung Chromebook Plus I get this error with 4.14-rc3: > > BUG: scheduling while atomic: kworker/3:1/50/0x0002 > Modules linked in: > CPU: 3 PID: 50 Comm: kworker/3:1 Not tainted 4.14.0-0.rc3-kevin #2 > Hardware name: Google Kevin (DT)

[no subject]

2017-11-10 Thread Jagan Teki
unsubscribe linux-mtd

[PATCH net-next 2/2] net: dsa: lan9303: Clear offload_fwd_mark for IGMP

2017-11-10 Thread Egil Hjelmeland
Now that IGMP packets no longer is flooded in HW, we want the SW bridge to forward packets based on bridge configuration. To make that happen, IGMP packets must have skb->offload_fwd_mark = 0. Signed-off-by: Egil Hjelmeland --- net/dsa/tag_lan9303.c | 13 + 1 file changed, 13 inserti

[PATCH net-next 0/2] net: dsa: lan9303: IGMP handling

2017-11-10 Thread Egil Hjelmeland
Set up the HW switch to trap IGMP packets to CPU port. And make sure skb->offload_fwd_mark is cleared for incoming IGMP packets. skb->offload_fwd_mark calculation is a candidate for consolidation into the DSA core. The calculation can probably be more polished when done at a point where DSA has u

[PATCH net-next 1/2] net: dsa: lan9303: Set up trapping of IGMP to CPU port

2017-11-10 Thread Egil Hjelmeland
IGMP packets should be trapped to the CPU port. The SW bridge knows whether to forward to other ports. With "IGMP snooping for local traffic" merged, IGMP trapping is also required for stable IGMPv2 operation. LAN9303 does not trap IGMP packets by default. Enable IGMP trapping in lan9303_setup.

[PATCH 2/2] regulator: tps65218: remove unused tps_info structure

2017-11-10 Thread Keerthy
remove unused tps_info structure. Signed-off-by: Keerthy --- include/linux/mfd/tps65218.h | 19 --- 1 file changed, 19 deletions(-) diff --git a/include/linux/mfd/tps65218.h b/include/linux/mfd/tps65218.h index bccd2d6..f069c51 100644 --- a/include/linux/mfd/tps65218.h +++ b/inc

[PATCH 1/2] regulator: tps65218: Fix strobe assignment

2017-11-10 Thread Keerthy
Currentlly tps_info structure is no longer used. So use the strobes parameter in tps65218 structure to capture the info. Fixes: 2dc4940360d4c0c (regulator: tps65218: Remove all the compatibles) Signed-off-by: Keerthy --- drivers/regulator/tps65218-regulator.c | 2 +- 1 file changed, 1 insertion(

[PATCH v8 2/7] KVM: arm64: Save ESR_EL2 on guest SError

2017-11-10 Thread Dongjiu Geng
From: James Morse When we exit a guest due to an SError the vcpu fault info isn't updated with the ESR. Today this is only done for traps. The v8.2 RAS Extensions define ISS values for SError. Update the vcpu's fault_info with the ESR on SError so that handle_exit() can determine if this was a R

[PATCH v8 4/7] KVM: arm64: Trap RAS error registers and set HCR_EL2's TERR & TEA

2017-11-10 Thread Dongjiu Geng
ARMv8.2 adds a new bit HCR_EL2.TEA which routes synchronous external aborts to EL2, and adds a trap control bit HCR_EL2.TERR which traps all Non-secure EL1&0 error record accesses to EL2. This patch enables the two bits for the guest OS, guaranteeing that KVM takes external aborts and traps attemp

[PATCH v8 3/7] acpi: apei: Add SEI notification type support for ARMv8

2017-11-10 Thread Dongjiu Geng
ARMv8.2 requires implementation of the RAS extension, in this extension it adds SEI(SError Interrupt) notification type, this patch adds new GHES error source SEI handling functions. This error source parsing and handling method is similar with the SEA. Expose API ghes_notify_sei() to external use

[PATCH v8 0/7] Support RAS virtualization in KVM

2017-11-10 Thread Dongjiu Geng
This series patches mainly do below things: 1. Trap RAS ERR* registers Accesses to EL2 from Non-secure EL1, KVM will will do a minimum simulation, there registers are simulated to RAZ/WI in KVM. 2. Route synchronous External Abort exceptions from Non-secure EL0 and EL1 to EL2. When except

[PATCH v8 1/7] arm64: cpufeature: Detect CPU RAS Extentions

2017-11-10 Thread Dongjiu Geng
From: Xie XiuQi ARM's v8.2 Extentions add support for Reliability, Availability and Serviceability (RAS). On CPUs with these extensions system software can use additional barriers to isolate errors and determine if faults are pending. Add cpufeature detection and a barrier in the context-switch

[PATCH v8 6/7] arm64: kvm: Set Virtual SError Exception Syndrome for guest

2017-11-10 Thread Dongjiu Geng
RAS Extension add a VSESR_EL2 register which can provides the syndrome value reported to software on taking a virtual SError interrupt exception. This patch supports to specify this Syndrome. In the RAS Extensions we can not set all-zero syndrome value for SError, which means 'RAS error: Uncategor

[PATCH v8 5/7] arm64: kvm: Introduce KVM_ARM_SET_SERROR_ESR ioctl

2017-11-10 Thread Dongjiu Geng
The ARM64 RAS SError Interrupt(SEI) syndrome value is specific to the guest and user space needs a way to tell KVM this value. So we add a new ioctl. Before user space specifies the Exception Syndrome Register ESR(ESR), it firstly checks that whether KVM has the capability to set the guest ESR, If

[PATCH v8 7/7] arm64: kvm: handle SError Interrupt by categorization

2017-11-10 Thread Dongjiu Geng
If it is not RAS SError, directly inject virtual SError, which will keep the old way. If it is RAS SError, firstly let host ACPI module to handle it. For the ACPI handling, if the error address is invalid, APEI driver will not identify the address to hwpoison memory and can not notify guest to do t

[PATCH v2 03/14] soundwire: Add Master registration

2017-11-10 Thread Vinod Koul
A Master registers with SoundWire bus and scans the firmware provided for device description. In this patch we scan the ACPI namespaces and create the SoundWire Slave devices based on the ACPI description Signed-off-by: Sanyog Kale Signed-off-by: Vinod Koul --- drivers/soundwire/Makefile|

[PATCH v2 06/14] soundwire: Add IO transfer

2017-11-10 Thread Vinod Koul
SoundWire bus supports read or write register(s) for SoundWire Slave device. sdw_read() and sdw_write() APIs are provided for single register read/write. sdw_nread() and sdw_nwrite() for operations on contiguous registers. Signed-off-by: Sanyog Kale Signed-off-by: Vinod Koul --- drivers/soundwi

[PATCH v2 04/14] soundwire: Add MIPI DisCo property helpers

2017-11-10 Thread Vinod Koul
MIPI Discovery And Configuration (DisCo) Specification for SoundWire specifies properties to be implemented for SoundWire Masters and Slaves. The DisCo spec doesn't mandate these properties. However, SDW bus cannot work without knowing these values. The helper functions read the Master and Slave p

[PATCH v2 12/14] soundwire: cdns: Add sdw_master_ops and IO transfer support

2017-11-10 Thread Vinod Koul
From: Sanyog Kale Implement sdw_master_ops with support for xfer_msg, xfer_msg_defer and reset_page_addr. Since Cadence module doesn't know the systems it will be used, set the read_prop to the bus helper. Signed-off-by: Hardik T Shah Signed-off-by: Sanyog Kale Signed-off-by: Vinod Koul ---

[PATCH v2 10/14] soundwire: Add sysfs for SoundWire DisCo properties

2017-11-10 Thread Vinod Koul
It helps to read the properties for understanding and debugging systems, so add sysfs files for SoundWire DisCo properties. TODO: Add ABI files for sysfs Signed-off-by: Sanyog Kale Signed-off-by: Vinod Koul --- drivers/soundwire/Makefile| 2 +- drivers/soundwire/bus.c | 3 + driv

[PATCH v2 09/14] soundwire: Add slave status handling

2017-11-10 Thread Vinod Koul
Add status handling API sdw_handle_slave_status() to handle Slave status changes. Signed-off-by: Hardik T Shah Signed-off-by: Sanyog Kale Signed-off-by: Vinod Koul --- drivers/soundwire/bus.c | 348 ++ drivers/soundwire/bus.h | 2 + include

[PATCH v2 13/14] soundwire: intel: Add Intel Master driver

2017-11-10 Thread Vinod Koul
Some Intel platforms have SoundWire Master, so add Intel SoundWire Master driver which uses Cadence module. This patch adds probe and initialization routines for Intel Master driver. Signed-off-by: Hardik T Shah Signed-off-by: Sanyog Kale Signed-off-by: Vinod Koul --- drivers/soundwire/Kconfig

[PATCH v2 05/14] soundwire: Add SoundWire MIPI defined registers

2017-11-10 Thread Vinod Koul
From: Sanyog Kale MIPI SoundWire spec defines standard SoundWire registers mandatory for SoundWire Slave devices, so add them. Signed-off-by: Sanyog Kale Signed-off-by: Vinod Koul --- include/linux/soundwire/sdw.h | 1 + include/linux/soundwire/sdw_registers.h | 242 ++

[PATCH v2 11/14] soundwire: cdns: Add cadence library

2017-11-10 Thread Vinod Koul
Cadence IP implements SoundWire Master. Add base cadence library initialization and interrupt handling Signed-off-by: Hardik T Shah Signed-off-by: Sanyog Kale Signed-off-by: Vinod Koul --- drivers/soundwire/Kconfig | 3 + drivers/soundwire/Makefile | 4 + drivers/soundwire

[PATCH v2 14/14] soundwire: intel: Add Intel init module

2017-11-10 Thread Vinod Koul
The SoundWire Master is implemented as part of Audio controller in Intel platforms. Add a init module which creates SoundWire Master platform devices based on the links supported in the hardware. Signed-off-by: Sanyog Kale Signed-off-by: Vinod Koul --- drivers/soundwire/Makefile | 3

[PATCH v2 02/14] soundwire: Add SoundWire bus type

2017-11-10 Thread Vinod Koul
This adds the base SoundWire bus type, bus and driver registration. along with changes to module device table for new SoundWire device type. Signed-off-by: Sanyog Kale Signed-off-by: Vinod Koul --- drivers/Kconfig | 2 + drivers/Makefile | 1 + drivers/sou

[PATCH v2 08/14] soundwire: Add Slave status handling helpers

2017-11-10 Thread Vinod Koul
From: Sanyog Kale SoundWire Slaves report status to bus. Add helpers to handle the status changes. Signed-off-by: Hardik T Shah Signed-off-by: Sanyog Kale Signed-off-by: Vinod Koul --- drivers/soundwire/bus.c | 213 ++ include/linux/soundwire/sdw

[PATCH v2 01/14] Documentation: Add SoundWire summary

2017-11-10 Thread Vinod Koul
From: Sanyog Kale SoundWire is a new Linux bus which implements a new MIPI bus protocol 'SoundWire'. The summary of SoundWire bus and API is documented in the 'summary' file. Signed-off-by: Sanyog Kale Signed-off-by: Hardik T Shah Signed-off-by: Pierre-Louis Bossart Signed-off-by: Vinod Koul

[PATCH v2 07/14] regmap: Add SoundWire bus support

2017-11-10 Thread Vinod Koul
SoundWire bus provides sdw_read() and sdw_write() APIs for Slave devices to program the registers. Provide support in regmap for SoundWire bus. Signed-off-by: Hardik T Shah Signed-off-by: Sanyog Kale Signed-off-by: Vinod Koul --- drivers/base/regmap/Kconfig | 4 ++ drivers/base/regmap/M

[PATCH v2 00/14] soundwire: Add a new SoundWire subsystem

2017-11-10 Thread Vinod Koul
This patch series adds a new SoundWire subsystem which implements a new MIPI bus protocol 'SoundWire'. The SoundWire protocol is a robust, scalable, low complexity, low power, low latency, two-pin (clock and data) multi-drop bus that allows for the transfer of multiple audio streams and embedded c

Re: [PATCH 0/2] hwrng: iproc-rng200: Add support for BCM7278

2017-11-10 Thread Herbert Xu
On Wed, Nov 01, 2017 at 04:20:04PM -0700, Florian Fainelli wrote: > Hi, > > This patch series adds support for the RNG200 block found on the BCM7278 SoC. > This requires us to update the compatible string (and associated binding > document) as well as the Kconfig option to make that driver selecta

Re: [PATCH] lib/mpi: call cond_resched() from mpi_powm() loop

2017-11-10 Thread Herbert Xu
On Mon, Nov 06, 2017 at 10:19:51PM -0800, Eric Biggers wrote: > From: Eric Biggers > > On a non-preemptible kernel, if KEYCTL_DH_COMPUTE is called with the > largest permitted inputs (16384 bits), the kernel spends 10+ seconds > doing modular exponentiation in mpi_powm() without rescheduling. If

Re: [PATCH v2 1/1] crypto: stm32/hash - Fix return issue on update

2017-11-10 Thread Herbert Xu
On Mon, Nov 06, 2017 at 11:41:52PM +0100, lionel.debi...@st.com wrote: > From: Lionel Debieve > > When data append reached the threshold for processing, > we must inform that processing is on going to wait before > managing the next request. > > Signed-off-by: Lionel Debieve Patch applied. Th

Re: [PATCH v9 44/51] selftest/vm: powerpc implementation for generic abstraction

2017-11-10 Thread Breno Leitao
Hi Ram, On Thu, Nov 09, 2017 at 03:37:46PM -0800, Ram Pai wrote: > On Thu, Nov 09, 2017 at 04:47:15PM -0200, Breno Leitao wrote: > > On Mon, Nov 06, 2017 at 12:57:36AM -0800, Ram Pai wrote: > > > @@ -206,12 +209,14 @@ void signal_handler(int signum, siginfo_t *si, void > > > *vucontext) > > > >

Re: [PATCH] ASoC: Intel: common: Replace sst_acpi_check_hid with acpi_dev_present

2017-11-10 Thread Hans de Goede
Hi, On 09-11-17 22:07, Jeremy Cline wrote: Replace the sst_acpi_check_hid helper function added in commit 915ae2b9f0fe ("ASoC: Intel: Create a helper to search for matching machine") with the generic acpi_dev_present helper function and remove the now unused sst_acpi_check_hid function. This sho

Re: [PATCH libdrm 0/6] drm-next header syncing

2017-11-10 Thread Emil Velikov
On 9 November 2017 at 08:28, Daniel Vetter wrote: > On Wed, Nov 08, 2017 at 11:34:41AM -0800, Eric Anholt wrote: >> I wanted to update the vc4 header so that I could land some igt >> testcases (though I'd much rather just be importing the header into >> igt and ditching libdrm). In the process, I

<    1   2   3   4   5   6   7   >