Re: [GIT PULL] Networking

2020-10-15 Thread patchwork-bot+netdevbpf
Hello: This pull request was applied to netdev/net.git (refs/heads/master): On Thu, 15 Oct 2020 14:13:02 -0700 you wrote: > Hi! > > The following changes since commit 3fdd47c3b40ac48e6e6e5904cf24d12e6e073a96: > > Merge tag 'for_linus' of >

linux-next: Tree for Oct 16

2020-10-15 Thread Stephen Rothwell
Hi all, Since the merge window is open, please do not add any v5.11 material to your linux-next included branches until after v5.10-rc1 has been released. News: there will be no linux-next releases next Monday or Tuesday. Changes since 20201015: Undropped tree: btrfs The wireless-drivers tree

[RFC] PCI: allow sysfs file owner to read the config space with CAP_SYS_RAWIO

2020-10-15 Thread Allen Pais
From: Allen Pais Access to pci config space is explictly checked with CAP_SYS_ADMIN in order to read configuration space past the frist 64B. Since the path is only for reading, could we use CAP_SYS_RAWIO? This patch contains a simpler fix, I would love to hear from the Maintainers on the

Re: WARNING: at drivers/opp/core.c:678 dev_pm_opp_set_rate+0x4cc/0x5d4 - on arm x15

2020-10-15 Thread Viresh Kumar
+Dave, On 15-10-20, 15:26, Naresh Kamboju wrote: > The arm x15 boot failed on Linus 's mainline version 5.9.0. Don't mention the version as this doesn't give the right information. You tested it over 5.9 + 5.10-rc1 material. > I have listed the latest commits on drivers/opp/ . > > metadata: >

[rcu:dev.2020.10.14a] BUILD SUCCESS 87fb0cc38d2583d4084e2ddaa937625fd2d876e0

2020-10-15 Thread kernel test robot
randconfig-a003-20201014 x86_64 randconfig-a016-20201015 x86_64 randconfig-a012-20201015 x86_64 randconfig-a015-20201015 x86_64 randconfig-a013-20201015 x86_64 randconfig-a014-20201015 x86_64 randconfig-a011-20201015

Re: autofs crash with latest linux-next

