Re: [PATCH] rtc: ds1374: wdt:support suspend/resume for watchdog

2017-10-12 Thread Guenter Roeck
On 10/12/2017 06:40 AM, 刘稳 wrote: At 2017-10-10 23:05:14, "Guenter Roeck" wrote: On Tue, Oct 10, 2017 at 03:51:34PM +0200, Alexandre Belloni wrote: On 10/10/2017 at 06:41:15 -0700, Guenter Roeck wrote: On 10/10/2017 06:12 AM, winton.liu wrote: When enable CONFIG_RTC_DRV_DS1374_WDT

[PATCH v8 4/4] perf vendor events arm64: Add ThunderX2 implementation defined pmu core events

2017-10-12 Thread Ganapatrao Kulkarni
This is not a full event list, but a short list of useful events. Signed-off-by: Ganapatrao Kulkarni --- .../arch/arm64/cavium/thunderx2-imp-def.json | 62 ++ tools/perf/pmu-events/arch/arm64/mapfile.csv | 15 ++ 2 files changed, 77 insertions(+) create mode

[PATCH v8 1/4] perf utils: passing pmu as a parameter to function get_cpuid_str

2017-10-12 Thread Ganapatrao Kulkarni
cpuid string will not be same on all CPUs on heterogeneous platforms like ARM's big.LITTLE, adding provision(using pmu->cpus) to find cpuid string from associated CPUs of PMU CORE device. also optimise arguments to function pmu_add_cpu_aliases. Signed-off-by: Ganapatrao Kulkarni --- tools/perf/

[PATCH v8 3/4] perf utils: Add helper function is_pmu_core to detect PMU CORE devices

2017-10-12 Thread Ganapatrao Kulkarni
On some platforms, PMU core devices sysfs name is not cpu. Adding function is_pmu_core to detect PMU core devices using core device specific hints in sysfs. For arm64 platforms, all core devices have file "cpus" in sysfs. Acked-by: Will Deacon Tested-by: Shaokun Zhang Signed-off-by: Ganapatrao

[PATCH v8 0/4] Add support for ThunderX2 pmu events using json files

2017-10-12 Thread Ganapatrao Kulkarni
Extending json/jevent framework for parsing arm64 event files. Adding jevents for ThunderX2 implementation defined PMU events. v8: - Rename thunderx2 directory to cavium v7: - Addressed some more comments from Will Deacon. v6 : Addressed comments [1] [2] [1] https://patchwork.kernel.org/p

Re: [Part2 PATCH v5.2 12.3/31] crypto: ccp: Implement SEV_FACTORY_RESET ioctl command

2017-10-12 Thread Borislav Petkov
On Wed, Oct 11, 2017 at 11:55:21AM -0500, Brijesh Singh wrote: > The SEV_FACTORY_RESET command can be used by the platform owner to > reset the non-volatile SEV related data. The command is defined in > SEV spec section 5.4 > > Cc: Paolo Bonzini > Cc: "Radim Krčmář" > Cc: Borislav Petkov > Cc:

Re: [RFC PATCH] dmaengine: sh: Correct src_addr_widths/dst_addr_widths bitmask setting

2017-10-12 Thread Vinod Koul
On Sun, Sep 17, 2017 at 04:45:39PM +0200, Stefan Brüns wrote: > Obviously, the current value for the burst widths are wrong, and if this > value is retrieved from some other subsystem using dma_get_slave_caps, > it will wrongly assume burst width of e.g. 3 bytes are supported. > > Each bit in the

RFC(v2): Audit Kernel Container IDs

2017-10-12 Thread Richard Guy Briggs
Containers are a userspace concept. The kernel knows nothing of them. The Linux audit system needs a way to be able to track the container provenance of events and actions. Audit needs the kernel's help to do this. Since the concept of a container is entirely a userspace concept, a registration

Re: [PATCH 3/3] ARM: mvebu: dts: connect interrupt for WD on armada-38x

2017-10-12 Thread Gregory CLEMENT
Hi Chris, On mer., oct. 11 2017, Chris Packham wrote: > The watchdog timer interrupt is available internally on the Armada-38x > SoCs. Connect it so that we can have the orion_wdt_irq generate debug > information when a watchdog timeout occurs. Given the patch 2, when an interrupt is provided

Re: [PATCH] KVM:X86 simply update A/D bits route

2017-10-12 Thread Paolo Bonzini
On 12/10/2017 23:17, Peng Hao wrote: > update_accessed_dirty_bits return 0 when dirty/accessed bits are > not supported. So walk_addr_generic just call update_accessed_dirty_bits > with supporting dirty/accessed bits. > > Signed-off-by: Peng Hao > --- > arch/x86/kvm/paging_tmpl.h | 2 +- > 1 fil

Re: [Part2 PATCH v5.2 12.1/31] crypto: ccp: Define SEV userspace ioctl and command id

