Re: [PATCH] perf script: Replace zero-length array with flexible-array

2020-05-11 Thread Gustavo A. R. Silva
On Mon, May 11, 2020 at 03:48:55PM -0300, Arnaldo Melo wrote: > >> > >> Can you split this into a kernel part and tools/ one? Also this is > >not > >> really just for "perf script", so please adjust the subject line too > >:-) > >> > > > >Sure thing. :) > > > >Is that OK if I use "perf: " for

Re: [RFC PATCH 00/12] x86: Trenchboot secure late launch Linux kernel support

2020-05-11 Thread Daniel P. Smith
On 3/26/20 4:19 PM, Matthew Garrett wrote: > How does Windows manage this? Retaining access to EFI runtime services > is necessary, and the areas in the memory map marked as runtime > services code or data should be considered part of the TCB and > measured - they're very much not part of the gap.

Re: [RFC PATCH 00/12] x86: Trenchboot secure late launch Linux kernel support

2020-05-11 Thread Daniel P. Smith
On 3/26/20 7:13 PM, Andy Lutomirski wrote: > > Hmm. I don't have any real objection to the kernel supporting this > type of secure launch, but I do have some more questions first. Coming back through the thread to ensure all questions have been responded before a submission patch set is sent.

Re: [PATCH v2 3/7] dt-bindings: remoteproc: qcom: Use memory-region to reference memory

2020-05-11 Thread Rob Herring
On Tue, 21 Apr 2020 20:02:24 +0530, Sibi Sankar wrote: > Use memory-region property to reference mba and mpss memory regions. > > Signed-off-by: Sibi Sankar > --- > .../devicetree/bindings/remoteproc/qcom,q6v5.txt | 8 > 1 file changed, 8 insertions(+) > Reviewed-by: Rob

Re: [PATCH v2 1/7] dt-bindings: remoteproc: qcom: Add SC7180 MPSS support

2020-05-11 Thread Rob Herring
On Tue, 21 Apr 2020 20:02:22 +0530, Sibi Sankar wrote: > Add MPSS PAS support for SC7180 SoCs. > > Reviewed-by: Bjorn Andersson > Signed-off-by: Sibi Sankar > --- > Documentation/devicetree/bindings/remoteproc/qcom,adsp.txt | 3 +++ > 1 file changed, 3 insertions(+) > Acked-by: Rob Herring

Re: [PATCH V3 2/2] dt-bindings: watchdog: Convert i.MX7ULP to json-schema

2020-05-11 Thread Rob Herring
On Tue, 21 Apr 2020 22:21:26 +0800, Anson Huang wrote: > Convert the i.MX7ULP watchdog binding to DT schema format using json-schema. > > Signed-off-by: Anson Huang > --- > Changes since V2: > - drop clocks description; > - drop unused label; > - improve timeout-sec. > --- >

Re: [PATCH 3/3] soundwire: bus_type: add sdw_master_device support

