Re: [PATCH AUTOSEL 5.6 16/62] most: core: use function subsys_initcall()

2020-05-14 Thread Greg Kroah-Hartman
On Thu, May 14, 2020 at 02:51:01PM -0400, Sasha Levin wrote: > From: Christian Gromm > > [ Upstream commit 5e56bc06e18dfc8a66180fa369384b36e2ab621a ] > > This patch replaces function module_init() with subsys_initcall(). > It is needed to ensure that the core module of the driver is > initialize

[PATCH 0/8] Copy hashmap to libapi, use in perf expr

2020-05-14 Thread Ian Rogers
Perf's expr code currently builds an array of strings then removes duplicates. The array is larger than necessary and has recently been increased in size. When this was done it was commented that a hashmap would be preferable. libbpf has a hashmap but libbpf isn't currently required to build perf.

[PATCH 3/8] libbpf hashmap: Fix signedness warnings

2020-05-14 Thread Ian Rogers
Fixes the following warnings: hashmap.c: In function ‘hashmap__clear’: hashmap.h:150:20: error: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Werror=sign-compare] 150 | for (bkt = 0; bkt < map->cap; bkt++)\ hashmap.c: In func

[PATCH 5/8] tools lib/api: Copy libbpf hashmap to libapi

2020-05-14 Thread Ian Rogers
Allow use of hashmap in more than just libbpf, where it isn't an exported symbol. Place in libapi as that is a required part of tools/perf whereas libbpf is currently optional. Modify perf's check-headers.sh script to check that the files are kept in sync, in the same way kernel headers are checked

[PATCH 7/8] perf test: Improve pmu event metric testing

2020-05-14 Thread Ian Rogers
Break pmu-events test into 2 and add a test to verify that all pmu metric expressions simply parse. Try to parse all metric ids/events, skip/warn if metrics for the current architecture fail to parse. To support warning for a skip, and an ability for a subtest to describe why it skips. Tested on p

[PATCH 2/8] libbpf hashmap: Remove unused #include

2020-05-14 Thread Ian Rogers
Remove #include of libbpf_internal.h that is unused. Discussed in this thread: https://lore.kernel.org/lkml/caef4bzzrmieds_8r8g4vaaewvjzpb4xylnpf0x2vny8otzk...@mail.gmail.com/ Signed-off-by: Ian Rogers --- tools/lib/bpf/hashmap.h | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/lib/bpf/h

[PATCH 8/8] perf expr: Migrate expr ids table to a hashmap

2020-05-14 Thread Ian Rogers
Use a hashmap between a char* string and a double* value. While bpf's hashmap entries are size_t in size, we can't guarantee sizeof(size_t) >= sizeof(double). Avoid a memory allocation when gathering ids by making 0.0 a special value encoded as NULL. Original map suggestion by Andi Kleen: https://

[PATCH 6/8] perf test: Provide a subtest callback to ask for the reason for skipping a subtest

2020-05-14 Thread Ian Rogers
Now subtests can inform why a test was skipped. The upcoming patch improvint PMU event metric testing will use it. Signed-off-by: Ian Rogers Cc: Adrian Hunter Cc: Alexander Shishkin Cc: Andi Kleen Cc: Jin Yao Cc: Jiri Olsa Cc: John Garry Cc: Kajol Jain Cc: Kan Liang Cc: Leo Yan Cc: Mark

[PATCH 1/8] libbpf: Fix memory leak and possible double-free in hashmap__clear

2020-05-14 Thread Ian Rogers
From: Andrii Nakryiko Fix memory leak in hashmap_clear() not freeing hashmap_entry structs for each of the remaining entries. Also NULL-out bucket list to prevent possible double-free between hashmap__clear() and hashmap__free(). Running test_progs-asan flavor clearly showed this problem. Repor

[PATCH 4/8] libbpf hashmap: Localize static hashmap__* symbols

2020-05-14 Thread Ian Rogers
Localize the hashmap__* symbols in libbpf.a. To allow for a version in libapi. Before: $ nm libbpf.a ... 0002088a t hashmap_add_entry 0001712a t hashmap__append 00020aa3 T hashmap__capacity 0002099c T hashmap__clear 000208b3 t hashmap_del_entry 00020

Re: [PATCH v2 0/5] mtd: spi-nor: Add support for Octal 8D-8D-8D mode

2020-05-14 Thread Pratyush Yadav
Hi Mason, On 15/05/20 10:26AM, masonccy...@mxic.com.tw wrote: > > Hi Pratyush, > > > > > > I can't apply your patches to enable xSPI Octal mode for > > > > > mx25uw51245g because your patches set up Octal protocol first and > > > > > then using Octal protocol to write Configuration Register 2(

Re: [PATCH 5/5] PCI: uniphier: Add error message when failed to get phy

2020-05-14 Thread kbuild test robot
Hi Kunihiko, I love your patch! Perhaps something to improve: [auto build test WARNING on pci/next] [also build test WARNING on robh/for-next v5.7-rc5 next-20200514] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use

Re: [PATCH v2 07/10] block: use sectors_to_npage() and PAGE_SECTORS to clean up code

