Re: [PATCH v5 3/4] power: supply: core: add wireless signal strength property

2020-07-21 Thread ivan
On Tue, Jul 21, 2020 at 4:19 PM Greg KH wrote: > > On Tue, Jul 21, 2020 at 01:59:36PM +0800, Qiwu Huang wrote: > > From: Qiwu Huang > > > > reports wireless signal strength. > > The value show degree of coupling between tx and rx. > > > > Signed-off-by: Qiwu Huang > > --- > >

[PATCH v7 5/5] dt-bindings: display: imx: add bindings for DCSS

2020-07-21 Thread Laurentiu Palcu
From: Laurentiu Palcu Add bindings for iMX8MQ Display Controller Subsystem. Signed-off-by: Laurentiu Palcu Reviewed-by: Rob Herring --- .../bindings/display/imx/nxp,imx8mq-dcss.yaml | 104 ++ 1 file changed, 104 insertions(+) create mode 100644

[PATCH v7 3/5] drm/imx/dcss: use drm_bridge_connector API

2020-07-21 Thread Laurentiu Palcu
From: Laurentiu Palcu Make use of drm_bridge_connector API to have the connector initialized by the display controller. Signed-off-by: Laurentiu Palcu CC: Sam Ravnborg CC: Laurent Pinchart --- drivers/gpu/drm/imx/dcss/dcss-dev.c | 17 +--- drivers/gpu/drm/imx/dcss/dcss-kms.c |

[PATCH v7 0/5] Add support for iMX8MQ Display Controller Subsystem

2020-07-21 Thread Laurentiu Palcu
From: Laurentiu Palcu Hi, This patchset adds initial DCSS support for iMX8MQ chip. Initial support includes only graphics plane support (no video planes), no HDR10 capabilities, no graphics decompression (only linear, tiled and super-tiled buffers allowed). Support for the rest of the features

Re: linux-next: Tree for Jul 20 (kernel/bpf/net_namespace)

2020-07-21 Thread Jakub Sitnicki
On Mon, Jul 20, 2020 at 09:37 PM CEST, Alexei Starovoitov wrote: > On Mon, Jul 20, 2020 at 11:49 AM Stephen Rothwell > wrote: >> >> Hi all, >> >> On Mon, 20 Jul 2020 08:51:54 -0700 Randy Dunlap >> wrote: >> > >> > on i386 or x86_64: >> > >> > # CONFIG_INET is not set >> > # CONFIG_NET_NS is

Re: [PATCH v5 05/18] nitro_enclaves: Handle PCI device command requests

2020-07-21 Thread Alexander Graf
On 15.07.20 21:45, Andra Paraschiv wrote: The Nitro Enclaves PCI device exposes a MMIO space that this driver uses to submit command requests and to receive command replies e.g. for enclave creation / termination or setting enclave resources. Add logic for handling PCI device command

[PATCH v3] drm/virtio: fix missing dma_fence_put() in virtio_gpu_execbuffer_ioctl()

2020-07-21 Thread Xin He
From: Qi Liu We should put the reference count of the fence after calling virtio_gpu_cmd_submit(). So add the missing dma_fence_put(). Fixes: 2cd7b6f08bc4 ("drm/virtio: add in/out fence support for explicit synchronization") Co-developed-by: Xin He Signed-off-by: Xin He Signed-off-by: Qi Liu

Re: [PATCH] Replace HTTP links with HTTPS ones: CLOCKSOURCE, CLOCKEVENT DRIVERS

2020-07-21 Thread Daniel Lezcano
On 08/07/2020 18:58, Alexander A. Klimov wrote: > Rationale: > Reduces attack surface on kernel devs opening the links for MITM > as HTTPS traffic is much harder to manipulate. > > Deterministic algorithm: > For each file: > If not .svg: > For each line: > If doesn't contain

RE: [PATCH 03/24] net: add a new sockptr_t type

2020-07-21 Thread David Laight
From: Christoph Hellwig > Sent: 20 July 2020 13:47 > > Add a uptr_t type that can hold a pointer to either a user or kernel > memory region, and simply helpers to copy to and from it. For > architectures like x86 that have non-overlapping user and kernel > address space it just is a union and

Re: [tip:sched/fifo 44/45] ERROR: modpost: "sched_setscheduler" undefined!

2020-07-21 Thread Qais Yousef
On 07/21/20 10:36, pet...@infradead.org wrote: > On Mon, Jul 20, 2020 at 06:19:43PM -0400, Steven Rostedt wrote: > > On Mon, 20 Jul 2020 23:49:18 +0200 > > Peter Zijlstra wrote: > > > > > Steve, would this work for you, or would you prefer renaming the > > > parameters as well? > > > > > > >

Re: [PATCH 4.9 00/86] 4.9.231-rc1 review

2020-07-21 Thread Naresh Kamboju
On Mon, 20 Jul 2020 at 21:12, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.9.231 release. > There are 86 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > >

Re: [PATCH][next] clk: vc5: fix use of memory after it has been kfree'd

2020-07-21 Thread Luca Ceresoli
Hi Colin, On 25/06/20 15:27, Colin King wrote: > From: Colin Ian King > > There are a several places where printing an error message of > init.name occurs after init.name has been kfree'd. Also the failure > message is duplicated each time in the code. Fix this by adding > a registration error

Re: [PATCH V3] clk: vc5: Add memory check to prevent oops

2020-07-21 Thread Luca Ceresoli
Hi Stephen, On 21/07/20 11:19, Stephen Boyd wrote: > Quoting Adam Ford (2020-07-16 05:26:20) >> When getting the names of the child nodes, kasprintf is used to >> allocate memory which is used to create the string for the node >> name. Unfortunately, there is no memory check to determine >> if

