Re: [QUESTION] Microsoft, WSL, and the Linux trademark

2018-11-07 Thread Theodore Y. Ts'o
On Wed, Nov 07, 2018 at 05:06:08PM -0800, Vito Caputo wrote: > In reading the news today, I stumbled across an article talking about a > $20 "linux-based distro" app for Windows 10. > > This is just a bundled userspace for WSL, there is no actual Linux in > this thing, yet the trademarked Linux na

linux-next: build warning after merge of the staging tree

2018-11-07 Thread Stephen Rothwell
Hi Greg, After merging the staging tree, today's linux-next build (x86_64 allmodconfig) produced this warning: In file included from include/linux/printk.h:336, from include/linux/kernel.h:14, from include/linux/clk.h:16, from drivers/staging/med

RE: [PATCH] ARM: dts: imx7d-sdb: add rev-a board support

2018-11-07 Thread Anson Huang
Hi, Fabio Best Regards! Anson Huang > -Original Message- > From: Fabio Estevam [mailto:feste...@gmail.com] > Sent: 2018年11月8日 10:21 > To: Anson Huang > Cc: Rob Herring ; Mark Rutland > ; Shawn Guo ; Sascha > Hauer ; Sascha Hauer ; > Fabio Estevam ; open list:OPEN FIRMWARE AND > FLATTENED

Re: [PATCH v6 1/3] printk: Add line-buffered printk() API.

2018-11-07 Thread Sergey Senozhatsky
On (11/07/18 19:52), Tetsuo Handa wrote: > > A question. > > > > How bad would it actually be to: > > > > - Allocate seq_buf 512-bytes buffer (GFP_ATOMIC) just-in-time, when we > > need it. > > // How often systems cannot allocate a 512-byte buffer? // > > It is a very bad thing to do GFP_

Re: [PATCH 1/2] platform/chrome: fixup cros_ec_get_next_event() error codes

