[RFC PATCH 7/7] dt-bindings: ramtrace: Add ramtrace DT node

2020-09-02 Thread Nachammai Karuppiah
Add ramtrace as child node of /reserved-memory. Signed-off-by: Nachammai Karuppiah --- .../devicetree/bindings/reserved-memory/ramtrace.txt| 13 + 1 file changed, 13 insertions(+) create mode 100644 Documentation/devicetree/bindings/reserved-memory/ramtrace.txt diff --git

[RFC PATCH 3/7] pstore: Read and iterate through trace entries in PSTORE

2020-09-02 Thread Nachammai Karuppiah
Incase of trace records that are being read from pstore, the numerical *pos is not enough to hold state from session to session. A trace iterator is better suited for this. So for PSTORE_TYPE_TRACE record types, the seq_file->private field holds pointer to trace_iterator and not pstore_private. For

[RFC PATCH 5/7] tracing: Add support to iterate through pages retrieved from pstore

2020-09-02 Thread Nachammai Karuppiah
Add a new trace_array, pstore_trace. This descriptor holds the top-level buffers used for managing the pages retrieved from persistent RAM. Since pstore_trace uses the pages that pertain to previous boot, there is no write that happens to these buffers. The reads are non-consuming and hence we do n

[RFC PATCH 4/7] pstore: Allocate and free page-sized memory in persistent RAM buffer

2020-09-02 Thread Nachammai Karuppiah
ramtrace backend acts as a page allocator and manages the persistent RAM buffer. ramtrace supports allocation and deallocation of page-sized memory through methods, ramtrace_alloc_page and ramtrace_free_page. This functionality is required by ring buffer in trace when the user switches to persiste

[RFC PATCH 1/7] tracing: Add support to allocate pages from persistent memory

2020-09-02 Thread Nachammai Karuppiah
Add support in ring buffer to allocate pages from persistent RAM buffer. This feature supports switching to persistent memory and vice-versa. A new option 'persist' has been added and once this is enabled, the pages in ring buffer are freed up and new pages are allocated from persistent memory. Si

[RFC PATCH 0/7] Trace events to pstore

2020-09-02 Thread Nachammai Karuppiah
Hi, This patch series adds support to store trace events in pstore. Storing trace entries in persistent RAM would help in understanding what happened just before the system went down. The trace events that led to the crash can be retrieved from the pstore after a warm reboot. This will help de

Re: [PATCH v11 6/9] x86/cet: Add PTRACE interface for CET

2020-09-02 Thread Jann Horn
On Tue, Aug 25, 2020 at 2:30 AM Yu-cheng Yu wrote: > Add REGSET_CET64/REGSET_CET32 to get/set CET MSRs: > > IA32_U_CET (user-mode CET settings) and > IA32_PL3_SSP (user-mode Shadow Stack) [...] > diff --git a/arch/x86/kernel/fpu/regset.c b/arch/x86/kernel/fpu/regset.c [...] > +int cetregs_

[PATCH v3] media: uvcvideo: Convey full colorspace information to V4L2

2020-09-02 Thread Adam Goode
The Color Matching Descriptor has been present in USB cameras since the original version of UVC, but it has never been fully exposed in Linux. This change informs V4L2 of all of the UVC colorspace parameters: color primaries, transfer characteristics, and YCbCr encoding. videodev2.h doesn't have v

Re: [git pull] epoll fixup

2020-09-02 Thread pr-tracker-bot
The pull request you sent on Wed, 2 Sep 2020 16:37:47 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git work.epoll has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/54e54d58184e34887cc40d0bc83720dbaf57db1a Thank you! -- Deet-doot-dot, I am a bot. http

Re: [GIT PULL] xfs: small fixes for 5.9

2020-09-02 Thread pr-tracker-bot
The pull request you sent on Wed, 2 Sep 2020 10:00:19 -0700: > git://git.kernel.org/pub/scm/fs/xfs/xfs-linux.git tags/xfs-5.9-fixes-1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/e1d0126ca3a66c284a02b083a42e2b39558002cd Thank you! -- Deet-doot-dot, I am a bot. htt

Re: [GIT PULL] HID fixes

2020-09-02 Thread pr-tracker-bot
The pull request you sent on Wed, 2 Sep 2020 20:58:13 +0200 (CEST): > git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git for-linus has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/fc3abb53250a90ba2150eebd182137c136f4d25a Thank you! -- Deet-doot-dot, I am a bot.

Re: [PATCH] RDMA/ucma: Fix resource leak on error path

2020-09-02 Thread Jason Gunthorpe
On Wed, Sep 02, 2020 at 05:24:51PM +0100, Alex Dewar wrote: > In ucma_process_join(), if the call to xa_alloc() fails, the function > will return without freeing mc. Fix this by jumping to the correct line. > > In the process I renamed the jump labels to something more memorable for > extra clarit

Re: [PATCH net] net: dp83867: Fix WoL SecureOn password

2020-09-02 Thread Florian Fainelli
On 9/2/2020 12:27 PM, Dan Murphy wrote: Fix the registers being written to as the values were being over written when writing the same registers. Fixes: caabee5b53f5 ("net: phy: dp83867: support Wake on LAN") Signed-off-by: Dan Murphy Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH] ARM: dts: s5pv210: Enable audio on Aries boards

2020-09-02 Thread Krzysztof Kozlowski
On Tue, Sep 01, 2020 at 05:38:58PM -0700, Jonathan Bakker wrote: > Both the galaxys and the fascinate4g have a wm8994 codec, > but they differ slightly in their jack detection and micbias > configuration. > > Signed-off-by: Jonathan Bakker > --- > arch/arm/boot/dts/s5pv210-aries.dtsi | 10 +

