Re: null dereference in binfmt misc

2017-10-10 Thread Santosh Sivaraj
* Tycho Andersen wrote (on 2017-10-09 21:19:40 +): > Hi, > > It looks like eb23aa031 ("exec: binfmt_misc: remove the confusing > e->interp_file != NULL checks") uncovered a bug for me (see the trace below, > which I'm afraid isn't very helpful). > I too can reproduce this issue. From 4.14-r

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

2017-10-10 Thread Mark Brown
Hi all, After merging the drm-misc-fixes tree, today's linux-next build (x86_allmodconfig) failed like this: CC [M] drivers/gpu/drm/i915/i915_gem_evict.o drivers/gpu/drm/i915/i915_gem_evict.c: In function ‘i915_gem_evict_for_node’: drivers/gpu/drm/i915/i915_gem_evict.c:318:31: error: implicit

Re: [PATCH] bitfield: Use __ffs64(x) to fix missing __ffsdi2()

2017-10-10 Thread Geert Uytterhoeven
Hi Jakub, On Tue, Oct 10, 2017 at 12:53 AM, Jakub Kicinski wrote: > On Mon, 9 Oct 2017 10:40:49 +0200, Geert Uytterhoeven wrote: >> On most architectures[*], gcc turns __builtin_ffsll() into a call to >> __ffsdi2(), which is not provided by any architecture, leading to >> failures like: >> >>

[PATCH] UBSAN: Add __ubsan_handle_type_mismatch_v1 handler

2017-10-10 Thread Prasad Sodagudi
In LLVM __ubsan_handle_type_mismatch handler is renamed to __ubsan_handle_type_mismatch_v1. Add support for __ubsan_handle_type_mismatch_v1 handler to avoid compilation issues with latest llvm tool chain. Also keeping __ubsan_handle_type_mismatch handler for backward compatibility. Signed-off-by:

[RESEND PATCH v3 7/9] irq_work: Don't reinvent the wheel but use existing llist API

2017-10-10 Thread Byungchul Park
Although llist provides proper APIs, they are not used. Make them used. Signed-off-by: Byungchul Park --- kernel/irq_work.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/kernel/irq_work.c b/kernel/irq_work.c index bcf107c..e2ebe8c 100644 --- a/kernel/irq_work.c +++ b/k

Re: [PATCH] lib/vsprintf: add default case to 'i' specifier

2017-10-10 Thread Joe Perches
On Mon, 2017-10-09 at 13:59 +1100, Tobin C. Harding wrote: > %pi leaks kernel addresses if incorrectly specified. Are there any uses that are incorrectly specified? grep doesn't show any. > Currently the printk specifier %pi (%pI) contains a switch statement > without a default clause. The %pi sp

Re: [PATCH 4.9 000/104] 4.9.54-stable review

2017-10-10 Thread Greg Kroah-Hartman
On Mon, Oct 09, 2017 at 03:37:43PM -0500, Tom Gall wrote: > On Sun, Oct 8, 2017 at 2:23 AM, Greg Kroah-Hartman > wrote: > >> kernel: 4.9.54-rc1 > >> git repo: > >> https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git > >> git branch: linux-4.9.y > >> git commit: 1852eae92c46

Re: [PATCH v4] HID: hid-multitouch: support fine-grain orientation reporting

2017-10-10 Thread Henrik Rydberg
Hi Wei-Ning, > The current hid-multitouch driver only allow the report of two > orientations, vertical and horizontal. We use the Azimuth orientation > usage 0x3F under the Digitizer usage page to report orientation if the > device supports it. > > Changelog: > v1 -> v2: >- Fix commit messa

Re: [PATCH v2 03/13] mmc: dt-bindings: make compatible explicit

2017-10-10 Thread Ulf Hansson
On 10 October 2017 at 03:37, Chaotian Jing wrote: > On Mon, 2017-10-09 at 16:54 +0200, Matthias Brugger wrote: >> >> On 10/09/2017 01:35 PM, Chaotian Jing wrote: >> > the driver has updated to have an explicit compatible, so update >> > binding file according to the driver change. >> > >> > Signed

Re: [PATCH 1/2] PCI: dwc: dra7xx: Create functional dependency between PCIe and PHY

2017-10-10 Thread Roger Quadros
 Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki On 09/10/17 12:03, Kishon Vijay Abraham I wrote: > PCI core access configuration space registers in resume_noirq callbacks. > In the case of dra7xx, PIPE3 PHY connected

[PATCH v3 26/26] kfifo: DECLARE_KIFO_PTR(fifo, u64) does not work on arm 32 bit

2017-10-10 Thread Sean Young
If you try to store u64 in a kfifo (or a struct with u64 members), then the buf member of __STRUCT_KFIFO_PTR will cause 4 bytes padding due to alignment (note that struct __kfifo is 20 bytes on 32 bit). That in turn causes the __is_kfifo_ptr() to fail, which is caught by kfifo_alloc(), which now r

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

2017-10-10 Thread Mark Brown
Hi Santosh, After merging the keystone tree, today's linux-next build (multi_v7_defconfig) failed like this: DTC arch/arm/boot/dts/keystone-k2g-evm.dtb Error: /home/broonie/tmpfs/next/arch/arm/boot/dts/keystone-k2g-evm.dts:150.1-15 syntax error FATAL ERROR: Unable to parse input tree scrip

Re: [PATCH v3] irq_work: improve the flag definitions

2017-10-10 Thread Bartosz Golaszewski
2017-09-18 11:23 GMT+02:00 Bartosz Golaszewski : > IRQ_WORK_FLAGS is defined simply to 3UL. This is confusing as it > says nothing about its purpose. Define IRQ_WORK_FLAGS as a bitwise > OR of IRQ_WORK_PENDING and IRQ_WORK_BUSY and change its name to > IRQ_WORK_CLAIMED. > > While we're at it: use t