Re: [PATCH v2 1/8] usb: dwc2: gadget: Make use of GINTMSK2

2020-07-21 Thread Minas Harutyunyan
Hi Felipe, On 7/21/2020 1:43 PM, Felipe Balbi wrote: > Minas Harutyunyan writes: > >> On 7/15/2020 1:32 PM, Lee Jones wrote: >>> The value obtained from GINTSTS2 should be masked with the GINTMSK2 >>> value. Looks like this has been broken since >>> dwc2_gadget_wkup_alert_handler() was added

Re: [PATCHv3 2/6] irqchip/irq-pruss-intc: Add a PRUSS irqchip driver for PRUSS interrupts

2020-07-21 Thread Marc Zyngier
On 2020-07-21 10:27, Grzegorz Jaszczyk wrote: Hi Marc, First of all thank you very much for your review. I apologize in advance if the description below is too verbose or not detailed enough. On Fri, 17 Jul 2020 at 14:36, Marc Zyngier wrote: Suman, Grzegorz, On Wed, 15 Jul 2020 14:38:05

[PATCH net-next 7/7] ARM: dts: at91: sam9x60: add an mdio sub-node to macb

2020-07-21 Thread Codrin Ciubotariu
Use the new macb bindings and add an mdio sub-node to contain all the phy nodes. Signed-off-by: Codrin Ciubotariu --- arch/arm/boot/dts/at91-sam9x60ek.dts | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/at91-sam9x60ek.dts

[PATCH net-next 6/7] ARM: dts: at91: sama5d4: add an mdio sub-node to macb

2020-07-21 Thread Codrin Ciubotariu
Use the new macb bindings and add an mdio sub-node to contain all the phy nodes. Signed-off-by: Codrin Ciubotariu --- arch/arm/boot/dts/at91-sama5d4_xplained.dts | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/at91-sama5d4_xplained.dts

[PATCH net-next 5/7] ARM: dts: at91: sama5d3: add an mdio sub-node to macb

2020-07-21 Thread Codrin Ciubotariu
Use the new macb bindings and add an mdio sub-node to contain all the phy nodes. Signed-off-by: Codrin Ciubotariu --- arch/arm/boot/dts/at91-sama5d3_xplained.dts | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/at91-sama5d3_xplained.dts

[PATCH net-next 4/7] ARM: dts: at91: sama5d2: add an mdio sub-node to macb

2020-07-21 Thread Codrin Ciubotariu
Use the new macb bindings and add an mdio sub-node to contain all the phy nodes. Signed-off-by: Codrin Ciubotariu --- arch/arm/boot/dts/at91-sama5d27_som1.dtsi | 16 ++-- arch/arm/boot/dts/at91-sama5d27_wlsom1.dtsi | 17 ++--- arch/arm/boot/dts/at91-sama5d2_ptc_ek.dts

[GIT PULL] sound fixes for 5.8-rc7

2020-07-21 Thread Takashi Iwai
Linus, please pull sound fixes for v5.8-rc7 from: git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git tags/sound-5.8-rc7 The topmost commit is 568e4e82128aac2c62c2c359ebebb6007fd794f9 sound fixes for 5.8-rc7 This

Re: [PATCH 5.4 000/215] 5.4.53-rc1 review

2020-07-21 Thread Naresh Kamboju
On Mon, 20 Jul 2020 at 21:27, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.4.53 release. > There are 215 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > >

[PATCH net-next 3/7] net: macb: parse PHY nodes found under an MDIO node

2020-07-21 Thread Codrin Ciubotariu
The MACB embeds an MDIO bus controller. For this reason, the PHY nodes were represented as sub-nodes in the MACB node. Generally, the Ethernet controller is different than the MDIO controller, so the PHYs are probed by a separate MDIO driver. Since adding the PHY nodes directly under the ETH node

[PATCH net-next 1/7] net: macb: use device-managed devm_mdiobus_alloc()

2020-07-21 Thread Codrin Ciubotariu
Use the device-managed variant for the allocating the MDIO bus. This cleans-up the code a little on the remove and error paths. Signed-off-by: Codrin Ciubotariu --- drivers/net/ethernet/cadence/macb_main.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git

Re: [RFC PATCH 4/7] x86: use exit_lazy_tlb rather than membarrier_mm_sync_core_before_usermode

2020-07-21 Thread Nicholas Piggin
Excerpts from Mathieu Desnoyers's message of July 21, 2020 2:46 am: > - On Jul 19, 2020, at 11:03 PM, Nicholas Piggin npig...@gmail.com wrote: > >> Excerpts from Mathieu Desnoyers's message of July 17, 2020 11:42 pm: >>> - On Jul 16, 2020, at 7:26 PM, Nicholas Piggin npig...@gmail.com

[PATCH net-next 2/7] macb: bindings doc: use an MDIO node as a container for PHY nodes