Re: [RFC PATCH 0/2] mm/gup: fix gup_fast with dynamic page table folding

2020-09-02 Thread Jason Gunthorpe
On Wed, Sep 02, 2020 at 05:09:58PM +0200, Gerald Schaefer wrote: > I guess we *could* assume that all the extra pXd_offset() calls and > also the de-referencing would be optimized out by the compiler for other > archs, but it is one example where my gut tells me that this might not > be so trivial

Re: [PATCH 4/5] Add manpage for fsopen(2) and fsmount(2)

2020-09-02 Thread Michael Kerrisk (man-pages)
On Wed, 2 Sep 2020 at 18:14, David Howells wrote: > > Michael Kerrisk (man-pages) wrote: > > > The term "filesystem configuration context" is introduced, but never > > really explained. I think it would be very helpful to have a sentence > > or three that explains this concept at the start of the

Re: [PATCH v3 16/16] ARM: Remove custom IRQ stat accounting

2020-09-02 Thread Marc Zyngier
On Wed, 02 Sep 2020 08:41:31 +0100, kernel test robot wrote: > > Hi Marc, > > I love your patch! Yet something to improve: > > [auto build test ERROR on arm64/for-next/core] > [also build test ERROR on arm/for-next v5.9-rc3 next-20200828] > [cannot apply to tip/irq/core] > [If your patch is app

RE: [PATCH v2] x86/asm: Replace __force_order with memory clobber

2020-09-02 Thread David Laight
From: Arvind Sankar > Sent: 02 September 2020 17:08 > > On Wed, Sep 02, 2020 at 11:33:46AM -0400, Arvind Sankar wrote: > > Fix this by: > > - Using a memory clobber for the write functions to additionally prevent > > caching/reordering memory accesses across CRn writes. > > - Using a dummy input

Re: [PATCH v5 3/6] genirq/PM: Introduce IRQCHIP_ENABLE_WAKEUP_ON_SUSPEND flag

2020-09-02 Thread Doug Anderson
Hi, On Tue, Sep 1, 2020 at 2:51 AM Thomas Gleixner wrote: > > On Mon, Aug 31 2020 at 08:12, Doug Anderson wrote: > > On Wed, Aug 26, 2020 at 3:15 AM Thomas Gleixner wrote: > >> There are two reasonable choices here: > >> > >> 1) Do the symmetric thing > >> > >> 2) Let the drivers call a new func

[PATCH v2] soundwire: fix double free of dangling pointer

2020-09-02 Thread trix
From: Tom Rix clang static analysis flags this problem stream.c:844:9: warning: Use of memory after it is freed kfree(bus->defer_msg.msg->buf); ^~~ This happens in an error handler cleaning up memory allocated for elements in a list. list_for

Re: [RFC PATCH 00/16] 1GB THP support on x86_64

2020-09-02 Thread Zi Yan
On 2 Sep 2020, at 15:57, Jason Gunthorpe wrote: > On Wed, Sep 02, 2020 at 03:05:39PM -0400, Zi Yan wrote: >> On 2 Sep 2020, at 14:48, Jason Gunthorpe wrote: >> >>> On Wed, Sep 02, 2020 at 02:45:37PM -0400, Zi Yan wrote: >>> > Surprised this doesn't touch mm/pagewalk.c ? 1GB PUD page

Re: [RFC PATCH 01/16] mm: add pagechain container for storing multiple pages.

2020-09-02 Thread Randy Dunlap
On 9/2/20 11:06 AM, Zi Yan wrote: > From: Zi Yan > > When depositing page table pages for 1GB THPs, we need 512 PTE pages + > 1 PMD page. Instead of counting and depositing 513 pages, we can use the > PMD page as a leader page and chain the rest 512 PTE pages with ->lru. > This, however, prevents

Re: [PATCH v2 1/7] mm/thp: fix __split_huge_pmd_locked() for migration PMD

2020-09-02 Thread Yang Shi
On Wed, Sep 2, 2020 at 9:58 AM Ralph Campbell wrote: > > A migrating transparent huge page has to already be unmapped. Otherwise, > the page could be modified while it is being copied to a new page and > data could be lost. The function __split_huge_pmd() checks for a PMD > migration entry before

Re: [PATCH v5 0/4] user space client interface driver

2020-09-02 Thread Hemant Kumar
Hi Jeff and Mani, On 8/5/20 11:40 PM, Hemant Kumar wrote: V5: - Removed mhi_uci_drv structure. - Used idr instead of creating global list of uci devices. - Used kref instead of local ref counting for uci device and open count. - Removed unlikely macro. V4: - Fix locking to protect proper stru

[PATCH net-next v2 0/3] DP83869 Feature additions

2020-09-02 Thread Dan Murphy
Hello Adding features to the DP83869 PHY. These features are also supported in other TI PHYs like the DP83867 and DP83822. Fiber Advertisement: (This is v2 fixing the return of phy_modify) The DP83869 supports a 100Base-FX connection. When this mode is selected the driver needs to advertise that

[PATCH net-next v2 1/3] net: dp83869: Add ability to advertise Fiber connection

2020-09-02 Thread Dan Murphy
Add the ability to advertise the Fiber connection if the strap or the op-mode is configured for 100Base-FX. Auto negotiation is not supported on this PHY when in fiber mode. Signed-off-by: Dan Murphy --- drivers/net/phy/dp83869.c | 36 1 file changed, 36 ins

Re: [PATCHv3 net-next] dropwatch: Support monitoring of dropped frames