2017-10-12 Thread Brijesh Singh
On 10/12/2017 08:27 AM, Borislav Petkov wrote: ... +/** + * struct sev_user_data_status - PLATFORM_STATUS command parameters + * + * @major: major API version + * @minor: minor API version + * @state: platform state + * @owner: self-owned or externally owned + * @config: platform config flag

[PATCH 3/3] alpha: atomics: Add smp_read_barrier_depends() to release/relaxed atomics

2017-10-12 Thread Will Deacon
As part of the fight against smp_read_barrier_depends(), we require dependency ordering to be preserved when a dependency is headed by a load performed using an atomic operation. This patch adds smp_read_barrier_depends() to the _release and _relaxed atomics on alpha, which otherwise lack anything

Re: [RFC PATCH 0/3] Add mmap(MAP_CONTIG) support

2017-10-12 Thread Anshuman Khandual
On 10/12/2017 04:06 PM, Anshuman Khandual wrote: > On 10/12/2017 07:16 AM, Mike Kravetz wrote: >> The following is a 'possible' way to add such functionality. I just >> did what was easy and pre-allocated contiguous pages which are used >> to populate the mapping. I did not use any of the higher

[PATCH 2/3] locking/barriers: Kill lockless_dereference

2017-10-12 Thread Will Deacon
lockless_dereference is a nice idea, but its gained little traction in kernel code since it's introduction three years ago. This is partly because it's a pain to type, but also because using READ_ONCE instead will work correctly on all architectures apart from Alpha, which is a fully supported but

[PATCH 0/3] Remove lockless_dereference

2017-10-12 Thread Will Deacon
Hi all, These patches remove lockless_dereference from the kernel. It's only used in a handful of places relative to READ_ONCE and ACCESS_ONCE and is only required for correctness on Alpha. Consequently, READ_ONCE is strengthened on Alpha systems to include the smp_read_barrier_depends implicitly

[PATCH 1/3] linux/compiler.h: Split into compiler.h and compiler-types.h

2017-10-12 Thread Will Deacon
linux/compiler.h is included indirectly by linux/types.h via uapi/linux/types.h -> uapi/linux/posix_types.h -> linux/stddef.h -> uapi/linux/stddef.h and is needed to provide a proper definition of offsetof. Unfortunately, compiler.h requires a definition of smp_read_barrier_depends() for defining

Re: [PATCH] nullb: make config_item_type const

2017-10-12 Thread Jens Axboe
On 10/12/2017 04:19 AM, Bhumika Goyal wrote: > This is a followup patch for: https://lkml.org/lkml/2017/10/11/375 and > https://patchwork.kernel.org/patch/649/ > > Make these structures const as they are either passed to the functions > having the argument as const or stored as a reference in

Re: Sluggish AT91 I2C driver causes SMBus timeouts

2017-10-12 Thread Peter Rosin
On 2017-10-12 13:35, Peter Rosin wrote: > Hi! > > I have encountered an "interesting" bug. It silently corrupts data > and is generally nasty... > > On an I2C bus, driven by the at91 driver and DMA (an Atmel > sama5d31 chip), I have an 256 byte eeprom (NXP SE97BTP). I'm using > Linux v4.13. > >

Re: [PATCH v7 10/15] platform/x86: dell-smbios: add filtering capability for requests

2017-10-12 Thread Pali Rohár
On Thursday 12 October 2017 13:23:08 mario.limoncie...@dell.com wrote: > The existing dcdbas calling interface tooling (libsmbios) expects to be able > to access all calls and all tokens. *The kernel doesn't filter any of it.* It does not mean that API/ABI was designed correctly or incorrectly.

Re: [PATCH] gpio: gpio-dwapb: add optional reset

2017-10-12 Thread Alan Tull
On Thu, Oct 12, 2017 at 3:26 AM, Linus Walleij wrote: Hi Linus, Phillipp, > This v2 version applied with Philipp's review tag, I also added > a blurb to the DT binding as Philipp asked so no need to fix that > separately. > > Yours, > Linus Walleij Thanks! Alan Tull

Re: [PATCH] perf tools: fix: Force backward ring buffer mapped readonly

2017-10-12 Thread Wangnan (F)
On 2017/10/12 20:56, Liang, Kan wrote: On 2017/10/11 21:16, Liang, Kan wrote: perf record's --overwrite option doesn't work as we expect. For example: [SNIP] In the above example we get same records from the backward ring buffer all the time. Overwriting is not triggered. This commit maps

Re: [RFC PATCH 3/3] mm/map_contig: Add mmap(MAP_CONTIG) support

2017-10-12 Thread Michal Hocko
On Wed 11-10-17 18:46:11, Mike Kravetz wrote: > Add new MAP_CONTIG flag to mmap system call. Check for flag in normal > mmap flag processing. If present, pre-allocate a contiguous set of > pages to back the mapping. These pages will be used a fault time, and > the MAP_CONTIG flag implies populat

[PATCH] bcache: safeguard a dangerous addressing in closure_queue

2017-10-12 Thread Liang Chen
The use of the union reduces the size of closure struct by taking advantage of the current size of its members. The offset of func in work_struct equals the size of the first three members, so that work.work_func will just reference the forth member - fn. This is smart but dangerous. It can be bro

Re: [PATCH 10/10] irqchip/gic-v4: Make the doorbells managed affinity interrupts

2017-10-12 Thread Marc Zyngier
On 12/10/17 10:22, Thomas Gleixner wrote: > On Tue, 10 Oct 2017, Marc Zyngier wrote: >> int its_alloc_vcpu_irqs(struct its_vm *vm) >> { >> int vpe_base_irq, i; >> >> +vm->affinity_masks = kzalloc(vm->nr_vpes * sizeof(*vm->affinity_masks), >> + GFP_KERNEL

Re: [PATCH 1/9] SOC: brcmstb: add memory API

2017-10-12 Thread Julien Thierry
Hi Jim, On 11/10/17 23:34, Jim Quinlan wrote: From: Florian Fainelli This commit adds a memory API suitable for ascertaining the sizes of each of the N memory controllers in a Broadcom STB chip. Its first user will be the Broadcom STB PCIe root complex driver, which needs to know these sizes

Re: Sluggish AT91 I2C driver causes SMBus timeouts

2017-10-12 Thread Guenter Roeck
On 10/12/2017 07:32 AM, Peter Rosin wrote: On 2017-10-12 13:35, Peter Rosin wrote: Hi! I have encountered an "interesting" bug. It silently corrupts data and is generally nasty... On an I2C bus, driven by the at91 driver and DMA (an Atmel sama5d31 chip), I have an 256 byte eeprom (NXP SE97BTP)

Re: [PATCH] nullb: make config_item_type const

2017-10-12 Thread Bhumika Goyal
On Thu, Oct 12, 2017 at 4:27 PM, Jens Axboe wrote: > On 10/12/2017 04:19 AM, Bhumika Goyal wrote: >> This is a followup patch for: https://lkml.org/lkml/2017/10/11/375 and >> https://patchwork.kernel.org/patch/649/ >> >> Make these structures const as they are either passed to the functions >>

Re: [PATCH] drm: Fix return value check in kirin_drm_platform_probe()

2017-10-12 Thread Sean Paul
On Thu, Oct 12, 2017 at 2:39 AM, Gabriel Krisman Bertazi wrote: > Wei Yongjun writes: > >> In case of error, the function of_graph_get_remote_node() returns NULL >> pointer not ERR_PTR(). The IS_ERR() test in the return value check >> should be replaced with NULL test.. > > Looks good. > > Review

RE: [PATCH v7 10/15] platform/x86: dell-smbios: add filtering capability for requests

2017-10-12 Thread Mario.Limonciello
> -Original Message- > From: Pali Rohár [mailto:pali.ro...@gmail.com] > Sent: Thursday, October 12, 2017 9:34 AM > To: Limonciello, Mario > Cc: gno...@lxorguk.ukuu.org.uk; dvh...@infradead.org; > andy.shevche...@gmail.com; linux-kernel@vger.kernel.org; platform-driver- > x...@vger.kernel.o

RE: [PATCH] perf tools: fix: Force backward ring buffer mapped readonly

2017-10-12 Thread Liang, Kan
> On 2017/10/12 20:56, Liang, Kan wrote: > >> On 2017/10/11 21:16, Liang, Kan wrote: > perf record's --overwrite option doesn't work as we expect. > For example: > >> [SNIP] > >> > In the above example we get same records from the backward ring > buffer all the time. Overwritin

Re: [PATCH 02/10] perf tool: fix: Don't discard prev in backward mode

2017-10-12 Thread Wangnan (F)
On 2017/10/12 20:49, Liang, Kan wrote: From 8b058ea6977a97e5705aa2f64bdd014fd76d1247 Mon Sep 17 00:00:00 2001 From: Kan Liang Date: Wed, 11 Oct 2017 07:39:34 -0700 Subject: [PATCH] perf tool: fix: Don't discard prev in backward mode Perf record can switch output. The new output should onl

Re: [PATCH v8 9/9] sparc64: Add support for ADI (Application Data Integrity)

2017-10-12 Thread Khalid Aziz
Hi Anthony, Please quote only the relevant parts of the patch with comments. That makes it much easier to find the comments. On 10/06/2017 04:12 PM, Anthony Yznaga wrote: On Sep 25, 2017, at 9:49 AM, Khalid Aziz wrote: This patch extends mprotect to enable ADI (TSTATE.mcde), enable/disabl

Re: [PATCH] nullb: make config_item_type const

2017-10-12 Thread Jens Axboe
On 10/12/2017 08:42 AM, Bhumika Goyal wrote: > On Thu, Oct 12, 2017 at 4:27 PM, Jens Axboe wrote: >> On 10/12/2017 04:19 AM, Bhumika Goyal wrote: >>> This is a followup patch for: https://lkml.org/lkml/2017/10/11/375 and >>> https://patchwork.kernel.org/patch/649/ >>> >>> Make these structures

Re: [PATCH 2/4] i2c: Add Qualcomm Camera Control Interface driver

2017-10-12 Thread Todor Tomov
Hi Bjorn, Thank you for the review. There are a lot of important suggestions. On 6.10.2017 08:20, Bjorn Andersson wrote: > On Mon 02 Oct 07:13 PDT 2017, Todor Tomov wrote: >> diff --git a/drivers/i2c/busses/i2c-qcom-cci.c >> b/drivers/i2c/busses/i2c-qcom-cci.c > [..] >> +#define NUM_MASTERS 1 >

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

2017-10-12 Thread Aleksandar Markovic
(resending since the previous mail was rejected by the mailing list because of html format) > Subject: Re: [PATCH 1/2] MIPS: math-emu: Update debugfs FP exception stats > for certain instructions > Date: Thursday, October 12, 2017 12:17 CEST > From: James Hogan > > > ... > > if ((ctx->fcr31 >>

Re: [PATCH] perf tools: fix: Force backward ring buffer mapped readonly

2017-10-12 Thread Wangnan (F)
On 2017/10/12 22:45, Liang, Kan wrote: On 2017/10/12 20:56, Liang, Kan wrote: On 2017/10/11 21:16, Liang, Kan wrote: perf record's --overwrite option doesn't work as we expect. For example: [SNIP] In the above example we get same records from the backward ring buffer all the time. Overwrit

Re: [PATCH 1/4] dt-bindings: media: Binding document for Qualcomm Camera Control Interface driver

2017-10-12 Thread Todor Tomov
Hi Bjorn, Thank you for the review. On 6.10.2017 08:29, Bjorn Andersson wrote: > On Mon 02 Oct 07:13 PDT 2017, Todor Tomov wrote: >> diff --git a/Documentation/devicetree/bindings/i2c/i2c-qcom-cci.txt >> b/Documentation/devicetree/bindings/i2c/i2c-qcom-cci.txt >> new file mode 100644 >> index 0

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

2017-10-12 Thread James Hogan
On Thu, Oct 12, 2017 at 03:57:50PM +0200, Aleksandar Markovic wrote: > > > Subject: Re: [PATCH 1/2] MIPS: math-emu: Update debugfs FP exception stats > > for certain instructions > > Date: Thursday, October 12, 2017 12:17 CEST > > From: James Hogan >@badag02.ba.imgtec.org> > > > ... > > > if ((ct

Re: [PATCH] nullb: make config_item_type const

2017-10-12 Thread Bhumika Goyal
On Thu, Oct 12, 2017 at 4:47 PM, Jens Axboe wrote: > On 10/12/2017 08:42 AM, Bhumika Goyal wrote: >> On Thu, Oct 12, 2017 at 4:27 PM, Jens Axboe wrote: >>> On 10/12/2017 04:19 AM, Bhumika Goyal wrote: This is a followup patch for: https://lkml.org/lkml/2017/10/11/375 and https://patchwo

Re: [PATCH V6 4/5] blk-mq-sched: improve dispatching from sw queue

2017-10-12 Thread Jens Axboe
On 10/12/2017 04:01 AM, Ming Lei wrote: > On Tue, Oct 10, 2017 at 11:23:45AM -0700, Omar Sandoval wrote: >> On Mon, Oct 09, 2017 at 07:24:23PM +0800, Ming Lei wrote: >>> SCSI devices use host-wide tagset, and the shared driver tag space is >>> often quite big. Meantime there is also queue depth for

Re: [PATCH 3/8] mm, truncate: Remove all exceptional entries from pagevec under one lock

2017-10-12 Thread Mel Gorman
On Thu, Oct 12, 2017 at 03:33:23PM +0200, Jan Kara wrote: > > return; > > > > - if (dax_mapping(mapping)) { > > - dax_delete_mapping_entry(mapping, index); > > - return; > > + dax = dax_mapping(mapping); > > + if (!dax) > > + spin_lock_irq(&mapping-

Re: [PATCH for-next 2/4] RDMA/hns: Add IOMMU enable support in hip08

2017-10-12 Thread Leon Romanovsky
On Thu, Oct 12, 2017 at 08:31:31PM +0800, Wei Hu (Xavier) wrote: > > > On 2017/10/1 0:10, Leon Romanovsky wrote: > > On Sat, Sep 30, 2017 at 05:28:59PM +0800, Wei Hu (Xavier) wrote: > > > If the IOMMU is enabled, the length of sg obtained from > > > __iommu_map_sg_attrs is not 4kB. When the IOVA is

Re: [PATCH] perf tools: fix: Force backward ring buffer mapped readonly

2017-10-12 Thread Wangnan (F)
On 2017/10/12 22:46, Wangnan (F) wrote: On 2017/10/12 22:45, Liang, Kan wrote: On 2017/10/12 20:56, Liang, Kan wrote: On 2017/10/11 21:16, Liang, Kan wrote: perf record's --overwrite option doesn't work as we expect. For example: [SNIP] In the above example we get same records from the

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

2017-10-12 Thread Jan Kara
On Wed 04-10-17 17:52:54, Kees Cook wrote: > 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. > > Cc: "Theodore Ts'o" > Cc: Andreas Dilger > Cc: linux-

Re: [PATCH] target/iscsi: make config_item_type const

2017-10-12 Thread Bhumika Goyal
On Thu, Oct 12, 2017 at 3:48 PM, Bhumika Goyal wrote: > This is a followup patch for: > https://patchwork.kernel.org/patch/649/ > > Make config_item_type structures const as they are only passed to the > functions having the argument as const. Make the declaration const too. > > Signed-off-by:

Re: [PATCH] configfs: make config_item_type const

2017-10-12 Thread Bhumika Goyal
On Thu, Oct 12, 2017 at 3:29 PM, Bhumika Goyal wrote: > This is a followup patch for: > https://patchwork.kernel.org/patch/649/ and > https://lkml.org/lkml/2017/10/11/375 > > Make config_item_type structures const as they are either passed to a > function having the argument as const or stored

Re: [PATCH] dlm: make config_item_type const

2017-10-12 Thread Bhumika Goyal
On Thu, Oct 12, 2017 at 3:22 PM, Bhumika Goyal wrote: > This is a followup patch for: > https://patchwork.kernel.org/patch/649/ and > https://lkml.org/lkml/2017/10/11/375 > > Make config_item_type structures const as they are either passed to a > function having the argument as const or stored

Re: [PATCH] usb: gadget: configfs: make config_item_type const

2017-10-12 Thread Bhumika Goyal
On Thu, Oct 12, 2017 at 3:03 PM, Bhumika Goyal wrote: > This is a followup patch for: > https://patchwork.kernel.org/patch/649/ and > https://lkml.org/lkml/2017/10/11/375 > > Make config_item_type structures const as they are either passed to a > function having the argument as const or stored

Re: [PATCH v3 4/5] efi: call get_event_log before ExitBootServices

2017-10-12 Thread Javier Martinez Canillas
On Thu, Oct 12, 2017 at 1:38 PM, Jarkko Sakkinen wrote: [snip] > > Now all Thiebaud's patches have been applied to the master of > > git://git.infradead.org/users/jjs/linux-tpmdd.git > > Testing is still pending. > I provided my reviewed and tested by tags for the patches but I noticed that w

Re: [PATCH] netconsole: make config_item_type const

2017-10-12 Thread Bhumika Goyal
On Thu, Oct 12, 2017 at 2:29 PM, Bhumika Goyal wrote: > This is a followup patch for: https://lkml.org/lkml/2017/10/11/375 and > https://patchwork.kernel.org/patch/649/ > > Make these structures const as they are either passed to the functions > having the argument as const or stored as a refe

Re: [PATCH] nvmet: make config_item_type const

2017-10-12 Thread Bhumika Goyal
On Thu, Oct 12, 2017 at 2:38 PM, Bhumika Goyal wrote: > This is a followup patch for: > https://patchwork.kernel.org/patch/649/ and > https://lkml.org/lkml/2017/10/11/375 > > Make config_item_type structures const as they are either passed to a > function having the argument as const or used i

Re: [PATCH] PCI: endpoint: make config_item_type const

2017-10-12 Thread Bhumika Goyal
On Thu, Oct 12, 2017 at 2:50 PM, Bhumika Goyal wrote: > This is a followup patch for: > https://patchwork.kernel.org/patch/649/ and > https://lkml.org/lkml/2017/10/11/375 > > Make config_item_type structures const as they are either passed to a > function having the argument as const or stored

Re: [PATCH] IB/cma: make config_item_type const

2017-10-12 Thread Bhumika Goyal
On Thu, Oct 12, 2017 at 2:20 PM, Bhumika Goyal wrote: > This is a followup patch for: https://lkml.org/lkml/2017/10/11/375 and > https://patchwork.kernel.org/patch/649/ > > Make these structures const as they are either passed to the functions > having the argument as const or stored as a refe

Re: [PATCH] stm class: make config_item_type const

2017-10-12 Thread Bhumika Goyal
On Thu, Oct 12, 2017 at 2:12 PM, Bhumika Goyal wrote: > This is a followup patch for: > https://patchwork.kernel.org/patch/649/ and > https://lkml.org/lkml/2017/10/11/375 > > Make config_item_type structures const as they are either passed to a > function having the argument as const or used i

Re: [PATCH] ACPI: configfs: make config_item_type const

2017-10-12 Thread Bhumika Goyal
On Thu, Oct 12, 2017 at 12:02 PM, Bhumika Goyal wrote: > This is a followup patch for: https://lkml.org/lkml/2017/10/11/375 and > https://patchwork.kernel.org/patch/649/ > > Make these structures const as they are either passed to the functions > having the argument as const or stored as a ref

Re: [PATCH] iio: make config_item_type const

2017-10-12 Thread Bhumika Goyal
On Thu, Oct 12, 2017 at 11:41 AM, Bhumika Goyal wrote: > This is a followup patch for: > https://lkml.org/lkml/2017/10/11/375 > https://patchwork.kernel.org/patch/649/ > https://lkml.org/lkml/2017/10/11/469 and > https://lkml.org/lkml/2017/10/11/661 > > Make the config_item_type structures con

RE: [PATCH 3/3] Drivers: hv: vmbus: Make pannic reporting to be more useful

2017-10-12 Thread KY Srinivasan
> -Original Message- > From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > Sent: Thursday, October 12, 2017 6:40 AM > To: k...@exchange.microsoft.com > Cc: gre...@linuxfoundation.org; linux-kernel@vger.kernel.org; > de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; > jas

Re: [RFC PATCH] dmaengine: sh: Correct src_addr_widths/dst_addr_widths bitmask setting

2017-10-12 Thread Brüns , Stefan
On Donnerstag, 12. Oktober 2017 16:18:12 CEST Vinod Koul wrote: > On Sun, Sep 17, 2017 at 04:45:39PM +0200, Stefan Brüns wrote: > > Obviously, the current value for the burst widths are wrong, and if this > > value is retrieved from some other subsystem using dma_get_slave_caps, > > it will wrongly

Re: [PATCH] hwrng: pr_err() strings should end with newlines

2017-10-12 Thread Herbert Xu
On Mon, Sep 25, 2017 at 01:15:00PM +0530, Arvind Yadav wrote: > pr_err() messages should terminated with a new-line to avoid > other messages being concatenated onto the end. > > Signed-off-by: Arvind Yadav Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~her

Re: [PATCH 0/2] crypto: lrw - Fixes for the 'create()' function

2017-10-12 Thread Herbert Xu
On Sun, Oct 08, 2017 at 11:39:48AM +0200, Christophe JAILLET wrote: > The first patch is the same as the one committed for crypto/xts.c applied a > few days ago. > (commit 5125e4e867ab ("crypto: xts - Fix an error handling path in > 'create()'") > in /git/herbert/crypto-2.6.git) > > The 2nd one i

RE: [PATCH] perf tools: fix: Force backward ring buffer mapped readonly

2017-10-12 Thread Liang, Kan
> > On 2017/10/12 22:45, Liang, Kan wrote: > >>> On 2017/10/12 20:56, Liang, Kan wrote: > > On 2017/10/11 21:16, Liang, Kan wrote: > >>> perf record's --overwrite option doesn't work as we expect. > >>> For example: > > [SNIP] > > > >>> In the above example we get same recor

[PATCH] perf tool: Don't discard prev in backward mode

2017-10-12 Thread Wang Nan
Perf record can switch output. The new output should only store the data after switching. However, in overwrite backward mode, the new output still have the data from old output. That also brings extra overhead. At the end of mmap_read, the position of processed ring buffer is saved in md->prev. N

big_key.c:undefined reference to `crypto_aead_setkey'

2017-10-12 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: ff5abbe799e29099695cb8b5b2f198dd8b8bdf26 commit: 428490e38b2e352812e0b765d8bceafab0ec441d security/keys: rewrite all of big_key crypto date: 2 weeks ago config: x86_64-randconfig-it0-10121950 (attached as

Re: [PATCH 2/2] perf, tools: Don't force MetricExprs to lower case

2017-10-12 Thread Jiri Olsa
On Mon, Oct 09, 2017 at 04:41:55PM +0200, Jiri Olsa wrote: > On Mon, Oct 09, 2017 at 11:09:44AM -0300, Arnaldo Carvalho de Melo wrote: > > SNIP > > > [root@jouet bpf]# cat sys_read.c > > #define SEC(NAME) __attribute__((section(NAME), used)) > > SEC("func=sys_read") > > int bpf_func__sys_read(vo

Re: [PATCH v9 2/5] x86/cpuid: Add generic table for cpuid dependencies

2017-10-12 Thread Thomas Gleixner
On Thu, 12 Oct 2017, Ingo Molnar wrote: > > * Andi Kleen wrote: > > > --- /dev/null > > +++ b/arch/x86/kernel/cpu/cpuid-deps.c > > @@ -0,0 +1,109 @@ > > +/* Declare dependencies between CPUIDs */ > > +#include > > +#include > > +#include > > +#include > > + > > +struct cpuid_dep { > > + un

