Re: [RFC v2 2/3] drivers: nvmem: Add QTI qfprom-efuse support

2020-06-15 Thread Srinivas Kandagatla
I think Doug already covered most of the comments and his fixes seems be in right direction. On 11/06/2020 10:48, Ravi Kumar Bokka wrote: + qfpraw = platform_get_resource_byname(pdev, IORESOURCE_MEM, "raw"); + + priv->qfpraw = devm_ioremap_resource(dev, qfpraw); + if (IS_ER

[PATCH v2] f2fs: fix use-after-free when accessing bio->bi_crypt_context

2020-06-15 Thread Sahitya Tummala
There could be a potential race between these two paths below, leading to use-after-free when accessing bio->bi_crypt_context. f2fs_write_cache_pages ->f2fs_do_write_data_page on page#1 ->f2fs_inplace_write_data ->f2fs_merge_page_bio ->add_bio_entry ->f2fs_do_write_data_page on page#2

Re: [PATCH v3] soc: samsung: Add simple voltage coupler for Exynos5800

2020-06-15 Thread Marek Szyprowski
Hi Krzysztof, On 10.06.2020 09:08, Krzysztof Kozlowski wrote: > On Tue, Jun 09, 2020 at 12:42:21PM +0200, Marek Szyprowski wrote: >> Add a simple custom voltage regulator coupler for Exynos5800 SoCs, which >> require coupling between "vdd_arm" and "vdd_int" regulators. This coupler >> ensures that

Re: [PATCH] efi: Replace zero-length array and use struct_size() helper

2020-06-15 Thread Ard Biesheuvel
On Fri, 29 May 2020 at 19:32, Gustavo A. R. Silva wrote: > > On Fri, May 29, 2020 at 01:31:54AM -0700, Kees Cook wrote: > > On Wed, May 27, 2020 at 12:14:25PM -0500, Gustavo A. R. Silva wrote: > > > The current codebase makes use of the zero-length array language > > > extension to the C90 standar

Re: [PATCH 2/2] kconfig: unify cc-option and as-option

2020-06-15 Thread Will Deacon
On Sun, Jun 14, 2020 at 11:43:41PM +0900, Masahiro Yamada wrote: > cc-option and as-option are almost the same; both pass the flag to > $(CC). The main difference is the cc-option stops before the assemble > stage (-S option) whereas as-option stops after it (-c option). > > I chose -S because it

Re: ARM: vmsplit 4g/4g

2020-06-15 Thread afzal mohammed
Hi Linus, On Mon, Jun 15, 2020 at 11:11:04AM +0200, Linus Walleij wrote: > OK I would be very happy to look at it so I can learn a bit about the > hands-on and general approach here. Just send it to this address > directly and I will look! Have sent it > > For the next 3 weeks, right now, i can

Re: [REGRESSION] mlx5: Driver remove during hot unplug is broken

2020-06-15 Thread Niklas Schnelle
Hello Saeed, On 6/13/20 12:01 AM, Saeed Mahameed wrote: > On Fri, 2020-06-12 at 15:09 +0200, Niklas Schnelle wrote: >> Hello Parav, Hello Saeed, >> ... snip ... >> >> So without really knowing anything about these functions I would >> guess that with the device still registered the drained >> queu

Re: [PATCH v2 00/15] vfio: expose virtual Shared Virtual Addressing to VMs

2020-06-15 Thread Stefan Hajnoczi
On Thu, Jun 11, 2020 at 05:15:19AM -0700, Liu Yi L wrote: > Shared Virtual Addressing (SVA), a.k.a, Shared Virtual Memory (SVM) on > Intel platforms allows address space sharing between device DMA and > applications. SVA can reduce programming complexity and enhance security. > > This VFIO series

[tip: x86/microcode] x86/microcode: Do not select FW_LOADER

2020-06-15 Thread tip-bot2 for Herbert Xu
The following commit has been merged into the x86/microcode branch of tip: Commit-ID: c8a59a4d8e3c9e609fa915e39c3628c6dd08aeea Gitweb: https://git.kernel.org/tip/c8a59a4d8e3c9e609fa915e39c3628c6dd08aeea Author:Herbert Xu AuthorDate:Wed, 10 Jun 2020 21:05:13 +10:00 Committe

Re: [PATCH v4 1/2] hugetlb: use f_mode & FMODE_HUGETLBFS to identify hugetlbfs files

2020-06-15 Thread Amir Goldstein
On Mon, Jun 15, 2020 at 10:53 AM Miklos Szeredi wrote: > > On Sat, Jun 13, 2020 at 9:12 PM Mike Kravetz wrote: > > > > On 6/12/20 11:53 PM, Amir Goldstein wrote: > > > As a hugetlbfs developer, I do not know of a use case for interoperability > > with overlayfs. So yes, I am not too interested i

Re: [PATCH v6 2/9] ARM: dts: stm32: Add pin map for ltdc & spi5 on stm32f429-disco board

2020-06-15 Thread dillon min
On Mon, Jun 15, 2020 at 5:45 PM Alexandre Torgue wrote: > > Hi Dillon > > On 5/27/20 9:27 AM, dillon.min...@gmail.com wrote: > > From: dillon min > > > > This patch adds the pin configuration for ltdc and spi5 controller > > on stm32f429-disco board. > > > > Signed-off-by: dillon min > > --- > >

Re: [PATCH 0/8] x86/entry: KCSAN/KASAN/UBSAN vs noinstr

2020-06-15 Thread Marco Elver
On Thu, 4 Jun 2020 at 13:01, Marco Elver wrote: > > On Thu, 4 Jun 2020 at 12:25, Peter Zijlstra wrote: > > > > Hai, > > > > Here's the remaining few patches to make KCSAN/KASAN and UBSAN work with > > noinstr. > > Thanks for assembling the series! > > For where it's missing (1,2,3 and last one):

Re: [PATCH v4 0/4] Enable stmpe811 touch screen on stm32f429-disco board

2020-06-15 Thread dillon min
On Mon, Jun 15, 2020 at 5:08 PM Alexandre Torgue wrote: > > Hi Dillon > > On 6/9/20 3:26 PM, dillon.min...@gmail.com wrote: > > From: dillon min > > > > This patchset is intend to enable stmpe811 touch screen on stm32f429-disco > > board with three dts and one i2c driver changes. > > > > has been

Re: [PATCH 00/15] Fix STM32 DT issues on v5.7-rc4

2020-06-15 Thread Alexandre Torgue
Hi Benjamin On 5/13/20 4:59 PM, Benjamin Gaignard wrote: This series fixes issues hight lighted by dtbs_check on STM32 devicetrees. The patches has been developped on top of v5.7-rc4 tag. Benjamin Gaignard (15): ARM: dts: stm32: remove useless interrupt-names property on stm32f429 ARM: dt

[PATCH v3] f2fs: fix use-after-free when accessing bio->bi_crypt_context

2020-06-15 Thread Sahitya Tummala
There could be a potential race between these two paths below, leading to use-after-free when accessing bio->bi_crypt_context. f2fs_write_cache_pages ->f2fs_do_write_data_page on page#1 ->f2fs_inplace_write_data ->f2fs_merge_page_bio ->add_bio_entry ->f2fs_do_write_data_page on page#2

Re: [PATCH 0/3] STM32 update uart4 pin configuration for low power

2020-06-15 Thread Alexandre Torgue
Hi Erwan On 5/28/20 9:38 AM, Erwan Le Ray wrote: Update uart4 pin configuration for low power in pinctrl, and for ed/ev and dkx boards. Erwan Le Ray (3): ARM: dts: stm32: update uart4 pin configuration for low power on stm32mp157 ARM: dts: stm32: Update pin states for uart4 on stm32m

[PATCH v9 0/2] ACPI / APEI: Add support to notify the vendor specific HW errors

2020-06-15 Thread Shiju Jose
Presently the vendor drivers are unable to do the recovery for the vendor specific recoverable HW errors because APEI driver does not support reporting the error to the vendor drivers. patch set 1. add new interface to the APEI driver for reporting the vendor specific non-fatal HW errors to th

Re: [PATCH] MIPS: Do not flush tlb when setting pmd entry

2020-06-15 Thread Thomas Bogendoerfer
On Wed, Jun 03, 2020 at 05:42:13PM +0800, Bibo Mao wrote: > Function set_pmd_at is to set pmd entry, if tlb entry need to > be flushed, there exists pmdp_huge_clear_flush alike function > before set_pmd_at is called. So it is not necessary to call > flush_tlb_all in this function. have you checked

[PATCH v9 2/2] PCI: hip: Add handling of HiSilicon HIP PCIe controller errors

2020-06-15 Thread Shiju Jose
From: Yicong Yang The HiSilicon HIP PCIe controller is capable of handling errors on root port and perform port reset separately at each root port. Add error handling driver for HIP PCIe controller to log and report recoverable errors. Perform root port reset and restore link status after the re

Re: [PATCH v6 2/8] mtd: rawnand: rockchip: NFC drivers for RK3308, RK2928 and others

2020-06-15 Thread Miquel Raynal
Hi 赵仪峰, 赵仪峰 wrote on Mon, 15 Jun 2020 17:34:14 +0800: > Hi Johan, > > Johan Jonker wrote on Sat, 13 Jun 2020 15:31:52 > +0200: > >Hi Yifeng, Miquel, > > > >Some more comments about swap(); > > > >On 6/9/20 9:40 AM, Yifeng Zhao wrote: > > > >[..] > > > >> +static int rk_nfc_ooblayout_free(str

Re: [PATCH RESEND] 9p: Fix memory leak in v9fs_mount

2020-06-15 Thread Dominique Martinet
Zheng Bin wrote on Mon, Jun 15, 2020: > v9fs_mount > v9fs_session_init > v9fs_cache_session_get_cookie > v9fs_random_cachetag -->alloc cachetag > v9ses->fscache = fscache_acquire_cookie -->maybe NULL > sb = sget-->fail, go

[PATCH] coccinelle: misc: add array_size_dup script to detect missed overlow checks

2020-06-15 Thread Denis Efremov
Detect an opencoded expression that is used before or after array_size()/array3_size()/struct_size() to compute the same size. Cc: Kees Cook Signed-off-by: Denis Efremov --- scripts/coccinelle/misc/array_size_dup.cocci | 347 +++ 1 file changed, 347 insertions(+) create mode 10

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

2020-06-15 Thread Heikki Krogerus
Hi Rob, > > Either I'm missing something, or the devicetree description of the > > Type-C connectors really is way too complex, way too "low level", > > causing us potential problems without providing anything that we could > > actually ever use in the operating system. > > Well, all bindings are

Re: [PATCH v2 2/2] efi/libstub: refactor Makefile to not use lib-y syntax

2020-06-15 Thread Ard Biesheuvel
On Thu, 4 Jun 2020 at 04:20, Masahiro Yamada wrote: > > Documentation/kbuild/makefiles.rst says: > > Use of lib-y is normally restricted to `lib/` and `arch/*/lib`. > > This is because lib-y is inteded to be hooked to KBUILD_VMLINUX_LIBS, > which is passed down to scripts/link-vmlinux.sh. > > Be

Re: [PATCH] x86/speculation/srbds: do not try to turn mitigation off when not supported

2020-06-15 Thread Thadeu Lima de Souza Cascardo
On Mon, Jun 15, 2020 at 10:28:58AM +0200, Borislav Petkov wrote: > On Tue, Jun 09, 2020 at 02:43:13PM -0300, Thadeu Lima de Souza Cascardo wrote: > > When SRBDS is mitigated by TSX OFF, update_srbds_msr will still read and > > Are you talking about this case in srbds_select_mitigation(): > >

Re: [PATCH v2 2/2] regulator: Add support for sync_state() callbacks

2020-06-15 Thread Ulf Hansson
On Tue, 9 Jun 2020 at 12:51, Mark Brown wrote: > > On Mon, Jun 08, 2020 at 08:16:44PM -0700, Saravana Kannan wrote: > > On Mon, Jun 1, 2020 at 10:23 AM Mark Brown wrote: > > > > This is I think the first time anyone has suggested that this is likely > > > to be an issue - the previous concerns ha

Re: [PATCH net v2] mptcp: drop MPTCP_PM_MAX_ADDR

2020-06-15 Thread Matthieu Baerts
Hi Geliang, On 15/06/2020 10:28, Geliang Tang wrote: We have defined MPTCP_PM_ADDR_MAX in pm_netlink.c, so drop this duplicate macro. Fixes: 1b1c7a0ef7f3 ("mptcp: Add path manager interface") Signed-off-by: Geliang Tang --- Changes in v2: - change Subject from "mptcp: unify MPTCP_PM_MAX_A

Re: [PATCH] arm64: fpsimd: Added API to manage fpsimd state inside kernel

2020-06-15 Thread Dave Martin
On Thu, Jun 11, 2020 at 03:11:02PM +0100, Catalin Marinas wrote: > On Thu, Jun 11, 2020 at 06:42:12PM +0900, Wooyeon Kim wrote: > > I am in charge of camera driver development in Samsung S.LSI division. > > > > In order to guarantee real time processing such as Camera 3A algorithm in > > current o

Re: [PATCH v4 1/3] venus: Add debugfs interface to set firmware log level

2020-06-15 Thread Stanimir Varbanov
Hi Greg, On 6/14/20 9:35 AM, Greg KH wrote: > On Sun, Jun 14, 2020 at 01:39:17AM +0300, Stanimir Varbanov wrote: >> This will be useful when debugging specific issues related to >> firmware HFI interface. >> >> Signed-off-by: Stanimir Varbanov > > You didn't cc: any of us on the patchs, like you

Re: [PATCH] s390: protvirt: virtio: Refuse device without IOMMU

2020-06-15 Thread Halil Pasic
On Mon, 15 Jun 2020 11:01:55 +0800 Jason Wang wrote: > > hum, in between I found another way which seems to me much better: > > > > We already have the force_dma_unencrypted() function available which > > AFAIU is what we want for encrypted memory protection and is already > > used by power and

Re: [PATCH 0/2] STM32 Fix uart nodes in stm32mp15-pinctrl

2020-06-15 Thread Alexandre Torgue
Hi Erwan On 5/28/20 9:40 AM, Erwan Le Ray wrote: Fix uart nodes ordering and uart7_pins_a comments in stm32mp15-pinctrl. Erwan Le Ray (2): ARM: dts: stm32: fix uart nodes ordering in stm32mp15-pinctrl ARM: dts: stm32: fix uart7_pins_a comments in stm32mp15-pinctrl arch/arm/boot/dts/stm

Re: [PATCH] objtool: Free memory in error case in special_get_alts

2020-06-15 Thread Miroslav Benes
Hi, On Fri, 12 Jun 2020, Tobias Klauser wrote: > Avoid a memory leak in case get_alt_entry returns an error. yes, this is not the only one, but I doubt we want to spend time on that. The process is about to exit anyway. Miroslav > Signed-off-by: Tobias Klauser > --- > tools/objtool/special.

Re: [PATCH v2 2/2] efi/libstub: refactor Makefile to not use lib-y syntax

2020-06-15 Thread Ard Biesheuvel
On Mon, 15 Jun 2020 at 12:26, Ard Biesheuvel wrote: > > On Thu, 4 Jun 2020 at 04:20, Masahiro Yamada wrote: > > > > Documentation/kbuild/makefiles.rst says: > > > > Use of lib-y is normally restricted to `lib/` and `arch/*/lib`. > > > > This is because lib-y is inteded to be hooked to KBUILD_VM

Re: [PATCH] blk-mq: Remove redundant 'return' statement

2020-06-15 Thread Ming Lei
On Mon, Jun 15, 2020 at 05:12:23PM +0800, Baolin Wang wrote: > The blk_mq_all_tag_iter() is a void function, thus remove > the redundant 'return' statement in this function. > > Signed-off-by: Baolin Wang > --- > block/blk-mq-tag.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > dif

[PATCH v4] soc: samsung: Add simple voltage coupler for Exynos5800

2020-06-15 Thread Marek Szyprowski
Add a simple custom voltage regulator coupler for Exynos5800 SoCs, which require coupling between "vdd_arm" and "vdd_int" regulators. This coupler ensures that the voltage values don't go below the bootloader-selected operation point during the boot process until a the clients sets their constraint

[PATCH] acpi: disallow loading configfs acpi tables when locked down

2020-06-15 Thread Jason A. Donenfeld
Like other vectors already patched, this one here allows the root user to load ACPI tables, which enables arbitrary physical address writes, which in turn makes it possible to disable lockdown. This patch prevents this by checking the lockdown status before allowing a new ACPI table to be installed

Re: [RFC v2 1/3] dt-bindings: nvmem: Add devicetree bindings for qfprom-efuse

2020-06-15 Thread Srinivas Kandagatla
On 12/06/2020 22:59, Doug Anderson wrote: Hi, On Thu, Jun 11, 2020 at 2:49 AM Ravi Kumar Bokka wrote: This patch adds dt-bindings document for qfprom-efuse controller. Signed-off-by: Ravi Kumar Bokka --- .../devicetree/bindings/nvmem/qfprom.yaml | 52 ++ 1

Re: [RFC v2 2/3] drivers: nvmem: Add QTI qfprom-efuse support

2020-06-15 Thread Srinivas Kandagatla
On 13/06/2020 21:33, Doug Anderson wrote: Hi, On Thu, Jun 11, 2020 at 2:49 AM Ravi Kumar Bokka wrote: This patch adds support for QTI qfprom-efuse controller. This driver can access the raw qfprom regions for fuse blowing. The current existed qfprom driver is only supports for cpufreq, th

Re: [PATCH] x86/speculation/srbds: do not try to turn mitigation off when not supported

2020-06-15 Thread Borislav Petkov
On Mon, Jun 15, 2020 at 07:27:38AM -0300, Thadeu Lima de Souza Cascardo wrote: > It was booted without the microcode update. There was microcode available, but > systems may be booted without it, thus causing warnings due to the MSR > read/write. Right. > That's exactly the fix in the patch I sen

Re: [PATCH] objtool: Free memory in error case in special_get_alts

2020-06-15 Thread Peter Zijlstra
On Mon, Jun 15, 2020 at 12:40:32PM +0200, Miroslav Benes wrote: > Hi, > > On Fri, 12 Jun 2020, Tobias Klauser wrote: > > > Avoid a memory leak in case get_alt_entry returns an error. > > yes, this is not the only one, but I doubt we want to spend time on that. > The process is about to exit any

Re: [PATCH 1/5] ARM: dts: stm32: add usart2, usart3 and uart7 pins in stm32mp15-pinctrl

2020-06-15 Thread Alexandre Torgue
Hi Erwan On 5/28/20 9:40 AM, Erwan Le Ray wrote: Adds usart2_pins_c, usart3_pins_b, usart3_pins_c and uart7_pins_c pins configurations in stm32mp15-pinctrl. - usart2_pins_c pins are connected to Bluetooth chip on dk2 board. - usart3_pins_b pins are connected to GPIO expansion connector on evx bo

arch/nios2/include/asm/irqflags.h:12:9: sparse: sparse: context imbalance in 'move_pages_to_lru' - unexpected unlock

2020-06-15 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: b3a9e3b9622ae10064826dccb4f7a52bd88c7407 commit: 80591e61a0f7e88deaada69844e4a31280c4a38f kbuild: tell sparse about the $ARCH date: 7 months ago config: nios2-randconfig-s032-20200615 (attached as .config

Re: [PATCH v2 2/2] nvmem: add ONIE NVMEM cells support

2020-06-15 Thread Srinivas Kandagatla
On 05/06/2020 11:53, Vadym Kochan wrote: One of the example is atmel eeprom (at24), but there might be different devices. But can you please explain what is the technical/conceptual issue with this approach ? Thanks, I just I'd like to clarify if there is a way it can be acceptable. The pro

Re: [PATCH] fs: Do not check if there is a fsnotify watcher on pseudo inodes

2020-06-15 Thread Amir Goldstein
On Mon, Jun 15, 2020 at 11:12 AM Jan Kara wrote: > > On Fri 12-06-20 23:34:16, Amir Goldstein wrote: > > > > > So maybe it would be better to list all users of alloc_file_pseudo() > > > > > and say that they all should be opted out of fsnotify, without > > > > > mentioning > > > > > "internal mou

Re: [PATCH 2/2] bitmap: Add test for bitmap_cut()

2020-06-15 Thread Stefano Brivio
On Mon, 15 Jun 2020 12:46:16 +0300 Andy Shevchenko wrote: > On Mon, Jun 15, 2020 at 12:41:55PM +0300, Andy Shevchenko wrote: > > On Sun, Jun 14, 2020 at 07:40:54PM +0200, Stefano Brivio wrote: > > > Inspired by an original patch from Yury Norov: introduce a test for > > > bitmap_cut() that also

Re: Good idea to rename files in include/uapi/ ?

2020-06-15 Thread Geert Uytterhoeven
Hi Alexander, On Mon, Jun 15, 2020 at 1:11 AM Alexander A. Klimov wrote: > Am 14.06.20 um 22:34 schrieb Stefano Brivio: > > On Sun, 14 Jun 2020 21:41:17 +0200 > >> Also even on a case-sensitive one VIm seems to have trouble with editing > >> both case-insensitively equal files at the same time. >

Re: Good idea to rename files in include/uapi/ ?

2020-06-15 Thread Geert Uytterhoeven
Hi Alexander, On Sun, Jun 14, 2020 at 9:44 PM Alexander A. Klimov wrote: > *Is it a good idea to rename files in include/uapi/ ?* No it is not: include/uapi/ is append-only. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@l

Re: [PATCH v2 3/4] nsproxy: attach to namespaces via pidfds

2020-06-15 Thread Michael Kerrisk (man-pages)
Hello Christian, Looking at this patch, and commit 303cc571d107b that landed in 5.8-rc1, time namespaces were omitted. I assume this was an accident, since the commit message makes no statement about excluding time namespaces, and even mentions their existence as part of the justification for the

Re: [PATCH 28/29] docs: fs: proc.rst: fix a warning due to a merge conflict

2020-06-15 Thread Mark Brown
On Mon, Jun 15, 2020 at 08:47:07AM +0200, Mauro Carvalho Chehab wrote: > ... > bt - arm64 BTI guarded page > ===== > > Fixes: 424037b77519 ("mm: smaps: Report arm64 guarded pages in smaps") > Fixes: c33e97efa9d9 ("docs: filesystems: conver

Re: [PATCH 14/29] dt: Fix broken references to renamed docs

2020-06-15 Thread Mark Brown
On Mon, Jun 15, 2020 at 08:46:53AM +0200, Mauro Carvalho Chehab wrote: > Some files got renamed. Those were all fixed automatically by > > ./scripts/documentation-file-ref-check --fix Acked-by: Mark Brown signature.asc Description: PGP signature

Re: [PATCH 13/29] dt: fix broken links due to txt->yaml renames

2020-06-15 Thread Mark Brown
On Mon, Jun 15, 2020 at 08:46:52AM +0200, Mauro Carvalho Chehab wrote: > There are some new broken doc links due to yaml renames > at DT. Developers should really run: I also previously acked this one in 20200504100822.ga5...@sirena.org.uk. Has anything changed here to cause the ack to be dropped?

RE: [RFC 1/3] lib: copy_{from,to}_user using gup & kmap_atomic()

2020-06-15 Thread David Laight
From: Al Viro > Sent: 13 June 2020 16:31 > On Sat, Jun 13, 2020 at 07:12:36PM +0530, afzal mohammed wrote: > > Hi, > > > > On Sat, Jun 13, 2020 at 01:56:15PM +0100, Al Viro wrote: > > > > > Incidentally, what about get_user()/put_user()? _That_ is where it's > > > going to really hurt... > > > > A

Re: [PATCH] media: ov2740: add NVMEM interface to read customized OTP data

2020-06-15 Thread Sakari Ailus
Hi Srinivas, On Mon, Jun 15, 2020 at 10:46:20AM +0100, Srinivas Kandagatla wrote: > > > On 15/06/2020 10:29, Sakari Ailus wrote: > > > + ret = ov2740_register_nvmem(client); > > > + if (ret) > > > + dev_err(&client->dev, "register nvmem failed, ret %d\n", ret); > > > + > > > /*

[PATCH]: arch: arm64: vdso: export the symbols for time()

2020-06-15 Thread Mark Salyzyn
From: Chiawei Wang __cvdso_time() can be found in vDSO implementation, but the symbols for time() are not exported. Export the symbols and run bionic-benchmarks. BEFORE: bionic-benchmarks32 --bionic_extra BM_time_time - Benchmark Tim

Re: [PATCH v2] page_alloc: consider highatomic reserve in wmartermark fast

2020-06-15 Thread Vlastimil Babka
On 6/13/20 6:16 AM, Jaewon Kim wrote: > > > 2020년 6월 12일 (금) 오후 11:34, Vlastimil Babka >님이 작성: >> >> On 6/13/20 4:51 AM, Jaewon Kim wrote: >> > zone_watermark_fast was introduced by commit 48ee5f3696f6 ("mm, >> > page_alloc: shortcut watermark checks for order-0 pages"). T

Re: [PATCH v1 RFC 1/2] spi: introduce fallback to pio

2020-06-15 Thread Vinod Koul
Hi Robin, On 15-06-20, 08:59, Robin Gong wrote: > On 2020/06/15 15:20 Vinod Koul wrote: > > > Yes, but both assume spi controller driver could detect such dma > > > failure before dmaengine_prep_*(). Let's wait Vinod's comment for that > > > if dmaengine_slave_config could keep direction. > > >

Re: [PATCH v4 4/4] thermal: cpuidle: Register cpuidle cooling device

2020-06-15 Thread Ulf Hansson
On Wed, 29 Apr 2020 at 12:37, Daniel Lezcano wrote: > > The cpuidle driver can be used as a cooling device by injecting idle > cycles. The DT binding for the idle state added an optional > > When the property is set, register the cpuidle driver with the idle > state node pointer as a cooling devic

Re: [PATCH v2 0/4] spi: bcm63xx: add BMIPS support

2020-06-15 Thread Mark Brown
On Mon, Jun 15, 2020 at 11:09:39AM +0200, Álvaro Fernández Rojas wrote: > BCM63xx SPI and HSSPI controller are present on several BMIPS SoCs (BCM6318, > BCM6328, BCM6358, BCM6362, BCM6368 and BCM63268). Please don't send new versions of patches in reply to old ones, it makes it hard to keep track

Re: 5.8-rc1: new warnings in ext4_mb_new_blocks?

2020-06-15 Thread Ritesh Harjani
On 6/15/20 1:07 PM, Pavel Machek wrote: Hi! Booting 5.8-rc1 on x220, I get scary warnings: [7.089941] EXT4-fs (sdb2): mounted filesystem with ordered data mode. Opts: errors=remount-ro [7.343231] BUG: using smp_processor_id() in preemptible [] code: systemd-tmpfile/2788 [

Re: [PATCH] x86/mce: fix a wrong assignment of i_mce.status

2020-06-15 Thread Borislav Petkov
On Thu, Jun 11, 2020 at 09:55:00AM -0700, Luck, Tony wrote: > +Yazen > > On Thu, Jun 11, 2020 at 10:32:38AM +0800, Zhenzhong Duan wrote: > > The original code is a nop as i_mce.status is or'ed with part of itself, > > fix it. > > > > Signed-off-by: Zhenzhong Duan > > --- > > arch/x86/kernel/cpu

Re: [PATCH v2] page_alloc: consider highatomic reserve in wmartermark fast

2020-06-15 Thread Vlastimil Babka
On 6/14/20 1:17 AM, Baoquan He wrote: > On 06/13/20 at 10:08pm, Jaewon Kim wrote: > ... >> > > This is an example of ALLOC_HARDER allocation failure. >> > > >> > > <4>[ 6207.637280] [3: Binder:9343_3:22875] Binder:9343_3: page >> > > allocation failure: order:0, mode:0x480020(GFP_ATOMIC), nodema

Re: [RFC PATCH 0/3] firmware: Add support for PSA FF-A interface

2020-06-15 Thread Jens Wiklander
Hi, On Tue, Jun 09, 2020 at 06:41:23PM +0100, Sudeep Holla wrote: > (Sorry for the delay, got distracted with some other bug fix.) > > On Thu, Jun 04, 2020 at 02:37:46PM +0100, Will Deacon wrote: > > Hi Sudeep, [+Fuad, Andrew and Ard] > > > > (To other interested readers: if you haven't seen it,

[PATCH v3] x86/split_lock: Sanitize userspace and guest error output

2020-06-15 Thread Prarit Bhargava
There are two problems with kernel messages in fatal mode that were found during testing of guests and userspace programs. The first is that no kernel message is output when the split lock detector is triggered with a userspace program. As a result the userspace process dies from receiving SIGBUS

[PATCH] nandsim: Fix return code testing of ns_find_operation()

2020-06-15 Thread Richard Weinberger
ns_find_operation() returns 0 on success. Fixes: 052a7a5374bc ("mtd: rawnand: nandsim: Clean error handling") Signed-off-by: Richard Weinberger --- drivers/mtd/nand/raw/nandsim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/raw/nandsim.c b/drivers/mtd/nand

Re: [PATCH] printk: Make linux/printk.h self-contained

2020-06-15 Thread Herbert Xu
On Sat, Jun 13, 2020 at 04:29:01PM +0200, Luc Van Oostenryck wrote: > > while there is no such problem with the previous commit. > I think the problem is that: > * ratelimit.h needs raw_spinlock_t > * spinlock_types.h needs lockdep.h > * lockdep.h needs ratelimit.h Thanks for investigating. I now

Re: [PATCH] thunderbolt: Improve USB4 config symbol help text

2020-06-15 Thread Mika Westerberg
On Tue, Jun 02, 2020 at 02:28:15PM +0200, Geert Uytterhoeven wrote: > Fix the spelling of "specification", and add a missing "the" article. > > Fixes: 690ac0d20d4022bb ("thunderbolt: Update Kconfig entries to USB4") > Signed-off-by: Geert Uytterhoeven Applied to thunderbolt.git/next, thanks!

Re: [PATCH v2 1/2] media: tpg: Add function to return colors' order of test image

2020-06-15 Thread Kieran Bingham
Hi Kaaira, On 14/06/2020 21:02, Kaaira Gupta wrote: > Currently there is no method to know the correct order of the colors for > a test image generated by tpg. Write a function that returns a string of > colors' order given a tpg. It returns a NULL pointer in case of test > patterns which do not h

Re: [RFC PATCH 1/3] dt-bindings: Add ARM PSA FF binding for non-secure VM partitions

2020-06-15 Thread Achin Gupta
On Mon, Jun 15, 2020 at 10:51:34AM +0100, Will Deacon wrote: > On Mon, Jun 15, 2020 at 10:16:39AM +0100, Achin Gupta wrote: > > On Thu, Jun 11, 2020 at 06:12:23PM +0100, Will Deacon wrote: > > > On Thu, Jun 11, 2020 at 03:46:35PM +, Achin Gupta wrote: > > > > > On 10 Jun 2020, at 08:43, Will De

[tip: ras/core] x86/mce/inject: Fix a wrong assignment of i_mce.status

2020-06-15 Thread tip-bot2 for Zhenzhong Duan
The following commit has been merged into the ras/core branch of tip: Commit-ID: 5d7f7d1d5e01c22894dee7c9c9266500478dca99 Gitweb: https://git.kernel.org/tip/5d7f7d1d5e01c22894dee7c9c9266500478dca99 Author:Zhenzhong Duan AuthorDate:Thu, 11 Jun 2020 10:32:38 +08:00 Committer

Re: [PATCH 2/2] bitmap: Add test for bitmap_cut()

2020-06-15 Thread Andy Shevchenko
On Mon, Jun 15, 2020 at 01:08:25PM +0200, Stefano Brivio wrote: > On Mon, 15 Jun 2020 12:46:16 +0300 > Andy Shevchenko wrote: > > > On Mon, Jun 15, 2020 at 12:41:55PM +0300, Andy Shevchenko wrote: > > > On Sun, Jun 14, 2020 at 07:40:54PM +0200, Stefano Brivio wrote: > > > > Inspired by an origi

Re: [GIT PULL] Btrfs updates for 5.8, part 2

2020-06-15 Thread Christoph Hellwig
On Sun, Jun 14, 2020 at 09:50:17AM -0700, Linus Torvalds wrote: > On Sun, Jun 14, 2020 at 4:56 AM David Sterba wrote: > > > > Reverts are not great, but under current circumstances I don't see > > better options. > > Pulled. Are people discussing how to make iomap work for everybody? > It's a bit

Re: [PATCH v2 2/2] media: vimc: Add a control to show test pattern colors' order

2020-06-15 Thread Kieran Bingham
Hi Kaaira, On 14/06/2020 21:02, Kaaira Gupta wrote: > Add a control in VIMC to show the correct order of the colors for a > given test pattern. > The control can be accessed by using show_colors_order in v4l2-ctl > > Signed-off-by: Kaaira Gupta > --- > drivers/media/test-drivers/vimc/Kconfig

Re: [PATCH v2 2/2] regulator: Add support for sync_state() callbacks

2020-06-15 Thread Mark Brown
On Mon, Jun 15, 2020 at 12:27:23PM +0200, Ulf Hansson wrote: > eMMC is not only about voltage levels, but also about enable/disable > of the regulator(s). > More precisely, one needs to follow the steps specified in the eMMC > spec, when disabling the regulator(s). > In other words, the mmc host

Re: [PATCH] s390: protvirt: virtio: Refuse device without IOMMU

2020-06-15 Thread Pierre Morel
On 2020-06-15 12:37, Halil Pasic wrote: On Mon, 15 Jun 2020 11:01:55 +0800 Jason Wang wrote: hum, in between I found another way which seems to me much better: We already have the force_dma_unencrypted() function available which AFAIU is what we want for encrypted memory protection and is

Re: [PATCH] mm: memcontrol: Fix do not put the css reference

2020-06-15 Thread Michal Hocko
On Sun 14-06-20 20:26:53, Muchun Song wrote: > We should put the css reference when memory allocation failed. > > Fixes: f0a3a24b532d ("mm: memcg/slab: rework non-root kmem_cache lifecycle > management") > Signed-off-by: Muchun Song This looks like a stable tree material to me. Acked-by: Micha

Re: [PATCH] s390: protvirt: virtio: Refuse device without IOMMU

2020-06-15 Thread Pierre Morel
On 2020-06-15 05:01, Jason Wang wrote: On 2020/6/12 下午7:38, Pierre Morel wrote: On 2020-06-12 11:21, Pierre Morel wrote: On 2020-06-11 05:10, Jason Wang wrote: On 2020/6/10 下午9:11, Pierre Morel wrote: Protected Virtualisation protects the memory of the guest and do not allow a the ho

Re: [PATCH 17/29] docs: hugetlbpage.rst: fix some warnings

2020-06-15 Thread Matthew Wilcox
On Mon, Jun 15, 2020 at 08:46:56AM +0200, Mauro Carvalho Chehab wrote: > @@ -100,38 +100,49 @@ with a huge page size selection parameter > "hugepagesz=". must > be specified in bytes with optional scale suffix [kKmMgG]. The default huge > page size may be selected with the "default_hugepagesz

My Dear in the lord

2020-06-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 politician who owns a small gold company in Burkina Faso; He died of Leprosy and Radesyge, in the year February 2010, During his lifetime he deposite

[PATCH] ipc: fix call_kern.cocci warnings

2020-06-15 Thread Julia Lawall
From: kernel test robot This function is called from ipc_addid with a spin lock held so change GFP_KERNEL to GFP_ATOMIC. Generated by: scripts/coccinelle/locks/call_kern.cocci Fixes: dc996261c060 ("ipc: convert ipcs_idr to XArray") CC: Matthew Wilcox (Oracle) Signed-off-by: kernel test robot

Re: [PATCH] ipc: fix call_kern.cocci warnings

2020-06-15 Thread Matthew Wilcox
On Mon, Jun 15, 2020 at 01:53:54PM +0200, Julia Lawall wrote: > From: kernel test robot > > This function is called from ipc_addid with a spin lock held so change > GFP_KERNEL to GFP_ATOMIC. > > Generated by: scripts/coccinelle/locks/call_kern.cocci > > Fixes: dc996261c060 ("ipc: convert ipcs_i

Re: [RFC PATCH 1/3] dt-bindings: Add ARM PSA FF binding for non-secure VM partitions

2020-06-15 Thread Will Deacon
On Mon, Jun 15, 2020 at 12:42:20PM +0100, Achin Gupta wrote: > On Mon, Jun 15, 2020 at 10:51:34AM +0100, Will Deacon wrote: > > On Mon, Jun 15, 2020 at 10:16:39AM +0100, Achin Gupta wrote: > > > Right! FFA_PARTITION_INFO_GET is meant to help the FF-A driver in the > > > kernel to > > > determine p

Re: [PATCH 13/29] dt: fix broken links due to txt->yaml renames

2020-06-15 Thread Mauro Carvalho Chehab
Hi Mark, Em Mon, 15 Jun 2020 12:19:27 +0100 Mark Brown escreveu: > On Mon, Jun 15, 2020 at 08:46:52AM +0200, Mauro Carvalho Chehab wrote: > > There are some new broken doc links due to yaml renames > > at DT. Developers should really run: > > I also previously acked this one in 20200504100822

Re: [PATCH 4/5] LSM: Define SELinux function to measure security state

2020-06-15 Thread Stephen Smalley
On Fri, Jun 12, 2020 at 10:42 PM Lakshmi Ramasubramanian wrote: > > SELinux needs to implement the interface function, security_state(), for > the LSM to gather SELinux data for measuring. Define the security_state() > function in SELinux. > > The security modules should be able to notify the LSM

drivers/scsi/bnx2fc/bnx2fc_hwi.c:1011:17: warning: variable 'dummy' set but not used

2020-06-15 Thread kernel test robot
: 3 months ago config: ia64-randconfig-r003-20200615 (attached as .config) compiler: ia64-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git

Re: [PATCH] drivers/video/backlight: Use kobj_to_dev() instead

2020-06-15 Thread Daniel Thompson
On Mon, Jun 15, 2020 at 04:54:02PM +0800, Wang Qing wrote: > Use kobj_to_dev() instead of container_of() > > Signed-off-by: Wang Qing Reviewed-by: Daniel Thompson > --- > drivers/video/backlight/lm3533_bl.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > mode change 100644 => 10075

Re: [PATCH 0/2] MCA and EDAC updates for AMD Family 17h, Model 60h

2020-06-15 Thread Borislav Petkov
+ Yazen and linux-hwmon. On Sun, Jun 07, 2020 at 12:37:07PM +0800, Jacky Hu wrote: > This patchset adds MCA and EDAC support for AMD Family 17h, Model 60h. > > Also k10temp works with 4800h > > k10temp-pci-00c3 > Adapter: PCI adapter > Vcore: 1.55 V > Vsoc: 1.55 V > Tctl:

Re: [PATCH v2 4/6] regulator: Add support for QCOM PMIC VBUS booster

2020-06-15 Thread Mark Brown
On Fri, Jun 12, 2020 at 04:19:16PM -0700, Wesley Cheng wrote: > +++ b/drivers/regulator/qcom_usb_vbus-regulator.c > @@ -0,0 +1,147 @@ > +// SPDX-License-Identifier: GPL-2.0-only > +/* > + * Copyright (c) 2020, The Linux Foundation. All rights reserved. > + */ Please make the entire comment a C++

[RESEND PATCH V13 1/3] MAINTAINERS: da7280 updates to the Dialog Semiconductor search terms

2020-06-15 Thread Roy Im
This patch adds the da7280 bindings doc and driver to the Dialog Semiconductor support list. Signed-off-by: Roy Im --- v13: No changes. v12: Corrected file list order. v11: No changes. v10: No changes. v9: No changes. v8: No changes. v7: No changes. v6: No changes. v5: No changes. v4: No changes

Re: [PATCH v9 2/2] PCI: hip: Add handling of HiSilicon HIP PCIe controller errors

2020-06-15 Thread Andy Shevchenko
On Mon, Jun 15, 2020 at 11:15:52AM +0100, Shiju Jose wrote: > From: Yicong Yang > > The HiSilicon HIP PCIe controller is capable of handling errors > on root port and perform port reset separately at each root port. > > Add error handling driver for HIP PCIe controller to log > and report recove

[RESEND PATCH V13 0/3] da7280: haptic driver submission

2020-06-15 Thread Roy Im
This patch adds support for the Dialog DA7280 Haptic driver IC. In this patch set the following is provided: [PATCH V13 1/3] MAINTAINERS file update for DA7280 [PATCH V13 2/3] DA7280 DT Binding [PATCH V13 3/3] DA7280 Driver This patch applies against linux-mainline and v5.7 Thank you, Roy Im, D

Re: [PATCH 13/29] dt: fix broken links due to txt->yaml renames

2020-06-15 Thread Mark Brown
On Mon, Jun 15, 2020 at 01:57:39PM +0200, Mauro Carvalho Chehab wrote: > Mark Brown escreveu: > > On Mon, Jun 15, 2020 at 08:46:52AM +0200, Mauro Carvalho Chehab wrote: > > > There are some new broken doc links due to yaml renames > > > at DT. Developers should really run: > > I also previously

[RESEND PATCH V13 2/3] dt-bindings: input: Add document bindings for DA7280

2020-06-15 Thread Roy Im
Add device tree binding information for DA7280 haptic driver. Example bindings for DA7280 are added. Reviewed-by: Rob Herring . Signed-off-by: Roy Im --- v13: No changes. v12: No changes. v11: No changes. v10: No changes. v9: No changes. v8: Updated descriptions for new properties. v7: No chang

[RESEND PATCH V13 3/3] Input: new da7280 haptic driver

2020-06-15 Thread Roy Im
Adds support for the Dialog DA7280 LRA/ERM Haptic Driver with multiple mode and integrated waveform memory and wideband support. It communicates via an I2C bus to the device. Signed-off-by: Roy Im --- v13: - Updated some conditions in pwm function and alignments. v12: No changes. v11:

Re: [PATCH] fs: Do not check if there is a fsnotify watcher on pseudo inodes

2020-06-15 Thread Mel Gorman
On Fri, Jun 12, 2020 at 11:34:16PM +0300, Amir Goldstein wrote: > > > > So maybe it would be better to list all users of alloc_file_pseudo() > > > > and say that they all should be opted out of fsnotify, without > > > > mentioning > > > > "internal mount"? > > > > > > > > > > The users are DMA buf

[PATCH v6 2/6] spi: spi-geni-qcom: Use OPP API to set clk/perf state

2020-06-15 Thread Rajendra Nayak
geni spi needs to express a perforamnce state requirement on CX depending on the frequency of the clock rates. Use OPP table from DT to register with OPP framework and use dev_pm_opp_set_rate() to set the clk/perf state. Signed-off-by: Rajendra Nayak Reviewed-by: Matthias Kaehlcke Acked-by: Mark

[PATCH v6 0/6] DVFS for IO devices on sdm845 and sc7180

2020-06-15 Thread Rajendra Nayak
Changes in v6: 1. rebased on 5.8-rc1, no functional change. Changes in v5: 1. Opp cleanup path fixed up across drivers Changes in v4: 1. Fixed all review feedback on v3 2. Dropped the dts patches, will post as a seperate series once driver changes are reviewed and merged. The driver changes with

Re: [PATCH v4 2/3] venus: Make debug infrastructure more flexible

2020-06-15 Thread Greg KH
On Mon, Jun 15, 2020 at 12:55:29PM +0300, Stanimir Varbanov wrote: > Hi Greg, > > On 6/14/20 9:37 AM, Greg KH wrote: > > On Sun, Jun 14, 2020 at 01:39:18AM +0300, Stanimir Varbanov wrote: > >>if (slot == -1) { > >> - dev_dbg(inst->core->dev, "%s: no free slot\n", __func__); > >> +

[PATCH v6 5/6] media: venus: core: Add support for opp tables/perf voting

2020-06-15 Thread Rajendra Nayak
Add support to add OPP tables and perf voting on the OPP powerdomain. This is needed so venus votes on the corresponding performance state for the OPP powerdomain along with setting the core clock rate. Signed-off-by: Rajendra Nayak Reviewed-by: Matthias Kaehlcke Cc: Stanimir Varbanov Cc: linux

[PATCH v6 4/6] drm/msm: dsi: Use OPP API to set clk/perf state

2020-06-15 Thread Rajendra Nayak
On SDM845 DSI needs to express a perforamnce state requirement on a power domain depending on the clock rates. Use OPP table from DT to register with OPP framework and use dev_pm_opp_set_rate() to set the clk/perf state. Signed-off-by: Rajendra Nayak Cc: Rob Clark Cc: Sean Paul Cc: dri-de...@li

[PATCH v6 3/6] drm/msm/dpu: Use OPP API to set clk/perf state

2020-06-15 Thread Rajendra Nayak
On some qualcomm platforms DPU needs to express a performance state requirement on a power domain depending on the clock rates. Use OPP table from DT to register with OPP framework and use dev_pm_opp_set_rate() to set the clk/perf state. Signed-off-by: Rajendra Nayak Reviewed-by: Rob Clark Revie

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