2020-09-02 Thread Eric Dumazet
On 9/2/20 10:16 AM, izabela.bakoll...@gmail.com wrote: > From: Izabela Bakollari > > Dropwatch is a utility that monitors dropped frames by having userspace > record them over the dropwatch protocol over a file. This augument > allows live monitoring of dropped frames using tools like tcpdump.

[PATCH net-next v2 2/3] net: phy: dp83869: support Wake on LAN

2020-09-02 Thread Dan Murphy
This adds WoL support on TI DP83869 for magic, magic secure, unicast and broadcast. Signed-off-by: Dan Murphy --- drivers/net/phy/dp83869.c | 128 ++ 1 file changed, 128 insertions(+) diff --git a/drivers/net/phy/dp83869.c b/drivers/net/phy/dp83869.c index 48

[PATCH net-next v2 3/3] net: dp83869: Add speed optimization feature

2020-09-02 Thread Dan Murphy
Set the speed optimization bit on the DP83869 PHY. Speed optimization, also known as link downshift, enables fallback to 100M operation after multiple consecutive failed attempts at Gigabit link establishment. Such a case could occur if cabling with only four wires (two twisted pairs) were connect

Re: [PATCH 1/3] drm/msm/gpu: Add GPU freq_change traces

2020-09-02 Thread Jordan Crouse
On Tue, Sep 01, 2020 at 08:41:54AM -0700, Rob Clark wrote: > From: Rob Clark > > Technically the GMU specific one is a bit redundant, but it was useful > to track down a bug. Reviewed-by: Jordan Crouse > Signed-off-by: Rob Clark > --- > drivers/gpu/drm/msm/adreno/a6xx_gmu.c | 3 +++ > drive

Re: [PATCH] use cpu_to_le{16,32} instead of __constant_cpu_to_

2020-09-02 Thread Arnd Bergmann
On Thu, Aug 27, 2020 at 11:06 PM Rene Rebe wrote: > > diff --git a/drivers/scsi/qla2xxx/qla_target.c > b/drivers/scsi/qla2xxx/qla_target.c > index fbb80a043b4f..3de6bf94ccc0 100644 > --- a/drivers/scsi/qla2xxx/qla_target.c > +++ b/drivers/scsi/qla2xxx/qla_target.c The qla2xxx and qla4xxx changes

Re: [Freedreno] [PATCH 2/3] drm/msm: Convert shrinker msgs to tracepoints

2020-09-02 Thread Jordan Crouse
On Tue, Sep 01, 2020 at 08:41:55AM -0700, Rob Clark wrote: > From: Rob Clark > > This reduces the spam in dmesg when we start hitting the shrinker, and > replaces it with something we can put on a timeline while profiling or > debugging system issues. Reviewed-by: Jordan Crouse > Signed-off-by

Re: [PATCH v1 03/12] i2c: tegra: Clean up messages in the code

2020-09-02 Thread Michał Mirosław
On Mon, Aug 31, 2020 at 11:22:54PM +0300, Dmitry Osipenko wrote: > Use lowercase and consistent wording for all messages in the code. > > Signed-off-by: Dmitry Osipenko > --- > drivers/i2c/busses/i2c-tegra.c | 50 -- > 1 file changed, 24 insertions(+), 26 deletion

[PATCH 1/3] mmc: davinci: Fix -Wpointer-to-int-cast on compile test

2020-09-02 Thread Krzysztof Kozlowski
Store in interrupt service routine always '1' in end_command, not the value of host->cmd to fix compile test warnings on RISC-V: drivers/mmc/host/davinci_mmc.c:999:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] Signed-off-by: Krzysztof Kozlowski --- Fo

Re: [RFC PATCH 01/16] mm: add pagechain container for storing multiple pages.

2020-09-02 Thread Zi Yan
On 2 Sep 2020, at 16:29, Randy Dunlap wrote: > On 9/2/20 11:06 AM, Zi Yan wrote: >> From: Zi Yan >> >> When depositing page table pages for 1GB THPs, we need 512 PTE pages + >> 1 PMD page. Instead of counting and depositing 513 pages, we can use the >> PMD page as a leader page and chain the rest

[PATCH 3/3] mmc: s3cmci: Cast driver data through long

2020-09-02 Thread Krzysztof Kozlowski
Since driver data is a pointer, direct casting to integer causes warning when compile testing for 64-bit architecture: drivers/mmc/host/s3cmci.c:1495:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] The actual driver data can be only 0 or 1, so cast it via lo

[PATCH 2/3] mmc: s3cmci: Use proper printk format for iomem pointer

2020-09-02 Thread Krzysztof Kozlowski
iomem pointers should be printed with pointer format to hide the actual value and fix warnings when compile testing for 64-bit architecture: drivers/mmc/host/s3cmci.c:1355:46: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] Signed-off-by: Krzysztof Kozlowski

Re: linux-next: Fixes tags need some work in the printk tree

2020-09-02 Thread Stephen Rothwell
Hi Petr, On Wed, 2 Sep 2020 09:26:11 +0200 Petr Mladek wrote: > > The problem is that this commit is not in mainline. It is living > only in printk/linux.git. > > Could we use the SHA1 from the maintainer tree when it would not get rebased? > > Or should we rather avoid Fixes: tag referencing

Re: [PATCH v2 1/1] i2c: algo-pca: Reapply i2c bus settings after reset

2020-09-02 Thread Chris Packham
On 2/09/20 8:45 pm, Andy Shevchenko wrote: > On Wed, Sep 02, 2020 at 11:43:56AM +0300, Andy Shevchenko wrote: >> On Wed, Sep 02, 2020 at 09:17:47AM +1200, Evan Nimmo wrote: >>> If something goes wrong (such as the SCL being stuck low) then we need >>> to reset the PCA chip. The issue with this is