[tip:x86/urgent] x86/apic: Update TSC_DEADLINE quirk with additional SKX stepping

2017-10-12 Thread tip-bot for Len Brown
Commit-ID: 616dd5872e52493863b0202632703eebd51243dc Gitweb: https://git.kernel.org/tip/616dd5872e52493863b0202632703eebd51243dc Author: Len Brown AuthorDate: Wed, 11 Oct 2017 17:16:04 -0400 Committer: Thomas Gleixner CommitDate: Thu, 12 Oct 2017 17:10:11 +0200 x86/apic: Update TSC_DEAD

[tip:x86/urgent] x86/apic: Silence "FW_BUG TSC_DEADLINE disabled due to Errata" on hypervisors

2017-10-12 Thread tip-bot for Paolo Bonzini
Commit-ID: cc6afe2240298049585e86b1ade85efc8a7f225d Gitweb: https://git.kernel.org/tip/cc6afe2240298049585e86b1ade85efc8a7f225d Author: Paolo Bonzini AuthorDate: Tue, 10 Oct 2017 12:12:57 +0200 Committer: Thomas Gleixner CommitDate: Thu, 12 Oct 2017 17:10:10 +0200 x86/apic: Silence "FW

Re: [PATCH] perf tool: Don't discard prev in backward mode