2020-05-14 Thread Leizhen (ThunderTown)
On 2020/5/15 12:19, Matthew Wilcox wrote: > On Thu, May 07, 2020 at 03:50:57PM +0800, Zhen Lei wrote: >> +++ b/block/blk-settings.c >> @@ -150,7 +150,7 @@ void blk_queue_max_hw_sectors(struct request_queue *q, >> unsigned int max_hw_secto >> unsigned int max_sectors; >> >> if ((max_

Re: [PATCH] xhci: Fix log mistake of xhci_start

2020-05-14 Thread Mathias Nyman
On 15.5.2020 8.45, jiahao wrote: > It is obvious that XCHI_MAX_HALT_USEC is usec, > not milliseconds; Replace 'milliseconds' with > 'usec' of the debug message. > > Signed-off-by: jiahao > --- > drivers/usb/host/xhci.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/dr

Possibility of conflicting memory types in lazier TLB mode?

2020-05-14 Thread Nicholas Piggin
Hi Rik, Commit 145f573b89a62 ("Make lazy TLB mode lazier"). A couple of questions here (and I don't know the x86 architecture too well let alone the ASID stuff, so bear with me). I'm assuming, and it appears to be in the x86 manual that you can't map the same physical page with conflicting mem

Re: [PATCH v2 1/6] dt-bindings: mfd: add Khadas Microcontroller bindings

2020-05-14 Thread Amit Kucheria
On Tue, May 12, 2020 at 6:56 PM Neil Armstrong wrote: > > This Microcontroller is present on the Khadas VIM1, VIM2, VIM3 and Edge > boards. > > It has multiple boot control features like password check, power-on > options, power-off control and system FAN control on recent boards. > > Signed-off-b

Re: [PATCH v2 06/10] mm/swap: use npage_to_sectors() and PAGE_SECTORS to clean up code

2020-05-14 Thread Leizhen (ThunderTown)
On 2020/5/15 12:14, Matthew Wilcox wrote: > On Thu, May 07, 2020 at 03:50:56PM +0800, Zhen Lei wrote: >> +++ b/mm/page_io.c >> @@ -38,7 +38,7 @@ static struct bio *get_swap_bio(gfp_t gfp_flags, >> >> bio->bi_iter.bi_sector = map_swap_page(page, &bdev); >> bio_set_dev(

Re: [PATCH] ceph: don't return -ESTALE if there's still an open file

2020-05-14 Thread Amir Goldstein
+CC: fstests On Thu, May 14, 2020 at 4:15 PM Jeff Layton wrote: > > On Thu, 2020-05-14 at 13:48 +0100, Luis Henriques wrote: > > On Thu, May 14, 2020 at 08:10:09AM -0400, Jeff Layton wrote: > > > On Thu, 2020-05-14 at 12:14 +0100, Luis Henriques wrote: > > > > Similarly to commit 03f219041fdb ("c

Re: [PATCH v2 3/6] thermal: add support for the MCU controlled FAN on Khadas boards

2020-05-14 Thread Amit Kucheria
On Tue, May 12, 2020 at 6:56 PM Neil Armstrong wrote: > > The new Khadas VIM2 and VIM3 boards controls the cooling fan via the > on-board microcontroller. > > This implements the FAN control as thermal devices and as cell of the Khadas > MCU MFD driver. > > Signed-off-by: Neil Armstrong > --- >

Re: [PATCH v2 5/6] dmaengine: dw: Introduce max burst length hw config

2020-05-14 Thread Vinod Koul
On 12-05-20, 22:12, Andy Shevchenko wrote: > On Tue, May 12, 2020 at 05:08:20PM +0300, Serge Semin wrote: > > On Fri, May 08, 2020 at 02:41:53PM +0300, Andy Shevchenko wrote: > > > On Fri, May 08, 2020 at 01:53:03PM +0300, Serge Semin wrote: > > > > IP core of the DW DMA controller may be synthesiz

Re: [RFC PATCH 1/8] qaic: Add skeleton driver

2020-05-14 Thread Greg KH
On Thu, May 14, 2020 at 06:43:06PM -0600, Jeffrey Hugo wrote: > On 5/14/2020 8:07 AM, Jeffrey Hugo wrote: > > +#define QAIC_NAME "Qualcomm Cloud AI 100" > > > +static struct pci_driver qaic_pci_driver = { > > + .name = QAIC_NAME, > > A question about the community's preference

Re: [PATCH 4/4] ipv6: symbol_get to access a sit symbol

2020-05-14 Thread Christoph Hellwig
On Thu, May 14, 2020 at 05:53:55PM -0700, David Miller wrote: > You're not undoing one, but two levels of abstraction here. > > Is this "ipip6_tunnel_locate()" call part of the SIT ioctl implementation? Yes. Take a look at the convoluted case handling the SIOCADDTUNNEL and SIOCCHGTUNNEL commands

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

2020-05-14 Thread Vinod Koul
Hi Serge, On 12-05-20, 15:42, Serge Semin wrote: > Vinod, > > Could you join the discussion for a little bit? > > In order to properly fix the problem discussed in this topic, we need to > introduce an additional capability exported by DMA channel handlers on > per-channel > basis. It must be a

Re: [PATCH v7 2/4] usb: dwc3: qcom: Add interconnect support in dwc3 driver

2020-05-14 Thread Felipe Balbi
Hi, Georgi Djakov writes: >> Sandeep Maheswaram writes: >>> +static int dwc3_qcom_interconnect_init(struct dwc3_qcom *qcom) >>> +{ >>> + struct device *dev = qcom->dev; >>> + int ret; >>> + >>> + if (!device_is_bound(&qcom->dwc3->dev)) >>> +

Re: [f2fs-dev] [PATCH] f2fs: flush dirty meta pages when flushing them

2020-05-14 Thread Chao Yu
On 2020/5/15 10:15, Jaegeuk Kim wrote: > Let's guarantee flusing dirty meta pages to avoid infinite loop. What's the root cause? Race case or meta page flush failure? Thanks, > > Signed-off-by: Jaegeuk Kim > --- > fs/f2fs/checkpoint.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(

Re: [PATCH v2 06/10] mm/swap: use npage_to_sectors() and PAGE_SECTORS to clean up code

2020-05-14 Thread Leizhen (ThunderTown)
On 2020/5/15 12:06, Matthew Wilcox wrote: > On Thu, May 07, 2020 at 03:50:56PM +0800, Zhen Lei wrote: >> @@ -266,7 +266,7 @@ int swap_writepage(struct page *page, struct >> writeback_control *wbc) >> >> static sector_t swap_page_sector(struct page *page) >> { >> -return (sector_t)__page

[PATCH] mmc: sdhci-of-dwcmshc: add suspend/resume support

2020-05-14 Thread Jisheng Zhang
Add dwcmshc specific system-level suspend and resume support. Signed-off-by: Jisheng Zhang --- drivers/mmc/host/sdhci-of-dwcmshc.c | 43 + 1 file changed, 43 insertions(+) diff --git a/drivers/mmc/host/sdhci-of-dwcmshc.c b/drivers/mmc/host/sdhci-of-dwcmshc.c index a

[PATCH v8] Add matrix keypad driver support for Mediatek SoCs

2020-05-14 Thread Fengping Yu
Change since v7: - specify compatible property as const string - add maxItem in required property - squash keypad example nodes - sort header file with alphabetic order - align all define values and add MTK_ prefix to make more uniform - change debounce value to default 16ms if not specified in dt

Re: [PATCH] crypto: blake2b - Fix clang optimization for ARMv7-M

2020-05-14 Thread Herbert Xu
On Tue, May 05, 2020 at 03:53:45PM +0200, Arnd Bergmann wrote: > When building for ARMv7-M, clang-9 or higher tries to unroll some loops, > which ends up confusing the register allocator to the point of generating > rather bad code and using more than the warning limit for stack frames: > > warnin

Re: [PATCH 0/4] crypto: constify struct debugfs_reg32

2020-05-14 Thread Herbert Xu
On Sat, May 09, 2020 at 12:34:58AM +0200, Rikard Falkeborn wrote: > A small series constifying struct debugfs_reg32 where it can be made > const. There's no dependency between the patches. > > Rikard Falkeborn (4): > crypto: ccree - constify struct debugfs_reg32 > crypto: hisilicon/hpre - cons

[PATCH 5.7-rc5] HID: apple: Swap the Fn and Left Control keys on Apple keyboards

2020-05-14 Thread free5lot
This patch allows users to swap the Fn and left Control keys on all Apple keyboards: internal (e.g. Macbooks) and external (both wired and wireless). The patch adds a new hid-apple module param: swap_fn_leftctrl (off by default). Signed-off-by: Zakhar Semenov --- This patch was created to elimin

Re: [PATCH v2 3/6] dmaengine: dw: Set DMA device max segment size parameter

2020-05-14 Thread Vinod Koul
On 12-05-20, 15:35, Andy Shevchenko wrote: > On Tue, May 12, 2020 at 12:16:22AM +0300, Serge Semin wrote: > > On Fri, May 08, 2020 at 02:21:52PM +0300, Andy Shevchenko wrote: > > > On Fri, May 08, 2020 at 01:53:01PM +0300, Serge Semin wrote: > > > > Maximum block size DW DMAC configuration correspo

[git pull] drm fixes for 5.7-rc6

2020-05-14 Thread Dave Airlie
Hey Linus, As mentioned last week an i915 PR came in late, but I left it, so the i915 bits of this cover 2 weeks, which is why it's likely a bit larger than usual. Otherwise it's mostly amdgpu fixes, one tegra fix, one meson fix. Regards, Dave. drm-fixes-2020-05-15: drm fixes for v5.7-rc6 i915

Re: [PATCH v7 2/4] usb: dwc3: qcom: Add interconnect support in dwc3 driver

2020-05-14 Thread Georgi Djakov
Hi, On 5/15/20 08:54, Felipe Balbi wrote: > > Hi, > > Georgi Djakov writes: >> On 5/14/20 20:13, Matthias Kaehlcke wrote: >>> On Thu, May 14, 2020 at 02:30:28PM +0300, Felipe Balbi wrote: Felipe Balbi writes: > Hi, > > Sandeep Maheswaram writes: >> +static int dwc3_q

Re: [PATCH v2 2/6] dt-bindings: dma: dw: Add max burst transaction length property

2020-05-14 Thread Vinod Koul
On 12-05-20, 15:38, Andy Shevchenko wrote: > On Tue, May 12, 2020 at 02:49:46PM +0300, Serge Semin wrote: > > On Tue, May 12, 2020 at 12:08:04PM +0300, Andy Shevchenko wrote: > > > On Tue, May 12, 2020 at 12:35:31AM +0300, Serge Semin wrote: > > > > On Tue, May 12, 2020 at 12:01:38AM +0300, Andy Sh

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

2020-05-14 Thread Herbert Xu
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 { >int stu

Re: [PATCH] perf evsel: Get group fd from CPU0 for system wide event

2020-05-14 Thread Jin, Yao
Hi Jiri, On 5/9/2020 3:37 PM, Jin, Yao wrote: Hi Jiri, On 5/5/2020 8:03 AM, Jiri Olsa wrote: On Sat, May 02, 2020 at 10:33:59AM +0800, Jin, Yao wrote: SNIP @@ -1461,6 +1461,9 @@ static int get_group_fd(struct evsel *evsel, int cpu, int thread)    BUG_ON(!leader->core.fd);    fd = F

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

2020-05-14 Thread Stephen Rothwell
Hi all, After merging the tip tree, today's linux-next build (x86_64 allmodconfig) failed like this: arch/x86/kernel/ftrace.c: In function 'set_ftrace_ops_ro': arch/x86/kernel/ftrace.c:444:32: error: 'ftrace_epilogue' undeclared (first use in this function) 444 |end_offset = (unsigned long

Re: [PATCH] Revert "mmc: sdhci-xenon: add runtime pm support and reimplement standby"

2020-05-14 Thread Jisheng Zhang
On Thu, 14 May 2020 12:18:58 +0200 Ulf Hansson wrote: > > > On Thu, 14 May 2020 at 07:45, Jisheng Zhang > wrote: > > > > On Wed, 13 May 2020 14:15:21 +0200 Ulf Hansson wrote: > > > > > > > > > > > On Wed, 13 May 2020 at 11:47, Jisheng Zhang > > > wrote: > > > > > > > > This reverts commi

Re: [PATCH 7/9] x86: Add support for function granular KASLR

2020-05-14 Thread Baoquan He
On 04/15/20 at 02:04pm, Kristen Carlson Accardi wrote: ... > diff --git a/arch/x86/boot/compressed/misc.c b/arch/x86/boot/compressed/misc.c > index 9652d5c2afda..2e108fdc7757 100644 > --- a/arch/x86/boot/compressed/misc.c > +++ b/arch/x86/boot/compressed/misc.c > @@ -26,9 +26,6 @@ > * it is not s

Re: [PATCH v7 2/4] usb: dwc3: qcom: Add interconnect support in dwc3 driver

2020-05-14 Thread Felipe Balbi
Hi, Georgi Djakov writes: > On 5/14/20 20:13, Matthias Kaehlcke wrote: >> On Thu, May 14, 2020 at 02:30:28PM +0300, Felipe Balbi wrote: >>> Felipe Balbi writes: >>> Hi, Sandeep Maheswaram writes: > +static int dwc3_qcom_interconnect_init(struct dwc3_qcom *qcom) > +{

Re: [patch V4 part 5 01/31] genirq: Provide irq_enter/exit_rcu()

2020-05-14 Thread Andy Lutomirski
On Tue, May 5, 2020 at 7:16 AM Thomas Gleixner wrote: > > irq_enter()/exit() include the RCU handling. To properly separate the RCU > handling provide variants which contain only the non-RCU related > functionality. Acked-by: Andy Lutomirski

[PATCH v11 2/2] drm/bridge: anx7625: Add anx7625 MIPI DSI/DPI to DP bridge driver

2020-05-14 Thread Xin Ji
The ANX7625 is an ultra-low power 4K Mobile HD Transmitter designed for portable device. It converts MIPI DSI/DPI to DisplayPort 1.3 4K. The ANX7625 can support both USB Type-C PD feature and MIPI DSI/DPI to DP feature. This driver only enabled MIPI DSI/DPI to DP feature. Signed-off-by: Xin Ji -

Re: [PATCH V2] dma: zynqmp_dma: Move list_del inside zynqmp_dma_free_descriptor.

2020-05-14 Thread Vinod Koul
On 06-05-20, 12:28, Rafał Hibner wrote: > List elements are not formally removed from list during zynqmp_dma_reset. Applied after fixing subsystem name to dmaengine, thanks -- ~Vinod

[PATCH v11 1/2] dt-bindings: drm/bridge: anx7625: MIPI to DP transmitter DT schema

2020-05-14 Thread Xin Ji
anx7625: MIPI to DP transmitter DT schema Signed-off-by: Xin Ji --- .../bindings/display/bridge/analogix,anx7625.yaml | 95 ++ 1 file changed, 95 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/bridge/analogix,anx7625.yaml diff --git a/Document

[PATCH v11 0/2] Add initial support for slimport anx7625

2020-05-14 Thread Xin Ji
Hi all, The following series add support for the Slimport ANX7625 transmitter, a ultra-low power Full-HD 4K MIPI to DP transmitter designed for portable device. This is the v11 version, any mistakes, please let me know, I will fix it in the next series. Change history: v11: Fix comments from Ro

Re: [PATCH] kgdb: Fix broken handling of printk() in NMI context

2020-05-14 Thread Sumit Garg
Hi Petr, On Thu, 14 May 2020 at 14:13, Petr Mladek wrote: > > On Wed 2020-05-13 19:04:48, Sumit Garg wrote: > > On Tue, 12 May 2020 at 19:55, Daniel Thompson > > wrote: > > > > > > On Tue, May 12, 2020 at 02:18:34PM +0530, Sumit Garg wrote: > > > > Since commit 42a0bb3f7138 ("printk/nmi: generic

[PATCH] xhci: Fix log mistake of xhci_start

2020-05-14 Thread jiahao
It is obvious that XCHI_MAX_HALT_USEC is usec, not milliseconds; Replace 'milliseconds' with 'usec' of the debug message. Signed-off-by: jiahao --- drivers/usb/host/xhci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index

Re: [patch V4 part 4 24/24] x86/entry: Convert double fault exception to IDTENTRY_DF

2020-05-14 Thread Andy Lutomirski
On Tue, May 5, 2020 at 7:16 AM Thomas Gleixner wrote: > > Convert #DF to IDTENTRY_DF > - Implement the C entry point with DEFINE_IDTENTRY_DF > - Emit the ASM stub with DECLARE_IDTENTRY_DF on 64bit > - Remove the ASM idtentry in 64bit > - Adjust the 32bit shim code > - Fixup the XEN/PV co

Re: [patch V4 part 4 23/24] x86/entry: Provide IDTENTRY_DF

2020-05-14 Thread Andy Lutomirski
On Tue, May 5, 2020 at 7:16 AM Thomas Gleixner wrote: > > Provide a separate macro for #DF as this needs to emit paranoid only code > and has also a special ASM stub in 32bit. Acked-by: Andy Lutomirski but... maybe it would be cleaner just to open-code all of this in the next patch? This is a

Re: [patch V4 part 4 21/24] x86/traps: Address objtool noinstr complaints in #DB

2020-05-14 Thread Andy Lutomirski
On Tue, May 5, 2020 at 7:16 AM Thomas Gleixner wrote: > > The functions invoked from handle_debug() can be instrumented. Tell objtool > about it. Acked-by: Andy Lutomirski

Re: [patch V4 part 4 22/24] x86/mce: Address objtools noinstr complaints

2020-05-14 Thread Andy Lutomirski
On Tue, May 5, 2020 at 7:16 AM Thomas Gleixner wrote: > > Mark the relevant functions noinstr, use the plain non-instrumented MSR > accessors. The only odd part is the instr_begin()/end() pair around the > indirect machine_check_vector() call as objtool can't figure that out. The > possible invoke

Re: [patch V4 part 4 20/24] x86/traps: Restructure #DB handling

2020-05-14 Thread Andy Lutomirski
On Tue, May 5, 2020 at 7:16 AM Thomas Gleixner wrote: > > Now that there are separate entry points, move the kernel/user_mode specifc > checks into the entry functions so the common handling code does not need > the extra mode checks. Make the code more readable while at it. Acked-by: Andy Lutomi

RE: [PATCH v7 1/2] PCI: xilinx-cpm: Add YAML schemas for Versal CPM Root Port

2020-05-14 Thread Bharat Kumar Gogada
Hi Rob, Can you please let us know if you have any inputs on this. Regards, Bharat > -Original Message- > From: Bharat Kumar Gogada > Sent: Thursday, May 7, 2020 5:29 PM > To: linux-...@vger.kernel.org; linux-kernel@vger.kernel.org > Cc: lorenzo.pieral...@arm.com; bhelg...@google.com; r

Re: [patch V4 part 4 15/24] x86/db: Split out dr6/7 handling

2020-05-14 Thread Andy Lutomirski
On Tue, May 5, 2020 at 7:16 AM Thomas Gleixner wrote: > > From: Peter Zijlstra > > DR6/7 should be handled before nmi_enter() is invoked and restore after > nmi_exit() to minimize the exposure. > > Split it out into helper inlines and bring it into the correct order. > +* > +* En

[PATCH v1 3/4] driver core: fw_devlink: Add support for batching fwnode parsing

2020-05-14 Thread Saravana Kannan
The amount of time spent parsing fwnodes of devices can become really high if the devices are added in an non-ideal order. Worst case can be O(N^2) when N devices are added. But this can be optimized to O(N) by adding all the devices and then parsing all their fwnodes in one batch. This commit add

[PATCH v1 2/4] driver core: Look for waiting consumers only for a fwnode's primary device

2020-05-14 Thread Saravana Kannan
Commit 4dbe191c046e ("driver core: Add device links from fwnode only for the primary device") skipped linking a fwnode's secondary device to the suppliers listed in its fwnode. However, a fwnode's secondary device can't be found using get_dev_from_fwnode(). So, there's no point in trying to see if

[PATCH v1 4/4] of: platform: Batch fwnode parsing when adding all top level devices

2020-05-14 Thread Saravana Kannan
The fw_devlink_pause() and fw_devlink_resume() APIs allow batching the parsing of the device tree nodes when a lot of devices are added. This will significantly cut down parsing time (as much a 1 second on some systems). So, use them when adding devices for all the top level device tree nodes in a

[PATCH v1 1/4] driver core: Move code to the right part of the file

2020-05-14 Thread Saravana Kannan
This commit just moves around code to match the general organization of the file. Signed-off-by: Saravana Kannan --- drivers/base/core.c | 60 ++--- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/drivers/base/core.c b/drivers/base/core.c i

[PATCH v1 0/4] Optimize fw_devlink parsing

2020-05-14 Thread Saravana Kannan
When fw_devlink is enabled on hardware with a large number of device tree nodes, the initial device addition done in of_platform_default_populate_init() can be very inefficient. This is because most devices will fail to find all their suppliers when they are added and will keep trying to parse thei

drivers/vhost/vhost.c:1014:16: sparse: sparse: cast to restricted __virtio16

2020-05-14 Thread kbuild test robot
Hi Jason, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 1ae7efb388540adc1653a51a3bc3b2c9cef5ec1a commit: 20c384f1ea1a0bc7320bc445c72dd02d2970d594 vhost: refine vhost and vringh kconfig date: 6 weeks ago reprod

Re: [patch V4 part 4 19/24] x86/entry: Implement user mode C entry points for #DB and #MCE

2020-05-14 Thread Andy Lutomirski
On Tue, May 5, 2020 at 7:16 AM Thomas Gleixner wrote: > > The MCE entry point uses the same mechanism as the IST entry point for > now. For #DB split the inner workings and just keep the ist_enter/exit > magic in the IST variant. Fixup the ASM code to emit the proper > noist_##cfunc call. > Acke

Re: [patch V4 part 4 18/24] x86/entry: Provide IDTRENTRY_NOIST variants for #DB and #MC

2020-05-14 Thread Andy Lutomirski
On Tue, May 5, 2020 at 7:16 AM Thomas Gleixner wrote: > > Provide NOIST entry point macros which allows to implement NOIST variants > of the C entry points. These are invoked when #DB or #MC enter from user > space. This allows explicit handling of the difference between user mode > and kernel mod

RE: [PATCH v7 0/6] Add new series Micron SPI NAND devices

2020-05-14 Thread Poonam Aggrwal
Adding Ashish. Regards Poonam > -Original Message- > From: Naresh Kamboju > Sent: Friday, May 15, 2020 10:57 AM > To: shiva.linuxwo...@gmail.com; Miquel Raynal ; > Shivamurthy Shastri > Cc: Richard Weinberger ; Vignesh Raghavendra > ; Boris Brezillon ; > Chuanhong Guo ; Frieder Schrempf

linux-next: manual merge of the devicetree tree with the net-next tree

2020-05-14 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the devicetree tree got a conflict in: Documentation/devicetree/bindings/net/qcom,ipa.yaml between commit: 8456c54408a2 ("dt-bindings: net: add IPA iommus property") from the net-next tree and commit: fba5618451d2 ("dt-bindings: Fix incorrect 'reg' pr

Re: [patch V4 part 4 17/24] x86/entry/64: Remove error code clearing from #DB and #MCE ASM stub

2020-05-14 Thread Andy Lutomirski
On Tue, May 5, 2020 at 7:16 AM Thomas Gleixner wrote: > > The C entry points do not expect an error code. Acked-by: Andy Lutomirski

Re: [patch V4 part 4 16/24] x86/entry: Convert Debug exception to IDTENTRY_DB

2020-05-14 Thread Andy Lutomirski
On Tue, May 5, 2020 at 7:16 AM Thomas Gleixner wrote: > > Convert #DB to IDTENTRY_ERRORCODE: > - Implement the C entry point with DEFINE_IDTENTRY_DB > - Emit the ASM stub with DECLARE_IDTENTRY > - Remove the ASM idtentry in 64bit > - Remove the open coded ASM entry code in 32bit > - Fixu

Re: [patch V4 part 4 14/24] x86/nmi: Protect NMI entry against instrumentation

2020-05-14 Thread Andy Lutomirski
On Tue, May 5, 2020 at 7:16 AM Thomas Gleixner wrote: > > Mark all functions in the fragile code parts noinstr or force inlining so > they can't be instrumented. Acked-by: Andy Lutomirski

Re: [patch V4 part 4 13/24] x86/entry: Convert NMI to IDTENTRY_NMI

2020-05-14 Thread Andy Lutomirski
On Tue, May 5, 2020 at 7:16 AM Thomas Gleixner wrote: > > Convert #NMI to IDTENTRY_NMI: > - Implement the C entry point with DEFINE_IDTENTRY_NMI > - Fixup the XEN/PV code > - Remove the old prototyoes > > No functional change. Acked-by: Andy Lutomirski

Re: [PATCH v7 0/6] Add new series Micron SPI NAND devices

2020-05-14 Thread Naresh Kamboju
On Wed, 11 Mar 2020 at 23:28, wrote: > > From: Shivamurthy Shastri > > This patchset is for the new series of Micron SPI NAND devices, and the > following links are their datasheets. While boot NXP ls2088 device with mainline kernel the following nand warning noticed. How critical this warning ?

Re: [patch V4 part 4 12/24] x86/idtentry: Provide IDTENTRY_XEN for XEN/PV

2020-05-14 Thread Andy Lutomirski
On Tue, May 5, 2020 at 7:16 AM Thomas Gleixner wrote: > > XEN/PV has special wrappers for NMI and DB exceptions. They redirect these > exceptions through regular IDTENTRY points. Provide the necessary IDTENTRY > macros to make this work Acked-by: Andy Lutomirski

Re: [patch V4 part 4 10/24] x86/entry: Convert Machine Check to IDTENTRY_IST

2020-05-14 Thread Andy Lutomirski
On Tue, May 5, 2020 at 7:16 AM Thomas Gleixner wrote: > > Convert #MC to IDTENTRY_MCE: > - Implement the C entry points with DEFINE_IDTENTRY_MCE > - Emit the ASM stub with DECLARE_IDTENTRY_MCE > - Remove the ASM idtentry in 64bit > - Remove the open coded ASM entry code in 32bit > - Fixu

Re: [patch V4 part 4 11/24] x86/mce: Use untraced rd/wrmsr in the MCE offline/crash check

2020-05-14 Thread Andy Lutomirski
On Tue, May 5, 2020 at 7:16 AM Thomas Gleixner wrote: > > mce_check_crashing_cpu() is called right at the entry of the MCE > handler. It uses mce_rdmsr() and mce_wrmsr() which are wrappers around > rdmsr() and wrmsr() to handle the MCE error injection mechanism, which is > pointless in this contex

Re: [patch V4 part 4 09/24] x86/mce: Move nmi_enter/exit() into the entry point

2020-05-14 Thread Andy Lutomirski
On Tue, May 5, 2020 at 7:16 AM Thomas Gleixner wrote: > > There is no reason to have nmi_enter/exit() in the actual MCE > handlers. Move it to the entry point. This also covers the until now > uncovered initial handler which only prints. Acked-by: Andy Lutomirski

Re: [PATCH v2 1/2] [media] mtk-mdp: add driver to probe mdp components

2020-05-14 Thread Eizan Miyamoto
On Thu, May 7, 2020 at 11:44 PM Enric Balletbo i Serra wrote: > > Hi Eizan, > > On 7/5/20 13:11, Eizan Miyamoto wrote: > > On Thu, May 7, 2020 at 2:54 AM Enric Balletbo Serra > > wrote: > >> > >> Hi Eizan, > >> > >> Thank you for the patch. > >> > >> Missatge de Eizan Miyamoto del dia dc., 6 de

linux-kernel@vger.kernel.org

2020-05-14 Thread Qian Cai
Lockdep is screwed here in next-20200514 due to "BUG: MAX_LOCKDEP_ENTRIES too low". One of the traces below pointed to this linux-next commit, 8c8e824d4ef0 watch_queue: Introduce a non-repeating system-unique superblock ID which was accidentally just showed up in next-20200514

[RFC] dt-bindings: mailbox: add doorbell support to ARM MHU

2020-05-14 Thread Viresh Kumar
From: Sudeep Holla Hi Rob, Arnd and Jassi, This stuff has been doing rounds on the mailing list since several years now with no agreed conclusion by all the parties. And here is another attempt to get some feedback from everyone involved to close this once and for ever. Your comments will very m

RE: [PATCH V2] pwm: tegra: dynamic clk freq configuration by PWM driver

2020-05-14 Thread Sandipan Patra
Hello Uwe, Gentle reminder to review my replies. It will help me to push next cleaner patch. Thanks & Regards, Sandipan > -Original Message- > From: Sandipan Patra > Sent: Thursday, May 7, 2020 1:40 PM > To: Uwe Kleine-König > Cc: Thierry Reding ; robh...@kernel.org; Jonathan > Hunter

Re: [PATCH v3 1/4] dma-buf: add support for virtio exported objects

2020-05-14 Thread David Stevens
On Thu, May 14, 2020 at 9:30 PM Daniel Vetter wrote: > On Thu, May 14, 2020 at 05:19:40PM +0900, David Stevens wrote: > > Sorry for the duplicate reply, didn't notice this until now. > > > > > Just storing > > > the uuid should be doable (assuming this doesn't change during the > > > lifetime of t

Re: [PATCH] optee: don't fail on unsuccessful device enumeration

2020-05-14 Thread Sumit Garg
Hi Volodymyr, On Fri, 15 May 2020 at 06:32, Volodymyr Babchuk wrote: > > Hi Sumit, > > On Thu, 14 May 2020 at 08:38, Sumit Garg wrote: > > > > Hi Volodymyr, > > > > On Thu, 14 May 2020 at 06:48, Volodymyr Babchuk > > wrote: > > > > > > Hi Sumit, > > > > > > On Wed, 13 May 2020 at 11:24, Sumit

Re: [PATCH v4] Make initramfs honor CONFIG_DEVTMPFS_MOUNT

2020-05-14 Thread Randy Dunlap
On 5/14/20 9:04 PM, Rob Landley wrote: > FYI I dug up my old https://lkml.org/lkml/2017/9/13/651 and ported it to > current, because I needed it for a thing. > > From: Rob Landley > > Make initramfs honor CONFIG_DEVTMPFS_MOUNT, and move > /dev/console open after devtmpfs mount. > > Add workarou

[PATCH 0/5] PCI: uniphier: Add features for UniPhier PCIe host controller

2020-05-14 Thread Kunihiko Hayashi
This series adds some features for UniPhier PCIe host controller. - Add support for PME and AER invoked by MSI interrupt - Add iATU register view support for PCIe version >= 4.80 - Add an error message when failing to get phy driver This adds a new function called by MSI handler in DesignWare PCI

[PATCH 4/5] PCI: uniphier: Add iATU register support

2020-05-14 Thread Kunihiko Hayashi
This gets iATU register area from reg property. In Synopsis DWC version 4.80 or later, since iATU register area is separated from core register area, this area is necessary to get from DT independently. Signed-off-by: Kunihiko Hayashi --- drivers/pci/controller/dwc/pcie-uniphier.c | 5 + 1 f

[PATCH 5/5] PCI: uniphier: Add error message when failed to get phy

2020-05-14 Thread Kunihiko Hayashi
Even if phy driver doesn't probe, the error message can't be distinguished from other errors. This displays error message caused by the phy driver explicitly. Signed-off-by: Kunihiko Hayashi --- drivers/pci/controller/dwc/pcie-uniphier.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)

[PATCH 2/5] PCI: uniphier: Add misc interrupt handler to invoke PME and AER

2020-05-14 Thread Kunihiko Hayashi
The misc interrupts consisting of PME, AER, and Link event, is handled by INTx handler, however, these interrupts should be also handled by MSI handler. This adds the function uniphier_pcie_misc_isr() that handles misc intterupts, which is called from both INTx and MSI handlers. This function dete

[PATCH 3/5] dt-bindings: PCI: uniphier: Add iATU register description

2020-05-14 Thread Kunihiko Hayashi
In the dt-bindings, "atu" reg-names is required to get the register space for iATU in Synopsis DWC version 4.80 or later. Signed-off-by: Kunihiko Hayashi --- Documentation/devicetree/bindings/pci/uniphier-pcie.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindi

[PATCH 1/5] PCI: dwc: Add msi_host_isr() callback

2020-05-14 Thread Kunihiko Hayashi
This adds msi_host_isr() callback function support to describe SoC-dependent service triggered by MSI. For example, when AER interrupt is triggered by MSI, the callback function reads SoC-dependent registers and detects that the interrupt is from AER, and invoke AER interrupts related to MSI. Sig

Re: [PATCH] interconnect: Disallow interconnect core to be built as a module

2020-05-14 Thread Georgi Djakov
On 9/12/19 19:33, Bjorn Andersson wrote: > On Thu, Aug 29, 2019 at 1:07 AM Viresh Kumar wrote: >> >> Building individual drivers as modules is fine but allowing a core >> framework to be built as a module makes it really complex and should be >> avoided. >> >> Whatever uses the interconnect core A

[PATCH v2 8/9] fs/ext4: Introduce DAX inode flag

2020-05-14 Thread ira . weiny
From: Ira Weiny Add a flag to preserve FS_XFLAG_DAX in the ext4 inode. Set the flag to be user visible and changeable. Set the flag to be inherited. Allow applications to change the flag at any time. Finally, on regular files, flag the inode to not be cached to facilitate changing S_DAX on th

[PATCH v2 0/9] Enable ext4 support for per-file/directory DAX operations

2020-05-14 Thread ira . weiny
From: Ira Weiny Enable the same per file DAX support in ext4 as was done for xfs. This series builds and depends on the V11 series for xfs.[1] This passes the same xfstests test as XFS. The only issue is that this modifies the old mount option parsing code rather than waiting for the new parsi

[PATCH v2 9/9] Documentation/dax: Update DAX enablement for ext4

2020-05-14 Thread ira . weiny
From: Ira Weiny Update the document to reflect ext4 and xfs now behave the same. Reviewed-by: Jan Kara Signed-off-by: Ira Weiny --- Changes from RFC: Update with ext2 text... --- Documentation/filesystems/dax.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH v2 7/9] fs/ext4: Make DAX mount option a tri-state

2020-05-14 Thread ira . weiny
From: Ira Weiny We add 'always', 'never', and 'inode' (default). '-o dax' continues to operate the same which is equivalent to 'always'. This new functionality is limited to ext4 only. Specifically we introduce a 2nd DAX mount flag EXT4_MOUNT2_DAX_NEVER and set it and EXT4_MOUNT_DAX_ALWAYS app

[PATCH v2 4/9] fs/ext4: Change EXT4_MOUNT_DAX to EXT4_MOUNT_DAX_ALWAYS

2020-05-14 Thread ira . weiny
From: Ira Weiny In prep for the new tri-state mount option which then introduces EXT4_MOUNT_DAX_NEVER. Reviewed-by: Jan Kara Signed-off-by: Ira Weiny --- Changes: New patch --- fs/ext4/ext4.h | 4 ++-- fs/ext4/inode.c | 2 +- fs/ext4/super.c | 12 ++-- 3 files changed, 9 i

[PATCH v2 6/9] fs/ext4: Only change S_DAX on inode load

2020-05-14 Thread ira . weiny
From: Ira Weiny To prevent complications with in memory inodes we only set S_DAX on inode load. FS_XFLAG_DAX can be changed at any time and S_DAX will change after inode eviction and reload. Add init bool to ext4_set_inode_flags() to indicate if the inode is being newly initialized. Assert tha

[PATCH v2 5/9] fs/ext4: Update ext4_should_use_dax()

2020-05-14 Thread ira . weiny
From: Ira Weiny S_DAX should only be enabled when the underlying block device supports dax. Change ext4_should_use_dax() to check for device support prior to the over riding mount option. While we are at it change the function to ext4_should_enable_dax() as this better reflects the ask as well

[PATCH v2 3/9] fs/ext4: Disallow encryption if inode is DAX

2020-05-14 Thread ira . weiny
From: Ira Weiny Encryption and DAX are incompatible. Changing the DAX mode due to a change in Encryption mode is wrong without a corresponding address_space_operations update. Make the 2 options mutually exclusive by returning an error if DAX was set first. Furthermore, clarify the documentati

[PATCH v2 1/9] fs/ext4: Narrow scope of DAX check in setflags

2020-05-14 Thread ira . weiny
From: Ira Weiny When preventing DAX and journaling on an inode. Use the effective DAX check rather than the mount option. This will be required to support per inode DAX flags. Reviewed-by: Jan Kara Signed-off-by: Ira Weiny --- fs/ext4/ioctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 del

[PATCH v2 2/9] fs/ext4: Disallow verity if inode is DAX

2020-05-14 Thread ira . weiny
From: Ira Weiny Verity and DAX are incompatible. Changing the DAX mode due to a verity flag change is wrong without a corresponding address_space_operations update. Make the 2 options mutually exclusive by returning an error if DAX was set first. (Setting DAX is already disabled if Verity is s

[PATCH 0/4] Move the sysctl interface to the corresponding feature code file

2020-05-14 Thread Xiaoming Ni
Use register_sysctl() to register the sysctl interface to avoid merge conflicts when different features modify sysctl.c at the same time. Here, the sysctl interfaces of hung task and watchdog are moved to the corresponding feature code files https://lkml.org/lkml/2020/5/11/1419 Xiaoming Ni (4):

[PATCH 3/4] watchdog: move watchdog sysctl to watchdog.c

2020-05-14 Thread Xiaoming Ni
Move watchdog sysctl interface to watchdog.c. Use register_sysctl() to register the sysctl interface to avoid merge conflicts when different features modify sysctl.c at the same time. Signed-off-by: Xiaoming Ni --- kernel/sysctl.c | 96 kernel/watc

  1   2   3   4   5   6   7   8   9   10   >