[PATCH 1/4] qcom: ipq4019: Add ipq4019 ASoC device tree changes

2016-07-14 Thread njaigane
From: Jaiganesh Narayanan This patch adds the ipq4019 ASoC device tree changes and the binding documentation for pcm, spdif, tdm, stereo, codec, mbox, adss modules Signed-off-by: Jaiganesh Narayanan --- .../bindings/sound/qca,ipq4019-audio-adss.txt | 20 ++ .../bindings/sound/qca,ipq4019

[PATCH 0/4] Qualcomm IPQ4019 Audio driver addition

2016-07-14 Thread njaigane
From: Jaiganesh Narayanan These patches add the support for Qualcomm IPQ4019 ASoC with the ALSA based audio drivers. The patches are broken 1. Device Tree support 2. Audio clock driver support 3. TLMM / Pinctrl support 4. ALSA audio drivers Jaiganesh Narayanan (4): qcom: ipq4019: Add ipq4019

Re: Purpose of pci_remap_iospace

2016-07-14 Thread Arnd Bergmann
On Friday, July 15, 2016 5:21:20 AM CEST Bharat Kumar Gogada wrote: > > On Thu, Jul 14, 2016 at 01:32:13PM +, Bharat Kumar Gogada wrote: > > > > [...] > > > > > Hi Lorenzo, > > > > > > I missed something in my device tree now I corrected it. > > > > > > ranges = <0x0100 0x 0xe00

Re: Critical regression in 4.7-rcX

2016-07-14 Thread Linus Torvalds
[ Adding the proper people to the cc. ] On Thu, 14 Jul 2016, Larry Finger wrote: > > To anyone keeping track of regressions in kernel 4.7, I call your attention to > https://bugs.freedesktop.org/show_bug.cgi?id=96675. > > This bug causes driver i915 to fail to connect to the display, and results

Re: [PATCH 2/2] i2c: qup: Fixed the DMA segments length

2016-07-14 Thread Wolfram Sang
On Mon, May 09, 2016 at 06:14:31PM +0530, Abhishek Sahu wrote: > 1. The current QCOM I2C driver code is failing for transfer length > greater than 255. This is happening due to improper segments length > as the I2C DMA segments can be maximum of 256 bytes. > > 2. The transfer length tlen was being

Re: [PATCH 1/2] usb: typec: Add USB Power Delivery sink port support

2016-07-14 Thread Oliver Neukum
On Thu, 2016-07-14 at 19:14 -0700, Bin Gao wrote: > This patch implements a simple USB Power Delivery sink port state machine. > It assumes the hardware only handles PD packet transmitting and receiving > over the CC line of the USB Type-C connector. The state transition is > completely controlled

Re: [PATCH 1/2] i2c: qup: Cleared the error bits in ISR

2016-07-14 Thread Wolfram Sang
On Mon, May 09, 2016 at 06:14:30PM +0530, Abhishek Sahu wrote: > 1. Current QCOM I2C driver hangs when sending data to address 0x03-0x07 > in some scenarios. The QUP controller generates invalid write in this > case, since these addresses are reserved for different bus formats. > > 2. Also, the er

Re: [RESEND PATCH 11/14] eeprom: at24: add the at24cs series to the list of supported devices