2017-10-12 Thread Wangnan (F)
Hi Kan, Please see if this patch works for you. On 2017/10/14 7:16, Wang Nan wrote: Perf record can switch output. The new output should only store the data after switching. However, in overwrite backward mode, the new output still have the data from old output. That also brings extra overhead.

Re: [PATCH] chacha20-ssse3/avx2: satisfy stack validation 2.0

2017-10-12 Thread Herbert Xu
On Sun, Oct 08, 2017 at 10:50:53PM +0200, Jason A. Donenfeld wrote: > The new stack validator in objdump doesn't like directly assigning r11 > to rsp, warning with something like: > > warning: objtool: chacha20_4block_xor_ssse3()+0xa: unsupported stack pointer > realignment > warning: objtool: ch

Re: [PATCH 2/3] locking/barriers: Kill lockless_dereference

2017-10-12 Thread Paul E. McKenney
On Thu, Oct 12, 2017 at 03:26:16PM +0100, Will Deacon wrote: > lockless_dereference is a nice idea, but its gained little traction in > kernel code since it's introduction three years ago. This is partly > because it's a pain to type, but also because using READ_ONCE instead > will work correctly o

Re: [PATCH 3/3] alpha: atomics: Add smp_read_barrier_depends() to release/relaxed atomics

2017-10-12 Thread Paul E. McKenney
On Thu, Oct 12, 2017 at 03:26:17PM +0100, Will Deacon wrote: > As part of the fight against smp_read_barrier_depends(), we require > dependency ordering to be preserved when a dependency is headed by a load > performed using an atomic operation. > > This patch adds smp_read_barrier_depends() to th