Re: [PATCH net v6 0/6] net: marvell: prestera: Add Switchdev driver for Prestera family ASIC device 98DX3255 (AC3x)

2020-09-02 Thread Vadym Kochan
Sorry, I mistakenly used "net" instead of "net-next" as label. On Wed, Sep 02, 2020 at 06:04:36PM +0300, Vadym Kochan wrote: > Marvell Prestera 98DX3255 integrates up to 24 ports of 1GbE with 8 > ports of 10GbE uplinks or 2 ports of 40Gbps stacking for a largely > wireless SMB deployment. > > Pre

[PATCH net-next] net: dsa: bcm_sf2: Ensure that MDIO diversion is used

2020-09-02 Thread Florian Fainelli
Registering our slave MDIO bus outside of the OF infrastructure is necessary in order to avoid creating double references of the same Device Tree nodes, however it is not sufficient to guarantee that the MDIO bus diversion is used because of_phy_connect() will still resolve to a valid PHY phandle a

Re: [PATCH v1 09/12] i2c: tegra: Clean up probe function

2020-09-02 Thread Michał Mirosław
On Mon, Aug 31, 2020 at 11:23:00PM +0300, Dmitry Osipenko wrote: > The driver's probe function code is difficult to read and follow. This > patch splits probe function into several logical parts that are easy to > work with. > > Signed-off-by: Dmitry Osipenko > --- > drivers/i2c/busses/i2c-tegra

[PATCH V2] perf/x86/intel/ds: Fix x86_pmu_stop warning for large PEBS

2020-09-02 Thread kan . liang
From: Kan Liang A warning as below may be triggered when sampling with large PEBS. [ 410.411250] perf: interrupt took too long (72145 > 71975), lowering kernel.perf_event_max_sample_rate to 2000 [ 410.724923] [ cut here ] [ 410.729822] WARNING: CPU: 0 PID: 16397 at arc

[PATCH net] drivers/net/wan/hdlc_fr: Add needed_headroom for PVC devices

2020-09-02 Thread Xie He
PVC devices are virtual devices in this driver stacked on top of the actual HDLC device. They are the devices normal users would use. PVC devices have two types: normal PVC devices and Ethernet-emulated PVC devices. When transmitting data with PVC devices, the ndo_start_xmit function will prepend

[PATCH v3 1/1] i2c: algo-pca: Reapply i2c bus settings after reset

2020-09-02 Thread Evan Nimmo
If something goes wrong (such as the SCL being stuck low) then we need to reset the PCA chip. The issue with this is that on reset we lose all config settings and the chip ends up in a disabled state which results in a lock up/high CPU usage. We need to re-apply any configuration that had previousl

Re: [PATCH v1 03/12] i2c: tegra: Clean up messages in the code

2020-09-02 Thread Dmitry Osipenko
02.09.2020 23:42, Michał Mirosław пишет: > On Mon, Aug 31, 2020 at 11:22:54PM +0300, Dmitry Osipenko wrote: >> Use lowercase and consistent wording for all messages in the code. >> >> Signed-off-by: Dmitry Osipenko >> --- >> drivers/i2c/busses/i2c-tegra.c | 50 -- >

Re: [PATCH v1 09/12] i2c: tegra: Clean up probe function

2020-09-02 Thread Dmitry Osipenko
03.09.2020 00:06, Michał Mirosław пишет: > On Mon, Aug 31, 2020 at 11:23:00PM +0300, Dmitry Osipenko wrote: >> The driver's probe function code is difficult to read and follow. This >> patch splits probe function into several logical parts that are easy to >> work with. >> >> Signed-off-by: Dmitry

Re: [PATCH v1 00/12] Improvements for Tegra I2C driver

2020-09-02 Thread Michał Mirosław
On Mon, Aug 31, 2020 at 11:22:51PM +0300, Dmitry Osipenko wrote: > Hello! > > This series performs a small refactoring of the Tegra I2C driver code and > hardens the atomic-transfer mode. > > Dmitry Osipenko (12): > i2c: tegra: Make tegra_i2c_flush_fifos() usable in atomic transfer > i2c: teg

Re: [PATCH] KVM: LAPIC: Reset timer_advance_ns if timer mode switch

2020-09-02 Thread Sean Christopherson
On Fri, Aug 28, 2020 at 09:35:08AM +0800, Wanpeng Li wrote: > From: Wanpeng Li > > per-vCPU timer_advance_ns should be set to 0 if timer mode is not tscdeadline > otherwise we waste cpu cycles in the function lapic_timer_int_injected(), > especially on AMD platform which doesn't support tscdead

[PATCH] MIPS: SNI: Fix SCSI interrupt

2020-09-02 Thread Thomas Bogendoerfer
On RM400(a20r) machines ISA and SCSI interrupts share the same interrupt line. Commit 49e6e07e3c80 ("MIPS: pass non-NULL dev_id on shared request_irq()") accidently dropped the IRQF_SHARED bit, which breaks registering SCSI interrupt. Put back IRQF_SHARED and add dev_id for ISA interrupt. Fixes: 4

Re: [PATCH 11/11] mmc: host: Enable compile testing of multiple drivers

2020-09-02 Thread Michał Mirosław
On Wed, Sep 02, 2020 at 09:36:58PM +0200, Krzysztof Kozlowski wrote: > Multiple MMC host controller driver can be compile tested as they do not > depend on architecture specific headers. [...] > --- a/drivers/mmc/host/Kconfig > +++ b/drivers/mmc/host/Kconfig > @@ -178,7 +178,7 @@ config MMC_SDHCI_O

