Re: [PATCH] clk: rockchip: fix frac settings of GPLL clock for rk3328

2018-12-23 Thread Heiko Stuebner
Hi Elaine, Am Montag, 24. Dezember 2018, 08:48:05 CET schrieb zhangq...@rock-chips.com: > Hi: Heiko: > > This explanation and the change is OK. Thanks for Katsuhiro's correction. thanks for your quick confirmation. Can I make this an Acked-by: Elaine Zhang when applying the patch? Thanks Hei

Hello

2018-12-23 Thread Barrister
Hello Dear Friend I am Dr. Samson Mohamed; please I have a very important issue to discuss with you. Please I urge you to contact me via my E-mail address: samsonmoha...@aol.com. Thank You, Dr. Samson Mohamed.

Re: [PATCH net-next 3/3] vhost: access vq metadata through kernel virtual address

2018-12-23 Thread Jason Wang
On 2018/12/14 下午8:36, Michael S. Tsirkin wrote: On Fri, Dec 14, 2018 at 11:57:35AM +0800, Jason Wang wrote: On 2018/12/13 下午11:44, Michael S. Tsirkin wrote: On Thu, Dec 13, 2018 at 06:10:22PM +0800, Jason Wang wrote: It was noticed that the copy_user() friends that was used to access virtque

Re: Bug with report THP eligibility for each vma

2018-12-23 Thread Michal Hocko
[Cc-ing mailing list and people involved in the original patch] On Fri 21-12-18 13:42:24, Paul Oppenheimer wrote: > Hello! I've never reported a kernel bug before, and since its on the > "next" tree I was told to email the author of the relevant commit. > Please redirect me to the correct place if

Re: [PATCH] mlxsw: spectrum_acl_bloom_filter: use struct_size() in kzalloc()

2018-12-23 Thread Gustavo A. R. Silva
On 12/24/18 1:38 AM, Ido Schimmel wrote: On Sun, Dec 23, 2018 at 11:27:41PM -0600, Gustavo A. R. Silva wrote: One of the more common cases of allocation size calculations is finding the size of a structure that has a zero-sized array at the end, along with memory for some number of elements f

[PATCH] ASoC: sgtl5000: Allow SCLK pad drive strength to be changed

2018-12-23 Thread Alison Wang
This patch introduces "sclk-strength" property to allow SCLK pad drive strength to be changed via device tree. When running playback test on LS1028ARDB, Tx Frame sync error interrupt will occur sometimes. Some noises also exist. After changing SCLK pad drive strength to the maximum value, the issu

[PATCH] arm64: kaslr: Reserve size of ARM64_MEMSTART_ALIGN in linear region

2018-12-23 Thread Yueyi Li
When KASLR enaled(CONFIG_RANDOMIZE_BASE=y), the top 4K virtual address have chance to be mapped to physical address, but which is expected to leave room for ERR_PTR. Also, it might cause some other warparound issue when somewhere use the last memory page but no overflow check. Such as the last pag

Re: [PATCH] mlxsw: spectrum_acl_bloom_filter: use struct_size() in kzalloc()

2018-12-23 Thread Ido Schimmel
On Sun, Dec 23, 2018 at 11:27:41PM -0600, Gustavo A. R. Silva wrote: > One of the more common cases of allocation size calculations is finding > the size of a structure that has a zero-sized array at the end, along > with memory for some number of elements for that array. For example: > > struct f

GOLD BARS FOR SALES

2018-12-23 Thread Patrick Karuma Kaba
I am Patrick Kaba from Ghana.I am looking for buyers for my Gold Bars. I have 50kgs of Gold Bars to sell to any company and person. Is 22 Carat plus and the price is 28000 Usd/kG the broker commission is 1500 USD:KG.I can deliver this to your final destination. Europe, Dubai, Singapore, China, Hon

Re: [PATCH] clk: rockchip: fix frac settings of GPLL clock for rk3328

2018-12-23 Thread Heiko Stuebner
Hi, Am Samstag, 22. Dezember 2018, 17:42:49 CET schrieb Katsuhiro Suzuki: > This patch fixes settings of GPLL frequency in fractional mode for > rk3328. In this mode, FOUTVCO is calcurated by following formula: > FOUTVCO = FREF * FBDIV / REFDIV + ((FREF * FRAC / REFDIV) >> 24) > > The problem i

Re: FYI: Userland breakage caused by udev bind commit

2018-12-23 Thread Gabriel C
Am So., 23. Dez. 2018 um 19:09 Uhr schrieb Dmitry Torokhov : [ also added Linus to CC on that one too ] > > On Sun, Dec 23, 2018 at 06:17:04PM +0100, Christian Brauner wrote: > > On Sun, Dec 23, 2018 at 05:49:54PM +0100, Marcus Meissner wrote: > > > Hi, > > > > > > I am the maintainer of libmtp an

[PATCH] thermal: generic-adc: Fix adc to temp interpolation

2018-12-23 Thread Bjorn Andersson
First correct the edge case to return the last element if we're outside the range, rather than at the last element, so that interpolation is not omitted for points between the two last entries in the table. Then correct the formula to perform linear interpolation based the two points surrounding t

[PATCH 1/2] lib/genalloc.c: Use the vzalloc_node to allocate the bitmap.