Re: [PATCH 2/5] x86/kernel: Skip TSC test and error messages if already unstable

2017-10-12 Thread Mike Travis
On 10/12/2017 4:17 AM, Thomas Gleixner wrote: On Thu, 5 Oct 2017, mike.tra...@hpe.com wrote: If the TSC has already been determined to be unstable, then checking TSC ADJUST values is a waste of time and generates unnecessary error messages. Signed-off-by: Mike Travis Reviewed-by: Dimitri Si

Re: [PATCH 4.9 000/105] 4.9.55-stable review

2017-10-12 Thread Andreas Radke
Building the 4.9.x kernel package for Arch Linux 4.9.55 gives this IPv4 error here: Job for dhcpd4.service failed because the control process exited with error code. See "systemctl status dhcpd4.service" and "journalctl -xe" for details. root@server64:/root # systemctl status dhcpd4.service ●

Re: [PATCH 00/18] crypto: talitos - fixes and performance improvement

2017-10-12 Thread Herbert Xu
On Fri, Oct 06, 2017 at 03:04:31PM +0200, Christophe Leroy wrote: > This serie fixes and improves the talitos crypto driver. > > First 6 patchs are fixes of failures reported by the new tests in the > kernel crypto test manager. > > The 8 following patches are cleanups and simplifications. > > T