Re: [PATCH] iommu/vt-d: Don't register bus-notifier under

2017-10-10 Thread Joerg Roedel
On Mon, Oct 09, 2017 at 06:58:13PM +0200, Jan Kiszka wrote: > > extern int dmar_table_init(void); > > extern int dmar_dev_scope_init(void); > > +extern void dmar_register_bus_notifier(void); > > extern int dmar_parse_dev_scope(void *start, void *end, int *cnt, > > str

Re: [PATCH] iommu/vt-d: Don't register bus-notifier under

2017-10-10 Thread Jan Kiszka
On 2017-10-10 09:21, Joerg Roedel wrote: > On Mon, Oct 09, 2017 at 06:58:13PM +0200, Jan Kiszka wrote: >>> extern int dmar_table_init(void); >>> extern int dmar_dev_scope_init(void); >>> +extern void dmar_register_bus_notifier(void); >>> extern int dmar_parse_dev_scope(void *start, void *end, in

Re: [PATCH v2] HID: usbhid: fix out-of-bounds bug

2017-10-10 Thread Jaejoong Kim
Hi, To. Jiri, Alan, Could you please review this patch? To. Andey, Could you please test with this patch for KASAN OOB error? Thanks, jaejoong 2017-09-28 19:16 GMT+09:00 Jaejoong Kim : > The hid descriptor identifies the length and type of subordinate > descriptors for a device. If the receiv

Re: [PATCH v3 01/12] mmc: mediatek: add support of mt2701/mt2712

2017-10-10 Thread Ulf Hansson
[...] > + > +static const struct of_device_id msdc_of_ids[] = { > + { .compatible = "mediatek,mt8135-mmc", .data = &mt8135_compat}, > + { .compatible = "mediatek,mt8173-mmc", .data = &mt8173_compat}, > + { .compatible = "mediatek,mt2701-mmc", .data = &mt2701_compat}, > + {

Re: [PATCH v16 3/5] virtio-balloon: VIRTIO_BALLOON_F_SG

2017-10-10 Thread Wei Wang
On 10/09/2017 11:20 PM, Michael S. Tsirkin wrote: On Sat, Sep 30, 2017 at 12:05:52PM +0800, Wei Wang wrote: +static inline void xb_set_page(struct virtio_balloon *vb, + struct page *page, + unsigned long *pfn_min, +

Re: [PATCH -v2 12/18] sched/fair: Rewrite PELT migration propagation

2017-10-10 Thread Peter Zijlstra
On Mon, Oct 09, 2017 at 05:29:04PM +0200, Vincent Guittot wrote: > On 9 October 2017 at 17:03, Vincent Guittot > wrote: > > On 1 September 2017 at 15:21, Peter Zijlstra wrote: > >> +/* > >> + * When on migration a sched_entity joins/leaves the PELT hierarchy, we > >> need to > >> + * propagate

[PATCH v2] xdp: Sample xdp program implementing ip forward

2017-10-10 Thread Christina Jacob
Implements port to port forwarding with route table and arp table lookup for ipv4 packets using bpf_redirect helper function and lpm_trie map. Signed-off-by: Christina Jacob --- samples/bpf/Makefile |4 + samples/bpf/xdp_router_ipv4_kern.c | 189 +++ samples/bpf/xdp_r

[PATCH v2] XDP Program for Ip forward

2017-10-10 Thread Christina Jacob
The patch below implements port to port forwarding through route table and arp table lookup for ipv4 packets using bpf_redirect helper function and lpm_trie map. This has an improved performance over the normal kernel stack ip forward. Implementation details. --- The program u

Re: [PATCH] udf: Fix 64-bit sign extension issues affecting blocks > 0x7FFFFFFF

2017-10-10 Thread Jan Kara
On Mon 09-10-17 10:04:52, Steve Magnani wrote: > Large (> 1 TiB) UDF filesystems appear subject to several problems when > mounted on 64-bit systems: > > * readdir() can fail on a directory containing File Identifiers residing > above 0x7FFF. This manifests as a 'ls' command failing with EIO

[PATCH] mm:swap: skip swapcache only if swapped page has no other reference

2017-10-10 Thread Minchan Kim
When swapped-in pages are shared by several processes, it can cause unnecessary memory wastage by skipping swap cache. Because, with swapin fault by read, they could share a page if the page were in swap cache. Thus, it avoids allocating same content new pages. This patch makes the swapcache skipp

[PATCH] arch_topology: Fix section miss match warning due to free_raw_capacity()

2017-10-10 Thread Prasad Sodagudi
Remove the __init annotation from free_raw_capacity() to avoid the following warning. The function init_cpu_capacity_callback() references the function __init free_raw_capacity(). WARNING: vmlinux.o(.text+0x425cc0): Section mismatch in reference from the function init_cpu_capacity_callback() to th

Re: [PATCH v3 01/12] mmc: mediatek: add support of mt2701/mt2712

2017-10-10 Thread Chaotian Jing
On Tue, 2017-10-10 at 09:26 +0200, Ulf Hansson wrote: > [...] > > > + > > +static const struct of_device_id msdc_of_ids[] = { > > + { .compatible = "mediatek,mt8135-mmc", .data = &mt8135_compat}, > > + { .compatible = "mediatek,mt8173-mmc", .data = &mt8173_compat}, > > + { .compa

Re: [PATCH 6/6] drm: Add four ioctls for managing drm mode object leases [v4]

2017-10-10 Thread Dave Airlie
> +*/ > + ret = idr_alloc(&leases, &drm_lease_idr_object , object_id, > object_id + 1, GFP_KERNEL); In current kernels, the idr_alloc warns if start < 0, so if object_id is a negative signed integer, which your igt tests actually make it. So we get an ugly debug spl

Re: [PATCH v4] HID: hid-multitouch: support fine-grain orientation reporting

2017-10-10 Thread Benjamin Tissoires
On Oct 10 2017 or thereabouts, Wei-Ning Huang wrote: > From: Wei-Ning Huang > > The current hid-multitouch driver only allow the report of two > orientations, vertical and horizontal. We use the Azimuth orientation > usage 0x3F under the Digitizer usage page to report orientation if the > device

Re: [PATCH 1/2] PCI: dwc: dra7xx: Create functional dependency between PCIe and PHY

2017-10-10 Thread Kishon Vijay Abraham I
Roger, On Tuesday 10 October 2017 12:49 PM, Roger Quadros wrote: > On 09/10/17 12:03, Kishon Vijay Abraham I wrote: >> PCI core access configuration space registers in resume_noirq callbacks. >> In the case of dra7xx, PIPE3 PHY connected to PCIe controller has to be >> enabled before accessing con

Re: [PATCH] media: vb2: unify calling of set_page_dirty_lock

2017-10-10 Thread Stanimir Varbanov
Marek, Any comments? On 08/29/2017 02:26 PM, Stanimir Varbanov wrote: > Currently videobuf2-dma-sg checks for dma direction for > every single page and videobuf2-dc lacks any dma direction > checks and calls set_page_dirty_lock unconditionally. > > Thus unify and align the invocations of set_pag

4.14.0-rc3 iwlwifi: Hardware became unavailable during restart

2017-10-10 Thread Seraphime Kirkovski
Hello, I've got this splat after a couple of suspend-resume cycles on my HP-laptop. I haven't had the time to bisect or test other rcs for now. Pasting some logs before the actual WARN_ON, as they may be relevant. Just after the splat the connection is successfully reestablished. [14293.758404] i

Re: [PATCH -v2 12/18] sched/fair: Rewrite PELT migration propagation

2017-10-10 Thread Vincent Guittot
On 10 October 2017 at 09:29, Peter Zijlstra wrote: > On Mon, Oct 09, 2017 at 05:29:04PM +0200, Vincent Guittot wrote: >> On 9 October 2017 at 17:03, Vincent Guittot >> wrote: >> > On 1 September 2017 at 15:21, Peter Zijlstra wrote: > >> >> +/* >> >> + * When on migration a sched_entity joins/le

Re: [PATCH v4 2/4] phy: rcar-gen3-usb2: cleanup the role_{store,show}()

2017-10-10 Thread Simon Horman
On Tue, Oct 10, 2017 at 02:58:28PM +0900, Yoshihiro Shimoda wrote: > This patch cleanups the role_{store,show}() and replaces the local > "bool" for host/device mode selection with the "enum phy_mode" in > the role_store(). > > Signed-off-by: Yoshihiro Shimoda > --- > drivers/phy/renesas/phy-rca

Re: [PATCH 03/14] VFS: Implement a filesystem superblock creation/configuration context [ver #6]

2017-10-10 Thread Miklos Szeredi
On Fri, Oct 6, 2017 at 5:49 PM, David Howells wrote: > Implement a filesystem context concept to be used during superblock > creation for mount and superblock reconfiguration for remount. > > The mounting procedure then becomes: > > (1) Allocate new fs_context context. > > (2) Configure the cont

[PATCH v2] media: venus: venc: fix bytesused v4l2_plane field

2017-10-10 Thread Stanimir Varbanov
This fixes wrongly filled bytesused field of v4l2_plane structure by include data_offset in the plane, Also fill data_offset and bytesused for capture type of buffers only. Signed-off-by: Stanimir Varbanov --- v2: Just delete pointless WARN_ON. drivers/media/platform/qcom/venus/venc.c | 7 +++--

RE: [PATCH v4 2/4] phy: rcar-gen3-usb2: cleanup the role_{store,show}()

2017-10-10 Thread Yoshihiro Shimoda
Hi Simon-san, Thank you for the comments! > From: Simon Horman, Sent: Tuesday, October 10, 2017 4:46 PM > > On Tue, Oct 10, 2017 at 02:58:28PM +0900, Yoshihiro Shimoda wrote: > > This patch cleanups the role_{store,show}() and replaces the local > > "bool" for host/device mode selection with the

Re: [PATCH 07/34] cpufreq: cris: remove calls to cpufreq_notify_transition()

2017-10-10 Thread Jesper Nilsson
On Fri, Aug 16, 2013 at 04:25:04AM +0200, Viresh Kumar wrote: > Most of the drivers do following in their ->target_index() routines: > > struct cpufreq_freqs freqs; > freqs.old = old freq... > freqs.new = new freq... > > cpufreq_notify_transition(policy, &freqs, CPUFREQ_PR

Re: [PATCH 1/2] PCI: dwc: dra7xx: Create functional dependency between PCIe and PHY

2017-10-10 Thread Roger Quadros
 Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki On 10/10/17 10:42, Kishon Vijay Abraham I wrote: > Roger, > > On Tuesday 10 October 2017 12:49 PM, Roger Quadros wrote: >> On 09/10/17 12:03, Kishon Vijay Abraham I wr

Re: [PATCH 06/14] VFS: Implement fsmount() to effect a pre-configured mount [ver #6]

2017-10-10 Thread Miklos Szeredi
On Fri, Oct 6, 2017 at 5:49 PM, David Howells wrote: > Provide a system call by which a filesystem opened with fsopen() and > configured by a series of writes can be mounted: > > int ret = fsmount(int fsfd, int dfd, const char *path, > unsigned int at_flags, unsig

Re: [PATCH] mm/page-writeback.c: fix bug caused by disable periodic writeback

2017-10-10 Thread Yafang Shao
2017-10-10 6:42 GMT+08:00 Andrew Morton : > On Sat, 7 Oct 2017 06:58:04 +0800 Yafang Shao wrote: > >> After disable periodic writeback by writing 0 to >> dirty_writeback_centisecs, the handler wb_workfn() will not be >> entered again until the dirty background limit reaches or >> sync syscall is

Re: [PATCH] media: vb2: unify calling of set_page_dirty_lock

2017-10-10 Thread Marek Szyprowski
Hi Stanimir, On 2017-10-10 09:42, Stanimir Varbanov wrote: Marek, Any comments? Oh, I thought that this one has been already merged. If not (yet), here is my ack. On 08/29/2017 02:26 PM, Stanimir Varbanov wrote: Currently videobuf2-dma-sg checks for dma direction for every single page and

Re: [PATCH 1/2 v2] typec: tcpm: Validate source and sink caps

2017-10-10 Thread Heikki Krogerus
Hi, On Mon, Oct 09, 2017 at 03:13:43PM -0700, Badhri Jagan Sridharan wrote: > The source and sink caps should follow the following rules. > This patch validates whether the src_caps/snk_caps adheres > to it. > > 6.4.1 Capabilities Message > A Capabilities message (Source Capabilities message or S

Re: [PATCH v3 01/12] mmc: mediatek: add support of mt2701/mt2712

2017-10-10 Thread Ulf Hansson
On 10 October 2017 at 09:35, Chaotian Jing wrote: > On Tue, 2017-10-10 at 09:26 +0200, Ulf Hansson wrote: >> [...] >> >> > + >> > +static const struct of_device_id msdc_of_ids[] = { >> > + { .compatible = "mediatek,mt8135-mmc", .data = &mt8135_compat}, >> > + { .compatible = "mediatek,

Re: [PATCH v4 0/5] media: atmel-isc: Rework the format list and clock provider

2017-10-10 Thread Sakari Ailus
On Tue, Oct 10, 2017 at 10:46:35AM +0800, Wenyou Yang wrote: > To improve the readability of code, rework the format list table, > split the format array into two. Meanwhile, fix the issue of the > clock provider operation and the pm runtime support. > > Changes in v4: > - Call pm_runtime_get_syn

Re: [PATCH] net: ftgmac100: Request clock and set speed

2017-10-10 Thread Benjamin Herrenschmidt
On Tue, 2017-10-10 at 15:19 +1030, Joel Stanley wrote: > According to the ASPEED datasheet, gigabit speeds require a clock of > 100MHz or higher. Other speeds require 25MHz or higher. Did you try "live" changing by either using ethtool or plugging into switches/hubs at different speed ? Also this

[PATCH net-next 0/5] Support set_ringparam and {set|get}_rxnfc ethtool commands

2017-10-10 Thread Lipeng
1, Patch [1/5,2/5] add support for ethtool ops set_ringparam (ethtool -G) and fix related bug. 2, Patch [3/5,4/5, 5/5] add support for ethtool ops set_rxnfc/get_rxnfc (-n/-N) and fix related bug. Lipeng (5): net: hns3: fixes the ring index in hns3_fini_ring net: hns3: add support for se

[PATCH net-next 1/5] net: hns3: fixes the ring index in hns3_fini_ring

2017-10-10 Thread Lipeng
This patch fixes the ring index in hns3_fini_ring. Signed-off-by: Lipeng --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c b/drivers/net/ethernet/hisilicon/hns3/hn

[PATCH net-next 5/5] net: hns3: fix the ring count for ETHTOOL_GRXRINGS

2017-10-10 Thread Lipeng
This patch fix the ring count for ETHTOOL_GRXRINGS. Ring count not TC size should be return for command "ethtool -n ethx". Signed-off-by: Lipeng --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_ethtool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/

[PATCH net-next 3/5] net: hns3: add support for set_rxnfc

2017-10-10 Thread Lipeng
This patch supports the ethtool's set_rxnfc(). Signed-off-by: Lipeng --- drivers/net/ethernet/hisilicon/hns3/hnae3.h| 2 + .../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c | 9 ++ .../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 1 + .../ethernet/hisilicon/hns3/hns3pf/hclge_main

[PATCH net-next 2/5] net: hns3: add support for set_ringparam

2017-10-10 Thread Lipeng
This patch supports the ethtool's set_ringparam(). Signed-off-by: Lipeng --- .../net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c | 4 +- .../net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.h | 4 ++ .../ethernet/hisilicon/hns3/hns3pf/hns3_ethtool.c | 75 ++ 3 files changed, 81

[PATCH net-next 4/5] net: hns3: add support for ETHTOOL_GRXFH

2017-10-10 Thread Lipeng
This patch add support for ethtool's ETHTOOL_GRXFH in hns3_get_rxnfc(). Signed-off-by: Lipeng --- drivers/net/ethernet/hisilicon/hns3/hnae3.h| 2 + .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c| 64 ++ .../ethernet/hisilicon/hns3/hns3pf/hns3_ethtool.c | 2 +

Re: [PATCH v6 05/14] platform/x86: dell-wmi-descriptor: split WMI descriptor into it's own driver

2017-10-10 Thread Pali Rohár
On Monday 09 October 2017 17:51:43 Mario Limonciello wrote: > +bool dell_wmi_get_interface_version(u32 *version) > +{ > + struct descriptor_priv *priv; > + > + priv = list_first_entry_or_null(&wmi_list, > + struct descriptor_priv, > +

Re: [v11 3/6] mm, oom: cgroup-aware OOM killer

2017-10-10 Thread Michal Hocko
On Mon 09-10-17 14:52:53, David Rientjes wrote: > On Thu, 5 Oct 2017, Roman Gushchin wrote: > > > Traditionally, the OOM killer is operating on a process level. > > Under oom conditions, it finds a process with the highest oom score > > and kills it. > > > > This behavior doesn't suit well the sy

Re: [v2] p54: don't unregister leds when they are not initialized

2017-10-10 Thread Kalle Valo
Andrey Konovalov wrote: > ieee80211_register_hw() in p54_register_common() may fail and leds won't > get initialized. Currently p54_unregister_common() doesn't check that and > always calls p54_unregister_leds(). The fix is to check priv->registered > flag before calling p54_unregister_leds(). >

[PATCH] i40e: mark PM functions as __maybe_unused

2017-10-10 Thread Arnd Bergmann
A cleanup of the PM code left an incorrect #ifdef in place, leading to a harmless build warning: drivers/net/ethernet/intel/i40e/i40e_main.c:12223:12: error: 'i40e_resume' defined but not used [-Werror=unused-function] drivers/net/ethernet/intel/i40e/i40e_main.c:12185:12: error: 'i40e_suspend' d

Re: [PATCH -mm] mm, swap: Use page-cluster as max window of VMA based swap readahead

2017-10-10 Thread Minchan Kim
On Tue, Oct 10, 2017 at 02:08:55PM +0800, Huang, Ying wrote: > From: Huang Ying > > When the VMA based swap readahead was introduced, a new knob > > /sys/kernel/mm/swap/vma_ra_max_order > > was added as the max window of VMA swap readahead. This is to make it > possible to use different max

Re: [PATCH v3 01/12] mmc: mediatek: add support of mt2701/mt2712

2017-10-10 Thread Chaotian Jing
On Tue, 2017-10-10 at 10:09 +0200, Ulf Hansson wrote: > On 10 October 2017 at 09:35, Chaotian Jing wrote: > > On Tue, 2017-10-10 at 09:26 +0200, Ulf Hansson wrote: > >> [...] > >> > >> > + > >> > +static const struct of_device_id msdc_of_ids[] = { > >> > + { .compatible = "mediatek,mt8135-mm

Re: [RFC PATCH] x86/mm: Flush more aggressively in lazy TLB mode

2017-10-10 Thread Markus Trippelsdorf
On 2017.10.09 at 09:50 -0700, Andy Lutomirski wrote: > Since commit 94b1b03b519b, x86's lazy TLB mode has been all the way > lazy: when running a kernel thread (including the idle thread), the > kernel keeps using the last user mm's page tables without attempting > to maintain user TLB coherence at

Re: [PATCH] thermal/intel_powerclamp: pr_err()/pr_info() strings should end with newlines

2017-10-10 Thread Daniel Lezcano
On 10/10/2017 06:37, Joe Perches wrote: > On Mon, 2017-10-09 at 14:33 +0200, Daniel Lezcano wrote: >> On 09/10/2017 13:51, Arvind Yadav wrote: >>> pr_err()/pr_info() messages should end with a new-line to avoid >>> other messages being concatenated. > [] >>> diff --git a/drivers/thermal/intel_power

Re: net/wireless/ray_cs: Convert timers to use

2017-10-10 Thread Kalle Valo
Kees Cook wrote: > In preparation for unconditionally passing the struct timer_list pointer to > all timer callbacks, switch to using the new timer_setup() and from_timer() > to pass the timer pointer explicitly. > > Cc: Kalle Valo > Cc: linux-wirel...@vger.kernel.org > Cc: net...@vger.kernel.o

[PATCH 1/1] mm: reducing page_owner structure size

2017-10-10 Thread Ayush Mittal
Maximum page order can be at max 10 which can be accomodated in short data type(2 bytes). last_migrate_reason is defined as enum type whose values can be accomodated in short data type (2 bytes). Total structure size is currently 16 bytes but after changing structure size it goes to 12 bytes. Sig

Re: ARM: s3c2410: Fix a typo in a comment line

2017-10-10 Thread SF Markus Elfring
> Thanks, applied, squashed and changed commit msg. Would it be more appropriate to use a commit subject like “ARM: s3c241x: Fix typos in two comments” (instead of “ARM: s3c2410: Fix typos in a comments”)? https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=6c7a7db2e4c25

Re: [PATCH] KVM: remove printing of token address

2017-10-10 Thread Paolo Bonzini
On 10/10/2017 01:51, Tobin C. Harding wrote: > On Mon, Oct 09, 2017 at 12:58:12PM +0200, Paolo Bonzini wrote: >> On 09/10/2017 12:04, Tobin C. Harding wrote: >>> On Mon, Oct 09, 2017 at 03:49:38AM -0400, Paolo Bonzini wrote: - Original Message - > From: "Tobin C. Harding"

Re: [PATCH 1/2] crypto: lrw - Fix an error handling path in 'create()'

2017-10-10 Thread walter harms
Am 10.10.2017 08:05, schrieb Christophe JAILLET: > Le 09/10/2017 à 23:22, walter harms a écrit : >> Am 08.10.2017 11:39, schrieb Christophe JAILLET: >>> All error handling paths 'goto err_drop_spawn' except this one. >>> In order to avoid some resources leak, we should do it as well here. >>> >>>

Re: [PATCH] kvm, mm: account kvm related kmem slabs to kmemcg

2017-10-10 Thread Paolo Bonzini
On 06/10/2017 03:07, Shakeel Butt wrote: > The kvm slabs can consume a significant amount of system memory > and indeed in our production environment we have observed that > a lot of machines are spending significant amount of memory that > can not be left as system memory overhead. Also the alloca

Re: [PATCH v3 01/12] mmc: mediatek: add support of mt2701/mt2712

2017-10-10 Thread Matthias Brugger
On 10/10/2017 10:22 AM, Chaotian Jing wrote: On Tue, 2017-10-10 at 10:09 +0200, Ulf Hansson wrote: On 10 October 2017 at 09:35, Chaotian Jing wrote: On Tue, 2017-10-10 at 09:26 +0200, Ulf Hansson wrote: [...] + +static const struct of_device_id msdc_of_ids[] = { + { .compatible = "m

Re: [PATCH v3 04/12] mmc: mediatek: make hs400_tune_response only for mt8173

2017-10-10 Thread Matthias Brugger
On 10/10/2017 05:01 AM, Chaotian Jing wrote: the origin design of hs400_tune_response is for mt8173 because of mt8173 has a special design. for doing that, we add a new member "compatible", by now it's only for mt8173. Signed-off-by: Chaotian Jing --- Looks good now: Reviewed-by: Matthias B

Re: [PATCH 0/3] KVM: x86: fix restart_apic_timer

2017-10-10 Thread Paolo Bonzini
On 06/10/2017 19:25, Radim Krčmář wrote: > Various bugs that incorrectly injected a timer interrupt. > > Going to work on kvm-unit-tests for this too. > > > Radim Krčmář (3): > KVM: x86: handle 0 write to TSC_DEADLINE MSR > KVM: x86: really disarm lapic timer when clearing TMICT > KVM: x86

Re: ARM: s3c2410: Fix a typo in a comment line

2017-10-10 Thread Krzysztof Kozlowski
On Tue, Oct 10, 2017 at 10:29 AM, SF Markus Elfring wrote: >> Thanks, applied, squashed and changed commit msg. > > Would it be more appropriate to use a commit subject like > “ARM: s3c241x: Fix typos in two comments” (instead of > “ARM: s3c2410: Fix typos in a comments”)? > https://git.kernel.org

Re: [PATCH v2 2/2] KVM: VMX: Don't expose unrestricted_guest is enabled if ept is disabled

2017-10-10 Thread Paolo Bonzini
On 09/10/2017 13:00, Wanpeng Li wrote: > From: Wanpeng Li > > SDM mentioned: > > "If either the “unrestricted guest” VM-execution control or the “mode-based > execute control for EPT” VM- execution control is 1, the “enable EPT” > VM-execution control must also be 1." > > However, we ca

Re: [PATCH v2 03/13] mmc: dt-bindings: make compatible explicit

2017-10-10 Thread Matthias Brugger
On 10/10/2017 09:19 AM, Ulf Hansson wrote: On 10 October 2017 at 03:37, Chaotian Jing wrote: On Mon, 2017-10-09 at 16:54 +0200, Matthias Brugger wrote: On 10/09/2017 01:35 PM, Chaotian Jing wrote: the driver has updated to have an explicit compatible, so update binding file according to th

Re: [PATCH RFC tip/core/rcu 12/15] lib/assoc_array: Remove smp_read_barrier_depends()

2017-10-10 Thread Peter Zijlstra
On Mon, Oct 09, 2017 at 05:22:46PM -0700, Paul E. McKenney wrote: > Now that smp_read_barrier_depends() is implied by READ_ONCE(), adding > READ_ONCE() to assoc_array_ptr_to_leaf() and __assoc_array_ptr_to_meta() > allows the several smp_read_barrier_depends() calls to be removed from > lib/assoc_a

Re: [PATCH] arch/x86: remove redundant null checks before kmem_cache_destroy

2017-10-10 Thread Paolo Bonzini
On 08/10/2017 05:15, Tim Hansen wrote: > Remove redundant null checks before calling kmem_cache_destroy. > > Found with make coccicheck M=arch/x86/kvm on linux-next tag > next-20170929. > > Signed-off-by: Tim Hansen > --- > arch/x86/kvm/mmu.c | 6 ++ > 1 file changed, 2 insertions(+), 4 de

Re: [PATCH RFC tip/core/rcu 14/15] netfilter: Remove now-redundant smp_read_barrier_depends()

2017-10-10 Thread Peter Zijlstra
On Mon, Oct 09, 2017 at 05:22:48PM -0700, Paul E. McKenney wrote: > READ_ONCE() now implies smp_read_barrier_depends(), which means that > the instances in arpt_do_table(), ipt_do_table(), and ip6t_do_table() > are now redundant. This commit removes them and adjusts the comments. Similar to the p

Re: [PATCH] mm/page-writeback.c: fix bug caused by disable periodic writeback

2017-10-10 Thread Jan Kara
On Mon 09-10-17 15:42:12, Andrew Morton wrote: > On Sat, 7 Oct 2017 06:58:04 +0800 Yafang Shao wrote: > > > After disable periodic writeback by writing 0 to > > dirty_writeback_centisecs, the handler wb_workfn() will not be > > entered again until the dirty background limit reaches or > > sync s

[PATCH] scripts/checkpatch.pl: fix false warning of externs checking.

2017-10-10 Thread Jiang Biao
When adding a function declaration in a .c file without an extern keywork decoration, checkpatch.pl will complain *externs should be avoided in .c files* false warning. This patch fix the bug. Signed-off-by: Jiang Biao --- scripts/checkpatch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(

Re: [PATCH 0/4] Add support for muxing individual pins

2017-10-10 Thread Charles Keepax
On Mon, Oct 09, 2017 at 11:10:34PM +0200, Linus Walleij wrote: > On Fri, Sep 29, 2017 at 12:14 PM, Charles Keepax > wrote: > > > This series add support for muxing individual pins within > > pin mux, rather than just whole groups. Mainly, I had two > > motivations here, one to avoid the need to a

[PATCH] ARM: dts: r8a779x: add '#reset-cells' in cpg-mssr

2017-10-10 Thread Arnd Bergmann
With the latest dtc, we get many warnings about the missing '#reset-cells' property in these controllers, e.g.: arch/arm/boot/dts/r8a7790-lager.dtb: Warning (resets_property): Missing property '#reset-cells' in node /clock-controller@e615 or bad phandle (referred from /can@e6e8:resets[0]

Re: ARM: s3c2410: Fix a typo in a comment line

2017-10-10 Thread SF Markus Elfring
>>> Thanks, applied, squashed and changed commit msg. >> >> Would it be more appropriate to use a commit subject like >> “ARM: s3c241x: Fix typos in two comments” (instead of >> “ARM: s3c2410: Fix typos in a comments”)? >> https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?

Re: [PATCH] mm/page-writeback.c: fix bug caused by disable periodic writeback

2017-10-10 Thread Jan Kara
On Tue 10-10-17 16:00:29, Yafang Shao wrote: > 2017-10-10 6:42 GMT+08:00 Andrew Morton : > > On Sat, 7 Oct 2017 06:58:04 +0800 Yafang Shao wrote: > > > >> After disable periodic writeback by writing 0 to > >> dirty_writeback_centisecs, the handler wb_workfn() will not be > >> entered again until

[PATCH v3 26/26] kfifo: DECLARE_KIFO_PTR(fifo, u64) does not work on arm 32 bit

2017-10-10 Thread Sean Young
If you try to store u64 in a kfifo (or a struct with u64 members), then the buf member of __STRUCT_KFIFO_PTR will cause 4 bytes padding due to alignment (note that struct __kfifo is 20 bytes on 32 bit). That in turn causes the __is_kfifo_ptr() to fail, which is caught by kfifo_alloc(), which now r

[PATCH] KVM: SVM: limit kvm_handle_page_fault to #PF handling

2017-10-10 Thread Paolo Bonzini
It has always annoyed me a bit how SVM_EXIT_NPF is handled by pf_interception. This is also the only reason behind the under-documented need_unprotect argument to kvm_handle_page_fault. Let NPF go straight to kvm_mmu_page_fault, just like VMX does in handle_ept_violation and handle_ept_misconfig.

Re: [PATCH -mm] mm, swap: Use page-cluster as max window of VMA based swap readahead

2017-10-10 Thread Huang, Ying
Minchan Kim writes: > On Tue, Oct 10, 2017 at 02:08:55PM +0800, Huang, Ying wrote: >> From: Huang Ying >> >> When the VMA based swap readahead was introduced, a new knob >> >> /sys/kernel/mm/swap/vma_ra_max_order >> >> was added as the max window of VMA swap readahead. This is to make it >

Re: [PATCH v3 01/12] mmc: mediatek: add support of mt2701/mt2712

2017-10-10 Thread Chaotian Jing
On Tue, 2017-10-10 at 10:32 +0200, Matthias Brugger wrote: > > On 10/10/2017 10:22 AM, Chaotian Jing wrote: > > On Tue, 2017-10-10 at 10:09 +0200, Ulf Hansson wrote: > >> On 10 October 2017 at 09:35, Chaotian Jing > >> wrote: > >>> On Tue, 2017-10-10 at 09:26 +0200, Ulf Hansson wrote: > [..

Re: [PATCH] scripts/checkpatch.pl: fix false warning of externs checking.

2017-10-10 Thread Joe Perches
On Tue, 2017-10-10 at 16:42 +0800, Jiang Biao wrote: > When adding a function declaration in a .c file without an extern > keywork decoration, checkpatch.pl will complain *externs should be > avoided in .c files* false warning. This patch fix the bug. nack. The point is that external function dec

[PATCH 1/2] spi: a3700: Return correct value on timeout detection

2017-10-10 Thread Maxime Chevallier
When waiting for transfer completion, a3700_spi_wait_completion returns a boolean indicating if a timeout occurred. The function was returning 'true' everytime, failing to detect any timeout. This patch makes it return 'false' when a timeout is reached. Signed-off-by: Maxime Chevallier --- dri

Re: [PATCH] media: vb2: unify calling of set_page_dirty_lock

2017-10-10 Thread Sakari Ailus
On Tue, Oct 10, 2017 at 10:01:36AM +0200, Marek Szyprowski wrote: > Hi Stanimir, > > On 2017-10-10 09:42, Stanimir Varbanov wrote: > > Marek, > > > > Any comments? > > Oh, I thought that this one has been already merged. If not (yet), > here is my ack. > > > On 08/29/2017 02:26 PM, Stanimir Var

[PATCH 2/2] spi: a3700: Change SPI mode before asserting chip-select

2017-10-10 Thread Maxime Chevallier
The spi device mode should be configured in the controller before the chip-select is asserted, so that a clock polarity configuration change is not interpreted as a clock tick by the device. This patch moves the mode setting to the 'prepare_message' function instead of the 'transfer_one' function.

[PATCH] media: add glossary.rst with a glossary of terms used at V4L2 spec

2017-10-10 Thread Mauro Carvalho Chehab
Add a glossary of terms for V4L2, as several concepts are complex enough to cause misunderstandings. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/uapi/v4l/glossary.rst | 150 ++ Documentation/media/uapi/v4l/v4l2.rst | 1 + 2 files changed, 151 in

Re: [PATCH] regulator: lp873x: Update the enable mask for LDOs and BUCKs

2017-10-10 Thread Mark Brown
On Tue, Oct 10, 2017 at 07:34:52AM +0530, Keerthy wrote: > On Monday 09 October 2017 09:20 PM, Mark Brown wrote: > > On Mon, Oct 09, 2017 at 06:35:14PM +0300, Tero Kristo wrote: > >> I wonder if we should tie this somehow to the system-power-controller > >> property though If the PMIC is not s

Re: [PATCH -mm] mm, swap: Use page-cluster as max window of VMA based swap readahead

2017-10-10 Thread Minchan Kim
On Tue, Oct 10, 2017 at 04:50:10PM +0800, Huang, Ying wrote: > Minchan Kim writes: > > > On Tue, Oct 10, 2017 at 02:08:55PM +0800, Huang, Ying wrote: > >> From: Huang Ying > >> > >> When the VMA based swap readahead was introduced, a new knob > >> > >> /sys/kernel/mm/swap/vma_ra_max_order >

Re: [PATCH 3/3] drm: Add CRTC_GET_SEQUENCE and CRTC_QUEUE_SEQUENCE ioctls [v2]

2017-10-10 Thread Daniel Vetter
On Mon, Oct 09, 2017 at 10:18:30AM -0700, Keith Packard wrote: > Daniel Vetter writes: > > > I just figured that -modesetting would be the simplest domenstration > > vehicle, since the vulkan patches don't look ready yet. I need fully > > reviewed&tested userspace before we can land any kernel st

Re: [PATCH 1/3] cgroup, writeback: replace SB_I_CGROUPWB with per-inode S_CGROUPWB

2017-10-10 Thread Jan Kara
On Mon 09-10-17 14:29:09, Tejun Heo wrote: > Currently, filesystem can indiate cgroup writeback support per > superblock; however, depending on the filesystem, especially if inodes > are used to carry metadata, it can be useful to indicate cgroup > writeback support per inode. > > This patch repla

[PATCH] arm64: dts: rockchip: fix typo in iommu nodes

2017-10-10 Thread Arnd Bergmann
The latest dtc warns about an extraneous cell in the interrupt property of two of the iommu device nodes: Warning (interrupts_property): interrupts size is (16), expected multiple of 12 in /iommu@ff373f00 Warning (interrupts_property): interrupts size is (16), expected multiple of 12 in /iommu@f

Re: [tho...@m3y3r.de: Re: [PATCH] um: Fix kcov crash before kernel is started.]

2017-10-10 Thread Dmitry Vyukov
On Mon, Oct 9, 2017 at 9:16 PM, Thomas Meyer wrote: >> > Hi, >> > >> > are you able to shed light on this topic? >> > Any help is greatly appreciated! >> > >> > With kind regards >> > thomas >> > >> > Date: Sun, 8 Oct 2017 13:18:24 +0200 >> > From: Thomas Meyer >> > To: Richard Weinberger >> > C

Re: [ANNOUNCE] fsperf: a simple fs/block performance testing framework

2017-10-10 Thread Mel Gorman
On Tue, Oct 10, 2017 at 08:09:20AM +1100, Dave Chinner wrote: > > I'd _like_ to expand fio for cases we come up with that aren't possible, as > > there's already a ton of measurements that are taken, especially around > > latencies. > > To be properly useful it needs to support more than just fio

[PATCH v2] bcache: explicitly destroy mutex while exiting

2017-10-10 Thread Liang Chen
mutex_destroy does nothing most of time, but it's better to call it to make the code future proof and it also has some meaning for like mutex debug. As Coly pointed out in a previous review, bcache_exit() may not be able to handle all the references properly if userspace registers cache and backin

Re: [PATCH] i2c: piix4: Disable completely the IMC during SMBUS_BLOCK_DATA

2017-10-10 Thread Jean Delvare
Hi Ricardo, On Thu, 5 Oct 2017 16:53:28 +0200, Ricardo Ribalda Delgado wrote: > On Thu, Oct 5, 2017 at 4:22 PM, Jean Delvare wrote: > > Unfortunately I no longer have any system with a compatible chipset so > > I can't test. > > If you have some specific test to run, I can test it on my hardwa

Re: [PATCH] powerpc/powernv: Add kernel cmdline parameter to disable imc

2017-10-10 Thread Michael Ellerman
Anju T Sudhakar writes: > Add a kernel command line parameter option to disable In-Memory Collection > (IMC) counters and add documentation. This helps in debug. I'd really rather we didn't. Do we *really* need this? We don't have command line parameters to disable any of the other ~20 PMUs, wh

Re: [PATCH v4 1/2] PCI: pci-host-generic: add support for Synopsys DesignWare RC in ECAM mode

2017-10-10 Thread Ard Biesheuvel
On 10 October 2017 at 01:13, Bjorn Helgaas wrote: > On Mon, Oct 09, 2017 at 05:46:07PM +0100, Will Deacon wrote: >> On Fri, Oct 06, 2017 at 06:21:59PM -0500, Bjorn Helgaas wrote: >> > On Fri, Oct 06, 2017 at 05:39:18PM +0100, Ard Biesheuvel wrote: >> > > diff --git a/drivers/pci/host/pci-host-gene

Re: [PATCH] kbuild: allow making undefined symbols fatal for external modules

2017-10-10 Thread Jonas Gorski
Hi Masahiro, On 9 October 2017 at 18:25, Masahiro Yamada wrote: > 2017-10-02 19:50 GMT+09:00 Jonas Gorski : >> By passing appropriate values in KBUILD_EXTRA_SYMBOLS it is possible to >> make modpost be able to resolve all symbols for external modules, even >> between to other external modules. >>

  1   2   3   4   5   6   7   8   9   10   >