Re: [PATCH v8 05/25] char/nvram: Adopt arch_nvram_ops

2019-01-03 Thread Christoph Hellwig
> + > +const struct nvram_ops arch_nvram_ops = { > + .read_byte = nvram_read_byte, > + .write_byte = nvram_write_byte, > + .get_size = nvram_get_size, > +}; > +EXPORT_SYMBOL(arch_nvram_ops); I think something this internal should always be EXPORT_SYMBOL_GPL.

Re: [PATCH v8 22/25] powerpc: Remove CONFIG_GENERIC_NVRAM and adopt CONFIG_HAVE_ARCH_NVRAM_OPS

2019-01-03 Thread Christoph Hellwig
> # All PPC32s use generic nvram driver through ppc_md > -config GENERIC_NVRAM > +config HAVE_ARCH_NVRAM_OPS > bool > default y if PPC32 Symbols like this really should be defined in common code, and then just selected by the users.

Re: RFC: gpio: mmio: add support for 3 direction regs

2019-01-03 Thread Vladimir Zapolskiy
Hi Ramon, On 01/03/2019 09:36 AM, Fried, Ramon wrote: > Hi. > > I'm working on a driver for STA2X11 GPIO controller who seems to fit > best to the generic mmio driver, I hope you have seen the existing driver drivers/gpio/gpio-sta2x11.c > the only problem I have is with the dir register case. T

[PATCH] configfs: Fix use-after-free when accessing sd->s_dentry

2019-01-03 Thread Sahitya Tummala
In the vfs_statx() context, during path lookup, the dentry gets added to sd->s_dentry via configfs_attach_attr(). In the end, vfs_statx() kills the dentry by calling path_put(), which invokes configfs_d_iput(). Ideally, this dentry must be removed from sd->s_dentry but it doesn't if the sd->s_count

Re: [PATCH] arm64/lib: add accelerated do_csum for arm64

2019-01-03 Thread Christoph Hellwig
> diff --git a/arch/arm64/lib/checksum.c b/arch/arm64/lib/checksum.c > new file mode 100644 > index ..6931ef13ef87 > --- /dev/null > +++ b/arch/arm64/lib/checksum.c > @@ -0,0 +1,144 @@ > +/* > + * arch/arm64/lib/checksum.c > + * No need to mention the file name. On the other hand it r

Re: [PATCH v2 07/14] drm: move EXPORT_SYMBOL_FOR_TESTS_ONLY to drm_util.h

2019-01-03 Thread Christoph Hellwig
On Sun, Dec 30, 2018 at 06:48:31PM +0100, Sam Ravnborg wrote: > +/* > + * Use EXPORT_SYMBOL_FOR_TESTS_ONLY() for functions that shall > + * only be visible for drmselftests. > + */ > +#if defined(CONFIG_DRM_DEBUG_SELFTEST_MODULE) > +#define EXPORT_SYMBOL_FOR_TESTS_ONLY(x) EXPORT_SYMBOL(x) > +#else

Re: Shaohua Li

2019-01-03 Thread Xiao Ni
On 01/03/2019 10:38 AM, Guoqing Jiang wrote: On 1/3/19 1:13 AM, Jens Axboe wrote: Hi, I've got some very sad news to share with you - over Christmas, Shaohua Li passed away after battling cancer for most of last year. It is really a sad news and a big lost for the community consider Sha

[PATCH] dma-mapping: remove unused attrs parameter to dma_common_get_sgtable

2019-01-03 Thread Huaisheng Ye
From: Huaisheng Ye dma_common_get_sgtable has parameter attrs which is not used at all. Remove it. Signed-off-by: Huaisheng Ye --- drivers/xen/swiotlb-xen.c | 2 +- include/linux/dma-mapping.h | 5 ++--- kernel/dma/mapping.c| 3 +-- 3 files changed, 4 insertions(+), 6 deletions(-) d

[PATCH 1/2] dm-writecache: remove unused size to writecache_flush_region

2019-01-03 Thread Huaisheng Ye
From: Huaisheng Ye writecache_flush_region doesn't use size to calculate flush region. That uses _set_bits to mark the region in dirty_bitmap directly. Signed-off-by: Huaisheng Ye --- drivers/md/dm-writecache.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/dr

[PATCH 2/2] dm-writecache: get rid of memory_data flush to writecache_flush_entry

2019-01-03 Thread Huaisheng Ye
From: Huaisheng Ye writecache_flush_region only works when SSD mode. If wc->pmem_mode sets, writecache_flush_region doesn't need to be called in writecache_flush_entry. Signed-off-by: Huaisheng Ye --- drivers/md/dm-writecache.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/md/dm

Re: KMSAN: uninit-value in mpol_rebind_mm

2019-01-03 Thread Vlastimil Babka
On 12/31/18 8:51 AM, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:79fc24ff6184 kmsan: highmem: use kmsan_clear_page() in cop.. > git tree: kmsan > console output: https://syzkaller.appspot.com/x/log.txt?x=13c48b6740 > kernel config: https://syzk

Re: KMSAN: uninit-value in mpol_rebind_mm

2019-01-03 Thread Dmitry Vyukov
On Thu, Jan 3, 2019 at 9:36 AM Vlastimil Babka wrote: > > > On 12/31/18 8:51 AM, syzbot wrote: > > Hello, > > > > syzbot found the following crash on: > > > > HEAD commit:79fc24ff6184 kmsan: highmem: use kmsan_clear_page() in cop.. > > git tree: kmsan > > console output: https://syzkalle

Re: [PATCH] configfs: Fix use-after-free when accessing sd->s_dentry