Re: [09/10] driver:video: return -ENOMEM on allocation failure.

2017-10-12 Thread Bartlomiej Zolnierkiewicz
[ cc: list trimmed down do linux-fbdev/dri-devel/linux-kernel ] On Wednesday, September 13, 2017 01:02:18 PM Allen wrote: > Signed-off-by: Allen Pais Patch queued for 4.15 (with patch description fixed to "video: fbdev: matrox: return -ENOMEM on allocation failure"), thanks. Best regards, -- B

Re: [PATCH] elf_fdpic: fix unused variable warning

2017-10-12 Thread Nicolas Pitre
On Thu, 12 Oct 2017, Arnd Bergmann wrote: > The elf_fdpic code shows a harmless warning when built with MMU > enabled, I ran into this now that the configuration is possible > on ARM randconfig builds: > > fs/binfmt_elf_fdpic.c: In function 'elf_fdpic_dump_segments': > fs/binfmt_elf_fdpic.c:1501:

Re: [PATCH V6 4/5] blk-mq-sched: improve dispatching from sw queue

2017-10-12 Thread Ming Lei
On Thu, Oct 12, 2017 at 08:52:12AM -0600, Jens Axboe wrote: > On 10/12/2017 04:01 AM, Ming Lei wrote: > > On Tue, Oct 10, 2017 at 11:23:45AM -0700, Omar Sandoval wrote: > >> On Mon, Oct 09, 2017 at 07:24:23PM +0800, Ming Lei wrote: > >>> SCSI devices use host-wide tagset, and the shared driver tag