2018-12-23 Thread Huang Shijie
Some devices may have over 1G memory on chip. In some cases, the nbytes may big then 4M which is the bounday of the memory buddy system. So use vzalloc_node() to allocate the bitmap. Signed-off-by: Huang Shijie --- lib/genalloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 2/2] lib/genalloc.c: export symbol addr_in_gen_pool

2018-12-23 Thread Huang Shijie
We may use the addr_in_gen_pool() in the driver module. So export the addr_in_gen_pool for the compiling. Signed-off-by: Huang Shijie --- lib/genalloc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/genalloc.c b/lib/genalloc.c index 0d0ff9f0483f..9da91a16046f 100644 --- a/lib/genalloc.

[PATCH] sched/cpufreq: calculate util / max firstly in get_next_freq()

2018-12-23 Thread Chunyan Zhang
From: Vincent Wang When a task that is in_iowait state is enqueued, cpufreq_update_util() will be invoked with SCHED_CPUFREQ_IOWAIT flag. In this case,the value of util and max, which are parameters used in get_next_freq(), will be cpu frequency, instead of cpu util or capactiy. For some 32bit a

Re: [PATCH] usb: dwc2: gadget: fix ISOC frame overflow handling

2018-12-23 Thread Minas Harutyunyan
Hi John, On 12/21/2018 8:05 PM, John Keeping wrote: > Hi Minas, > > On Wed, 19 Dec 2018 14:09:01 + > Minas Harutyunyan wrote: > >> On 12/18/2018 6:35 PM, John Keeping wrote: >>> Hi Minas, >>> >>> On Fri, 14 Dec 2018 09:00:08 + >>> Minas Harutyunyan wrote: First of all, sorry for d

Re: [PATCH] arm64: dts: rockchip: enable analog audio node for rock64

2018-12-23 Thread Heiko Stuebner
Hi, Am Sonntag, 23. Dezember 2018, 11:10:26 CET schrieb Katsuhiro Suzuki: > The Rock64 boards has analog audio jack on it. RK3328 can output > analog audio signal using I2S1 and ACODEC core. > > This patch adds sound node for analog audio for Rock64. > > Signed-off-by: Katsuhiro Suzuki I've pu

[PATCH v4 0/2] spi: Add Renesas R-Car Gen3 RPC SPI driver

2018-12-23 Thread Mason Yang
Hi Mark, This Renesas R-Car Gen3 RPC SPI driver is based on Boris's new spi-mem direct mapping read/write mode [1][2]. v4 patch is according to Sergei's comments including: 1) Drop soc_device_match() 2) Drop unused RPC registers 3) Use ilog2() instead of fls() 4) Patch read 6 bytes ID w/ one comm

[PATCH v4 2/2] dt-bindings: spi: Document Renesas R-Car Gen3 RPC controller bindings

2018-12-23 Thread Mason Yang
Document the bindings used by the Renesas R-Car Gen3 RPC controller. Signed-off-by: Mason Yang --- .../devicetree/bindings/spi/spi-renesas-rpc.txt| 37 ++ 1 file changed, 37 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/spi-renesas-rpc.txt diff

[PATCH v4 1/2] spi: Add Renesas R-Car Gen3 RPC SPI controller driver

2018-12-23 Thread Mason Yang
Add a driver for Renesas R-Car Gen3 RPC SPI controller. Signed-off-by: Mason Yang --- drivers/spi/Kconfig | 6 + drivers/spi/Makefile | 1 + drivers/spi/spi-renesas-rpc.c | 788 ++ 3 files changed, 795 insertions(+) create mode 1006

[PATCH] dmaengine: dma-jz4780: Use struct_size() in devm_kzalloc()