2020-10-15 Thread Sven Schnelle
Kees Cook writes: > On Wed, Oct 14, 2020 at 09:15:47AM +0200, Krzysztof Kozlowski wrote: >> I hit this since few days as well. Although the bisect points to the >> merge, the issue looks like a result of mentioned commit 4d03e3cc5982 >> ("fs: don't allow kernel reads and writes without iter

[PATCH 4/6] can: flexcan: rename macro FLEXCAN_QUIRK_SETUP_STOP_MODE -> FLEXCAN_QUIRK_SETUP_STOP_MODE_GPR

2020-10-15 Thread Joakim Zhang
This patch intends to rename FLEXCAN_QUIRK_SETUP_STOP_MODE quirk to FLEXCAN_QUIRK_SETUP_STOP_MODE_GRP for non-scu SoCs, coming patch will add quirk for scu SoCs. For non-scu SoCs, setup stop mode with GPR register. For scu SoCs, setup stop mode with SCU firmware. Signed-off-by: Joakim Zhang ---

[PATCH 6/6] can: flexcan: fix ECC function on LS1021A/LX2160A

2020-10-15 Thread Joakim Zhang
After double check with Layerscape CAN owner (Pankaj Bansal), confirm that LS1021A doesn't support ECC, and LX2160A indeed supports ECC. For SoCs with ECC supported, even use FLEXCAN_QUIRK_DISABLE_MECR quirk to disable non-correctable errors interrupt and freeze mode, had better use

[PATCH 5/6] can: flexcan: add CAN wakeup function for i.MX8QM

2020-10-15 Thread Joakim Zhang
The System Controller Firmware (SCFW) is a low-level system function which runs on a dedicated Cortex-M core to provide power, clock, and resource management. It exists on some i.MX8 processors. e.g. i.MX8QM (QM, QP), and i.MX8QX (QXP, DX). SCU driver manages the IPC interface between host CPU and

Re: [PATCH] power: suspend: Add suspend timeout handler

2020-10-15 Thread Greg Kroah-Hartman
On Fri, Oct 16, 2020 at 11:51:09AM +0800, Joseph Jang wrote: > From: josephjang Please use your name as spelled out like you did above in the email header. > > Add suspend timeout handler to prevent device stuck during suspend/ > resume process. Suspend timeout handler will dump disk sleep

[PATCH 2/6] dt-bindings: can: flexcan: fix fsl,clk-source property

2020-10-15 Thread Joakim Zhang
Correct fsl,clk-source example since flexcan driver uses "of_property_read_u8" to get this property. Fixes: 9d733992772d ("dt-bindings: can: flexcan: add PE clock source property to device tree") Signed-off-by: Joakim Zhang --- Documentation/devicetree/bindings/net/can/fsl-flexcan.txt | 2 +-

[PATCH 3/6] dt-bindings: can: flexcan: add fsl,can-index property to indicate a resource

2020-10-15 Thread Joakim Zhang
For SoCs with SCU support, need setup stop mode via SCU firmware, so this property can help indicate a resource. Signed-off-by: Joakim Zhang --- Documentation/devicetree/bindings/net/can/fsl-flexcan.txt | 5 + 1 file changed, 5 insertions(+) diff --git

[PATCH 1/6] firmware: imx: always export SCU symbols

2020-10-15 Thread Joakim Zhang
From: Liu Ying Always export SCU symbols for both SCU SoCs and non-SCU SoCs to avoid build error. Signed-off-by: Liu Ying Signed-off-by: Peng Fan Signed-off-by: Joakim Zhang --- include/linux/firmware/imx/ipc.h | 15 +++ include/linux/firmware/imx/svc/misc.h | 23

[PATCH 0/6] can: flexcan: add stop mode support for i.MX8QM

2020-10-15 Thread Joakim Zhang
The first patch from Liu Ying aims to export SCU symbols for SoCs w/wo SCU, so that no need to check CONFIG_IMX_SCU in the specific driver. The following patches are for flexcan to add stop mode support for i.MX8QM. Joakim Zhang (5): dt-bindings: can: flexcan: fix fsl,clk-source property

Re: [RFC PATCH] mm: memcg/slab: Stop reparented obj_cgroups from charging root

2020-10-15 Thread Richard Palethorpe
Hello Roman, Roman Gushchin writes: > Hi Richard! > >> SLAB objects which outlive their memcg are moved to their parent >> memcg where they may be uncharged. However if they are moved to the >> root memcg, uncharging will result in negative page counter values as >> root has no page counters.

Re: [PATCH] Staging: android: ashmem: changed struct file_operations to const file_operations

2020-10-15 Thread Greg KH
On Fri, Oct 16, 2020 at 01:11:11AM -0400, kiransu...@osuosl.org wrote: > From: kiransuren This does not match your signed-off-by line :( > > Fixed a coding style issue. What issue? Always be specific. > > Signed-off-by: Kiran Surendran > --- > drivers/staging/android/ashmem.c | 2 +- > 1

Re: [PATCH] Staging: android: ashmem: changed struct file_operations to const file_operations

2020-10-15 Thread Randy Dunlap
On 10/15/20 10:11 PM, kiransu...@osuosl.org wrote: > From: kiransuren > > Fixed a coding style issue. > > Signed-off-by: Kiran Surendran > --- > drivers/staging/android/ashmem.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/android/ashmem.c >

Re: [PATCH v3 09/13] ASoC: dt-bindings: tegra: Add schema for audio graph card

2020-10-15 Thread Sameer Pujar
Add YAML schema for Tegra audio graph sound card DT bindings. It uses the same DT bindings provided by generic audio graph driver. Along with this few standard clock DT bindings are added which are specifically required for Tegra audio. Signed-off-by: Sameer Pujar ---  

[PATCH] f2fs: add compr_inode and compr_blocks sysfs nodes

2020-10-15 Thread Daeho Jeong
From: Daeho Jeong Added compr_inode to show compressed inode count and compr_blocks to show compressed block count in sysfs. Signed-off-by: Daeho Jeong --- Documentation/ABI/testing/sysfs-fs-f2fs | 10 ++ fs/f2fs/sysfs.c | 17 + 2 files changed,

Re: [PATCH V2 2/2] cpufreq: dt: Refactor initialization to handle probe deferral properly

2020-10-15 Thread Viresh Kumar
On 14-10-20, 18:40, Geert Uytterhoeven wrote: > On this platform (r8a7791-koelsch.dts), there is no opp table in DT. > > Before: I assume this means before this patchset came in.. > boot: > cpufreq-dt cpufreq-dt: dt_cpufreq_probe:362 > cpu cpu0: resources_available:95 >

[PATCH 3/4] scatterlist: add sgl_compare_sgl() function

2020-10-15 Thread Douglas Gilbert
After enabling copies between scatter gather lists (sgl_s), another storage related operation is to compare two sgl_s. This new function is modelled on NVMe's Compare command and the SCSI VERIFY(BYTCHK=1) command. Like memcmp() this function returns false on the first miscompare and stop

[PATCH 4/4] scatterlist: add sgl_memset()

2020-10-15 Thread Douglas Gilbert
The existing sg_zero_buffer() function is a bit restrictive. For example protection information (PI) blocks are usually initialized to 0xff bytes. As its name suggests sgl_memset() is modelled on memset(). One difference is the type of the val argument which is u8 rather than int. Signed-off-by:

[PATCH 0/4] scatterlist: add new capabilities

2020-10-15 Thread Douglas Gilbert
Scatter-gather lists (sgl_s) are frequently used as data carriers in the block layer. For example the SCSI and NVMe subsystems interchange data with the block layer using sgl_s. The sgl API is declared in The author has extended these transient sgl use cases to a store (i.e. ramdisk) in the

[PATCH 1/4] sgl_alloc_order: remove 4 GiB limit, sgl_free() warning

2020-10-15 Thread Douglas Gilbert
This patch removes a check done by sgl_alloc_order() before it starts any allocations. The comment before the removed code says: "Check for integer overflow" arguably gives a false sense of security. The right hand side of the expression in the condition is resolved as u32 so cannot exceed

[PATCH 2/4] scatterlist: add sgl_copy_sgl() function

2020-10-15 Thread Douglas Gilbert
Both the SCSI and NVMe subsystems receive user data from the block layer in scatterlist_s (aka scatter gather lists (sgl) which are often arrays). If drivers in those subsystems represent storage (e.g. a ramdisk) or cache "hot" user data then they may also choose to use scatterlist_s. Currently

linux-next: build failure after merge of the akpm-current tree

2020-10-15 Thread Stephen Rothwell
Hi all, After merging the akpm-current tree, today's linux-next build (powerpc ppc64_defconfig) failed like this: mm/readahead.c: In function 'page_cache_sync_ra': mm/readahead.c:565:8: error: 'filp' undeclared (first use in this function); did you mean 'file'? 565 | if (!filp) |

[PATCH] usb: gadget: fsl: fix null pointer checking

2020-10-15 Thread Ran Wang
fsl_ep_fifo_status() should return error if _ep->desc is null. Fixes: 75eaa498c99e (“usb: gadget: Correct NULL pointer checking in fsl gadget”) Signed-off-by: Ran Wang --- drivers/usb/gadget/udc/fsl_udc_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 2/2] ARM: dts: tacoma: Add reserved memory for ramoops

2020-10-15 Thread Andrew Jeffery
Reserve a 1.5MiB region of memory to record kmsg dumps, console and userspace message state into 16kiB ring-buffer slots. The sizing allows for up to 32 dumps to be captured and read out. Set max-reason to KMSG_DUMP_EMERG to capture bad-path reboots. Signed-off-by: Andrew Jeffery ---

[PATCH 1/2] ARM: dts: rainier: Add reserved memory for ramoops

2020-10-15 Thread Andrew Jeffery
Reserve a 1.5MiB region of memory to record kmsg dumps, console and userspace message state into 16kiB ring-buffer slots. The sizing allows for up to 32 dumps to be captured and read out. Set max-reason to KMSG_DUMP_EMERG to capture bad-path reboots. Signed-off-by: Andrew Jeffery ---

[PATCH 0/2] ARM: dts: Enable ramoops for Rainier and Tacoma

2020-10-15 Thread Andrew Jeffery
Hi, We're looking to improve our crash data capture for the BMC on some IBM platforms. This small series enables ramoops for Rainier and Tacoma. Please review. Andrew Andrew Jeffery (2): ARM: dts: rainier: Add reserved memory for ramoops ARM: dts: tacoma: Add reserved memory for ramoops

Re: [PATCH V2 1/2] opp: Allow dev_pm_opp_get_opp_table() to return -EPROBE_DEFER

2020-10-15 Thread Viresh Kumar
On 15-10-20, 19:05, Sudeep Holla wrote: > OK, this breaks with SCMI which doesn't provide clocks but manage OPPs > directly. Before this change clk_get(dev..) was allowed to fail and > --EPROBE_DEFER was not an error. I think the change in itself is fine. We should be returning from there if we

RE: [PATCH v3 1/1] i2c: ocores: fix polling mode workaround on FU540-C000 SoC

2020-10-15 Thread Sagar Kadam
Hello Peter, > -Original Message- > From: Peter Korsgaard On Behalf Of Peter Korsgaard > Sent: Thursday, October 15, 2020 8:19 PM > To: Sagar Kadam > Cc: linux-kernel@vger.kernel.org; linux-ri...@lists.infradead.org; linux- > i...@vger.kernel.org; and...@lunn.ch; Paul Walmsley ( Sifive)

[PATCH] tracing: Remove __init from __trace_early_add_new_event()

2020-10-15 Thread Masami Hiramatsu
The commit 720dee53ad8d ("tracing/boot: Initialize per-instance event list in early boot") removes __init from __trace_early_add_events() but __trace_early_add_new_event() still has __init and will cause a section mismatch. Remove __init from __trace_early_add_new_event() as same as

[PATCHv4] selftests: rtnetlink: load fou module for kci_test_encap_fou() test

2020-10-15 Thread Po-Hsu Lin
The kci_test_encap_fou() test from kci_test_encap() in rtnetlink.sh needs the fou module to work. Otherwise it will fail with: $ ip netns exec "$testns" ip fou add port ipproto 47 RTNETLINK answers: No such file or directory Error talking to the kernel Add the CONFIG_NET_FOU into the

Re: [PATCH V2] cpufreq: tegra186: Fix initial frequency

2020-10-15 Thread Viresh Kumar
On 15-10-20, 15:03, Jon Hunter wrote: > If not too late, would you mind dropping this patch for v5.10? It is already part of Linus's master now. -- viresh

Re: [GIT PULL] tracing: Updates for 5.10

2020-10-15 Thread Masami Hiramatsu
On Thu, 15 Oct 2020 23:54:44 -0400 Steven Rostedt wrote: > On Fri, 16 Oct 2020 11:53:23 +0900 > Masami Hiramatsu wrote: > > > > > > > I'll have to think about how to untangle this. Is there some kind of > > > annotation that makes it show that a path can only be called at boot up > > > and >

Re: [PATCH v1 09/29] virtio-mem: don't always trigger the workqueue when offlining memory

2020-10-15 Thread Wei Yang
On Mon, Oct 12, 2020 at 02:53:03PM +0200, David Hildenbrand wrote: >Let's trigger from offlining code when we're not allowed to touch online >memory. This describes the change in virtio_mem_memory_notifier_cb()? > >Handle the other case (memmap possibly freeing up another memory block) >when

Re: [PATCH v7 3/3] iommu/tegra-smmu: Add PCI support

2020-10-15 Thread Nicolin Chen
On Thu, Oct 15, 2020 at 10:55:52AM +0100, Robin Murphy wrote: > On 2020-10-15 05:13, Nicolin Chen wrote: > > On Wed, Oct 14, 2020 at 06:42:36PM +0100, Robin Murphy wrote: > > > On 2020-10-09 17:19, Nicolin Chen wrote: > > > > This patch simply adds support for PCI devices. > > > > > > > >

Re: [RFC PATCH 2/3] hugetlbfs: introduce hinode_rwsem for pmd sharing synchronization

2020-10-15 Thread Mike Kravetz
On 10/15/20 4:05 PM, HORIGUCHI NAOYA(堀口 直也) wrote: > On Tue, Oct 13, 2020 at 04:10:59PM -0700, Mike Kravetz wrote: >> Due to pmd sharing, the huge PTE pointer returned by huge_pte_alloc >> may not be valid. This can happen if a call to huge_pmd_unshare for >> the same pmd is made in another

Re: [PATCH v4 00/32] Make charlcd device independent

2020-10-15 Thread Miguel Ojeda
On Fri, Oct 16, 2020 at 4:33 AM Miguel Ojeda wrote: > > Picking these for linux-next (including Rob's Reviewed-by). I have > spotted a few typos that I corrected -- I will note them by email. Hmm, I think we should do another round instead, since I found what looks to be an unintended revert of

Re: [PATCH v4 08/32] auxdisplay: hd44780_common_print

2020-10-15 Thread Miguel Ojeda
On Mon, Oct 5, 2020 at 2:27 PM wrote: > > We create a hd44780_common_print function. It is derived from the > original charlcd_print. charlcd_print becomes a device independent print > function, that then only calles via it's ops function pointers, into the Typos: calles -> calls, it's -> its >

Re: [GIT PULL] tracing: Updates for 5.10

2020-10-15 Thread Steven Rostedt
On Fri, 16 Oct 2020 11:53:23 +0900 Masami Hiramatsu wrote: > > > > I'll have to think about how to untangle this. Is there some kind of > > annotation that makes it show that a path can only be called at boot up and > > not later? > > What happen if we use Peter's static_call() and update it

[PATCH] power: suspend: Add suspend timeout handler

2020-10-15 Thread Joseph Jang
From: josephjang Add suspend timeout handler to prevent device stuck during suspend/ resume process. Suspend timeout handler will dump disk sleep task at first round timeout and trigger kernel panic at second round timeout. The default timer for each round is 30 seconds. Note: Can use following

[PATCH] mm: vmscan: avoid a unnecessary reschedule in shrink_slab()

2020-10-15 Thread Xianting Tian
In shrink_slab(), it directly goes to 'out' label only when it can't get the lock of shrinker_rwsew. In this case, it doesn't do the real work of shrinking slab, so we don't need trigger a reschedule by cond_resched(). Signed-off-by: Xianting Tian --- mm/vmscan.c | 3 ++- 1 file changed, 2

Re: [PATCH V2] scripts: spelling: Remove space in the entry memry to memory

2020-10-15 Thread Bhaskar Chowdhury
On 20:19 Thu 15 Oct 2020, Joe Perches wrote: On Fri, 2020-10-16 at 04:38 +0530, Bhaskar Chowdhury wrote: On 16:06 Thu 15 Oct 2020, Joe Perches wrote: > On Fri, 2020-10-16 at 04:25 +0530, Bhaskar Chowdhury wrote: > > You have all flawed understanding...please stay away .. > > if you don't

Re: fw_devlink on will break all snps,dw-apb-gpio users

2020-10-15 Thread Jisheng Zhang
On Thu, 15 Oct 2020 15:08:33 +0100 Robin Murphy wrote: > > > On 2020-10-15 10:52, Jisheng Zhang wrote: > > On Thu, 15 Oct 2020 01:48:13 -0700 > > Saravana Kannan wrote: > > > >> On Thu, Oct 15, 2020 at 1:15 AM Jisheng Zhang > >> wrote: > >>> > >>> On Wed, 14 Oct 2020 22:04:24 -0700

Re: Dts for eth network based on marvell's mv88e6390x crashes Xilinx's linux-kernel v5.4

2020-10-15 Thread Andrew Lunn
On Sun, Oct 11, 2020 at 03:31:52PM +0300, michael alayev wrote: > Hello, > > This is my system's network topology. It relies on Xilinx's Zynq-7000 soc. > > zynq-7000 switch1 switch2 > (cpu) mv88e6390xmv88e6390x > --- - - > | | | |

Re: [PATCH v6 02/11] mm/gup: Use functions to track lockless pgtbl walks on gup_pgd_range

2020-10-15 Thread Aneesh Kumar K.V
Hi Michal, On 10/15/20 8:16 PM, Michal Suchánek wrote: Hello, On Thu, Feb 06, 2020 at 12:25:18AM -0300, Leonardo Bras wrote: On Thu, 2020-02-06 at 00:08 -0300, Leonardo Bras wrote: gup_pgd_range(addr, end, gup_flags, pages, ); - local_irq_enable(); +

Re: [PATCH v4 32/32] auxdisplay: add a driver for lcd2s character display

2020-10-15 Thread Miguel Ojeda
On Mon, Oct 5, 2020 at 3:01 PM wrote: > > + while (*esc && i < LCD2S_CHARACTER_SIZE + 2) { > + shift ^= 4; > + if (*esc >= '0' && *esc <= '9') { > + value |= (*esc - '0') << shift; > + } else if (*esc >= 'A' && *esc <= 'Z') { >

[GIT PULL] Please pull powerpc/linux.git powerpc-5.10-1 tag

2020-10-15 Thread Michael Ellerman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi Linus, Please pull powerpc updates for 5.10. Just two minor conflicts I'm aware of. The only slight subtlety is the conflict in kasan_init() where "int ret" needs to move out of the for_each_mem_range() and up to the function scope. Notable

Re: [PATCH V2] scripts: spelling: Remove space in the entry memry to memory

2020-10-15 Thread Joe Perches
On Fri, 2020-10-16 at 04:38 +0530, Bhaskar Chowdhury wrote: > On 16:06 Thu 15 Oct 2020, Joe Perches wrote: > > On Fri, 2020-10-16 at 04:25 +0530, Bhaskar Chowdhury wrote: > > > You have all flawed understanding...please stay away .. > > > if you don't understand something... > > > > You're

Re: [PATCH v4 24/32] auxdisplay: Move char redefine code to hd44780_common

2020-10-15 Thread Miguel Ojeda
On Mon, Oct 5, 2020 at 3:01 PM wrote: > > + while (*esc && cgoffset < 8) { > + shift ^= 4; > + if (*esc >= '0' && *esc <= '9') { > + value |= (*esc - '0') << shift; > + } else if (*esc >= 'A' && *esc <= 'F') { > +

Re: [PATCH v4 3/3] clk: qcom: lpasscc-sc7180: Re-configure the PLL in case lost

2020-10-15 Thread Stephen Boyd
Quoting Douglas Anderson (2020-10-14 17:13:29) > From: Taniya Das > > In the case where the PLL configuration is lost, then the pm runtime > resume will reconfigure before usage. Taniya, this commit needs a lot more describing than one sentence. I see that the PLL's L value is reset at boot,

Re: [PATCH v4 14/32] auxdisplay: Move init_display to hd44780_common

2020-10-15 Thread Miguel Ojeda
On Mon, Oct 5, 2020 at 3:01 PM wrote: > > The init_display function is moved over to hd44780_common. charlcd uses > it via it's ops function pointer and drivers initialize the ops with the it's -> its (Already corrected in my queue) Cheers, Miguel

Re: [PATCH] Bluetooth: Use lock_sock() when acquiring lock in sco_conn_del

2020-10-15 Thread Xu, Yanfei
On 10/14/20 8:31 PM, Hillf Danton wrote: On Wed, 14 Oct 2020 15:17:31 +0800 From: Yanfei Xu Locking slock-AF_BLUETOOTH-BTPROTO_SCO may happen in process context or BH context. If in process context, we should use lock_sock(). As blow warning, sco_conn_del() is called in process context,

[PATCH] Bluetooth: btusb: Add support for LG LGSBWAC92/TWCM-K505D

2020-10-15 Thread Forest Crossman
The LG LGSBWAC92/TWCM-K505D/EAT64454801/EAT64454802 (it goes by many names) is a combo WiFi/Bluetooth module that's used in several models of LG TVs. It uses the MediaTek MT7668AUN, which is already supported in btusb, but this device has a non-MediaTek USB VID so to get it to work we just need to

Re: [GIT PULL] tracing: Updates for 5.10

2020-10-15 Thread Masami Hiramatsu
On Thu, 15 Oct 2020 22:21:39 -0400 Steven Rostedt wrote: > On Thu, 15 Oct 2020 18:54:34 -0700 > Linus Torvalds wrote: > > > On Thu, Oct 15, 2020 at 10:53 AM Steven Rostedt wrote: > > > > > > Updates for tracing and bootconfig: > > > > Hmm. I haven't verified that this came from you, but it

Re: [PATCH v4 02/32] auxdisplay: Introduce hd44780_common.[ch]

2020-10-15 Thread Miguel Ojeda
On Mon, Oct 5, 2020 at 2:27 PM wrote: > > diff --git a/drivers/auxdisplay/hd44780_common.c > b/drivers/auxdisplay/hd44780_common.c > new file mode 100644 > index ..073f47397f7d > --- /dev/null > +++ b/drivers/auxdisplay/hd44780_common.c > @@ -0,0 +1,21 @@ > +//

[PATCH v3 net-next] net: stmmac: Enable EEE HW LPI timer with auto SW/HW switching

2020-10-15 Thread Voon Weifeng
From: "Vineetha G. Jaya Kumaran" This patch enables the HW LPI Timer which controls the automatic entry and exit of the LPI state. The EEE LPI timer value is configured through ethtool. The driver will auto select the LPI HW timer if the value in the HW timer supported range. Else, the driver

[RFC PATCH 6/6] mm: remove now-unused mmdrop_async()

2020-10-15 Thread Jann Horn
The preceding patches have removed all users of mmdrop_async(); get rid of it. Note that on MMU, we still need async_put_work because mmput_async() uses it, which in turn is used by binder's shrinker callback. We could claw back those 4 words per mm if we made mmput_async() depend on

[RFC PATCH 0/6] mm and ptrace: Track dumpability until task is freed

2020-10-15 Thread Jann Horn
At the moment, there is a lifetime issue (no, not the UAF kind) around __ptrace_may_access(): __ptrace_may_access() wants to check mm->flags and mm->user_ns to figure out whether the caller should be allowed to access some target task. __ptrace_may_access() can be called as long as

[RFC PATCH 5/6] ptrace: Use mm_ref() for ->exit_mm

2020-10-15 Thread Jann Horn
We only use ->exit_mm to look up dumpability and the ->user_mm; we don't need to keep the PGD alive for this. mmgrab() is also inconvenient here, because it means that we need to use mmdrop_async() when dropping the reference to the mm from an RCU callback. Use mm_ref() instead of mmgrab() to make

[RFC PATCH 1/6] ptrace: Keep mm around after exit_mm() for __ptrace_may_access()

2020-10-15 Thread Jann Horn
__ptrace_may_access() checks can happen on target tasks that are in the middle of do_exit(), past exit_mm(). At that point, the ->mm pointer has been NULLed out, and the mm_struct has been mmput(). Unfortunately, the mm_struct contains the dumpability and the user_ns in which the task last went

[RFC PATCH 3/6] mm: Add refcount for preserving mm_struct without pgd

2020-10-15 Thread Jann Horn
Currently, mm_struct has two refcounts: - mm_users: preserves everything - the mm_struct, the page tables, the memory mappings, and so on - mm_count: preserves the mm_struct and pgd However, there are three types of users of mm_struct: 1. users that want page tables, memory mappings and so

[RFC PATCH 4/6] mm, oom: Use mm_ref()/mm_unref() and avoid mmdrop_async()

2020-10-15 Thread Jann Horn
The OOM killer uses MMF_OOM_SKIP to avoid running on an mm that has started __mmput(); it only uses the mmgrab() reference to ensure that the mm_struct itself stays alive. This means that we don't need a full mmgrab() reference, which will keep the pgd (and potentially also some pmd pages) alive

[RFC PATCH 2/6] refcount: Move refcount_t definition into linux/types.h

2020-10-15 Thread Jann Horn
I want to use refcount_t in mm_struct, but if refcount_t is defined in linux/refcount.h, that header would have to be included in linux/mm_types.h; that would be wasteful. Let's move refcount_t over into linux/types.h so that includes can be written less wastefully. Signed-off-by: Jann Horn ---

Re: [PATCH v3] Add support for mv88e6393x family of Marvell.

2020-10-15 Thread Florian Fainelli
On 10/15/2020 7:09 PM, Pavana Sharma wrote: The Marvell 88E6393X device is a single-chip integration of a 11-port Ethernet switch with eight integrated Gigabit Ethernet (GbE) transceivers and three 10-Gigabit interfaces. This patch adds functionalities specific to mv88e6393x family

Re: [PATCH v4 01/32] auxdisplay: Use an enum for charlcd backlight on/off ops

2020-10-15 Thread Miguel Ojeda
On Mon, Oct 5, 2020 at 2:27 PM wrote: > > We use an enum for calling the functions in charlcd, that turn the > backlight on or off. This enum is generic and can be used for other > charlcd turn of / turn off operations as well. Typo: of -> on (Already corrected in my queue) Cheers, Miguel

Re: [GIT PULL] tracing: Updates for 5.10

2020-10-15 Thread Masami Hiramatsu
On Thu, 15 Oct 2020 18:54:34 -0700 Linus Torvalds wrote: > On Thu, Oct 15, 2020 at 10:53 AM Steven Rostedt wrote: > > > > Updates for tracing and bootconfig: > > Hmm. I haven't verified that this came from you, but it seems likely.. > Once again my clang build shows something that I don't see

Re: [PATCH v4 00/32] Make charlcd device independent

2020-10-15 Thread Miguel Ojeda
Hi Lars, On Tue, Oct 6, 2020 at 10:38 AM Lars Poeschel wrote: > > Changes in v4: > - modtronix -> Modtronix in new lcd2s driver > - Kconfig: remove "default n" in new lcd2s driver > > Changes in v3: > - Fix some typos in Kconfig stuff > - Fix kernel test robot reported error: Missed

[PATCH v2] arm:traps: Don't print stack or raw PC/LR hex values in backtraces

2020-10-15 Thread Xiaoming Ni
Printing raw pointer values in backtraces has potential security implications and are of questionable value anyway. This patch follows x86 and arm64's lead and removes the "Exception stack:" dump from kernel backtraces: commit a25ffd3a6302a6 ("arm64: traps: Don't print stack or raw

[PATCH v6] usb-serial:cp210x: add support to software flow control

2020-10-15 Thread Sheng Long Wang
From: Wang Sheng Long When data is transmitted between two serial ports, the phenomenon of data loss often occurs. The two kinds of flow control commonly used in serial communication are hardware flow control and software flow control. In serial communication, If you only use RX/TX/GND Pins,

Re: [f2fs-dev] [PATCH 2/2] f2fs: add F2FS_IOC_SET_COMPRESS_OPTION ioctl

2020-10-15 Thread Daeho Jeong
> mnt_want_write_file() checks for write permission to the mount, not to the > file. > > I think this ioctl wants what f2fs_sec_trim_file() does: > > if (!(filp->f_mode & FMODE_WRITE)) > return -EBADF; > > file_start_write(filp); > inode_lock(inode); >

Re: [GIT PULL] tracing: Updates for 5.10

2020-10-15 Thread Steven Rostedt
On Thu, 15 Oct 2020 18:54:34 -0700 Linus Torvalds wrote: > On Thu, Oct 15, 2020 at 10:53 AM Steven Rostedt wrote: > > > > Updates for tracing and bootconfig: > > Hmm. I haven't verified that this came from you, but it seems likely.. > Once again my clang build shows something that I don't

Re: [PATCH v1 05/29] virtio-mem: generalize check for added memory

2020-10-15 Thread Wei Yang
On Thu, Oct 15, 2020 at 10:50:27AM +0200, David Hildenbrand wrote: [...] >> >>> dev_warn(>dev, "device still has system memory added\n"); >>> } else { >>> virtio_mem_delete_resource(vm); >> >> BTW, I got one question during review. >> >> Per my understanding, there

[PATCH v3] Add support for mv88e6393x family of Marvell.

2020-10-15 Thread Pavana Sharma
The Marvell 88E6393X device is a single-chip integration of a 11-port Ethernet switch with eight integrated Gigabit Ethernet (GbE) transceivers and three 10-Gigabit interfaces. This patch adds functionalities specific to mv88e6393x family (88E6393X, 88E6193X and 88E6191X) Signed-off-by: Pavana

Re: [GIT PULL] Networking

2020-10-15 Thread pr-tracker-bot
The pull request you sent on Thu, 15 Oct 2020 14:13:02 -0700: > git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git > tags/net-next-5.10 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/9ff9b0d392ea08090cd1780fb196f36dbb586529 Thank you! --

Re: [GIT PULL] tracing: Updates for 5.10

2020-10-15 Thread Linus Torvalds
On Thu, Oct 15, 2020 at 10:53 AM Steven Rostedt wrote: > > Updates for tracing and bootconfig: Hmm. I haven't verified that this came from you, but it seems likely.. Once again my clang build shows something that I don't see in my allmodconfig gcc build: WARNING: modpost:

Re: [PATCH 8/8] staging: wfx: improve robustness of wfx_get_hw_rate()

2020-10-15 Thread Nathan Chancellor
On Fri, Oct 09, 2020 at 07:13:07PM +0200, Jerome Pouiller wrote: > From: Jérôme Pouiller > > Smatch complains: > > data_tx.c:37 wfx_get_hw_rate() warn: constraint '(struct > ieee80211_supported_band)->bitrates' overflow 'band->bitrates' 0 <= abs_rl > '0-127' user_rl '' required = '(struct

linux-next: manual merge of the amdgpu tree with Linus' tree

2020-10-15 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the amdgpu tree got a conflict in: drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c between commit: 3cb9d2416ccd ("drm/amd/pm: setup APU dpm clock table in SMU HW initialization") from Linus' tree and commit: 44d6e160f60a ("drm/amd/pm: setup APU dpm clock

Re: [PATCH v2] x86/insn, tools/x86: Fix some potential undefined behavior.

2020-10-15 Thread Masami Hiramatsu
On Thu, 15 Oct 2020 09:12:16 -0700 Ian Rogers wrote: > From: Numfor Mbiziwo-Tiapo > > Don't perform unaligned loads in __get_next and __peek_nbyte_next as > these are forms of undefined behavior. > > These problems were identified using the undefined behavior sanitizer > (ubsan) with the

My Dear in the lord

2020-10-15 Thread Mrs. Mina A. Brunel
My Dear in the lord My name is Mrs. Mina A. Brunel I am a Norway Citizen who is living in Burkina Faso, I am married to Mr. Brunel Patrice, a politicians who owns a small gold company in Burkina Faso; He died of Leprosy and Radesyge, in year February 2010, During his lifetime he deposited

[PATCH drm/hisilicon v3 0/2] Use the same style of variable type

2020-10-15 Thread Tian Tao
patch #1 and #2 Use the same style of variable type in hisilicon drm driver and both are clean up, no actual functional changes. Changes since v1: -Change part of unsigned int to size_t. Changes since v2: -Modify the type of fb_base and fb_size to resource_size_t. Tian Tao (2):

[PATCH drm/hisilicon v3 2/2] drm/hisilicon: Use the same style of variable type in hibmc_drm_drv

2020-10-15 Thread Tian Tao
Consistently Use the same style of variable type in hibmc_drm_drv.c and hibmc_drm_drv.h. Signed-off-by: Tian Tao Acked-by: Thomas Zimmermann --- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 13 ++--- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h | 8 2 files changed,

[PATCH drm/hisilicon v3 1/2] drm/hisilicon: Use the same style of variable type in hibmc_drm_de

2020-10-15 Thread Tian Tao
Consistently Use the same style of variable type in hibmc_drm_de.c. Signed-off-by: Tian Tao Acked-by: Thomas Zimmermann --- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c | 59 +- 1 file changed, 29 insertions(+), 30 deletions(-) diff --git

Re: [PATCH v2 net-next] net: stmmac: Enable EEE HW LPI timer with auto SW/HW switching

2020-10-15 Thread kernel test robot
/kernel/git/davem/net-next.git d25e2e9388eda61b6e298585024ee3355f50c493 config: x86_64-randconfig-a012-20201015 (attached as .config) compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project e7b4feea8e1bf520b34ad8c116abab6677344b74) reproduce (this is a W=1 build): wget https

Re: [PATCH] zsmalloc: Rework the list_add code in insert_zspage()

2020-10-15 Thread Sergey Senozhatsky
On (20/10/15 11:51), Minchan Kim wrote: > On Thu, Oct 15, 2020 at 09:01:07AM -0400, Miaohe Lin wrote: > > Rework the list_add code to make it more readable and simplicity. > > > > Signed-off-by: Miaohe Lin > Acked-by: Minchan Kim Reviewed-by: Sergey Senozhatsky -ss

Re: [PATCH] zram: support a page writeback

2020-10-15 Thread Sergey Senozhatsky
On (20/10/12 00:14), Minchan Kim wrote: > > With the command, zram writeback idle pages from memory to the storage. > > +If admin want to write a specific page in zram device to backing device, > +they could write the page index into the interface. > + > + echo 1251 >

[PATCH v9 02/15] PCI/RCEC: Bind RCEC devices to the Root Port driver

2020-10-15 Thread Sean V Kelley
From: Qiuxu Zhuo If a Root Complex Integrated Endpoint (RCiEP) is implemented, it may signal errors through a Root Complex Event Collector (RCEC). Each RCiEP must be associated with no more than one RCEC. For an RCEC (which is technically not a Bridge), error messages "received" from

[PATCH v9 07/15] PCI/ERR: Use "bridge" for clarity in pcie_do_recovery()

2020-10-15 Thread Sean V Kelley
From: Sean V Kelley pcie_do_recovery() may be called with "dev" being either a bridge (Root Port or Switch Downstream Port) or an Endpoint. The bulk of the function deals with the bridge, so if we start with an Endpoint, we reset "dev" to be the bridge leading to it. For clarity, replace "dev"

[PATCH v9 05/15] PCI/ERR: Simplify by using pci_upstream_bridge()

2020-10-15 Thread Sean V Kelley
From: Sean V Kelley Use pci_upstream_bridge() in place of dev->bus->self. No functional change intended. [bhelgaas: split to separate patch] Link: https://lore.kernel.org/r/20201002184735.1229220-6-seanvk@oregontracks.org Signed-off-by: Sean V Kelley Signed-off-by: Bjorn Helgaas

[PATCH v9 06/15] PCI/ERR: Simplify by computing pci_pcie_type() once

2020-10-15 Thread Sean V Kelley
From: Sean V Kelley Instead of calling pci_pcie_type(dev) twice, call it once and save the result. No functional change intended. [bhelgaas: split to separate patch] Link: https://lore.kernel.org/r/20201002184735.1229220-6-seanvk@oregontracks.org Signed-off-by: Sean V Kelley

[PATCH v9 08/15] PCI/ERR: Avoid negated conditional for clarity

2020-10-15 Thread Sean V Kelley
From: Sean V Kelley Reverse the sense of the Root Port/Downstream Port conditional for clarity. No functional change intended. [bhelgaas: split to separate patch] Link: https://lore.kernel.org/r/20201002184735.1229220-6-seanvk@oregontracks.org Signed-off-by: Sean V Kelley Signed-off-by:

[PATCH v9 09/15] PCI/ERR: Add pci_walk_bridge() to pcie_do_recovery()

2020-10-15 Thread Sean V Kelley
From: Sean V Kelley Consolidate subordinate bus checks with pci_walk_bus() into pci_walk_bridge() for walking below potentially AER affected bridges. [bhelgaas: fix kerneldoc] Suggested-by: Bjorn Helgaas Link: https://lore.kernel.org/r/20201002184735.1229220-7-seanvk@oregontracks.org

[PATCH v9 04/15] PCI/ERR: Rename reset_link() to reset_subordinates()

2020-10-15 Thread Sean V Kelley
From: Sean V Kelley reset_link() appears to be misnamed. The point is to reset any devices below a given bridge, so rename it to reset_subordinates() to make it clear that we are passing a bridge with the intent to reset the devices below it. [bhelgaas: fix reset_subordinate_device() typo,

[PATCH v9 03/15] PCI/RCEC: Cache RCEC capabilities in pci_init_capabilities()

2020-10-15 Thread Sean V Kelley
From: Sean V Kelley Extend support for Root Complex Event Collectors by decoding and caching the RCEC Endpoint Association Extended Capabilities when enumerating. Use that cached information for later error source reporting. See PCIe r5.0, sec 7.9.10. [bhelgaas: make pci_rcec_init() void, set

[PATCH v9 10/15] PCI/ERR: Limit AER resets in pcie_do_recovery()

2020-10-15 Thread Sean V Kelley
From: Sean V Kelley In some cases a bridge may not exist as the hardware controlling may be handled only by firmware and so is not visible to the OS. This scenario is also possible in future use cases involving non-native use of RCECs by firmware. Explicitly apply conditional logic around these

[PATCH v9 13/15] PCI/AER: Add pcie_walk_rcec() to RCEC AER handling

2020-10-15 Thread Sean V Kelley
From: Sean V Kelley Root Complex Event Collectors (RCEC) appear as peers to Root Ports and also have the AER capability. In addition, actions need to be taken for associated RCiEPs. In such cases the RCECs will need to be walked in order to find and act upon their respective RCiEPs. Extend the

[PATCH v9 11/15] PCI/RCEC: Add pcie_link_rcec() to associate RCiEPs

2020-10-15 Thread Sean V Kelley
From: Sean V Kelley A Root Complex Event Collector terminates error and PME messages from associated RCiEPs. Use the RCEC Endpoint Association Extended Capability to identify associated RCiEPs. Link the associated RCiEPs as the RCECs are enumerated. Co-developed-by: Qiuxu Zhuo Link:

[PATCH v9 12/15] PCI/RCEC: Add RCiEP's linked RCEC to AER/ERR

2020-10-15 Thread Sean V Kelley
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 Status, the Uncorrectable Error Status and the Uncorrectable Error Severity of the parent RCEC. In some non-native cases in which there is no OS-visible

  1   2   3   4   5   6   7   8   9   10   >