[PATCH 2/3] KVM: x86: really disarm lapic timer when clearing TMICT

2017-10-06 Thread Radim Krčmář
preemption timer only looks at tscdeadline and could inject already disarmed timer. Signed-off-by: Radim Krčmář --- arch/x86/kvm/lapic.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/x86/kvm/lapic.c b/arch/x86/kvm/lapic.c index 39c1ae11ce1d..96ade848ae0b 100644 ---

[PATCH 1/3] KVM: x86: handle 0 write to TSC_DEADLINE MSR

2017-10-06 Thread Radim Krčmář
0 should disable the timer, but start_hv_timer will recognize it as an expired timer instead. Signed-off-by: Radim Krčmář --- arch/x86/kvm/lapic.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/x86/kvm/lapic.c b/arch/x86/kvm/lapic.c index 2c9e88a82738..39c1ae11ce1d 100644 --- a/arch

Re: [PATCH v6 6/7] KVM: arm64: allow get exception information from userspace

2017-10-06 Thread James Morse
Hi gengdongjiu, On 27/09/17 12:07, gengdongjiu wrote: > On 2017/9/23 0:51, James Morse wrote: >> If this wasn't a firmware-first notification, then you're right KVM hands the >> guest an asynchronous external abort. This could be considered a bug in KVM. >> (we >> can discuss with Marc and Christ

[PATCH 2/2] MIPS: math-emu: Use preferred flavor of unsigned integer declarations

2017-10-06 Thread Aleksandar Markovic
From: Aleksandar Markovic Fix occurences of unsigned integer declarations that are not preferred by standards of checkpatch scripts. This removes significant number of checkpatch warnings in math-emu directory (several files will become completely warning-free), and thus makes easier to spot (now

[PATCH 1/2] MIPS: math-emu: Update debugfs FP exception stats for certain instructions

2017-10-06 Thread Aleksandar Markovic
From: Aleksandar Markovic Fix omission of updating of debugfs FP exception stats for instructions .. CLASS. can generate Unimplemented Operation FP exception. >. can generate Inexact, Unimplemented Operation, Invalid Operation, Overflow, and Underflow FP exceptions. In such cases, and prior to t

Re: [PATCH] linux/types.h: Restore the ability to disable sparse endianness checks

2017-10-06 Thread Christoph Hellwig
On Fri, Oct 06, 2017 at 10:23:53AM -0700, Bart Van Assche wrote: > The purpose of patch "linux/types.h: enable endian checks for all > sparse builds" was to encourage driver authors to annotate > endianness correctly in their drivers. However, since that patch > went upstream no endianness annotati

[PATCH 0/2] MIPS: Minor FPU emulation fixes

2017-10-06 Thread Aleksandar Markovic
From: Aleksandar Markovic This series contains two minor FPU emulation patches that were not included into a recent larger series of FPU fixes, mainly not to additionally burden already complex set of patches. Only the first patch changes functionality, and in such way that it affects certain Mi

Re: [ANNOUNCE] v4.11.12-rt13

2017-10-06 Thread Mike Galbraith
On Fri, 2017-10-06 at 15:33 +0200, Mike Galbraith wrote: > > I'll run full ltp again, make sure there are no new failure deltas. Haven't done that yet, but I have checked all of the reported failures. time-hrtimer:-Use-softirq-based-wakeups-for-non-RT-threads.patch fixes clock_settime_8-1.run-te

Re: [PATCH v5 4/5] cramfs: add mmap support

2017-10-06 Thread Nicolas Pitre
On Fri, 6 Oct 2017, Christoph Hellwig wrote: > > + /* Don't map the last page if it contains some other data */ > > + if (unlikely(pgoff + pages == max_pages)) { > > + unsigned int partial = offset_in_page(inode->i_size); > > + if (partial) { > > + char *d

Re: [PATCH] linux/types.h: Restore the ability to disable sparse endianness checks

2017-10-06 Thread Bart Van Assche
On Fri, 2017-10-06 at 19:35 +0200, Christoph Hellwig wrote: > On Fri, Oct 06, 2017 at 10:23:53AM -0700, Bart Van Assche wrote: > > The purpose of patch "linux/types.h: enable endian checks for all > > sparse builds" was to encourage driver authors to annotate > > endianness correctly in their drive

Re: [PATCH v4 05/13] xen/pvcalls: implement connect command

2017-10-06 Thread Stefano Stabellini
On Thu, 21 Sep 2017, Boris Ostrovsky wrote: > On 09/15/2017 07:00 PM, Stefano Stabellini wrote: > > Send PVCALLS_CONNECT to the backend. Allocate a new ring and evtchn for > > the active socket. > > > > Introduce fields in struct sock_mapping to keep track of active sockets. > > Introduce a waitqu

Re: [PATCH 4.4 00/50] 4.4.91-stable review

2017-10-06 Thread Shuah Khan
On 10/06/2017 02:52 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.91 release. > There are 50 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses sh

Re: [PATCH v4 02/13] xen/pvcalls: implement frontend disconnect

2017-10-06 Thread Stefano Stabellini
On Wed, 20 Sep 2017, Boris Ostrovsky wrote: > > + > > +struct pvcalls_bedata { > > + struct xen_pvcalls_front_ring ring; > > + grant_ref_t ref; > > + int irq; > > + > > + struct list_head socket_mappings; > > + struct list_head socketpass_mappings; > > + spinlock_t socket_lock; > > + >

About commit 901ef845fa2469c ("selinux: allow per-file labeling for cgroupfs")

2017-10-06 Thread Waiman Long
Antonio, I have a question about your 4.14 upstream commit 901ef845fa2469c ("selinux: allow per-file labeling for cgroupfs"). With that, I am no longer able to mount the cgroup2 filesystem with a 4.14 kernel. The problem is that your commit sets the SE_SBGENFS flag, which causes selinux to lookup

Re: [PATCH v4 05/13] xen/pvcalls: implement connect command

2017-10-06 Thread Stefano Stabellini
On Fri, 6 Oct 2017, Stefano Stabellini wrote: > On Thu, 21 Sep 2017, Boris Ostrovsky wrote: > > On 09/15/2017 07:00 PM, Stefano Stabellini wrote: > > > Send PVCALLS_CONNECT to the backend. Allocate a new ring and evtchn for > > > the active socket. > > > > > > Introduce fields in struct sock_mappi

[PATCH tip/sched/core v3] sched/rt: Simplify the IPI rt balancing logic

2017-10-06 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" When a CPU lowers its priority (schedules out a high priority task for a lower priority one), a check is made to see if any other CPU has overloaded RT tasks (more than one). It checks the rto_mask to determine this and if so it will request to pull one of those

Re: [PATCH 4.9 000/104] 4.9.54-stable review

2017-10-06 Thread Shuah Khan
On 10/06/2017 02:50 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.54 release. > There are 104 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses s

[for-next][PATCH 09/16] tracing: Clean up hist_field_flags enum

2017-10-06 Thread Steven Rostedt
From: Tom Zanussi As we add more flags, specifying explicit integers for the flag values becomes more unwieldy and error-prone - switch them over to left-shift values. Link: http://lkml.kernel.org/r/e644e4fb7665aec015f4a2d84a2f990d3dd5b8a1.1506105045.git.tom.zanu...@linux.intel.com Signed-off-

[for-next][PATCH 02/16] tracing: Remove redundant unread variable ret

2017-10-06 Thread Steven Rostedt
From: Colin Ian King Integer ret is being assigned but never used and hence it is redundant. Remove it, fixes clang warning: trace_events_hist.c:1077:3: warning: Value stored to 'ret' is never read Link: http://lkml.kernel.org/r/20170823112309.19383-1-colin.k...@canonical.com Signed-off-by: Co

[for-next][PATCH 01/16] tracing: Remove obsolete sched_switch tracer selftest

2017-10-06 Thread Steven Rostedt
From: Joel Fernandes Since commit 87d80de2800d087ea833cb79bc13f85ff34ed49f ("tracing: Remove obsolete sched_switch tracer"), the sched_switch tracer selftest is no longer used. This patch removes the same. Link: http://lkml.kernel.org/r/20170909065517.22262-1-joe...@google.com Cc: Ingo Molnar

[for-next][PATCH 10/16] tracing: Add hist_field_name() accessor

2017-10-06 Thread Steven Rostedt
From: Tom Zanussi In preparation for hist_fields that won't be strictly based on trace_event_fields, add a new hist_field_name() accessor to allow that flexibility and update associated users. Link: http://lkml.kernel.org/r/5b5a2d36dde067cbbe2434b10f06daac27b7dbd5.1506105045.git.tom.zanu...@lin

[for-next][PATCH 15/16] ftrace: Add freeing algorithm to free ftrace_mod_maps

2017-10-06 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" The ftrace_mod_map is a descriptor to save module init function names in case they were traced, and the trace output needs to reference the function name from the function address. But after the function is unloaded, it the maps should be freed, as the rest of the

[for-next][PATCH 14/16] ftrace: Save module init functions kallsyms symbols for tracing

2017-10-06 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" If function tracing is active when the module init functions are freed, then store them to be referenced by kallsyms. As module init functions can now be traced on module load, they were useless: ># echo ':mod:snd_seq' > set_ftrace_filter ># echo function > curr

Re: [PATCH] arm64: dts: qcom: msm8916: Shrink mdp address length for msm8916

2017-10-06 Thread Rob Clark
On Fri, Oct 6, 2017 at 11:57 AM, Craig Tatlor wrote: > This shrinks the address size down to 89000 from its previous 9 > which was mistakenly pulled from downstream. > > Signed-off-by: Craig Tatlor Acked-by: Rob Clark > --- > arch/arm64/boot/dts/qcom/msm8916.dtsi | 2 +- > 1 file changed,

[for-next][PATCH 16/16] ftrace/kallsyms: Have /proc/kallsyms show saved mod init functions

2017-10-06 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" If a module is loaded while tracing is enabled, then there's a possibility that the module init functions were traced. These functions have their name and address stored by ftrace such that it can translate the function address that is written into the buffer into

[for-next][PATCH 11/16] tracing: Reimplement log2

2017-10-06 Thread Steven Rostedt
From: Tom Zanussi log2 as currently implemented applies only to u64 trace_event_field derived fields, and assumes that anything it's applied to is a u64 field. To prepare for synthetic fields like latencies, log2 should be applicable to those as well, so take the opportunity now to fix the curre

[for-next][PATCH 12/16] ftrace: Add a ftrace_free_mem() function for modules to use

2017-10-06 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" In order to be able to trace module init functions, the module code needs to tell ftrace what is being freed when the init sections are freed. Use the code that the main init calls to tell ftrace to free the main init sections. This requires passing in a start and

[for-next][PATCH 13/16] ftrace: Allow module init functions to be traced

2017-10-06 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Allow for module init sections to be traced as well as core kernel init sections. Now that filtering modules functions can be stored, for when they are loaded, it makes sense to be able to trace them. Cc: Jessica Yu Cc: Rusty Russell Signed-off-by: Steven Rosted

[PATCH] staging: comedi: dt282x: fix IRQ assignment for dev->irq.

2017-10-06 Thread Arvind Yadav
Here, dev->irq is not assigned with irq(irq_num). comedi_legacy_detach() is using dev->irq for release irq and dt282x_attach() is using dev->irq for initialize comedi_subdevice. Signed-off-by: Arvind Yadav --- drivers/staging/comedi/drivers/dt282x.c | 2 ++ 1 file changed, 2 insertions(+) diff

[RESEND PATCH] ASoC: codecs: msm8916-wcd-digital: fix RX2 MIX1 and RX3 MIX1

2017-10-06 Thread Jean-François Têtu
The kcontrol for the third input (rxN_mix1_inp3) of both RX2 and RX3 mixers are not using the correct control register. This simple patch fixes this. Signed-off-by: Jean-François Têtu --- sound/soc/codecs/msm8916-wcd-digital.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[for-next][PATCH 05/16] tracing: Exclude generic fields from histograms

2017-10-06 Thread Steven Rostedt
From: Tom Zanussi There are a small number of 'generic fields' (comm/COMM/cpu/CPU) that are found by trace_find_event_field() but are only meant for filtering. Specifically, they unlike normal fields, they have a size of 0 and thus wreak havoc when used as a histogram key. Exclude these (return

[for-next][PATCH 00/16] tracing: Updates for 4.15

2017-10-06 Thread Steven Rostedt
git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git for-next Head SHA1: 6171a0310a06a7a0cb83713fa7068bdd4192de19 Colin Ian King (1): tracing: Remove redundant unread variable ret Joel Fernandes (1): tracing: Remove obsolete sched_switch tracer selftest Steven Ro

[for-next][PATCH 06/16] tracing: Remove lookups from tracing_map hitcount

2017-10-06 Thread Steven Rostedt
From: Tom Zanussi Lookups inflate the hitcount, making it essentially useless. Only inserts and updates should really affect the hitcount anyway, so explicitly filter lookups out. Link: http://lkml.kernel.org/r/c8d9dc39d269a8abf88bf4102d0dfc65deb0fc7f.1506105045.git.tom.zanu...@linux.intel.com

[for-next][PATCH 07/16] tracing: Increase tracing map KEYS_MAX size

2017-10-06 Thread Steven Rostedt
From: Tom Zanussi The current default for the number of subkeys in a compound key is 2, which is too restrictive. Increase it to a more realistic value of 3. Link: http://lkml.kernel.org/r/b6952cca06d1f912eba33804a6fd6069b3847d44.1506105045.git.tom.zanu...@linux.intel.com Signed-off-by: Tom Z

[for-next][PATCH 08/16] tracing: Make traceprobe parsing code reusable

2017-10-06 Thread Steven Rostedt
From: Tom Zanussi traceprobe_probes_write() and traceprobe_command() actually contain nothing that ties them to kprobes - the code is generically useful for similar types of parsing elsewhere, so separate it out and move it to trace.c/trace.h. Other than moving it, the only change is in naming:

[for-next][PATCH 03/16] tracing: Reverse the order of trace_types_lock and event_mutex

2017-10-06 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" In order to make future changes where we need to call tracing_set_clock() from within an event command, the order of trace_types_lock and event_mutex must be reversed, as the event command will hold event_mutex and the trace_types_lock is taken from within tracing_

[for-next][PATCH 04/16] ring-buffer: Rewrite trace_recursive_(un)lock() to be simpler

2017-10-06 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" The current method to prevent the ring buffer from entering into a recursize loop is to use a bitmask and set the bit that maps to the current context (normal, softirq, irq or NMI), and if that bit was already set, it is considered a recursive loop. New code is be

Re: [PATCH 4.9 086/104] arm64: kasan: avoid bad virt_to_pfn()

2017-10-06 Thread Mark Rutland
Hi Greg, On Fri, Oct 06, 2017 at 10:52:04AM +0200, Greg Kroah-Hartman wrote: > 4.9-stable review patch. If anyone has any objections, please let me know. I'm a little confused as to why this is being backported, given it wasn't Cc'd stable or marked as a fix. The lm_alias() helper was only intr

Re: [Intel-wired-lan] [PATCH] PCI: Check/Set ARI capability before setting numVFs

2017-10-06 Thread Bjorn Helgaas
On Thu, Oct 05, 2017 at 04:07:41PM -0500, Bjorn Helgaas wrote: > On Wed, Oct 04, 2017 at 04:29:14PM -0700, Alexander Duyck wrote: > > On Wed, Oct 4, 2017 at 4:01 PM, Bjorn Helgaas wrote: > > > On Wed, Oct 04, 2017 at 08:52:58AM -0700, Tony Nguyen wrote: > > >> This fixes a bug that can occur if an

[GIT PULL] KVM fixes for v4.14-rc4

2017-10-06 Thread Radim Krčmář
Linus, The following changes since commit 9e66317d3c92ddaab330c125dfe9d06eee268aff: Linux 4.14-rc3 (2017-10-01 14:54:54 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/virt/kvm/kvm tags/for-linus for you to fetch changes up to e42eef4ba38806b18c4a74f0c276fb2e0b5

[GIT PULL] arm64 fixes for 4.14-rc4

2017-10-06 Thread Catalin Marinas
Hi Linus, Please pull the arm64 fixes below. Thanks. The following changes since commit 9e66317d3c92ddaab330c125dfe9d06eee268aff: Linux 4.14-rc3 (2017-10-01 14:54:54 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux tags/arm64-fixes f

[PATCH v2] staging: comedi: dt282x: fix IRQ assignment for dev->irq.

2017-10-06 Thread Arvind Yadav
Here, dev->irq is not assigned with irq. comedi_legacy_detach() is using dev->irq for release irq and dt282x_attach() is using dev->irq for initialize comedi_subdevice. Signed-off-by: Arvind Yadav --- changes in v2: comedi_isadma_alloc() can fail. adding dev->irq assignment after

Re: [PATCH] intel_idle: replace conditionals with static_cpu_has(X86_FEATURE_ARAT)

2017-10-06 Thread Jacob Pan
On Fri, 6 Oct 2017 13:19:45 -0400 Jason Baron wrote: > If the 'arat' cpu flag is set, then the conditionals in intel_idle() > that guard calling tick_broadcast_enter()/exit() will never be true. > Use static_cpu_has(X86_FEATURE_ARAT) to create a fast path to replace > the conditional. > > Signe

Re: [PATCH v4] crypto: s5p-sss: Add HASH support for Exynos

2017-10-06 Thread Krzysztof Kozlowski
On Wed, Oct 04, 2017 at 06:38:11PM +0200, Kamil Konieczny wrote: > Add support for MD5, SHA1, SHA256 hash algorithms for Exynos HW. > It uses the crypto framework asynchronous hash api. > It is based on omap-sham.c driver. > S5P has some HW differencies and is not implemented. > > Modifications in

Re: [PATCH v4 04/13] xen/pvcalls: implement socket command and handle events

2017-10-06 Thread Stefano Stabellini
On Thu, 21 Sep 2017, Boris Ostrovsky wrote: > > + > > +static inline int get_request(struct pvcalls_bedata *bedata, int *req_id) > > +{ > > + *req_id = bedata->ring.req_prod_pvt & (RING_SIZE(&bedata->ring) - 1); > > + if (RING_FULL(&bedata->ring) || > > + READ_ONCE(bedata->rsp[*req_id].re

Re: [PATCH] Bluetooth: Convert timers to use timer_setup()

2017-10-06 Thread Marcel Holtmann
Hi Kees, > In preparation for unconditionally passing the struct timer_list pointer to > all timer callbacks, switch to using the new timer_setup() and from_timer() > to pass the timer pointer explicitly. As already done in hci_qca, add > struct hci_uart pointer to priv structure. > > Cc: Marcel

[PATCH] perf tools: unbreak perf record for arm/arm64

2017-10-06 Thread Mark Rutland
Currently, perf record is broken on arm/arm64 systems when the PMU is specified explicitly as part of the event, e.g. $ ./perf record -e armv8_cortex_a53/cpu_cycles/u true In such cases, perf record fails to open events unless perf_event_paranoid is set to -1, even if the PMU in question supports

Re: [PATCH] block: remove unnecessary NULL checks in bioset_integrity_free()

2017-10-06 Thread Martin K. Petersen
Tim, > mempool_destroy() already checks for a NULL value being passed in, > this eliminates duplicate checks. That's fine. Acked-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] intel_idle: replace conditionals with static_cpu_has(X86_FEATURE_ARAT)

2017-10-06 Thread Jason Baron
On 10/06/2017 02:36 PM, Jacob Pan wrote: > On Fri, 6 Oct 2017 13:19:45 -0400 > Jason Baron wrote: > >> If the 'arat' cpu flag is set, then the conditionals in intel_idle() >> that guard calling tick_broadcast_enter()/exit() will never be true. >> Use static_cpu_has(X86_FEATURE_ARAT) to create

[PATCH] block/bio: Remove null checks before mempool_destroy in bioset_free

2017-10-06 Thread Tim Hansen
This patch removes redundant checks for null values on bio_pool and bvec_pool. Found using make coccicheck M=block/ on linux-net tree on the next-20170929 tag. Related to patch 9987695 that removed similar checks in bio-integrity. Signed-off-by: Tim Hansen --- block/bio.c | 7 ++- 1 file

Re: [Part2 PATCH v5 12/31] crypto: ccp: Add Secure Encrypted Virtualization (SEV) command support

2017-10-06 Thread Borislav Petkov
On Wed, Oct 04, 2017 at 08:13:53AM -0500, Brijesh Singh wrote: > AMDs new Secure Encrypted Virtualization (SEV) feature allows the memory > contents of a virtual machines to be transparently encrypted with a key > unique to the guest VM. The programming and management of the encryption > keys are h

[GIT PULL] PCI fixes for v4.14

2017-10-06 Thread Bjorn Helgaas
PCI fixes: - fix legacy IDE probe issues exposed by recent PCI core IRQ mapping changes (Bartlomiej Zolnierkiewicz, Lorenzo Pieralisi) The following changes since commit 9561475db680f7144d2223a409dd3d7e322aca03: PCI: Fix race condition with driver_override (2017-09-25 18:34:54 -0500) a

Re: [PATCH v1 1/4] perf annotate: create a new hists to manage multiple events samples

2017-10-06 Thread Arnaldo Carvalho de Melo
Em Sat, Oct 07, 2017 at 12:31:37AM +0800, Jin, Yao escreveu: > On 10/5/2017 9:21 PM, Arnaldo Carvalho de Melo wrote: > > Em Wed, Aug 16, 2017 at 06:18:33PM +0800, Jin Yao escreveu: > >> An issue is found during using perf annotate. > >> perf record -e cycles,branches ... > >> perf annotate main --

Re: random insta-reboots on AMD Phenom II

2017-10-06 Thread Borislav Petkov
On Fri, Oct 06, 2017 at 08:49:33PM +0200, Johannes Hirte wrote: > I see the same behaviour on Carizzo. Is Excavator an old machine too? Do # rdmsr -a 0xc0010015 as root and paste it here. Thx. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.

[PATCH] scsi: be2iscsi: Use kasprintf

2017-10-06 Thread Himanshu Jha
Use kasprintf instead of combination of kmalloc and sprintf. Signed-off-by: Himanshu Jha --- drivers/scsi/be2iscsi/be_main.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/drivers/scsi/be2iscsi/be_main.c b/drivers/scsi/be2iscsi/be_main.c index b4542e7..6a9ee0e 1

Re: [PATCH v2] isdn/gigaset: Convert timers to use timer_setup()

2017-10-06 Thread Paul Bolle
On Thu, 2017-10-05 at 12:31 -0700, Kees Cook wrote: > --- a/drivers/isdn/gigaset/bas-gigaset.c > +++ b/drivers/isdn/gigaset/bas-gigaset.c > -static void cmd_in_timeout(unsigned long data) > +static void cmd_in_timeout(struct timer_list *t) > { > - struct cardstate *cs = (struct cardstate *) d

Re: random insta-reboots on AMD Phenom II

2017-10-06 Thread Johannes Hirte
On 2017 Okt 06, Borislav Petkov wrote: > On Fri, Oct 06, 2017 at 08:49:33PM +0200, Johannes Hirte wrote: > > I see the same behaviour on Carizzo. Is Excavator an old machine too? > > Do > > # rdmsr -a 0xc0010015 > > as root and paste it here. > > Thx. 19001011 19001011 19001011 19001011 -- Re

Re: random insta-reboots on AMD Phenom II

2017-10-06 Thread Johannes Hirte
On 2017 Sep 30, Borislav Petkov wrote: > On Sat, Sep 30, 2017 at 02:47:11PM +0200, Markus Trippelsdorf wrote: > > Changing the TLB code so late might not be a good idea... > > The new lazy code is too risky to keep as we don't know what else will > break. The conservative and thus safe thing to do

Re: [PATCH] block/bio: Remove null checks before mempool_destroy in bioset_free

2017-10-06 Thread Jens Axboe
On 10/06/2017 12:45 PM, Tim Hansen wrote: > This patch removes redundant checks for null values on bio_pool and bvec_pool. > > Found using make coccicheck M=block/ on linux-net tree on the next-20170929 > tag. > > Related to patch 9987695 that removed similar checks in bio-integrity. Applied,

Re: [PATCH] block: remove unnecessary NULL checks in bioset_integrity_free()

2017-10-06 Thread Jens Axboe
On 10/05/2017 12:09 PM, Tim Hansen wrote: > mempool_destroy() already checks for a NULL value being passed in, this > eliminates duplicate checks. > > This was caught by running make coccicheck M=block/ on linus' tree on commit > 77ede3a014a32746002f7889211f0cecf4803163 (current head as of this

Re: [PATCH] drivers/x86: add thinkpad-wmi

2017-10-06 Thread Corentin Chary
Yes, I'm just having trouble finding time to write it :) I'll try to make that happen next week. On Thu, Oct 5, 2017 at 4:49 AM, Darren Hart wrote: > On Tue, Sep 05, 2017 at 09:07:27AM +0200, Corentin Chary wrote: >> [re-send for the mailing list, I forgot that gmail was stupid] >> >> On Tue, Sep

Re: [PATCH v3 1/2] pid: Replace pid bitmap implementation with IDR API

2017-10-06 Thread Rik van Riel
On Fri, 2017-10-06 at 07:53 -0400, Gargi Sharma wrote: > @@ -308,8 +165,28 @@ struct pid *alloc_pid(struct pid_namespace *ns) The code looks like it addresses all of Oleg's comments now, but the comments could be a little clearer, IMHO.   >   tmp = ns; >   pid->level = ns->level; > + >  

Re: [PATCH tip/core/rcu 1/9] rcu: Provide GP ordering in face of migrations and delays

2017-10-06 Thread Paul E. McKenney
On Fri, Oct 06, 2017 at 11:07:23AM +0200, Peter Zijlstra wrote: > On Thu, Oct 05, 2017 at 11:22:04AM -0700, Paul E. McKenney wrote: > > Hmmm... Here is what I was worried about: > > > > C C-PaulEMcKenney-W+RWC4+2017-10-05 > > > > { > > } > > > > P0(int *a, int *x) > > { > >

[PATCH 0/9] Enable dw-mmc multi-card support

2017-10-06 Thread Liming Sun
This series of commits enables the multi-card support for the dw-mmc controller. It includes two parts as below. The first part (patches 1-7) reverts the series of recent commits that removed the multi-card support with comments saying there was no such use case in the real world. Actually this fe

[PATCH 3/9] Revert "mmc: dw_mmc: use the 'slot' instead of 'cur_slot'"

2017-10-06 Thread Liming Sun
This reverts commit 42f989c002f235557e3a03feac3b2f16b17d53f6. The Mellanox BlueField SoC requires multiple slot dw-mmc support. Signed-off-by: Liming Sun --- drivers/mmc/host/dw_mmc-exynos.c | 4 ++-- drivers/mmc/host/dw_mmc.c| 33 + drivers/mmc/host/dw_

[PATCH 1/9] Revert "Documentation: dw-mshc: deprecate num-slots"

2017-10-06 Thread Liming Sun
This reverts commit 3f5b4b79d4c0fa71fd7d74c2a44bbc0869c04c9b. The Mellanox BlueField SoC requires multiple slot dw-mmc support. Signed-off-by: Liming Sun --- .../devicetree/bindings/mmc/synopsys-dw-mshc.txt | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --g

[PATCH 2/9] Revert "mmc: dw_mmc: remove the unnecessary slot variable"

2017-10-06 Thread Liming Sun
This reverts commit e47c0b96678c5fd731c125dca677880e06d6394c. The Mellanox BlueField SoC requires multiple slot dw-mmc support. Signed-off-by: Liming Sun --- drivers/mmc/host/dw_mmc.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/mmc/host/dw_mmc.c b/d

[PATCH 7/9] Revert "mmc: dw_mmc: deprecated the "num-slots" property"

2017-10-06 Thread Liming Sun
This reverts commit d30a8f7bdf6498e47bd3a6f31e5028f239deb208. The Mellanox BlueField SoC requires multiple slot dw-mmc support. Signed-off-by: Liming Sun --- drivers/mmc/host/dw_mmc.c | 21 + 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/drivers/mmc/host/dw_

[PATCH 9/9] mmc: dw_mmc: Parse slot-specific configuration

2017-10-06 Thread Liming Sun
This commit adds code to parse the child-nodes for slot specific configuration in the dw_mmc host driver according to linux/Documentation/devicetree/bindings/mmc/synopsys-dw-mshc.txt This change is needed when the cards have different configuration like the 'bus-width'. Signed-off-by: Liming Sun

[PATCH 4/9] Revert "mmc: dw_mmc: remove the 'id' arguments about functions relevant to slot"

2017-10-06 Thread Liming Sun
This reverts commit e4a65ef7687b6aaf36bedb497d3fd1480163d2d5. The Mellanox BlueField SoC requires multiple slot dw-mmc support. Signed-off-by: Liming Sun --- drivers/mmc/host/dw_mmc.c | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/drivers/mmc/host/dw_mmc.c

[PATCH 5/9] Revert "mmc: dw_mmc: change the array of slots"

2017-10-06 Thread Liming Sun
This reverts commit b23475faed77f6a9016013c8db6b4707466e74a8. The Mellanox BlueField SoC requires multiple slot dw-mmc support. Signed-off-by: Liming Sun --- drivers/mmc/host/dw_mmc.c | 21 - drivers/mmc/host/dw_mmc.h | 4 +++- 2 files changed, 15 insertions(+), 10 deletion

[PATCH 6/9] Revert "mmc: dw_mmc: remove the loop about finding slots"

2017-10-06 Thread Liming Sun
This reverts commit 58870241a67453be7dc9ab368d5a0cdc9c404616. The Mellanox BlueField SoC requires multiple slot dw-mmc support. Signed-off-by: Liming Sun --- drivers/mmc/host/dw_mmc.c | 115 +++--- 1 file changed, 79 insertions(+), 36 deletions(-) diff -

[PATCH 8/9] mmc: dw_mmc: Support two SD_MMC_CE-ATA cards

2017-10-06 Thread Liming Sun
The dw_mmc controller supports two cards, but the current driver only supports one card. The issue was found on a system with two SD_MMC_CE-ATA cards. In such case, none of the cards could come up when both are enabled. According to the DesignWare Cores Mobile Storage Host Databook, DW-MMC support

Re: random insta-reboots on AMD Phenom II

2017-10-06 Thread Borislav Petkov
On Fri, Oct 06, 2017 at 09:02:09PM +0200, Johannes Hirte wrote: > 19001011 > 19001011 > 19001011 > 19001011 After you boot, do wrmsr -a 0xc0010015 0x19001019 as root. It should fix it temporarily and until the next boot, until we've fixed it upstream properly. -- Regards/Gruss, Boris. Go

[no subject]

2017-10-06 Thread Artur Lorincz
Hello, When you get to it, could you please send me an update about this patch? I believe the attached (trivial) patch should take less time to review then reading this message. Thanks, Artur

[PATCH] default implementation for of_find_all_nodes(...)

2017-10-06 Thread Artur Lorincz
Added default implementation for of_find_all_nodes(). This function is used by board.c from the board module (drivers/staging/board). Signed-off-by: Artur Lorincz --- include/linux/of.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/linux/of.h b/include/linux/of.h index 4a8a709

Re: [PATCH] fs, mm: account filp and names caches to kmemcg

2017-10-06 Thread Shakeel Butt
>> names_cachep = kmem_cache_create("names_cache", PATH_MAX, 0, >> - SLAB_HWCACHE_ALIGN|SLAB_PANIC, NULL); >> + SLAB_HWCACHE_ALIGN|SLAB_PANIC|SLAB_ACCOUNT, NULL); > > I might be wrong but isn't name cache only holding temporary objects > used for path r

Re: [PATCH v2] isdn/gigaset: Convert timers to use timer_setup()

2017-10-06 Thread Kees Cook
On Fri, Oct 6, 2017 at 12:00 PM, Paul Bolle wrote: > On Thu, 2017-10-05 at 12:31 -0700, Kees Cook wrote: >> --- a/drivers/isdn/gigaset/bas-gigaset.c >> +++ b/drivers/isdn/gigaset/bas-gigaset.c > >> -static void cmd_in_timeout(unsigned long data) >> +static void cmd_in_timeout(struct timer_list *t)

Re: [Part2 PATCH v5 12/31] crypto: ccp: Add Secure Encrypted Virtualization (SEV) command support

2017-10-06 Thread Brijesh Singh
On 10/6/17 1:49 PM, Borislav Petkov wrote: ... >> + >> +static unsigned int sev_poll; >> +module_param(sev_poll, uint, 0444); >> +MODULE_PARM_DESC(sev_poll, "Poll for sev command completion - any non-zero >> value"); > What is that used for? Some debugging leftover probably? If not, add a > comm

[PATCH net-next 2/2] bnxt_en: tc: only the function prototypes need to be wrapped in #ifdef

2017-10-06 Thread Jonathan Toppins
There is no reason to wrap the data structures inside the ifdef. Signed-off-by: Jonathan Toppins --- drivers/net/ethernet/broadcom/bnxt/bnxt_tc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt_tc.h b/drivers/net/ethernet/broadcom/

[PATCH net-next 1/2] bnxt_en: don't consider building bnxt_tc.o if option not enabled

2017-10-06 Thread Jonathan Toppins
Instead of zeroing out bnxt_tc.c with a #ifdef foo, instead don't compile the file when the option is not enabled. Now make and the preprocessor do not have to waste time compiling a no-op. Signed-off-by: Jonathan Toppins --- drivers/net/ethernet/broadcom/bnxt/Makefile | 3 ++- drivers/net/ethe

Re: [PATCH] drivers/x86: add thinkpad-wmi

2017-10-06 Thread Darren Hart
On Fri, Oct 06, 2017 at 09:06:14PM +0200, Corentin Chary wrote: > Yes, I'm just having trouble finding time to write it :) > I'll try to make that happen next week. OK, no problem. Marking the patch as "changes requested" and will keep an eye out. Thanks, -- Darren Hart VMware Open Source Techn

[PATCH 1/3] backlight: tdo24m: fix the spi cs between transfers

2017-10-06 Thread Robert Jarzmik
Currently the LCD display (TD035S) on the cm-x300 platform is broken and remains blank. The TD0245S specification requires that the chipselect is toggled between commands sent to the panel. This was also the purpose of the former patch of commit f64dcac0b124 ("backlight: tdo24m: ensure chip select

[PATCH 2/3] backlight: tdo24m: add the reset line gpio

2017-10-06 Thread Robert Jarzmik
The Toppoly panels have a global reset line. Add an optional gpio control for this line, for platforms which have the ability to drive it. Signed-off-by: Robert Jarzmik --- drivers/video/backlight/tdo24m.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/video/backlight/tdo24m.c b/

[PATCH 3/3] backlight: tdo24m: add model and status sysfs entries

2017-10-06 Thread Robert Jarzmik
Add entries to query the panel ASIC to acquire the model number and the status field. This comes in handy to check that the SPI connection is functional and that the panel's firmware is alive. Signed-off-by: Robert Jarzmik --- drivers/video/backlight/tdo24m.c | 73 +++

Re: [PATCH] vfs: hard-ban creating files with control characters in the name

2017-10-06 Thread Theodore Ts'o
On Fri, Oct 06, 2017 at 07:57:01AM -0700, Matthew Wilcox wrote: > > Umm. But filenames still can't have / or \0 in them, so your encryption > already has to avoid at least two special characters. > > I agree with your main point though; there is no advantage to doing this > in each individual fi

Re: [PATCH v2 05/10] clk: bcm: Add Broadcom Hurricane 2 clock support

2017-10-06 Thread Stephen Boyd
On 09/28, Florian Fainelli wrote: > Add support for the Broadcom Hurricane 2 SoC clock controller. We can > re-use the existing iProc clock library since the SoC's architecture is > largely the same as its predecessors. For now, we just initialize the > iProc ARM PLL. > > Acked-by: Jon Mason > Si

Make binder shrinker static and fix null dereference

2017-10-06 Thread Sherry Yang
This patch set makes binder shrinker static and fixes the null pointer dereference in kernel debug message in binder_alloc.c. The earlier patches from this email thread ("android: binder: Remove unused vma argument" and "android: binder: Remove unused vma argument") need to be applied before these

[PATCH 1/2] android: binder: Change binder_shrinker to static

2017-10-06 Thread Sherry Yang
binder_shrinker struct is not used anywhere outside of binder_alloc.c and should be static. Acked-by: Arve Hjønnevåg Signed-off-by: Sherry Yang --- drivers/android/binder_alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/android/binder_alloc.c b/drivers/android

[PATCH 2/2] android: binder: Fix null ptr dereference in debug msg

2017-10-06 Thread Sherry Yang
Don't access next->data in kernel debug message when the next buffer is null. Acked-by: Arve Hjønnevåg Signed-off-by: Sherry Yang --- drivers/android/binder_alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/android/binder_alloc.c b/drivers/android/binder_alloc.

Re: [PATCH tip/core/rcu 1/9] rcu: Provide GP ordering in face of migrations and delays

2017-10-06 Thread Peter Zijlstra
On Fri, Oct 06, 2017 at 12:18:22PM -0700, Paul E. McKenney wrote: > > /me goes and install this herd thing again.. I'm sure I had it running > > _somewhere_.. A well. > > > > C C-PaulEMcKenney-W+RWC4+2017-10-05 > > > > { > > } > > > > P0(int *a, int *x) > > { > >

Re: [PATCH] led/ledtrig-heartbeat: Convert timers to use

2017-10-06 Thread Jacek Anaszewski
Hi Kees, Thanks for the patch. On 10/05/2017 02:49 AM, Kees Cook wrote: > Instead of using .data directly, convert to from_timer. Since the > trigger_data is allocated separately, the led_cdev must be explicitly > tracked for the callback. > > Cc: Richard Purdie > Cc: Jacek Anaszewski > Cc: Pa

[GIT PULL] lkdtm updates for -next (take 2)

2017-10-06 Thread Kees Cook
Hi, Please pull these couple lkdtm changes for -next. This includes fixes for issues 0-day noticed, for which I've updated my test environment to cover in the future. (This is also based on -rc3 because arm64 builds are broken in -rc2.) Thanks! -Kees The following changes since commit 9e66317d

Re: [PATCH v4 02/13] xen/pvcalls: implement frontend disconnect

2017-10-06 Thread Boris Ostrovsky
On 10/06/2017 01:51 PM, Stefano Stabellini wrote: > On Wed, 20 Sep 2017, Boris Ostrovsky wrote: >>> + >>> +struct pvcalls_bedata { >>> + struct xen_pvcalls_front_ring ring; >>> + grant_ref_t ref; >>> + int irq; >>> + >>> + struct list_head socket_mappings; >>> + struct list_head socketpas

Re: [PATCH] led/ledtrig-heartbeat: Convert timers to use

2017-10-06 Thread Kees Cook
On Fri, Oct 6, 2017 at 1:18 PM, Jacek Anaszewski wrote: > Hi Kees, > > Thanks for the patch. > > On 10/05/2017 02:49 AM, Kees Cook wrote: >> Instead of using .data directly, convert to from_timer. Since the >> trigger_data is allocated separately, the led_cdev must be explicitly >> tracked for the

[RFC PATCH] mm: shm: round up tmpfs size to huge page size when huge=always

2017-10-06 Thread Yang Shi
When passing "huge=always" option for mounting tmpfs, THP is supposed to be allocated all the time when it can fit, but when the available space is smaller than the size of THP (2MB on x86), shmem fault handler still tries to allocate huge page every time, then fallback to regular 4K page allocatio

Re: [rcu:dev.2017.10.05a 32/34] include/linux/compiler.h:343:2: error: implicit declaration of function 'smp_read_barrier_depends'

2017-10-06 Thread Paul E. McKenney
On Fri, Oct 06, 2017 at 02:21:39PM +0100, Will Deacon wrote: > Hi Paul, > > On Fri, Oct 06, 2017 at 07:18:41AM +0800, kbuild test robot wrote: > > tree: > > https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git > > dev.2017.10.05a > > head: 39ae2675aa536e6ef9d334fe9097d1e2c6b

Re: [PATCH v4 02/13] xen/pvcalls: implement frontend disconnect

2017-10-06 Thread Stefano Stabellini
On Fri, 6 Oct 2017, Boris Ostrovsky wrote: > On 10/06/2017 01:51 PM, Stefano Stabellini wrote: > > On Wed, 20 Sep 2017, Boris Ostrovsky wrote: > >>> + > >>> +struct pvcalls_bedata { > >>> + struct xen_pvcalls_front_ring ring; > >>> + grant_ref_t ref; > >>> + int irq; > >>> + > >>> + struct list_hea

Re: [PATCH v4 02/13] xen/pvcalls: implement frontend disconnect

2017-10-06 Thread Boris Ostrovsky
On 10/06/2017 04:29 PM, Stefano Stabellini wrote: > On Fri, 6 Oct 2017, Boris Ostrovsky wrote: >> On 10/06/2017 01:51 PM, Stefano Stabellini wrote: >>> On Wed, 20 Sep 2017, Boris Ostrovsky wrote: > + > +struct pvcalls_bedata { > + struct xen_pvcalls_front_ring ring; > + grant_ref_t

[PATCH v1 RFC 1/7] Replace license with GPL

2017-10-06 Thread Tristram.Ha
From: Tristram Ha Replace license with GPL. Signed-off-by: Tristram Ha --- drivers/net/dsa/microchip/ksz_9477_reg.h | 23 --- drivers/net/dsa/microchip/ksz_common.c | 23 --- drivers/net/dsa/microchip/ksz_priv.h | 23 --- driver

<    2   3   4   5   6   7   8   9   10   >