[PATCH v2 16/25] staging: lustre: libcfs: rename i to cpu for cfs_cpt_bind

2018-05-29 Thread James Simmons
From: Dmitry Eremin Rename variable i to cpu to make code easier to understand. Signed-off-by: Dmitry Eremin Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-8703 Reviewed-on: https://review.whamcloud.com/23222 Reviewed-by: Amir Shehata Reviewed-by: James Simmons Reviewed-by: Oleg Drokin

Re: [PATCH] pci: mvebu: add MVEBU_MBUS dependency

2018-05-29 Thread Rob Herring
On Tue, May 29, 2018 at 4:41 AM, Arnd Bergmann wrote: > Enabling the PCI_MVEBU driver for compile testing caused a build failure > on ARM randconfig builds: > > drivers/pci/host/pci-mvebu.c: In function 'mvebu_pcie_del_windows': > drivers/pci/host/pci-mvebu.c:341:3: error: implicit declaration of

[PATCH v2 21/25] staging: lustre: libcfs: report NUMA node instead of just node

2018-05-29 Thread James Simmons
From: Dmitry Eremin Reporting "HW nodes" is too generic. It really is reporting "HW NUMA nodes". Update the debug message. Signed-off-by: Dmitry Eremin Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-8703 Reviewed-on: https://review.whamcloud.com/23306 Reviewed-by: James Simmons Reviewed-b

[PATCH v2 20/25] staging: lustre: libcfs: make tolerant to offline CPUs and empty NUMA nodes

2018-05-29 Thread James Simmons
From: Dmitry Eremin Rework CPU partition code in the way of make it more tolerant to offline CPUs and empty nodes. Signed-off-by: Dmitry Eremin Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-8703 Reviewed-on: https://review.whamcloud.com/23222 Reviewed-by: Amir Shehata Reviewed-by: James

[PATCH v2 19/25] staging: lustre: libcfs: update debug messages

2018-05-29 Thread James Simmons
From: Dmitry Eremin For cfs_cpt_bind() change the CERROR to CDEBUG. Make the debug message in cfs_cpt_table_create_pattern() more understandable. Report rc value for when cfs_cpt_create_table() fails. Signed-off-by: Dmitry Eremin Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-8703 Reviewed

[PATCH v2 14/25] staging: lustre: libcfs: use int type for CPT identification.

2018-05-29 Thread James Simmons
From: Dmitry Eremin Use int type for CPT identification to match the linux kernel CPU identification. Signed-off-by: Dmitry Eremin Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-8703 Reviewed-on: https://review.whamcloud.com/23304 Reviewed-by: James Simmons Reviewed-by: Doug Oucharek Rev

[PATCH v2 18/25] staging: lustre: libcfs: rename goto label in cfs_cpt_table_print

2018-05-29 Thread James Simmons
From: Dmitry Eremin Change goto label out to err. Signed-off-by: Dmitry Eremin Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-8703 Reviewed-on: https://review.whamcloud.com/23222 Reviewed-by: Amir Shehata Reviewed-by: James Simmons Reviewed-by: Oleg Drokin Signed-off-by: James Simmons

[PATCH v2 24/25] staging: lustre: libcfs: change CPT estimate algorithm

2018-05-29 Thread James Simmons
From: Dmitry Eremin The main idea to have more CPU partitions is based on KNL experience. When a thread submit IO for network communication one of threads from current CPT is used for network stack. Whith high parallelization many threads become involved in network submission but having less CPU

Re: [PATCH] KVM: VMX: Optimize tscdeadline timer latency