fs/btrfs/relocation.o: warning: objtool: update_backref_cache()+0xf8: unreachable instruction

2020-09-02 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: fc3abb53250a90ba2150eebd182137c136f4d25a commit: e9a28dc52af31d8af1883afe08e724a303b3c4eb btrfs: rename tree_entry to rb_simple_node and export it date: 3 months ago config: x86_64-randconfig-a006-20200903

[PATCH v2] use cpu_to_le{16,32} instead of __constant_cpu_to_*

2020-09-02 Thread Rene Rebe
Bart Van Assche wrote: > Hi René, > > Whether __constant_cpu_to_le16() is used or cpu_to_le16(), the compiler > generates exactly the same code. The name of the cpu_to_le16() function > however > is shorter. I recommend cpu_to_le16() because of its shorter name and because > that's what other k

Re: [PATCH v2 3/9] iommu/ioasid: Introduce ioasid_set APIs

2020-09-02 Thread Jacob Pan
On Mon, 24 Aug 2020 11:30:47 -0700 Randy Dunlap wrote: > On 8/24/20 11:28 AM, Jean-Philippe Brucker wrote: > >> +/** > >> + * struct ioasid_data - Meta data about ioasid > >> + * > >> + * @id: Unique ID > >> + * @users Number of active users > >> + * @state Track state of the IOASID > >

Re: [PATCH 22/28] sgiseeq: convert from dma_cache_sync to dma_sync_single_for_device

2020-09-02 Thread Thomas Bogendoerfer
On Tue, Sep 01, 2020 at 07:38:10PM +0200, Thomas Bogendoerfer wrote: > On Tue, Sep 01, 2020 at 07:16:27PM +0200, Christoph Hellwig wrote: > > Well, if IP22 doesn't speculate (which I'm pretty sure is the case), > > dma_sync_single_for_cpu should indeeed be a no-op. But then there > > also shouldn'

Re: [PATCH v2 3/9] iommu/ioasid: Introduce ioasid_set APIs

2020-09-02 Thread Jacob Pan
On Mon, 24 Aug 2020 11:34:29 -0700 Randy Dunlap wrote: > On 8/24/20 11:28 AM, Jean-Philippe Brucker wrote: > >> +/** > >> + * struct ioasid_set - Meta data about ioasid_set > >> + * @type: Token types and other features > > nit: doesn't follow struct order > > > >> + * @token:Unique

Re: BUG: sleeping function called from invalid context in do_user_addr_fault

2020-09-02 Thread syzbot
syzbot suspects this issue was fixed by commit: commit 033724d6864245a11f8e04c066002e6ad22b3fd0 Author: Tetsuo Handa Date: Wed Jul 15 01:51:02 2020 + fbdev: Detect integer underflow at "struct fbcon_ops"->clear_margins. bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=156a

Re: [PATCH v2 1/7] mm/thp: fix __split_huge_pmd_locked() for migration PMD

2020-09-02 Thread Zi Yan
On 2 Sep 2020, at 12:58, Ralph Campbell wrote: > A migrating transparent huge page has to already be unmapped. Otherwise, > the page could be modified while it is being copied to a new page and > data could be lost. The function __split_huge_pmd() checks for a PMD > migration entry before calling

Re: [RFC PATCH 0/7] Trace events to pstore

2020-09-02 Thread Joel Fernandes
On Wed, Sep 2, 2020 at 4:01 PM Nachammai Karuppiah wrote: > > Hi, > > This patch series adds support to store trace events in pstore. > > Storing trace entries in persistent RAM would help in understanding what > happened just before the system went down. The trace events that led to the > crash c

Re: [PATCH v1 09/12] i2c: tegra: Clean up probe function

2020-09-02 Thread Dmitry Osipenko
03.09.2020 00:17, Dmitry Osipenko пишет: > 03.09.2020 00:06, Michał Mirosław пишет: >> On Mon, Aug 31, 2020 at 11:23:00PM +0300, Dmitry Osipenko wrote: >>> The driver's probe function code is difficult to read and follow. This >>> patch splits probe function into several logical parts that are easy

Re: [PATCH v2 3/9] iommu/ioasid: Introduce ioasid_set APIs

2020-09-02 Thread Jacob Pan
On Mon, 24 Aug 2020 20:28:48 +0200 Jean-Philippe Brucker wrote: > On Fri, Aug 21, 2020 at 09:35:12PM -0700, Jacob Pan wrote: > > ioasid_set was introduced as an arbitrary token that are shared by a > > group of IOASIDs. For example, if IOASID #1 and #2 are allocated > > via the same ioasid_set*,

Re: [RFC PATCH 0/7] Trace events to pstore

2020-09-02 Thread Joel Fernandes
On Wed, Sep 2, 2020 at 5:47 PM Joel Fernandes wrote: > > On Wed, Sep 2, 2020 at 4:01 PM Nachammai Karuppiah > wrote: > > > > Hi, > > > > This patch series adds support to store trace events in pstore. > > Been a long day... > > Storing trace entries in persistent RAM would help in understanding

Re: [PATCH v3 04/10] PCI/RCEC: Add pcie_walk_rcec() to walk associated RCiEPs

2020-09-02 Thread Sean V Kelley
Hi Bjorn, On Wed, 2020-09-02 at 14:00 -0500, Bjorn Helgaas wrote: > On Wed, Aug 12, 2020 at 09:46:53AM -0700, Sean V Kelley wrote: > > From: Qiuxu Zhuo > > > > When an RCEC device signals error(s) to a CPU core, the CPU core > > needs to walk all the RCiEPs associated with that RCEC to check > >

Re: [PATCH 11/19] gdrom: use bdev_check_media_change

2020-09-02 Thread antlists
On 02/09/2020 15:12, Christoph Hellwig wrote: The GD-ROM driver does not have a ->revalidate_disk method, so it can ^^ (sic) Cheers, Wol

Re: [PATCH v2 1/7] mm/thp: fix __split_huge_pmd_locked() for migration PMD

2020-09-02 Thread Ralph Campbell
On 9/2/20 2:47 PM, Zi Yan wrote: On 2 Sep 2020, at 12:58, Ralph Campbell wrote: A migrating transparent huge page has to already be unmapped. Otherwise, the page could be modified while it is being copied to a new page and data could be lost. The function __split_huge_pmd() checks for a PMD m

Re: [PATCH v11 6/9] x86/cet: Add PTRACE interface for CET

2020-09-02 Thread Yu, Yu-cheng
On 9/2/2020 1:03 PM, Jann Horn wrote: On Tue, Aug 25, 2020 at 2:30 AM Yu-cheng Yu wrote: Add REGSET_CET64/REGSET_CET32 to get/set CET MSRs: IA32_U_CET (user-mode CET settings) and IA32_PL3_SSP (user-mode Shadow Stack) [...] diff --git a/arch/x86/kernel/fpu/regset.c b/arch/x86/kerne

Re: [PATCH] KVM: nVMX: Add VM-Enter failed tracepoints for super early checks

2020-09-02 Thread Sean Christopherson
On Tue, Sep 01, 2020 at 10:21:15AM +0200, Vitaly Kuznetsov wrote: > Sean Christopherson writes: > > > Add tracepoints for the early consistency checks in nested_vmx_run(). > > The "VMLAUNCH vs. VMRESUME" check in particular is useful to trace, as > > there is no architectural way to check VMCS.LA

Re: [PATCH 14/38] media: vivid: move the devnode creation logic to a separate function

2020-09-02 Thread kernel test robot
Hi Mauro, I love your patch! Yet something to improve: [auto build test ERROR on linuxtv-media/master] [cannot apply to v5.9-rc3 next-20200902] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documente

Re: [PATCH v3 07/10] PCI: Add 'rcec' field to pci_dev for associated RCiEPs

2020-09-02 Thread Sean V Kelley
Hi Bjorn, On Wed, 2020-09-02 at 11:35 -0500, Bjorn Helgaas wrote: > On Wed, Aug 12, 2020 at 09:46:56AM -0700, Sean V Kelley wrote: > > From: Qiuxu Zhuo > > > > When attempting error recovery for an RCiEP associated with an RCEC > > device, > > there needs to be a way to update the Root Error Sta

Re: [PATCH net-next 0/1] Support for VLAN interface over HSR/PRP

2020-09-02 Thread Murali Karicheri
All, On 9/2/20 12:14 PM, Murali Karicheri wrote: All, On 9/1/20 3:54 PM, Murali Karicheri wrote: This series add support for creating VLAN interface over HSR or PRP interface. Typically industrial networks uses VLAN in deployment and this capability is needed to support these networks. This i

RE:[PATCH] sched: Add trace for task wake up latency and leave running time

2020-09-02 Thread gengdongjiu
Hi Peter, Sorry for the late response. > > > diff --git a/include/linux/sched.h b/include/linux/sched.h index > > 93ecd930efd3..edb622c40a90 100644 > > --- a/include/linux/sched.h > > +++ b/include/linux/sched.h > > @@ -1324,6 +1324,13 @@ struct task_struct { > > /* CPU-specific state of

Re: [PATCH] Makefile: add -fuse-ld=lld to KBUILD_HOSTLDFLAGS when LLVM=1

2020-09-02 Thread Nick Desaulniers
On Fri, Aug 21, 2020 at 10:14 PM Masahiro Yamada wrote: > > On Fri, Aug 21, 2020 at 7:10 AM 'Nick Desaulniers' via Clang Built > Linux wrote: > > > > While moving Android kernels over to use LLVM=1, we observe the failure > > when building in a hermetic docker image: > > HOSTCC scripts/basic/f

Re: [PATCH net] drivers/net/wan/hdlc: Change the default of hard_header_len to 0

2020-09-02 Thread David Miller
From: Xie He Date: Wed, 2 Sep 2020 05:07:06 -0700 > Change the default value of hard_header_len in hdlc.c from 16 to 0. > > Currently there are 6 HDLC protocol drivers, among them: > > hdlc_raw_eth, hdlc_cisco, hdlc_ppp, hdlc_x25 set hard_header_len when > attaching the protocol, overriding th

Re: [RFC net-next] udp: add a GSO type for UDPv6

2020-09-02 Thread David Miller
From: Huazhong Tan Date: Wed, 2 Sep 2020 20:15:11 +0800 > In some cases, for UDP GSO, UDPv4 and UDPv6 need to be handled > separately, for example, checksum offload, so add new GSO type > SKB_GSO_UDPV6_L4 for UDPv6, and the old SKB_GSO_UDP_L4 stands > for UDPv4. > > Signed-off-by: Huazhong Tan

Re: [RFC v2 2/2] KVM: VMX: Enable bus lock VM exit

2020-09-02 Thread Sean Christopherson
On Tue, Sep 01, 2020 at 10:43:12AM +0200, Vitaly Kuznetsov wrote: > > @@ -6809,6 +6824,19 @@ static fastpath_t vmx_vcpu_run(struct kvm_vcpu *vcpu) > > if (unlikely(vmx->exit_reason.failed_vmentry)) > > return EXIT_FASTPATH_NONE; > > > > + /* > > +* check the exit_reason to s

[PATCH v4 0/4] Galaxycore GC5035 sensor driver

2020-09-02 Thread Tomasz Figa
Hi everyone, This series adds YAML DT binding and V4L2 sub-device driver for Galaxycore GC5035 5-megapixel 10-bit Bayer CMOS 1/4" sensor, which has a two-lane MIPI CSI-2 data interface and uses the I2C bus for control The initial version supports the following features: - Manual exposure, analog

[PATCH v4 4/4] media: i2c: gc5035: Add OTP configuration handling

2020-09-02 Thread Tomasz Figa
From: Hao He The sensor OTP holds values for various configuration registers deteremined at manufacturing time and dead pixel correction tables. Add code to load both from the OTP and initialize the sensor appropriately. Signed-off-by: Hao He Signed-off-by: Xingyu Wu Signed-off-by: Tomasz Figa

[PATCH v4 1/4] dt-bindings: Add a vendor prefix for Galaxycore Inc.

2020-09-02 Thread Tomasz Figa
From: Hao He Add a vendor prefix for Galaxycore Inc. as a prerequisite for adding bindings for a new imaging sensor. Signed-off-by: Hao He Signed-off-by: Xingyu Wu Signed-off-by: Tomasz Figa --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) d

[PATCH v4 3/4] media: i2c: Add a driver for the Galaxycore GC5035 sensor

2020-09-02 Thread Tomasz Figa
From: Hao He Galaxycore GC5035 is a 5 Mpix 10-bit Bayer sensor with a 2-lane MIPI CSI-2 data and I2C control interfaces. For the iniitial version support 2592x1944@30fps, 1296x972@30fps and 1280x720@60fps modes, assuming link frequency of 438 MHz and external clock of 24 MHz. Signed-off-by: Hao

[PATCH v4 2/4] media: dt-bindings: media: i2c: Add bindings for GC5035

2020-09-02 Thread Tomasz Figa
Add YAML device tree bindings for Galaxycore Inc. GC5035 imaging sensor. Signed-off-by: Tomasz Figa --- .../devicetree/bindings/media/i2c/gc5035.yaml | 142 ++ 1 file changed, 142 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/gc5035.yaml diff --gi

Re: [PATCH 2/3] dt-bindings: usb: cdns,usb3: Add cdns,phyrst-a-enable property

2020-09-02 Thread Peter Chen
On 20-09-02 16:28:31, Roger Quadros wrote: > Peter, > > On 27/08/2020 14:14, Peter Chen wrote: > > On 20-08-25 15:00:58, Roger Quadros wrote: > > > Controller version 0x0002450D has USB2 PHY RX sensitivity issues > > > that needs to be worked around by enabling phyrst-a-enable bit > > > in PHYRST_

[PATCH v2] mm/doc: editorial pass on page migration

2020-09-02 Thread Ralph Campbell
Add Sphinx reference links to HMM and CPUSETS, and numerous small editorial changes to make the page_migration.rst document more readable. Signed-off-by: Ralph Campbell --- The patch applies cleanly to the latest linux or linux-mm tree. Since this is MM relatated, perhaps Andrew Morton would lik

Re: [PATCH] PCI/ASPM: Enable ASPM for links under VMD domain

2020-09-02 Thread Keith Busch
On Wed, Sep 02, 2020 at 01:48:19PM -0600, David Fugate wrote: > Over the years, I've been forwarded numerous emails from VMD customers > praising it's ability to prevent Linux kernel panics upon hot-removals > and inserts of U.2 NVMe drives. The same nvme and pcie hotplug drivers are used with or

[PATCH v2] KVM: fix memory leak in kvm_io_bus_unregister_dev()

2020-09-02 Thread Rustam Kovhaev
when kmalloc() fails in kvm_io_bus_unregister_dev(), before removing the bus, we should iterate over all other devices linked to it and call kvm_iodevice_destructor() for them Reported-and-tested-by: syzbot+f196caa45793d6374...@syzkaller.appspotmail.com Link: https://syzkaller.appspot.com/bug?exti

[PATCH v3 0/7] set clang minimum version to 10.0.1

2020-09-02 Thread Nick Desaulniers
Adds a compile time #error to compiler-clang.h setting the effective minimum supported version to clang 10.0.1. A separate patch has already been picked up into the Documentation/ tree also confirming the version. Next are a series of reverts. One for 32b arm is a partial revert. Then Marco sugge

[PATCH v3 1/7] compiler-clang: add build check for clang 10.0.1

2020-09-02 Thread Nick Desaulniers
During Plumbers 2020, we voted to just support the latest release of Clang for now. Add a compile time check for this. We plan to remove workarounds for older versions now, which will break in subtle and not so subtle ways. Suggested-by: Sedat Dilek Suggested-by: Nathan Chancellor Suggested-by

[PATCH v3 4/7] Revert "arm64: vdso: Fix compilation with clang older than 8"

2020-09-02 Thread Nick Desaulniers
This reverts commit 3acf4be235280f14d838581a750532219d67facc. The minimum supported version of clang is clang 10.0.1. Suggested-by: Nathan Chancellor Signed-off-by: Nick Desaulniers Reviewed-by: Kees Cook Reviewed-by: Nathan Chancellor --- arch/arm64/kernel/vdso/Makefile | 7 --- 1 file

[PATCH v3 3/7] Revert "arm64: bti: Require clang >= 10.0.1 for in-kernel BTI support"

2020-09-02 Thread Nick Desaulniers
This reverts commit b9249cba25a5dce5de87e5404503a5e11832c2dd. The minimum supported version of clang is now 10.0.1. Suggested-by: Nathan Chancellor Signed-off-by: Nick Desaulniers Reviewed-by: Kees Cook Reviewed-by: Nathan Chancellor --- arch/arm64/Kconfig | 2 -- 1 file changed, 2 deletions

[PATCH v3 5/7] Partially revert "ARM: 8905/1: Emit __gnu_mcount_nc when using Clang 10.0.0 or newer"

2020-09-02 Thread Nick Desaulniers
This partially reverts commit b0fe66cf095016e0b238374c10ae366e1f087d11. The minimum supported version of clang is now clang 10.0.1. We still want to pass -meabi=gnu. Suggested-by: Nathan Chancellor Signed-off-by: Nick Desaulniers Reviewed-by: Kees Cook Reviewed-by: Nathan Chancellor --- arch

Re: [PATCH V3 3/3] media: i2c: gc5035: Add GC5035 image sensor driver

2020-09-02 Thread Tomasz Figa
Hi Sakari, On Mon, Aug 31, 2020 at 7:41 PM Sakari Ailus wrote: > > Hi Xingyu, > > Thanks for the update. I've got a few more comments below. > > Do you happen to have some insight on what the OTP data contains and what > does the driver do with it? > > At least in principle the OTP data may be pr

[PATCH v3 6/7] kasan: Remove mentions of unsupported Clang versions

2020-09-02 Thread Nick Desaulniers
From: Marco Elver Since the kernel now requires at least Clang 10.0.1, remove any mention of old Clang versions and simplify the documentation. Signed-off-by: Marco Elver Signed-off-by: Nick Desaulniers Reviewed-by: Andrey Konovalov Reviewed-by: Kees Cook Reviewed-by: Nathan Chancellor ---

[PATCH v3 7/7] compiler-gcc: improve version error

2020-09-02 Thread Nick Desaulniers
As Kees suggests, doing so provides developers with two useful pieces of information: - The kernel build was attempting to use GCC. (Maybe they accidentally poked the wrong configs in a CI.) - They need 4.9 or better. ("Upgrade to what version?" doesn't need to be dug out of documentation, h

[PATCH] mtd: spi-nor: Prefer asynchronous probe

2020-09-02 Thread Douglas Anderson
On my system the spi_nor_probe() took ~6 ms at bootup. That's not a lot, but every little bit adds up to a slow bootup. While we can get this out of the boot path by making it a module, there are times where it is convenient (or even required) for this to be builtin the kernel. Let's set that we

[PATCH v3 2/7] Revert "kbuild: disable clang's default use of -fmerge-all-constants"

2020-09-02 Thread Nick Desaulniers
This reverts commit 87e0d4f0f37fb0c8c4aeeac46fff5e957738df79. -fno-merge-all-constants has been the default since clang-6; the minimum supported version of clang in the kernel is clang-10 (10.0.1). Suggested-by: Nathan Chancellor Signed-off-by: Nick Desaulniers Tested-by: Sedat Dilek Reviewed-

[PATCH v2 00/10] Support qcom USB3+DP combo phy (or type-c phy)

2020-09-02 Thread Stephen Boyd
This patch series is based on v12 of the msm DP driver submission[1] plus a compliance patch[2]. In the v5 patch series review I suggested that the DP PHY and PLL be split out of the drm driver and moved to the qmp phy driver. This patch series does that, but it is still marked as an RFC because th

[PATCH v2 09/10] clk: qcom: dispcc: Update DP clk ops for phy design

2020-09-02 Thread Stephen Boyd
The clk_rcg2_dp_determine_rate() function is used for the DP pixel clk. This function should return the rate that can be achieved by the pixel clk in 'struct clk_rate_request::rate' and match the logic similar to what is seen in clk_rcg2_dp_set_rate(). But that isn't the case. Instead the code mere

[PATCH v2 01/10] dt-bindings: phy: qcom,qmp-usb3-dp: Add DP phy information

2020-09-02 Thread Stephen Boyd
This binding only describes the USB phy inside the USB3 + DP "combo" phy. Add information for the DP phy and describe the sub-nodes that represent the DP and USB3 phys that exist inside the combo wrapper. Remove reg-names from required properties because it isn't required nor used by the kernel dri

[PATCH v2 06/10] phy: qcom-qmp: Use devm_platform_ioremap_resource() to simplify

2020-09-02 Thread Stephen Boyd
We can use the wrapper API here to save some lines and remove the need for the 'base' and 'res' local variable. Suggested-by: Bjorn Andersson Cc: Jeykumar Sankaran Cc: Chandan Uddaraju Cc: Vara Reddy Cc: Tanmay Shah Cc: Bjorn Andersson Cc: Manu Gautam Cc: Sandeep Maheswaram Cc: Douglas And

[PATCH v2 10/10] drm/msm/dp: Use qmp phy for DP PLL and PHY

2020-09-02 Thread Stephen Boyd
Make the necessary changes to the DP driver to use the qmp phy from the common phy framework instead of rolling our own in the drm subsystem. This also removes the PLL code and adds proper includes so things build. Cc: Jeykumar Sankaran Cc: Chandan Uddaraju Cc: Vara Reddy Cc: Tanmay Shah Cc: B

[PATCH v2 05/10] phy: qcom-qmp: Get dp_com I/O resource by index

2020-09-02 Thread Stephen Boyd
The dp_com resource is always at index 1 according to the dts files in the kernel. Get this resource by index so that we don't need to make future additions to the DT binding use 'reg-names'. Cc: Jeykumar Sankaran Cc: Chandan Uddaraju Cc: Vara Reddy Cc: Tanmay Shah Cc: Bjorn Andersson Cc: Man

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