2020-05-11 Thread Pierre-Louis Bossart
+ md = >md; + md->dev.bus = _bus_type; + md->dev.type = _master_type; + md->dev.parent = parent; + md->dev.of_node = parent->of_node; + md->dev.fwnode = fwnode; + md->dev.dma_mask = parent->dma_mask; + + dev_set_name(>dev, "sdw-master-%d",

Re: [PATCH V3 1/2] dt-bindings: watchdog: Convert i.MX to json-schema

2020-05-11 Thread Rob Herring
On Tue, 21 Apr 2020 22:21:25 +0800, Anson Huang wrote: > Convert the i.MX watchdog binding to DT schema format using json-schema. > > Signed-off-by: Anson Huang > --- > Changes since V2: > - drop clocks description; > - drop unused label. > --- >

Re: ftrace: function radeon_init not traceable

2020-05-11 Thread Steven Rostedt
On Sat, 9 May 2020 12:16:30 +0200 Paul Menzel wrote: > Dear Linux folks, > > > Linux master and Linux 5.6.7 (from Debian Sid/unstable) are used. > > Instrumenting Linux’ start-up time, I’d like to trace the init function > of the Radeon graphics driver `radeon_init()` (built as a module). >

Re: [PATCH V2 3/3] dt-bindings: nvmem: Convert MXS OCOTP to json-schema

2020-05-11 Thread Rob Herring
On Tue, 21 Apr 2020 22:09:41 +0800, Anson Huang wrote: > Convert the MXS OCOTP binding to DT schema format using json-schema. > > Signed-off-by: Anson Huang > --- > Changes since V1: > - drop clocks description. > --- > .../devicetree/bindings/nvmem/mxs-ocotp.txt| 24 --- >

Re: [PATCH V2 1/3] dt-bindings: nvmem: Convert i.MX OCOTP to json-schema

2020-05-11 Thread Rob Herring
On Tue, 21 Apr 2020 22:09:39 +0800, Anson Huang wrote: > Convert the i.MX OCOTP binding to DT schema format using json-schema. > > Signed-off-by: Anson Huang > --- > Changes since V1: > - improve compatible; > - drop clocks description. > --- >

Re: [PATCH V2 2/3] dt-bindings: nvmem: Convert i.MX IIM to json-schema

2020-05-11 Thread Rob Herring
On Tue, 21 Apr 2020 22:09:40 +0800, Anson Huang wrote: > Convert the i.MX IIM binding to DT schema format using json-schema. > > Signed-off-by: Anson Huang > --- > Changes since V1: > - drop clocks description. > --- > .../devicetree/bindings/nvmem/imx-iim.txt | 22 - >

Re: [PATCH V2] dt-bindings: gpio: Convert i.MX to json-schema

2020-05-11 Thread Rob Herring
On Tue, 21 Apr 2020 22:03:43 +0800, Anson Huang wrote: > Convert the i.MX GPIO binding to DT schema format using json-schema. > > Signed-off-by: Anson Huang > --- > Changes since V1: > - improve compatible; > - drop clocks description. > --- >

[trivial PATCH -next] treewide: typo: decriptor -> descriptor

2020-05-11 Thread Joe Perches
Just typo fixing, done with: $ git grep -w -i --name-only decriptor | \ xargs sed -r -i -e 's/\b([Dd])ecriptor\b/\1escriptor/' Miscellanea: o Fixed a nearby scartch/scratch typo too. Signed-off-by: Joe Perches --- noticed when looking at a dynamic debug patch drivers/atm/iphase.h

Re: [PATCH V3 2/3] mm/hugetlb: Define a generic fallback for is_hugepage_only_range()

2020-05-11 Thread Mike Kravetz
On 5/10/20 8:14 PM, Anshuman Khandual wrote: > On 05/09/2020 03:52 AM, Mike Kravetz wrote: >> On 5/7/20 8:07 PM, Anshuman Khandual wrote: >> >> Did you try building without CONFIG_HUGETLB_PAGE defined? I'm guessing > > Yes I did for multiple platforms (s390, arm64, ia64, x86, powerpc etc). > >>

Re: [PATCH] Revert "dynamic_debug: Remove unnecessary __used"

2020-05-11 Thread Joe Perches
On Mon, 2020-05-11 at 11:26 -0700, Elliot Berman wrote: > This reverts commit c0d2af637863940b1a4fb208224ca7acb905c39f. > > Some compilers[1] may break dynamic_hex_dump by optimizing the > DYNAMIC_DEBUG_BRANCH check inside __dynamic_func_call_no_desc and completely > removing the dynamic debug

Re: [PATCH v5] x86: bitops: fix build regression

2020-05-11 Thread Brian Gerst
On Fri, May 8, 2020 at 2:32 PM Nick Desaulniers wrote: > > This is easily reproducible via CC=clang+CONFIG_STAGING=y+CONFIG_VT6656=m. > > It turns out that if your config tickles __builtin_constant_p via > differences in choices to inline or not, these statements produce > invalid assembly: > > $

Re: [PATCH V3] dt-bindings: thermal: Convert i.MX8MM to json-schema

2020-05-11 Thread Rob Herring
On Tue, 21 Apr 2020 21:59:04 +0800, Anson Huang wrote: > Convert the i.MX8MM thermal binding to DT schema format using json-schema > > Signed-off-by: Anson Huang > --- > Changes since V2: > - drop unnecessary description for reg/clocks; > - improve compatible; > - use

Re: [PATCH V3 1/3] arm64/mm: Drop __HAVE_ARCH_HUGE_PTEP_GET

2020-05-11 Thread Mike Kravetz
On 5/10/20 9:02 PM, Anshuman Khandual wrote: > On 05/09/2020 03:39 AM, Mike Kravetz wrote: >> On 5/7/20 8:07 PM, Anshuman Khandual wrote: >> I know you made this change in response to Will's comment. And, since >> changes were made to consistently use READ_ONCE in arm64 code, it makes >> sense

Re: [PATCH] perf script: Replace zero-length array with flexible-array

2020-05-11 Thread Arnaldo Melo
On May 11, 2020 2:26:20 PM GMT-03:00, "Gustavo A. R. Silva" wrote: >On Mon, May 11, 2020 at 12:48:12PM -0300, Arnaldo Carvalho de Melo >wrote: >> Em Thu, May 07, 2020 at 02:06:15PM -0500, Gustavo A. R. Silva >escreveu: >> > The current codebase makes use of the zero-length array language >> >

Re: [PATCH] x86: support i386 with Clang

2020-05-11 Thread Nick Desaulniers
On Mon, May 11, 2020 at 11:09 AM Brian Gerst wrote: > This looks like the same issue that we just discussed for bitops.h. > Add the "b" operand size modifier to force it to use the 8-bit > register names (and probably also needs the "w" modifier in the 16-bit > case). While it does feel

Re: [PATCH v4 0/2] Historical Service Time Path Selector

2020-05-11 Thread Gabriel Krisman Bertazi
Mike Snitzer writes: > OK, that concall's issue had nothing to do with needing higher > resolution time (was about IOPs realized with requested-based vs > bio-based). > > Reality is, DM won't need anything higher resolution than jiffies until > block core's interfaces require something other

Re: [PATCH 05/18] mm: memcontrol: convert page cache to a new mem_cgroup_charge() API

2020-05-11 Thread Hugh Dickins
On Mon, 11 May 2020, Johannes Weiner wrote: > > Since commit b56a2d8af914 ("mm: rid swapoff of quadratic complexity"), > shmem_unuse_inode() doesn't have its own copy anymore - it uses > shmem_swapin_page(). > > However, that commit appears to have made shmem's private call to >

Re: [patch V5 part 3 12/29] x86/entry/common: Provide idtentry_enter/exit()

2020-05-11 Thread Thomas Gleixner
Andy Lutomirski writes: > On Mon, May 11, 2020 at 3:59 AM Thomas Gleixner wrote: >> >> Andy Lutomirski writes: >> >> + * Invoked by all exception/interrupt IDTENTRY handlers which are not >> >> + * returning through the paranoid exit path (all except NMI, #DF and the >> >> IST >> >> + *

Re: [PATCH v4 0/2] Historical Service Time Path Selector

2020-05-11 Thread Mike Snitzer
On Mon, May 11 2020 at 1:31pm -0400, Mike Snitzer wrote: > On Mon, May 11 2020 at 1:11pm -0400, > Gabriel Krisman Bertazi wrote: > > > Mike Snitzer writes: > > > > > On Mon, May 11 2020 at 12:39pm -0400, > > > Gabriel Krisman Bertazi wrote: > > > > > >> Hi, > > >> > > >> This fourth

Re: [PATCH v2 4/5] efi/x86: Remove extra headroom for setup block

2020-05-11 Thread Arvind Sankar
On Mon, May 11, 2020 at 06:01:49PM +0100, Mike Lothian wrote: > Hi > > This patch has been causing issues for me since switching to GCC 10.1: > > CALLscripts/checksyscalls.sh > CALLscripts/atomic/check-atomics.sh > DESCEND objtool > CHK include/generated/compile.h > HOSTCC

Re: [PATCH] x86: support i386 with Clang

2020-05-11 Thread Linus Torvalds
On Mon, May 11, 2020 at 11:24 AM Linus Torvalds wrote: > > I guess I should just test it, since I have that clang tree. No, clang doesn't seem to handle it even with __builtin_choose_expr(), and has that invalid input size for constraint 'qi' even when it's in a side that is never chosen.

Re: [PATCH 2/2] dt-bindings: usb: ti,tps6598x: add dt binding doc

2020-05-11 Thread Angus Ainslie
Hi Rob, On 2020-05-11 08:26, Rob Herring wrote: On Wed, 6 May 2020 12:17:18 -0700, Angus Ainslie wrote: Document the tps6598x driver Signed-off-by: Angus Ainslie --- .../devicetree/bindings/usb/ti,tps6598x.yaml | 75 +++ 1 file changed, 75 insertions(+) create mode

Re: [PATCH v2 4/6] dmaengine: dw: Print warning if multi-block is unsupported

2020-05-11 Thread Serge Semin
On Mon, May 11, 2020 at 06:44:14PM +0100, Mark Brown wrote: > On Mon, May 11, 2020 at 04:45:02PM +0300, Serge Semin wrote: > > On Mon, May 11, 2020 at 12:58:13PM +0100, Mark Brown wrote: > > > > That sounds like you need to also impose a limit on the maximum message > > > size as well then, with

Re: [PATCH 2/2] xen/xenbus: let xenbus_map_ring_valloc() return errno values only

2020-05-11 Thread Boris Ostrovsky
On 5/11/20 3:31 AM, Juergen Gross wrote: > Today xenbus_map_ring_valloc() can return either a negative errno > value (-ENOMEM or -EINVAL) or a grant status value. This is a mess as > e.g -ENOMEM and GNTST_eagain have the same numeric value. > > Fix that by turning all grant mapping errors into

Re: [PATCH v3 5/5] lib/test_sysctl: support testing of sysctl. boot parameter

2020-05-11 Thread Luis Chamberlain
On Mon, May 11, 2020 at 01:05:22PM +0200, Vlastimil Babka wrote: > > On 4/27/20 8:39 PM, Luis Chamberlain wrote: > > On Mon, Apr 27, 2020 at 08:04:33PM +0200, Vlastimil Babka wrote: > > Nice, also we could just require > > > > diff --git a/tools/testing/selftests/sysctl/config > >

Re: [PATCH] x86: support i386 with Clang

2020-05-11 Thread Linus Torvalds
On Mon, May 11, 2020 at 11:12 AM Linus Torvalds wrote: > > Would using "__builtin_choose_expr()" be able to avoid this whole issue? We actually have a fair amount of "pick expression based on size", so with a few helper macros we could make the code look better than the case statements too.

Re: WARNING in cgroup_finalize_control

2020-05-11 Thread Marcelo Ricardo Leitner
On Mon, May 11, 2020 at 10:21:13AM -0700, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:a811c1fa Merge git://git.kernel.org/pub/scm/linux/kernel/g.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=16ad1d7010 >

From Honourable Barrister Aziz Dake.

2020-05-11 Thread Aziz Dake
Attn: Sir/Madam I am Honourable Barrister Aziz the personal resident Attorney here in Burkina Faso to Late Mr. Muammar Muhammad Abu Minyar al-Gaddafi of Libya c. 1942 – 20 October 2011. My client Late Mr. Muammar Muhammad Abu Minyar al-Gaddafi c. 1942 – 20 October 2011, was having a deposit sum

Re: [PATCH v4 0/4] Fix some issues about kmod

2020-05-11 Thread Luis Chamberlain
On Mon, May 11, 2020 at 08:59:37PM +0800, Tiezhu Yang wrote: > Hi, > > Could you please apply the following three patches? > > [v4,1/4] selftests: kmod: Use variable NAME in kmod_test_0001() > https://lore.kernel.org/patchwork/patch/1227980/ > > [v4,2/4] kmod: Remove redundant "be an" in the

Re: [PATCH 0/2] memory: tegra: EMC scaling is not a clock provider

2020-05-11 Thread Rob Herring
On Thu, May 07, 2020 at 10:07:18PM +0200, Thierry Reding wrote: > On Wed, May 06, 2020 at 02:32:34PM +0200, Geert Uytterhoeven wrote: > > Hi all, > > > > The Tegra EMC scaling support code is not a clock provider, but merely a > > clock consumer, and thus does not need to include > > . > > >

Re: [PATCH v2 1/2] dt-bindings: memory: Add Baikal-T1 L2-cache Control Block binding

2020-05-11 Thread Rob Herring
On Fri, 8 May 2020 02:07:03 +0300, Serge Semin wrote: > There is a single register provided by the SoC system controller, > which can be used to tune the L2-cache RAM up. It only provides a way > to change the L2-RAM access latencies. So aside from "be,bt1-l2-ctl" > compatible string the device

Re: [PATCH v8 08/10] dt-bindings: ufs: Add DT binding documentation for ufs

2020-05-11 Thread Rob Herring
On Mon, 11 May 2020 07:30:29 +0530, Alim Akhtar wrote: > This patch adds DT binding for samsung ufs hci > > Signed-off-by: Alim Akhtar > --- > .../bindings/ufs/samsung,exynos-ufs.yaml | 92 +++ > 1 file changed, 92 insertions(+) > create mode 100644 >

Re: [PATCH v2 02/12] dt-bindings: i2c: Convert DW I2C binding to DT schema

2020-05-11 Thread Rob Herring
On Sun, May 10, 2020 at 12:50:08PM +0300, Serge Semin wrote: > Modern device tree bindings are supposed to be created as YAML-files > in accordance with dt-schema. This commit replaces Synopsys DW I2C > legacy bare text bindings with YAML file. As before the bindings file > states that the

Re: [PATCH v10 1/3] dt-bindings: i2c: npcm7xx: add NPCM I2C controller

2020-05-11 Thread Rob Herring
On Sun, 10 May 2020 13:23:28 +0300, Tali Perry wrote: > Added device tree binding documentation for Nuvoton BMC > NPCM I2C controller. > > Signed-off-by: Tali Perry > --- > .../bindings/i2c/nuvoton,npcm7xx-i2c.yaml | 62 +++ > 1 file changed, 62 insertions(+) > create mode

Re: [PATCH 2/2] dt-bindings: usb: ti,tps6598x: add dt binding doc

2020-05-11 Thread Rob Herring
On Wed, 6 May 2020 12:17:18 -0700, Angus Ainslie wrote: > Document the tps6598x driver > > Signed-off-by: Angus Ainslie > --- > .../devicetree/bindings/usb/ti,tps6598x.yaml | 75 +++ > 1 file changed, 75 insertions(+) > create mode 100644

Re: [patch V4 part 2 10/18] x86/entry/64: Check IF in __preempt_enable_notrace() thunk

2020-05-11 Thread Thomas Gleixner
Thomas Gleixner writes: > Thomas Gleixner writes: >> Let me stare into that again. > > There are a few preempt_disable/enable() pairs in some of the helper > functions which are called in various places. That means we would have > to chase all of them and provide 'naked' helpers for these

Re: [PATCH v5 1/2] dt-bindings: mtd: Add YAML for Nand Flash Controller support

2020-05-11 Thread Rob Herring
On Thu, May 07, 2020 at 08:15:36AM +0800, Ramuthevar,Vadivel MuruganX wrote: > From: Ramuthevar Vadivel Murugan > > Add YAML file for dt-bindings to support NAND Flash Controller > on Intel's Lightning Mountain SoC. The $subject should some how reflect this is for this SoC. > > Signed-off-by:

[PATCH] Revert "dynamic_debug: Remove unnecessary __used"

2020-05-11 Thread Elliot Berman
This reverts commit c0d2af637863940b1a4fb208224ca7acb905c39f. Some compilers[1] may break dynamic_hex_dump by optimizing the DYNAMIC_DEBUG_BRANCH check inside __dynamic_func_call_no_desc and completely removing the dynamic debug metadata. Thus, there is no dynamic_debug control site to enable or

Re: [PATCH v2 4/6] dmaengine: dw: Print warning if multi-block is unsupported

2020-05-11 Thread Serge Semin
On Mon, May 11, 2020 at 06:48:00PM +0100, Mark Brown wrote: > On Mon, May 11, 2020 at 04:58:53PM +0300, Andy Shevchenko wrote: > > On Mon, May 11, 2020 at 4:48 PM Serge Semin > > > > So the question is of how to export the multi-block LLP flag from DW DMAc > > > driver. Andy? > > > I'm not sure

Re: [PATCH v3] kernel: add panic_on_taint

2020-05-11 Thread Luis Chamberlain
On Sat, May 09, 2020 at 09:57:37AM -0400, Rafael Aquini wrote: > +Trigger Kdump on add_taint() > + > + > +The kernel parameter, panic_on_taint, calls panic() from within add_taint(), > +whenever the value set in this bitmask matches with the bit flag being set > +by

Re: [PATCH v4 00/16] mtd: spi-nor: add xSPI Octal DTR support

2020-05-11 Thread Pratyush Yadav
On 11/05/20 11:27AM, Boris Brezillon wrote: > On Mon, 11 May 2020 09:00:35 + > wrote: > > > Hi, Pratyush, Boris, > > > > On Friday, April 24, 2020 9:43:54 PM EEST Pratyush Yadav wrote: > > > This series adds support for octal DTR flashes in the spi-nor framework, > > > > I'm still

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

2020-05-11 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:2ef96a5b Linux 5.7-rc5 git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=155f171410 kernel config: https://syzkaller.appspot.com/x/.config?x=efdde85c3af536b5 dashboard link:

KMSAN: uninit-value in hash_net6_del

2020-05-11 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:21c44613 kmsan: page_alloc: more assuring comment git tree: https://github.com/google/kmsan.git master console output: https://syzkaller.appspot.com/x/log.txt?x=12f1363210 kernel config:

possible deadlock in sk_diag_fill (2)

2020-05-11 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:e99332e7 gcc-10: mark more functions __init to avoid secti.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1557910c10 kernel config: https://syzkaller.appspot.com/x/.config?x=8a96cf498e199d8b

memory leak in erase_aeb (2)

2020-05-11 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:2ef96a5b Linux 5.7-rc5 git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1383fd3210 kernel config: https://syzkaller.appspot.com/x/.config?x=c566cc03357343ce dashboard link:

Re: [PATCH net] net: broadcom: Imply BROADCOM_PHY for BCMGENET

2020-05-11 Thread Florian Fainelli
On 5/11/2020 12:21 AM, Marek Szyprowski wrote: > Hi Florian, > > On 09.05.2020 00:32, Florian Fainelli wrote: >> The GENET controller on the Raspberry Pi 4 (2711) is typically >> interfaced with an external Broadcom PHY via a RGMII electrical >> interface. To make sure that delays are properly

Re: [PATCH v9 3/8] x86/split_lock: Introduce flag X86_FEATURE_SLD_FATAL and drop sld_state

2020-05-11 Thread Sean Christopherson
On Sat, May 09, 2020 at 10:14:02PM -0700, Andy Lutomirski wrote: > On Fri, May 8, 2020 at 8:03 PM Xiaoyao Li wrote: > > > > Introduce a synthetic feature flag X86_FEATURE_SLD_FATAL, which means > > kernel is in sld_fatal mode if set. > > > > Now sld_state is not needed any more that the state of

RE: [Intel-gfx] [PATCH 2/3] dma-fence: use default wait function for mock fences

2020-05-11 Thread Ruhl, Michael J
>-Original Message- >From: dri-devel On Behalf Of >Ruhl, Michael J >Sent: Monday, May 11, 2020 2:13 PM >To: Daniel Vetter ; LKML ker...@vger.kernel.org> >Cc: Intel Graphics Development ; DRI >Development ; linaro-mm- >s...@lists.linaro.org; Vetter, Daniel ; linux- >me...@vger.kernel.org

Re: [PATCH RESEND] ASoC: Intel: Skylake: Replace zero-length array with flexible-array

2020-05-11 Thread Cezary Rojewski
On 2020-05-11 7:46 PM, Gustavo A. R. Silva wrote: The current codebase makes use of the zero-length array language extension to the C90 standard, but the preferred mechanism to declare variable-length types such as these ones is a flexible array member[1][2], introduced in C99: struct foo {

Re: [PATCH v2 09/10] x86/resctrl: Add arch_has_sparse_bitmaps to explain AMD/Intel CAT difference

2020-05-11 Thread Reinette Chatre
Hi James, On 4/30/2020 10:03 AM, James Morse wrote: > Intel expects the cache bitmap provided by user-space to have on a > single span of 1s, whereas AMD can support bitmaps like 0xf00f. > Arm's MPAM support also allows sparse bitmaps. > > To move resctrl out to /fs/ we need to explain platform

Re: [PATCH 1/2] slimbus: core: Set fwnode for a device when setting of_node

2020-05-11 Thread Saravana Kannan
On Mon, May 11, 2020 at 8:13 AM Srinivas Kandagatla wrote: > > From: Saravana Kannan > > When setting the of_node for a newly created device, also set the > fwnode. This allows fw_devlink feature to work for slimbus devices. > > Also, remove some unnecessary NULL checks. The functions in

Re: [PATCH 2/2] slimbus: core: Fix mismatch in of_node_get/put

2020-05-11 Thread Saravana Kannan
On Mon, May 11, 2020 at 8:13 AM Srinivas Kandagatla wrote: > > From: Saravana Kannan > > Adding missing corresponding of_node_put > > Fixes: 7588a511bdb4 ("slimbus: core: add support to device tree helper") > Signed-off-by: Saravana Kannan > [Srini: added fixes tag, removed NULL check and

Re: [PATCH] perf powerpc: Don't ignore sym-handling.c file

2020-05-11 Thread Sandipan Das
On 09/05/20 4:51 pm, Ravi Bangoria wrote: > Commit 7eec00a74720 ("perf symbols: Consolidate symbol fixup issue") > removed powerpc specific sym-handling.c file from Build. This wasn't > caught by build CI because all functions in this file are declared > as __weak in common code. Fix it. > >

RE: [Intel-gfx] [PATCH 2/3] dma-fence: use default wait function for mock fences

2020-05-11 Thread Ruhl, Michael J
>-Original Message- >From: Intel-gfx On Behalf Of >Daniel Vetter >Sent: Monday, May 11, 2020 5:12 AM >To: LKML >Cc: Daniel Vetter ; Intel Graphics Development >; DRI Development de...@lists.freedesktop.org>; linaro-mm-...@lists.linaro.org; Vetter, Daniel >; Sumit Semwal ; linux-

Re: [PATCH] x86: support i386 with Clang

2020-05-11 Thread Linus Torvalds
On Mon, May 11, 2020 at 10:24 AM Nick Desaulniers wrote: > > Bumping for comment+review. > > On Mon, May 4, 2020 at 4:03 PM Nick Desaulniers > wrote: > > > > - : "qi" ((pto_T__)(val))); \ > > + : "qi" ((unsigned char)(unsigned long)(val))); \ I

Re: [PATCH 05/18] mm: memcontrol: convert page cache to a new mem_cgroup_charge() API

2020-05-11 Thread Johannes Weiner
On Mon, May 11, 2020 at 02:10:58PM -0400, Johannes Weiner wrote: > From fc9dcaf68c8b54baf365cd670fb5780c7f0d243f Mon Sep 17 00:00:00 2001 > From: Johannes Weiner > Date: Mon, 11 May 2020 12:59:08 -0400 > Subject: [PATCH] mm: shmem: remove rare optimization when swapin races with > hole punching

RE: [PATCH 1/3] drm/writeback: don't set fence->ops to default

2020-05-11 Thread Ruhl, Michael J
>-Original Message- >From: dri-devel On Behalf Of >Daniel Vetter >Sent: Monday, May 11, 2020 5:12 AM >To: LKML >Cc: David Airlie ; Daniel Vetter ; >Intel Graphics Development ; DRI >Development ; Thomas Zimmermann >; Vetter, Daniel >Subject: [PATCH 1/3] drm/writeback: don't set

Re: [PATCH 05/18] mm: memcontrol: convert page cache to a new mem_cgroup_charge() API

2020-05-11 Thread Johannes Weiner
On Mon, May 11, 2020 at 09:32:16AM -0700, Hugh Dickins wrote: > On Mon, 11 May 2020, Johannes Weiner wrote: > > On Mon, May 11, 2020 at 12:38:04AM -0700, Hugh Dickins wrote: > > > On Fri, 8 May 2020, Johannes Weiner wrote: > > > > > > > > I looked at this some more, as well as compared it to

[PATCH] clocksource: Add `nopmtmr` to disable ACPI PM Timer at run-time

2020-05-11 Thread Paul Menzel
Initializing the ACPI Power Management Timer takes 33 ms on the ASUS F2A85-M PRO. [0.248373] calling init_acpi_pm_clocksource+0x0/0x197 @ 1 [0.282913] clocksource: acpi_pm: mask: 0xff max_cycles: 0xff, max_idle_ns: 2085701024 ns [0.282916] initcall

Re: [PATCH] x86: support i386 with Clang

2020-05-11 Thread Brian Gerst
On Mon, May 11, 2020 at 1:26 PM Nick Desaulniers wrote: > > Bumping for comment+review. > > On Mon, May 4, 2020 at 4:03 PM Nick Desaulniers > wrote: > > > > GCC and Clang are architecturally different, which leads to subtle > > issues for code that's invalid but clearly dead. This can happen

Re: [PATCH -next v2] locking/osq_lock: annotate a data race in osq_lock

2020-05-11 Thread Paul E. McKenney
On Mon, May 11, 2020 at 06:34:13PM +0100, Will Deacon wrote: > On Mon, May 11, 2020 at 10:29:18AM -0700, Paul E. McKenney wrote: > > On Mon, May 11, 2020 at 05:52:17PM +0100, Will Deacon wrote: > > > On Mon, May 11, 2020 at 09:43:19AM -0700, Paul E. McKenney wrote: > > > > On Mon, May 11, 2020 at

Re: [PATCH v2 1/3] rcu/kasan: record and print call_rcu() call stack

2020-05-11 Thread Paul E. McKenney
On Mon, May 11, 2020 at 10:31:11AM +0800, Walter Wu wrote: > This feature will record first and last call_rcu() call stack and > print two call_rcu() call stack in KASAN report. Suppose that a given rcu_head structure is passed to call_rcu(), then the grace period elapses, the callback is

Re: [PATCH] PCI: endpoint: functions/pci-epf-test: Support slave DMA transfer

2020-05-11 Thread Alan Mikhak
On Thu, May 7, 2020 at 2:44 PM Rob Herring wrote: > > On Fri, May 01, 2020 at 05:29:12PM -0700, Alan Mikhak wrote: > > From: Alan Mikhak > > > > Modify pci_epf_test_data_transfer() to also support slave DMA transfers. > > Adds a direction parameter so caller can specify one of the supported DMA

Re: [RFC PATCH v3 00/12] Integrity Policy Enforcement LSM (IPE)

2020-05-11 Thread Deven Bowers
On 5/10/2020 2:28 AM, Mickaël Salaün wrote: [...snip] Additionally, rules are evaluated top-to-bottom. As a result, any revocation rules, or denies should be placed early in the file to ensure that these rules are evaluated before a rule with "action=ALLOW" is hit. IPE policy is designed

Re: [PATCH 1/2] dt-bindings: chrome: Add cros-ec-typec mux props

2020-05-11 Thread Prashant Malani
Hi Rob, Apologies in case you've already looked at this, but could you kindly review this patch? Thanks, -Prashant On Wed, Apr 22, 2020 at 03:22:39PM -0700, Prashant Malani wrote: > Add properties for mode, orientation and USB data role switches for > Type C connectors. When available, these

Re: [PATCH v4 12/16] mtd: spi-nor: perform a Soft Reset on shutdown

2020-05-11 Thread Pratyush Yadav
On 10/05/20 11:22AM, tudor.amba...@microchip.com wrote: > Hi, Pratyush, > > On Friday, April 24, 2020 9:44:06 PM EEST Pratyush Yadav wrote: > > A Software Reset sequence will return the flash to Power-on-Reset (POR) > > state. It consists of two commands: Soft Reset Enable and Soft Reset. > > >

Re: [PATCH 1/2] xen/xenbus: avoid large structs and arrays on the stack

2020-05-11 Thread Boris Ostrovsky
On 5/11/20 3:31 AM, Juergen Gross wrote: > > static int xenbus_map_ring_valloc_hvm(struct xenbus_device *dev, I wonder whether we can drop valloc/vfree from xenbus_ring_ops' names. > + struct map_ring_valloc *info, >

Re: I disabled more compiler warnings..

2020-05-11 Thread Paul Smith
On Mon, 2020-05-11 at 10:41 -0700, Linus Torvalds wrote: > On Mon, May 11, 2020 at 12:43 AM David Laight < > david.lai...@aculab.com> wrote: > > > > I've not looked inside gmake, but I fixed nmake so that it > > properly used a single job token pipe for the entire (NetBSD) > > build and then

Re: [PATCH 2/4] usb: typec: mux: intel_pmc_mux: Support for static SBU/HSL orientation

2020-05-11 Thread Prashant Malani
Hi Heikki, Thanks a lot for looking into this. Kindly see my response inline: On Mon, May 11, 2020 at 04:32:02PM +0300, Heikki Krogerus wrote: > On Fri, May 08, 2020 at 02:18:44PM +0300, Heikki Krogerus wrote: > > Hi Prashant, > > > > On Thu, May 07, 2020 at 03:40:41PM -0700, Prashant Malani

[PATCH v6] iommu/arm-smmu-qcom: Request direct mapping for modem device

2020-05-11 Thread Sibi Sankar
The modem remote processor has two access paths to DDR. One path is directly connected to DDR and another path goes through an SMMU. The SMMU path is configured to be a direct mapping because it's used by various peripherals in the modem subsystem. Typically this direct mapping is configured

Re: [PATCH 5.4 00/50] 5.4.40-rc1 review

2020-05-11 Thread Guenter Roeck
On 5/11/20 10:21 AM, Ben Hutchings wrote: > On Mon, 2020-05-11 at 10:35 -0600, shuah wrote: >> On 5/8/20 6:35 AM, Greg Kroah-Hartman wrote: >>> This is the start of the stable review cycle for the 5.4.40 release. >>> There are 50 patches in this series, all will be posted as a response >>> to this

Re: [PATCH 5.4 00/50] 5.4.40-rc1 review

2020-05-11 Thread shuah
On 5/11/20 11:21 AM, Ben Hutchings wrote: On Mon, 2020-05-11 at 10:35 -0600, shuah wrote: On 5/8/20 6:35 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 5.4.40 release. There are 50 patches in this series, all will be posted as a response to this one. If

Re: [PATCH v2 4/6] dmaengine: dw: Print warning if multi-block is unsupported

2020-05-11 Thread Mark Brown
On Mon, May 11, 2020 at 04:58:53PM +0300, Andy Shevchenko wrote: > On Mon, May 11, 2020 at 4:48 PM Serge Semin > > So the question is of how to export the multi-block LLP flag from DW DMAc > > driver. Andy? > I'm not sure I understand why do you need this being exported. Just > always supply SG

Re: [PATCH v2 3/3] mm/page_alloc: Keep memoryless cpuless node 0 offline

2020-05-11 Thread Srikar Dronamraju
* David Hildenbrand [2020-05-08 15:42:12]: Hi David, Thanks for the steps to tryout. > > > > #! /bin/bash > > sudo x86_64-softmmu/qemu-system-x86_64 \ > > --enable-kvm \ > > -m 4G,maxmem=20G,slots=2 \ > > -smp sockets=2,cores=2 \ > > -numa node,nodeid=0,cpus=0-1,mem=4G -numa

Re: [PATCH 3/3] nand: brcmnand: support v2.1-v2.2 controllers

2020-05-11 Thread Miquel Raynal
Hi Álvaro, Álvaro Fernández Rojas wrote on Sun, 10 May 2020 17:14:06 +0200: > Tested on Netgear DGND3700v2 (BCM6362 with v2.2 controller). I'd propose to do this in two steps: First rename what needs to be rename to be more accurate without adding anything specific to this version of the IP,

Re: [PATCH v4 2/2] EDAC/Cadence:Add EDAC driver for cadence memory controller

2020-05-11 Thread James Morse
Hi Dhananjay, On 24/04/2020 09:31, Dhananjay Kangude wrote: > Added edac platform driver for Cadence DDR controller which > notify the ecc events based on the single or double bit errors > during memory operations. Is there any public documentation for this device? The way you're using syfs

Re: [PATCH v2 4/6] dmaengine: dw: Print warning if multi-block is unsupported

2020-05-11 Thread Mark Brown
On Mon, May 11, 2020 at 04:45:02PM +0300, Serge Semin wrote: > On Mon, May 11, 2020 at 12:58:13PM +0100, Mark Brown wrote: > > That sounds like you need to also impose a limit on the maximum message > > size as well then, with that you should be able to handle messages up > > to whatever that

Re: [PATCH 1/3] iio: core: wrap IIO device into a iio_dev_priv object

2020-05-11 Thread Jonathan Cameron
On Mon, 11 May 2020 09:16:32 + "Ardelean, Alexandru" wrote: > On Fri, 2020-05-08 at 16:44 +0100, Jonathan Cameron wrote: > > [External] > > > > On Fri, 8 May 2020 16:40:15 +0100 > > Jonathan Cameron wrote: > > > > > On Fri, 8 May 2020 17:13:04 +0300 > > > Alexandru Ardelean wrote: > >

Re: [PATCH 5.4 00/50] 5.4.40-rc1 review

2020-05-11 Thread Ben Hutchings
On Mon, 2020-05-11 at 10:35 -0600, shuah wrote: > On 5/8/20 6:35 AM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.4.40 release. > > There are 50 patches in this series, all will be posted as a response > > to this one. If anyone has any issues with these

[PATCH RESEND] ASoC: Intel: Skylake: Replace zero-length array with flexible-array

2020-05-11 Thread Gustavo A. R. Silva
The current codebase makes use of the zero-length array language extension to the C90 standard, but the preferred mechanism to declare variable-length types such as these ones is a flexible array member[1][2], introduced in C99: struct foo { int stuff; struct boo array[]; }; By

Re: I disabled more compiler warnings..

2020-05-11 Thread Linus Torvalds
On Mon, May 11, 2020 at 12:43 AM David Laight wrote: > > I've not looked inside gmake, but I fixed nmake so that it > properly used a single job token pipe for the entire (NetBSD) > build and then flushed and refilled it with 'abort' tokens > when any command failed. > That made the build stop

Re: [PATCH 1/3] nand: brcmnand: rename v4 registers

2020-05-11 Thread Miquel Raynal
Hi Álvaro, Álvaro Fernández Rojas wrote on Sun, 10 May 2020 17:14:04 +0200: > These registers are also used on v3.3. > > Signed-off-by: Álvaro Fernández Rojas > --- BTW, all your titles should start with "mtd: rawnand: brcmnand: " Thanks, Miquèl

[RFC][PATCH 5/5] objtool: Report missing support for subcommands

2020-05-11 Thread Matt Helsley
The check and orc-related subcommands for objtool are x86-specific. To make this clear to anyone using the tool return a non-zero exit code and indicate in the help and usage output which commands are (and are not) available. Signed-off-by: Matt Helsley --- tools/objtool/Build

[RFC][PATCH 0/5] Enable objtool multiarch build

2020-05-11 Thread Matt Helsley
My previous RFC[1] tried to add recordmcount as the mcount subcommand of objtool. As a necessary first step that required enabling building of objtool for more than the x86 architecture. Some folks have been working on enabling objtool checking functionality for arm64. Rather than repeat that

[RFC][PATCH 4/5] objtool: Enable compilation of objtool for all architectures

2020-05-11 Thread Matt Helsley
objtool currently only compiles for x86 architectures. This is fine as it presently does not support tooling for other architectures. However, we would like to be able to convert other kernel tools to run as objtool sub commands because they too process ELF object files. This will allow us to

[RFC][PATCH 3/5] objtool: Add support for relocations without addends

2020-05-11 Thread Matt Helsley
Currently objtool only collects information about relocations with addends. In recordmcount, which we are about to merge into objtool, some supported architectures do not use rela relocations. Since object files use one or the other the list can be reused. Signed-off-by: Matt Helsley ---

Re: [PATCH v2 0/5] Statsfs: a new ram-based file sytem for Linux kernel statistics

2020-05-11 Thread Paolo Bonzini
Hi Jonathan, I think the remaining sticky point is this one: On 11/05/20 19:02, Jonathan Adams wrote: > I think I'd characterize this slightly differently; we have a set of > statistics which are essentially "in parallel": > > - a variety of statistics, N CPUs they're available for, or > - a

[RFC][PATCH 2/5] objtool: Move struct objtool_file into arch-independent header

2020-05-11 Thread Matt Helsley
The objtool_file structure describing the files objtool works on is not architecture dependent -- it's not x86 only -- and it will be useful for any future commands that might not be part of the check / orc tooling. So we move it from the check.h header into the objtool.h header. Signed-off-by:

[RFC][PATCH 1/5] objtool: Exit successfully when requesting help

2020-05-11 Thread Matt Helsley
When the user requests help it's not an error so do not exit with a non-zero exit code. This is not especially useful for a user but any script that might wish to check that objtool --help is at least available can't rely on the exit code to crudely check that, for example building an objtool

Re: [PATCH -next v2] locking/osq_lock: annotate a data race in osq_lock

2020-05-11 Thread Will Deacon
On Mon, May 11, 2020 at 10:29:18AM -0700, Paul E. McKenney wrote: > On Mon, May 11, 2020 at 05:52:17PM +0100, Will Deacon wrote: > > On Mon, May 11, 2020 at 09:43:19AM -0700, Paul E. McKenney wrote: > > > On Mon, May 11, 2020 at 04:58:13PM +0100, Will Deacon wrote: > > > > On Sat, May 09, 2020 at

Re: [PATCH v1] ASoC: rsnd: add interrupt support for SSI BUSIF buffer

2020-05-11 Thread Mark Brown
On Mon, May 11, 2020 at 06:21:43PM +0100, Mark Brown wrote: > On Mon, 11 May 2020 18:04:15 +0800, Yongbo Zhang wrote: > > SSI BUSIF buffer is possible to overflow or underflow, especially in a > > hypervisor environment. If there is no interrupt support, it will eventually > > lead to errors in

Re: [PATCH 0/3] tools/memory-model, Documentation/litmus-test: Sort out location of litmus test and README

2020-05-11 Thread Paul E. McKenney
On Sun, May 10, 2020 at 04:21:02PM +0900, Akira Yokosawa wrote: > On Sat, 9 May 2020 12:43:30 +0900, Akira Yokosawa wrote: > > Hi Joel, > > > > Sorry for the late response but I've noticed some glitches. > > > > On Sun, 22 Mar 2020 21:57:32 -0400, Joel Fernandes (Google) wrote: > >> Move

Re: [PATCH v4 0/2] Historical Service Time Path Selector

2020-05-11 Thread Mike Snitzer
On Mon, May 11 2020 at 1:11pm -0400, Gabriel Krisman Bertazi wrote: > Mike Snitzer writes: > > > On Mon, May 11 2020 at 12:39pm -0400, > > Gabriel Krisman Bertazi wrote: > > > >> Hi, > >> > >> This fourth version of HST applies the suggestion from Mikulas Patocka > >> to do the ktime_get_ns

Re: INFO: task hung in do_read_cache_page (3)

2020-05-11 Thread Mike Christie
On 5/11/20 8:19 AM, syzbot wrote: > syzbot has bisected this bug to: > > commit 2da22da573481cc4837e246d0eee4d518b3f715e > Author: Mike Christie > Date: Tue Aug 13 16:39:52 2019 + > > nbd: fix zero cmd timeout handling v2 > > bisection log:

<    2   3   4   5   6   7   8   9   10   11   >