2018-12-23 Thread Gustavo A. R. Silva
One of the more common cases of allocation size calculations is finding the size of a structure that has a zero-sized array at the end, along with memory for some number of elements for that array. For example: struct foo { int stuff; void *entry[]; }; instance = devm_kzalloc(dev, sizeof(

Re: [PATCH v2] f2fs: rebuild nat_bits during umount

2018-12-23 Thread Chao Yu
On 2018/12/13 16:50, Chao Yu wrote: > If all free_nat_bitmap are available, we can rebuild nat_bits from > free_nat_bitmap entirely during umount, let's make another chance > to reenable nat_bits for image. Jaegeuk, Could you please have a try with this patch? I just did xfstest on it with below

[PATCH] clk: imx: imx7ulp: use struct_size() in kzalloc()

2018-12-23 Thread Gustavo A. R. Silva
One of the more common cases of allocation size calculations is finding the size of a structure that has a zero-sized array at the end, along with memory for some number of elements for that array. For example: struct foo { int stuff; void *entry[]; }; instance = kzalloc(sizeof(struct foo

Re: [PATCH v3] f2fs: add bio cache for IPU

2018-12-23 Thread Chao Yu
Jaegeuk, Will kernel still hang with this v3? Thanks, On 2018/12/19 17:29, Chao Yu wrote: > SQLite in Wal mode may trigger sequential IPU write in db-wal file, after > commit d1b3e72d5490 ("f2fs: submit bio of in-place-update pages"), we > lost the chance of merging page in inner managed bio cac

Re: [PATCH 08/20] xfs: xfs_buf: drop useless LIST_HEAD

2018-12-23 Thread Julia Lawall
On Sun, 23 Dec 2018, Darrick J. Wong wrote: > On Sun, Dec 23, 2018 at 09:57:03AM +0100, Julia Lawall wrote: > > Drop LIST_HEAD where the variable it declares has never > > been used. > > > > The semantic patch that fixes this problem is as follows: > > (http://coccinelle.lip6.fr/) > > > > // >

Re: [PATCH 2/2] mfd: tps65218.c: Add input voltage options

2018-12-23 Thread Lee Jones
On Sun, 23 Dec 2018, Tony Lindgren wrote: > * Lee Jones [181221 11:01]: > > On Tue, 18 Dec 2018, Christian Hohnstaedt wrote: > > > > > These options apply to all regulators in this chip. > > > > > > strict-supply-voltage: > > > Set STRICT flag in CONFIG1 > > > under-voltage-limit: > > > Sel

Re: [PATCH][trivial] fix email address quoting in MODULE_AUTHOR()

2018-12-23 Thread Lee Jones
On Sun, 23 Dec 2018, Joe Perches wrote: > On Sun, 2018-12-23 at 20:27 +0100, Pavel Machek wrote: > > > > Apparently it is quite easy to forget ">" in quoting of email > > address. This fixes it. > > It's good you do this, thanks. > > Please use git diff --stat -p when you produce these > or

[PATCH] drivers: qcom: rpmh: use struct_size() in kzalloc()

2018-12-23 Thread Gustavo A. R. Silva
One of the more common cases of allocation size calculations is finding the size of a structure that has a zero-sized array at the end, along with memory for some number of elements for that array. For example: struct foo { int stuff; void *entry[]; }; instance = kzalloc(sizeof(struct foo

Re: [PATCH] arm64: dts: rockchip: add rk3328 ACODEC node

2018-12-23 Thread Heiko Stuebner
Am Sonntag, 23. Dezember 2018, 11:05:30 CET schrieb Katsuhiro Suzuki: > This patch adds audio codec (ACODEC) node that converts to analog > audio signal from I2S for rk3328. > > Signed-off-by: Katsuhiro Suzuki I've moved the rockchip,grf below the clocks properties and applied the result for 4.2

[PATCH] clk: zynqmp: Fix memory allocation in zynqmp_clk_setup

2018-12-23 Thread Gustavo A. R. Silva
Fix memory allocation and use struct_size() in kzalloc(). Fixes: 3fde0e16d016 ("drivers: clk: Add ZynqMP clock driver") Cc: sta...@vger.kernel.org Signed-off-by: Gustavo A. R. Silva --- drivers/clk/zynqmp/clkc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/

KASAN: use-after-free Read in __xfrm_policy_bysel_ctx

2018-12-23 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:ce28bb445388 Merge git://git.kernel.org/pub/scm/linux/kern.. git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=175b8d1540 kernel config: https://syzkaller.appspot.com/x/.config?x=67a2081147a23142 da

INFO: rcu detected stall in netlink_sendmsg

2018-12-23 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:ce28bb445388 Merge git://git.kernel.org/pub/scm/linux/kern.. git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=12662e6740 kernel config: https://syzkaller.appspot.com/x/.config?x=67a2081147a23142 da

[PATCH] mlxsw: spectrum_acl_bloom_filter: use struct_size() in kzalloc()

2018-12-23 Thread Gustavo A. R. Silva
One of the more common cases of allocation size calculations is finding the size of a structure that has a zero-sized array at the end, along with memory for some number of elements for that array. For example: struct foo { int stuff; void *entry[]; }; instance = kzalloc(sizeof(struct foo

Re: [PATCH v5 0/7] mips: system call table generation support

2018-12-23 Thread Firoz Khan
On Sun, 23 Dec 2018 at 21:51, Paul Burton wrote: > > Hi Firoz, > > On Sun, Dec 23, 2018 at 08:15:48AM -0800, Paul Burton wrote: > > Hello, > > > > Firoz Khan wrote: > > > The purpose of this patch series is, we can easily > > > add/modify/delete system call table support by cha- > > > nging entry

Re: [v6,1/5] powerpc: add __NR_syscalls along with NR_syscalls

2018-12-23 Thread Firoz Khan
On Sun, 23 Dec 2018 at 18:58, Michael Ellerman wrote: > > On Mon, 2018-12-17 at 10:40:32 UTC, Firoz Khan wrote: > > NR_syscalls macro holds the number of system call exist > > in powerpc architecture. We have to change the value of > > NR_syscalls, if we add or delete a system call. > > > > One of

linux-next: manual merge of the iommu tree with the powerpc tree

2018-12-23 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the iommu tree got a conflict in: arch/powerpc/kernel/iommu.c between commit: c4e9d3c1e65a ("powerpc/powernv/pseries: Rework device adding to IOMMU groups") from the powerpc tree and commit: bf8763d8f837 ("powerpc/iommu: Use device_iommu_mapped()") f

[GIT PULL] ext4 updates for 4.21-rc1

2018-12-23 Thread Theodore Y. Ts'o
The following changes since commit 2e6e902d185027f8e3cb8b7305238f7e35d6a436: Linux 4.20-rc4 (2018-11-25 14:19:31 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git tags/ext4_for_linus for you to fetch changes up to 18f2c4fcebf2582f96

Re: [PATCH] debugfs: remove inc_nlink in debugfs_create_automount

2018-12-23 Thread yangerkun
Greg KH wrote on 2018/12/22 19:25: On Sat, Dec 22, 2018 at 04:45:36PM +0800, yangerkun wrote: Remove inc_nlink in debugfs_create_automount, or this inode will never be free. Signed-off-by: yangerkun --- fs/debugfs/inode.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --gi

Re: [PATCH net V2 4/4] vhost: log dirty page correctly

2018-12-23 Thread Jason Wang
On 2018/12/14 下午9:20, Michael S. Tsirkin wrote: On Fri, Dec 14, 2018 at 10:43:03AM +0800, Jason Wang wrote: On 2018/12/13 下午10:31, Michael S. Tsirkin wrote: Just to make sure I understand this. It looks to me we should: - allow passing GIOVA->GPA through UAPI - cache GIOVA->GPA somewhere bu

[PATCH] zram: idle writeback fixes and cleanup

2018-12-23 Thread Minchan Kim
This patch includes some fixes and cleanup for idle-page writeback. 1. writeback_limit interface Now writeback_limit interface is rather conusing. For example, once writeback limit budget is exausted, admin can see 0 from /sys/block/zramX/writeback_limit which is same semantic with disable writeb

[PATCH] nvme-pci: fix the wrong setting of nr_maps

2018-12-23 Thread Jianchao Wang
We only set the nr_maps to 3 if poll queues are supported. Signed-off-by: Jianchao Wang --- drivers/nvme/host/pci.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c index 5a0bf6a..cc65fa8 100644 --- a/drivers/nvme/host/pci.c +++ b/drivers/nvme/

Re: [PATCH 1/1] x86/hyper-v: Fix 'set but not used' warnings

2018-12-23 Thread Sasha Levin
On Sat, Dec 22, 2018 at 12:06:58AM +, Michael Kelley wrote: In these two cases, a value returned by rdmsr() or rdmsrl() is ignored. Indicate that ignoring the value is intentional, so that with the W=1 compilation option no warning is generated. Signed-off-by: Michael Kelley Queued up, th

linux-next: manual merge of the rdma tree with the nfs-anna tree

2018-12-23 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the rdma tree got a conflict in: net/sunrpc/xprtrdma/fmr_ops.c between commit: d31f8deac38d ("xprtrdma: Remove support for FMR memory registration") from the nfs-anna tree and commit: 3023a1e93656 ("RDMA: Start use ib_device_ops") from the rdma tree.

RE: [PATCH] staging: android: ion: add buffer flag update ioctl

2018-12-23 Thread Zengtao (B)
Hi laura: >-Original Message- >From: Laura Abbott [mailto:labb...@redhat.com] >Sent: Friday, December 21, 2018 4:50 AM >To: Zengtao (B) ; sumit.sem...@linaro.org >Cc: Greg Kroah-Hartman ; Arve Hjønnevåg >; Todd Kjos ; Martijn Coenen >; Joel Fernandes ; >de...@driverdev.osuosl.org; dri-de..

[PATCH][v2] tty: fix race between flush_to_ldisc and tty_open

2018-12-23 Thread Li RongQing
There still is a race window after the commit b027e2298bd588 ("tty: fix data race between tty_init_dev and flush of buf"), if receive_buf call comes before tty initialization completes in n_tty_open and tty->driver_data may be NULL. CPU0 CPU1

[PATCH] usb: gadget: function: sync f_uac1 ac header baInterfaceNr

2018-12-23 Thread liangshengjun
f_uac1 audio control header descriptor default set baInterfaceNr[]={1,2}, but usb gadget make a configuration descriptor with more interfaces combination, it can not confirm f_uac1 function linked first. So always keep baInterfaceNr[]={1,2} is correct, and it is necessary to sync baInterfaceNr[]

[PATCH] usb: gadget: function: f_uac1 add interface assoc desc

2018-12-23 Thread liangshengjun
Add f_uac1 interface association descriptor, make f_uac1 link other function(like f_uvc) is possible. Signed-off-by: Liang Shengjun --- drivers/usb/gadget/function/f_uac1.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/usb/gadget/function/f_uac1.c b/drivers/usb/gad

[PATCH] net/net_namespace: Check the return value of register_pernet_subsys()

2018-12-23 Thread Aditya Pakki
In net_ns_init(), register_pernet_subsys() could fail while registering network namespace subsystems. The fix checks the return value and sends a panic() on failure. Signed-off-by: Aditya Pakki --- net/core/net_namespace.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net

[PATCH] net/netlink_compat: Fix a missing check of nla_parse_nested

2018-12-23 Thread Aditya Pakki
In tipc_nl_compat_sk_dump(), if nla_parse_nested() fails, it could return an error. To be consistent with other invocations of the function call, on error, the fix passes the return value upstream. Signed-off-by: Aditya Pakki --- net/tipc/netlink_compat.c | 7 +-- 1 file changed, 5 insertion

[GIT PULL] iomap: updates for v4.21

2018-12-23 Thread Darrick J. Wong
Hi Linus, Here's a fix for a memory overflow bug in the iomap code for 4.21-rc1. It has undergone the usual testing regimen and merges cleanly with 4.20 final. Let me know if you encounter any problems with the merge. --D The following changes since commit 7566ec393f4161572ba6f11ad5171fd5d59b0f

xiao jie ju xu liu

2018-12-23 Thread 说短道长
Ltd.

[GIT PULL] xfs: updates for v4.21

2018-12-23 Thread Darrick J. Wong
Hi Linus, Here are a number of bug fixes for 4.21-rc1. It has undergone the usual testing regimen and merges cleanly with 4.20 final. Let me know if you encounter any problems with the merge. --D The following changes since commit 40e020c129cfc991e8ab4736d2665351ffd1468d: Linux 4.20-rc6 (20

[PATCH] rtl8723bs/ioctl_linux: Add a security check to copy_from_user()

2018-12-23 Thread Aditya Pakki
Currently, the return value of copy_from_user is not checked. extra is assigned to u32wps_start irrespective of these failures. Signed-off-by: Aditya Pakki --- drivers/staging/rtl8723bs/os_dep/ioctl_linux.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/stag

Linux 4.20 released..

2018-12-23 Thread Linus Torvalds
Let's face it, last week wasn't quite as quiet as I would have hoped for, but there really doesn't seem to be any point to delay 4.20 because everybody is already taking a break. And it's not like there are any known issues, it's just that the shortlog below is a bit longer than I would have wishe

Re: [for-next][PATCH 23/24] string.h: Add strncmp_prefix() helper macro

2018-12-23 Thread Steven Rostedt
On Mon, 24 Dec 2018 00:52:13 +0100 Rasmus Villemoes wrote: > On 23/12/2018 23.56, Steven Rostedt wrote: > > On Sun, 23 Dec 2018 23:01:52 +0100 > > Rasmus Villemoes wrote: > > > >> On 21/12/2018 23.20, Joe Perches wrote: > >>> > >>> Using > >>> > >>> static inline bool str_has_prefix(const c

Re: [PATCH] net: core: Fix Spectre v1 vulnerability

2018-12-23 Thread Gustavo A. R. Silva
On 12/23/18 5:58 PM, David Miller wrote: From: Alexei Starovoitov Date: Sat, 22 Dec 2018 22:00:00 -0800 On Sat, Dec 22, 2018 at 11:03:31PM -0600, Gustavo A. R. Silva wrote: I took another look at the following patches: "net: core: Fix Spectre v1 vulnerability" "nfc: af_nfc: Fix Spectre v1

Re: [PATCH] net: core: Fix Spectre v1 vulnerability

2018-12-23 Thread David Miller
From: Alexei Starovoitov Date: Sat, 22 Dec 2018 22:00:00 -0800 > On Sat, Dec 22, 2018 at 11:03:31PM -0600, Gustavo A. R. Silva wrote: >> > I took another look at the following patches: >> > "net: core: Fix Spectre v1 vulnerability" >> > "nfc: af_nfc: Fix Spectre v1 vulnerability" >> > "can: af_ca

Re: [for-next][PATCH 23/24] string.h: Add strncmp_prefix() helper macro

2018-12-23 Thread Rasmus Villemoes
On 23/12/2018 23.56, Steven Rostedt wrote: > On Sun, 23 Dec 2018 23:01:52 +0100 > Rasmus Villemoes wrote: > >> On 21/12/2018 23.20, Joe Perches wrote: >>> >>> Using >>> >>> static inline bool str_has_prefix(const char *str, const char prefix[]) >>> { >>> return !strncmp(str, prefix, strlen(pr

[PATCH v3 04/11] platform/x86: intel_ips: make PCI dependency explicit

2018-12-23 Thread Sinan Kaya
ipss driver is a PCI device driver but this has not been mentioned anywhere in Kconfig. Signed-off-by: Sinan Kaya --- drivers/platform/x86/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig index e3b62c2ee8d1..b

[PATCH v3 02/11] ata: make PCI dependency explicit for PATA_ACPI

2018-12-23 Thread Sinan Kaya
PATA_ACPI is a PCI device driver but the PCI dependency has not been explicitly called out. Signed-off-by: Sinan Kaya --- drivers/ata/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig index 4ca7a6b4eaae..8218db17ebdb 100644 ---

[PATCH v3 05/11] platform/x86: intel_pmc: Make PCI dependency explicit

2018-12-23 Thread Sinan Kaya
Code relies on PCI for execution. Specify this in the Kconfig. Signed-off-by: Sinan Kaya --- drivers/platform/x86/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig index b36ea14b41ad..7afb96cb1cd6 100644 --- a/

[PATCH v3 07/11] drivers: thermal: int3406_thermal: Make PCI dependency explicit

2018-12-23 Thread Sinan Kaya
Need CONFIG_PCI to be set in order to be able to use this driver. Signed-off-by: Sinan Kaya --- drivers/thermal/intel/int340x_thermal/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/intel/int340x_thermal/Kconfig b/drivers/thermal/intel/int340x_thermal

[PATCH v3 10/11] x86: select IOSF_MBI only when CONFIG_PCI is set

2018-12-23 Thread Sinan Kaya
Need CONFIG_PCI to be set in order to be able to use IOSF_MBI functionality. Signed-off-by: Sinan Kaya --- arch/x86/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index cc4f0c6ee1ed..322a58ababb0 100644 --- a/arch/x86/Kconfig +++ b

[PATCH v3 06/11] apple-gmux: Make PCI dependency explicit

2018-12-23 Thread Sinan Kaya
This driver depends on the PCI infrastructure but the dependency has not been explicitly called out. Signed-off-by: Sinan Kaya Reviewed-by: Lukas Wunner --- drivers/platform/x86/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconf

[PATCH v3 08/11] ASoC: Intel: atom: Make PCI dependency explicit

2018-12-23 Thread Sinan Kaya
Code does unconditional select for IOSF_MBI. IOSF_MBI driver depends on CONFIG_PCI set but this is not specified anywhere. Signed-off-by: Sinan Kaya --- sound/soc/intel/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/intel/Kconfig b/sound/soc/intel/Kconfig i

[PATCH v3 01/11] ACPI / LPSS: Make PCI dependency explicit

2018-12-23 Thread Sinan Kaya
This code depends on PCI. Compile only when PCI is present. Signed-off-by: Sinan Kaya --- drivers/acpi/Makefile | 3 ++- drivers/acpi/internal.h | 4 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/acpi/Makefile b/drivers/acpi/Makefile index 7c6afc111d76..bb857421c2e

[PATCH v3 09/11] mmc: add PCI dependency into IOSF_MBI

2018-12-23 Thread Sinan Kaya
Select IOSF_MBI only when PCI is set. Signed-off-by: Sinan Kaya --- drivers/mmc/host/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/Kconfig b/drivers/mmc/host/Kconfig index e26b8145efb3..4c5f037b246d 100644 --- a/drivers/mmc/host/Kconfig +++ b/driver

[PATCH v3 03/11] vga-switcheroo: make PCI dependency explicit

2018-12-23 Thread Sinan Kaya
This driver depends on the PCI infrastructure but the dependency has not been explicitly called out. Signed-off-by: Sinan Kaya Reviewed-by: Lukas Wunner --- drivers/gpu/vga/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/vga/Kconfig b/drivers/gpu/vga/Kconfig index b677e5

[PATCH v3 11/11] drivers: thermal: int340x_thermal: Make PCI dependency explicit

2018-12-23 Thread Sinan Kaya
IOSF_CORE depends on PCI. This was never mentioned. Signed-off-by: Sinan Kaya --- drivers/thermal/intel/int340x_thermal/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/intel/int340x_thermal/Kconfig b/drivers/thermal/intel/int340x_thermal/Kconfig index

Re: [PATCH v2 03/11] vga-switcheroo: make PCI dependency explicit

2018-12-23 Thread Sinan Kaya
On 12/23/2018 8:15 PM, Lukas Wunner wrote: On Sun, Dec 23, 2018 at 02:00:15AM +0300, Sinan Kaya wrote: On Sat, Dec 22, 2018 at 7:40 PM Lukas Wunner wrote: On Sat, Dec 22, 2018 at 09:07:12AM +, Sinan Kaya wrote: This driver depends on the PCI infrastructure but the dependency has not been

Re: [PATCH] x86/speculation: Add document to describe Spectre and its mitigations

2018-12-23 Thread Alexei Starovoitov
On Fri, Dec 21, 2018 at 09:44:44AM -0800, Tim Chen wrote: > + > +4. Kernel sandbox attacking kernel > +^^ > + > +The kernel has support for running user-supplied programs within the > +kernel. Specific rules (such as bounds checking) are enforced on these > +program

Re: [PATCH] drm/fb-helper: fix leaks in error path of drm_fb_helper_fbdev_setup

2018-12-23 Thread Peter Wu
On Sun, Dec 23, 2018 at 02:55:52PM +0100, Noralf Trønnes wrote: > > > Den 23.12.2018 01.55, skrev Peter Wu: > > After drm_fb_helper_fbdev_setup calls drm_fb_helper_init, > > "dev->fb_helper" will be initialized (and thus drm_fb_helper_fini will > > have some effect). After that, drm_fb_helper_ini

Re: [for-next][PATCH 23/24] string.h: Add strncmp_prefix() helper macro

2018-12-23 Thread Joe Perches
On Sun, 2018-12-23 at 23:01 +0100, Rasmus Villemoes wrote: > On 21/12/2018 23.20, Joe Perches wrote: [] > > static inline bool str_has_prefix(const char *str, const char prefix[]) [] > We already have exactly that function, it's called strstarts(). Heh. Thanks Rasmus. I didn't remember that one.

Re: [for-next][PATCH 23/24] string.h: Add strncmp_prefix() helper macro

2018-12-23 Thread Steven Rostedt
On Sun, 23 Dec 2018 23:01:52 +0100 Rasmus Villemoes wrote: > On 21/12/2018 23.20, Joe Perches wrote: > > On Fri, 2018-12-21 at 16:08 -0500, Steven Rostedt wrote: > >> On Fri, 21 Dec 2018 21:58:32 +0100 > >> Andreas Schwab wrote: > >> > >> > Well, perhaps I can just remove the ending one

Re: [PATCH 08/20] xfs: xfs_buf: drop useless LIST_HEAD

2018-12-23 Thread Darrick J. Wong
On Sun, Dec 23, 2018 at 09:57:03AM +0100, Julia Lawall wrote: > Drop LIST_HEAD where the variable it declares has never > been used. > > The semantic patch that fixes this problem is as follows: > (http://coccinelle.lip6.fr/) > > // > @@ > identifier x; > @@ > - LIST_HEAD(x); > ... when != x >

Re: [PATCH 09/20] xfs: xfs_fsops: drop useless LIST_HEAD

2018-12-23 Thread Darrick J. Wong
On Sun, Dec 23, 2018 at 09:57:04AM +0100, Julia Lawall wrote: > Drop LIST_HEAD where the variable it declares is never used. > > Commit 0410c3bb2b88 ("xfs: factor ag btree root block > initialisation") stopped using buffer_list and started using a > buffer list in an aghdr_init_data structure, but

linux-next: manual merge of the kbuild tree with the mips-fixes tree

2018-12-23 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the kbuild tree got a conflict in: arch/mips/ralink/Kconfig between commit: 0b15394475e3 ("MIPS: ralink: Select CONFIG_CPU_MIPSR2_IRQ_VI on MT7620/8") from the mips-fixes tree and commit: eb01d42a7778 ("PCI: consolidate PCI config entry in drivers/pci

Re: [PATCH v2 07/11] drivers: thermal: Hide PCI driver when CONFIG_PCI is unset

2018-12-23 Thread Sinan Kaya
On 12/23/2018 10:48 PM, Rafael J. Wysocki wrote: Can you actually test this driver with your new #ifdef stuff and with CONFIG_PCI unset? Have you really test it in that configuration? No, I haven't. Code was compile tested only. If not, you shouldn't even post this patch. I was hoping th

Re: [PATCH v2 01/11] ACPI / LPSS: Add guards against CONFIG_PCI

2018-12-23 Thread Sinan Kaya
On 12/23/2018 10:45 PM, Rafael J. Wysocki wrote: No. Please make this driver depend on PCI instead. Sure.

[rtc] 461e557b97: general_protection_fault:#[##]

2018-12-23 Thread kernel test robot
FYI, we noticed the following commit (built with gcc-6): commit: 461e557b97277b693cd8008c32a9d01c7f8f453b ("rtc: nvmem: use devm_nvmem_register()") https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git master in testcase: trinity with following parameters: runtime: 300s tes

[GIT PULL] hwmon updates for v4.21

2018-12-23 Thread Guenter Roeck
Hi Linus, Please pull hwmon updates for Linux v4.21 from signed tag: git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-for-v4.21 Thanks, Guenter -- The following changes since commit 2595646791c319cadfdbf271563aac97d0843dc7: Linux 4.20-rc5 (2018-12-02 15:0

linux-next: manual merge of the mips-fixes tree with Linus' tree

2018-12-23 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the mips-fixes tree got a conflict in: MAINTAINERS between commit: 6584297b78b6 ("MAINTAINERS: Update linux-mips mailing list address") from Linus' tree and commit: 9bd2f7eeaed1 ("MAINTAINERS: Add a maintainer for MSCC MIPS SoCs") from the mips-fixes

Re: [PATCH 00/20] drop useless LIST_HEAD

2018-12-23 Thread Julia Lawall
On Sun, 23 Dec 2018, Tom Psyborg wrote: > Why do you CC this to so many lists? Because the different files are in different subsystems. The cover letter goes to a list for each file, or to a person if there is no list. The patches go to the people and lists associated with the affected files

Re: [for-next][PATCH 23/24] string.h: Add strncmp_prefix() helper macro

2018-12-23 Thread Rasmus Villemoes
On 21/12/2018 23.20, Joe Perches wrote: > On Fri, 2018-12-21 at 16:08 -0500, Steven Rostedt wrote: >> On Fri, 21 Dec 2018 21:58:32 +0100 >> Andreas Schwab wrote: >> >> Well, perhaps I can just remove the ending ones. I get paranoid with macro variables, and tend to over do it so that the

[PATCH v4 1/2] drm/amd: validate user pitch alignment

2018-12-23 Thread Yu Zhao
Userspace may request pitch alignment that is not supported by GPU. Some requests 32, but GPU ignores it and uses default 64 when cpp is 4. If GEM object is allocated based on the smaller alignment, GPU DMA will go out of bound. For GPU that does frame buffer compression, DMA writing out of bound

[PATCH v4 2/2] drm/amd: validate user GEM object size

2018-12-23 Thread Yu Zhao
When creating frame buffer, userspace may request to attach to a previously allocated GEM object that is smaller than what GPU requires. Validation must be done to prevent out-of-bound DMA, which could not only corrupt memory but also reveal sensitive data. This fix is not done in a common code pa

Re: [PATCH 00/20] drop useless LIST_HEAD

2018-12-23 Thread Tom Psyborg
Why do you CC this to so many lists? On 23/12/2018, Julia Lawall wrote: > Drop LIST_HEAD where the variable it declares is never used. > > --- > > drivers/dma/at_hdmac.c|5 - > drivers/dma/dw/core.c |1 - > drivers/dma/p

Re: [PATCH v2 07/11] drivers: thermal: Hide PCI driver when CONFIG_PCI is unset

2018-12-23 Thread Rafael J. Wysocki
On Sat, Dec 22, 2018 at 6:49 PM Sinan Kaya wrote: > > This driver is both a platform and PCI driver. Hide PCI specific pieces > when CONFIG_PCI is unset. > > Signed-off-by: Sinan Kaya > --- > .../intel/int340x_thermal/processor_thermal_device.c | 8 ++-- > 1 file changed, 6 insertions(+

Re: [PATCH 2/3] drm/amd: validate user pitch alignment

2018-12-23 Thread Yu Zhao
On Fri, Dec 21, 2018 at 10:07:26AM +0100, Michel Dänzer wrote: > On 2018-12-21 4:10 a.m., Yu Zhao wrote: > > Userspace may request pitch alignment that is not supported by GPU. > > Some requests 32, but GPU ignores it and uses default 64 when cpp is > > 4. If GEM object is allocated based on the sm

Re: [PATCH v2 01/11] ACPI / LPSS: Add guards against CONFIG_PCI

2018-12-23 Thread Rafael J. Wysocki
On Sat, Dec 22, 2018 at 6:49 PM Sinan Kaya wrote: > > We can now compile ACPI without PCI support. If code depends on CONFIG_PCI, > it needs to explicitly guard that piece. > > Signed-off-by: Sinan Kaya > --- > drivers/acpi/acpi_lpss.c | 5 - > 1 file changed, 4 insertions(+), 1 deletion(-)

Re: [PATCH 01/20] nfsd: drop useless LIST_HEAD

2018-12-23 Thread J. Bruce Fields
Applied, thanks.--b. On Sun, Dec 23, 2018 at 09:56:56AM +0100, Julia Lawall wrote: > Drop LIST_HEAD where the variable it declares is never used. > > This was introduced in c5c707f96fc9a ("nfsd: implement pNFS > layout recalls"), but was not used even in that commit. > > The semantic patch that

Re: x86/sgx: uapi change proposal

2018-12-23 Thread Andy Lutomirski
On Sun, Dec 23, 2018 at 4:52 AM Jarkko Sakkinen wrote: > > On Sat, Dec 22, 2018 at 10:25:02AM +0200, Jarkko Sakkinen wrote: > > On Sat, Dec 22, 2018 at 10:16:49AM +0200, Jarkko Sakkinen wrote: > > > On Thu, Dec 20, 2018 at 12:32:04PM +0200, Jarkko Sakkinen wrote: > > > > On Wed, Dec 19, 2018 at 06

Re: x86/sgx: uapi change proposal

2018-12-23 Thread Andy Lutomirski
> On Dec 21, 2018, at 11:24 AM, Sean Christopherson > wrote: > > On Fri, Dec 21, 2018 at 09:12:46AM -0800, Andy Lutomirski wrote: >>> On Dec 21, 2018, at 9:28 AM, Sean Christopherson >>> wrote: >>> >>> On Wed, Dec 19, 2018 at 06:58:48PM -0800, Andy Lutomirski wrote: > On Dec 19, 2018, at 6:

Re: [PATCH 04/24] dt-bindings: leds: Add function and color properties

2018-12-23 Thread Jacek Anaszewski
On 12/12/18 7:32 PM, Pavel Machek wrote: On Wed 2018-12-12 07:56:20, Rob Herring wrote: On Wed, Dec 12, 2018 at 3:59 AM Pavel Machek wrote: Hi! We would also probably need different DT properties for different types of devices, since e.g. for network case the network interface name would fi

Re: WIP Droid 4 voice calls, GNSS & PM with a TS 27.010 serdev driver

2018-12-23 Thread Pavel Machek
On Sun 2018-12-23 07:51:47, Tony Lindgren wrote: > * Pavel Machek [181223 11:11]: > > I added some printks to motmdm_probe, and they don't appear to be > > called. I wonder if I'm missing something else in the config? I do > > have serial > > > > root@devuan:/my/ko# ls -al /dev/ttyS0 > > crw-rw--

Re: [PATCH][trivial] fix email address quoting in MODULE_AUTHOR()

2018-12-23 Thread Joe Perches
On Sun, 2018-12-23 at 20:27 +0100, Pavel Machek wrote: > > Apparently it is quite easy to forget ">" in quoting of email > address. This fixes it. It's good you do this, thanks. Please use git diff --stat -p when you produce these or git format-patch so there is an easy to read list of files

[BUG] net: sungem: device driver frees DMA memory with wrong function

2018-12-23 Thread Corentin Labbe
Hello During a boot on a qemu machine, I hit the following problem: [ 21.613659] [ cut here ] [ 21.614039] DMA-API: gem :00:0f.0: device driver frees DMA memory with wrong function [device address=0x185c5402] [size=408 bytes] [mapped as page] [unmapped as

Re: [GIT PULL] timer fix

2018-12-23 Thread Heiko Carstens
On Fri, Dec 21, 2018 at 01:34:53PM +0100, Ingo Molnar wrote: > Linus, > > Please pull the latest timers-urgent-for-linus git tree from: > >git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git > timers-urgent-for-linus > ># HEAD: 0e334db6bb4b1fd1e2d72c1f3d8f004313cd9f94 posix-timers

[PATCH][trivial] fix email address quoting in MODULE_AUTHOR()

2018-12-23 Thread Pavel Machek
Apparently it is quite easy to forget ">" in quoting of email address. This fixes it. Signed-off-by: Pavel Machek diff --git a/arch/mips/crypto/crc32-mips.c b/arch/mips/crypto/crc32-mips.c index 7d1d242..a10a8e6 100644 --- a/arch/mips/crypto/crc32-mips.c +++ b/arch/mips/crypto/crc32-mi

Re: [PATCH v2 5/5] usb:cdns3 Add Cadence USB3 DRD Driver

2018-12-23 Thread kbuild test robot
-ci/linux/commits/Pawel-Laszczak/Introduced-new-Cadence-USBSS-DRD-Driver/20181223-231813 base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing config: x86_64-allmodconfig (attached as .config) compiler: gcc-7 (Debian 7.3.0-1) 7.3.0 reproduce: # save the attached

  1   2   3   >