Re: [PATCH 2/5] x86/kernel: Skip TSC test and error messages if already unstable

2017-10-12 Thread Thomas Gleixner
On Thu, 12 Oct 2017, Mike Travis wrote: > On 10/12/2017 4:17 AM, Thomas Gleixner wrote: > > On Thu, 5 Oct 2017, mike.tra...@hpe.com wrote: > > > @@ -89,6 +93,10 @@ bool tsc_store_and_check_tsc_adjust(bool > > > if (!boot_cpu_has(X86_FEATURE_TSC_ADJUST)) > > > return fals

Re: [PATCH v8 0/4] Add support for ThunderX2 pmu events using json files

2017-10-12 Thread Will Deacon
On Thu, Oct 12, 2017 at 07:41:12PM +0530, Ganapatrao Kulkarni wrote: > Extending json/jevent framework for parsing arm64 event files. > Adding jevents for ThunderX2 implementation defined PMU events. > > v8: >- Rename thunderx2 directory to cavium For the series: Acked-by: Will Deacon Alth

Re: [PATCH V6 4/5] blk-mq-sched: improve dispatching from sw queue

2017-10-12 Thread Jens Axboe
On 10/12/2017 09:22 AM, Ming Lei wrote: > On Thu, Oct 12, 2017 at 08:52:12AM -0600, Jens Axboe wrote: >> On 10/12/2017 04:01 AM, Ming Lei wrote: >>> On Tue, Oct 10, 2017 at 11:23:45AM -0700, Omar Sandoval wrote: On Mon, Oct 09, 2017 at 07:24:23PM +0800, Ming Lei wrote: > SCSI devices use h

[PATCH] nvmem: meson: use generic compatible

2017-10-12 Thread Jerome Brunet
The meson efuse driver seems to be compatible with more SoCs than initially thought. Let's use the most generic compatible he have in DT instead of the gxbb specific one Signed-off-by: Jerome Brunet --- Documentation/devicetree/bindings/nvmem/amlogic-efuse.txt | 4 ++-- drivers/nvmem/meson-efuse

Re: [PATCH 4.9 000/105] 4.9.55-stable review

2017-10-12 Thread Xin Long
On Thu, Oct 12, 2017 at 11:18 PM, Andreas Radke wrote: > Building the 4.9.x kernel package for Arch Linux 4.9.55 gives this IPv4 error > here: > > Job for dhcpd4.service failed because the control process exited with error > code. > See "systemctl status dhcpd4.service" and "journalctl -xe" fo

Re: [PATCH] ARM: head-common.S: Clear lr before jumping to start_kernel()

2017-10-12 Thread Nicolas Pitre
On Thu, 12 Oct 2017, Russell King - ARM Linux wrote: > On Tue, Oct 10, 2017 at 01:33:25PM -0700, Tony Lindgren wrote: > > * Geert Uytterhoeven [171003 11:32]: > > > On Tue, Oct 3, 2017 at 8:15 PM, Geert Uytterhoeven > > > wrote: > > > > On Tue, Oct 3, 2017 at 8:11 PM, Geert Uytterhoeven > > >

Re: [PATCH] drivers/video/fbdev/atyfb: make const arrays static, reduces object code size

2017-10-12 Thread Bartlomiej Zolnierkiewicz
On Wednesday, September 13, 2017 04:03:09 PM Colin King wrote: > From: Colin Ian King > > Don't populate the const arrays ragepro_tbl and ragexl_tbl on the stack, > instead make them static. Makes the object code smaller by over 380 bytes: > > Before: >text data bss dec

Re: [PATCH v3 1/7] KEYS: don't let add_key() update an uninstantiated key

2017-10-12 Thread David Howells
Eric Biggers wrote: > Therefore, change find_key_to_update() to return NULL if the found key > is uninstantiated, so that add_key() replaces the key rather than > instantiating it. This seems to be better than fixing __key_update() to > call __key_instantiate_and_link(), since given all the bugs

Re: [PATCH] elf_fdpic: fix unused variable warning

2017-10-12 Thread Arnd Bergmann
On Thu, Oct 12, 2017 at 5:21 PM, Nicolas Pitre wrote: > On Thu, 12 Oct 2017, Arnd Bergmann wrote: > >> The elf_fdpic code shows a harmless warning when built with MMU >> enabled, I ran into this now that the configuration is possible >> on ARM randconfig builds: >> >> fs/binfmt_elf_fdpic.c: In fun

[PATCH] misc: make config_item_type const

2017-10-12 Thread Bhumika Goyal
This is a followup patch for: https://lkml.org/lkml/2017/10/11/375 Make this const as it is only stored in the const "ci_type" field of a config_item structure. Signed-off-by: Bhumika Goyal --- It does not seem to be possible to compile this driver and it has not received many patches in the las

Re: [PATCH v1] mm/mempolicy.c: Fix get_nodes() off-by-one error.

2017-10-12 Thread Andi Kleen
On Thu, Oct 12, 2017 at 10:46:33AM +0200, Michal Hocko wrote: > [CC Christoph who seems to be the author of the code] Actually you can blame me. I did the mistake originally. It was found many years ago, but then it was already too late to change. > Andi has voiced a concern about backward compat

Re: PROBLEM: Kernel BUG in mfgpt_tick (cs5535-clockevt.c) on ALIX 2c3 - null call

2017-10-12 Thread Thomas Gleixner
On Thu, 12 Oct 2017, Daniel Lezcano wrote: > On 11/10/2017 22:48, David Kozub wrote: > > [ ... ] > > >> > >> +   disable_timer(timer); > >> +   cs5535_mfgpt_write(timer, MFGPT_REG_COUNTER, 0); > >> + > >>    /* Set up the IRQ on the MFGPT side */ > >>    if (cs5535_mfgpt_setup_ir

Re: [PATCH] video: fbdev: sis: make const array specialtv static, reduces object code size

2017-10-12 Thread Bartlomiej Zolnierkiewicz
On Wednesday, September 13, 2017 04:41:37 PM Colin King wrote: > From: Colin Ian King > > Don't populate the const array specialtv on the stack, instead make it > static. Makes the object code smaller by over 1100 bytes: > > Before: >text data bss dec hex filename > 17

[PATCH] elf_fdpic: fix unused variable warning

2017-10-12 Thread Arnd Bergmann
The elf_fdpic code shows a harmless warning when built with MMU disabled, I ran into this now that fdpic is available on ARM randconfig builds since commit 50b2b2e691cd ("ARM: add ELF_FDPIC support"). fs/binfmt_elf_fdpic.c: In function 'elf_fdpic_dump_segments': fs/binfmt_elf_fdpic.c:1501:17: erro

Re: [PATCH V6 4/5] blk-mq-sched: improve dispatching from sw queue

2017-10-12 Thread Bart Van Assche
On Thu, 2017-10-12 at 18:01 +0800, Ming Lei wrote: > Even EWMA approach isn't good on SCSI-MQ too, because > some SCSI's .cmd_per_lun is very small, such as 3 on > lpfc and qla2xxx, and one full flush will trigger > BLK_STS_RESOURCE easily. > > So I suggest to use the way of q->queue_depth first,

Re: [PATCH] elf_fdpic: fix unused variable warning

2017-10-12 Thread Al Viro
On Thu, Oct 12, 2017 at 05:31:46PM +0200, Arnd Bergmann wrote: > The elf_fdpic code shows a harmless warning when built with MMU disabled, > I ran into this now that fdpic is available on ARM randconfig builds > since commit 50b2b2e691cd ("ARM: add ELF_FDPIC support"). > > fs/binfmt_elf_fdpic.c: I

Re: [PATCH 4.9 000/105] 4.9.55-stable review

2017-10-12 Thread Shuah Khan
On 10/12/2017 09:25 AM, Xin Long wrote: > On Thu, Oct 12, 2017 at 11:18 PM, Andreas Radke > wrote: >> Building the 4.9.x kernel package for Arch Linux 4.9.55 gives this IPv4 >> error here: >> >> Job for dhcpd4.service failed because the control process exited with error >> code. >> See "systemct

[PATCH] agp: amd64: remove redundant assignment of i = 0

2017-10-12 Thread Colin King
From: Colin Ian King The assignent of i = 0 is redundant as it is re-assigned to zero in the following for-loop. Clean this up by removing it. Cleans up clang warning: Value stored to 'i' is never read Signed-off-by: Colin Ian King --- drivers/char/agp/amd64-agp.c | 1 - 1 file changed, 1 del

Re: [PATCH V6 4/5] blk-mq-sched: improve dispatching from sw queue

2017-10-12 Thread Jens Axboe
On 10/12/2017 09:33 AM, Bart Van Assche wrote: > On Thu, 2017-10-12 at 18:01 +0800, Ming Lei wrote: >> Even EWMA approach isn't good on SCSI-MQ too, because >> some SCSI's .cmd_per_lun is very small, such as 3 on >> lpfc and qla2xxx, and one full flush will trigger >> BLK_STS_RESOURCE easily. >> >>

RE: [PATCH] perf tool: Don't discard prev in backward mode

2017-10-12 Thread Liang, Kan
> Perf record can switch output. The new output should only store the data > after switching. However, in overwrite backward mode, the new output still > have the data from old output. That also brings extra overhead. > > At the end of mmap_read, the position of processed ring buffer is saved in >

Re: [PATCH 0/6] Cache coherent device memory (CDM) with HMM v5

2017-10-12 Thread Jerome Glisse
On Wed, Oct 11, 2017 at 09:15:57PM +0800, Bob Liu wrote: > On Sun, Oct 1, 2017 at 6:49 AM, Jerome Glisse wrote: > > On Sat, Sep 30, 2017 at 10:57:38AM +0800, Bob Liu wrote: > >> On 2017/9/27 0:16, Jerome Glisse wrote: > >> > On Tue, Sep 26, 2017 at 05:56:26PM +0800, Bob Liu wrote: > >> >> On Tue,

Re: [PATCH 2/2] perf, tools: Don't force MetricExprs to lower case

2017-10-12 Thread Wangnan (F)
On 2017/10/9 22:39, Jiri Olsa wrote: On Mon, Oct 09, 2017 at 11:12:58AM -0300, Arnaldo Carvalho de Melo wrote: Em Mon, Oct 09, 2017 at 07:07:29AM -0700, Andi Kleen escreveu: On Mon, Oct 09, 2017 at 03:41:51PM +0200, Jiri Olsa wrote: On Wed, Oct 04, 2017 at 09:27:11AM -0700, Andi Kleen wrote:

Re: [RESEND PATCH v2 2/2] lockdep: Remove unnecessary acquisitions wrt workqueue flush

2017-10-12 Thread Tejun Heo
Hello, On Thu, Oct 12, 2017 at 04:54:35PM +0900, Byungchul Park wrote: > On Tue, Oct 10, 2017 at 03:51:37PM +0900, Byungchul Park wrote: > > The workqueue added manual acquisitions to catch deadlock cases. > > Now crossrelease was introduced, some of those are redundant, since > > wait_for_complet

<    1   2   3   4   5   6   7   8   9   10   >