2019-01-03 Thread Al Viro
On Thu, Jan 03, 2019 at 01:41:04PM +0530, Sahitya Tummala wrote: > In the vfs_statx() context, during path lookup, the dentry gets > added to sd->s_dentry via configfs_attach_attr(). In the end, > vfs_statx() kills the dentry by calling path_put(), which invokes > configfs_d_iput(). Ideally, this d

Re: RFC: gpio: mmio: add support for 3 direction regs

2019-01-03 Thread Fried, Ramon
On 1/3/2019 10:07, Vladimir Zapolskiy wrote: > Hi Ramon, > > On 01/03/2019 09:36 AM, Fried, Ramon wrote: >> Hi. >> >> I'm working on a driver for STA2X11 GPIO controller who seems to fit >> best to the generic mmio driver, > I hope you have seen the existing driver drivers/gpio/gpio-sta2x11.c I s

Re: [PATCH V3] i2c: tegra: Fix Maximum transfer size

2019-01-03 Thread Thierry Reding
On Wed, Jan 02, 2019 at 03:40:23PM -0800, Sowjanya Komatineni wrote: > Tegra194 supports maximum 64K Bytes transfer per packet. > Tegra186 and prior supports maximum 4K Bytes transfer per packet. > > This patch fixes this payload difference between Tegra194 and prior > tegra chipsets using separat

Re: WARNING: lock held when returning to user space in set_property_atomic

2019-01-03 Thread Maarten Lankhorst
Op 30-12-2018 om 07:21 schreef syzbot: > Hello, > > syzbot found the following crash on: > > HEAD commit:    903b77c63167 Merge tag 'linux-kselftest-4.21-rc1' of git:/.. > git tree:   upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=12d0f55340 > kernel config:  https://s

[PATCH v6 2/3] thermal: broadcom: Add Stingray thermal driver

2019-01-03 Thread Srinath Mannam
From: Pramod Kumar Stingray SoC has six temperature sensor and those are configured, controlled and accessed to read temperature and update in DDR memory using m0 firmware. All six sensors has been given 4 bytes of memory in DDR to write temperature in millivolts. This thermal driver read temper

[PATCH v6 3/3] arm64: dts: stingray: Add Stingray Thermal DT support.

2019-01-03 Thread Srinath Mannam
From: Pramod Kumar Add DT nodes for thermal zones memory base address to read temperature. Signed-off-by: Pramod Kumar Signed-off-by: Srinath Mannam Reviewed-by: Ray Jui Reviewed-by: Scott Branden --- .../arm64/boot/dts/broadcom/stingray/stingray.dtsi | 89 ++ 1 file cha

[PATCH v6 0/3] Stingray thermal driver support

2019-01-03 Thread Srinath Mannam
These patches adds the stingray thermal driver and its corresponding DT nodes with documentation. Changes from v5 - Addressed Eduardo Valentin comments. Changes from v4 - Addressed Rob Herring comments on DT parameters and thermal driver architecture. - Removed brcm,max-crit-temp DT par

[PATCH v6 1/3] dt-bindings: thermal: Add binding document for SR thermal

2019-01-03 Thread Srinath Mannam
From: Pramod Kumar Add binding document for supported thermal implementation in Stingray. Signed-off-by: Pramod Kumar Signed-off-by: Srinath Mannam Reviewed-by: Ray Jui Reviewed-by: Scott Branden --- .../bindings/thermal/brcm,sr-thermal.txt | 105 + 1 file chan

Re: RFC: gpio: mmio: add support for 3 direction regs

2019-01-03 Thread Vladimir Zapolskiy
On 01/03/2019 10:51 AM, Fried, Ramon wrote: > > On 1/3/2019 10:07, Vladimir Zapolskiy wrote: >> Hi Ramon, >> >> On 01/03/2019 09:36 AM, Fried, Ramon wrote: >>> Hi. >>> >>> I'm working on a driver for STA2X11 GPIO controller who seems to fit >>> best to the generic mmio driver, >> I hope you have s

FROM IMFC EUROPE

2019-01-03 Thread IMFC EUROPE
-- Dear Sir, My name is Nancy M. Michael of the International Monetary and Financial Committee (IMFC) of the IMF. The IMF through an electronic random pick has chosen your name for compensation/payment. At the meeting of heads of international financial institutions held recently in Geneva Swit

Re: [PATCH mips-fixes] MIPS: BCM47XX: Setup struct device for the SoC

2019-01-03 Thread Rafał Miłecki
On 2019-01-02 16:50, Hauke Mehrtens wrote: On 1/2/19 1:51 PM, Rafał Miłecki wrote: From: Rafał Miłecki So far we never had any device registered for the SoC. This resulted in some small issues that we kept ignoring like: 1) Not working GPIOLIB_IRQCHIP (gpiochip_irqchip_add_key() failing) 2)

Re: knifeshack (Linux Property rights) -- Why dislike short story?

2019-01-03 Thread Ivan Ivanov
maybe Mike Galbraith is one of those SJWs who took over the Linux kernel and slowly taking over the rest of opensource projects. We must REESIST ! чт, 3 янв. 2019 г. в 11:51, : > > On 2019-01-02 02:32, Mike Galbraith wrote: > > Take your medication. > > Why don't you like my short story?

Re: WARNING: lock held when returning to user space in set_property_atomic

2019-01-03 Thread Dmitry Vyukov
On Thu, Jan 3, 2019 at 9:55 AM Maarten Lankhorst wrote: > > Op 30-12-2018 om 07:21 schreef syzbot: > > Hello, > > > > syzbot found the following crash on: > > > > HEAD commit:903b77c63167 Merge tag 'linux-kselftest-4.21-rc1' of git:/.. > > git tree: upstream > > console output: https://s