2020-07-21 Thread Codrin Ciubotariu
The MACB driver embeds an MDIO bus controller and for this reason there was no need for an MDIO sub-node present to contain the PHY nodes. Adding MDIO devies directly under an Ethernet node is deprecated, so an MDIO node is included to contain of the PHY nodes (and other MDIO devices' nodes).

RE: [RFC PATCH 1/2] vfs: pass file down when getattr to avoid losing info.

2020-07-21 Thread Jianyong Wu
> -Original Message- > From: Dominique Martinet > Sent: Monday, July 20, 2020 10:54 PM > To: Jianyong Wu > Cc: eri...@gmail.com; h...@lst.de; dhowe...@redhat.com; > lu...@ionkov.net; v9fs-develo...@lists.sourceforge.net; linux- > ker...@vger.kernel.org; Kaly Xin ; Justin He > ; Wei

[PATCH net-next 0/7] Add an MDIO sub-node under MACB

2020-07-21 Thread Codrin Ciubotariu
Adding the PHY nodes directly under the Ethernet node became deprecated, so the aim of this patch series is to make MACB use an MDIO node as container for MDIO devices. This patch series starts with a small patch to use the device-managed devm_mdiobus_alloc(). In the next two patches we update the

[PATCH][next] x86/ioperm: initialize pointer bitmap with NULL rather than 0

2020-07-21 Thread Colin King
From: Colin Ian King The pointer bitmap is being initialized with a plain integer 0, fix this by initializing it with a NULL instead. Cleans up sparse warning: arch/x86/xen/enlighten_pv.c:876:27: warning: Using plain integer as NULL pointer Signed-off-by: Colin Ian King ---

Re: [PATCH v4 2/7] iio: core: wrap IIO device into an iio_dev_opaque object

2020-07-21 Thread Alexandru Ardelean
On Tue, Jul 21, 2020 at 12:47 PM Dmitry Baryshkov wrote: > > Hello, > > On Tue, Jun 30, 2020 at 07:57:03AM +0300, Alexandru Ardelean wrote: > > There are plenty of bad designs we want to discourage or not have to review > > manually usually about accessing private (marked as [INTERN]) fields of >

[PATCH v3 0/3] x86/mm/64: Remove vmalloc/ioremap pgtable synchronization

2020-07-21 Thread Joerg Roedel
From: Joerg Roedel Hi, here is the third version of the patches to pre-allocate P4D/PUD pages for the vmalloc/ioremap areas on x86-64. This makes the page-table synchronization code obsolete and so it is also removed. Please review. Thanks, Joerg Changes to v2: - Rebased to

[PATCH v3 3/3] x86/mm/64: Make sync_global_pgds() static

2020-07-21 Thread Joerg Roedel
From: Joerg Roedel The function is only called from within init_64.c and can be static. Also remove it from pgtable_64.h. Signed-off-by: Joerg Roedel --- arch/x86/include/asm/pgtable_64.h | 2 -- arch/x86/mm/init_64.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff

[PATCH v3 1/3] x86/mm: Pre-allocate p4d/pud pages for vmalloc area

2020-07-21 Thread Joerg Roedel
From: Joerg Roedel Pre-allocate the page-table pages for the vmalloc area at the level which needs synchronization on x86-64, which is P4D for 5-level and PUD for 4-level paging. Doing this at boot makes sure all no synchronization of that area is necessary at runtime. The synchronization takes

[PATCH v3 2/3] x86/mm/64: Do not sync vmalloc/ioremap mappings

2020-07-21 Thread Joerg Roedel
From: Joerg Roedel Remove the code to sync the vmalloc and ioremap ranges for x86-64. The page-table pages are all pre-allocated now so that synchronization is no longer necessary. Signed-off-by: Joerg Roedel --- arch/x86/include/asm/pgtable_64_types.h | 2 -- arch/x86/mm/init_64.c

Re: [PATCH] mount_setattr.2: New manual page documenting the mount_setattr() system call

2020-07-21 Thread Michael Kerrisk (man-pages)
Hello Christian, Thanks for writing this manual page. A few comments below. On 7/14/20 6:14 PM, Christian Brauner wrote: > Signed-off-by: Christian Brauner > --- > man2/mount_setattr.2 | 296 +++ > 1 file changed, 296 insertions(+) > create mode 100644

Re: [PATCH v3 2/3] coccinelle: api: extend memdup_user rule with vmemdup_user()

2020-07-21 Thread Julia Lawall
On Tue, 21 Jul 2020, Markus Elfring wrote: > … > > +++ b/scripts/coccinelle/api/memdup_user.cocci > > @@ -39,6 +39,28 @@ … > … > > +@depends on patch@ > > +expression from,to,size; > > +identifier l1,l2; > > +@@ > > + > > +- to = \(kvmalloc\|kvzalloc\)(size,\(GFP_KERNEL\|GFP_USER\)); > > ++

Re: [PATCH v1 0/6] mm / virtio-mem: support ZONE_MOVABLE

2020-07-21 Thread David Hildenbrand
On 30.06.20 16:26, David Hildenbrand wrote: > Currently, virtio-mem does not really support ZONE_MOVABLE. While it allows > to online fully plugged memory blocks to ZONE_MOVABLE, it does not allow > to online partially-plugged memory blocks to ZONE_MOVABLE and will never > consider such memory

Re: [PATCH 3/3] arm64: dts: meson: add support for the ODROID-N2+

2020-07-21 Thread Christian Hewitt
> On 21 Jul 2020, at 12:19 pm, Neil Armstrong wrote: > > On 21/07/2020 10:10, Neil Armstrong wrote: >> On 19/07/2020 16:10, Christian Hewitt wrote: >>> HardKernel ODROID-N2+ uses an Amlogic S922X rev. C chip capable of higher >>> clock speeds than the original ODROID-N2. Hardkernel supports

Re: [PATCH 3/5] mm/hugetlb.c: Remove the unnecessary non_swap_entry()

2020-07-21 Thread David Hildenbrand
On 20.07.20 08:26, Baoquan He wrote: > The checking is_migration_entry() and is_hwpoison_entry() are stricter > than non_swap_entry(), means they have covered the conditional check > which non_swap_entry() is doing. > > Hence remove the unnecessary non_swap_entry() in is_hugetlb_entry_migration()

Re: [PATCH 4/5] doc/vm: fix typo in in the hugetlb admin documentation

2020-07-21 Thread David Hildenbrand
On 20.07.20 08:26, Baoquan He wrote: > Change 'pecify' to 'Specify'. > > Signed-off-by: Baoquan He > --- > Documentation/admin-guide/mm/hugetlbpage.rst | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Documentation/admin-guide/mm/hugetlbpage.rst >

Re: [PATCH 2/5] mm/hugetlb.c: make is_hugetlb_entry_hwpoisoned return bool

2020-07-21 Thread David Hildenbrand
On 20.07.20 08:26, Baoquan He wrote: > Just like his neighbour is_hugetlb_entry_migration() has done. > > Signed-off-by: Baoquan He > --- > mm/hugetlb.c | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/mm/hugetlb.c b/mm/hugetlb.c > index

Re: [PATCH 5/5] mm/hugetl.c: warn out if expected count of huge pages adjustment is not achieved

2020-07-21 Thread Baoquan He
On 07/20/20 at 05:38pm, Mike Kravetz wrote: > On 7/19/20 11:26 PM, Baoquan He wrote: > > A customer complained that no any message is printed out when failed to > > allocate explicitly specified number of persistent huge pages. That > > specifying can be done by writing into

RE: [PATCH 03/24] net: add a new sockptr_t type

2020-07-21 Thread David Laight
From: Eric Biggers > Sent: 20 July 2020 17:38 ... > How does this not introduce a massive security hole when > CONFIG_ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE? > > AFAICS, userspace can pass in a pointer >= TASK_SIZE, > and this code makes it be treated as a kernel pointer. One thought I've had is

[PATCH] mtd: rawnand: stm32_fmc2: fix a buffer overflow

2020-07-21 Thread Christophe Kerello
This patch solves following static checker warning: drivers/mtd/nand/raw/stm32_fmc2_nand.c:350 stm32_fmc2_nfc_select_chip() error: buffer overflow 'nfc->data_phys_addr' 2 <= 2 The CS value can only be 0 or 1. Signed-off-by: Christophe Kerello Fixes: 2cd457f328c1 ("mtd: rawnand: stm32_fmc2: add

Re: stable-rc 4.14: arm64: Internal error: Oops: clk_reparent __clk_set_parent_before on db410c

2020-07-21 Thread Arnd Bergmann
On Tue, Jul 21, 2020 at 10:32 AM Naresh Kamboju wrote: > > Kernel Internal oops while booting stable-rc 4.14 kernel on qcom db410c device > this problem happened only once on this specific platform. > and rcu_preempt detected stalls on CPUs/tasks detected after this and > board hung. > >

Re: [PATCH for v5.9] i2c: Replace HTTP links with HTTPS ones

2020-07-21 Thread Jean Delvare
Hi Alexander, On Sun, 19 Jul 2020 21:35:53 +0200, Alexander A. Klimov wrote: > Rationale: > Reduces attack surface on kernel devs opening the links for MITM > as HTTPS traffic is much harder to manipulate. > (...) > Documentation/i2c/busses/i2c-ali1535.rst | 2 +- >

Re: [PATCH] dt-bindings: spi: update bindings for MT8192 SoC

2020-07-21 Thread Mark Brown
On Tue, Jul 21, 2020 at 10:48:19AM +0800, Leilk Liu wrote: > From: "leilk.liu" > > Add a DT binding documentation for the MT8192 soc. I'd expect to see a matching driver patch. signature.asc Description: PGP signature

linux-next: manual merge of the akpm-current tree with the net-next tree

2020-07-21 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the akpm-current tree got a conflict in: net/sctp/socket.c between commits: 89fae01eef8b ("sctp: switch sctp_setsockopt_auth_key to use memzero_explicit") 534d13d07e77 ("sctp: pass a kernel pointer to sctp_setsockopt_auth_key") from the net-next tree

Re: [PATCH v4 2/7] iio: core: wrap IIO device into an iio_dev_opaque object

2020-07-21 Thread Dmitry Baryshkov
Hello, On Tue, Jun 30, 2020 at 07:57:03AM +0300, Alexandru Ardelean wrote: > There are plenty of bad designs we want to discourage or not have to review > manually usually about accessing private (marked as [INTERN]) fields of > 'struct iio_dev'. > > Sometimes users copy drivers that are not

[PATCH 2/2] KVM: arm64: Substitute RANDOMIZE_BASE for HARDEN_EL2_VECTORS

2020-07-21 Thread David Brazdil
The HARDEN_EL2_VECTORS config maps vectors at a fixed location on cores which are susceptible to Spector variant 3a (A57, A72) to prevent defeating hyp layout randomization by leaking the value of VBAR_EL2. Since this feature is only applicable when EL2 layout randomization is enabled, unify both

[PATCH 1/2] KVM: arm64: Make nVHE ASLR conditional on RANDOMIZE_BASE

2020-07-21 Thread David Brazdil
If there are spare bits in non-VHE hyp VA, KVM unconditionally replaces them with a random tag chosen at init. Disable this if the kernel is built without RANDOMIZE_BASE to align with kernel behavior. Signed-off-by: David Brazdil --- arch/arm64/kvm/va_layout.c | 2 +- 1 file changed, 1

[PATCH 0/2] Unify non-VHE ASLR features behind CONFIG_RANDOMIZE_BASE

2020-07-21 Thread David Brazdil
There is currently no way to disable nVHE ASLR, e.g. for debugging, so the first patch in this series makes it conditional on RANDOMIZE_BASE, same as KASLR. Note that the 'nokaslr' command line flag has no effect here. Second patch unifies the HARDEN_EL2_VECTORS errate for A57 and A72 behind the

Re: [PATCH v2 1/8] usb: dwc2: gadget: Make use of GINTMSK2

2020-07-21 Thread Felipe Balbi
Minas Harutyunyan writes: > On 7/15/2020 1:32 PM, Lee Jones wrote: >> The value obtained from GINTSTS2 should be masked with the GINTMSK2 >> value. Looks like this has been broken since >> dwc2_gadget_wkup_alert_handler() was added back in 2018. >> >> Also fixes the following W=1 warning: >>

Re: [v3 PATCH] usb: gadget: bdc: use readl_poll_timeout() to simplify code

2020-07-21 Thread Felipe Balbi
Hi, Chunfeng Yun writes: > Use readl_poll_timeout() to poll register status > > Cc: Florian Fainelli > Signed-off-by: Chunfeng Yun > Reviewed-by: Florian Fainelli I had a lot of trouble to apply this patch, could you avoid base64 encoding on the patch body next time? Thanks -- balbi

Re: [PATCH V6 07/14] perf/x86/intel: Generic support for hardware TopDown metrics

2020-07-21 Thread Peter Zijlstra
On Fri, Jul 17, 2020 at 07:05:47AM -0700, kan.li...@linux.intel.com wrote: > @@ -1031,6 +1034,35 @@ int x86_schedule_events(struct cpu_hw_events *cpuc, > int n, int *assign) > return unsched ? -EINVAL : 0; > } > > +static int add_nr_metric_event(struct cpu_hw_events *cpuc, > +

Re: [PATCH v2] iommu/mediatek: check 4GB mode by reading infracfg

2020-07-21 Thread Matthias Brugger
On 21/07/2020 04:16, Miles Chen wrote: In previous discussion [1] and [2], we found that it is risky to use max_pfn or totalram_pages to tell if 4GB mode is enabled. Check 4GB mode by reading infracfg register, remove the usage of the un-exported symbol max_pfn. This is a step towards

RE: get rid of the address_space override in setsockopt

2020-07-21 Thread David Laight
From: Christoph Hellwig > Sent: 20 July 2020 13:47 > > setsockopt is the last place in architecture-independ code that still > uses set_fs to force the uaccess routines to operate on kernel pointers. > > This series adds a new sockptr_t type that can contained either a kernel > or user pointer,

[PATCH v2] xtensa: add boot subdirectories targets to extra-y

2020-07-21 Thread Max Filippov
The commit 8fe87a92f262 ("kbuild: always create directories of targets") exposed an issue in the xtensa makefiles that results in the following build error in a clean directory: scripts/Makefile.build:374: arch/xtensa/boot/boot-elf/boot.lds] Error 1 arch/xtensa/boot/boot-elf/bootstrap.S:21:

[PATCH 5/7] gpio: fixed coding style issues in gpio-msic.c

2020-07-21 Thread Abanoub Sameh
Signed-off-by: Abanoub Sameh --- drivers/gpio/gpio-msic.c | 31 +-- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/drivers/gpio/gpio-msic.c b/drivers/gpio/gpio-msic.c index 7e3c96e4ab2c..37664e7b3ddd 100644 --- a/drivers/gpio/gpio-msic.c +++

[PATCH 6/7] gpio: fixed coding style issues in gpio-pch.c

2020-07-21 Thread Abanoub Sameh
Signed-off-by: Abanoub Sameh --- drivers/gpio/gpio-pch.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/gpio/gpio-pch.c b/drivers/gpio/gpio-pch.c index e96d28bf43b4..039822978eaf 100644 --- a/drivers/gpio/gpio-pch.c +++ b/drivers/gpio/gpio-pch.c @@ -95,7

[PATCH 7/7] gpio: fixed coding style issues in gpio-sch.c

2020-07-21 Thread Abanoub Sameh
Signed-off-by: Abanoub Sameh --- drivers/gpio/gpio-sch.c | 23 --- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/drivers/gpio/gpio-sch.c b/drivers/gpio/gpio-sch.c index c65f35b68202..3a1b1adb08c6 100644 --- a/drivers/gpio/gpio-sch.c +++

[PATCH 1/7] gpio: fixed coding style issues in gpio-crystalcove.c

2020-07-21 Thread Abanoub Sameh
Signed-off-by: Abanoub Sameh --- drivers/gpio/gpio-crystalcove.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpio/gpio-crystalcove.c b/drivers/gpio/gpio-crystalcove.c index 14d1f4c933b6..9391722ec107 100644 --- a/drivers/gpio/gpio-crystalcove.c +++

[PATCH 2/7] gpio: fixed coding style issues in gpio-ich.c

2020-07-21 Thread Abanoub Sameh
Signed-off-by: Abanoub Sameh --- drivers/gpio/gpio-ich.c | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/drivers/gpio/gpio-ich.c b/drivers/gpio/gpio-ich.c index 9960bb8b0f5b..de56c013a658 100644 --- a/drivers/gpio/gpio-ich.c +++

[PATCH 4/7] gpio: fixed coding style issues in gpio-ml-ioh.c

2020-07-21 Thread Abanoub Sameh
Signed-off-by: Abanoub Sameh --- drivers/gpio/gpio-ml-ioh.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/gpio/gpio-ml-ioh.c b/drivers/gpio/gpio-ml-ioh.c index 92b6e958cfed..7007621a5b55 100644 --- a/drivers/gpio/gpio-ml-ioh.c +++

[PATCH 3/7] gpio: fixed coding style issues in gpio-intel-mid.c

2020-07-21 Thread Abanoub Sameh
Signed-off-by: Abanoub Sameh --- drivers/gpio/gpio-intel-mid.c | 25 + 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/drivers/gpio/gpio-intel-mid.c b/drivers/gpio/gpio-intel-mid.c index 86a10c808ef6..a609964645c1 100644 --- a/drivers/gpio/gpio-intel-mid.c

[PATCH] x86, vmlinux.lds: Page-Align end of ..page_aligned sections

2020-07-21 Thread Joerg Roedel
From: Joerg Roedel Align the end of the .bss..page_aligned and .data..page_aligned section on page-size too. Otherwise the linker might place other objects on the page of the last ..page_aligned object. This is inconsistent with other objects in those sections, which all have their own page.

Re: [PATCH v3 1/2] dt-bindings: tas2770: Convert tas2770 binding to yaml

2020-07-21 Thread Mark Brown
On Mon, Jul 20, 2020 at 01:12:01PM -0500, Dan Murphy wrote: > Convert the tas2770 binding to yaml format. > Add in the reset-gpio to the binding as it is in the code but not > documented in the binding. What's new about this version? signature.asc Description: PGP signature

Re: [PATCH 0/7] usb: bdc: Updates and fixes to the USB BDC driver

2020-07-21 Thread Felipe Balbi
Hi, Al Cooper writes: > Updates and fixes to the Broadcom USB BDC driver. > > Al Cooper (4): > dt-bindings: usb: bdc: Update compatible strings > usb: bdc: Add compatible string for new style USB DT nodes > usb: bdc: Adb shows offline after resuming from S2 > usb: bdc: driver runs out

Re: [PATCH] Replace HTTP links with HTTPS ones: kprobes

2020-07-21 Thread Naveen N. Rao
Masami Hiramatsu wrote: On Tue, 14 Jul 2020 00:02:49 +0200 "Alexander A. Klimov" wrote: Am 13.07.20 um 16:20 schrieb Masami Hiramatsu: > Hi Naveen and Alexander, > > On Fri, 10 Jul 2020 19:14:47 +0530 > "Naveen N. Rao" wrote: > >> Masami Hiramatsu wrote: >>> On Tue, 7 Jul 2020

Re: [RFT PATCH v3 1/9] RISC-V: Move DT mapping outof fixmap

2020-07-21 Thread Anup Patel
On Tue, Jul 21, 2020 at 2:32 PM Ard Biesheuvel wrote: > > On Tue, 21 Jul 2020 at 11:57, Arnd Bergmann wrote: > > > > On Tue, Jul 21, 2020 at 6:18 AM Atish Patra wrote: > > > On Sat, Jul 18, 2020 at 2:24 AM Arnd Bergmann wrote: > > > > On Sat, Jul 18, 2020 at 3:05 AM Atish Patra > > > >

Re: [PATCH v3 2/3] coccinelle: api: extend memdup_user rule with vmemdup_user()

2020-07-21 Thread Markus Elfring
… > +++ b/scripts/coccinelle/api/memdup_user.cocci > @@ -39,6 +39,28 @@ … … > +@depends on patch@ > +expression from,to,size; > +identifier l1,l2; > +@@ > + > +- to = \(kvmalloc\|kvzalloc\)(size,\(GFP_KERNEL\|GFP_USER\)); > ++ to = vmemdup_user(from,size); I propose to combine the desired

Re: [PATCH 5.7 000/243] 5.7.10-rc2 review

2020-07-21 Thread Naresh Kamboju
On Tue, 21 Jul 2020 at 00:46, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.7.10 release. > There are 243 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > >

Re: [PATCH 3/3] ARM: dts: stm32: add initial support for stm32mp157-odyssey board

2020-07-21 Thread Alexandre Torgue
Hi Marcin, On 7/6/20 7:33 PM, Marcin Sloniewski wrote: Add support for Seeed Studio's stm32mp157c odyssey board. Board consists of SoM with stm32mp157c with 4GB eMMC and 512 MB DDR3 RAM and carrier board with USB and ETH interfaces, SD card connector, wifi and BT chip AP6236. In this patch

Re: [PATCHv3 2/6] irqchip/irq-pruss-intc: Add a PRUSS irqchip driver for PRUSS interrupts

2020-07-21 Thread Grzegorz Jaszczyk
Hi Marc, First of all thank you very much for your review. I apologize in advance if the description below is too verbose or not detailed enough. On Fri, 17 Jul 2020 at 14:36, Marc Zyngier wrote: > > Suman, Grzegorz, > > On Wed, 15 Jul 2020 14:38:05 +0100, > Grzegorz Jaszczyk wrote: > > > > Hi

Re: [PATCH] copy_xstate_to_kernel: Fix typo which caused GDB regression

2020-07-21 Thread Kevin Buettner
On Tue, 21 Jul 2020 10:59:07 +0200 Florian Weimer wrote: > * Kevin Buettner: > > > This commit fixes a regression encountered while running the > > gdb.base/corefile.exp test in GDB's test suite. > > > > In my testing, the typo prevented the sw_reserved field of struct > > fxregs_state from

Re: [PATCH v16 16/22] mm/mlock: reorder isolation sequence during munlock

2020-07-21 Thread Alex Shi
在 2020/7/21 上午2:51, Alexander Duyck 写道: >> Look into the __split_huge_page_tail, there is a tiny gap between tail page >> get PG_mlocked, and it is added into lru list. >> The TestClearPageLRU could blocked memcg changes of the page from stopping >> isolate_lru_page. > I get that there is a gap

Re: [PATCH 3/3] arm64: dts: meson: add support for the ODROID-N2+

2020-07-21 Thread Dongjin Kim
Can we use "Hardkernel ODROID-N2Plus" instead of "Hardkernel ODROID-N2+"? Thanks, Dongjin. On Tue, Jul 21, 2020 at 5:24 PM Neil Armstrong wrote: > > On 21/07/2020 10:10, Neil Armstrong wrote: > > On 19/07/2020 16:10, Christian Hewitt wrote: > >> HardKernel ODROID-N2+ uses an Amlogic S922X

[PATCH 2/2] KVM: LAPIC: Set the TDCR settable bits

2020-07-21 Thread Wanpeng Li
From: Wanpeng Li Only bits 0, 1, and 3 are settable, others are reserved for APIC_TDCR. Let's record the settable value in the virtual apic page. Signed-off-by: Wanpeng Li --- arch/x86/kvm/lapic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kvm/lapic.c

Re: [PATCH 4.14 000/125] 4.14.189-rc1 review

2020-07-21 Thread Naresh Kamboju
On Mon, 20 Jul 2020 at 21:15, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.14.189 release. > There are 125 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > >

[PATCH 1/2] KVM: LAPIC: Prevent setting the tscdeadline timer if the lapic is hw disabled

2020-07-21 Thread Wanpeng Li
From: Wanpeng Li Prevent setting the tscdeadline timer if the lapic is hw disabled. Signed-off-by: Wanpeng Li --- arch/x86/kvm/lapic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kvm/lapic.c b/arch/x86/kvm/lapic.c index 5bf72fc..4ce2ddd 100644 ---

[PATCH 1/6] staging: dpaa2-ethsw: verify the nofifier block

2020-07-21 Thread Ioana Ciornei
Since now we have a notifier block for each DPSW instance probed, we have to also check that the netdev is indeed connected to the notifier received. Without this, we end up with the same switchdev callback being executed multiple times (because it would be received by all notifier blocks, not

Re: [PATCH v5 0/8] Enable ili9341 and l3gd20 on stm32f429-disco

2020-07-21 Thread Alexandre Torgue
Hi Dillon On 5/25/20 5:40 AM, dillon.min...@gmail.com wrote: From: dillon min V5's update based on Mark Brown's suggestion, use 'SPI_MASTER_MUST_RX' for SPI_SIMPLEX_RX mode on stm32 spi controller. V5: 1 instead of add send dummy data out under SIMPLEX_RX mode, add flags

[PATCH 5/6] staging: dpaa2-ethsw: read the port state from firmware

2020-07-21 Thread Ioana Ciornei
Rely on the port state seen by the firmware since it will also be the one erroring out when trying to setup anything major when the port is up. Signed-off-by: Ioana Ciornei --- drivers/staging/fsl-dpaa2/ethsw/ethsw.c | 21 - 1 file changed, 20 insertions(+), 1 deletion(-)

[PATCH 6/6] staging: dpaa2-ethsw: check if there is space for a new VLAN

2020-07-21 Thread Ioana Ciornei
Avoid getting into a WARNING as below by checking, while in the prepare state of the transactional operation, if there is space for a new VLAN. If we reached the maximum number, return an appropriate error. [ 6503.657564] eth3: Commit of object (id=1) failed. [ 6503.657588] WARNING: CPU: 2 PID:

[PATCH 3/6] staging: dpaa2-ethsw: setup the STP state for all installed VLANs

2020-07-21 Thread Ioana Ciornei
Setup the STP state for all VLANs installed on the port. This is also avoiding the error situation when the DEFAULT_VLAN_ID is not installed on the port (thus the firmware complains that it cannot setup the required STP state). Signed-off-by: Ioana Ciornei ---

Re: [PATCH V3] clk: vc5: Add memory check to prevent oops

2020-07-21 Thread Stephen Boyd
Quoting Adam Ford (2020-07-16 05:26:20) > When getting the names of the child nodes, kasprintf is used to > allocate memory which is used to create the string for the node > name. Unfortunately, there is no memory check to determine > if this allocation fails, it may cause an error when trying >

[PATCH 4/6] staging: dpaa2-ethsw: destroy workqueue after deregistering the notifiers

2020-07-21 Thread Ioana Ciornei
We should destroy the switch workqueue only after deregistering the switchdev notifiers. Without this fix, we could end up with switchdev notifications on a draining workqueue and also with a lock up since the netdevice reference count is increased (in port_switchdev_event) and not decreased ever

[PATCH 0/6] staging: dpaa2-ethsw: various fixes

2020-07-21 Thread Ioana Ciornei
This patch set adds various fixes to the dpaa2-ethsw driver: checking the received notifier block before acting on a switchdev notification, destroying a workqueue after deregistering the notifiers, making sure that new VLANs added have a place before actually adding them and other problems like

[PATCH 2/6] staging: dpaa2-ethsw: don't allow interfaces from different DPSWs to be bridged

2020-07-21 Thread Ioana Ciornei
Error out when the user tries to bridge two switch interfaces that are from different DPSW instances. This is not supported by the hardware and we should reflect this into what the user is aware of. Signed-off-by: Ioana Ciornei --- drivers/staging/fsl-dpaa2/ethsw/ethsw.c | 15 +++ 1

Re: [PATCH] clk: vc5: Fix use after free in vc5_probe

2020-07-21 Thread Stephen Boyd
Quoting t...@redhat.com (2020-07-19 07:33:24) > From: Tom Rix > > clang static analysis reports this error > > clk-versaclock5.c:887:3: warning: Use of memory after it is freed > [unix.Malloc] > dev_err(>dev, "unable to register %s\n", init.name); >

Re: [PATCH] mm/page_alloc: fix memalloc_nocma_{save/restore} APIs

2020-07-21 Thread Vlastimil Babka
On 7/21/20 5:28 AM, js1...@gmail.com wrote: > From: Joonsoo Kim > > Currently, memalloc_nocma_{save/restore} API that prevents CMA area > in page allocation is implemented by using current_gfp_context(). However, > there are two problems of this implementation. > > First, this doesn't work for

Re: [PATCH 1/5] mm/hugetlb.c: Fix typo of glb_reserve

2020-07-21 Thread Baoquan He
On 07/20/20 at 03:32pm, Mike Kravetz wrote: > On 7/19/20 11:26 PM, Baoquan He wrote: > > The local variable is for global reservation of region. > > > > Signed-off-by: Baoquan He > > --- > > mm/hugetlb.c | 24 > > 1 file changed, 12 insertions(+), 12 deletions(-) > > >

Re: 5.8-rc*: kernel BUG at kernel/signal.c:1917

2020-07-21 Thread Valentin Schneider
On 20/07/20 15:21, Peter Zijlstra wrote: > On Mon, Jul 20, 2020 at 04:02:24PM +0200, Oleg Nesterov wrote: >> I have to admit, I do not understand the usage of prev_state in schedule(), >> it looks really, really subtle... > > Right, so commit dbfb089d360 solved a problem where schedule() re-read

Re: [PATCH 3/3] arm64: dts: meson: add support for the ODROID-N2+

2020-07-21 Thread Jerome Brunet
On Sun 19 Jul 2020 at 16:10, Christian Hewitt wrote: > HardKernel ODROID-N2+ uses an Amlogic S922X rev. C chip capable of higher > clock speeds than the original ODROID-N2. Hardkernel supports the big cpu > cluster at 2.4GHz and the little cpu cluster at 2.0GHz. Opp points and > regulator

Re: [PATCH v2] iommu/mediatek: check 4GB mode by reading infracfg

2020-07-21 Thread David Hildenbrand
On 21.07.20 04:16, Miles Chen wrote: > In previous discussion [1] and [2], we found that it is risky to > use max_pfn or totalram_pages to tell if 4GB mode is enabled. > > Check 4GB mode by reading infracfg register, remove the usage > of the un-exported symbol max_pfn. > > This is a step

Re: [PATCH v2 2/2] ARM: dts: stm32: Enable MIPI DSI display support.

2020-07-21 Thread Alexandre Torgue
Hi Adrian On 7/2/20 7:27 PM, Adrian Pop wrote: STM32f769-disco features a 4" MIPI DSI display: add support for it. On Cortex-M7 DMA can't use cached memory. For this reason I use a dedicated memory pool for DMA with no-cache attribute which is located at the end of RAM. Signed-off-by: Adrian

Re: [PATCH] x86/idt: Make sure idt_table takes a whole page

2020-07-21 Thread Joerg Roedel
On Mon, Jul 20, 2020 at 06:48:03PM +0200, Thomas Gleixner wrote: > But with explicit sections which store only page aligned objects there > is an implicit guarantee that the object is alone in the page in which > it is placed. That works for all objects except the last one. That's > inconsistent.

[PATCH] net: udp: Fix wrong clean up for IS_UDPLITE macro

2020-07-21 Thread linmiaohe
From: Miaohe Lin We can't use IS_UDPLITE to replace udp_sk->pcflag when UDPLITE_RECV_CC is checked. Fixes: b2bf1e2659b1 ("[UDP]: Clean up for IS_UDPLITE macro") Signed-off-by: Miaohe Lin --- net/ipv4/udp.c | 2 +- net/ipv6/udp.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff

Re: [PATCH v2 3/3] arm64: dts: meson: add audio playback to u200

2020-07-21 Thread Jerome Brunet
On Sun 19 Jul 2020 at 04:45, Christian Hewitt wrote: > Add initial support limited to HDMI i2s and S/PDIF (LPCM). Nack. #1. Same comment as before on spdifout B and SPDIF HDMI input. #2. the u200 is a special reference device with 2 onboards codecs, external connector for audio daugther

Re: [RFT PATCH v3 1/9] RISC-V: Move DT mapping outof fixmap

2020-07-21 Thread Ard Biesheuvel
On Tue, 21 Jul 2020 at 11:57, Arnd Bergmann wrote: > > On Tue, Jul 21, 2020 at 6:18 AM Atish Patra wrote: > > On Sat, Jul 18, 2020 at 2:24 AM Arnd Bergmann wrote: > > > On Sat, Jul 18, 2020 at 3:05 AM Atish Patra wrote: > > > > That's what the original code was doing. A fixmap entry was added

Re: [PATCH] copy_xstate_to_kernel: Fix typo which caused GDB regression

2020-07-21 Thread Florian Weimer
* Kevin Buettner: > This commit fixes a regression encountered while running the > gdb.base/corefile.exp test in GDB's test suite. > > In my testing, the typo prevented the sw_reserved field of struct > fxregs_state from being output to the kernel XSAVES area. Thus the > correct mask

<    8   9   10   11   12   13   14   15   >