2018-05-29 Thread Radim Krčmář
2018-05-29 14:53+0800, Wanpeng Li: > From: Wanpeng Li > > 'Commit d0659d946be0 ("KVM: x86: add option to advance tscdeadline > hrtimer expiration")' advances the tscdeadline (the timer is emulated > by hrtimer) expiration in order that the latency which is incurred > by hypervisor (apic_timer_

[PATCH v2 17/25] staging: lustre: libcfs: rename cpumask_var_t variables to *_mask

2018-05-29 Thread James Simmons
From: Dmitry Eremin Because we handle both cpu mask as well as core identifiers it can easily be confused. To avoid this rename various cpumask_var_t to have appended *_mask to their names. Signed-off-by: Dmitry Eremin Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-8703 Reviewed-on: https:

Re: linux-next: manual merge of the block tree with the vfs tree

2018-05-29 Thread Jens Axboe
On 5/29/18 2:12 AM, Christoph Hellwig wrote: > Meh. Do we really need these switch to octal patches to start > with? I mean, I personally prefer octal, but just switching around > in random code that isn't otherwise changed creates nothing but churn. This is exactly why I hesitated doing it, I k

[PATCH v2 25/25] staging: lustre: ptlrpc: use current CPU instead of hardcoded 0

2018-05-29 Thread James Simmons
From: Dmitry Eremin fix crash if CPU 0 disabled. Signed-off-by: Dmitry Eremin Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-8710 Reviewed-on: https://review.whamcloud.com/23305 Reviewed-by: Doug Oucharek Reviewed-by: Andreas Dilger Signed-off-by: James Simmons --- Changelog: v1) New p

[PATCH v2 23/25] staging: lustre: libcfs: rework CPU pattern parsing code

2018-05-29 Thread James Simmons
From: Dmitry Eremin Currently the module param string for CPU pattern can be modified which is wrong. Rewrite CPU pattern parsing code to avoid the passed buffer from being changed. This change also enables us to add real errors propogation to the caller functions. Signed-off-by: Dmitry Eremin

[PATCH v2 22/25] staging: lustre: libcfs: update debug messages in CPT code

2018-05-29 Thread James Simmons
From: Dmitry Eremin Update the debug messages for the CPT table creation code. Place the passed in string in quotes to make it clear what it is. Captialize cpu in the debug strings. Signed-off-by: Dmitry Eremin Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-8703 Reviewed-on: https://review

[PATCH v2 5/6] staging: lustre: mdc: excessive memory consumption by the xattr cache

2018-05-29 Thread James Simmons
From: Andrew Perepechko The refill operation of the xattr cache does not know the reply size in advance, so it makes a guess based on the maxeasize value returned by the MDS. In practice, it allocates 16 KiB for the common case and 4 MiB for the large xattr case. However, a typical reply is just

[PATCH v2 02/25] staging: lustre: libcfs: remove useless CPU partition code

2018-05-29 Thread James Simmons
From: Dmitry Eremin * remove scratch buffer and mutex which guard it. * remove global cpumask and spinlock which guard it. * remove cpt_version for checking CPUs state change during setup because of just disable CPUs state change during setup. * remove whole global struct cfs_cpt_data cpt_data.

[PATCH v2 0/6] staging: lustre: llite: remaining xattr patches

2018-05-29 Thread James Simmons
From: James Simmons Fixed the bugs in the set_acl patch pointed out by Dan Carpenter. Rebased the next patch 'remove unused parameter..." on the parent patch. Created new acl.c file to match what other linx kernel file systems do. Added newer xattr fixes that were recently pushed. Andrew Perepec

Re: [PATCH] selftest: intel_pstate: debug support message from aperf.c and return value fix.

2018-05-29 Thread Shuah Khan
Hi Jeffrin, On 05/18/2018 01:19 PM, Shuah Khan wrote: > On 05/18/2018 08:05 AM, Jeffrin Jose T wrote: >> Additional message along with an error message which is more >> verbose for debug support from aperf.c and updated with the >> new return value "KSFT_SKIP". >> >> Signed-off-by: Jeffrin Jose T

Re: [PATCH -next] misc: ibmvmc: Use GFP_ATOMIC under spin lock

2018-05-29 Thread Bryant G. Ly
On 5/26/18 4:45 AM, Wei Yongjun wrote: > The function alloc_dma_buffer() is called from ibmvmc_add_buffer(), > in which a spin lock be held here, so we should use GFP_ATOMIC when > a lock is held. > > Fixes: 0eca353e7ae7 ("misc: IBM Virtual Management Channel Driver (VMC)") > Signed-off-by: Wei

Re: [PATCH] ARM: DTS: imx53: Add support for imx53 HSC/DDC boards from K+P

2018-05-29 Thread Fabio Estevam
Hi Lukasz, On Tue, May 29, 2018 at 10:58 AM, Lukasz Majewski wrote: > Sorry for "small" delay on this. > > Ok, so I've investigated the issue: > > 1. The code, which you pasted: > http://code.bulix.org/ik01yu-339697 > > works correctly as imx53-qsb-common.dtsi directly includes "imx53.dtsi" > in

Re: [GIT PULL] overlayfs update for 4.18

2018-05-29 Thread Miklos Szeredi
On Tue, May 29, 2018 at 3:59 PM, Christoph Hellwig wrote: >> vfs: add f_op->pre_mmap() > > We've been through these pre-mmap games a few times, and always rejected > them, why is this any different? Don't know what the other cases were. Overlayfs case is completely state free. It just doe

Re: [PATCH v2] remoteproc: Introduce prepare/unprepare ops for rproc coredump

2018-05-29 Thread Sibi S
Hi Bjorn, Thanks for the review. On 05/29/2018 10:35 AM, Bjorn Andersson wrote: On Mon 21 May 11:45 PDT 2018, Sibi Sankar wrote: In some occasions the remoteproc device might need to prepare some hardware before the coredump can be performed and cleanup the state afterwards. Q6V5 modem requi

[PATCH] fuse: Allow fully unprivileged mounts

2018-05-29 Thread Eric W. Biederman
Now that the fuse and the vfs work is complete. Allow the fuse filesystem to be mounted by the root user in a user namespace. Signed-off-by: "Eric W. Biederman" --- fs/fuse/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c index 22c7

Re: [PATCH] soc: imx: gpcv2: correct PGC offset

2018-05-29 Thread Leonard Crestez
On Tue, 2018-05-29 at 16:02 +0800, Anson Huang wrote: > Correct MIPI/PCIe/USB_HSIC's PGC offset based on > design RTL, the value on Reference Manual are incorrect. > > The correct offset should be as below: > > -#define PGC_MIPI 4 > -#define PGC_PCIE 5 >

Re: [PATCH] fuse: Ensure posix acls are translated outside of init_user_ns

2018-05-29 Thread Eric W. Biederman
Miklos Szeredi writes: > On Tue, May 29, 2018 at 2:42 PM, Eric W. Biederman > wrote: >> ebied...@xmission.com (Eric W. Biederman) writes: >> >>> ebied...@xmission.com (Eric W. Biederman) writes: >>> Ensure the translation happens by failing to read or write posix acls when the filesyst

Re: [PATCH] rtc: sun6i: Fix bit_idx value for clk_register_gate

2018-05-29 Thread Maxime Ripard
Hi, On Mon, May 28, 2018 at 01:20:32PM +0530, Jagan Teki wrote: > From: Michael Trimarchi > > clk-gate core will take bit_idx through clk_register_gate > and then do clk_gate_ops by using BIT(bit_idx), but rtc-sun6i > is passing bit_idx as BIT(bit_idx) it becomes BIT(BIT(bit_idx) > which is wron

[PATCH 2/3] x86:add missing CONFIG_STRICT_KERNEL_RWX for mark_rodata_ro

2018-05-29 Thread nixiaoming
mark_rodata_ro is only called by the function mark_readonly when CONFIG_STRICT_KERNEL_RWX=y if CONFIG_STRICT_KERNEL_RWX is not set a compile warning may be triggered: unused function Signed-off-by: nixiaoming --- arch/x86/mm/init_32.c | 2 ++ arch/x86/mm/init_64.c | 2 ++ 2 files changed, 4 ins

[PATCH 3/3] s390:add missing CONFIG_STRICT_KERNEL_RWX for mark_rodata_ro

2018-05-29 Thread nixiaoming
mark_rodata_ro is only called by the function mark_readonly when CONFIG_STRICT_KERNEL_RWX=y if CONFIG_STRICT_KERNEL_RWX is not set a compile warning may be triggered: unused function Signed-off-by: nixiaoming --- arch/s390/mm/init.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/s39

[PATCH 1/3] arm64:add missing CONFIG_STRICT_KERNEL_RWX for mark_rodata_ro

2018-05-29 Thread nixiaoming
mark_rodata_ro is only called by the function mark_readonly when CONFIG_STRICT_KERNEL_RWX=y, if CONFIG_STRICT_KERNEL_RWX is not set a compile warning may be triggered: unused function Signed-off-by: nixiaoming --- arch/arm64/mm/mmu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm

Re: [GIT PULL] overlayfs update for 4.18

2018-05-29 Thread Christoph Hellwig
> vfs: add f_op->pre_mmap() We've been through these pre-mmap games a few times, and always rejected them, why is this any different? > vfs: export vfs_dedupe_file_range_one() to modules Please use EXPORT_SYMBOL_GPL for all these crazy low-level exports. To be homest I'd really like

Re: [PATCH] ARM: DTS: imx53: Add support for imx53 HSC/DDC boards from K+P

2018-05-29 Thread Lukasz Majewski
Hi Fabio, > Hi Lukasz, > > On Sat, May 19, 2018 at 9:02 AM, Lukasz Majewski > wrote: > > > After removing imx53-kp-ddc and imx53-kp-common iomux subnodes I do > > see following errors in the dmesg (v4.17-rc5): > > > > imx53-pinctrl 53fa8000.iomuxc: function 'iomuxc' not supported > > imx53-pinc

[PATCH] fs/binfmt_misc.c: do not allow offset overflow

2018-05-29 Thread Thadeu Lima de Souza Cascardo
It's possible to overflow the offset to get a negative value, which might crash the system, or possibly leak kernel data. Here is a crash log when using 25 as offset: [ 6050.251552] BUG: unable to handle kernel paging request at 989cfd6edca0 [ 6050.252053] IP: load_misc_binary+0x22b/0

Re: [PATCH v2] mm: fix race between kmem_cache destroy, create and deactivate

2018-05-29 Thread Christopher Lameter
On Sat, 26 May 2018, Vladimir Davydov wrote: > > The reference counting is only implemented for root kmem_caches for > > simplicity. The reference of a root kmem_cache is elevated on sharing or > > while its memcg kmem_cache creation or deactivation request is in the > > fly and thus it is made su

[GIT PULL] afs: A couple of fixes

2018-05-29 Thread David Howells
.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs (2018-05-15 10:48:36 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git tags/afs-fixes-20180529 for you to fetch changes up to 1fba5868eed82766fb374c7d367166706f9269d5: af

Re: [PATCH v1 04/20] signal: add copy_pending() helper

2018-05-29 Thread Christian Brauner
On Tue, May 29, 2018 at 08:44:22AM -0500, Eric W. Biederman wrote: > Christian Brauner writes: > > > On Tue, May 29, 2018 at 07:24:26AM -0500, Eric W. Biederman wrote: > >> Christian Brauner writes: > >> > >> > Instead of using a goto for this let's add a simple helper copy_pending() > >> > whi

heads up: moving intel-pt-decoder/Build header checks to check_headers.sh

2018-05-29 Thread Arnaldo Carvalho de Melo
Hi Adrian, We've made tools/perf/check-headers.sh the mechanism to check for drift on kernel file copies we have in tools/, and it assumes that if we have tools/a/b/c/d, then it came from a/b/c/d in the kernel sources, e.g. a copy of the kernel's arch/x86/lib/x86-opcode-map.txt would be in

Re: [PATCH v1 04/20] signal: add copy_pending() helper

2018-05-29 Thread Eric W. Biederman
Christian Brauner writes: > On Tue, May 29, 2018 at 07:24:26AM -0500, Eric W. Biederman wrote: >> Christian Brauner writes: >> >> > Instead of using a goto for this let's add a simple helper copy_pending() >> > which can be called in both places. >> >> Ick no. As far as I can see this just co

Re: [PATCH v5 02/10] sched/rt: add rt_rq utilization tracking

2018-05-29 Thread Vincent Guittot
Hi Patrick, On 25 May 2018 at 17:54, Patrick Bellasi wrote: > On 25-May 15:12, Vincent Guittot wrote: >> schedutil governor relies on cfs_rq's util_avg to choose the OPP when cfs >^ >

Re: [PATCH] floppy: Do not copy a kernel pointer to user memory in FDGETPRM ioctl

2018-05-29 Thread Andy Whitcroft
On Wed, Mar 07, 2018 at 04:02:45PM -0800, Brian Belleville wrote: > The final field of a floppy_struct is the field "name", which is a > pointer to a string in kernel memory. The kernel pointer should not be > copied to user memory. The FDGETPRM ioctl copies a floppy_struct to > user memory, includ

Re: [PATCH 0/2] x86/boot/KASLR: Skip specified number of 1GB huge pages when do physical randomization

2018-05-29 Thread Luiz Capitulino
On Mon, 28 May 2018 17:54:18 +0800 Baoquan He wrote: > On 05/23/18 at 03:10pm, Luiz Capitulino wrote: > > On Fri, 18 May 2018 19:28:36 +0800 > > Baoquan He wrote: > > > > > > Note that it's not KASLR specific: if we had some other kernel feature > > > > that tried > > > > to allocate a piec

[GIT PULL] overlayfs update for 4.18

2018-05-29 Thread Miklos Szeredi
Hi Al, I'm sending this pull request to you instead of Linus, because a bigger than usual chunk involves the VFS. Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs.git for-viro This update contains the following: - Deal with vfs_mkdir() not instantiating dentry.

[PATCH 04/19] Bluetooth: hci_nokia: Add serdev_id_table

2018-05-29 Thread Ricardo Ribalda Delgado
Describe which hardware is supported by the current driver. Cc: Marcel Holtmann Cc: Johan Hedberg Cc: Rob Herring Cc: Johan Hovold Cc: linux-blueto...@vger.kernel.org Signed-off-by: Ricardo Ribalda Delgado --- drivers/bluetooth/hci_nokia.c | 6 ++ 1 file changed, 6 insertions(+) diff --

[PATCH v2 00/12] coresight: tmc-etr Transparent buffer management

2018-05-29 Thread Suzuki K Poulose
This series is split of the Coresight ETR perf support patches posted here [0]. The CATU support and perf backend support will be posted as separate series for better management and review of the patches. This series adds the support for TMC ETR Scatter-Gather mode to allow using physical non-cont

Re: [PATCH v4 4/8] PCI: Replace dev_node parameter of of_pci_get_host_bridge_resources with device

2018-05-29 Thread Bjorn Helgaas
On Mon, May 28, 2018 at 12:46:35PM +0200, Jan Kiszka wrote: > On 2018-05-28 12:00, Vladimir Zapolskiy wrote: > > Hi Jan, Bjorn, > > > > On 05/15/2018 12:07 PM, Jan Kiszka wrote: > >> From: Jan Kiszka > >> > >> Another step towards a managed version of > >> of_pci_get_host_bridge_resources(): Feed

[PATCH v2 03/12] coresight: tmc-etr: Do not clean trace buffer

2018-05-29 Thread Suzuki K Poulose
We zero out the entire trace buffer used for ETR before it is enabled, for helping with debugging. With the addition of scatter-gather mode, the buffer could be bigger and non-contiguous. Get rid of this step; if someone wants to debug, they can always add it as and when needed. Cc: Mathieu Poiri

Re: [PATCH 07/15] arm: dts: exynos: Add missing cooling device properties for CPUs

2018-05-29 Thread Krzysztof Kozlowski
On Fri, May 25, 2018 at 12:31 PM, Viresh Kumar wrote: > The cooling device properties, like "#cooling-cells" and > "dynamic-power-coefficient", should either be present for all the CPUs > of a cluster or none. If these are present only for a subset of CPUs of > a cluster then things will start fal

[PATCH v2 05/12] coresight: Add helper for inserting synchronization packets

2018-05-29 Thread Suzuki K Poulose
Right now we open code filling the trace buffer with synchronization packets when the circular buffer wraps around in different drivers. Move this to a common place. While at it, clean up the barrier_pkt array to strip off the trailing '\0'. Cc: Mathieu Poirier Cc: Mike Leach Signed-off-by: Suzu

[PATCH v2 01/12] coresight: ETM: Add support for Arm Cortex-A73 and Cortex-A35

2018-05-29 Thread Suzuki K Poulose
Add ETM PIDs of the Arm cortex-A CPUs to the white list of ETMs. While at it add a helper macro to make it easier to add the new entries. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- Changes since last version: - Use ETM's ID register to dump the version, rather than hard coding i

[PATCH v2 06/12] dts: bindings: Restrict coresight tmc-etr scatter-gather mode

2018-05-29 Thread Suzuki K Poulose
We are about to add the support for ETR builtin scatter-gather mode for dealing with large amount of trace buffers. However, on some of the platforms, using the ETR SG mode can lock up the system due to the way the ETR is connected to the memory subsystem. In SG mode, the ETR performs READ from th

[PATCH v2 07/12] dts: juno: Add scatter-gather support for all revisions

2018-05-29 Thread Suzuki K Poulose
Advertise that the scatter-gather is properly integrated on all revisions of Juno board. Cc: Sudeep Holla Cc: Liviu Dudau Cc: Lorenzo Pieralisi Acked-by: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- arch/arm64/boot/dts/arm/juno-base.dtsi | 1 + 1 file changed, 1 insertion(+) diff --g

[PATCH v2 09/12] coresight: Add support for TMC ETR SG unit

2018-05-29 Thread Suzuki K Poulose
This patch adds support for setting up an SG table used by the TMC ETR inbuilt SG unit. The TMC ETR uses 4K page sized tables to hold pointers to the 4K data pages with the last entry in a table pointing to the next table with the entries, by kind of chaining. The 2 LSBs determine the type of the t

[PATCH v2 02/12] coresight: tmc: Hide trace buffer handling for file read

2018-05-29 Thread Suzuki K Poulose
At the moment we adjust the buffer pointers for reading the trace data via misc device in the common code for ETF/ETB and ETR. Since we are going to change how we manage the buffer for ETR, let us move the buffer manipulation to the respective driver files, hiding it from the common code. We do so

[PATCH v2 10/12] coresight: tmc-etr: Add transparent buffer management

2018-05-29 Thread Suzuki K Poulose
The TMC-ETR can use the target trace buffer in two different modes. Normal physically contiguous mode and a discontiguous list pages in Scatter-Gather mode. Also we have dedicated Coresight component, CATU (Coresight Address Translation Unit) to provide improved scatter-gather mode in Coresight SoC

[PATCH v2 11/12] coresight: tmc-etr buf: Add TMC scatter gather mode backend

2018-05-29 Thread Suzuki K Poulose
Add the support for Scatter-Gather mode to the etr-buf layer. Since we now have two different modes, we choose the backend based on a set of conditions, documented in the code. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- Change since last version: - New in this version, splitted fro

[PATCH v2 04/12] coresight: tmc-etr: Disallow perf mode

2018-05-29 Thread Suzuki K Poulose
We don't support ETR in perf mode yet. So, don't even try to enable the hardware, even by mistake. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-tmc-etr.c | 28 ++--- 1 file changed, 2 insertions(+), 26 deletions(-) diff --git

[PATCH v2 08/12] coresight: Add generic TMC sg table framework

2018-05-29 Thread Suzuki K Poulose
This patch introduces a generic sg table data structure and associated operations. An SG table can be used to map a set of Data pages where the trace data could be stored by the TMC ETR. The information about the data pages could be stored in different formats, depending on the type of the underlyi

[PATCH v2 12/12] coresight: tmc: Add configuration support for trace buffer size

2018-05-29 Thread Suzuki K Poulose
Now that we can dynamically switch between contiguous memory and SG table depending on the trace buffer size, provide the support for selecting an appropriate buffer size. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- .../ABI/testing/sysfs-bus-coresight-devices-tmc| 8 ++ ...

[PATCH 05/19] serdev: Introduce modalias field

2018-05-29 Thread Ricardo Ribalda Delgado
Name of the driver to use with this device, or an alias for that name, or an alias for the part. Required for hardware that is neither an of_node nor part of the ACPI table. Cc: Rob Herring Cc: Johan Hovold Signed-off-by: Ricardo Ribalda Delgado --- include/linux/serdev.h | 1 + 1 file changed

[PATCH 07/19] serdev: Allows dynamic creation of devices via sysfs

2018-05-29 Thread Ricardo Ribalda Delgado
Allow creating and deleting devices via sysfs. Devices created will be matched to serdev drivers via modalias (the string provided by the user) and deleted via their name. Eg: # Create device root@qt5022:~# echo ttydev > /sys/bus/serial/devices/serial0/new_device # Delete device root@qt5022:~#

RE: [GIT PULL 16/20] lightnvm: error handling when whole line is bad

2018-05-29 Thread Konopko, Igor J
> From: Javier Gonzalez [mailto:jav...@cnexlabs.com] > This case cannot occur on the only user of the function > (pblk_recov_l2p()). On the previous check (pblk_line_was_written()), we > verify the state of the line and the position of the first good chunk. In > the case of a bad line (less chunks

[PATCH 06/19] serdev: Support bus matching with modalias field

2018-05-29 Thread Ricardo Ribalda Delgado
Match devices to drivers by their modalias when the ACPI and the OF match fails. Cc: Rob Herring Cc: Johan Hovold Cc: Greg Kroah-Hartman Cc: Jiri Slaby Signed-off-by: Ricardo Ribalda Delgado --- drivers/tty/serdev/core.c | 23 ++- 1 file changed, 22 insertions(+), 1 delet

[PATCH 01/19] serdev: Add id_table to serdev_device_driver

2018-05-29 Thread Ricardo Ribalda Delgado
Currently, serdev device driver can only be used with devices that are nodes of a device tree, or are part of the ACPI table. Id_table will be used for devices that are created at runtime or that are not part of the device tree nor the ACPI table. Cc: Rob Herring Cc: Johan Hovold Cc: Greg Kroah

[PATCH 08/19] serdev: Provide modalias attribute for modalias devices

2018-05-29 Thread Ricardo Ribalda Delgado
Create modalias sysfs attribute for modalias devices. This is required by modprobe/udev to autoload the serdev driver. Eg: root@qt5022:~# cat /sys/bus/serial/devices/serial1-0/modalias serdev:ttydev Cc: Rob Herring Cc: Johan Hovold Cc: Greg Kroah-Hartman Cc: Jiri Slaby Signed-off-by: Ricardo

[PATCH 13/19] Bluetooth: hci_nokia: MODULE_DEVICE_TABLE(serdev)

2018-05-29 Thread Ricardo Ribalda Delgado
Export serdev table to the module header, allowing module autoload via udev/modprobe. Cc: Marcel Holtmann Cc: Johan Hedberg Cc: Rob Herring Cc: Johan Hovold Cc: linux-blueto...@vger.kernel.org Signed-off-by: Ricardo Ribalda Delgado --- drivers/bluetooth/hci_nokia.c | 2 ++ 1 file changed, 2

[PATCH 03/19] Bluetooth: hci_ll: Add serdev_id_table

2018-05-29 Thread Ricardo Ribalda Delgado
Describe which hardware is supported by the current driver. Cc: Marcel Holtmann Cc: Johan Hedberg Cc: Rob Herring Cc: Johan Hovold Cc: linux-blueto...@vger.kernel.org Signed-off-by: Ricardo Ribalda Delgado --- drivers/bluetooth/hci_ll.c | 17 + 1 file changed, 17 insertions(+

[PATCH 14/19] mfd: rave-sp: MODULE_DEVICE_TABLE(serdev)

2018-05-29 Thread Ricardo Ribalda Delgado
Export serdev table to the module header, allowing module autoload via udev/modprobe. Cc: Lee Jones Cc: Rob Herring Cc: Johan Hovold Signed-off-by: Ricardo Ribalda Delgado --- drivers/mfd/rave-sp.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/mfd/rave-sp.c b/drivers/mfd/

[PATCH 12/19] Bluetooth: hci_ll: MODULE_DEVICE_TABLE(serdev)

2018-05-29 Thread Ricardo Ribalda Delgado
Export serdev table to the module header, allowing module autoload via udev/modprobe. Cc: Marcel Holtmann Cc: Johan Hedberg Cc: Rob Herring Cc: Johan Hovold Cc: linux-blueto...@vger.kernel.org Signed-off-by: Ricardo Ribalda Delgado --- drivers/bluetooth/hci_ll.c | 2 ++ 1 file changed, 2 ins

Re: [REVIEW][PATCH 0/6] Wrapping up the vfs support for unprivileged mounts

2018-05-29 Thread Eric W. Biederman
Dave Chinner writes: > On Thu, May 24, 2018 at 06:23:30PM -0500, Eric W. Biederman wrote: >> "Theodore Y. Ts'o" writes: >> >> > On Wed, May 23, 2018 at 06:22:56PM -0500, Eric W. Biederman wrote: >> >> >> >> Very slowly the work has been progressing to ensure the vfs has the >> >> necessary sup

[PATCH 10/19] file2alias: Support for serdev devices

2018-05-29 Thread Ricardo Ribalda Delgado
This patch allows file2alias to generate the proper module headers to support serdev modalias drivers. Eg: root@qt5022:~# modinfo serdev:ttydev | grep alias alias: serdev:ttydev_serdev alias: serdev:ttydev root@qt5022:~# cat /lib/modules/4.16.0-qtec-standard/modules.ali

[PATCH 16/19] serdev: ttyport: Move serport structure to its own header

2018-05-29 Thread Ricardo Ribalda Delgado
This way we can reuse this structure in other modules. Cc: Rob Herring Cc: Johan Hovold Cc: Greg Kroah-Hartman Cc: Jiri Slaby Signed-off-by: Ricardo Ribalda Delgado --- drivers/tty/serdev/serdev-ttyport.c | 9 + drivers/tty/serdev/serport.h| 16 2 files chan

[PATCH 17/19] serdev: Mark controllers compatible with ttyport

2018-05-29 Thread Ricardo Ribalda Delgado
This allows us to treat differently this controllers, by creating a tty compatibility layer. Cc: Rob Herring Cc: Johan Hovold Cc: Greg Kroah-Hartman Cc: Jiri Slaby Signed-off-by: Ricardo Ribalda Delgado --- drivers/tty/serdev/serdev-ttyport.c | 1 + include/linux/serdev.h | 1 +

[PATCH 18/19] serdev: ttydev: Serdev driver that creates an standard TTY port

2018-05-29 Thread Ricardo Ribalda Delgado
Standard TTY port that can be loaded/unloaded via serdev sysfs. This serdev driver can only be used by serdev controllers that are compatible with ttyport. Cc: Rob Herring Cc: Johan Hovold Cc: Greg Kroah-Hartman Cc: Jiri Slaby Signed-off-by: Ricardo Ribalda Delgado --- drivers/tty/serdev/Kco

[PATCH 19/19] serdev: Instantiate a ttydev serdev if acpi and of fails

2018-05-29 Thread Ricardo Ribalda Delgado
If a serdev ttyport controller does not have an acpi nor an of child, create a ttydev as a child of that controller. Doing this allows the removal, addition and replacement of ttydev devices at runtime. Cc: Rob Herring Cc: Johan Hovold Cc: Greg Kroah-Hartman Cc: Jiri Slaby Signed-off-by: Rica

[PATCH 09/19] serdev: Provide modalias uevent for modalias devices

2018-05-29 Thread Ricardo Ribalda Delgado
Create the sysfs uevent for modalias devices. This is required by newer versions of udev for autoload modules. Cc: Rob Herring Cc: Johan Hovold Cc: Greg Kroah-Hartman Cc: Jiri Slaby Signed-off-by: Ricardo Ribalda Delgado --- drivers/tty/serdev/core.c | 7 ++- 1 file changed, 6 insertions

[PATCH 11/19] Bluetooth: hci_bcm: MODULE_DEVICE_TABLE(serdev)

2018-05-29 Thread Ricardo Ribalda Delgado
Export serdev table to the module header, allowing module autoload via udev/modprobe. Cc: Marcel Holtmann Cc: Johan Hedberg Cc: Rob Herring Cc: Johan Hovold Cc: linux-blueto...@vger.kernel.org Signed-off-by: Ricardo Ribalda Delgado --- drivers/bluetooth/hci_bcm.c | 2 ++ 1 file changed, 2 in

[PATCH 02/19] Bluetooth: hci_bcm: Add serdev_id_table

2018-05-29 Thread Ricardo Ribalda Delgado
Describe which hardware is supported by the current driver. Cc: Marcel Holtmann Cc: Johan Hedberg Cc: Rob Herring Cc: Johan Hovold Cc: linux-blueto...@vger.kernel.org Signed-off-by: Ricardo Ribalda Delgado --- drivers/bluetooth/hci_bcm.c | 6 ++ 1 file changed, 6 insertions(+) diff --gi

[PATCH 00/19] Dynamically load/remove serdev devices via sysfs*

2018-05-29 Thread Ricardo Ribalda Delgado
There are some situations where it is interesting to load/remove serdev devices dynamically, like during board bring-up or when we are developing a new driver or for devices that are neither described via ACPI or device tree. This implementation allows the creation of serdev devices via sysfs, in

Re: [PATCH v2] kbuild: add endianness flag to CHEKCFLAGS

2018-05-29 Thread Masahiro Yamada
2018-05-29 3:27 GMT+09:00 Luc Van Oostenryck : > The kernel depends on macros like __BYTE_ORDER__, > __BIG_ENDIAN__ or __LITTLE_ENDIAN__. > > OTOH, sparse doesn't know about the endianness of the kernel and > by default uses the same as the machine on which sparse was built. > > Ensure that sparse

Re: [PATCH] kbuild: $(CHECK) doesnt need NOSTDINC_FLAGS twice

2018-05-29 Thread Masahiro Yamada
2018-05-28 22:47 GMT+09:00 Luc Van Oostenryck : > Currently, $(CHECK) receives NOSTDINC_FLAGS twice: > * first directly in the main Makefile via CHECKFLAGS, > * then indirectly in scripts/Makefile.build via c_flags. > > Since once is enough, leave the occurence via c_flags and > remove the one via

Re: [PATCH] scripts: Fixed printf format mismatch

2018-05-29 Thread Masahiro Yamada
2018-05-24 12:16 GMT+09:00 nixiaoming : > scripts/kallsyms.c: function write_src: > "printf", the #1 format specifier "d" need arg type "int", > but the according arg "table_cnt" has type "unsigned int" > > scripts/recordmcount.c: function do_file: > "fprintf", the #1 format specifier "d" need arg

Re: [PATCH] fuse: Ensure posix acls are translated outside of init_user_ns

2018-05-29 Thread Miklos Szeredi
On Tue, May 29, 2018 at 2:42 PM, Eric W. Biederman wrote: > ebied...@xmission.com (Eric W. Biederman) writes: > >> ebied...@xmission.com (Eric W. Biederman) writes: >> >>> Ensure the translation happens by failing to read or write >>> posix acls when the filesystem has not indicated it supports >>

Re: [PATCH] fuse: Ensure posix acls are translated outside of init_user_ns

2018-05-29 Thread Eric W. Biederman
ebied...@xmission.com (Eric W. Biederman) writes: > ebied...@xmission.com (Eric W. Biederman) writes: > >> Ensure the translation happens by failing to read or write >> posix acls when the filesystem has not indicated it supports >> posix acls. >> >> This ensures that modern cached posix acl suppo

Re: [PATCH v1 04/20] signal: add copy_pending() helper

2018-05-29 Thread Christian Brauner
On Tue, May 29, 2018 at 07:24:26AM -0500, Eric W. Biederman wrote: > Christian Brauner writes: > > > Instead of using a goto for this let's add a simple helper copy_pending() > > which can be called in both places. > > Ick no. As far as I can see this just confuses the logic of the > collect_si

[PATCH] x86, random: Fix get_random_bytes() warning in x86 start_kernel

2018-05-29 Thread Prarit Bhargava
After 43838a23a05f ("random: fix crng_ready() test") early boot calls to get_random_bytes() will warn on each cpu on x86 because the crng is not initialized. For example, random: get_random_bytes called from start_kernel+0x8e/0x587 with crng_init=0 x86 only uses get_random_bytes() for better ran

Re: [PATCH v1 05/20] signal: flatten do_send_sig_info()

2018-05-29 Thread Christian Brauner
On Tue, May 29, 2018 at 07:28:27AM -0500, Eric W. Biederman wrote: > Christian Brauner writes: > > > Let's return early when lock_task_sighand() fails and move send_signal() > > and unlock_task_sighand() out of the if block. > > Introducing multiple exits into a function. Ick. > You do know tha

[PULL 1/6] vfio: ccw: fix error return in vfio_ccw_sch_event

2018-05-29 Thread Cornelia Huck
From: Dong Jia Shi If the device has not been registered, or there is work pending, we should reschedule a sch_event call again. Signed-off-by: Dong Jia Shi Message-Id: <20180502072559.50691-1-bjsdj...@linux.vnet.ibm.com> Reviewed-by: Cornelia Huck Signed-off-by: Cornelia Huck --- drivers/s3

Re: [PATCH v2] doc: document scope NOFS, NOIO APIs

2018-05-29 Thread Michal Hocko
On Tue 29-05-18 05:51:58, Jonathan Corbet wrote: > On Tue, 29 May 2018 10:26:44 +0200 > Michal Hocko wrote: > > > Although the api is documented in the source code Ted has pointed out > > that there is no mention in the core-api Documentation and there are > > people looking there to find answers

[PATCH 2/2] powerpc: Add support for function error injection

2018-05-29 Thread Naveen N. Rao
Signed-off-by: Naveen N. Rao --- arch/powerpc/Kconfig | 1 + arch/powerpc/include/asm/error-injection.h | 9 + arch/powerpc/include/asm/ptrace.h | 5 + 3 files changed, 15 insertions(+) create mode 100644 arch/powerpc/include/asm/error-injection.h diff

[PULL 2/6] vfio: ccw: push down unsupported IDA check

2018-05-29 Thread Cornelia Huck
From: Halil Pasic There is at least one relevant guest OS that doesn't set the IDA flags in the ORB as we would like them, but never uses any IDA. So instead of saying -EOPNOTSUPP when observing an ORB, such that a channel program specified by it could be a not supported one, let us say -EOPNOTSU

[PULL 5/6] vfio: ccw: set ccw->cda to NULL defensively

2018-05-29 Thread Cornelia Huck
From: Dong Jia Shi Let's avoid free on ccw->cda that points to a guest address or an already freed memory area by setting it to NULL if memory allocation didn't happen or failed. Signed-off-by: Dong Jia Shi Message-Id: <20180523025645.8978-4-bjsdj...@linux.ibm.com> Signed-off-by: Cornelia Huck

[PULL 3/6] vfio: ccw: shorten kernel doc description for pfn_array_pin()

2018-05-29 Thread Cornelia Huck
From: Dong Jia Shi The kernel doc description for usage of the struct pfn_array in pfn_array_pin() is unnecessary long. Let's shorten it by describing the contents of the struct pfn_array fields at the struct's definition instead. Suggested-by: Cornelia Huck Signed-off-by: Dong Jia Shi Message

[PULL 4/6] vfio: ccw: refactor and improve pfn_array_alloc_pin()

2018-05-29 Thread Cornelia Huck
From: Dong Jia Shi This refactors pfn_array_alloc_pin() and also improves it by adding defensive code in error handling so that calling pfn_array_unpin_free() after error return won't lead to problem. This mainly does: 1. Merge pfn_array_pin() into pfn_array_alloc_pin(), since there is no othe

[PULL 6/6] vfio: ccw: add tracepoints for interesting error paths

2018-05-29 Thread Cornelia Huck
From: Halil Pasic Add some tracepoints so we can inspect what is not working as is should. Signed-off-by: Halil Pasic Signed-off-by: Dong Jia Shi Message-Id: <20180523025645.8978-5-bjsdj...@linux.ibm.com> Signed-off-by: Cornelia Huck --- drivers/s390/cio/Makefile | 1 + drivers/s390

[PULL 0/6] vfio-ccw updates for 4.18

2018-05-29 Thread Cornelia Huck
The following changes since commit 3376d98021e915196f4894d835325a884e635a04: s390/archrandom: Rework arch random implementation. (2018-05-25 08:12:58 +0200) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/kvms390/vfio-ccw.git tags/vfio-ccw-20180529

Re: [PATCH RFC tools/memory-model] Add litmus-test naming scheme

2018-05-29 Thread Andrea Parri
[...] > > Right, thanks. Ah, maybe we should strive to meet the 80-chars bound > > by splitting the command with "\"? > > We could, but combined with your later request for indentation, we end > up with something like this: > > $ norm7 -bell linux-kernel.bell \ > Rfi Once Po

Re: [PATCH] EVM: Fix null dereference on xattr when xattr fails to allocate

2018-05-29 Thread Mimi Zohar
Hi Dan, On Tue, 2018-05-29 at 12:05 +0300, Dan Carpenter wrote: > Not really related to this patch except I was looking at the function: > > security/integrity/evm/evm_secfs.c >191 ab = audit_log_start(NULL, GFP_KERNEL, > AUDIT_INTEGRITY_EVM_XATTR); >192 if (IS_ERR(ab))

Re: [PATCH 5/5] remoteproc: Introduce prepare and unprepare for subdevices

2018-05-29 Thread Arnaud Pouliquen
On 05/29/2018 01:51 PM, Alex Elder wrote: > On 05/29/2018 04:16 AM, Arnaud Pouliquen wrote: > . . . > >>> +unroll_preparation: >>> + list_for_each_entry_continue_reverse(subdev, &rproc->subdevs, node) { >>> + if (subdev->unprepare) >>> + subdev->unprepare(subdev);

Re: [PATCH] EVM: Fix null dereference on xattr when xattr fails to allocate

2018-05-29 Thread Mimi Zohar
Hi Colin, On Sun, 2018-05-27 at 23:55 +0100, Colin King wrote: > From: Colin Ian King > > In the case where the allocation of xattr fails and xattr is NULL, the > error exit return path via label 'out' will dereference xattr when > kfree'ing xattr-name. Fix this by only kfree'ing xattr->name an

Re: [PATCH 00/15] fsi: Overall improvements and new SBE fifo driver

2018-05-29 Thread Joel Stanley
On 29 May 2018 at 11:00, Benjamin Herrenschmidt wrote: > This series brings in a number of improvements to our FSI stack > (one of the service interfaces for communicating between a BMC chip and > our POWER processors). > > The GPIO based "Soft FSI" performance is significantly improved, and > it'

[PATCH v3 2/2] PCI: Check phys_addr for pci_remap_iospace

2018-05-29 Thread Yisheng Xie
If phys_addr is not page aligned, ioremap_page_range() will align down it when get pfn by phys_addr >> PAGE_SHIFT. An example in arm64 system with 64KB page size: phys_addr: 0xefff8000 res->start: 0x0 res->end: 0x0 PCI_IOBASE: 0x7fdffee0 This will remap virtual address 0x7f

<    2   3   4   5   6   7   8   9   10   >