Re: [PATCH 4/5] ASoC: amd: added pmops for pci driver

2019-09-30 Thread vishnu
Hi Mark, Thanks for your suggestions. Please ignore all the patches.I will address all the inputs shared by you and resend them. Thanks, Vishnu On 26/09/19 11:54 PM, Mark Brown wrote: > On Fri, Sep 27, 2019 at 04:37:38AM +0530, Ravulapati Vishnu vardhan rao wrote: > >> +static int snd_acp3x_s

Re: [patch for-5.3 0/4] revert immediate fallback to remote hugepages

2019-09-30 Thread Michal Hocko
On Sat 28-09-19 13:59:26, Linus Torvalds wrote: > On Fri, Sep 27, 2019 at 12:48 AM Michal Hocko wrote: > > > > - page = get_page_from_freelist(gfp_mask, order, alloc_flags, ac); > > + if (!order) > > + page = get_page_from_freelist(gfp_mask, order, alloc_flags, > > ac);

Re: [PATCH] compiler: enable CONFIG_OPTIMIZE_INLINING forcibly

2019-09-30 Thread Will Deacon
On Fri, Sep 27, 2019 at 03:38:44PM -0700, Linus Torvalds wrote: > On Fri, Sep 27, 2019 at 3:08 PM Nick Desaulniers > wrote: > > > > So get_user() was passed a bad value/pointer from userspace? Do you > > know which of the tree calls to get_user() from sock_setsockopt() is > > failing? (It's not i

Re: [PATCH] mm/page_alloc: fix a crash in free_pages_prepare()

2019-09-30 Thread Qian Cai
> On Sep 30, 2019, at 7:04 AM, Kirill A. Shutemov wrote: > > Looks like Power also uses the hook. Have you check that this patch will > not affect Power? Yes, I did. Although I did only test radix memory which seems just return immediately in arch_free_page(), I code-review the non-radix mem

Re: [PATCH v4 03/11] mm/gup: Applies counting method to monitor gup_pgd_range

2019-09-30 Thread Kirill A. Shutemov
On Fri, Sep 27, 2019 at 08:40:00PM -0300, Leonardo Bras wrote: > As decribed, gup_pgd_range is a lockless pagetable walk. So, in order to ^ typo -- Kirill A. Shutemov

Re: [PATCH] mfd: intel-lpss: use devm_ioremap_uc for mmio

2019-09-30 Thread Andy Shevchenko
On Fri, Sep 27, 2019 at 11:55:13AM -0600, Tuowen Zhao wrote: > Write-combining BAR for intel-lpss-pci in MTRR causes system hangs > during boot. > > This patch adds devm_ioremap_uc as a new managed wrapper to ioremap_uc > and with it forces the use of strongly uncachable mmio in intel-lpss. > > T

Re: [PATCH] mm/page_alloc: fix a crash in free_pages_prepare()

2019-09-30 Thread Kirill A. Shutemov
On Fri, Sep 27, 2019 at 03:47:03PM -0400, Qian Cai wrote: > On architectures like s390, arch_free_page() could mark the page unused > (set_page_unused()) and any access later would trigger a kernel panic. > Fix it by moving arch_free_page() after all possible accessing calls. Looks like Power also

Re: [PATCH 1/3] ARM: dts: add Netronix E60K02 board common file

2019-09-30 Thread Andreas Kemnade
On Mon, 30 Sep 2019 10:27:15 +0200 Marco Felsch wrote: [..] > > so you disagree with this pattern: > > in .dtsi > > some_device { > >pinctrl-0 = <&pinctrl_some_device>; > > }; > > > > and in .dts (one I sent with this patch series and the tolino/mx6sl one > > is not ready-cooked yet, will

[PATCH] staging: rtl8723bs: hal: Fix memcpy calls

2019-09-30 Thread Denis Efremov
memcpy() in phy_ConfigBBWithParaFile() and PHY_ConfigRFWithParaFile() is called with "src == NULL && len == 0". This is an undefined behavior. Moreover this if pre-condition "pBufLen && (*pBufLen == 0) && !pBuf" is constantly false because it is a nested if in the else brach, i.e., "if (cond) { ...

Re: [PATCH] mm/page_alloc: fix a crash in free_pages_prepare()

2019-09-30 Thread Michal Hocko
On Fri 27-09-19 15:47:03, Qian Cai wrote: > On architectures like s390, arch_free_page() could mark the page unused > (set_page_unused()) and any access later would trigger a kernel panic. > Fix it by moving arch_free_page() after all possible accessing calls. > > Hardware name: IBM 2964 N96 400

Re: [PATCH v2 8/8] KVM: x86: Fold decache_cr3() into cache_reg()

2019-09-30 Thread Vitaly Kuznetsov
Sean Christopherson writes: > Handle caching CR3 (from VMX's VMCS) into struct kvm_vcpu via the common > cache_reg() callback and drop the dedicated decache_cr3(). The name > decache_cr3() is somewhat confusing as the caching behavior of CR3 > follows that of GPRs, RFLAGS and PDPTRs, (handled vi

Re: [PATCH] mfd: intel-lpss: use devm_ioremap_uc for mmio

2019-09-30 Thread Mika Westerberg
Hi, In $subject, use MMIO instead of mmio. On Fri, Sep 27, 2019 at 11:55:13AM -0600, Tuowen Zhao wrote: > Write-combining BAR for intel-lpss-pci in MTRR causes system hangs > during boot. > > This patch adds devm_ioremap_uc as a new managed wrapper to ioremap_uc > and with it forces the use of s

Re: [PATCH v3 2/3] dt-bindings: dma: ti-edma: Document dma-channel-mask for EDMA

2019-09-30 Thread Peter Ujfalusi
On 27/09/2019 23.48, Rob Herring wrote: > On Thu, Sep 26, 2019 at 02:19:53PM +0300, Peter Ujfalusi wrote: >> Similarly to paRAM slots, channels can be used by other cores. >> >> The common dma-channel-mask property can be used for specifying the >> available channels. >> >> Signed-off-by: Peter

Re: KASAN: use-after-free Read in rxrpc_put_peer

2019-09-30 Thread syzbot
syzbot has found a reproducer for the following crash on: HEAD commit:a3c0e7b1 Merge tag 'libnvdimm-fixes-5.4-rc1' of git://git... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1622045d60 kernel config: https://syzkaller.appspot.com/x/.config?x=6ffbfa

Re: BUG: unable to handle kernel NULL pointer dereference in xsk_poll

2019-09-30 Thread syzbot
syzbot has bisected this bug to: commit 77cd0d7b3f257fd0e3096b4fdcff1a7d38e99e10 Author: Magnus Karlsson Date: Wed Aug 14 07:27:17 2019 + xsk: add support for need_wakeup flag in AF_XDP rings bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=17848acd60 start commit:

Re: [PATCH 2/3] perf jevents: Fix period for Intel fixed counters

2019-09-30 Thread Arnaldo Carvalho de Melo
Em Fri, Sep 27, 2019 at 04:35:45PM -0700, Andi Kleen escreveu: > From: Andi Kleen > > The Intel fixed counters use a special table to override the JSON > information. During this override the period information from > the JSON file got dropped, which results in inst_retired.any > and similar runn

Re: [PATCH 1/3] perf script brstackinsn: Fix recovery from LBR/binary mismatch

2019-09-30 Thread Arnaldo Carvalho de Melo
Em Fri, Sep 27, 2019 at 04:35:44PM -0700, Andi Kleen escreveu: > From: Andi Kleen > > When the LBR data and the instructions in a binary do not match the > loop printing instructions could get confused and print a long > stream of bogus instructions. > > The problem was that if the instruction

Re: [PATCH 4/4] perf docs: Correct and clarify jitdump spec

2019-09-30 Thread Arnaldo Carvalho de Melo
Em Fri, Sep 27, 2019 at 09:39:00PM -0700, Stephane Eranian escreveu: > On Fri, Sep 27, 2019 at 6:53 PM Steve MacLean > wrote: > > > > Specification claims latest version of jitdump file format is 2. Current > > jit dump reading code treats 1 as the latest version. > > > > Correct spec to match cod

Re: [PATCH 2/4] perf inject jit: Fix JIT_CODE_MOVE filename

2019-09-30 Thread Arnaldo Carvalho de Melo
Em Sat, Sep 28, 2019 at 01:41:18AM +, Steve MacLean escreveu: > During perf inject --jit, JIT_CODE_MOVE records were injecting MMAP records > with an incorrect filename. Specifically it was missing the ".so" suffix. > > Further the JIT_CODE_LOAD record were silently truncating the > jr->load.c

[Discussion v2] Usecases for the per-task latency-nice attribute

2019-09-30 Thread Parth Shah
Hello everyone, This is the v2 of the discussion started for introducing per-task latency-nice attribute for providing scheduler hints. v1: https://lkml.org/lkml/2019/9/18/555 In brief, we face two challenges with the introduction of such attr. 1. Name: == ( Should be relevant to al

Re: [PATCH v2 0/8] KVM: x86: nVMX GUEST_CR3 bug fix, and then some...

2019-09-30 Thread Reto Buerki
On 9/27/19 11:45 PM, Sean Christopherson wrote: > *sigh* > > v2 was shaping up to be a trivial update, until I started working on > Vitaly's suggestion to add a helper to test for register availability. > > The primary purpose of this series is to fix a CR3 corruption in L2 > reported by Reto Bue

Re: [PATCH v2] perf tools: avoid sample_reg_masks being const + weak

2019-09-30 Thread Arnaldo Carvalho de Melo
Em Sun, Sep 29, 2019 at 11:05:14PM +0200, Jiri Olsa escreveu: > On Fri, Sep 27, 2019 at 02:43:41PM -0700, Ian Rogers wrote: > > Being const + weak breaks with some compilers that constant-propagate > > from the weak symbol. This behavior is outside of the specification, but > > in LLVM is chosen to

Re: [GIT PULL] csky changes for v5.3-rc1

2019-09-30 Thread Guo Ren
Abandoned Sorry for wrong tile, please Ignore this email. On Mon, Sep 30, 2019 at 6:31 PM wrote: > > Hi Linus, > > The following changes since commit 609488bc979f99f805f34e9a32c1e3b71179d10b: > > Linux 5.3-rc2 (2019-07-28 12:47:02 -0700) > > are available in the git repository at: > > https:

[PATCH 2/2] dt-bindings: power: reset: gpio-poweroff: Add 'force-mode' property

2019-09-30 Thread Oleksandr Suvorov
Add 'force-mode' property to allow the driver to load even if someone has registered the pm_power_off hook earlier. Signed-off-by: Oleksandr Suvorov --- .../devicetree/bindings/power/reset/gpio-poweroff.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetre

[PATCH 1/2] power: reset: gpio-poweroff: add force mode

2019-09-30 Thread Oleksandr Suvorov
Property "force-mode" tells the driver to replace previously initialized power-off kernel hook and allows gpio-poweroff to probe and operate successfully in any case. Signed-off-by: Oleksandr Suvorov --- drivers/power/reset/gpio-poweroff.c | 27 +-- 1 file changed, 21 in

[PATCH 0/2] This patch introduces a feature to force gpio-poweroff module

2019-09-30 Thread Oleksandr Suvorov
to register its own pm_power_off handler even if someone has registered this handler earlier. Useful to change a way to power off the system using DT files. Oleksandr Suvorov (2): power: reset: gpio-poweroff: add force mode dt-bindings: power: reset: gpio-poweroff: Add 'force-mode' property

[GIT PULL] csky changes for v5.4-rc1

2019-09-30 Thread guoren
Hi Linus, The following changes since commit 609488bc979f99f805f34e9a32c1e3b71179d10b: Linux 5.3-rc2 (2019-07-28 12:47:02 -0700) are available in the git repository at: https://github.com/c-sky/csky-linux.git tags/csky-for-linus-5.4-rc1 for you to fetch changes up to 9af032a30172e119a5935f

Re: [PATCH] uaccess: Add missing __must_check attributes

2019-09-30 Thread Arnd Bergmann
On Wed, Aug 28, 2019 at 7:38 PM Kees Cook wrote: > > The usercopy implementation comments describe that callers of the > copy_*_user() family of functions must always have their return values > checked. This can be enforced at compile time with __must_check, so add > it where needed. > > Signed-of

[GIT PULL] csky changes for v5.3-rc1

2019-09-30 Thread guoren
Hi Linus, The following changes since commit 609488bc979f99f805f34e9a32c1e3b71179d10b: Linux 5.3-rc2 (2019-07-28 12:47:02 -0700) are available in the git repository at: https://github.com/c-sky/csky-linux.git tags/csky-for-linus-5.4-rc1 for you to fetch changes up to 9af032a30172e119a5935f

Re: [PATCH] tracing/probe: Fix to check the difference of nr_args before adding probe

2019-09-30 Thread Srikar Dronamraju
* Steven Rostedt [2019-09-28 17:11:58]: > On Sat, 28 Sep 2019 02:59:08 -0700 > Masami Hiramatsu wrote: > > > Fix to check the difference of nr_args before adding probe > > on existing probes. This also may set the error log index > > bigger than the number of command parameters. In that case >

arch/arm/crypto/aes-ce-core.S:467: Error: selected processor does not support `movw ip,:lower16:.Lcts_permute_table' in ARM mode

2019-09-30 Thread kbuild test robot
Hi Ard, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 97f9a3c4eee55b0178b518ae7114a6a53372913d commit: c61b1607ed4fbbf2ba7c86f29768cff44a1a88f8 crypto: arm/aes-ce - implement ciphertext stealing for XTS date: 3

[PATCH v8 8/8] media: imx214: Add new control with V4L2_CID_UNIT_CELL_SIZE

2019-09-30 Thread Ricardo Ribalda Delgado
According to the product brief, the unit cell size is 1120 nanometers^2. https://www.sony-semicon.co.jp/products_en/IS/sensor1/img/products/ProductBrief_IMX214_20150428.pdf Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/i2c/imx214.c | 9 + 1 file changed, 9 insertions(+) diff

[PATCH v8 5/8] media: add V4L2_CID_UNIT_CELL_SIZE control

2019-09-30 Thread Ricardo Ribalda Delgado
This control returns the unit cell size in nanometres. The struct provides the width and the height in separated fields to take into consideration asymmetric pixels and/or hardware binning. This control is required for automatic calibration of sensors/cameras. Reviewed-by: Philipp Zabel Signed-of

[PATCH v8 6/8] Documentation: media: Describe V4L2_CID_UNIT_CELL_SIZE

2019-09-30 Thread Ricardo Ribalda Delgado
New control to pass to userspace the width/height of a pixel. Which is needed for calibration and lens selection. Reviewed-by: Philipp Zabel Signed-off-by: Ricardo Ribalda Delgado --- Documentation/media/uapi/v4l/ext-ctrls-image-source.rst | 9 + 1 file changed, 9 insertions(+) diff --

[PATCH v8 4/8] Documentation: media: Document V4L2_CTRL_TYPE_AREA

2019-09-30 Thread Ricardo Ribalda Delgado
A struct v4l2_area containing the width and the height of a rectangular area. Reviewed-by: Jacopo Mondi Reviewed-by: Philipp Zabel Signed-off-by: Ricardo Ribalda Delgado --- Documentation/media/uapi/v4l/vidioc-queryctrl.rst | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentatio

[PATCH v8 7/8] media: v4l2-ctrl: Add new helper v4l2_ctrl_ptr_from_void

2019-09-30 Thread Ricardo Ribalda Delgado
This helper function simplifies the code by not needing a union v4l2_ctrl_ptr and an assignment every time we need to use a ctrl_ptr. Suggested-by: Hans Verkuil Signed-off-by: Ricardo Ribalda Delgado --- include/media/v4l2-ctrls.h | 11 +++ 1 file changed, 11 insertions(+) diff --git a

[PATCH v8 3/8] media: add V4L2_CTRL_TYPE_AREA control type

2019-09-30 Thread Ricardo Ribalda Delgado
From: Ricardo Ribalda Delgado This type contains the width and the height of a rectangular area. Reviewed-by: Jacopo Mondi Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/v4l2-core/v4l2-ctrls.c | 21 ++ include/media/v4l2-ctrls.h | 42 +++

[PATCH v8 1/8] media: v4l2-core: Implement v4l2_ctrl_new_std_compound

2019-09-30 Thread Ricardo Ribalda Delgado
From: Ricardo Ribalda Delgado Currently compound controls do not have a simple way of initializing its values. This results in ofuscated code with type_ops init. This patch introduces a new field on the control with the default value for the compound control that can be set with the brand new v4

[PATCH v8 2/8] Documentation: v4l2_ctrl_new_std_compound

2019-09-30 Thread Ricardo Ribalda Delgado
From: Ricardo Ribalda Delgado Function for initializing compound controls with a default value. Suggested-by: Hans Verkuil Reviewed-by: Jacopo Mondi Signed-off-by: Ricardo Ribalda Delgado --- Documentation/media/kapi/v4l2-controls.rst | 9 + 1 file changed, 9 insertions(+) diff --gi

[PATCH v8 0/8] Implement UNIT_CELL_SIZE control

2019-09-30 Thread Ricardo Ribalda Delgado
UNIT_CELL_SIZE is a control that represents the size of a cell (pixel). We required a bit of boilerplate to add this control :) - New way to init compount controls - New control type Thanks to Hans, Jacopo and Philipp for your help. You might want to see the series at my github repository if need

Re: [PATCH] sh: remove unneeded uapi asm-generic wrappers

2019-09-30 Thread Masahiro Yamada
Hi Sato-san, On Sat, Jul 27, 2019 at 10:47 PM Yoshinori Sato wrote: > > On Tue, 23 Jul 2019 20:30:36 +0900, > Masahiro Yamada wrote: > > > > These are listed in include/uapi/asm-generic/Kbuild, so Kbuild will > > automatically generate them. > > > > Signed-off-by: Masahiro Yamada > > --- > > > >

Re: Urgent Response

2019-09-30 Thread 18163082
Greetings.. pls get back to me i have an important information to share.

[PATCH v7 3/8] media: add V4L2_CTRL_TYPE_AREA control type

2019-09-30 Thread Ricardo Ribalda Delgado
From: Ricardo Ribalda Delgado This type contains the width and the height of a rectangular area. Reviewed-by: Jacopo Mondi Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/v4l2-core/v4l2-ctrls.c | 21 ++ include/media/v4l2-ctrls.h | 42 +++

[PATCH v7 2/8] Documentation: v4l2_ctrl_new_std_compound

2019-09-30 Thread Ricardo Ribalda Delgado
From: Ricardo Ribalda Delgado Function for initializing compound controls with a default value. Suggested-by: Hans Verkuil Reviewed-by: Jacopo Mondi Signed-off-by: Ricardo Ribalda Delgado --- Documentation/media/kapi/v4l2-controls.rst | 9 + 1 file changed, 9 insertions(+) diff --gi

[PATCH v7 1/8] media: v4l2-core: Implement v4l2_ctrl_new_std_compound

2019-09-30 Thread Ricardo Ribalda Delgado
From: Ricardo Ribalda Delgado Currently compound controls do not have a simple way of initializing its values. This results in ofuscated code with type_ops init. This patch introduces a new field on the control with the default value for the compound control that can be set with the brand new v4

[PATCH v7 8/8] media: imx214: Add new control with V4L2_CID_UNIT_CELL_SIZE

2019-09-30 Thread Ricardo Ribalda Delgado
According to the product brief, the unit cell size is 1120 nanometers^2. https://www.sony-semicon.co.jp/products_en/IS/sensor1/img/products/ProductBrief_IMX214_20150428.pdf Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/i2c/imx214.c | 9 + 1 file changed, 9 insertions(+) diff

[PATCH v7 4/8] Documentation: media: Document V4L2_CTRL_TYPE_AREA

2019-09-30 Thread Ricardo Ribalda Delgado
A struct v4l2_area containing the width and the height of a rectangular area. Reviewed-by: Jacopo Mondi Reviewed-by: Philipp Zabel Signed-off-by: Ricardo Ribalda Delgado --- Documentation/media/uapi/v4l/vidioc-queryctrl.rst | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentatio

[PATCH v7 7/8] media: v4l2-ctrl: Add new helper v4l2_ctrl_ptr_from_void

2019-09-30 Thread Ricardo Ribalda Delgado
This helper function simplifies the code by not needing a union v4l2_ctrl_ptr and an assignment every time we need to use a ctrl_ptr. Suggested-by: Hans Verkuil Signed-off-by: Ricardo Ribalda Delgado --- include/media/v4l2-ctrls.h | 11 +++ 1 file changed, 11 insertions(+) diff --git a

[PATCH v7 0/8] Implement UNIT_CELL_SIZE control

2019-09-30 Thread Ricardo Ribalda Delgado
UNIT_CELL_SIZE is a control that represents the size of a cell (pixel). We required a bit of boilerplate to add this control :) - New way to init compount controls - New control type Thanks to Hans, Jacopo and Philipp for your help. You might want to see the series at my github repository if need

[PATCH v7 6/8] Documentation: media: Describe V4L2_CID_UNIT_CELL_SIZE

2019-09-30 Thread Ricardo Ribalda Delgado
New control to pass to userspace the width/height of a pixel. Which is needed for calibration and lens selection. Reviewed-by: Philipp Zabel Signed-off-by: Ricardo Ribalda Delgado --- Documentation/media/uapi/v4l/ext-ctrls-image-source.rst | 9 + 1 file changed, 9 insertions(+) diff --

[PATCH v7 5/8] media: add V4L2_CID_UNIT_CELL_SIZE control

2019-09-30 Thread Ricardo Ribalda Delgado
This control returns the unit cell size in nanometres. The struct provides the width and the height in separated fields to take into consideration asymmetric pixels and/or hardware binning. This control is required for automatic calibration of sensors/cameras. Reviewed-by: Philipp Zabel Signed-of

Re: [RFC PATCH 05/27] containers: Open a socket inside a container

2019-09-30 Thread Eric W. Biederman
Alun Evans writes: > On Fri 27 Sep '19 at 07:46 ebied...@xmission.com (Eric W. Biederman) wrote: >> >> Alun Evans writes: >> >>> Hi Eric, >>> >>> >>> On Tue, 19 Feb 2019, Eric W. Biederman wrote: David Howells writes: > Provide a system call to open a socket inside of a co

Re: [PATCH] firmware: imx: Skip return value check for some special SCU firmware APIs

2019-09-30 Thread Marco Felsch
Hi Anson, On 19-09-30 08:32, Anson Huang wrote: > Hi, Marco > > > On 19-09-30 07:42, Anson Huang wrote: > > > Hi, Leonard > > > > > > > On 2019-09-27 4:20 AM, Anson Huang wrote: > > > > >> On 2019-09-26 1:06 PM, Marco Felsch wrote: > > > > >>> On 19-09-26 08:03, Anson Huang wrote: > > > > > O

Re: [PATCH] arm64: tegra: only map accessible sysram

2019-09-30 Thread Mian Yousaf Kaukab
On Sun, Sep 29, 2019 at 11:28:43PM -0600, Stephen Warren wrote: > On 9/29/19 2:08 PM, Mian Yousaf Kaukab wrote: > > Most of the SysRAM is secure and only accessible by TF-A. > > Don't map this inaccessible memory in kernel. Only map pages > > used by bpmp driver. > > I don't believe this change is

[PATCH 0/1] Add mt7629 pwm support

2019-09-30 Thread Sam Shih
This adds pwm support for MT7629. Separate this dtsi update from pwm patches series, Used: https://patchwork.kernel.org/patch/11160851/ Related dependent driver updates have been merged into maintainer's kernel source tree. Sam Shih (1): arm: dts: mediatek: add mt7629 pwm support arch/arm/bo

[PATCH 1/1] arm: dts: mediatek: add mt7629 pwm support

2019-09-30 Thread Sam Shih
This adds pwm support for MT7629. Used: https://patchwork.kernel.org/patch/11160851/ Signed-off-by: Sam Shih --- arch/arm/boot/dts/mt7629.dtsi | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm/boot/dts/mt7629.dtsi b/arch/arm/boot/dts/mt7629.dtsi index 9608bc2ccb3f..24

Re: [PATCH 00/11] of: dma-ranges fixes and improvements

2019-09-30 Thread Robin Murphy
On 2019-09-30 9:56 am, Thierry Reding wrote: On Mon, Sep 30, 2019 at 01:20:55AM -0700, Christoph Hellwig wrote: On Sun, Sep 29, 2019 at 01:16:20PM +0200, Arnd Bergmann wrote: On a semi-related note, Thierry asked about one aspect of the dma-ranges property recently, which is the behavior of dma

RE: [PATCH 2/5] dt-bindings: mfd: da9062: add regulator voltage selection documentation

2019-09-30 Thread Adam Thomson
On 26 September 2019 15:39, Marco Felsch wrote: > On 19-09-26 14:04, Adam Thomson wrote: > > On 26 September 2019 12:44, Marco Felsch wrote: > > > > > On 19-09-26 10:17, Adam Thomson wrote: > > > > On 26 September 2019 09:10, Marco Felsch wrote: > > > > > > > > > On 19-09-25 16:18, Adam Thomson wr

Re: [PATCH v10 08/12] pwm: mediatek: Add MT7629 compatible string

2019-09-30 Thread Sam Shih
On Mon, 2019-09-30 at 11:36 +0200, Thierry Reding wrote: > On Mon, Sep 30, 2019 at 04:51:08PM +0800, Sam Shih wrote: > > Hi, > > > > On Fri, 2019-09-27 at 13:28 +0200, Thierry Reding wrote: > > > On Wed, Sep 25, 2019 at 10:32:33PM +0800, Sam Shih wrote: > > > > This adds pwm support for MT7629, an

[PATCH -next] can: grcan: use devm_platform_ioremap_resource() to simplify code

2019-09-30 Thread YueHaibing
Use devm_platform_ioremap_resource() to simplify the code a bit. This is detected by coccinelle. Reported-by: Hulk Robot Signed-off-by: YueHaibing --- drivers/net/can/grcan.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/can/grcan.c b/drivers/net/can/grcan.c

Re: [PATCH] scsi: core: Log SCSI command age with errors

2019-09-30 Thread Martin Wilck
Hello Milan, On Mon, 2019-09-30 at 14:35 +0530, Milan P. Gandhi wrote: > On 9/30/19 2:12 PM, Martin Wilck wrote: > > Wrt the enablement of the option on highly loaded systems, I'm not > > sure > > I understand. You need to enable SCSI logging anyway, don't you? > > By default we keep the SCSI de

Re: [PATCH v6 4/7] arm64: dts: meson: g12: Add minimal thermal zone

2019-09-30 Thread Amit Kucheria
On Sat, Sep 28, 2019 at 12:14 AM Guillaume La Roque wrote: > > Add minimal thermal zone for two temperature sensor > One is located close to the DDR and the other one is > located close to the PLLs (between the CPU and GPU) > > Acked-by: Martin Blumenstingl > Tested-by: Christian Hewitt > Tested

[PATCH -next] bfa: Make restart_bfa static

2019-09-30 Thread YueHaibing
Fix sparse warning: drivers/scsi/bfa/bfad.c:1491:1: warning: symbol 'restart_bfa' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: YueHaibing --- drivers/scsi/bfa/bfad.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/scsi/bfa/bfad.c

[PATCH v1] MIPS: dts: ar9331: fix interrupt-controller size

2019-09-30 Thread Oleksij Rempel
It is two registers each of 4 byte. Signed-off-by: Oleksij Rempel --- arch/mips/boot/dts/qca/ar9331.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/boot/dts/qca/ar9331.dtsi b/arch/mips/boot/dts/qca/ar9331.dtsi index 63a9f33aa43e..5cfc9d347826 100644 --- a/arch

Re: [PATCH v6 3/7] arm64: dts: amlogic: g12: add temperature sensor

2019-09-30 Thread Amit Kucheria
On Sat, Sep 28, 2019 at 12:14 AM Guillaume La Roque wrote: > > Add cpu and ddr temperature sensors for G12 Socs > > Reviewed-by: Martin Blumenstingl > Tested-by: Christian Hewitt > Tested-by: Kevin Hilman > Signed-off-by: Guillaume La Roque Reviewed-by: Amit Kucheria > --- > .../boot/dts/

Re: [PATCH v6 2/7] thermal: amlogic: Add thermal driver to support G12 SoCs

2019-09-30 Thread Amit Kucheria
On Sat, Sep 28, 2019 at 12:14 AM Guillaume La Roque wrote: > > Amlogic G12A and G12B SoCs integrate two thermal sensors > with the same design. One is located close to the DDR controller > and the other one is located close to the PLLs (between the CPU and GPU). > > The calibration data for each o

Re: [PATCH] HID: core: add usage_page_preceding flag for hid_concatenate_usage_page()

2019-09-30 Thread Benjamin Tissoires
Hi, [also addingg Nicolas, the author of 58e75155009c] On Mon, Sep 30, 2019 at 10:10 AM Candle Sun wrote: > > From: Candle Sun > > Upstream commit 58e75155009c ("HID: core: move Usage Page concatenation > to Main item") adds support for Usage Page item following Usage items > (such as keyboards

Re: [PATCH v10 08/12] pwm: mediatek: Add MT7629 compatible string

2019-09-30 Thread Thierry Reding
On Mon, Sep 30, 2019 at 04:51:08PM +0800, Sam Shih wrote: > Hi, > > On Fri, 2019-09-27 at 13:28 +0200, Thierry Reding wrote: > > On Wed, Sep 25, 2019 at 10:32:33PM +0800, Sam Shih wrote: > > > This adds pwm support for MT7629, and separate mt7629 compatible string > > > from mt7622 > > > > > > Si

Re: [PATCH v6 1/7] dt-bindings: thermal: Add DT bindings documentation for Amlogic Thermal

2019-09-30 Thread Amit Kucheria
On Sat, Sep 28, 2019 at 12:14 AM Guillaume La Roque wrote: > > Adding the devicetree binding documentation for the Amlogic temperature > sensor found in the Amlogic Meson G12A and G12B SoCs. > > Reviewed-by: Rob Herring > Tested-by: Christian Hewitt > Tested-by: Kevin Hilman > Signed-off-by: Gu

Re: [PATCH v6 1/7] dt-bindings: thermal: Add DT bindings documentation for Amlogic Thermal

2019-09-30 Thread Amit Kucheria
On Sat, Sep 28, 2019 at 12:14 AM Guillaume La Roque wrote: > > Adding the devicetree binding documentation for the Amlogic temperature > sensor found in the Amlogic Meson G12A and G12B SoCs. > > Reviewed-by: Rob Herring > Tested-by: Christian Hewitt > Tested-by: Kevin Hilman > Signed-off-by: Gu

Re: Do we need to correct barriering in circular-buffers.rst?

2019-09-30 Thread Peter Zijlstra
On Fri, Sep 27, 2019 at 01:43:18PM -0700, Nick Desaulniers wrote: > On Fri, Sep 27, 2019 at 5:49 AM Peter Zijlstra wrote: > Oh, in that case I'm less sure (I still don't think so, but I would > love to be proven wrong, preferably with a godbolt link). I think the > best would be to share a godbo

[PATCH v1] net: ag71xx: fix mdio subnode support

2019-09-30 Thread Oleksij Rempel
The driver was working with fixed phy without any noticeable issues. This bug was uncovered by introducing dsa ar9331-switch driver. Signed-off-by: Oleksij Rempel --- drivers/net/ethernet/atheros/ag71xx.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/ether

Re: [PATCH v2 7/8] KVM: x86: Add helpers to test/mark reg availability and dirtiness

2019-09-30 Thread Vitaly Kuznetsov
Sean Christopherson writes: > Add helpers to prettify code that tests and/or marks whether or not a > register is available and/or dirty. > > Suggested-by: Vitaly Kuznetsov > Signed-off-by: Sean Christopherson > --- > arch/x86/kvm/kvm_cache_regs.h | 45 +-- > ar

arch/mips/include/asm/octeon/cvmx-ipd.h:330:27: error: storage size of 'pip_sft_rst' isn't known

2019-09-30 Thread kbuild test robot
Hi Matthew, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 97f9a3c4eee55b0178b518ae7114a6a53372913d commit: 171a9bae68c72f2d1260c3825203760856e6793b staging/octeon: Allow test build on !MIPS date: 9 weeks ago con

[PATCH v1] net: phy: at803x: add ar9331 support

2019-09-30 Thread Oleksij Rempel
Mostly this hardware can work with generic PHY driver, but this change is needed to provided interrupt handling support. Tested with dsa ar9331-switch driver. Signed-off-by: Oleksij Rempel --- drivers/net/phy/at803x.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/ne

Re: [PATCH] perf symbols: Don't split kernel symbols when using kallsyms

2019-09-30 Thread Jiri Olsa
On Sun, Sep 29, 2019 at 08:34:25PM +0800, Wei Li wrote: > If there is ovelapping of vmlinux addresses with modules on a system, > the kernel symbols will be split to unique DSOs([kernel].N) when using > /proc/kallsyms, introduced by commit 2e538c4a1847 ("perf tools: Improve > kernel/modules symbol

Re: [PATCH v2 6/8] KVM: x86: Fold 'enum kvm_ex_reg' definitions into 'enum kvm_reg'

2019-09-30 Thread Vitaly Kuznetsov
Sean Christopherson writes: > Now that indexing into arch.regs is either protected by WARN_ON_ONCE or > done with hardcoded enums, combine all definitions for registers that > are tracked by regs_avail and regs_dirty into 'enum kvm_reg'. Having a > single enum type will simplify additional clean

Re: [PATCH 00/11] of: dma-ranges fixes and improvements

2019-09-30 Thread Nicolas Saenz Julienne
On Thu, 2019-09-26 at 19:24 -0500, Rob Herring wrote: > This series fixes several issues related to 'dma-ranges'. Primarily, > 'dma-ranges' in a PCI bridge node does correctly set dma masks for PCI > devices not described in the DT. A common case needing dma-ranges is a > 32-bit PCIe bridge on a 64

Re: [PATCH v2 5/8] KVM: x86: Add WARNs to detect out-of-bounds register indices

2019-09-30 Thread Vitaly Kuznetsov
Sean Christopherson writes: > Add WARN_ON_ONCE() checks in kvm_register_{read,write}() to detect reg > values that would cause KVM to overflow vcpu->arch.regs. Change the reg > param to an 'int' to make it clear that the reg index is unverified. > Hm, on multiple occasions I was thinking "an en

[PATCH] NFS: Fix O_DIRECT read problem when another write is going on

2019-09-30 Thread Su Yanjun
In xfstests generic/465 tests failed. Because O_DIRECT r/w use async rpc calls, when r/w rpc calls are running concurrently we may read partial data which is wrong. For example as follows. user buffer /\ ||| rpc0 rpc1 When rpc0 runs it encounters eof so return 0, then another wr

Re: [PATCH] scsi: core: Log SCSI command age with errors

2019-09-30 Thread Milan P. Gandhi
On 9/30/19 2:12 PM, Martin Wilck wrote: > On Fri, 2019-09-27 at 13:45 -0400, Laurence Oberman wrote: >> >> Hi Martin >> >> Agreed about log extraction, but turning that on with a busy workload >> in a production environment is not practical. We cant do it with >> systems with 1000's of luns and 100

Re: [Patch 16/16] media: ti-vpe: vpe: don't rely on colorspace member for conversion

2019-09-30 Thread Hans Verkuil
On 9/27/19 8:36 PM, Benoit Parrot wrote: > Up to now VPE was relying on the colorspace value of struct v4l2_format > as an indication to perform color space conversion from YUV to RGB or > not. > > Instead we should used the source/destination fourcc codes as a more > reliable indication to perfor

Re: [PATCH] perf: rework memory accounting in perf_mmap()

2019-09-30 Thread Peter Zijlstra
On Wed, Sep 04, 2019 at 02:46:18PM -0700, Song Liu wrote: > perf_mmap() always increases user->locked_vm. As a result, "extra" could > grow bigger than "user_extra", which doesn't make sense. Here is an > example case: > > Note: Assume "user_lock_limit" is very small. > | # of perf_mmap calls |vma

[PATCH v5 2/2] dt-bindings: at24: add new compatible

2019-09-30 Thread Bartosz Golaszewski
From: Bartosz Golaszewski arch/arm/boot/dts/at91-dvk_som60.dt.yaml uses the compatible string 'giantec,gt24c32a' for an at24 EEPROM with a fallback to 'atmel,24c32'. Add this model as a special case to the binding document. Reported-by: Rob Herring Signed-off-by: Bartosz Golaszewski --- Docu

[PATCH v5 1/2] dt-bindings: at24: convert the binding document to yaml

2019-09-30 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Convert the binding document for at24 EEPROMs from txt to yaml. The compatible property uses a regex pattern to address all the possible combinations of "vendor,model" strings. Signed-off-by: Bartosz Golaszewski [robh: rework compatible schema, fix missing allOf for $r

[PATCH v5 0/2] at24: convert the binding document to yaml

2019-09-30 Thread Bartosz Golaszewski
From: Bartosz Golaszewski The first patch converts the at24 DT binding to yaml. The second adds a new compatible special case that's being used undocumented currently. v1 -> v2: - modified the compatible property: we now list all possible combinations and non-standard types with appropriate fa

Re: [PATCH] tools: bpf: Use !building_out_of_srctree to determine srctree

2019-09-30 Thread Daniel Borkmann
On Thu, Sep 26, 2019 at 07:13:44PM -0600, Shuah Khan wrote: > make TARGETS=bpf kselftest fails with: > > Makefile:127: tools/build/Makefile.include: No such file or directory > > When the bpf tool make is invoked from tools Makefile, srctree is > cleared and the current logic check for srctree eq

Re: [PATCH v2 4/8] KVM: VMX: Optimize vmx_set_rflags() for unrestricted guest

2019-09-30 Thread Vitaly Kuznetsov
Sean Christopherson writes: > Rework vmx_set_rflags() to avoid the extra code need to handle emulation > of real mode and invalid state when unrestricted guest is disabled. The > primary reason for doing so is to avoid the call to vmx_get_rflags(), > which will incur a VMREAD when RFLAGS is not

Re: [PATCH] kasan: fix the missing underflow in memmove and memcpy with CONFIG_KASAN_GENERIC=y

2019-09-30 Thread Marc Gonzalez
On 30/09/2019 06:36, Walter Wu wrote: > bool check_memory_region(unsigned long addr, size_t size, bool write, > unsigned long ret_ip) > { > + if (long(size) < 0) { > + kasan_report_invalid_size(src, dest, len, _RET_IP_); > + retur

Re: [PATCH 00/11] of: dma-ranges fixes and improvements

2019-09-30 Thread Thierry Reding
On Mon, Sep 30, 2019 at 01:20:55AM -0700, Christoph Hellwig wrote: > On Sun, Sep 29, 2019 at 01:16:20PM +0200, Arnd Bergmann wrote: > > On a semi-related note, Thierry asked about one aspect of the dma-ranges > > property recently, which is the behavior of dma_set_mask() and related > > functions w

Re: [PATCH v10 08/12] pwm: mediatek: Add MT7629 compatible string

2019-09-30 Thread Sam Shih
Hi, On Fri, 2019-09-27 at 13:28 +0200, Thierry Reding wrote: > On Wed, Sep 25, 2019 at 10:32:33PM +0800, Sam Shih wrote: > > This adds pwm support for MT7629, and separate mt7629 compatible string > > from mt7622 > > > > Signed-off-by: Sam Shih > > --- > > drivers/pwm/pwm-mediatek.c | 6 ++

Re: [PATCH v2 3/8] KVM: VMX: Consolidate to_vmx() usage in RFLAGS accessors

2019-09-30 Thread Vitaly Kuznetsov
Sean Christopherson writes: > Capture struct vcpu_vmx in a local variable to improve the readability > of vmx_{g,s}et_rflags(). > > No functional change intended. > > Signed-off-by: Sean Christopherson > --- > arch/x86/kvm/vmx/vmx.c | 20 +++- > 1 file changed, 11 insertions(+),

Re: [PATCH] scsi: core: Log SCSI command age with errors

2019-09-30 Thread Martin Wilck
On Fri, 2019-09-27 at 13:45 -0400, Laurence Oberman wrote: > > Hi Martin > > Agreed about log extraction, but turning that on with a busy workload > in a production environment is not practical. We cant do it with > systems with 1000's of luns and 1000's of IOPS/sec. > Also second resolution is g

Re: Lease semantic proposal

2019-09-30 Thread Dave Chinner
On Wed, Sep 25, 2019 at 04:46:03PM -0700, Ira Weiny wrote: > On Tue, Sep 24, 2019 at 08:26:20AM +1000, Dave Chinner wrote: > > Hence, AFIACT, the above definition of a F_RDLCK|F_LAYOUT lease > > doesn't appear to be compatible with the semantics required by > > existing users of layout leases. > >

Re: [PATCH 1/1] blk-mq: Inline status checkers

2019-09-30 Thread Christoph Hellwig
On Mon, Sep 30, 2019 at 11:25:49AM +0300, Pavel Begunkov (Silence) wrote: > From: Pavel Begunkov > > blk_mq_request_completed() and blk_mq_request_started() are > short, inline it. > > Signed-off-by: Pavel Begunkov > --- > block/blk-mq.c | 12 > block/blk-mq.h | 9

Re: [Patch 07/16] media: ti-vpe: vpe: fix a v4l2-compliance failure causing a kernel panic

2019-09-30 Thread Hans Verkuil
On 9/27/19 8:36 PM, Benoit Parrot wrote: > v4l2-compliance fails with this message: > >warn: v4l2-test-formats.cpp(717): \ > TRY_FMT cannot handle an invalid pixelformat. >test VIDIOC_TRY_FMT: FAIL > > This causes the following kernel panic: > > Unable to handle kernel paging reque

RE: [PATCH] firmware: imx: Skip return value check for some special SCU firmware APIs

2019-09-30 Thread Anson Huang
Hi, Marco > On 19-09-30 07:42, Anson Huang wrote: > > Hi, Leonard > > > > > On 2019-09-27 4:20 AM, Anson Huang wrote: > > > >> On 2019-09-26 1:06 PM, Marco Felsch wrote: > > > >>> On 19-09-26 08:03, Anson Huang wrote: > > > > On 19-09-25 18:07, Anson Huang wrote: > > > >> The SCU firmware

Re: [PATCH v2] PCI: mobiveil: Fix csr_read/write build issue

2019-09-30 Thread Andrew Murray
On Sun, Sep 29, 2019 at 09:35:05AM +0800, Kefeng Wang wrote: > The riscv has csr_read/write macro, see arch/riscv/include/asm/csr.h, > the same function naming will cause build error, using such generic names > in a driver is bad, rename csr_[read,write][l,] to mobiveil_csr_read/write > to fix it.

Re: [PATCH 1/3] ARM: dts: add Netronix E60K02 board common file

2019-09-30 Thread Marco Felsch
Hi Andreas, On 19-09-27 21:08, Andreas Kemnade wrote: > Hi Marco, > > On Fri, 27 Sep 2019 11:47:21 +0200 > Marco Felsch wrote: > > > Hi Andreas, > > > > thanks for the patch. > > > thanks for the quick review. Most of your comments are clear. > > [...] > > > + wifi_pwrseq: wifi_pwrseq { > >

Re: [PATCH] ARM: fix __get_user_check() in case uaccess_* calls are not inlined

2019-09-30 Thread Masahiro Yamada
Hi Arnd, On Mon, Sep 30, 2019 at 4:57 PM Arnd Bergmann wrote: > > On Mon, Sep 30, 2019 at 8:01 AM Masahiro Yamada > wrote: > > > > KernelCI reports that bcm2835_defconfig is no longer booting since > > commit ac7c3e4ff401 ("compiler: enable CONFIG_OPTIMIZE_INLINING > > forcibly"): > > > > http

<    2   3   4   5   6   7   8   >