2016-07-14 Thread Wolfram Sang
> { "24c01", AT24_DEVICE_MAGIC(1024 / 8, 0) }, > + { "24cs01", AT24_DEVICE_MAGIC(128 / 8, I encoded the size for EEPROMs with "x / 8" originally to make it visible where the EEPROM name came from, i.e. that is from kilobits not kilobytes. So, for the serial number I would s

Re: [PATCH v3] locking/qrwlock: Let qrwlock has same layout regardless of the endian

2016-07-14 Thread panxinhui
在 16/7/14 17:37, Peter Zijlstra 写道: On Thu, Jul 14, 2016 at 03:44:42PM +0800, xinhui wrote: OK, so I poked at this a bit and I ended up with the below; but now qrwlock and qspinlock are inconsistent; although I suspect qspinlock is similarly busted wrt endian muck. Not sure what to do.. Let

Re: [PATCH] media: Doc add missing documentation for samsung,exynos4212-jpeg

2016-07-14 Thread Jacek Anaszewski
Hi Shuah, On 07/14/2016 10:01 PM, Shuah Khan wrote: Add add missing documentation for samsung,exynos4212-jpeg codec, reorder entries to improve readability and make it easier to add new entries. Signed-off-by: Shuah Khan --- Documentation/devicetree/bindings/media/exynos-jpeg-codec.txt | 6 +

Re: [PATCH] media: s5p-jpeg add missing blank lines after declarations

2016-07-14 Thread Jacek Anaszewski
Hi Shuah, Thanks for the patch. On 07/14/2016 10:01 PM, Shuah Khan wrote: Missing blank lines after declarations are making it hard to read the code. Fix them and also fix other checkpatch warnings at the same time. Signed-off-by: Shuah Khan --- drivers/media/platform/s5p-jpeg/jpeg-core.c |

Re: [PATCH -v4 2/2] printk: Add kernel parameter to control writes to /dev/kmsg

2016-07-14 Thread Dave Young
On 07/08/16 at 11:18am, Borislav Petkov wrote: > From: Borislav Petkov > > Add a "printk.devkmsg" kernel command line parameter which controls how > userspace writes into /dev/kmsg. It has three options: > > * ratelimit - ratelimit logging from userspace. > * on - unlimited logging from userspa

Lånetilbud

2016-07-14 Thread Central Trust Loan Limited
God dag, Dette er Central Trust Lån Aksjeselskaper tilby lån. Central Trust lån selskaper tilbyr fleksible og rimelige lån til ethvert formål, for å hjelpe deg å nå dine finansielle mål. vi lån med lav rente på 3%. Her er noen viktige trekk ved personlig lån fra midler sirkel utlån selskaper

Re: [Nouveau] [PATCH v3] drm/nouveau/fb/nv50: set DMA mask before mapping scratch page

2016-07-14 Thread Alexandre Courbot
On Fri, Jul 8, 2016 at 1:59 AM, Ard Biesheuvel wrote: > The 100c08 scratch page is mapped using dma_map_page() before the TTM > layer has had a chance to set the DMA mask. This means we are still > running with the default of 32 when this code executes, and this causes > problems for platforms wit

[v5.1 PATCH 5/5] drm/rockchip: cdn-dp: add cdn DP support for rk3399

2016-07-14 Thread Chris Zhong
Add support for cdn DP controller which is embedded in the rk3399 SoCs. The DP is compliant with DisplayPort Specification, Version 1.3, This IP is compatible with the rockchip type-c PHY IP. There is a uCPU in DP controller, it need a firmware to work, please put the firmware file to /lib/firmware

[PATCH] drm: mediatek: add Maintainers entry for Mediatek DRM drivers

2016-07-14 Thread CK Hu
Add CK Hu and Philipp Zabel as maintainers for Mediatek DRM drivers. Signed-off-by: CK Hu --- MAINTAINERS |8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 7304d2e..2a04cdc 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3973,6 +3973,14 @@ S: Orp

Darlehen bieten jetzt bewerben

2016-07-14 Thread UK CREDIT LTD LOAN
Schönen Tag, Wir UK CREDIT LTD KREDITFinanzGesellschaft mit Sitz in Großbritannien durch die Operationen und eine gute Kundenbasis auf der ganzen Welt. Wir bieten Darlehen zu niedrigen Zinssatz von 3%. Liebe Leser werden darauf hingewiesen, dass dieses Angebot ernst gesinnten Individ

Re: [PATCH v4 4/4] drm/rockchip: analogix_dp: implement PSR function

2016-07-14 Thread Yakir Yang
Sean, On 07/14/2016 11:26 PM, Sean Paul wrote: On Thu, Jul 14, 2016 at 12:15:58PM +0800, Yakir Yang wrote: Alway enable the PSR function for Rockchip analogix_dp driver. If panel don't support PSR, then the core analogix_dp would ignore this setting. Signed-off-by: Yakir Yang Reviewed-by: Se

Re: [PATCH 1/1] tracing, bpf: Implement function bpf_probe_write

2016-07-14 Thread Alexei Starovoitov
On Wed, Jul 13, 2016 at 01:31:57PM -0700, Sargun Dhillon wrote: > > > On Wed, 13 Jul 2016, Alexei Starovoitov wrote: > > > On Wed, Jul 13, 2016 at 03:36:11AM -0700, Sargun Dhillon wrote: > >> Provides BPF programs, attached to kprobes a safe way to write to > >> memory referenced by probes. This

Re: [git pull] stm class/intel_th: Updates for char-misc-linus

2016-07-14 Thread Greg KH
t; > Done. > > The following changes since commit af8c34ce6ae32addda3788d54a7e340cad22516b: > > Linux 4.7-rc2 (2016-06-05 14:31:26 -0700) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/ash/stm.git > tags/stm-for-greg-20160714 Pulled and pushed out. thanks, greg k-h

Re: [PATCH 2/2] workqueue:Fix affinity of an unbound worker of a node with 1 online CPU

2016-07-14 Thread Gautham R Shenoy
Hi Tejun, On Thu, Jun 16, 2016 at 03:39:05PM -0400, Tejun Heo wrote: > On Thu, Jun 16, 2016 at 02:45:48PM +0200, Peter Zijlstra wrote: > > Subject: workqueue: Fix setting affinity of unbound worker threads > > From: Peter Zijlstra > > Date: Thu Jun 16 14:38:42 CEST 2016 > > > > With commit e9d86

Re: [PATCH v4] acpi, nfit: treat virtual ramdisk SPA as pmem region

2016-07-14 Thread Dan Williams
On Thu, Jul 14, 2016 at 9:05 PM, Lee, Chun-Yi wrote: > This patch adds logic to treat virtual ramdisk SPA as pmem region, then > ramdisk's /dev/pmem* device can be mounted with iso9660. > > It's useful to work with the httpboot in EFI firmware to pull a remote > ISO file to the local memory region

RE: Purpose of pci_remap_iospace

2016-07-14 Thread Bharat Kumar Gogada
> On Thu, Jul 14, 2016 at 01:32:13PM +, Bharat Kumar Gogada wrote: > > [...] > > > Hi Lorenzo, > > > > I missed something in my device tree now I corrected it. > > > > ranges = <0x0100 0x 0xe000 0x 0xe000 0 > 0x0001 //io > > You have not missed anything, you ch

[PATCH] usb: ohci-platform: use helper variables in probe function

2016-07-14 Thread Rafał Miłecki
Probing function was using &dev->dev and dev->dev.of_node over 20 times so I believe it made sense to use helper variables for both of them. To avoid some uncommon variable name for struct device I first replaced existing dev variable with pdev. Signed-off-by: Rafał Miłecki --- drivers/usb/host/

Re: [PATCH v4 4/4] ASoC: samsung: Add machine driver for Exynos5433 based TM2 board

2016-07-14 Thread Chanwoo Choi
Hi Sylwester, [snip] > +static int tm2_probe(struct platform_device *pdev) > +{ > + struct device *dev = &pdev->dev; > + struct snd_soc_card *card = &tm2_card; > + struct tm2_machine_priv *priv; > + struct device_node *cpu_dai_node, *codec_dai_node; > + int ret, i; > + > +

Re: [patch net-next 2/2] devlink: fix trace format string

2016-07-14 Thread David Miller
From: Jiri Pirko Date: Thu, 14 Jul 2016 11:37:29 +0200 > From: Arnd Bergmann > > Including devlink.h on ARM and probably other 32-bit architectures results in > a harmless warning: > > In file included from ../include/trace/define_trace.h:95:0, > from ../include/trace/events/d

Re: [patch net-next 1/2] tracing: change owner name to driver name for devlink hwmsg tracepoint

2016-07-14 Thread David Miller
From: Jiri Pirko Date: Thu, 14 Jul 2016 11:37:28 +0200 > From: Jiri Pirko > > Turned on that driver->owner which is struct module is not available when > modules are disabled. Better to depend on a driver name which is > always available. > > Reported-by: Randy Dunlap > Fixes: e5224f0fe2 ("de

Re: [PATCH v2 02/10] irqchip: add irqchip driver for nuc900

2016-07-14 Thread Wan Zongshun
On 2016年07月14日 21:54, Jason Cooper wrote: Hi Wan Zongshun, On Thu, Jul 14, 2016 at 11:36:53AM +0800, Wan Zongshun wrote: On 2016年07月14日 04:09, Jason Cooper wrote: On Sun, Jul 10, 2016 at 03:27:22PM +0800, Wan Zongshun wrote: This patch is to add irqchip driver support for nuc900 plat, curre

Re: [PATCH] mlxsw: spectrum_router: Return -ENOENT in case of error

2016-07-14 Thread David Miller
From: Jiri Pirko Date: Thu, 14 Jul 2016 08:28:19 +0200 > Thu, Jul 14, 2016 at 08:18:45AM CEST, christophe.jail...@wanadoo.fr wrote: >>'vr' should be a valid pointer here, so returning 'PTR_ERR(vr)' is wrong. >>Return an explicit error code (-ENOENT) instead. >> > > This is fo net-next. > > Fixe

linux-next: manual merge of the devicetree tree with the arc tree

2016-07-14 Thread Stephen Rothwell
Hi Rob, Today's linux-next merge of the devicetree tree got a conflict in: arch/arc/kernel/setup.c between commit: 1ce0b5857f66 ("ARC: fix linux-next build breakage") from the arc tree and commit: 61c78644e7f1 ("arc: Remove unnecessary of_platform_populate with default match table") f

Re: [PATCH] staging: lustre: o2iblnd: iov fixes for kiblnd_send

2016-07-14 Thread Al Viro
On Fri, Jul 15, 2016 at 01:01:35AM -0400, Oleg Drokin wrote: > > + } else { > > + iov_iter_kvec(&from, ITER_KVEC | WRITE, > > + payload_iov, payload_niov, > > + payload_nob + payload_offset); > > + } > > iov_iter_advance(&from, payl

Re: [PATCH] KVM: release anon file in failure path of vm creation

2016-07-14 Thread Al Viro
On Fri, Jul 15, 2016 at 11:18:41AM +0800, Liu Shuo wrote: > If there is no such thread (who operates the descriptor based on > guessing), i can think the changing is safe at the point. As the fd has > not been delivered to userspace. Am i right? Expecting nice behaviour from userland code is som

[PATCH V2] usb: ehci-platform: use helper variables in probe function

2016-07-14 Thread Rafał Miłecki
Probing function was using &dev->dev and dev->dev.of_node over 20 times so I believe it made sense to use helper variables for both of them. To avoid some uncommon variable name for struct device I first replaced existing dev variable with pdev. Signed-off-by: Rafał Miłecki Acked-by: Alan Stern

Re: [PATCH] staging: lustre: o2iblnd: iov fixes for kiblnd_send

2016-07-14 Thread Oleg Drokin
On Jul 11, 2016, at 1:18 PM, James Simmons wrote: > With the move to iov_iter handling two issues merged > for the ko2iblnd driver. The first fix address a simple > typo of the wrong flag being used with iov_iter_kvec. > The second fix adds the payload offset to the payload > size. > > Signed-of

Re: [PATCH net-next V3] net: ena: Add a driver for Amazon Elastic Network Adapters (ENA)

2016-07-14 Thread Leon Romanovsky
On Thu, Jul 14, 2016 at 09:46:14AM +0300, Netanel Belgazal wrote: > This is a driver for the ENA family of networking devices. > > Signed-off-by: Netanel Belgazal > --- > > Notes: ... > - Increase driver version to 1.0.2 ... > +static void ena_get_drvinfo(struct net_device *dev, > +

Re: [PATCH] powernv: Use __printf in pe_level_printk

2016-07-14 Thread Joe Perches
On Fri, 2016-07-15 at 14:36 +1000, Michael Ellerman wrote: > Joe Perches writes: > > > > > Make the compiler detect format and argument mismatches. > > > > Signed-off-by: Joe Perches > > --- > >  arch/powerpc/platforms/powernv/pci.h | 1 + > >  1 file changed, 1 insertion(+) > > > > diff --git

Re: [PATCH v2 02/11] mm: Hardened usercopy

2016-07-14 Thread Kees Cook
On Thu, Jul 14, 2016 at 9:05 PM, Kees Cook wrote: > On Thu, Jul 14, 2016 at 6:41 PM, Balbir Singh wrote: >> On Thu, Jul 14, 2016 at 09:04:18PM -0400, Rik van Riel wrote: >>> On Fri, 2016-07-15 at 09:20 +1000, Balbir Singh wrote: >>> >>> > > == >>> > > +((unsigned long)end & (unsigned

[PATCH] mm: show node_pages_scanned per node, not zone

2016-07-14 Thread Minchan Kim
The node_pages_scanned represents the number of scanned pages of node for reclaim so it's pointless to show it as kilobytes. As well, node_pages_scanned is per-node value, not per-zone. This patch changes node_pages_scannerd per-zone-killobytes with per-node-count. Signed-off-by: Minchan Kim --

[git pull] drm vmware fixes.

2016-07-14 Thread Dave Airlie
Hi Linus, These are some fixes for the vmware graphics driver, that fix some black screen issues on at least Ubuntu 16.04, I think VMware would like to get these in so stable can pick them up ASAP. It's up to you if you aren't comfortable with them at this stage. Dave. The following changes si

[git pull] drm fixes

2016-07-14 Thread Dave Airlie
Hi Linus, These are just some i915 and amdgpu fixes that shows up, the amdgpu ones are polaris fixes, and i915 is one major regression fix. I've got some vmwgfx fixes that might be a bit large for this time, but I'll send them on in a separate pull so it can be decided. DAve. The following ch

linux-next: manual merge of the block tree with the ext4 tree

2016-07-14 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the block tree got a conflict in: fs/ext4/crypto.c between commit: a7550b30ab70 ("ext4 crypto: migrate into vfs's crypto engine") from the ext4 tree and commits: 4e49ea4a3d27 ("block/fs/drivers: remove rw argument from submit_bio") 60a40096a3b2 ("ex

Re: linux-next: build failure after merge of the drm tree

2016-07-14 Thread Sedat Dilek
On 7/15/16, Stephen Rothwell wrote: > Hi Dave, > > After merging the drm tree, today's linux-next build (x86_64 allmodconfig) > failed like this: > > In file included from drivers/gpu/drm/i915/intel_opregion.c:34:0: > drivers/gpu/drm/i915/intel_opregion.c: In function > 'intel_opregion_get_panel_t

Re: [PATCH v2 11/11] mm: SLUB hardened usercopy support

2016-07-14 Thread Kees Cook
On Thu, Jul 14, 2016 at 7:05 PM, Balbir Singh wrote: > On Wed, Jul 13, 2016 at 02:56:04PM -0700, Kees Cook wrote: >> Under CONFIG_HARDENED_USERCOPY, this adds object size checking to the >> SLUB allocator to catch any copies that may span objects. Includes a >> redzone handling fix from Michael El

Re: [PATCH -v4 2/2] printk: Add kernel parameter to control writes to /dev/kmsg

2016-07-14 Thread Borislav Petkov
On Thu, Jul 14, 2016 at 01:23:23PM -0700, Andrew Morton wrote: > Which changes current kernel behaviour. Can we please get some > discussion into this changelog which justifies that decision? What's > the reasoning and how do we know it won't break existing stuff? What Rostedt said and in additi

Re: [PATCH v2 02/11] mm: Hardened usercopy

2016-07-14 Thread Kees Cook
On Thu, Jul 14, 2016 at 4:20 PM, Balbir Singh wrote: > On Wed, Jul 13, 2016 at 02:55:55PM -0700, Kees Cook wrote: >> [...] >> +++ b/mm/usercopy.c >> @@ -0,0 +1,219 @@ >> [...] >> +/* >> + * Checks if a given pointer and length is contained by the current >> + * stack frame (if possible). >> + * >>

Re: mmc: dwmmc: exynos: Warn if HS400 is being used on non-Exynos5420 chipset

2016-07-14 Thread Alim Akhtar
Hi Krzysztof, On 07/14/2016 06:52 PM, Krzysztof Kozlowski wrote: Chipsets before Exynos5420 did not support HS400 so if MMC core tries to configure HS400 timing, this might or might not work. Warn in such cases because this is DTB misconfiguration. Signed-off-by: Krzysztof Kozlowski --- Rev

Re: [PATCH v2 02/30] HID: wacom: store the type in wacom->shared for INTUOSHT and INTUOSHT2

2016-07-14 Thread Ping Cheng
On Wed, Jul 13, 2016 at 9:05 AM, Benjamin Tissoires wrote: > The type is never set but we check for it in wacom_wireless_irq(). Type was assigned in wacom_wireless_work [1] before we moved code around. It somehow failed to get into wacom_parse_and_register. The value was only assigned once on sty

[PATCH v4] acpi, nfit: treat virtual ramdisk SPA as pmem region

2016-07-14 Thread Lee, Chun-Yi
This patch adds logic to treat virtual ramdisk SPA as pmem region, then ramdisk's /dev/pmem* device can be mounted with iso9660. It's useful to work with the httpboot in EFI firmware to pull a remote ISO file to the local memory region for booting and installation. Wiki page of UEFI HTTPBoot with

Re: [PATCH 1/2] tpm: devicetree: document properties for cr50

2016-07-14 Thread Guenter Roeck
On Thu, Jul 14, 2016 at 7:20 PM, Andrey Pronin wrote: > Add TPM2.0-compatible interface to Cr50. Document its properties > in devicetree. > > Signed-off-by: Andrey Pronin > --- > .../devicetree/bindings/security/tpm/cr50_spi.txt | 30 > ++ > 1 file changed, 30 insertions(+)

Re: [PATCH v2 02/11] mm: Hardened usercopy

2016-07-14 Thread Kees Cook
On Thu, Jul 14, 2016 at 6:41 PM, Balbir Singh wrote: > On Thu, Jul 14, 2016 at 09:04:18PM -0400, Rik van Riel wrote: >> On Fri, 2016-07-15 at 09:20 +1000, Balbir Singh wrote: >> >> > > == >> > > +((unsigned long)end & (unsigned >> > > long)PAGE_MASK))) >> > > + return NULL; >>

Re: [PATCH -v4 1/2] ratelimit: Extend to print suppressed messages on release

2016-07-14 Thread Borislav Petkov
Hi Andrew, thanks for taking a look. On Thu, Jul 14, 2016 at 01:29:36PM -0700, Andrew Morton wrote: > Why? What's driving this? What are the benefits to our users? Are > there any downsides or back-compatibility issues? > > I see from the code that this is not actually enabled by default. Th

Re: [PATCH 1/2] tpm_tis_core: add optional max xfer size check

2016-07-14 Thread Guenter Roeck
On Thu, Jul 14, 2016 at 8:25 PM, Andrey Pronin wrote: > On Thu, Jul 14, 2016 at 09:13:51PM -0600, Jason Gunthorpe wrote: >> On Thu, Jul 14, 2016 at 06:39:04PM -0700, Andrey Pronin wrote: >> >> > +static inline u16 tpm_tis_max_xfer_size(struct tpm_tis_data *data) >> > +{ >> > + return data->phy_o

Re: [PATCH 2/2] tpm: add driver for cr50 on SPI

2016-07-14 Thread Andrey Pronin
On Thu, Jul 14, 2016 at 09:32:36PM -0600, Jason Gunthorpe wrote: > On Thu, Jul 14, 2016 at 07:20:18PM -0700, Andrey Pronin wrote: > > > +static int cr50_spi_read16(struct tpm_tis_data *data, u32 addr, u16 > > *result) > > +{ > > + int rc; > > + > > + rc = data->phy_ops->read_bytes(data, addr,

Re: [PATCH 2/2] tpm: support driver-specific sysfs attrs in tpm_tis_core

2016-07-14 Thread Andrey Pronin
On Thu, Jul 14, 2016 at 09:23:27PM -0600, Jason Gunthorpe wrote: > On Thu, Jul 14, 2016 at 06:51:36PM -0700, Andrey Pronin wrote: > > - WARN_ON(chip->groups_cnt != 0); > > Nope. > > > - const struct attribute_group *groups[3]; > > + /* up to 4 attribute groups: > > +* - driver-specific

Re: [PATCH 1/2] tpm: add sysfs attributes for tpm2

2016-07-14 Thread Jason Gunthorpe
On Thu, Jul 14, 2016 at 08:32:01PM -0700, Andrey Pronin wrote: > tpm2 shares some of the attributes with tpm1 (e.g. timeouts). Do I still > just add those separately for tpm2 to groups[1] and keep groups[0] empty? I think so. Since the file never exists for tpm2, nothing coded for tpm2 will ever

[PATCH] staging/lustre/llite: Close atomic_open race with several openers

2016-07-14 Thread Oleg Drokin
Right now, if it's an open of a negative dentry, a race is possible with several openers who all try to instantiate/rehash the same dentry and would hit a BUG_ON in d_add. But in fact if we got a negative dentry in atomic_open, that means we just revalidated it so no point in talking to MDS at all,

linux-next: build failure after merge of the drm tree

2016-07-14 Thread Stephen Rothwell
Hi Dave, After merging the drm tree, today's linux-next build (x86_64 allmodconfig) failed like this: In file included from drivers/gpu/drm/i915/intel_opregion.c:34:0: drivers/gpu/drm/i915/intel_opregion.c: In function 'intel_opregion_get_panel_type': drivers/gpu/drm/i915/intel_opregion.c:1042:1

Re: [PATCH 2/2] tpm: fix byte-order for the value read by tpm2_get_tpm_pt

2016-07-14 Thread Jason Gunthorpe
On Thu, Jul 14, 2016 at 08:17:01PM -0700, Andrey Pronin wrote: > conversion. The only place tpm2_get_tpm_pt() was used before was in > tpm2_gen_interrupt, which discarded the result. So, nobody noticed, > I guess. If you have a moment can you run sparse on this file before/after this change and ma

Re: [PATCH 2/2] tpm: add driver for cr50 on SPI

2016-07-14 Thread Jason Gunthorpe
On Thu, Jul 14, 2016 at 07:20:18PM -0700, Andrey Pronin wrote: > +static int cr50_spi_read16(struct tpm_tis_data *data, u32 addr, u16 *result) > +{ > + int rc; > + > + rc = data->phy_ops->read_bytes(data, addr, sizeof(u16), (u8 *)result); > + if (!rc) > + *result = le16_to_

Re: [PATCH 1/2] tpm: add sysfs attributes for tpm2

2016-07-14 Thread Andrey Pronin
On Thu, Jul 14, 2016 at 09:21:45PM -0600, Jason Gunthorpe wrote: > On Thu, Jul 14, 2016 at 06:51:35PM -0700, Andrey Pronin wrote: > > - sysfs_remove_link(&chip->dev.parent->kobj, "ppi"); > > - > > - for (i = chip->groups[0]->attrs; *i != NULL; ++i) > > - sysfs_remove_link(&chip->dev.p

Re: [PATCH 0/2] tpm: add driver for cr50 on SPI

2016-07-14 Thread Jason Gunthorpe
On Thu, Jul 14, 2016 at 07:50:26PM -0700, Andrey Pronin wrote: > Yes, it has a TCG-compliant interface, however, there are several things > specific to this device: > - need to ensure a certain delay between spi transactions, or else >the chip can miss several first bytes. > - if there is no

Re: ARM: dts: exynos: Properly select eMMC HighSpeed mode

2016-07-14 Thread Alim Akhtar
Hi Krzysztof, On 07/14/2016 06:17 PM, Krzysztof Kozlowski wrote: Exynos5410 supports eMMC version 4.41 so HS200 is the top mode which should be configured. This is reflected in usage of "samsung,exynos5250-dw-mshc" compatible. However DTS contained also property "mmc-hs400-1_8v" which is parse

Re: [PATCH 1/2] tpm_tis_core: add optional max xfer size check

2016-07-14 Thread Andrey Pronin
On Thu, Jul 14, 2016 at 09:13:51PM -0600, Jason Gunthorpe wrote: > On Thu, Jul 14, 2016 at 06:39:04PM -0700, Andrey Pronin wrote: > > > +static inline u16 tpm_tis_max_xfer_size(struct tpm_tis_data *data) > > +{ > > + return data->phy_ops->max_xfer_size; > > +} > > + > > +static inline bool tpm_t

Re: [PATCH 2/2] tpm: support driver-specific sysfs attrs in tpm_tis_core

2016-07-14 Thread Jason Gunthorpe
On Thu, Jul 14, 2016 at 06:51:36PM -0700, Andrey Pronin wrote: > - WARN_ON(chip->groups_cnt != 0); Nope. > - const struct attribute_group *groups[3]; > + /* up to 4 attribute groups: > + * - driver-specific > + * - common TPM1.2 and TPM2.0 > + * - TPM1.2/2.0-specific >

Re: [PATCH 1/2] tpm: add sysfs attributes for tpm2

2016-07-14 Thread Jason Gunthorpe
On Thu, Jul 14, 2016 at 06:51:35PM -0700, Andrey Pronin wrote: > - sysfs_remove_link(&chip->dev.parent->kobj, "ppi"); > - > - for (i = chip->groups[0]->attrs; *i != NULL; ++i) > - sysfs_remove_link(&chip->dev.parent->kobj, (*i)->name); > + for (ngrp = 0; ngrp < chip->groups_

[PATCH] nfsd: Make creates return EEXIST instead of EACCES

2016-07-14 Thread Oleg Drokin
When doing a create (mkdir/mknod) on a name, it's worth checking the name exists first before returning EACCES in case the directory is not writeable by the user. This makes return values on the client more consistent regardless of whenever the entry there is cached in the local cache or not. Anoth

Re: [PATCH] KVM: release anon file in failure path of vm creation

2016-07-14 Thread Liu Shuo
On Fri 15.Jul'16 at 3:26:03 +0100, Al Viro wrote: On Fri, Jul 15, 2016 at 10:22:04AM +0800, Liu Shuo wrote: > You have no warranty whatsoever that descriptor table has not been changed > by that point. You should *NEVER* use sys_close() on failure exit paths Could you please elaborate why we'r

Re: [PATCH 2/2] tpm: fix byte-order for the value read by tpm2_get_tpm_pt

2016-07-14 Thread Andrey Pronin
On Thu, Jul 14, 2016 at 09:10:46PM -0600, Jason Gunthorpe wrote: > On Thu, Jul 14, 2016 at 06:07:18PM -0700, Andrey Pronin wrote: > > Change-Id: I7d71cd379b1a3b7659d20a1b6008216762596590 > > Signed-off-by: Andrey Pronin > > drivers/char/tpm/tpm2-cmd.c | 2 +- > > 1 file changed, 1 insertion(+), 1

Re: [PATCH 1/2] tpm_tis_core: add optional max xfer size check

2016-07-14 Thread Jason Gunthorpe
On Thu, Jul 14, 2016 at 06:39:04PM -0700, Andrey Pronin wrote: > +static inline u16 tpm_tis_max_xfer_size(struct tpm_tis_data *data) > +{ > + return data->phy_ops->max_xfer_size; > +} > + > +static inline bool tpm_tis_burstcnt_is_valid(struct tpm_tis_data *data, > +

Re: pull-request: wireless-drivers-next 2016-07-13

2016-07-14 Thread kbuild test robot
Hi, [auto build test ERROR on wireless-drivers-next/master] [cannot apply to v4.7-rc7 next-20160714] [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/Kalle-Valo/pull-request-wireless-drivers-next

Re: [PATCH 2/2] tpm: fix byte-order for the value read by tpm2_get_tpm_pt

2016-07-14 Thread Jason Gunthorpe
On Thu, Jul 14, 2016 at 06:07:18PM -0700, Andrey Pronin wrote: > Change-Id: I7d71cd379b1a3b7659d20a1b6008216762596590 > Signed-off-by: Andrey Pronin > drivers/char/tpm/tpm2-cmd.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/char/tpm/tpm2-cmd.c b/drivers/char/t

Re: [PATCH] spi: rockchip: limit transfers to (64K - 1) bytes

2016-07-14 Thread Brian Norris
On Fri, Jul 15, 2016 at 10:42:55AM +0800, Shawn Lin wrote: > 在 2016/7/15 10:31, Brian Norris 写道: > >So maybe there's a driver bug in the PIO path that gives us an > >off-by-one error. I poked around a bit and couldn't figure out anything, > >so I sent this. Technically, this patch is still valid (e

Re: [PATCH 1/2] tpm: define constants for tpm2 properties

2016-07-14 Thread Jason Gunthorpe
On Thu, Jul 14, 2016 at 06:07:17PM -0700, Andrey Pronin wrote: > Change-Id: I47cb1793736781fbea93e5bf80b783e0ac9e8628 These commit messages are no good, generally for all your patches. Drop the internal change-id and provide a suitable description. Do not add dead code to the kernel, so this patc

Re: [PATCH] tpm_tis_core: convert max timeouts from msec to jiffies

2016-07-14 Thread Jason Gunthorpe
On Thu, Jul 14, 2016 at 05:29:40PM -0700, Andrey Pronin wrote: > tpm_tis_core was missing conversion from msec when assigning > max timeouts from constants. Yep. Reviewed-by: Jason Gunthorpe Jason

Re: [PATCH 5/5] f2fs: use blk_plug in all the possible paths

2016-07-14 Thread Jaegeuk Kim
On Thu, Jul 14, 2016 at 07:21:32PM -0700, Christoph Hellwig wrote: > On Thu, Jul 14, 2016 at 05:46:29PM -0700, Jaegeuk Kim wrote: > > The main reason is that blk_start_plug can be used to wake up from low-power > > mode before submitting further bios. > > Where does that myth come from? >From ker

Re: [PATCH v2] ext4 crypto: migrate into vfs's crypto engine

2016-07-14 Thread Jaegeuk Kim
On Thu, Jul 14, 2016 at 10:45:26PM -0400, Theodore Ts'o wrote: > On Sat, May 07, 2016 at 11:52:50AM -0700, Jaegeuk Kim wrote: > > > > From 593e56e680f962c5e9cc57afa19bda4c654bd841 Mon Sep 17 00:00:00 2001 > > From: Jaegeuk Kim > > Date: Wed, 10 Feb 2016 16:26:25 -0800 > > Subject: [PATCH] ext4 cr

[PATCH 2/2] mem-hotplug: use different mempolicy in alloc_migrate_target()

2016-07-14 Thread Xishi Qiu
When we offline a node, the new page should alloced from other nodes instead of the current node, because re-migrate is a waste of time. So use prefer mempolicy for hotplug, use default mempolicy for cma. Signed-off-by: Xishi Qiu --- include/linux/page-isolation.h | 2 +- mm/memory_hotplug.c

Re: [PATCH 0/2] tpm: add driver for cr50 on SPI

2016-07-14 Thread Andrey Pronin
On Thu, Jul 14, 2016 at 07:28:55PM -0700, Peter Huewe wrote: > Am 14. Juli 2016 19:20:16 GMT-07:00, schrieb Andrey Pronin > : > >This patchset adds a TCG TPM2.0 PTP FIFO compliant interface for > >Cr50 chip on SPI. > > > >Depends on the following patches by Andrey Pronin > > > >that add new member

[PATCH 2/2] wan/fsl_ucc_hdlc: rewrite error handling to make it clearer

2016-07-14 Thread Zhao Qiang
It was used err_xxx for labeled statement, it is not easy to understand, now use free_xxx for labeled statement. Signed-off-by: Zhao Qiang --- drivers/net/wan/fsl_ucc_hdlc.c | 55 +- 1 file changed, 27 insertions(+), 28 deletions(-) diff --git a/drivers/n

[PATCH 1/2] wan/fsl_ucc_hdlc: remove reduplicative freed memory 'uhdlc_priv'

2016-07-14 Thread Zhao Qiang
'uhdlc_priv' has freed twice, drop the first one. Signed-off-by: Zhao Qiang --- drivers/net/wan/fsl_ucc_hdlc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/wan/fsl_ucc_hdlc.c b/drivers/net/wan/fsl_ucc_hdlc.c index 19174ac..e2b225d 100644 --- a/drivers/net/wan/fsl_ucc_hdlc.c +++

[PATCH v3 1/3] arm64: mm: add __clean_dcache_area()

2016-07-14 Thread Kwangwoo Lee
Ensure D-cache lines are cleaned to the PoC(Point of Coherency). This function is called by arch_wb_cache_pmem() to clean the cache lines and remain the data in cache for the next access. Signed-off-by: Kwangwoo Lee --- arch/arm64/include/asm/cacheflush.h | 1 + arch/arm64/mm/cache.S

[PATCH 1/2] mem-hotplug: use GFP_HIGHUSER_MOVABLE in, alloc_migrate_target()

2016-07-14 Thread Xishi Qiu
alloc_migrate_target() is called from migrate_pages(), and the page is always from user space, so we can add __GFP_HIGHMEM directly. Signed-off-by: Xishi Qiu --- mm/page_isolation.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/mm/page_isolation.c b/mm/page_isolati

Re: [PATCH] drm/rockchip: allocate correct crtc state structure on reset

2016-07-14 Thread Mark yao
On 2016年07月14日 23:29, John Keeping wrote: Because we are using a custom crtc_state structure, we must override the reset helper to allocate the correct amount of memory. Cc: sta...@vger.kernel.org Fixes: 4e257d9eee23 ("drm/rockchip: get rid of rockchip_drm_crtc_mode_config") Signed-off-by: John

[PATCH v3 3/3] arm64: pmem: add pmem support codes

2016-07-14 Thread Kwangwoo Lee
This patch adds support pmem on arm64 platform. The limitation of current implementation is that the persistency of pmem on NVDIMM is not guaranteed on arm64 yet. pmem driver expects that the persistency need to be guaranteed in arch_wmb_pmem(), but the PoP(Point of Persistency) is going to be sup

[PATCH v3 2/3] arm64: mm: add mmio_flush_range() to support pmem

2016-07-14 Thread Kwangwoo Lee
To enable pmem in arm64, mmio_flush_range() is required to build successfully. If NVDIMM is used as blk mode, not pmem , it is called in acpi_nfit_blk_single_io() via nd_blk_make_request() on read with NFIT_BLK_READ_FLUSH flag. The function cleans and invalidates the cache lines using the argument

[PATCH v3 0/3] support pmem on arm64

2016-07-14 Thread Kwangwoo Lee
This patch set add supporting the pmem driver on arm64 architecture which can be used on NVDIMM(Non-Volatile DIMM). It has been tested on QEMU with NVDIMM ACPI/NFIT support on AArch64 VIRT platform. Until the changes of pmem codes posted to nvdimm list is merged which assums supporting ADR(Asynchr

Re: [PATCH v2] ext4 crypto: migrate into vfs's crypto engine

2016-07-14 Thread Theodore Ts'o
On Sat, May 07, 2016 at 11:52:50AM -0700, Jaegeuk Kim wrote: > > From 593e56e680f962c5e9cc57afa19bda4c654bd841 Mon Sep 17 00:00:00 2001 > From: Jaegeuk Kim > Date: Wed, 10 Feb 2016 16:26:25 -0800 > Subject: [PATCH] ext4 crypto: migrate into vfs's crypto engine > > This patch removes the most par

Re: [PATCH] spi: rockchip: limit transfers to (64K - 1) bytes

2016-07-14 Thread Shawn Lin
在 2016/7/15 10:31, Brian Norris 写道: Hi Shawn, On Fri, Jul 15, 2016 at 09:56:59AM +0800, Shawn Lin wrote: 在 2016/7/15 9:30, Brian Norris 写道: The Rockchip SPI controller's length register only supports 16-bits, yielding a maximum length of 64KiB (the CTRLR1 register holds "length - 1"). Trying t

Re: [lkp] [Btrfs] e5a7b11a5c: shift exponent 32 is too large for 32-bit type 'int'

2016-07-14 Thread Omar Sandoval
On Fri, Jul 15, 2016 at 09:51:20AM +0800, kernel test robot wrote: > > FYI, we noticed the following commit: > > https://github.com/0day-ci/linux > Omar-Sandoval/Btrfs-fix-extent-buffer-bitmap-tests-on-big-endian-systems/20160713-074511 > commit e5a7b11a5caa8d42fe3fb4ff2d75b6811aeb8eb7 ("Btrfs:

Re: [PATCH] spi: rockchip: limit transfers to (64K - 1) bytes

2016-07-14 Thread Brian Norris
Hi Shawn, On Fri, Jul 15, 2016 at 09:56:59AM +0800, Shawn Lin wrote: > 在 2016/7/15 9:30, Brian Norris 写道: > >The Rockchip SPI controller's length register only supports 16-bits, > >yielding a maximum length of 64KiB (the CTRLR1 register holds "length - > >1"). Trying to transfer more than that (e.

Re: linux-next: manual merge of the pm tree with the i2c tree

2016-07-14 Thread Stephen Rothwell
Hi all, On Fri, 15 Jul 2016 12:17:23 +1000 Stephen Rothwell wrote: > > I fixed it up (I think, but it needs more work - see below) and can For a start, it generates this warning, now: drivers/i2c/i2c-core.c:269:20: warning: 'i2c_acpi_add_device' defined but not used [-Wunused-function] static

Re: [PATCH 0/2] tpm: add driver for cr50 on SPI

2016-07-14 Thread Peter Huewe
Am 14. Juli 2016 19:20:16 GMT-07:00, schrieb Andrey Pronin : >This patchset adds a TCG TPM2.0 PTP FIFO compliant interface for >Cr50 chip on SPI. > >Depends on the following patches by Andrey Pronin > >that add new members to phy_ops in tpm_tis_core: > - tpm: support driver-specific sysfs attrs

Re: [PATCH] KVM: release anon file in failure path of vm creation

2016-07-14 Thread Al Viro
On Fri, Jul 15, 2016 at 10:22:04AM +0800, Liu Shuo wrote: > > You have no warranty whatsoever that descriptor table has not been changed > > by that point. You should *NEVER* use sys_close() on failure exit paths > Could you please elaborate why we're not sure descriptor table's changing at > the

Re: [PATCH v12] mtd: spi-nor: add hisilicon spi-nor flash controller driver

2016-07-14 Thread Brian Norris
On Fri, Jul 15, 2016 at 09:26:29AM +0800, Jiancheng Xue wrote: > On 2016/7/14 9:13, Brian Norris wrote: > > Pushed to l2-mtd.git, with the following diff due to API changes. Please > > review to be sure it looks OK to you. > > > > The changes are OK to me. Thanks! Thanks for double checking. >

Re: [PATCH] KVM: release anon file in failure path of vm creation

2016-07-14 Thread Liu Shuo
On Thu 14.Jul'16 at 17:46:47 +0100, Al Viro wrote: On Tue, Jul 12, 2016 at 12:24:39PM +0200, Paolo Bonzini wrote: On 12/07/2016 11:38, Liu Shuo wrote: > The failure of create debugfs of VM will return directly without release > the anon file. It will leak memory and file descriptors, even throu

Re: [PATCH 5/5] f2fs: use blk_plug in all the possible paths

2016-07-14 Thread Christoph Hellwig
On Thu, Jul 14, 2016 at 05:46:29PM -0700, Jaegeuk Kim wrote: > The main reason is that blk_start_plug can be used to wake up from low-power > mode before submitting further bios. Where does that myth come from?

[PATCH 2/2] tpm: add driver for cr50 on SPI

2016-07-14 Thread Andrey Pronin
Add TCG TPM2.0 PTP FIFO compatible interface for Cr50 chip on SPI bus. Signed-off-by: Andrey Pronin --- drivers/char/tpm/Kconfig| 9 + drivers/char/tpm/Makefile | 1 + drivers/char/tpm/cr50_spi.c | 409 3 files changed, 419 insertions(+) cr

[PATCH 1/2] tpm: devicetree: document properties for cr50

2016-07-14 Thread Andrey Pronin
Add TPM2.0-compatible interface to Cr50. Document its properties in devicetree. Signed-off-by: Andrey Pronin --- .../devicetree/bindings/security/tpm/cr50_spi.txt | 30 ++ 1 file changed, 30 insertions(+) create mode 100644 Documentation/devicetree/bindings/security/tpm/cr5

[PATCH 0/2] tpm: add driver for cr50 on SPI

2016-07-14 Thread Andrey Pronin
This patchset adds a TCG TPM2.0 PTP FIFO compliant interface for Cr50 chip on SPI. Depends on the following patches by Andrey Pronin that add new members to phy_ops in tpm_tis_core: - tpm: support driver-specific sysfs attrs in tpm_tis_core - tpm_tis_core: add optional max xfer size check Andr

linux-next: manual merge of the pm tree with the i2c tree

2016-07-14 Thread Stephen Rothwell
Hi Rafael, Today's linux-next merge of the pm tree got a conflict in: drivers/i2c/i2c-core.c between commit: a7003b65801e ("i2c: core: Cleanup I2C ACPI namespace") 55d38d060e99 ("i2c: core: Add function for finding the bus speed from ACPI") from the i2c tree and commit: 525e6fabeae2 (

  1   2   3   4   5   6   7   8   9   10   >