2018-11-07 Thread Brian Norris
On Wed, Nov 7, 2018 at 5:30 PM Brian Norris wrote: > > cros_ec_get_next_event() is documented to return 0 for success and > negative for errors. It currently returns negative for some errors, and > non-negative (number of bytes received) for success (including some "no > data available" responses

Re: [LKP] [drivers/base] 1431aa42b3: WARNING:at_drivers/base.c:#device_bind_driver

2018-11-07 Thread Bart Van Assche
On 11/7/18 4:24 PM, kernel test robot wrote: FYI, we noticed the following commit (built with gcc-7): commit: 1431aa42b3afc1dd50b292abcc68ccdc3193da63 ("drivers/base: Verify struct device locking requirements at runtime") https://github.com/bvanassche/linux for-next in testcase: boot on test

Re: Makefile:611: include/config/auto.conf: No such file or directory

2018-11-07 Thread Masahiro Yamada
Hi Mathieu, On Thu, Nov 8, 2018 at 4:48 AM Mathieu Malaterre wrote: > > Hi Yamada-san, > > Since commit: > > 80463f1b7bf9 kbuild: add --include-dir flag only for out-of-tree build > > I can no longer run the bindeb-pkg rule. For example: > > $ make O=wii ARCH=powerpc wii_defconfig > $ make -j8 O=

Re: [PATCH v6 1/3] printk: Add line-buffered printk() API.

2018-11-07 Thread Sergey Senozhatsky
On (11/07/18 11:21), Petr Mladek wrote: > > [..] > > - The printk-fallback sounds like a hint that the existing 'cont' handling > > better stay in the kernel. I don't see how the existing 'cont' is > > significantly worse than > > bpr_warn(NULL, ...)->printk() // no 'cont' support >

Re: [PATCH] ARM: dts: imx7d-sdb: add rev-a board support

2018-11-07 Thread Fabio Estevam
Hi Anson, On Wed, Nov 7, 2018 at 11:24 PM Anson Huang wrote: > Regarding the fec2 settings in imx7d-sdb.dts, originally it uses Rev-A board > (but some nodes are > using Rev-B board), in this patch, I clean up all the settings in > imx7d-sdb.dts using Rev-B board, > so below is added to imx7d-

Re: [PATCH] sched/rt: Introduce prio_{higher,lower}() helper for comparing RT task prority

2018-11-07 Thread Muchun Song
Hi Peter, Thanks for your review. Peter Zijlstra 于2018年11月8日周四 上午1:31写道: > > On Thu, Nov 08, 2018 at 12:15:05AM +0800, Muchun Song wrote: > > We use a value to represent the priority of the RT task. But a smaller > > value corresponds to a higher priority. If there are two RT task A and B, > > t

Re: [PATCH v3 1/4] dt-bindings: pinctrl: Add devicetree bindings for MT6797 SoC Pinctrl

2018-11-07 Thread Yingjoe Chen
On Wed, 2018-11-07 at 23:18 +0530, Manivannan Sadhasivam wrote: > Add devicetree bindings for Mediatek MT6797 SoC Pin Controller. > > Signed-off-by: Manivannan Sadhasivam > --- > .../bindings/pinctrl/pinctrl-mt6797.txt | 83 + > include/dt-bindings/pinctrl/mt6797-pinfunc.h | 1368 ++

Re: [PATCH] riscv: add asm/unistd.h UAPI header

2018-11-07 Thread Palmer Dabbelt
On Wed, 07 Nov 2018 13:09:39 PST (-0800), Arnd Bergmann wrote: On Wed, Nov 7, 2018 at 7:30 PM David Abdurachmanov wrote: On Wed, Nov 7, 2018 at 1:08 AM Palmer Dabbelt wrote: > On Mon, 05 Nov 2018 12:56:15 PST (-0800), Arnd Bergmann wrote: > The target is still the next glibc release (Feb 1s

Re: [PATCH] fs/proc: introduce /proc/stat2 file

2018-11-07 Thread Dave Chinner
On Wed, Nov 07, 2018 at 11:03:06AM +0100, Miklos Szeredi wrote: > On Wed, Nov 7, 2018 at 12:48 AM, Andrew Morton > wrote: > > On Mon, 29 Oct 2018 23:04:45 + Daniel Colascione > > wrote: > > > >> On Mon, Oct 29, 2018 at 7:25 PM, Davidlohr Bueso wrote: > >> > This patch introduces a new /proc

Re: [PATCH v2 4/9] arm64: defconfig: Drop USB_ULPI_BUS and USB_CHIPIDEA_ULPI

2018-11-07 Thread Fabio Estevam
On Wed, Nov 7, 2018 at 9:17 PM Marc Gonzalez wrote: > > Commit a930d8bd94d8 ("usb: chipidea: Always build ULPI code") made > USB_CHIPIDEA select USB_ULPI_BUS, and removed USB_CHIPIDEA_ULPI. > > Signed-off-by: Marc Gonzalez Reviewed-by: Fabio Estevam

Re: [Patch v4 07/18] x86/smt: Convert cpu_smt_control check to cpu_smt_enabled static key

2018-11-07 Thread Tim Chen
On 11/03/2018 11:29 AM, Thomas Gleixner wrote: > Tim, > > On Tue, 30 Oct 2018, Tim Chen wrote: > >> Change the SMT code paths check from using cpu_smt_control to >> cpu_smt_enabled static key. This saves a branching check. > > and adds extra size to the kernel for the patching. The only reason

Re: [PATCH 22/23] SUNRPC: simplify auth_unix.

2018-11-07 Thread NeilBrown
On Wed, Nov 07 2018, Chuck Lever wrote: > Hi Neil- > > >> On Nov 6, 2018, at 11:12 PM, NeilBrown wrote: >> >> 1/ discard 'struct unx_cred'. We don't need any data that >> is not already in 'struct rpc_cred'. >> 2/ Don't keep these creds in a hash table. When a credential >> is needed, simp

linux-next: build warning after merge of the iommu tree

2018-11-07 Thread Stephen Rothwell
Hi Joerg, After merging the iommu tree, today's linux-next build (x86_64 allmodconfig) produced this warning: In file included from include/linux/bitmap.h:10, from drivers/iommu/intel-iommu.c:24: drivers/iommu/intel-iommu.c: In function 'iommu_calculate_agaw': include/linux/kerne

[PATCH 2/2] platform/chrome: don't report EC_MKBP_EVENT_SENSOR_FIFO as wakeup

2018-11-07 Thread Brian Norris
EC_MKBP_EVENT_SENSOR_FIFO events can be triggered for a variety of reasons, and there are very few cases in which they should be treated as wakeup interrupts (particularly, when a certain MOTIONSENSE_MODULE_FLAG_* is set, but this is not even supported in the mainline cros_ec_sensor driver yet). Mo

[PATCH 1/2] platform/chrome: fixup cros_ec_get_next_event() error codes

2018-11-07 Thread Brian Norris
cros_ec_get_next_event() is documented to return 0 for success and negative for errors. It currently returns negative for some errors, and non-negative (number of bytes received) for success (including some "no data available" responses as zero). This works out OK, because the callers were more or

RE: [PATCH] ARM: dts: imx7d-sdb: add rev-a board support

2018-11-07 Thread Anson Huang
Hi, Fabio Best Regards! Anson Huang > -Original Message- > From: Fabio Estevam [mailto:feste...@gmail.com] > Sent: 2018年11月7日 18:03 > To: Anson Huang > Cc: Rob Herring ; Mark Rutland > ; Shawn Guo ; Sascha > Hauer ; Sascha Hauer ; > Fabio Estevam ; open list:OPEN FIRMWARE AND > FLATTENED

Re: [LKP] [locks] dee160df82: BUG:KASAN:null-ptr-deref_in_l

2018-11-07 Thread NeilBrown
On Wed, Nov 07 2018, Jeff Layton wrote: > On Wed, 2018-11-07 at 16:54 +0100, Thierry Reding wrote: >> On Wed, Nov 07, 2018 at 07:01:29AM -0500, Jeff Layton wrote: >> > On Wed, 2018-11-07 at 16:43 +0800, kernel test robot wrote: >> > > FYI, we noticed the following commit (built with gcc-7): >> > >

[PATCH v2] x86/cpu: fix prototype warning

2018-11-07 Thread Yi Wang
This patch fix the following build warnings which because of missing include file: arch/x86/kernel/cpu/cacheinfo.c:647:6: warning: no previous prototype for ‘cacheinfo_amd_init_llc_id’ [-Wmissing-prototypes] arch/x86/kernel/cpu/cacheinfo.c:686:6: warning: no previous prototype for ‘cacheinfo_hyg

[QUESTION] Microsoft, WSL, and the Linux trademark

2018-11-07 Thread Vito Caputo
In reading the news today, I stumbled across an article talking about a $20 "linux-based distro" app for Windows 10. This is just a bundled userspace for WSL, there is no actual Linux in this thing, yet the trademarked Linux name is used throughout. Did Microsoft license the trademark or somethin

Re: [PATCH v3] driver-staging: vsoc.c: Add sysfs support for examining the permissions of regions.

2018-11-07 Thread wahahab
> On 7 Nov 2018, at 5:15 PM, Greg Kroah-Hartman wrote: > > On Wed, Nov 07, 2018 at 10:30:43AM +0800, Jerry Lin wrote: >> Add a attribute called permissions under vsoc device node for examining >> current granted permissions in vsoc_device. >> >> This file will display permissions in following

[RFC PATCH v2 2/2] proc: add /proc//thread_state

2018-11-07 Thread Aubrey Li
Expose the per-task cpu specific thread state value, it's helpful for userland to classify and schedule the tasks by different policies Signed-off-by: Aubrey Li Cc: Peter Zijlstra Cc: Andi Kleen Cc: Tim Chen Cc: Arjan van de Ven --- arch/x86/kernel/fpu/xstate.c | 13 + fs/proc/ba

[RFC PATCH v2 1/2] x86/fpu: detect AVX task

2018-11-07 Thread Aubrey Li
XSAVES and its variants use init optimization to reduce the amount of data that they save to memory during context switch. Init optimization uses the state component bitmap to denote if a component is in its init configuration. We use this information to detect if a task contains AVX instructions.

Re: [RFC PATCH v1 1/2] x86/fpu: detect AVX task

2018-11-07 Thread Li, Aubrey
On 2018/11/8 1:41, Tim Chen wrote: > On 11/06/2018 10:23 AM, Aubrey Li wrote: > >> +static inline void update_avx_state(struct avx_state *avx) >> +{ >> +/* >> + * Check if XGETBV with ECX = 1 supported. XGETBV with ECX = 1 >> + * returns the logical-AND of XCR0 and XINUSE. XINUSE is a

Re: [Patch v4 17/18] x86/speculation: Update SPEC_CTRL MSRs of remote CPUs

2018-11-07 Thread Tim Chen
Thomas, > > The goal is to glue the mitigation decision on dumpable. That's debatable, > but understandable, so let's not go into that discussion. > > There are two ways to modify dumpable: > > 1) prctl(PR_SET_DUMPABLE) > > 2) operations which change UID/GID and end up in commit_creds() >

Re: [PATCH v9 3/5] clk: imx: add SCCG PLL type

2018-11-07 Thread Stephen Boyd
Quoting Abel Vesa (2018-11-07 12:26:25) > On Wed, Nov 07, 2018 at 11:01:02AM -0800, Stephen Boyd wrote: > > > > > > What's the plan to clean it up? > > So I'm doing this in our internal tree first to make sure I don't break the > other (newer) socs. > > I already have a prototype in testing but

Re: Git pull ack emails..

2018-11-07 Thread Michael Ellerman
Boris Brezillon writes: > Hello Michael, > > On Thu, 01 Nov 2018 21:18:28 +1100 > Michael Ellerman wrote: > >> Mark Brown writes: >> >> > On Fri, Oct 26, 2018 at 12:36:14PM -0500, Rob Herring wrote: >> >> On Thu, Oct 25, 2018 at 9:14 AM Linus Torvalds >> >> wrote: >> > >> >> > Are there

Re: [LKP] d50d82faa0 [ 33.671845] WARNING: possible circular locking dependency detected

2018-11-07 Thread Andrew Morton
On Tue, 23 Oct 2018 08:30:04 +0800 kernel test robot wrote: > Greetings, > > 0day kernel testing robot got the below dmesg and the first bad commit is > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > > commit d50d82faa0c964e31f7a946ba8aba7c715ca7ab0 > Author:

Re: [PATCH v2] PCI/MSI: Don't touch MSI bits when the PCI device is disconnected

2018-11-07 Thread Bjorn Helgaas
On Tue, Sep 18, 2018 at 05:15:00PM -0500, Alexandru Gagniuc wrote: > When a PCI device is gone, we don't want to send IO to it if we can > avoid it. We expose functionality via the irq_chip structure. As > users of that structure may not know about the underlying PCI device, > it's our responsibili

Re: [PATCH] scripts/spdxcheck: make python3 compliant

2018-11-07 Thread Andrew Morton
On Tue, 23 Oct 2018 09:08:02 +0200 Uwe Kleine-König wrote: > Without this change the following happens when using Python3 (3.6.6): > > $ echo "GPL-2.0" | python3 scripts/spdxcheck.py - > FAIL: 'str' object has no attribute 'decode' > Traceback (most recent call last): >

RE: [PATCH v3] clk: qoriq: add more chips support

2018-11-07 Thread Stephen Boyd
Quoting Andy Tang (2018-11-06 16:52:19) > Hi Stephen, > > > -Original Message- > > From: Stephen Boyd > > Sent: 2018年11月7日 1:25 > > To: Andy Tang ; mturque...@baylibre.com > > Cc: linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; Andy Tang > > > > Subject: Re: [PATCH v3] clk: qori

[PATCH v2 9/9] arm64: defconfig: Drop redundant sound codec options

2018-11-07 Thread Marc Gonzalez
SND_SOC_RK3399_GRU_SOUND selects SND_SOC_DA7219, SND_SOC_MAX98357A, SND_SOC_RT5514, SND_SOC_RT5514_SPI. SND_SOC_ROCKCHIP_RT5645 selects SND_SOC_RT5645. SND_SOC_RL6231 is pulled in for SND_SOC_RT5514 and SND_SOC_RT5645. Signed-off-by: Marc Gonzalez --- arch/arm64/configs/defconfig | 6 -- 1

[PATCH v2 8/9] arm64: defconfig: Change SCSI_UFS_HISI=m

2018-11-07 Thread Marc Gonzalez
SCSI_UFS_HISI depends on SCSI_UFSHCD_PLATFORM=m Signed-off-by: Marc Gonzalez --- arch/arm64/configs/defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index e4957df18f23..75d5ed7ea53d 100644 --- a/arch/arm64/c

[PATCH v2 7/9] arm64: defconfig: Drop CRYPTO_DEV_FSL_DPAA2_CAAM

2018-11-07 Thread Marc Gonzalez
Commit e8342cc7954e ("enable CAAM crypto engine on QorIQ DPAA2 SoCs") enabled CRYPTO_DEV_FSL_DPAA2_CAAM, which depends on FSL_MC_DPIO, which is not set. Signed-off-by: Marc Gonzalez --- arch/arm64/configs/defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm64/configs/defconfig b

[PATCH v2 1/9] arm64: defconfig: Regenerate for v4.20

2018-11-07 Thread Marc Gonzalez
Run the platform defconfig through kbuild, and handle the trivial case where options merely move around. Signed-off-by: Marc Gonzalez --- arch/arm64/configs/defconfig | 90 ++-- 1 file changed, 45 insertions(+), 45 deletions(-) diff --git a/arch/arm64/configs/def

[PATCH v2 2/9] arm64: defconfig: Drop ARM_BIG_LITTLE_CPUFREQ

2018-11-07 Thread Marc Gonzalez
Commit a7314405d83c ("drop ARM_BIG_LITTLE_CPUFREQ support for ARM64") dropped ARM_BIG_LITTLE_CPUFREQ support for ARM64. Signed-off-by: Marc Gonzalez --- arch/arm64/configs/defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig ind

[PATCH v2 6/9] arm64: defconfig: Drop redundant SND_SOC_ROCKCHIP_I2S

2018-11-07 Thread Marc Gonzalez
SND_SOC_ROCKCHIP_RT5645 selects SND_SOC_ROCKCHIP_I2S Signed-off-by: Marc Gonzalez --- arch/arm64/configs/defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 725b9471b21c..8e181cca0a05 100644 --- a/arch/arm64/configs/defco

[PATCH v2 5/9] arm64: defconfig: Replace PINCTRL_MT7622 with PINCTRL_MTK_MOORE

2018-11-07 Thread Marc Gonzalez
Commit e78d57b2f87c ("pinctrl: mediatek: add pinctrl-moore that implements the generic pinctrl dt-bindings") made PINCTRL_MT7622 depend on PINCTRL_MTK_MOORE. Signed-off-by: Marc Gonzalez --- arch/arm64/configs/defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm

[PATCH v2 3/9] arm64: defconfig: Drop NF_CONNTRACK_IPV{4,6}

2018-11-07 Thread Marc Gonzalez
Commit a0ae2562c6c4 ("netfilter: conntrack: remove l3proto abstraction") folded NF_CONNTRACK_IPV4 and NF_CONNTRACK_IPV6 into NF_CONNTRACK. Signed-off-by: Marc Gonzalez --- arch/arm64/configs/defconfig | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/

[PATCH v2 4/9] arm64: defconfig: Drop USB_ULPI_BUS and USB_CHIPIDEA_ULPI

2018-11-07 Thread Marc Gonzalez
Commit a930d8bd94d8 ("usb: chipidea: Always build ULPI code") made USB_CHIPIDEA select USB_ULPI_BUS, and removed USB_CHIPIDEA_ULPI. Signed-off-by: Marc Gonzalez --- arch/arm64/configs/defconfig | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs

[PATCH v2 0/9] Regenerate arm64 defconfig for current kernel

2018-11-07 Thread Marc Gonzalez
Hello ARM maintainers, v2: Improve commit message for a few patches The set of Kconfig options slowly changes with every kernel version. This patch series regenerates the arm64 defconfig for v4.20 No functional change intended, except adding PINCTRL_MTK_MOORE to keep PINCTRL_MT7622. Marc Gonzale

Re: [Patch v4 17/18] x86/speculation: Update SPEC_CTRL MSRs of remote CPUs

2018-11-07 Thread Tim Chen
On 11/07/2018 10:33 AM, Waiman Long wrote: > On 11/06/2018 07:18 PM, Tim Chen wrote: >> Thomas, >> > 2) Add _TIF_UPDATE_SPEC_CTRL to the SYSCALL_EXIT_WORK_FLAGS and handle it >in the slow work path. There can be tasks that don't do any syscalls, and it seems like we can have M

[PATCH v2 1/4] coresight: etb10: Add support for CLAIM tag

2018-11-07 Thread Mathieu Poirier
Following in the footstep of what was done for other CoreSight devices, add CLAIM tag support to ETB10 in order to synchronise access to the HW between the kernel and an external agent. Signed-off-by: Mathieu Poirier Reviewed-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-etb10.

[PATCH v2 2/4] coresight: etf: Release CLAIM tag after disabling the HW

2018-11-07 Thread Mathieu Poirier
This patch rectifies the sequence of events in function tmc_etb_disable_hw() by disabling the HW first and then releasing the CLAIM tag. Otherwise we could be corrupting the configuration done by an external agent that would have claimed the device after we have released it. Signed-off-by: Mathie

[PATCH v2 3/4] coresight: etm3x: Deal with CLAIM tag before and after accessing HW

2018-11-07 Thread Mathieu Poirier
This patch moves access to the CLAIM tag so that no modification to the HW happens before and after the CLAIM operation has been carried. Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresight/coresight-etm3x.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff

[PATCH v2 4/4] coresight: etm3x: Release CLAIM tag when operated from perf

2018-11-07 Thread Mathieu Poirier
This patch deals with the release of the CLAIM tag when the ETM is operated from perf. Otherwise the tag is left asserted and subsequent requests to use the device fail. Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresight/coresight-etm3x.c | 1 + 1 file changed, 1 insertion(+) diff

[PATCH v2 0/4] coresight: Fix miscellaneous problems with CLAIM tags

2018-11-07 Thread Mathieu Poirier
This set addresses problems observed with the CLAIM tag feature. The first patch adds support for CLAIM tags to the ETB10 drivers. The remaining 3 patches deal with properly handling the tags on ETF and ETM3x devices. Regards, Mathieu Changes since V1: * Added Suzuki's review tags to patch 1 a

Re: [PATCH v4 06/10] ARM: defconfig: Use the new FSL QSPI driver under the SPI framework

2018-11-07 Thread Olof Johansson
On Wed, Nov 7, 2018 at 8:36 AM Schrempf Frieder wrote: > > Hi Olof, > > On 07.11.18 17:20, Olof Johansson wrote: > > On Wed, Nov 7, 2018 at 6:44 AM Frieder Schrempf > > wrote: > >> > >> From: Frieder Schrempf > >> > >> The new driver at spi/spi-fsl-qspi.c replaces the old SPI NOR driver > >> at

Re: [Patch v4 17/18] x86/speculation: Update SPEC_CTRL MSRs of remote CPUs

2018-11-07 Thread Thomas Gleixner
Tim, On Tue, 6 Nov 2018, Tim Chen wrote: > >>> 2) Add _TIF_UPDATE_SPEC_CTRL to the SYSCALL_EXIT_WORK_FLAGS and handle it > >>>in the slow work path. > >> > >> There can be tasks that don't do any syscalls, and it seems like we can > >> have MSRs getting out of sync? > > > > Setting the TIF fl

[PATCH] input: cros_ec_keyb: fix button/switch capability reports

2018-11-07 Thread Brian Norris
The cros_ec_keyb_bs array lists buttons and switches together, expecting that its users will match the appropriate type and bit fields. But cros_ec_keyb_register_bs() only checks the 'bit' field, which causes misreported input capabilities in some cases. For example, tablets (e.g., Scarlet -- a.k.a

Re: [PATCH] z3fold: encode object length in the handle

2018-11-07 Thread Andrew Morton
On Mon, 29 Oct 2018 13:27:36 +0100 Vitaly Wool wrote: > Hi Andrew, > > Den tors 25 okt. 2018 kl 21:42 skrev Andrew Morton < > a...@linux-foundation.org>: > > > On Thu, 25 Oct 2018 11:28:21 +0200 Vitaly Wool > > wrote: > > > > > Reclaim and free can race on an object (which is basically ok) but

Question on comment header for for_each_domain()

2018-11-07 Thread Paul E. McKenney
Hello! The header comment for for_each_domain() talks about a call to synchronize_sched() within detach_destroy_domains(), but I am not seeing any such call. Because synchronize_sched() is now folded into synchronize_rcu(), I have a patch that edits the comment, but it looks like a larger change

Re: [PATCH] mm, slab: remove unnecessary unlikely()

2018-11-07 Thread David Rientjes
On Sun, 4 Nov 2018, Yangtao Li wrote: > WARN_ON() already contains an unlikely(), so it's not necessary to use > unlikely. > > Signed-off-by: Yangtao Li Acked-by: David Rientjes

RE: [tip:irq/core] genirq/matrix: Improve target CPU selection for managed interrupts.

2018-11-07 Thread Michael Kelley
From: Thomas Gleixner Sent: Wednesday, November 7, 2018 12:23 PM > > There is another interesting property of managed interrupts vs. CPU > hotplug. When the last CPU in the affinity mask goes offline, then the core > code shuts down the interrupt and the device driver and related layers > exclu

Re: PEBS level 2/3 breaks dwarf unwinding! [WAS: Re: Broken dwarf unwinding - wrong stack pointer register value?]

2018-11-07 Thread Milian Wolff
On Dienstag, 6. November 2018 21:24:11 CET Andi Kleen wrote: > > Where would I look for the source to change here? So far, I only > > concentrated on the userspace side of perf in tools/perf. > > Kind of similar to > > a405bad5ad20 perf/x86: Add Haswell specific transaction flag reporting > fdfbb

Re: [PATCH v1 6/7] vfio: ap: register guest ISC with GISA and GIB

2018-11-07 Thread Pierre Morel
On 06/11/2018 21:21, Tony Krowiak wrote: On 10/31/18 2:12 PM, Pierre Morel wrote: Register to the GIB Alert list and retrieve the GAL_ISC to pass to the GISA registration. Unregister on error and when clearing the interrupt. Signed-off-by: Pierre Morel Signed-off-by: Michael Mueller ---   dr

Re: [PATCH RFC 1/1] drivers: pinctrl: qcom: add wakeup capability to GPIO

2018-11-07 Thread Lina Iyer
On Mon, Nov 05 2018 at 22:19 -0700, Stephen Boyd wrote: Quoting Lina Iyer (2018-11-01 10:16:30) On Wed, Oct 31 2018 at 18:13 -0600, Stephen Boyd wrote: > [...] Ok. I don't see why we need to limit ourselves here. If a GPIO interrupt isn't routed through PDC physically why does it matter? It s

Re: [PATCH V2] binder: ipc namespace support for android binder

2018-11-07 Thread Andrew Morton
On Wed, 7 Nov 2018 01:48:12 + chouryzhou(周威) wrote: > > > --- a/ipc/namespace.c > > > +++ b/ipc/namespace.c > > > @@ -56,6 +56,9 @@ static struct ipc_namespace *create_ipc_ns(struct > > user_namespace *user_ns, > > > ns->ucounts = ucounts; > > > > > > err = mq_init_ns(ns); > >

[PATCH] Thermal: do not clear passive state during system sleep

2018-11-07 Thread Wei Wang
From: Wei Wang commit ff140fea847e ("Thermal: handle thermal zone device properly during system sleep") added PM hook to call thermal zone reset during sleep. However reseting thermal zone will also clear the passive state and thus cancel the polling queue which leads the passive cooling device s

[PATCH] perf script: share code and output format for uregs and iregs output

2018-11-07 Thread Milian Wolff
The iregs output was missing the newline at end as well as the leading ABI output. This made it hard to compare the iregs and uregs values. Instead, use a single function to output the register values and use it for both, iregs and uregs, to ensure the output is consistent. Before: ``` perf 7049

[PATCH 7/8] sparc: Remove unused leon_trans_init

2018-11-07 Thread Rob Herring
The function leon_trans_init is unused. Remove it and save us from figuring out what to do with a '' node name. Cc: "David S. Miller" Cc: sparcli...@vger.kernel.org Signed-off-by: Rob Herring --- arch/sparc/include/asm/leon.h | 1 - arch/sparc/kernel/leon_kernel.c | 14 -- 2 file

[PATCH 0/8] sparc: OF name and device_type rework

2018-11-07 Thread Rob Herring
All other platforms have been converted to only store the local node name in device_node.full_name except Sparc. Sparc was complicated by having a path_component_name in addition to full_name and name. By switching full_name to just the local node name, path_component_name becomes redundant and can

[PATCH 1/8] fs/openpromfs: use full_name instead of path_component_name

2018-11-07 Thread Rob Herring
In preparation to remove struct device_node.path_component_name, use full_name instead. kbasename is used so full_name can be used whether it is the full path or just the node's name and unit-address. Cc: "David S. Miller" Cc: sparcli...@vger.kernel.org Signed-off-by: Rob Herring --- fs/openpro

[PATCH 6/8] sparc: Use of_node_name_eq for node name comparisons

2018-11-07 Thread Rob Herring
Convert string compares of DT node names to use of_node_name_eq helper instead. This removes direct access to the node name pointer. Cc: "David S. Miller" Cc: sparcli...@vger.kernel.org Signed-off-by: Rob Herring --- arch/sparc/kernel/auxio_64.c | 4 ++-- arch/sparc/kernel/central.c

[PATCH 5/8] sparc: Convert to using %pOFn instead of device_node.name

2018-11-07 Thread Rob Herring
In preparation to remove the node name pointer from struct device_node, convert printf users to use the %pOFn format specifier. This was originally applied for 4.19, but reverted. The problematic changes to prom_{32,64}.c have been dropped. Cc: "David S. Miller" Cc: sparcli...@vger.kernel.org Si

[PATCH 3/8] sparc: prom: use property "name" directly to construct node names

2018-11-07 Thread Rob Herring
In preparation to remove direct accesses to the device_node.name pointer, retrieve the node name from the "name" property instead. Cc: "David S. Miller" Cc: sparcli...@vger.kernel.org Signed-off-by: Rob Herring --- arch/sparc/kernel/prom_32.c | 20 ++-- arch/sparc/kernel/prom_64.c |

[PATCH 8/8] sparc: Use device_type helpers to access the node type

2018-11-07 Thread Rob Herring
Remove directly accessing device_node.type pointer and use the accessors instead. This will eventually allow removing the type pointer. Replace the open coded iterating over child nodes with for_each_child_of_node() while we're here. Cc: "David S. Miller" Cc: sparcli...@vger.kernel.org Signed-of

Re: [PATCH v1 4/7] vfio: ap: AP Queue Interrupt Control VFIO ioctl calls

2018-11-07 Thread Pierre Morel
On 06/11/2018 21:21, Tony Krowiak wrote: On 10/31/18 2:12 PM, Pierre Morel wrote: This is the implementation of the VFIO ioctl calls to handle the AQIC interception and use GISA to handle interrupts. Signed-off-by: Pierre Morel ---   drivers/s390/crypto/vfio_ap_ops.c | 95 +

[PATCH 4/8] sparc: Convert to using %pOF instead of full_name

2018-11-07 Thread Rob Herring
Now that we have a custom printf format specifier, convert users of full_name to use %pOF instead. This is preparation to remove storing of the full path string for each node. Cc: "David S. Miller" Cc: sparcli...@vger.kernel.org Signed-off-by: Rob Herring --- arch/sparc/kernel/auxio_64.c |

[PATCH 2/8] of: Drop full path from Sparc PDT full_name

2018-11-07 Thread Rob Herring
Now that there are no more users of path_component_name outside of the PDT code and users of device_node.full_name are converted to use "%pOF" printf specifier, we can align Sparc with other arches and store just the base node name and unit address in full_name. This makes path_component_name redun

Re: [PATCH] MAINTAINERS: Fix remaining pointers to obsolete libata.git

2018-11-07 Thread Jens Axboe
On 11/7/18 2:47 AM, Geert Uytterhoeven wrote: > libata.git no longer exists. Replace the remaining pointers to it by > pointers to the block tree, which is where all libata development > happens now. Thanks, applied. -- Jens Axboe

[PATCH] input: cros_ec_keyb: fix button/switch capability reports

2018-11-07 Thread Brian Norris
The cros_ec_keyb_bs array lists buttons and switches together, expecting that its users will match the appropriate type and bit fields. But cros_ec_keyb_register_bs() only checks the 'bit' field, which causes misreported input capabilities in some cases. For example, tablets (e.g., Scarlet -- a.k.a

Re: [PATCH v1 4/7] vfio: ap: AP Queue Interrupt Control VFIO ioctl calls

2018-11-07 Thread Pierre Morel
On 07/11/2018 10:46, Cornelia Huck wrote: On Wed, 31 Oct 2018 19:12:54 +0100 Pierre Morel wrote: This is the implementation of the VFIO ioctl calls to handle the AQIC interception and use GISA to handle interrupts. Signed-off-by: Pierre Morel --- drivers/s390/crypto/vfio_ap_ops.c | 95

[PATCH 2/2] ubi: Expose the bitrot interface

2018-11-07 Thread Richard Weinberger
Using UBI_IOCRPEB and UBI_IOCSPEB userspace can force reading and scrubbing of PEBs. In case of bitflips UBI will automatically take action and move data to a different PEB. This interface allows a daemon to foster your NAND. Signed-off-by: Richard Weinberger --- drivers/mtd/ubi/cdev.c |

[PATCH 1/2] ubi: Introduce in_pq()

2018-11-07 Thread Richard Weinberger
This function works like in_wl_tree() but checks whether an ubi_wl_entry is currently in the protection queue. We need this function to query the current state of an ubi_wl_entry. Signed-off-by: Richard Weinberger --- drivers/mtd/ubi/wl.c | 30 +++--- 1 file changed, 23 i

Re: [PATCH v5 0/3] Stingray thermal driver support

2018-11-07 Thread Florian Fainelli
On 10/16/2018 8:11 AM, Srinath Mannam wrote: > These patches adds the stingray thermal driver and its > corresponding DT nodes with documentation. Can we get feedback from the thermal maintains whether this is acceptable or not? > > Changes from v4 > - Addressed Rob Herring comments on DT p

Re: [PATCH] lib/genaloc: Fix allocation of aligned buffer from non-aligned chunk

2018-11-07 Thread Andrew Morton
On Wed, 7 Nov 2018 08:21:07 +0200 Alexey Skidanov wrote: > > Why does this need "fixing"? Are there current callers which can > > misalign chunk_start_addr? Or is there a requirement that future > > callers can misalign chunk_start_addr? > > > I work on adding aligned allocation support for I

Re: KMSAN: kernel-infoleak in kvm_write_guest_page

2018-11-07 Thread Liran Alon
> On 7 Nov 2018, at 20:58, syzbot > wrote: > > Hello, > > syzbot found the following crash on: > > HEAD commit:7438a3b20295 kmsan: print user address when reporting info.. > git tree: > https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_google_kmsan.git_master&d=DwIB

Re: [LKP] [locks] dee160df82: BUG:KASAN:null-ptr-deref_in_l

2018-11-07 Thread Jeff Layton
On Wed, 2018-11-07 at 16:54 +0100, Thierry Reding wrote: > On Wed, Nov 07, 2018 at 07:01:29AM -0500, Jeff Layton wrote: > > On Wed, 2018-11-07 at 16:43 +0800, kernel test robot wrote: > > > FYI, we noticed the following commit (built with gcc-7): > > > > > > commit: dee160df820de41ff2f59a715643680

Re: [PATCH] lib/genaloc: Fix allocation of aligned buffer from non-aligned chunk

2018-11-07 Thread Andrew Morton
On Wed, 7 Nov 2018 08:27:31 +0200 Alexey Skidanov wrote: > > > On 11/7/18 12:15 AM, Andrew Morton wrote: > > On Tue, 6 Nov 2018 14:20:53 +0200 Alexey Skidanov > > wrote: > > > >> On success, gen_pool_first_fit_align() returns the bit number such that > >> chunk_start_addr + (bit << order)

Re: [PATCH 3/3] drivers/char/random.c: make primary_crng static

2018-11-07 Thread Theodore Y. Ts'o
On Fri, Nov 02, 2018 at 12:04:47PM +0100, Rasmus Villemoes wrote: > Since the definition of struct crng_state is private to random.c, and > primary_crng is neither declared or used elsewhere, there's no reason > for that symbol to have external linkage. > > Signed-off-by: Rasmus Villemoes Thanks

Re: [PATCH 1/3] drivers/char/random.c: constify poolinfo_table

2018-11-07 Thread Theodore Y. Ts'o
On Fri, Nov 02, 2018 at 12:04:45PM +0100, Rasmus Villemoes wrote: > Never modified, might as well be put in .rodata. > > Signed-off-by: Rasmus Villemoes Thanks, applied. - Ted

Re: [PATCH 2/3] drivers/char/random.c: remove unused stuct poolinfo::poolbits

2018-11-07 Thread Theodore Y. Ts'o
On Fri, Nov 02, 2018 at 12:04:46PM +0100, Rasmus Villemoes wrote: > This field is never used, might as well remove it. > > Signed-off-by: Rasmus Villemoes Thanks, applied. - Ted

Re: [PATCH] cpuset: remove set but not used variable 'cs'

2018-11-07 Thread Tom Hromatka
On 11/07/2018 12:18 AM, Yi Wang wrote: This fixes the following warning: kernel/cgroup/cpuset.c: In function ‘cpuset_cancel_attach’: kernel/cgroup/cpuset.c:1501:17: warning: variable ‘cs’ set but not used [-Wunused-but-set-variable] struct cpuset *cs; ^ Signed-off-by: Yi Wa

[PATCH v2] ubifs: Handle re-linking of inodes correctly while recovery

2018-11-07 Thread Richard Weinberger
UBIFS's recovery code strictly assumes that a deleted inode will never come back, therefore it removes all data which belongs to that inode as soon it faces an inode with link count 0 in the replay list. Before O_TMPFILE this assumption was perfectly fine. With O_TMPFILE it can lead to data loss up

[PATCH 07/10] irqchip/gic-v3-its: Split probing from its node initialization

2018-11-07 Thread Robert Richter
To initialize the its nodes at a later point during boot, we need to split probing from initialization. Collect all information required for initialization in struct its_node. We can then use the its node list for initialization. Signed-off-by: Robert Richter --- drivers/irqchip/irq-gic-v3-its.c

[PATCH 08/10] irqchip/gic-v3-its: Decouple its initialization from gic

2018-11-07 Thread Robert Richter
This patch separates its initialization from the gic. Probing and initialization of its nodes is separate now. There is an own cpu notifier for its now. Signed-off-by: Robert Richter --- drivers/irqchip/irq-gic-v3-its.c | 58 +- drivers/irqchip/irq-gic-v3.c

Re: [RFC PATCH 4/5] mm, memory_hotplug: print reason for the offlining failure

2018-11-07 Thread Andrew Morton
On Wed, 7 Nov 2018 11:18:29 +0100 Michal Hocko wrote: > From: Michal Hocko > > The memory offlining failure reporting is inconsistent and insufficient. > Some error paths simply do not report the failure to the log at all. > When we do report there are no details about the reason of the failur

[PATCH 06/10] irqchip/gic-v3-its: Initialize its nodes in probe order

2018-11-07 Thread Robert Richter
ATM the last discovered node is initialized first. Though this order should work too, change the initialization of nodes to probe order as one would expect it. Signed-off-by: Robert Richter --- drivers/irqchip/irq-gic-v3-its.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/d

[PATCH 10/10] irqchip/gic-v3-its: Initialize MSIs with subsys_initcalls

2018-11-07 Thread Robert Richter
Since ITS is initialized with with the subsys_initcall now, we don't need to enable ITS children earlier. Due to the use of irq_domain_ request_host_*() there are no order dependencies when initializing irq domains. Signed-off-by: Robert Richter --- drivers/irqchip/irq-gic-v3-its-fsl-mc-msi.c

[PATCH 05/10] fsl-mc/dprc-driver: Remove domain init order dependencies

2018-11-07 Thread Robert Richter
Use new irq_domain_request_host_*() interface which allows independent parent and child initialization using an irq domain request handler. This makes it possible to move its initialization to a later point during boot. All domains can be initialized in the same initcall level then. Signed-off-by:

[PATCH 04/10] irqchip/irq-gic-v3-its-fsl-mc-msi: Remove domain init order dependencies

2018-11-07 Thread Robert Richter
Use new irq_domain_request_host_*() interface which allows independent parent and child initialization using an irq domain request handler. This makes it possible to move its initialization to a later point during boot. All domains can be initialized in the same initcall level then. Signed-off-by:

[PATCH 09/10] irqchip/gic-v3-its: Initialize its nodes later

2018-11-07 Thread Robert Richter
Use an initcall to initialize its. This allows us to use the device framework during initialization that is up at this point. We use subsys_initcall() here since we need the arch to be initialized first. It is before pci and platform device probe where devices are bound to msi interrupts. Signed-o

[PATCH 00/10] irqdomain, gic-v3-its: Implement late irq domain initialization

2018-11-07 Thread Robert Richter
This patch series is a rework of the gic-v3-its initialization. It is in preparation of a further series that uses CMA memory allocation for ITS tables. For this the CMA framework must be available and thus ITS needs to be initialized after the arch_initcalls. This requires two major reworks. Firs

[PATCH 02/10] irqchip/gic-v3-its-platform-msi: Remove domain init order dependencies

2018-11-07 Thread Robert Richter
Use new irq_domain_request_host_*() interface which allows independent parent and child initialization using an irq domain request handler. This makes it possible to move its initialization to a later point during boot. All domains can be initialized in the same initcall level then. Signed-off-by:

Re: [PATCH] EDAC, skx: Better fix for randconfig builds

2018-11-07 Thread Borislav Petkov
On Tue, Nov 06, 2018 at 10:39:15AM -0800, Luck, Tony wrote: > On Tue, Nov 06, 2018 at 03:32:53PM +0100, Borislav Petkov wrote: > > On Tue, Nov 06, 2018 at 02:44:42PM +0100, Arnd Bergmann wrote: > > > No, it was unintentional, the 'if ACPI' can be dropped when we add > > > 'depends on ACPI'. > > >

[PATCH 01/10] irqdomain: Add interface to request an irq domain

2018-11-07 Thread Robert Richter
This patch introduces a new interface to allow irq domain initialization regardless of order dependencies. This is done by requesting a domain and registering a callback function that is called as soon as a domain becomes available. A typical irq domain initialization code is the following: Paren

<    1   2   3   4   5   6   7   8   >