Re: [PATCH] tty/n_hdlc: fix sleep in !TASK_RUNNING state warning

2019-01-03 Thread Jiri Slaby
On 02. 01. 19, 16:04, Tetsuo Handa wrote: > + if (wait_event_interruptible(tty->read_wait, > + (ret = -EIO, test_bit(TTY_OTHER_CLOSED, &tty->flags)) || > + (ret = 0, tty_hung_up_p(file)) || > + (rbuf = n_hdlc_buf_get(&n_hdlc->rx_buf_list)) != NULL || > + (ret

Re: [PATCH] net: tsn: add an netlink interface between kernel and application layer

2019-01-03 Thread Ilias Apalodimas
Hi Po, > > Hi Vinicius, > > > > Thank you very much for your feedback. > > > > I know the CBS is used to be most important part of AVB. And qdiscs is good > > tool to configure qos. > > > > But as you know, the TSN family is a cluster of protocols and much > > extending the AVB. The protocols h

[PATCH] scsi: associate bio write hint with WRITE CDB

2019-01-03 Thread Randall Huang
In SPC-3, WRITE(10)/(16) support grouping function. Let's associate bio write hint with group number for enabling StreamID or Turbo Write feature. Bug: 120900381 Change-Id: I565c8e0c1d10e17a23e73f2a02c1adbd198b04b3 Signed-off-by: Randall Huang --- drivers/scsi/sd.c | 12 ++-- 1 file chan

[GIT PULL] csky patches for the 4.21 merge window

2019-01-03 Thread guoren
Hi Linus, The following changes since commit 7566ec393f4161572ba6f11ad5171fd5d59b0fbd: Linux 4.20-rc7 (2018-12-16 15:46:55 -0800) are available in the git repository at: g...@github.com:c-sky/csky-linux.git tags/csky-for-linus-4.21 for you to fetch changes up to f50fd2d8524c15b08da9e7e9d84

Re: [PATCH v1 0/2] virtio-balloon: tweak config_changed

2019-01-03 Thread Cornelia Huck
On Thu, 3 Jan 2019 13:31:00 +0800 Wei Wang wrote: > Since virtio-ccw doesn't work with accessing to the config registers > inside an interrupt context, this patch series avoids that issue by > moving the config register accesses to the related workqueue contexts. > > Wei Wang (2): > virtio-ba

Re: [LKP] [mtd] c4dfa25ab3: kernel_BUG_at_fs/sysfs/file.c

2019-01-03 Thread Greg Kroah-Hartman
On Wed, Jan 02, 2019 at 10:44:50PM +0100, Rafael J. Wysocki wrote: > On Wed, Jan 2, 2019 at 8:53 PM Linus Torvalds > wrote: > > [cut] > > > Greg, Rafael: it does strike me that the "BUG_ON()" in > > sysfs_create_file_ns() could easily have been a > > > > if (WARN_ON(..)) > >

Re: [PATCH 1/2] mm: introduce put_user_page*(), placeholder versions

2019-01-03 Thread Jan Kara
On Wed 02-01-19 20:55:33, Jerome Glisse wrote: > On Wed, Dec 19, 2018 at 12:08:56PM +0100, Jan Kara wrote: > > On Tue 18-12-18 21:07:24, Jerome Glisse wrote: > > > On Tue, Dec 18, 2018 at 03:29:34PM -0800, John Hubbard wrote: > > > > OK, so let's take another look at Jerome's _mapcount idea all by

I WANT YOU TO USE THIS DONATION TO HELP THE POOR URGENT.

2019-01-03 Thread MRS. SONIA AVIS IBRAHIM
My Sincere Greetings, I am MRS. SONIA AVIS IBRAHIM, I decided to donate what I have to you for investment towards the good work of charity organization, and also to help the motherless and the less privileged ones and to carry out a charitable works in your Country and around the World on my B

Re: [LKP] [mtd] c4dfa25ab3: kernel_BUG_at_fs/sysfs/file.c

2019-01-03 Thread Rafael J. Wysocki
On Thu, Jan 3, 2019 at 10:26 AM Greg Kroah-Hartman wrote: > > On Wed, Jan 02, 2019 at 10:44:50PM +0100, Rafael J. Wysocki wrote: > > On Wed, Jan 2, 2019 at 8:53 PM Linus Torvalds > > wrote: > > > > [cut] > > > > > Greg, Rafael: it does strike me that the "BUG_ON()" in > > > sysfs_create_file_ns()

Re: RFC: gpio: mmio: add support for 3 direction regs

2019-01-03 Thread Fried, Ramon
On 1/3/2019 10:59, Vladimir Zapolskiy wrote: > On 01/03/2019 10:51 AM, Fried, Ramon wrote: >> On 1/3/2019 10:07, Vladimir Zapolskiy wrote: >>> Hi Ramon, >>> >>> On 01/03/2019 09:36 AM, Fried, Ramon wrote: Hi. I'm working on a driver for STA2X11 GPIO controller who seems to fit

Re: [PATCH v2] kmemleak: survive in a low-memory situation

2019-01-03 Thread Michal Hocko
On Wed 02-01-19 13:06:19, Qian Cai wrote: [...] > diff --git a/mm/kmemleak.c b/mm/kmemleak.c > index f9d9dc250428..9e1aa3b7df75 100644 > --- a/mm/kmemleak.c > +++ b/mm/kmemleak.c > @@ -576,6 +576,16 @@ static struct kmemleak_object *create_object(unsigned > long ptr, size_t size, > struct rb

Re: [PATCH 0/1] RFC: Revamp admin-guide/tainted-kernels.rst to make it more comprehensible

2019-01-03 Thread Thorsten Leemhuis
Hi Jonathan! If you have a minute could you provide feedback on below mail? I sent it right before Christmas to get it of my todo list, but due to the timing it afaics fell through the cracks a bit, as I had feared already (no worries). Ciao, Thorsten Am 21.12.18 um 16:26 schrieb Thorsten Leemhuis

I WANT YOU TO USE THIS DONATION TO HELP THE POOR URGENT.

2019-01-03 Thread MRS. SONIA AVIS IBRAHIM
My Sincere Greetings, I am MRS. SONIA AVIS IBRAHIM, I decided to donate what I have to you for investment towards the good work of charity organization, and also to help the motherless and the less privileged ones and to carry out a charitable works in your Country and around the World on my B

Re: [PATCH v2 1/7] sysfs/cpu: Add "Unknown" vulnerability state

2019-01-03 Thread Greg Kroah-Hartman
On Wed, Jan 02, 2019 at 06:49:15PM -0600, Jeremy Linton wrote: > There is a lot of variation in the Arm ecosystem. Because of this, > there exist possible cases where the kernel cannot authoritatively > determine if a machine is vulnerable. Really? Why not? What keeps you from "knowing" this? C

Re: [PATCH v3] driver core: platform: Add an error message to platform_get_irq*()

2019-01-03 Thread Rafael J. Wysocki
On Wed, Jan 2, 2019 at 7:51 PM Stephen Boyd wrote: > > A grep of the kernel shows that many drivers print an error message if > they fail to get the irq they're looking for. Furthermore, those drivers > all decide to print the device name, or not, and the irq they were > requesting, or not, etc. L

Re: [PATCH v1 1/2] virtio-balloon: tweak config_changed implementation

2019-01-03 Thread Cornelia Huck
On Thu, 3 Jan 2019 13:31:01 +0800 Wei Wang wrote: > virtio-ccw has deadlock issues with reading config registers inside the s/config registers/the config space/ ? > interrupt context, so we tweak the virtballoon_changed implementation > by moving the config read operations into the related wor

Re: [PATCH v1 2/2] virtio-balloon: improve update_balloon_size_func

2019-01-03 Thread Cornelia Huck
On Thu, 3 Jan 2019 13:31:02 +0800 Wei Wang wrote: > There is no need to update the balloon actual register when there is no > ballooning request. This patch avoids update_balloon_size when diff is 0. > > Signed-off-by: Wei Wang > --- > drivers/virtio/virtio_balloon.c | 5 - > 1 file chang

Re: [PATCH] scsi: associate bio write hint with WRITE CDB

2019-01-03 Thread Randall Huang
On Wed, Jan 02, 2019 at 11:51:33PM -0800, Christoph Hellwig wrote: > On Wed, Dec 26, 2018 at 12:15:04PM +0800, Randall Huang wrote: > > In SPC-3, WRITE(10)/(16) support grouping function. > > Let's associate bio write hint with group number for > > enabling StreamID or Turbo Write feature. > > > >

Re: [PATCH v5 08/15] KVM: s390: add the GIB and its related life-cyle functions

2019-01-03 Thread Pierre Morel
On 19/12/2018 20:17, Michael Mueller wrote: The Guest Information Block (GIB) links the GISA of all guests that have adapter interrupts pending. These interrupts cannot be delivered because no vcpu of these guests is currently running in SIE context. Instead, a GIB alert is issued on the host to

Re: [alsa-devel] [PATCH v5 08/11] ASoC: Intel: atom: Make PCI dependency explicit

2019-01-03 Thread Rafael J. Wysocki
On Thu, Jan 3, 2019 at 5:08 AM Chandan Rajendra wrote: > > On Thursday, January 3, 2019 5:20:27 AM IST Pierre-Louis Bossart wrote: > > > > On 1/2/19 4:58 PM, Sinan Kaya wrote: > > > On Wed, Jan 2, 2019 at 10:50 PM Pierre-Louis Bossart > > > wrote: > > >> > > >>> This is pointing to a kconfig issu

cifs large stack allocations

2019-01-03 Thread Geert Uytterhoeven
Hi Paulo, On Wed, Jan 2, 2019 at 10:24 PM Linux Kernel Mailing List wrote: > Commit: a3a53b7603798fd875e2afbba7e2b9ba6b19c7c7 > Parent: 23324407143dd923660378fd9b40b9a711972269 > Refname:refs/heads/master > Web: > https://git.kernel.org/torvalds/c/a3a53b7603798fd875e2afbba7e2b

RE: [PATCH] net: core: Fix to store new mtu setting in netdevice.

2019-01-03 Thread Murali Krishna Policharla
> Hi Andrew/Heiner > >Thanks for the feedback. This patch > fixes a case where ndo_change_mtu function is provided but the callback > function is not storing mtu to netdevice structure. > Hi Murali > At the moment, any driver which implements ndo_change_mtu

[PATCH] scsi: associate bio write hint with WRITE CDB

2019-01-03 Thread Randall Huang
In SPC-3, WRITE(10)/(16) support grouping function. Let's associate bio write hint with group number for enabling StreamID or Turbo Write feature. Change-Id: I565c8e0c1d10e17a23e73f2a02c1adbd198b04b3 Signed-off-by: Randall Huang --- drivers/scsi/sd.c | 12 ++-- 1 file changed, 10 inserti

Re: [PATCH v1 1/2] virtio_pci: use queue idx instead of array idx to set up the vq

2019-01-03 Thread Cornelia Huck
On Fri, 28 Dec 2018 10:26:25 +0800 Wei Wang wrote: > When find_vqs, there will be no vq[i] allocation if its corresponding > names[i] is NULL. For example, the caller may pass in names[i] (i=4) > with names[2] being NULL because the related feature bit is turned off, > so technically there are 3

Re: [PATCH v1 2/2] virtio: don't allocate vqs when names[i] = NULL

2019-01-03 Thread Cornelia Huck
On Fri, 28 Dec 2018 10:26:26 +0800 Wei Wang wrote: > Some vqs may not need to be allocated when their related feature bits > are disabled. So callers may pass in such vqs with "names = NULL". s/=/==/ (here and in the subject) > Then we skip such vq allocations. > > Signed-off-by: Wei Wang >

Re: [PATCH] ACPI: Fix build failure when CONFIG_NLS is set to 'n'

2019-01-03 Thread Rafael J. Wysocki
On Sun, Dec 30, 2018 at 9:40 PM Sinan Kaya wrote: > > Observing link failure as follows when CONFIG_ACPI is set but > both CONFIG_NLS and CONFIG_PCI are unset. > > drivers/acpi/device_sysfs.o: In function `description_show': > device_sysfs.c:(.text+0x48a): undefined reference to `utf16s_to_utf8s'

Re: [PATCH v3 4/5] drivers: power: suspend: call devfreq suspend/resume

2019-01-03 Thread Rafael J. Wysocki
On Wed, Jan 2, 2019 at 4:08 PM Lukasz Luba wrote: > > Hi Rafael, > > Gentle ping... > Please take this patch, it got ACK. > The other patches have been taken through MyungJoo's > tree, but this one is actually enabling the feature. Applied now and sorry for missing it. Thanks!

RE: [PATCH] net: tsn: add an netlink interface between kernel and application layer

2019-01-03 Thread Po Liu
Hi Ilias, Br, Po Liu > -Original Message- > From: Ilias Apalodimas [mailto:ilias.apalodi...@linaro.org] > Sent: 2019年1月3日 17:16 > To: Vinicius Costa Gomes > Cc: Po Liu ; net...@vger.kernel.org; linux- > ker...@vger.kernel.org; da...@davemloft.net; haus...@cisco.com; > nicolas.fe...@micr

Re: [PATCH v4 00/22] drm/sun4i: Support for linear and tiled YUV formats with the frontend

2019-01-03 Thread Paul Kocialkowski
On Wed, 2018-12-05 at 09:36 +0100, Paul Kocialkowski wrote: > This series implements support for YUV formats using the display engine > frontend in the sun4i DRM driver, with various fixes along the way. > Scaling is supported for every format handled by the frontend. > > The tiling mode used by t

Re: [RFC PATCH 0/3] mm: memcontrol: delayed force empty

2019-01-03 Thread Michal Hocko
On Thu 03-01-19 04:05:30, Yang Shi wrote: > > Currently, force empty reclaims memory synchronously when writing to > memory.force_empty. It may take some time to return and the afterwards > operations are blocked by it. Although it can be interrupted by signal, > it still seems suboptimal. Why

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

2019-01-03 Thread Huang Shijie
On Wed, Jan 02, 2019 at 11:55:50PM -0800, Christoph Hellwig wrote: > On Mon, Dec 24, 2018 at 03:06:22PM +0800, Huang Shijie wrote: > > We may use the addr_in_gen_pool() in the driver module. > > So export the addr_in_gen_pool for the compiling. > > Please send this along with the driver that plans

Re: [PATCH 1/3] doc: memcontrol: fix the obsolete content about force empty

2019-01-03 Thread Michal Hocko
On Thu 03-01-19 04:05:31, Yang Shi wrote: > We don't do page cache reparent anymore when offlining memcg, so update > force empty related content accordingly. > > Cc: Michal Hocko > Cc: Johannes Weiner > Signed-off-by: Yang Shi Thanks for the clean up. Acked-by: Michal Hocko > --- > Docume

[PATCH v7 0/3] Fixes for Tegra soctherm

2019-01-03 Thread Wei Ni
This series fixed some issues for Tegra soctherm, and add get_trend(). Main changes from v6: 1. Per Eduardo's comment, we can remove the change: "thermal: tegra: parse sensor id before sensor register" Main changes from v5: 1. Move the get_trend() patch https://lkml.org/lkml/2018/11/20/643 into t

[PATCH v7 3/3] thermal: tegra: add get_trend ops

2019-01-03 Thread Wei Ni
Add support for get_trend ops that allows soctherm sensors to be used with the step-wise governor. Signed-off-by: Wei Ni --- drivers/thermal/tegra/soctherm.c | 34 ++ 1 file changed, 34 insertions(+) diff --git a/drivers/thermal/tegra/soctherm.c b/drivers/thermal

[PATCH v7 2/3] thermal: tegra: fix memory allocation

2019-01-03 Thread Wei Ni
Fix memory allocation to store the pointers to thermal_zone_device. Signed-off-by: Wei Ni Acked-by: Thierry Reding --- drivers/thermal/tegra/soctherm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/tegra/soctherm.c b/drivers/thermal/tegra/soctherm.c index f

[PATCH v7 1/3] thermal: tegra: remove unnecessary warnings

2019-01-03 Thread Wei Ni
Convert warnings to info as not all platforms may have all the thresholds and sensors enabled. Signed-off-by: Wei Ni --- drivers/thermal/tegra/soctherm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/thermal/tegra/soctherm.c b/drivers/thermal/tegra/soctherm.c in

Re: [RESEND PATCH v2 0/8] Input: sx8654 - reset-gpio, sx865[056] support, etc.

2019-01-03 Thread Richard Leitner
Hi, another 3 weeks and still no response :-( The last comment on this patchset was in October by Dimitry/Rob. In the meantime I did a "ping" and a resend... So what's up? I'm perfectly fine with a "we don't want this is mainline because XXX" or "I have no time and will come back to it in XXX"..

Re: [PATCH v2] netfilter: account ebt_table_info to kmemcg

2019-01-03 Thread William Kucharski
> On Jan 2, 2019, at 8:14 PM, Shakeel Butt wrote: > > countersize = COUNTER_OFFSET(tmp.nentries) * nr_cpu_ids; > - newinfo = vmalloc(sizeof(*newinfo) + countersize); > + newinfo = __vmalloc(sizeof(*newinfo) + countersize, GFP_KERNEL_ACCOUNT, > + PAGE_KERNE

[RESEND PATCH v1 1/3] dmaengine: stm32-dma: Add PM Runtime support

2019-01-03 Thread Pierre-Yves MORDRET
Use pm_runtime engine for clock management purpose. Signed-off-by: Pierre-Yves MORDRET --- Version history: v1: * Initial --- --- drivers/dma/stm32-dma.c | 58 +++-- 1 file changed, 51 insertions(+), 7 deletions(-) diff --git a/drivers/dm

[RESEND PATCH v1 0/3] Add PM Runtime support

2019-01-03 Thread Pierre-Yves MORDRET
Use pm_runtime engine for clock management purpose for both DMA, DMAMUX and MDMA --- Version history: v1: * Initial --- Pierre-Yves MORDRET (3): dmaengine: stm32-dma: Add PM Runtime support dmaengine: stm32-dmamux: Add PM Runtime support dmaengine: stm32-mdma: Add PM Runtime su

[RESEND PATCH v1] dmaengine: stm32-dma: check FIFO error interrupt enable

2019-01-03 Thread Pierre-Yves MORDRET
For avoiding false FIFO detection, check FIFO Error interrupt is enabled prior raising any errors. This will prevent having spurious FIFO error where it shouldn't. Signed-off-by: Pierre-Yves MORDRET --- Version history: v1: * Initial --- --- drivers/dma/stm32-dma.c | 13

[RESEND PATCH v1 3/3] dmaengine: stm32-mdma: Add PM Runtime support

2019-01-03 Thread Pierre-Yves MORDRET
Use pm_runtime engine for clock management purpose Signed-off-by: Pierre-Yves MORDRET --- Version history: v1: * Initial --- --- drivers/dma/stm32-mdma.c | 52 ++-- 1 file changed, 46 insertions(+), 6 deletions(-) diff --git a/drivers/dma

[RESEND PATCH v1 2/3] dmaengine: stm32-dmamux: Add PM Runtime support

2019-01-03 Thread Pierre-Yves MORDRET
Use pm_runtime engine for clock management purpose. Signed-off-by: Pierre-Yves MORDRET --- Version history: v1: * Initial --- --- drivers/dma/stm32-dmamux.c | 58 +- 1 file changed, 47 insertions(+), 11 deletions(-) diff --git a/drivers/d

[PATCH] ASoC: AMD: Add delay before starting to capture

2019-01-03 Thread Agrawal, Akshu
On capture through dmic we observe a glitch at the start of record. This is because we start capturing even before dmic is ready to send out data. The glitch seen last for ~20msec. Signed-off-by: Akshu Agrawal Signed-off-by: Daniel Kurtz --- sound/soc/amd/acp-da7219-max98357a.c | 28 +++

[PATCH] irqchip: madera: Drop GPIO includes

2019-01-03 Thread Linus Walleij
This irqchip does not use anything GPIO-related so drop the GPIO includes. Cc: Richard Fitzgerald Signed-off-by: Linus Walleij --- drivers/irqchip/irq-madera.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/irqchip/irq-madera.c b/drivers/irqchip/irq-madera.c index e9256dee1a45..8b

Re: [PATCH v1 1/2] virtio-balloon: tweak config_changed implementation

2019-01-03 Thread Wei Wang
On 01/03/2019 05:40 PM, Cornelia Huck wrote: On Thu, 3 Jan 2019 13:31:01 +0800 Wei Wang wrote: virtio-ccw has deadlock issues with reading config registers inside the s/config registers/the config space/ ? Sounds good. interrupt context, so we tweak the virtballoon_changed implementati

Re: [patch] net, skbuff: do not prefer skb allocation fails early

2019-01-03 Thread Eric Dumazet
On 01/02/2019 01:01 PM, David Rientjes wrote: > Commit dcda9b04713c ("mm, tree wide: replace __GFP_REPEAT by > __GFP_RETRY_MAYFAIL with more useful semantic") replaced __GFP_REPEAT in > alloc_skb_with_frags() with __GFP_RETRY_MAYFAIL when the allocation may > directly reclaim. > > The previous

[PATCH] cpuidle / Documentation: Update cpuidle MAINTAINERS entry

2019-01-03 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Update the MAINTAINERS entry for cpuidle by making it clear that it is not just drivers and adding a documentation record to it. Signed-off-by: Rafael J. Wysocki --- MAINTAINERS |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) Index: linux-pm/MAINTAINERS

Re: [PATCH] hid: Add checks to fix of_led_classdev_register

2019-01-03 Thread Jiri Kosina
On Mon, 24 Dec 2018, Aditya Pakki wrote: > In lenovo_probe_tpkbd(), the function of_led_classdev_register() could > return an error value that is unchecked. The fix adds these checks. Applied, thanks. -- Jiri Kosina SUSE Labs

Re: [BUG] dev_pm_opp refcount issue on Arm Juno r0

2019-01-03 Thread Sudeep Holla
On Thu, Jan 03, 2019 at 12:35:14PM +0530, Viresh Kumar wrote: [...] > @Sudeep: Please help review it as well. > > -- > viresh > > -8<- > > From f3913738618031e9d71ebf64461cee22909e6e20 Mon Sep 17 00:00:00 2001 > Message-Id: > > From: Viresh Ku

Re: [PATCH V3 1/2] mmc: mmci: add variant property to set command stop bit

2019-01-03 Thread Ludovic BARRE
hi Ulf happy new years. Just a gentleman ping about patch2 of this series "mmc: mmci: send stop command to clear the dpsm." Regards Ludo On 12/11/18 10:53 AM, Ludovic BARRE wrote: On 12/11/18 10:47 AM, Ulf Hansson wrote: On Thu, 6 Dec 2018 at 16:13, Ludovic Barre wrote: From: Ludovic Ba

[PATCH v1] arm64: dts: qcom: msm8996: Disable USB2 PHY suspend by core

2019-01-03 Thread Manu Gautam
QUSB2 PHY on msm8996 doesn't work well when autosuspend by dwc3 core using USB2PHYCFG register is enabled. One of the issue seen is that PHY driver reports PLL lock failure and fails phy_init() if dwc3 core has USB2 PHY suspend enabled. Fix this by using quirks to disable USB2 PHY LPM/suspend and d

Re: [BUG] dev_pm_opp refcount issue on Arm Juno r0

2019-01-03 Thread Viresh Kumar
On 03-01-19, 10:33, Sudeep Holla wrote: > As you already state the checks are unnecessary, if we drop them we don't need > to add any firmware specific callbacks. I am thinking if it makes sense to > add a generic helper function to remove the OPPs from a device. If we have > that any driver needin

Re: [BUG] dev_pm_opp refcount issue on Arm Juno r0

2019-01-03 Thread Sudeep Holla
On Thu, Jan 03, 2019 at 04:08:29PM +0530, Viresh Kumar wrote: > On 03-01-19, 10:33, Sudeep Holla wrote: > > As you already state the checks are unnecessary, if we drop them we don't > > need > > to add any firmware specific callbacks. I am thinking if it makes sense to > > add a generic helper fun

KASAN: slab-out-of-bounds Read in __xfrm_policy_bysel_ctx

2019-01-03 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:b71acb0e3721 Merge branch 'linus' of git://git.kernel.org/.. git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=15e83920c0 kernel config: https://syzkaller.appspot.com/x/.config?x=4a8e05cab2dc66d3 da

kernel BUG at mm/huge_memory.c:LINE!

2019-01-03 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:4cd1b60def51 Add linux-next specific files for 20190102 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=147760d340 kernel config: https://syzkaller.appspot.com/x/.config?x=e8ea56601353001c dashb

general protection fault in prepare_to_wait

2019-01-03 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:e888402789b9 net: hns3: call hns3_nic_net_open() while doi.. git tree: net console output: https://syzkaller.appspot.com/x/log.txt?x=11876fb340 kernel config: https://syzkaller.appspot.com/x/.config?x=b6c41ffa3d657353 dashboa

general protection fault in rb_erase (2)

2019-01-03 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:85f78456f286 Merge tag '9p-for-4.21' of git://github.com/m.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=12cf53fd40 kernel config: https://syzkaller.appspot.com/x/.config?x=17c50660d3a88302 da

Re: [PATCH 1/2] m68k: remove nargs from __SYSCALL

2019-01-03 Thread Geert Uytterhoeven
Hi Firoz, Thanks for your patch! On Wed, Jan 2, 2019 at 4:19 PM Firoz Khan wrote: > The __SYSCALL macro's arguments are system call number, > system call entry name and number of arguments for the name, > system call. > > Argument- nargs in __SYSCALL(nr, entry, nargs) is neither Argument narg

Re: [PATCH v3 3/3] arm64: Early boot time stamps

2019-01-03 Thread Marc Zyngier
Hi Pavel, On 26/12/2018 16:45, Pavel Tatashin wrote: > Allow printk time stamps/sched_clock() to be available from the early > boot. > > Signed-off-by: Pavel Tatashin > --- > arch/arm64/kernel/setup.c | 25 + > 1 file changed, 25 insertions(+) > > diff --git a/arch/arm6

Re: [RFC][PATCH v2 00/21] PMEM NUMA node and hotness accounting/migration

2019-01-03 Thread Mel Gorman
On Fri, Dec 28, 2018 at 08:52:24PM +0100, Michal Hocko wrote: > [Ccing Mel and Andrea] > > On Fri 28-12-18 21:31:11, Wu Fengguang wrote: > > > > > I haven't looked at the implementation yet but if you are proposing a > > > > > special cased zone lists then this is something CDM (Coherent Device >

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

2019-01-03 Thread Michal Simek
On 24. 12. 18 6:50, Gustavo A. R. Silva wrote: > 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 chan

Re: [PATCH] irqchip/gic-v3: use __init where appropriate

2019-01-03 Thread Marc Zyngier
Hi Stephan, On 29/12/2018 14:14, Stefan Agner wrote: > Compiling with section mismatch debugging enabled prints the > following warning: > WARNING: vmlinux.o(.text+0xffa1b8): Section mismatch in reference from > the function gic_smp_init() to the function .init.text:set_smp_cross_call() > > A

Re: [PATCH] perf stat: Fix endless wait for child process

2019-01-03 Thread Jiri Olsa
On Thu, Jan 03, 2019 at 03:40:45PM +0800, Jin Yao wrote: > We hit a perf stat issue by using following script. > > #!/bin/bash > > sleep 1000 & > exec perf stat -a -e cycles -I1000 -- sleep 5 > > Since "perf stat" is launched by exec, so the "sleep 1000" would be > the child process of "pe

Re: KMSAN: uninit-value in mpol_rebind_mm

2019-01-03 Thread Alexander Potapenko
On Thu, Jan 3, 2019 at 9:42 AM Dmitry Vyukov wrote: > > On Thu, Jan 3, 2019 at 9:36 AM Vlastimil Babka wrote: > > > > > > On 12/31/18 8:51 AM, syzbot wrote: > > > Hello, > > > > > > syzbot found the following crash on: > > > > > > HEAD commit:79fc24ff6184 kmsan: highmem: use kmsan_clear_page(

Re: [RFC PATCH v1 3/5] Yama: Enforces noexec mounts or file executability through O_MAYEXEC

2019-01-03 Thread Jann Horn
On Thu, Dec 13, 2018 at 3:49 PM Mickaël Salaün wrote: > On 12/12/2018 18:09, Jann Horn wrote: > > On Wed, Dec 12, 2018 at 9:18 AM Mickaël Salaün wrote: > >> Enable to either propagate the mount options from the underlying VFS > >> mount to prevent execution, or to propagate the file execute permi

[PATCH v2] configfs: Fix use-after-free when accessing sd->s_dentry

2019-01-03 Thread Sahitya Tummala
In the vfs_statx() context, during path lookup, the dentry gets added to sd->s_dentry via configfs_attach_attr(). In the end, vfs_statx() kills the dentry by calling path_put(), which invokes configfs_d_iput(). Ideally, this dentry must be removed from sd->s_dentry but it doesn't if the sd->s_count

Verificación de la cuenta

2019-01-03 Thread Administrador de correo web
Web Admin E-mail Notification This message is from our Web Admin messaging center to all our email account owners.We are removing access to all our Webmail clients. Your email account will be upgraded to a new and enhanced webmail user interface provided by our Admin Effective from the moment

Re: [PATCH] iio: adc: xilinx: check return value of xadc_write_adc_reg

2019-01-03 Thread Michal Simek
On 27. 12. 18 20:54, Aditya Pakki wrote: > In function xadc_probe, xadc_write_adc_reg can return an error value > when write fails. The fix checks for the return value consistent with > other invocations of the latter function. > > Signed-off-by: Aditya Pakki > --- > drivers/iio/adc/xilinx-xadc-

Verificación de la cuenta

2019-01-03 Thread Administrador de correo web
Web Admin E-mail Notification This message is from our Web Admin messaging center to all our email account owners.We are removing access to all our Webmail clients. Your email account will be upgraded to a new and enhanced webmail user interface provided by our Admin Effective from the moment

Re: [PATCH 1/2] m68k: remove nargs from __SYSCALL

2019-01-03 Thread Firoz Khan
Hi Geert, Thanks for your feedback. On Thu, 3 Jan 2019 at 16:15, Geert Uytterhoeven wrote: > > > > while [ $t_nxt -lt $t_nr ]; do > > - printf "__SYSCALL(%s, sys_ni_syscall, )\n" "${t_nxt}" > > + printf "__SYSCALL(%s,sys_ni_syscall)\n" "${t_nxt}" > > Please ke

[PATCH 0/9] Overview of Arm komeda display driver

2019-01-03 Thread james qian wang (Arm Technology China)
This is the first patchset of ARM new komeda display driver, this patchset added all basic structure of komeda, relationship of DRM-KMS with komeda, for tring to give a brife overview of komeda-driver. komeda is for supporting the ARM display processor D71 and later IPs, Since from D71, Arm displa

Re: [PATCH v2 1/2] binderfs: implement "max" mount option

2019-01-03 Thread Christian Brauner
On Wed, Jan 2, 2019 at 12:32 PM Christian Brauner wrote: > > Since binderfs can be mounted by userns root in non-initial user namespaces > some precautions are in order. First, a way to set a maximum on the number > of binder devices that can be allocated per binderfs instance and second, a > way

Re: [PATCH] tty/n_hdlc: fix sleep in !TASK_RUNNING state warning

2019-01-03 Thread Tetsuo Handa
On 2019/01/03 18:09, Jiri Slaby wrote: > On 02. 01. 19, 16:04, Tetsuo Handa wrote: >> +if (wait_event_interruptible(tty->read_wait, >> + (ret = -EIO, test_bit(TTY_OTHER_CLOSED, &tty->flags)) || >> + (ret = 0, tty_hung_up_p(file)) || >> + (rbuf = n_hdlc_buf_get(&n_hdlc->r

Re: [PATCH] scripts: unify system call table generation scripts

2019-01-03 Thread Geert Uytterhoeven
Hi Firoz, Thanks for your patch! On Wed, Jan 2, 2019 at 3:30 PM Firoz Khan wrote: > System call table generation support is provided for > alpha, ia64, m68k, microblaze, mips, parisc, powerpc, > sh, sparc and xtensa architectures. The implementat- > ions are almost similar across all the above a

  1   2   3   4   5   6   7   >