Re: [PATCH v6 2/3]: perf/core: use context tstamp_data for skipped events on mux interrupt

2017-08-03 Thread Peter Zijlstra
On Wed, Aug 02, 2017 at 11:15:39AM +0300, Alexey Budankov wrote: > +struct perf_event_tstamp { > + /* > + * These are timestamps used for computing total_time_enabled > + * and total_time_running when the event is in INACTIVE or > + * ACTIVE state, measured in nanoseconds from an

drivers/s390/char/keyboard.c kernel stack infoleak

2017-08-03 Thread sohu0106
The stack object "kbdiacr" has a total size of 4 bytes. Its last 1 bytes are padding bytes after "result" which are not initialized and leaked to userland via "copy_to_user". diff --git a/keyboard.c b/keyboard.c index ba0e4f9..76a6d35 100644 --- a/keyboard.c +++ b/keyboard.c @@ -480,6 +480,8 @

[PATCH] mm, oom: fix potential data corruption when oom_reaper races with writer

2017-08-03 Thread Michal Hocko
From: Michal Hocko Wenwei Tao has noticed that our current assumption that the oom victim is dying and never doing any visible changes after it dies is not entirely true. __task_will_free_mem consider a task dying when SIGNAL_GROUP_EXIT is set but do_group_exit sends SIGKILL to all threads _after

drivers/s390/char/keyboard.c NULL pointer reference

2017-08-03 Thread sohu0106
Local users able to send the NULL arg argument to kbd_ioctl(), which could cause kernel crash diff --git a/keyboard.c  b/keyboard.c index ba0e4f9..3ec16b1 100644 --- a/keyboard.c +++ b/keyboard.c @@ -456,6 +456,8 @@ int kbd_ioctl(struct kbd_data *kbd, unsigned int cmd, unsigned long arg)  

Re: [PATCH 23/29] drm/tilcdc: switch to drm_*{get,put} helpers

2017-08-03 Thread Jyri Sarha
 Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki On 08/03/17 14:58, Cihangir Akturk wrote: > drm_*_reference() and drm_*_unreference() functions are just > compatibility alias for drm_*_get() and drm_*_put() adn shoul

Re: [RFC] Tagging of vmalloc pages for supporting the pmalloc allocator

2017-08-03 Thread Michal Hocko
On Thu 03-08-17 15:20:31, Igor Stoppa wrote: > On 03/08/17 14:48, Michal Hocko wrote: > > On Thu 03-08-17 13:11:45, Igor Stoppa wrote: > >> On 02/08/17 20:08, Jerome Glisse wrote: > >>> On Wed, Aug 02, 2017 at 06:14:28PM +0300, Igor Stoppa wrote: > > [...] > > from include/linux/mm_types.h:

Re: [PATCH v4] acpi/iort: numa: Add numa node mapping for smmuv3 devices

2017-08-03 Thread Lorenzo Pieralisi
On Thu, Aug 03, 2017 at 09:35:45PM +0800, Hanjun Guo wrote: > On 2017/8/3 0:21, Lorenzo Pieralisi wrote: > > Patch that I will send upstream below, please check, thanks. > > > > -- >8 -- > > Subject: [PATCH] ACPI/IORT: numa: Add numa node mapping for smmuv3 devices > > > > ARM IORT specification(re

Re: [PATCH v13 4/5] mm: support reporting free page blocks

2017-08-03 Thread Michal Hocko
On Thu 03-08-17 21:17:25, Wei Wang wrote: > On 08/03/2017 08:41 PM, Michal Hocko wrote: > >On Thu 03-08-17 20:11:58, Wei Wang wrote: > >>On 08/03/2017 07:28 PM, Michal Hocko wrote: > >>>On Thu 03-08-17 19:27:19, Wei Wang wrote: > On 08/03/2017 06:44 PM, Michal Hocko wrote: > >On Thu 03-08-1

Re: [PATCH V2] staging: ccree: Fix format/argument mismatches

2017-08-03 Thread Joe Perches
On Thu, 2017-08-03 at 17:09 +0800, kbuild test robot wrote: > Hi Joe, > > [auto build test WARNING on staging/staging-testing] > [also build test WARNING on next-20170803] > [cannot apply to v4.13-rc3] > [if your patch is applied to the wrong git tree, please drop us a note to

net/netfilter/nf_tables_api.c: BUG_ON(ctx->table->use > 0)

2017-08-03 Thread Michael Tirado
Been getting beaten up by this bug for a few days now. I made a small test program for you netfilter experts to try because I'm running out of ideas over here. Attached is a C program to trigger the BUG_ON. I have narrowed possible causes down to the portion of my code that sends NFT_MSG_NEWRULE,

[PATCH v8 2/4] PCI: Disable PCIe Relaxed Ordering if unsupported

2017-08-03 Thread Ding Tianhong
When bit4 is set in the PCIe Device Control register, it indicates whether the device is permitted to use relaxed ordering. On some platforms using relaxed ordering can have performance issues or due to erratum can cause data-corruption. In such cases devices must avoid using relaxed ordering. Thi

Re: [alsa-devel] [PATCH v2] ASoC: Intel: Reset hw_ptr on resume trigger

2017-08-03 Thread Cheng-yi Chiang
+Jarkko Nikula Hi Keyon, Sorry for the late reply. I spent some time trying to figure out previous suspend resume patch in BYT. From the patch for restore_stream flag: https://patchwork.kernel.org/patch/4706611/, the restore_stream flag means that ADSP was in power off state during system su

Re: [PATCH v2] KVM: nVMX: Fix attempting to emulate "Acknowledge interrupt on exit" when there is no interrupt which L1 requires to inject to L2

2017-08-03 Thread Radim Krčmář
2017-07-31 19:25-0700, Wanpeng Li: > From: Wanpeng Li > > [ cut here ] > WARNING: CPU: 5 PID: 2288 at arch/x86/kvm/vmx.c:11124 > nested_vmx_vmexit+0xd64/0xd70 [kvm_intel] > CPU: 5 PID: 2288 Comm: qemu-system-x86 Not tainted 4.13.0-rc2+ #7 > RIP: 0010:nested_vmx_vmexit+

[PATCH v5] crypto : stm32 - Add STM32F4 CRC32 support

2017-08-03 Thread Cosar Dindar
This patch adds CRC (CRC32 Crypto) support for STM32F4 series. As an hardware limitation polynomial and key setting are not supported. They are fixed as 0x4C11DB7 (poly) and 0x (key). CRC32C Castagnoli algorithm is not used. Signed-off-by: Cosar Dindar --- Changes in v5: - shash_alg st

[PATCH v8 1/4] PCI: Add new PCIe Fabric End Node flag, PCI_DEV_FLAGS_NO_RELAXED_ORDERING

2017-08-03 Thread Ding Tianhong
From: Casey Leedom The patch adds a new flag PCI_DEV_FLAGS_NO_RELAXED_ORDERING to indicate that Relaxed Ordering (RO) attribute should not be used for Transaction Layer Packets (TLP) targetted towards these affected root complexes. Current list of affected parts include Intel E5-26xx root complex

[PATCH v8 3/4] net/cxgb4: Use new PCI_DEV_FLAGS_NO_RELAXED_ORDERING flag

2017-08-03 Thread Ding Tianhong
From: Casey Leedom cxgb4 Ethernet driver now queries PCIe configuration space to determine if it can send TLPs to it with the Relaxed Ordering Attribute set. Remove the enable_pcie_relaxed_ordering() to avoid enable PCIe Capability Device Control[Relaxed Ordering Enable] at probe routine, to mak

[PATCH v8 4/4] net/cxgb4vf: Use new PCI_DEV_FLAGS_NO_RELAXED_ORDERING flag

2017-08-03 Thread Ding Tianhong
From: Casey Leedom cxgb4vf Ethernet driver now queries PCIe configuration space to determine if it can send TLPs to it with the Relaxed Ordering Attribute set, just like the pf did. Signed-off-by: Casey Leedom Signed-off-by: Ding Tianhong Reviewed-by: Casey Leedom --- drivers/net/ethernet/ch

[PATCH v8 0/4] Add new PCI_DEV_FLAGS_NO_RELAXED_ORDERING flag

2017-08-03 Thread Ding Tianhong
Some devices have problems with Transaction Layer Packets with the Relaxed Ordering Attribute set. This patch set adds a new PCIe Device Flag, PCI_DEV_FLAGS_NO_RELAXED_ORDERING, a set of PCI Quirks to catch some known devices with Relaxed Ordering issues, and a use of this new flag by the cxgb4 dr

Re: [PATCH v4] acpi/iort: numa: Add numa node mapping for smmuv3 devices

2017-08-03 Thread Hanjun Guo
On 2017/8/3 21:35, Hanjun Guo wrote: > On 2017/8/3 0:21, Lorenzo Pieralisi wrote: >> > Patch that I will send upstream below, please check, thanks. >> > >> > -- >8 -- >> > Subject: [PATCH] ACPI/IORT: numa: Add numa node mapping for smmuv3 devices >> > >> > ARM IORT specification(rev. C) has added

Re: Compatibles for i2c muxes nxp,pca954x and ti,tca954x

2017-08-03 Thread Andrew Lunn
On Thu, Aug 03, 2017 at 12:00:27PM +0200, Peter Rosin wrote: > Hi! > > Texas has apparently made copies for some of the NXP devices > handled by the drivers/i2c/muxes/i2c-mux-pca954x.c driver. This happens a lot in the i2c space. Look at all the at24 EEPROM clones. Yet they all use the same compa

[PATCH 2/3] firmware: efi: constify attribute_group structures.

2017-08-03 Thread Arvind Yadav
attribute_group are not supposed to change at runtime. All functions working with attribute_group provided by work with const attribute_group. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/firmware/efi/efi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [PATCH v4] acpi/iort: numa: Add numa node mapping for smmuv3 devices

2017-08-03 Thread Hanjun Guo
On 2017/8/3 0:21, Lorenzo Pieralisi wrote: > Patch that I will send upstream below, please check, thanks. > > -- >8 -- > Subject: [PATCH] ACPI/IORT: numa: Add numa node mapping for smmuv3 devices > > ARM IORT specification(rev. C) has added provision to define proximity > domain in SMMUv3 IORT tab

[PATCH 1/3] firmware: dcdbas: constify attribute_group structures.

2017-08-03 Thread Arvind Yadav
attribute_group are not supposed to change at runtime. All functions working with attribute_group provided by work with const attribute_group. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/firmware/dcdbas.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [PATCH 2/3] drm/vc4: Don't disable DSI clocks on component unload.

2017-08-03 Thread Noralf Trønnes
Den 02.08.2017 22.32, skrev Eric Anholt: The clocks are enabled/disabled at encoder enable/disable time, not at component load. Fixes a WARN_ON at boot if V3D fails to probe. Fixes: 4078f5757144 ("drm/vc4: Add DSI driver") Signed-off-by: Eric Anholt --- Acked-by: Noralf Trønnes drivers

[PATCH 3/3] firmware: efi: esrt: constify attribute_group structures.

2017-08-03 Thread Arvind Yadav
attribute_group are not supposed to change at runtime. All functions working with attribute_group provided by work with const attribute_group. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/firmware/efi/esrt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-

[PATCH 0/3] constify firmware attribute_group structures.

2017-08-03 Thread Arvind Yadav
attribute_group are not supposed to change at runtime. All functions working with attribute_group provided by work with const attribute_group. So mark the non-const structs as const. Arvind Yadav (3): [PATCH 1/3] firmware: dcdbas: constify attribute_group structures. [PATCH 2/3] firmware: efi

Re: [PATCH 3/3] drm/vc4: Fix errant drm_bridge_remove() in DSI.

2017-08-03 Thread Noralf Trønnes
Den 02.08.2017 22.32, skrev Eric Anholt: drm_bridge_remove() is for unregistering a bridge driver, not for detaching a bridge from its consumer. Fixes: 656fa22f9cea ("drm/vc4: Switch DSI to the panel-bridge layer, and support bridges.") Signed-off-by: Eric Anholt --- Acked-by: Noralf Trønne

Re: [PATCH] MAINTAINERS: copy virtio on balloon_compaction.c

2017-08-03 Thread Rafael Aquini
On Thu, Aug 03, 2017 at 03:42:52PM +0300, Michael S. Tsirkin wrote: > Changes to mm/balloon_compaction.c can easily break virtio, and virtio > is the only user of that interface. Add a line to MAINTAINERS so > whoever changes that file remembers to copy us. > > Signed-off-by: Michael S. Tsirkin

Re: [PATCH] MCB: add support for SC31 to mcb-lpc

2017-08-03 Thread Johannes Thumshirn
Applied, Thanks -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: Felix Imendörffer, Jane Smithard, Graham Norton HRB 21284 (AG Nürnberg) Key fingerprint =

Re: [PATCH v2 net-next 2/3] net: dsa: lan9303: define LAN9303_NUM_PORTS 3

2017-08-03 Thread Andrew Lunn
> Related question: If the driver does dsa_switch_alloc(3), can it then > trust that all "port" params passed in DSA methods will be between > 0 and 2? Yes. Andrew

Re: [PATCH v2 1/2] Documentation: dt: pinctrl: Add pmi8994 gpio support

2017-08-03 Thread Linus Walleij
On Fri, Jul 28, 2017 at 3:18 PM, Vivek Gautam wrote: > Update the binding doc for qcom pmi8994-gpio devices. > > Signed-off-by: Vivek Gautam Patch applied with Stephen's review tag. Yours, Linus Walleij

Re: [PATCH v3 net-next 5/5] net: dsa: lan9303: refactor lan9303_get_ethtool_stats

2017-08-03 Thread Andrew Lunn
On Thu, Aug 03, 2017 at 11:45:07AM +0200, Egil Hjelmeland wrote: > In lan9303_get_ethtool_stats: Get rid of 0x400 constant magic > by using new lan9303_read_switch_reg() inside loop. > Reduced scope of two variables. > > Signed-off-by: Egil Hjelmeland Reviewed-by: Andrew Lunn Andrew

Re: Suspend-resume failure on Intel Eagle Lake Core2Duo

2017-08-03 Thread Marc Zyngier
On 03/08/17 13:52, Masahiro Yamada wrote: > Hi Marc, > > 2017-08-03 17:41 GMT+09:00 Marc Zyngier : >> Hi Masahiro, >> >> On 03/08/17 08:32, Masahiro Yamada wrote: >>> Hi. >>> >>> 2017-08-01 0:55 GMT+09:00 Thomas Gleixner : On Mon, 31 Jul 2017, Tomi Sarvela wrote: > On 31/07/17 18:06, Thom

Re: [PATCH v3 net-next 4/5] net: dsa: lan9303: Rename lan9303_xxx_packet_processing()

2017-08-03 Thread Andrew Lunn
On Thu, Aug 03, 2017 at 11:45:06AM +0200, Egil Hjelmeland wrote: > The lan9303_enable_packet_processing, lan9303_disable_packet_processing > functions operate on port, so the names should reflect that. > And to align with lan9303_disable_processing(), rename: > > lan9303_enable_packet_processing -

Re: [PATCH v3 net-next 3/5] net: dsa: lan9303: Simplify lan9303_xxx_packet_processing() usage

2017-08-03 Thread Andrew Lunn
On Thu, Aug 03, 2017 at 11:45:05AM +0200, Egil Hjelmeland wrote: > Simplify usage of lan9303_enable_packet_processing, > lan9303_disable_packet_processing() > > Signed-off-by: Egil Hjelmeland Reviewed-by: Andrew Lunn Andrew

Re: [PATCH v3 net-next 2/5] net: dsa: lan9303: define LAN9303_NUM_PORTS 3

2017-08-03 Thread Andrew Lunn
On Thu, Aug 03, 2017 at 11:45:04AM +0200, Egil Hjelmeland wrote: > Will be used instead of '3' in upcomming patches. > > Signed-off-by: Egil Hjelmeland Signed-off-by: Andrew Lunn Andrew

Re: [PATCH v3 net-next 1/5] net: dsa: lan9303: Change lan9303_xxx_packet_processing() port param.

2017-08-03 Thread Andrew Lunn
On Thu, Aug 03, 2017 at 11:45:03AM +0200, Egil Hjelmeland wrote: > lan9303_enable_packet_processing, lan9303_disable_packet_processing() > Pass port number (0,1,2) as parameter instead of port offset. > Because other functions in the module pass port numbers. > And to enable simplifications in foll

Re: [PATCH v3 0/5] ACPI: DMA ranges management

2017-08-03 Thread Hanjun Guo
On 2017/8/3 20:32, Lorenzo Pieralisi wrote: > This patch series is v3 of a previous posting: > > v2->v3: > - Fixed DMA masks computation > - Fixed size computation overflow in acpi_dma_get_range() > > v1->v2: > - Reworked acpi_dma_get_range() flow and logs > - Added IORT n

Re: [PATCH 1/2] bitops: Avoid integer overflow warning in GENMASK_ULL

2017-08-03 Thread Yury Norov
On Wed, Aug 02, 2017 at 03:51:58PM -0700, Matthias Kaehlcke wrote: > GENMASK_ULL performs a left-shift of (~0ULL), which technically > results in an integer overflow. clang raises a warning about > this if the overflow occurs in a preprocessor expression. To > avoid the overflow first perform a rig

Re: [PATCH] Remove explicit return type cast

2017-08-03 Thread Dan Carpenter
v4.13-rc3] > > [if your patch is applied to the wrong git tree, please drop us a note to > > help improve the system] > > > > url: > > https://github.com/0day-ci/linux/commits/Hari-Prasath/Remove-explicit-return-type-cast/20170803-080312 > > config: blackfin-a

[PATCH v2] dmaengine: qcom-bam: Process multiple pending descriptors

2017-08-03 Thread Sricharan R
The bam dmaengine has a circular FIFO to which we add hw descriptors that describes the transaction. The FIFO has space for about 4096 hw descriptors. Currently we add one descriptor and wait for it to complete with interrupt and then add the next pending descriptor. In this way, the FIFO is under

Re: [PATCH 2/2] arm64: Define PAGE_OFFSET using GENMASK_ULL

2017-08-03 Thread Yury Norov
Hi Matthias, On Wed, Aug 02, 2017 at 03:51:59PM -0700, Matthias Kaehlcke wrote: > As is the definition causes an integer overflow, which is expected, > however clang raises the following warning: > > arch/arm64/kernel/head.S:47:8: warning: > integer overflow in preprocessor expression > #

Re: [PATCH v3 2/2] mmc: sdhci-msm: set sdma_boundary to zero

2017-08-03 Thread Adrian Hunter
On 03/08/17 15:46, srinivas.kandaga...@linaro.org wrote: > From: Srinivas Kandagatla > > Programming legacy HOST SDMA Buffer Boundary bits in Block Size Register > (0x04) is not supported in Qualcomm sdhci controllers. Writing to this > would cause the controller not to transfer last block in cas

Re: [PATCH v3 1/2] mmc: sdhci: add sdma_boundary member to struct sdhci_host

2017-08-03 Thread Adrian Hunter
On 03/08/17 15:46, srinivas.kandaga...@linaro.org wrote: > From: Srinivas Kandagatla > > This patch adds sdma_boundary member to struct sdhci_host to give more > flexibility to drivers to control the sdma boundary buffer value and > also to fix issue on some sdhci controllers which are broken whe

Re: [PATCH v2] dma-mapping: skip USB devices when configuring DMA during probe

2017-08-03 Thread Robin Murphy
On 03/08/17 14:14, Johan Hovold wrote: > USB devices use the DMA mask and offset of the controller, which have > already been setup when a device is probed. Note that modifying the > DMA mask of a USB device would change the mask for the controller (and > all devices on the bus) as the mask is lite

[PATCH] ACPI / dock: constify attribute_group structures.

2017-08-03 Thread Arvind Yadav
attribute_group are not supposed to change at runtime. All functions working with attribute_group provided by work with const attribute_group. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/acpi/dock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

Re: [PATCH v13 5/5] virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_VQ

2017-08-03 Thread Wei Wang
On 08/03/2017 09:05 PM, Pankaj Gupta wrote: On 08/03/2017 04:13 PM, Pankaj Gupta wrote: +/* Allocate space for find_vqs parameters */ +vqs = kcalloc(nvqs, sizeof(*vqs), GFP_KERNEL); +if (!vqs) +goto err_vq; +callbacks = kmalloc_array(nvqs, sizeof(*

[PATCH] mm: add pmd_t initializer __pmd() to work around a GCC bug.

2017-08-03 Thread Zi Yan
From: Zi Yan THP migration is added but only supports x86_64 at the moment. For all other architectures, swp_entry_to_pmd() only returns a zero pmd_t. Due to a GCC zero initializer bug #53119, the standard (pmd_t){0} initializer is not accepted by all GCC versions. __pmd() is a feasible workarou

Re: [PATCH 1/2] ARM: mvebu: enable ARM_GLOBAL_TIMER compilation Armada 38x platforms

2017-08-03 Thread Gregory CLEMENT
Hi Marcin, On mar., août 01 2017, Marcin Wojtas wrote: > Armada 38x SoCs along with legacy timer (time-armada-370-xp.c), > comprise generic Cortex-A9 global timer (arm_global_timer.c). > Enable its compilation. The system clocksource subsystem > will pick one of above two available ones in cas

Re: [PATCH RESEND] mm: don't zero ballooned pages

2017-08-03 Thread Wei Wang
On 08/03/2017 08:54 PM, Michal Hocko wrote: On Thu 03-08-17 19:59:17, Wei Wang wrote: This patch is a revert of 'commit bb01b64cfab7 ("mm/balloon_compaction.c: enqueue zero page to balloon device")' Ballooned pages will be marked as MADV_DONTNEED by the hypervisor and shouldn't be given to the

Re: wake_wide mechanism clarification

2017-08-03 Thread Josef Bacik
On Thu, Aug 03, 2017 at 11:53:19AM +0100, Brendan Jackman wrote: > > Hi, > > On Fri, Jun 30 2017 at 17:55, Josef Bacik wrote: > > On Fri, Jun 30, 2017 at 07:02:20PM +0200, Mike Galbraith wrote: > >> On Fri, 2017-06-30 at 10:28 -0400, Josef Bacik wrote: > >> > On Thu, Jun 29, 2017 at 08:04:59PM -0

[PATCH v2] dma-mapping: skip USB devices when configuring DMA during probe

2017-08-03 Thread Johan Hovold
USB devices use the DMA mask and offset of the controller, which have already been setup when a device is probed. Note that modifying the DMA mask of a USB device would change the mask for the controller (and all devices on the bus) as the mask is literally shared. Since commit 2bf698671205 ("USB:

Re: [PATCH 2/2] ARM: dts: armada-38x: Add arm_global_timer node

2017-08-03 Thread Gregory CLEMENT
Hi Marcin, On mar., août 01 2017, Marcin Wojtas wrote: > Since generic Cortex-A9 global timer is available after adding > it to compilation, enable its node in armada-38x.dtsi. > > Signed-off-by: Marcin Wojtas Applied on mvebu/dt Thanks, Gregory > --- > arch/arm/boot/dts/armada-38x.dtsi

Re: [PATCH v13 4/5] mm: support reporting free page blocks

2017-08-03 Thread Wei Wang
On 08/03/2017 08:41 PM, Michal Hocko wrote: On Thu 03-08-17 20:11:58, Wei Wang wrote: On 08/03/2017 07:28 PM, Michal Hocko wrote: On Thu 03-08-17 19:27:19, Wei Wang wrote: On 08/03/2017 06:44 PM, Michal Hocko wrote: On Thu 03-08-17 18:42:15, Wei Wang wrote: On 08/03/2017 05:11 PM, Michal Hoc

Re: [patches] Re: [PATCH v7 01/15] MAINTAINERS: Add RISC-V

2017-08-03 Thread Jonathan Neuschäfer
On Tue, Aug 01, 2017 at 04:03:28PM +0300, Andy Shevchenko wrote: > On Mon, 2017-07-31 at 17:59 -0700, Palmer Dabbelt wrote: > > From: Jonathan Neuschäfer > > > > RISC-V needs a MAINTAINERS entry. Let's add one. > > > > Have you checked this by a brand new script (*) from Linus?  > > (*) parse-

Re: [PATCH v2 4/6] ASoC: codecs: msm8916-wcd-analog: add MBHC support

2017-08-03 Thread Srinivas Kandagatla
On 03/08/17 13:53, Damien Riegel wrote: On Thu, Aug 03, 2017 at 12:11:04PM +0100, Srinivas Kandagatla wrote: On 03/08/17 00:33, Damien Riegel wrote: Hi Srinivas, On Wed, Aug 02, 2017 at 07:09:28PM +0200, srinivas.kandaga...@linaro.org wrote: From: Srinivas Kandagatla MBHC (MultiButton

Re: [linuxwifi] x86/thermal: AB-BA dependency between mvm->mutex and tz->lock

2017-08-03 Thread Jiri Kosina
On Thu, 3 Aug 2017, Jiri Kosina wrote: > > I see the workqueue allocation you mentioned. I'll try to move this > > allocation out of the mutex and see how it goes. > > I have been briefly looking into this as well -- it'll basically have to > be moved out of the trans_pcie->mutex context, but

Re: [PATCH 28/29] drm/vmwgfx: switch to drm_*{get,put} helpers

2017-08-03 Thread Daniel Vetter
On Thu, Aug 03, 2017 at 02:40:43PM +0200, Thomas Hellstrom wrote: > On 08/03/2017 01:58 PM, Cihangir Akturk wrote: > > drm_*_reference() and drm_*_unreference() functions are just > > compatibility alias for drm_*_get() and drm_*_put() adn should not be > > s/adn/and/ > > used by new code. So conv

Re: [PATCH 17/29] drm/nouveau: switch to drm_*{get,put} helpers

2017-08-03 Thread Tobias Klausmann
Looks good to me! Reviewed-by: Tobias Klausmann On 8/3/17 1:58 PM, Cihangir Akturk wrote: > drm_*_reference() and drm_*_unreference() functions are just > compatibility alias for drm_*_get() and drm_*_put() adn should not be > used by new code. So convert all users of compatibility functions to

Re: [PATCH 2/6] drm/rockchip: vop: fix iommu page fault when resume

2017-08-03 Thread Sandy Huang
Hi mark, 在 2017/7/31 17:49, Mark Yao 写道: Iommu would get page fault with following path: vop_disable: 1, disable all windows and set vop config done 2, vop enter to standy, all windows not works, but their registers are not clean, when you read window's enable bit, ma

Re: [PATCH v13 5/5] virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_VQ

2017-08-03 Thread Pankaj Gupta
> > On 08/03/2017 04:13 PM, Pankaj Gupta wrote: > >> > >> +/* Allocate space for find_vqs parameters */ > >> +vqs = kcalloc(nvqs, sizeof(*vqs), GFP_KERNEL); > >> +if (!vqs) > >> +goto err_vq; > >> +callbacks = kmalloc_array(nvqs, sizeof(*callbacks),

Re: [PATCH v6 2/3]: perf/core: use context tstamp_data for skipped events on mux interrupt

2017-08-03 Thread Peter Zijlstra
On Wed, Aug 02, 2017 at 11:15:39AM +0300, Alexey Budankov wrote: > Event groups allocated for CPU's different from the one that handles > multiplexing > hrtimer interrupt may be skipped by interrupt handler however the events > tstamp_enabled, tstamp_running and tstamp_stopped fields still need

Re: Some ideas about tcpm driver

2017-08-03 Thread Guenter Roeck
On Thu, Aug 3, 2017 at 12:28 AM, Zain Wang wrote: > Hi all, > > In recent days, I tested the fusb302 driver with tcpm. (RK3399 evb board) > But I found an issues: > There is not a regulator for type-c vbus power-supply in my board. > The vbus is just controlled by a gpio-pin, and unable to

Re: [v4 2/4] mm, oom: cgroup-aware OOM killer

2017-08-03 Thread Michal Hocko
On Thu 03-08-17 13:47:51, Roman Gushchin wrote: > On Wed, Aug 02, 2017 at 09:29:01AM +0200, Michal Hocko wrote: > > On Tue 01-08-17 19:13:52, Roman Gushchin wrote: > > > On Tue, Aug 01, 2017 at 07:03:03PM +0200, Michal Hocko wrote: > > > > On Tue 01-08-17 16:25:48, Roman Gushchin wrote: > > > > > O

Re: [PATCH v6 1/3] perf/core: use rb trees for pinned/flexible groups

2017-08-03 Thread Peter Zijlstra
On Wed, Aug 02, 2017 at 11:13:54AM +0300, Alexey Budankov wrote: > This patch moves event groups into rb tree sorted by CPU, so that > multiplexing hrtimer interrupt handler would be able skipping to the current > CPU's list and ignore groups allocated for the other CPUs. > > New API for manipul

[PATCH] powerpc/fsl/dts: fix the i2c-mux compatible for t104xqds

2017-08-03 Thread Peter Rosin
The sanctioned compatible is "nxp,pca9547". Signed-off-by: Peter Rosin --- arch/powerpc/boot/dts/fsl/t104xqds.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/boot/dts/fsl/t104xqds.dtsi b/arch/powerpc/boot/dts/fsl/t104xqds.dtsi index 2fd4cbe7098f..6154797322

Re: [PATCH v2 4/6] ASoC: codecs: msm8916-wcd-analog: add MBHC support

2017-08-03 Thread Damien Riegel
On Thu, Aug 03, 2017 at 12:11:04PM +0100, Srinivas Kandagatla wrote: > > > On 03/08/17 00:33, Damien Riegel wrote: > > Hi Srinivas, > > > > > > On Wed, Aug 02, 2017 at 07:09:28PM +0200, srinivas.kandaga...@linaro.org > > wrote: > > > From: Srinivas Kandagatla > > > > > > MBHC (MultiButton He

Re: rcu_sched stall while waiting in csd_lock_wait()

2017-08-03 Thread Paul E. McKenney
On Thu, Aug 03, 2017 at 09:25:40AM +0530, Pratyush Anand wrote: > Hi Will, > > On Wednesday 02 August 2017 01:38 PM, Will Deacon wrote: > >Hi Pratyush, > > > >On Wed, Aug 02, 2017 at 09:01:19AM +0530, Pratyush Anand wrote: > >>I am observing following rcu_sched stall while executing `perf record -

Re: [PATCH RESEND] mm: don't zero ballooned pages

2017-08-03 Thread Michal Hocko
On Thu 03-08-17 19:59:17, Wei Wang wrote: > This patch is a revert of 'commit bb01b64cfab7 ("mm/balloon_compaction.c: > enqueue zero page to balloon device")' > > Ballooned pages will be marked as MADV_DONTNEED by the hypervisor and > shouldn't be given to the host ksmd to scan. I find MADV_DONTN

Re: [PATCH] Remove explicit return type cast

2017-08-03 Thread hari prasath
lp improve the system] > > url: > https://github.com/0day-ci/linux/commits/Hari-Prasath/Remove-explicit-return-type-cast/20170803-080312 > config: blackfin-allyesconfig (attached as .config) > compiler: bfin-uclinux-gcc (GCC) 6.2.0 > reproduce: > wget > http

[PATCH] staging: media: use relevant lock

2017-08-03 Thread Julia Lawall
The data protected is video_out2 and the lock that is released is &video_out2->dma_queue_lock, so it seems that that lock should be taken as well. Signed-off-by: Julia Lawall --- drivers/staging/media/davinci_vpfe/dm365_resizer.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --

Re: Suspend-resume failure on Intel Eagle Lake Core2Duo

2017-08-03 Thread Masahiro Yamada
Hi Marc, 2017-08-03 17:41 GMT+09:00 Marc Zyngier : > Hi Masahiro, > > On 03/08/17 08:32, Masahiro Yamada wrote: >> Hi. >> >> 2017-08-01 0:55 GMT+09:00 Thomas Gleixner : >>> On Mon, 31 Jul 2017, Tomi Sarvela wrote: On 31/07/17 18:06, Thomas Gleixner wrote: > Can you please remove the patch

Re: [v4 2/4] mm, oom: cgroup-aware OOM killer

2017-08-03 Thread Roman Gushchin
On Wed, Aug 02, 2017 at 09:29:01AM +0200, Michal Hocko wrote: > On Tue 01-08-17 19:13:52, Roman Gushchin wrote: > > On Tue, Aug 01, 2017 at 07:03:03PM +0200, Michal Hocko wrote: > > > On Tue 01-08-17 16:25:48, Roman Gushchin wrote: > > > > On Tue, Aug 01, 2017 at 04:54:35PM +0200, Michal Hocko wrot

Re: [PATCH 12/29] drm/i915: switch to drm_*{get,put} helpers

2017-08-03 Thread Daniel Vetter
On Thu, Aug 03, 2017 at 03:26:01PM +0300, Jani Nikula wrote: > On Thu, 03 Aug 2017, Cihangir Akturk wrote: > > drm_*_reference() and drm_*_unreference() functions are just > > compatibility alias for drm_*_get() and drm_*_put() adn should not be > > used by new code. So convert all users of compat

Re: [PATCH 3/3] KVM: nVMX: Emulate EPTP switching for the L1 hypervisor

2017-08-03 Thread David Hildenbrand
>> Minor nit: Can't you directly do >> >> kunmap(page); >> nested_release_page_clean(page); >> >> at this point? >> >> We can fix this up later. > > You actually can do simply kvm_vcpu_read_guest_page(vcpu, > vmcs12->eptp_list_address >> PAGE_SHIFT, &address, index * 8, 8). > Fascinating how ne

[PATCH v3 1/2] mmc: sdhci: add sdma_boundary member to struct sdhci_host

2017-08-03 Thread srinivas . kandagatla
From: Srinivas Kandagatla This patch adds sdma_boundary member to struct sdhci_host to give more flexibility to drivers to control the sdma boundary buffer value and also to fix issue on some sdhci controllers which are broken when HOST SDMA Buffer Boundary is programmed in Block Size Register (0

[PATCH v3 2/2] mmc: sdhci-msm: set sdma_boundary to zero

2017-08-03 Thread srinivas . kandagatla
From: Srinivas Kandagatla Programming legacy HOST SDMA Buffer Boundary bits in Block Size Register (0x04) is not supported in Qualcomm sdhci controllers. Writing to this would cause the controller not to transfer last block in case block size is 4 bytes or less. This issue was noticed while test

[PATCH v3 0/2] mmc: sdhci: Add sdma_boundary to sdhci_host

2017-08-03 Thread srinivas . kandagatla
From: Srinivas Kandagatla This patchset adds fix to support sdhci controller which have issues when sdma boundary buffer bits are programmed in Block Size Register (0x04) when using ADMA. First patch adds member to struct sdhci_host to allow drivers to specify sdma_buffer_boundary value that it

Re: [PATCH 3/3] PCI: qcom: Allow post_init to fail

2017-08-03 Thread Stanimir Varbanov
Bjorn, thanks for the patch! On 07/16/2017 09:42 AM, Bjorn Andersson wrote: > host_init should detect and propagate errors from post_init. > > In addition, by acknowleding that post_init can fail we must disable the > post_init resources in a step separate from the deinit, so that we don't > try

Re: RCU stall when using function_graph

2017-08-03 Thread Paul E. McKenney
On Thu, Aug 03, 2017 at 01:41:11PM +0200, Daniel Lezcano wrote: > On 02/08/2017 15:07, Steven Rostedt wrote: > > On Wed, 2 Aug 2017 14:42:39 +0200 > > Daniel Lezcano wrote: > > > >> On Tue, Aug 01, 2017 at 08:12:14PM -0400, Steven Rostedt wrote: > >>> On Wed, 2 Aug 2017 00:15:44 +0200 > >>> Danie

[PATCH] MAINTAINERS: copy virtio on balloon_compaction.c

2017-08-03 Thread Michael S. Tsirkin
Changes to mm/balloon_compaction.c can easily break virtio, and virtio is the only user of that interface. Add a line to MAINTAINERS so whoever changes that file remembers to copy us. Signed-off-by: Michael S. Tsirkin --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINE

[PATCH] platform/mips: constify attribute_group structures.

2017-08-03 Thread Arvind Yadav
attribute_group are not supposed to change at runtime. All functions working with attribute_group provided by work with const attribute_group. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/platform/mips/cpu_hwmon.c | 2 +- 1 file changed, 1 insertion(+), 1 dele

Re: [PATCH v13 4/5] mm: support reporting free page blocks

2017-08-03 Thread Michal Hocko
On Thu 03-08-17 20:11:58, Wei Wang wrote: > On 08/03/2017 07:28 PM, Michal Hocko wrote: > >On Thu 03-08-17 19:27:19, Wei Wang wrote: > >>On 08/03/2017 06:44 PM, Michal Hocko wrote: > >>>On Thu 03-08-17 18:42:15, Wei Wang wrote: > On 08/03/2017 05:11 PM, Michal Hocko wrote: > >On Thu 03-08-1

Re: [PATCH 3/3] KVM: nVMX: Emulate EPTP switching for the L1 hypervisor

2017-08-03 Thread Paolo Bonzini
On 03/08/2017 13:39, David Hildenbrand wrote: >> +/* AD, if set, should be supported */ >> +if ((address & VMX_EPT_AD_ENABLE_BIT)) { >> +if (!enable_ept_ad_bits) >> +return false; > In theory (I guess) we would have to check here if > (vmx->nested.nested_vmx_

Re: [PATCH 28/29] drm/vmwgfx: switch to drm_*{get,put} helpers

2017-08-03 Thread Thomas Hellstrom
On 08/03/2017 01:58 PM, Cihangir Akturk wrote: drm_*_reference() and drm_*_unreference() functions are just compatibility alias for drm_*_get() and drm_*_put() adn should not be s/adn/and/ used by new code. So convert all users of compatibility functions to use the new APIs. Signed-off-by: Ci

Re: [PATCH] dma-mapping: skip USB devices when configuring DMA during probe

2017-08-03 Thread Johan Hovold
On Thu, Aug 03, 2017 at 12:50:20PM +0100, Robin Murphy wrote: > Hi Johan, > > On 03/08/17 11:05, Johan Hovold wrote: > > USB devices use the DMA mask and offset of the controller, which have > > already been setup when a device is probed. Note that modifying the mask > > of a USB device would chan

RE: [PATCH 0/3] constify char attribute_group structures

2017-08-03 Thread Gross, Mark
Sounds good to me. --mark > -Original Message- > From: Arvind Yadav [mailto:arvind.yadav...@gmail.com] > Sent: Wednesday, August 2, 2017 10:35 PM > To: Gross, Mark ; a...@arndb.de; > gre...@linuxfoundation.org > Cc: linux-kernel@vger.kernel.org > Subject: Re: [PATCH 0/3] constify char attr

Re: [PATCH 1/6] drm/rockchip: vop: no need wait vblank on crtc enable

2017-08-03 Thread Sandy Huang
Hi mark, 在 2017/7/31 17:49, Mark Yao 写道: Since atomic framework, crtc enable and disable are in pairs, no need to wait vblank. Signed-off-by: Mark Yao --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 36 - 1 file changed, 36 deletions(-) Reviewed-by: Sandy hu

Re: [PATCH v4 07/10] KVM: x86: remove not used pvclock_gtod_copy

2017-08-03 Thread Paolo Bonzini
On 03/08/2017 01:21, Marcelo Tosatti wrote: >> -if (ka->use_master_clock || >> -(gtod->clock.vclock_mode == VCLOCK_TSC && vcpus_matched)) >> +if (ka->use_master_clock || vcpus_matched) >> kvm_make_request(KVM_REQ_MASTERCLOCK_UPDATE, vcpu); > Don't drop this. The masterc

Re: [PATCH v13 5/5] virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_VQ

2017-08-03 Thread Michael S. Tsirkin
On Thu, Aug 03, 2017 at 02:38:19PM +0800, Wei Wang wrote: > Add a new vq to report hints of guest free pages to the host. > > Signed-off-by: Wei Wang > Signed-off-by: Liang Li > --- > drivers/virtio/virtio_balloon.c | 164 > ++-- > include/uapi/linux/virtio_

[PATCH v3 1/5] ACPICA: resource_mgr: Allow _DMA method in walk resources

2017-08-03 Thread Lorenzo Pieralisi
ACPICA commit 7636d2fb683d5699a5c14e949fba9ac52e91d4c1 The _DMA object contains a resource template, this change adds support for the walk resources function so that ACPI devices containing a _DMA object can actually parse it to detect DMA ranges for the respective bus. Link: https://github.com/a

[PATCH v3 2/5] ACPI: Make acpi_dev_get_resources() method agnostic

2017-08-03 Thread Lorenzo Pieralisi
The function acpi_dev_get_resources() is completely generic and can be used to parse resource objects that are not necessarily coming from the _CRS method but also from other objects eg _DMA that have the same _CRS resource format. Create an acpi_dev_get_resources() helper, internal to the ACPI re

[PATCH v3 0/5] ACPI: DMA ranges management

2017-08-03 Thread Lorenzo Pieralisi
This patch series is v3 of a previous posting: v2->v3: - Fixed DMA masks computation - Fixed size computation overflow in acpi_dma_get_range() v1->v2: - Reworked acpi_dma_get_range() flow and logs - Added IORT named component address limits - Renamed acpi_d

[PATCH v3 4/5] ACPI: Make acpi_dma_configure() DMA regions aware

2017-08-03 Thread Lorenzo Pieralisi
Current ACPI DMA configuration set-up device DMA capabilities through kernel defaults that do not take into account platform specific DMA configurations reported by firmware. By leveraging the ACPI acpi_dev_get_dma_resources() API, add code in acpi_dma_configure() to retrieve the DMA regions to co

Re: [PATCH v3] KVM: nVMX: Fix attempting to emulate "Acknowledge interrupt on exit" when there is no interrupt which L1 requires to inject to L2

2017-08-03 Thread Radim Krčmář
2017-08-03 07:01+0800, Wanpeng Li: > 2017-08-03 4:26 GMT+08:00 Radim Krčmář : > > 2017-08-02 03:48-0700, Wanpeng Li: > >> From: Wanpeng Li > >> diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c > >> @@ -10761,7 +10761,8 @@ static int vmx_check_nested_events(struct kvm_vcpu > >> *vcpu, bool ext

[PATCH v3 5/5] ACPI/IORT: Add IORT named component memory address limits

2017-08-03 Thread Lorenzo Pieralisi
IORT named components provide firmware configuration describing how many address bits a given device is capable of generating to address memory. Add code to the kernel to retrieve memory address limits configuration for IORT named components and configure DMA masks accordingly. Signed-off-by: Lor

[PATCH v3 3/5] ACPI: Introduce DMA ranges parsing

2017-08-03 Thread Lorenzo Pieralisi
Some devices have limited addressing capabilities and cannot reference the whole memory address space while carrying out DMA operations (eg some devices with bus address bits range smaller than system bus - which prevents them from using bus addresses that are otherwise valid for the system). The

Re: [PATCH] arm64: defconfig: enable fine-grained task level IRQ time accounting

2017-08-03 Thread Gregory CLEMENT
Hi Marcin, On lun., juil. 31 2017, Marcin Wojtas wrote: > Tests showed, that under certain conditions, the summary number of jiffies > spent on softirq/idle, which are counted by system statistics can be even > below 10% of expected value, resulting in false load presentation. > > The issue wa

[PATCH v8 09/12] Input: Add power key driver for Rockchip RK805 PMIC

2017-08-03 Thread Joseph Chen
This driver provides a input driver for the power key on the Rockchip RK805 PMIC. Signed-off-by: Joseph Chen --- drivers/input/misc/Kconfig| 6 +++ drivers/input/misc/Makefile | 1 + drivers/input/misc/rk805-pwrkey.c | 111 ++ 3 files changed

Re: [RFC]Add new mdev interface for QoS

2017-08-03 Thread Gao, Ping A
On 2017/8/3 0:58, Alex Williamson wrote: > On Wed, 2 Aug 2017 21:16:28 +0530 > Kirti Wankhede wrote: > >> On 8/2/2017 6:29 PM, Gao, Ping A wrote: >>> On 2017/8/2 18:19, Kirti Wankhede wrote: On 8/2/2017 3:56 AM, Alex Williamson wrote: > On Tue, 1 Aug 2017 13:54:27 +0800 > "Gao, P

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