[PATCH] perf parse-events: Set exclude_guest for user-space counting

2020-08-12 Thread Jin Yao
Currently if we run 'perf record -e cycles:u', exclude_guest is 0. But it doesn't make sense that we request for user-space counting but we also get the guest report. To keep perf semantics consistent and clear, this patch sets exclude_guest for user-space counting. Signed-off-by: Jin Yao ---

Re: [RFC v4 1/3] usb: dwc3: Resize TX FIFOs to meet EP bursting requirements

2020-08-12 Thread Wesley Cheng
On 8/11/2020 7:22 PM, Peter Chen wrote: > On Wed, Jun 24, 2020 at 10:31 AM Wesley Cheng wrote: >> >> Some devices have USB compositions which may require multiple endpoints >> that support EP bursting. HW defined TX FIFO sizes may not always be >> sufficient for these compositions. By utilizi

Re: linux-next: build warning after merge of the sound-current tree

2020-08-12 Thread Takashi Iwai
On Wed, 12 Aug 2020 01:21:19 +0200, Stephen Rothwell wrote: > > Hi all, > > After merging the sound-current tree, today's linux-next build (arm > multi_v7_defconfig) produced this warning: > > sound/pci/hda/patch_realtek.c: In function 'alc285_fixup_hp_gpio_led': > sound/pci/hda/patch_realtek.c:

Re: [PATCH drm/hisilicon v2 0/3] hibmc clean up and code refactoring

2020-08-12 Thread Thomas Zimmermann
Hi Am 03.08.20 um 02:38 schrieb Tian Tao: > patch #1 and #3 is clean up, patch #2 is for code refactoring Sorry for all my reviews taking so long. Please merge patch #3 into patch #2 and then the series is Reviewed-by: Thomas Zimmermann I noticed that hibmc use DRM_ERROR in several places. A g

Re: [Linux-kernel-mentees] [PATCH] hfs, hfsplus: Fix NULL pointer dereference in hfs_find_init()

2020-08-12 Thread Greg Kroah-Hartman
On Wed, Aug 12, 2020 at 02:55:56AM -0400, Peilin Ye wrote: > Prevent hfs_find_init() from dereferencing `tree` as NULL. > > Reported-and-tested-by: syzbot+7ca256d0da4af073b...@syzkaller.appspotmail.com > Signed-off-by: Peilin Ye > --- > fs/hfs/bfind.c | 3 +++ > fs/hfsplus/bfind.c | 3 +++ >

Re: [PATCH drm/hisilicon v2 0/3] hibmc clean up and code refactoring

2020-08-12 Thread tiantao (H)
在 2020/8/12 15:04, Thomas Zimmermann 写道: Hi Am 03.08.20 um 02:38 schrieb Tian Tao: patch #1 and #3 is clean up, patch #2 is for code refactoring Sorry for all my reviews taking so long. Please merge patch #3 into patch #2 and then the series is thanks,I will send v3 to fix this. Reviewe

Re: [Linux-kernel-mentees] [PATCH] hfs, hfsplus: Fix NULL pointer dereference in hfs_find_init()

2020-08-12 Thread Peilin Ye
On Wed, Aug 12, 2020 at 09:08:27AM +0200, Greg Kroah-Hartman wrote: > On Wed, Aug 12, 2020 at 02:55:56AM -0400, Peilin Ye wrote: > > Prevent hfs_find_init() from dereferencing `tree` as NULL. > > > > Reported-and-tested-by: > > syzbot+7ca256d0da4af073b...@syzkaller.appspotmail.com > > Signed-off-

Re: [PATCH net 0/2] vsock: fix null pointer dereference and cleanup in vsock_poll()

2020-08-12 Thread Stefano Garzarella
On Tue, Aug 11, 2020 at 10:24:18AM -0700, David Miller wrote: > From: Stefano Garzarella > Date: Tue, 11 Aug 2020 11:55:02 +0200 > > > The first patch fixes a potential null pointer dereference in vsock_poll() > > reported by syzbot. > > The second patch is a simple cleanup in the same block code

[PATCH v8 0/4] Introduce PMIC based USB type C detection

2020-08-12 Thread Wesley Cheng
Changes in v8: - Simplified some property definitions, and corrected the connector reference in the dt binding. Changes in v7: - Fixups in qcom-pmic-typec.c to remove uncesscary includes, printk formatting, and revising some logic operations. Changes in v6: - Removed qcom_usb_vbus-regul

[PATCH v8 1/4] usb: typec: Add QCOM PMIC typec detection driver

2020-08-12 Thread Wesley Cheng
The QCOM SPMI typec driver handles the role and orientation detection, and notifies client drivers using the USB role switch framework. It registers as a typec port, so orientation can be communicated using the typec switch APIs. The driver also attains a handle to the VBUS output regulator, so

[PATCH v8 4/4] arm64: boot: dts: qcom: pm8150b: Add DTS node for PMIC VBUS booster

2020-08-12 Thread Wesley Cheng
Add the required DTS node for the USB VBUS output regulator, which is available on PM8150B. This will provide the VBUS source to connected peripherals. Signed-off-by: Wesley Cheng --- arch/arm64/boot/dts/qcom/pm8150b.dtsi | 6 ++ arch/arm64/boot/dts/qcom/sm8150-mtp.dts | 4 2 files c

[PATCH v8 3/4] arm64: boot: dts: qcom: pm8150b: Add node for USB type C block

2020-08-12 Thread Wesley Cheng
The PM8150B has a dedicated USB type C block, which can be used for type C orientation and role detection. Create the reference node to this type C block for further use. Signed-off-by: Wesley Cheng --- arch/arm64/boot/dts/qcom/pm8150b.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --g

[PATCH v8 2/4] dt-bindings: usb: Add Qualcomm PMIC type C controller dt-binding

2020-08-12 Thread Wesley Cheng
Introduce the dt-binding for enabling USB type C orientation and role detection using the PM8150B. The driver will be responsible for receiving the interrupt at a state change on the CC lines, reading the orientation/role, and communicating this information to the remote clients, which can include

Re: file metadata via fs API (was: [GIT PULL] Filesystem Information)

2020-08-12 Thread Miklos Szeredi
On Tue, Aug 11, 2020 at 11:19 PM Linus Torvalds wrote: > > On Tue, Aug 11, 2020 at 1:56 PM Miklos Szeredi wrote: > > > > So that's where O_ALT comes in. If the application is consenting, > > then that should prevent exploits. Or? > > If the application is consenting AND GETS IT RIGHT it shoul

Re: [PATCH 0/3] mtd: lpddr: Fix bad logic bug in print_drs_error

2020-08-12 Thread Miquel Raynal
Hi Joe, Gustavo, Joe Perches wrote on Tue, 11 Aug 2020 16:47:36 -0700: > On Mon, 2020-04-27 at 14:00 -0500, Gustavo A. R. Silva wrote: > > Hi, > > > > This series aims to fix a bad logic bug in print_drs_error, which is > > tagged for -stable. The series also include some formatting fixups.

Re: [PATCH v1 2/2] perf/core: Fake regs for leaked kernel samples

2020-08-12 Thread Like Xu
On 2020/8/12 11:52, Jin, Yao wrote: Hi Peter, On 8/11/2020 4:45 PM, Peter Zijlstra wrote: On Tue, Aug 11, 2020 at 04:31:10PM +0800, Jin, Yao wrote: Hi Peter, On 8/11/2020 3:59 PM, Peter Zijlstra wrote: On Tue, Aug 11, 2020 at 03:50:43PM +0800, Jin, Yao wrote: Could I post v2 which basically

[PATCH] drm/bridge/tc358775: Fixes bus formats read

2020-08-12 Thread Vinay Simha BN
- bus formats read from drm_bridge_state.output_bus_cfg.format and .atomic_get_input_bus_fmts() instead of connector Signed-off-by: Vinay Simha BN --- v1: * Laurent Pinchart review comments incorporated drm_bridge_state.output_bus_cfg.format instead of connector --- drivers/gpu/drm/br

upstream boot error: KASAN: global-out-of-bounds Read in internal_create_group

2020-08-12 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:fb893de3 Merge tag 'tag-chrome-platform-for-v5.9' of git:/.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1323384a90 kernel config: https://syzkaller.appspot.com/x/.config?x=b4f36703531c4ada das

Re: [PATCH 11/17] clk: imx: Add blk_ctrl combo driver

2020-08-12 Thread Abel Vesa
On 20-07-30 11:39:22, Philipp Zabel wrote: > On Thu, 2020-07-30 at 11:55 +0300, Abel Vesa wrote: > > On 20-07-29 14:46:28, Philipp Zabel wrote: > > > Hi Abel, > > > > > > On Wed, 2020-07-29 at 15:07 +0300, Abel Vesa wrote: > > > > On i.MX8MP, there is a new type of IP which is called BLK_CTRL in >

Re: [PATCH v4 2/2] xen: add helpers to allocate unpopulated memory

2020-08-12 Thread Jürgen Groß
On 11.08.20 11:44, Roger Pau Monne wrote: To be used in order to create foreign mappings. This is based on the ZONE_DEVICE facility which is used by persistent memory devices in order to create struct pages and kernel virtual mappings for the IOMEM areas of such devices. Note that on kernels with

Re: [PATCH v2 1/2] ASoC: mediatek: mt6359: add codec driver

2020-08-12 Thread Jiaxin Yu
On Mon, 2020-08-10 at 19:59 +0100, Mark Brown wrote: > On Mon, Aug 10, 2020 at 11:05:53AM +0800, Jiaxin Yu wrote: > > > +void mt6359_set_playback_gpio(struct snd_soc_component *cmpnt) > > +{ > > + struct mt6359_priv *priv = snd_soc_component_get_drvdata(cmpnt); > > > +void mt6359_reset_playback

[PATCH][next] printk: reduce LOG_BUF_SHIFT range for H8300

2020-08-12 Thread John Ogness
The .bss section for the h8300 is relatively small. A value of CONFIG_LOG_BUF_SHIFT that is larger than 19 will create a static printk ringbuffer that is too large. Limit the range appropriately for the H8300. Reported-by: kernel test robot Signed-off-by: John Ogness --- based on next-20200811

Re: Documentation: build failure with sphinx >= 3.0.0: exception: cannot import name 'c_funcptr_sig_re' from 'sphinx.domains.c'

2020-08-12 Thread Salvatore Bonaccorso
Hi, On Sun, Aug 09, 2020 at 03:23:27PM +0200, Salvatore Bonaccorso wrote: > Hi > On Thu, Apr 09, 2020 at 05:04:54AM +0530, Bhaskar Chowdhury wrote: > > On 13:25 Wed 08 Apr 2020, Jonathan Corbet wrote: > > > On Wed, 8 Apr 2020 17:07:05 +0530 > > > Bhaskar Chowdhury wrote: > > > > > > > Extension

Re: [PATCH] of/address: check for invalid range.cpu_addr

2020-08-12 Thread Colin Ian King
On 10/08/2020 15:06, Colin King wrote: > From: Colin Ian King > > Currently invalid CPU addresses are not being sanity checked resulting in > SATA setup failure on a SynQuacer SC2A11 development machine. The original > check was removed by and earlier commit, so add a sanity check back in > to av

Re: [PATCH v8 2/2] display/drm/bridge: TC358775 DSI/LVDS driver

2020-08-12 Thread Vinay Simha B N
sam/laurent, [PATCH] drm/bridge/tc358775: Fixes bus formats read is on top of drm-misc-next. On Wed, Aug 12, 2020 at 7:50 AM Vinay Simha B N wrote: > > Sam, > > I will look into this and send the patch ASAP. > > On Wed, Aug 12, 2020 at 12:47 AM Sam Ravnborg wrote: >> >> Hi Vinay. >> >> > > >>

Re: [RFC v2 03/11] tty: serial: qcom_geni_serial: Use OPP API to set clk/perf state

2020-08-12 Thread Amit Pundir
Hi Rajendra, On Wed, 12 Aug 2020 at 11:18, Rajendra Nayak wrote: > > > On 8/12/2020 7:03 AM, John Stultz wrote: > > On Tue, Aug 11, 2020 at 4:11 PM John Stultz wrote: > >> > >> On Wed, Mar 20, 2019 at 2:49 AM Rajendra Nayak > >> wrote: > >>> > >>> geni serial needs to express a perforamnce sta

Re: [PATCH 1/2] vdpa: ifcvf: return err when fail to request config irq

2020-08-12 Thread Maxime Coquelin
Hi, On 7/23/20 11:12 AM, Jason Wang wrote: > We ignore the err of requesting config interrupt, fix this. > > Fixes: e7991f376a4d ("ifcvf: implement config interrupt in IFCVF") > Cc: Zhu Lingshan > Signed-off-by: Jason Wang > --- > drivers/vdpa/ifcvf/ifcvf_main.c | 4 > 1 file changed, 4 i

Re: [PATCH v4 2/2] xen: add helpers to allocate unpopulated memory

2020-08-12 Thread Roger Pau Monné
On Wed, Aug 12, 2020 at 09:28:45AM +0200, Jürgen Groß wrote: > On 11.08.20 11:44, Roger Pau Monne wrote: > > To be used in order to create foreign mappings. This is based on the > > ZONE_DEVICE facility which is used by persistent memory devices in > > order to create struct pages and kernel virtua

Re: [RFC v2 03/11] tty: serial: qcom_geni_serial: Use OPP API to set clk/perf state

2020-08-12 Thread Rajendra Nayak
On 8/12/2020 1:05 PM, Amit Pundir wrote: Hi Rajendra, On Wed, 12 Aug 2020 at 11:18, Rajendra Nayak wrote: On 8/12/2020 7:03 AM, John Stultz wrote: On Tue, Aug 11, 2020 at 4:11 PM John Stultz wrote: On Wed, Mar 20, 2019 at 2:49 AM Rajendra Nayak wrote: geni serial needs to express a

Re: [PATCH] riscv: Setup exception vector for K210 properly

2020-08-12 Thread Atish Patra
On Tue, Aug 11, 2020 at 6:57 PM Anup Patel wrote: > > On Wed, Aug 12, 2020 at 12:16 AM Atish Patra wrote: > > > > On Tue, Aug 11, 2020 at 1:41 AM Anup Patel wrote: > > > > > > On Tue, Aug 11, 2020 at 12:07 PM Qiu Wenbo > > > wrote: > > > > > > > > Exception vector is missing on nommu platform

Re: [PATCH v3 2/2] ASoC: Intel: Add period size constraint on strago board

2020-08-12 Thread Yu-Hsuan Hsu
Takashi Iwai 於 2020年8月12日 週三 下午2:58寫道: > > On Wed, 12 Aug 2020 08:53:42 +0200, > Yu-Hsuan Hsu wrote: > > > > Takashi Iwai 於 2020年8月12日 週三 下午2:14寫道: > > > > > > On Wed, 12 Aug 2020 05:09:58 +0200, > > > Yu-Hsuan Hsu wrote: > > > > > > > > Mark Brown 於 2020年8月12日 週三 上午1:22寫道: > > > > > > > > > > O

[PATCH drm/hisilicon v3 0/2] hibmc clean up and code refactoring

2020-08-12 Thread Tian Tao
patch #1 and #3 is clean up, patch #2 is for code refactoring Changes since v1: - Rewrite the commits messages and patch name in #1 - Rewrite the commits message in #2. - Add the new patch #3 Changes since v2: - merge patch #3 into patch #2 Tian Tao (2): drm/hisilicon: Remove the unused includ

[PATCH drm/hisilicon v3 2/2] drm/hisilicon: Code refactoring for hibmc_drv_de

2020-08-12 Thread Tian Tao
The memory used to be allocated with devres helpers and released automatically. In rare circumstances, the memory's release could have happened before the DRM device got released, which would have caused memory corruption of some kind. Now we're embedding the data structures in struct hibmc_drm_pri

[PATCH drm/hisilicon v3 1/2] drm/hisilicon: Remove the unused include statements

2020-08-12 Thread Tian Tao
Remove some unused include statements. Signed-off-by: Tian Tao Reviewed-by: Thomas Zimmermann --- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c | 3 --- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 5 - drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_vdac.c | 2 -- 3 files changed, 10 de

Re: [PATCH 00/33] Add driver for HiSilicon SPMI PMIC for Hikey 970

2020-08-12 Thread Mauro Carvalho Chehab
Em Tue, 11 Aug 2020 18:51:11 +0100 Jonathan Cameron escreveu: > On Tue, 11 Aug 2020 17:54:29 +0200 > Mauro Carvalho Chehab wrote: > > > Em Tue, 11 Aug 2020 17:41:26 +0200 > > Mauro Carvalho Chehab escreveu: > > > > > The Hikey 970 board uses a different PMIC than the one found on Hikey 960.

Re: [PATCH v3 2/2] ASoC: Intel: Add period size constraint on strago board

2020-08-12 Thread Takashi Iwai
On Wed, 12 Aug 2020 09:43:22 +0200, Yu-Hsuan Hsu wrote: > > Takashi Iwai 於 2020年8月12日 週三 下午2:58寫道: > > > > On Wed, 12 Aug 2020 08:53:42 +0200, > > Yu-Hsuan Hsu wrote: > > > > > > Takashi Iwai 於 2020年8月12日 週三 下午2:14寫道: > > > > > > > > On Wed, 12 Aug 2020 05:09:58 +0200, > > > > Yu-Hsuan Hsu wrote

Re: [RFC PATCH 0/5] Introduce /proc/all/ to gather stats from all processes

2020-08-12 Thread Andrei Vagin
On Tue, Aug 11, 2020 at 12:58:47AM +1000, Eugene Lubarsky wrote: > This is an idea for substantially reducing the number of syscalls needed > by monitoring tools whilst mostly re-using the existing API. > > The proposed files in this proof-of-concept patch set are: > > * /proc/all/stat > A

Re: [PATCH] clk: rockchip: Fix initialization of mux_pll_src_4plls_p

2020-08-12 Thread Stephen Boyd
Quoting Nathan Chancellor (2020-08-09 21:40:20) > A new warning in Clang points out that the initialization of > mux_pll_src_4plls_p appears incorrect: > > ../drivers/clk/rockchip/clk-rk3228.c:140:58: warning: suspicious > concatenation of string literals in an array initialization; did you > mean

[PATCH v4 5/5] MIPS: BCM63xx: switch to SPDX license identifier

2020-08-12 Thread Álvaro Fernández Rojas
Use SPDX license indentifier instead of local reference to COPYING. Signed-off-by: Álvaro Fernández Rojas --- v4: add new patch with SPDX license change. arch/mips/bcm63xx/boards/board_bcm963xx.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/arch/mips/bcm63xx/boards/b

[PATCH v4 2/5] MIPS: BCM63xx: remove EHCI from BCM6348 boards

2020-08-12 Thread Álvaro Fernández Rojas
There's no EHCI controller on BCM6348. Signed-off-by: Álvaro Fernández Rojas Acked-by: Florian Fainelli --- v4: no changes. v3: no changes. v2: no changes. arch/mips/bcm63xx/boards/board_bcm963xx.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/mips/bcm63xx/boards/board_bcm963xx

[PATCH v4 1/5] MIPS: BCM63xx: remove duplicated new lines

2020-08-12 Thread Álvaro Fernández Rojas
There are 3 duplicated new lines, let's remove them. Signed-off-by: Álvaro Fernández Rojas Acked-by: Florian Fainelli Reviewed-by: Philippe Mathieu-Daudé --- v4: no changes. v3: no changes. v2: no changes. arch/mips/bcm63xx/boards/board_bcm963xx.c | 3 --- 1 file changed, 3 deletions(-) d

Re: [PATCH v2 05/41] ARM: s3c24xx: make S3C24XX_MISCCR access indirect

2020-08-12 Thread Stephen Boyd
Quoting Krzysztof Kozlowski (2020-08-06 11:20:22) > From: Arnd Bergmann > > The clk driver uses both a function call into an exported > platform file and a direct register access to a hardcoded > virtual address for accessing the MISCCR register, both > become are a problem for a multiplatform ke

[PATCH v4 3/5] MIPS: BCM63xx: enable EHCI for DWV-S0 board

2020-08-12 Thread Álvaro Fernández Rojas
BCM6358 SoCs have OHCI and EHCI controllers that share the same USB ports. Therefore, the board should also have EHCI enabled. Signed-off-by: Álvaro Fernández Rojas Acked-by: Florian Fainelli --- v4: no changes. v3: Reword commit description to avoid possible confusions. v2: no changes. arc

[PATCH v4 4/5] MIPS: BCM63xx: refactor board declarations

2020-08-12 Thread Álvaro Fernández Rojas
Current board declarations are a mess. Let's put some order and make them follow the same structure. Signed-off-by: Álvaro Fernández Rojas Acked-by: Florian Fainelli --- v4: split license change to a new patch. v3: no changes. v2: switch to SPDX license identifier. arch/mips/bcm63xx/boards/

[PATCH v4 0/5] MIPS: BCM63xx: board improvements

2020-08-12 Thread Álvaro Fernández Rojas
v4: Split license change to a new patch. v3: Reword DWV-S0 board commit description to avoid possible confusions. v2: switch to SPDX license identifier. Álvaro Fernández Rojas (5): MIPS: BCM63xx: remove duplicated new lines MIPS: BCM63xx: remove EHCI from BCM6348 boards MIPS: BCM63xx: enable

Re: [PATCH v2 06/41] ARM: s3c24xx: pass pointer to clk driver via platform data

2020-08-12 Thread Stephen Boyd
Quoting Krzysztof Kozlowski (2020-08-06 11:20:23) > Passing pointers directly as platform data is fragile and undocumented. > Better to create a platform data structure which explicitly documents > what is passed to the driver. > > Suggested-by: Tomasz Figa > [krzk: Update maintainer's entry] > S

Re: file metadata via fs API (was: [GIT PULL] Filesystem Information)

2020-08-12 Thread Miklos Szeredi
On Wed, Aug 12, 2020 at 2:05 AM David Howells wrote: > > { > > int fd, attrfd; > > > > fd = open(path, O_PATH); > > attrfd = openat(fd, name, O_ALT); > > close(fd); > > read(attrfd, value, size); > > close(attrfd); > > } > > Please don't go down this path. You'r

[PATCH V2] dt-bindings: gpio: Convert vf610 to json-schema

2020-08-12 Thread Anson Huang
Convert the vf610 gpio binding to DT schema format using json-schema. Signed-off-by: Anson Huang --- changes since V1: - fix reg property to pass build; - add "additionalProperties: false". --- .../devicetree/bindings/gpio/gpio-vf610.txt| 63 - .../devicet

Re: [PATCH] clk: imx: Explicitly include bits.h

2020-08-12 Thread Stephen Boyd
Quoting Anson Huang (2020-08-04 16:17:29) > It is better to explicitly include the required header file rather > then get it through some recursive include. > > Signed-off-by: Anson Huang > --- Acked-by: Stephen Boyd

Re: [PATCH] locking/rwsem: remove redundant semicolon of down_write_nest_lock

2020-08-12 Thread peterz
On Tue, Aug 11, 2020 at 01:18:52PM +0200, Christian König wrote: > From: Guchun Chen > > Otherwise, braces are needed when using it. > > Signed-off-by: Guchun Chen > Reviewed-by: Christian König Thanks!

Re: [PATCH v3 0/8] huge vmalloc mappings

2020-08-12 Thread Nicholas Piggin
Excerpts from Zefan Li's message of August 12, 2020 11:07 am: > On 2020/8/12 0:32, Jonathan Cameron wrote: >> On Mon, 10 Aug 2020 12:27:24 +1000 >> Nicholas Piggin wrote: >> >>> Not tested on x86 or arm64, would appreciate a quick test there so I can >>> ask Andrew to put it in -mm. Other option

Re: [PATCH 1/2] lockdep: improve current->(hard|soft)irqs_enabled synchronisation with actual irq state

2020-08-12 Thread Nicholas Piggin
Excerpts from pet...@infradead.org's message of August 7, 2020 9:11 pm: > > What's wrong with something like this? > > AFAICT there's no reason to actually try and add IRQ tracing here, it's > just a hand full of instructions at the most. Because we may want to use that in other places as well,

Re: [Linux-kernel-mentees] [PATCH] hfs, hfsplus: Fix NULL pointer dereference in hfs_find_init()

2020-08-12 Thread Greg Kroah-Hartman
On Wed, Aug 12, 2020 at 03:13:06AM -0400, Peilin Ye wrote: > On Wed, Aug 12, 2020 at 09:08:27AM +0200, Greg Kroah-Hartman wrote: > > On Wed, Aug 12, 2020 at 02:55:56AM -0400, Peilin Ye wrote: > > > Prevent hfs_find_init() from dereferencing `tree` as NULL. > > > > > > Reported-and-tested-by: > >

Re: [PATCH] OPP: Put opp table in dev_pm_opp_set_rate() all the time

2020-08-12 Thread Viresh Kumar
On 11-08-20, 14:28, Stephen Boyd wrote: > @@ -905,7 +907,7 @@ int dev_pm_opp_set_rate(struct device *dev, unsigned long > target_freq) > > ret = _set_opp_bw(opp_table, NULL, dev, true); > if (ret) > - return ret; > + goto put_op

Re: [PATCH] x86/paravirt: Add missing noinstr to arch_local*() helpers

2020-08-12 Thread peterz
On Wed, Aug 12, 2020 at 10:06:50AM +0200, Marco Elver wrote: > On Tue, Aug 11, 2020 at 10:17PM +0200, pet...@infradead.org wrote: > > On Tue, Aug 11, 2020 at 11:46:51AM +0200, pet...@infradead.org wrote: > > > > > So let me once again see if I can't find a better solution for this all. > > > Clear

Re: [PATCH] OPP: Put opp table in dev_pm_opp_set_rate() all the time

2020-08-12 Thread Stephen Boyd
Quoting Viresh Kumar (2020-08-12 01:20:13) > On 11-08-20, 14:28, Stephen Boyd wrote: > > @@ -905,7 +907,7 @@ int dev_pm_opp_set_rate(struct device *dev, unsigned > > long target_freq) > > > > ret = _set_opp_bw(opp_table, NULL, dev, true); > > if (ret) > > -

Re: [PATCH] Documentation: clarify driver licensing rules

2020-08-12 Thread Greg KH
On Tue, Aug 11, 2020 at 10:17:48AM -0700, Dave Hansen wrote: > > Resend. Something appears to have eaten this on the way to LKML > (at least) the last time. > > -- > > From: Dave Hansen > > Greg has challenged some recent driver submitters on their license > choices. He was correct to do so, a

Re: file metadata via fs API (was: [GIT PULL] Filesystem Information)

2020-08-12 Thread David Howells
Miklos Szeredi wrote: > Worried about performance? Io-uring will allow you to do all those > five syscalls (or many more) with just one I/O submission. io_uring isn't going to help here. We're talking about synchronous reads. AIUI, you're adding a couple more syscalls to the list and running s

[GIT PULL] Second batch of KVM changes for Linux 5.9

2020-08-12 Thread Paolo Bonzini
Linus, The following changes since commit 06a81c1c7db9bd5de0bd38cd5acc44bb22b99150: Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux (2020-08-08 14:16:12 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/virt/kvm/kvm.git tags

drivers/net/wireless/intel/iwlwifi/pcie/trans.c:3730 iwl_trans_pcie_alloc() warn: passing zero to 'ERR_PTR'

2020-08-12 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: fb893de323e2d39f7a1f6df425703a2edbdf56ea commit: c239feec5038585d8ba622ecc97322e0e2f3398c iwlwifi: pcie: gen2: use DMA pool for byte-count tables date: 3 months ago config: parisc-randconfig-m031-20200811

[PATCH 0/6] Support change dw-hdmi output color

2020-08-12 Thread Algea Cao
Support userspace to set hdmi output color via hdmi properties. Add hdmi atomic_begin/atomic_flush to make sure screen don't flash when updating color. Algea Cao (6): drm: Add connector atomic_begin/atomic_flush drm: bridge: dw-hdmi: Implement connector atomic_begin/atomic_flush drm: bridge

Re: Documentation: build failure with sphinx >= 3.0.0: exception: cannot import name 'c_funcptr_sig_re' from 'sphinx.domains.c'

2020-08-12 Thread Markus Heiser
Am 12.08.20 um 09:30 schrieb Salvatore Bonaccorso: [..] The problem is actually related to changes happening in Sphinx 3.0.0. There is the followign issue filled upstream: https://github.com/sphinx-doc/sphinx/issues/7421 'c_funcptr_sig_re' was removed upstream in sphinx v3.0.0b1 and so the ke

Re: [RFC-PATCH 1/2] mm: Add __GFP_NO_LOCKS flag

2020-08-12 Thread Thomas Gleixner
Paul, "Paul E. McKenney" writes: > On Wed, Aug 12, 2020 at 02:13:25AM +0200, Thomas Gleixner wrote: >> That much I understood, but I somehow failed to figure the why out >> despite the elaborate changelog. 2 weeks of 30+C seem to have cooked my >> brain :) > > Ouch!!! And what on earth is German

Re: [PATCH drm/hisilicon v3 0/2] hibmc clean up and code refactoring

2020-08-12 Thread Thomas Zimmermann
Merged into drm-misc-next Am 12.08.20 um 09:42 schrieb Tian Tao: > patch #1 and #3 is clean up, patch #2 is for code refactoring > > Changes since v1: > - Rewrite the commits messages and patch name in #1 > - Rewrite the commits message in #2. > - Add the new patch #3 > > Changes since v2: > - m

[PATCH 1/6] drm: Add connector atomic_begin/atomic_flush

2020-08-12 Thread Algea Cao
In some situations, connector should get some work done when plane is updating. Such as when change output color format, hdmi should send AVMUTE to make screen black before crtc updating color format, or screen may flash. After color updating, hdmi should clear AVMUTE bring screen back to normal.

Re: [RFC V2] kthread: add object debug support

2020-08-12 Thread Stephen Boyd
Quoting Qianli Zhao (2020-08-11 22:14:14) > @@ -115,7 +125,7 @@ struct kthread_delayed_work { > } > > #define KTHREAD_WORK_INIT(work, fn){ \ > - .node = LIST_HEAD_INIT((work).node),\ > + .node = { .next = KWORK_ENT

Re: [PATCH] locking/rwsem: remove redundant semicolon of down_write_nest_lock

2020-08-12 Thread Christian König
Am 12.08.20 um 10:10 schrieb pet...@infradead.org: On Tue, Aug 11, 2020 at 01:18:52PM +0200, Christian König wrote: From: Guchun Chen Otherwise, braces are needed when using it. Signed-off-by: Guchun Chen Reviewed-by: Christian König Thanks! Do you pick it up or can I push it through drm

[PATCH 6/6] drm: bridge: dw-hdmi: Get output bus format when dw-hdmi is the only bridge

2020-08-12 Thread Algea Cao
If plat_data->get_output_bus_format() is exist, we can use it to get hdmi output bus format when dw-hdmi is the only bridge. The hdmi output bus format can be set by vendor properties. Signed-off-by: Algea Cao --- drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 8 +++- 1 file changed, 7 inserti

Re: file metadata via fs API (was: [GIT PULL] Filesystem Information)

2020-08-12 Thread Miklos Szeredi
On Wed, Aug 12, 2020 at 10:29 AM David Howells wrote: > > Miklos Szeredi wrote: > > > Worried about performance? Io-uring will allow you to do all those > > five syscalls (or many more) with just one I/O submission. > > io_uring isn't going to help here. We're talking about synchronous reads. >

[PATCH] libnvdimm: KASAN: global-out-of-bounds Read in internal_create_group

2020-08-12 Thread qiang.zhang
From: Zqiang Because the last member of the "nvdimm_firmware_attributes" array was not assigned a null ptr, when traversal of "group" array is out of bounds in "internal_create_groups" func. internal_create_groups: ->for (i = 0; groups[i]; i++) ->... BUG: KASAN: global-o

Re: [PATCH 2/2] mm: proc: smaps_rollup: do not stall write attempts on mmap_lock

2020-08-12 Thread Steven Price
On 11/08/2020 05:42, Chinwen Chang wrote: smaps_rollup will try to grab mmap_lock and go through the whole vma list until it finishes the iterating. When encountering large processes, the mmap_lock will be held for a longer time, which may block other write requests like mmap and munmap from prog

[PATCH 4/6] drm/rockchip: dw_hdmi: Add vendor hdmi properties

2020-08-12 Thread Algea Cao
Introduce struct dw_hdmi_property_ops in plat_data to support vendor hdmi property. Implement hdmi vendor properties color_depth_property and hdmi_output_property to config hdmi output color depth and color format. The property "hdmi_output_format", the possible value could be: - RGB

Re: [PATCH v8 0/3] drm: Add support for Cadence MHDP DPI/DP bridge and J721E wrapper.

2020-08-12 Thread Guido Günther
Hi, On Thu, Aug 06, 2020 at 01:34:29PM +0200, Swapnil Jakhade wrote: > This patch series adds new DRM bridge driver for Cadence MHDP DPI/DP > bridge. The Cadence Display Port IP is also referred as MHDP (Mobile High > Definition Link, High-Definition Multimedia Interface, Display Port). > Cadence D

[PATCH 3/6] drm: bridge: dw-hdmi: Introduce previous_pixelclock/previous_tmdsclock

2020-08-12 Thread Algea Cao
Introduce previous_pixelclock/previous_tmdsclock to determine whether PHY needs initialization. If phy is power off, or mpixelclock/mtmdsclock is different to previous value, phy is neet to be reinitialized. Signed-off-by: Algea Cao --- drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 50 +++

Re: [PATCH 00/33] Add driver for HiSilicon SPMI PMIC for Hikey 970

2020-08-12 Thread Jonathan Cameron
On Wed, 12 Aug 2020 09:45:40 +0200 Mauro Carvalho Chehab wrote: > > > > > > menus in order to enable them. > > > We communicate with the Hi6421 via memory-mapped I/O. > > > > > > +config MFD_HI6421_SPMI > > > + tristate "HiSilicon Hi6421v600 SPMI PMU/Codec IC" > > > + depends

[PATCH 5/6] drm/rockchip: dw_hdmi: Add get_output_bus_format

2020-08-12 Thread Algea Cao
Add get_output_bus_format in dw_hdmi_plat_data to get hdmi output bus format. The output bus format is determined by color format and depth, which can be set by rockchip hdmi properties. Signed-off-by: Algea Cao --- drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c | 47 + include

[PATCH 2/6] drm: bridge: dw-hdmi: Implement connector atomic_begin/atomic_flush

2020-08-12 Thread Algea Cao
Introduce dw_hdmi_connector_atomic_begin() and dw_hdmi_connector_atomic_flush() to implement connector atomic_begin/atomic_flush. When enc_out_bus_format or enc_in_bus_format changed, dw_hdmi_setup is called. To avoid screen flash when updating bus format, it's need to send AVMUTE flag to make scr

Re: [PATCHv7] drivers: optee: allow op-tee to access devices on the i2c bus

2020-08-12 Thread Jens Wiklander
On Tue, Aug 11, 2020 at 07:55:31PM +0200, Jorge Ramirez-Ortiz wrote: > Some secure elements like NXP's SE050 sit on I2C buses. For OP-TEE to > control this type of cryptographic devices it needs coordinated access > to the bus, so collisions and RUNTIME_PM dont get in the way. > > This trampoline

Re: [PATCH] arm64: dts: renesas: r8a774b1-hihope-rzg2n-ex: Enable sata

2020-08-12 Thread Geert Uytterhoeven
On Mon, Aug 10, 2020 at 7:12 PM Lad Prabhakar wrote: > Enable sata interface on HiHope RZ/G2N board. > > Signed-off-by: Lad Prabhakar > Reviewed-by: Biju Das Reviewed-by: Geert Uytterhoeven i.e. will queue in renesas-devel for v5.10. Gr{oetje,eeting}s, Geert -- Geer

[PATCH] rtc: pcf2127: fix alarm handling

2020-08-12 Thread Alexandre Belloni
Fix multiple issues when handling alarms: - Use threaded interrupt to avoid scheduling when atomic - Stop matching on week day as it may not be set correctly - Avoid parsing the DT interrupt and use what is provided by the i2c or spi subsystem - Avoid returning IRQ_NONE in case of error in t

Re: [PATCH 1/2] dt-bindings: PCI: rcar: Add device tree support for r8a7742

2020-08-12 Thread Geert Uytterhoeven
On Mon, Aug 10, 2020 at 7:42 PM Lad Prabhakar wrote: > Add support for r8a7742. The Renesas RZ/G1H (R8A7742) PCIe controller > is identical to the R-Car Gen2 family. > > Signed-off-by: Lad Prabhakar > Reviewed-by: Chris Paterson Reviewed-by: Geert Uytterhoeven Gr{oetje,eeting}s,

RE: [PATCH v4 1/4] fpga: dfl: change data type of feature id to u16

2020-08-12 Thread David Laight
From: Moritz Fischer > Sent: 12 August 2020 04:56 > > On Mon, Aug 10, 2020 at 10:41:10AM +0800, Xu Yilun wrote: > > The feature id is stored in a 12 bit field in DFH. So a u16 variable is > > enough for feature id. > > > > This patch changes all feature id related places to fit u16. How much bigg

Re: [RFC PATCH 0/3] opp: required_opps: Power on genpd, scale down in reverse order

2020-08-12 Thread Ulf Hansson
On Thu, 30 Jul 2020 at 10:02, Stephan Gerhold wrote: > > I'm trying to get CPR (Core Power Reduction, AVS) working for MSM8916 on > mainline. > Shortly said there are two power domains that must be scaled with the CPU OPP > table: > > - (VDD)MX > - CPR > > My idea for this was to add both as

[PATCH v2] libnvdimm: KASAN: global-out-of-bounds Read in internal_create_group

2020-08-12 Thread qiang.zhang
From: Zqiang Because the last member of the "nvdimm_firmware_attributes" array was not assigned a null ptr, when traversal of "grp->attrs" array is out of bounds in "create_files" func. func: create_files: ->for (i = 0, attr = grp->attrs; *attr && !error; i++, attr++)

[PATCH V2 5/5] dt-bindings: serial: Convert NXP lpuart to json-schema

2020-08-12 Thread Anson Huang
Convert the NXP lpuart binding to DT schema format using json-schema. Signed-off-by: Anson Huang --- no change. --- .../devicetree/bindings/serial/fsl-lpuart.txt | 43 .../devicetree/bindings/serial/fsl-lpuart.yaml | 79 ++ 2 files changed, 79 insertions

[PATCH V2 1/5] dt-bindings: clock: Update i.MX28 example

2020-08-12 Thread Anson Huang
Update the i.MX28 clock example to align with MXS AUART binding doc to avoid below build error: Documentation/devicetree/bindings/clock/imx28-clock.example.dt.yaml: serial@8006a000: clocks: [[4294967295, 45]] is too short Documentation/devicetree/bindings/clock/imx28-clock.example.dt.yaml: ser

[PATCH V2 3/5] dt-bindings: serial: Convert i.MX uart to json-schema

2020-08-12 Thread Anson Huang
Convert the i.MX uart binding to DT schema format using json-schema. Signed-off-by: Anson Huang --- no change. --- .../devicetree/bindings/serial/fsl-imx-uart.txt| 40 -- .../devicetree/bindings/serial/fsl-imx-uart.yaml | 92 ++ 2 files changed, 92 insertions(+)

[PATCH V2 4/5] dt-bindings: serial: Convert MXS auart to json-schema

2020-08-12 Thread Anson Huang
Convert the MXS auart binding to DT schema format using json-schema. Signed-off-by: Anson Huang --- changes since V1: - update examples to align with i.MX23/i.MX28 clock bindings; - add minItem to clocks/clock-names property as i.MX23/i.MX28 have optional clocks propert

[PATCH V2 2/5] dt-bindings: clock: Update i.MX23 example

2020-08-12 Thread Anson Huang
Update the i.MX23 clock example to align with MXS AUART binding doc to avoid below build error: Documentation/devicetree/bindings/clock/imx23-clock.example.dt.yaml: serial@8006c000: clocks: [[4294967295, 32]] is too short Documentation/devicetree/bindings/clock/imx23-clock.example.dt.yaml: s

Re: [PATCH v2] module: Harden STRICT_MODULE_RWX

2020-08-12 Thread Ard Biesheuvel
On Tue, 11 Aug 2020 at 18:01, Jessica Yu wrote: > > +++ Mauro Carvalho Chehab [11/08/20 17:27 +0200]: > >Em Tue, 11 Aug 2020 16:55:24 +0200 > >pet...@infradead.org escreveu: > > > >> On Tue, Aug 11, 2020 at 04:34:27PM +0200, Mauro Carvalho Chehab wrote: > >> > [33] .plt PROGBITS

Re: [PATCH] x86/paravirt: Add missing noinstr to arch_local*() helpers

2020-08-12 Thread peterz
On Wed, Aug 12, 2020 at 10:18:32AM +0200, pet...@infradead.org wrote: > > trace_hardirqs_restore+0x59/0x80 kernel/trace/trace_preemptirq.c:106 > > rcu_irq_enter_irqson+0x43/0x70 kernel/rcu/tree.c:1074 > > trace_irq_enable_rcuidle+0x87/0x120 > > include/trace/events/preemptirq.h:40 >

Re: [Linux-kernel-mentees] [PATCH] hfs, hfsplus: Fix NULL pointer dereference in hfs_find_init()

2020-08-12 Thread Dan Carpenter
Yeah, the patch doesn't work at all. I looked at one call tree and it is: hfs_mdb_get() tries to allocate HFS_SB(sb)->ext_tree. HFS_SB(sb)->ext_tree = hfs_btree_open(sb, HFS_EXT_CNID, hfs_ext_keycmp); hfs_btree_open() calls page = read_mapping_page(mapping,

Re: [PATCH v2] arm64: defconfig: Enable R-Car PCIe endpoint driver

2020-08-12 Thread Geert Uytterhoeven
Hi Prabhakar, CC PCI endpoint people On Tue, Aug 11, 2020 at 4:04 PM Lad Prabhakar wrote: > Enable R-Car PCIe endpoint driver on RZ/G2E board, including enabling > endpoint configurations CONFIG_PCI_ENDPOINT, CONFIG_PCI_ENDPOINT_CONFIGFS, > CONFIG_PCI_EPF_TEST and CONFIG_PCI_ENDPOINT_TEST requir

Re: [PATCH v11 1/2] usb: dwc3: qcom: Add interconnect support in dwc3 driver

2020-08-12 Thread Sandeep Maheswaram (Temp)
Hi On 8/12/2020 12:27 PM, Felipe Balbi wrote: "Sandeep Maheswaram (Temp)" writes: Hi Felipe, On 7/28/2020 12:50 AM, Matthias Kaehlcke wrote: On Mon, Jul 27, 2020 at 10:36:36PM +0530, Sandeep Maheswaram wrote: Add interconnect support in dwc3-qcom driver to vote for bus bandwidth. This req

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

2020-08-12 Thread Ulf Hansson
On Mon, 27 Jul 2020 at 11:31, Stephan Gerhold wrote: > > The OPP core manages various resources, e.g. clocks or interconnect paths. > These resources are looked up when the OPP table is allocated once > dev_pm_opp_get_opp_table() is called the first time (either directly > or indirectly through on

Re: [PATCH 2/2] ARM: dts: r8a7742: Add PCIe Controller device node

2020-08-12 Thread Geert Uytterhoeven
On Mon, Aug 10, 2020 at 7:42 PM Lad Prabhakar wrote: > Add a device node for the PCIe controller on the Renesas > RZ/G1H (r8a7742) SoC. > > Signed-off-by: Lad Prabhakar > Reviewed-by: Chris Paterson Reviewed-by: Geert Uytterhoeven i.e. will queue in renesas-devel for v5.10. Gr{oetje,eeting}s,

Re: [RFC][PATCH] tty: serial: qcom_geni_serial: Drop __init from qcom_geni_console_setup

2020-08-12 Thread Jiri Slaby
On 11. 08. 20, 22:02, John Stultz wrote: > On Tue, Aug 11, 2020 at 10:00 AM Saravana Kannan wrote: >> >> On Mon, Aug 10, 2020 at 7:50 PM John Stultz wrote: >>> >>> When booting with heavily modularized config, the serial console >>> may not be able to load until after init when modules that >>> s

[tip: irq/urgent] genirq/PM: Always unlock IRQ descriptor in rearm_wake_irq()

2020-08-12 Thread tip-bot2 for Guenter Roeck
The following commit has been merged into the irq/urgent branch of tip: Commit-ID: e27b1636e9337d1a1d174b191e53d0f86421a822 Gitweb: https://git.kernel.org/tip/e27b1636e9337d1a1d174b191e53d0f86421a822 Author:Guenter Roeck AuthorDate:Tue, 11 Aug 2020 11:00:01 -07:00 Committe

Re: [PATCH v5 3/6] ov5670: Support probe whilst the device is in a low power state

2020-08-12 Thread Bingbu Cao
On 8/10/20 10:27 PM, Sakari Ailus wrote: > Tell ACPI device PM code that the driver supports the device being in a > low power state when the driver's probe function is entered. > > Signed-off-by: Sakari Ailus > --- > drivers/media/i2c/ov5670.c | 23 ++- > 1 file changed,

RE: [PATCH] net: untag pointer in sockptr_is_kernel

2020-08-12 Thread Miles Chen
On Tue, 2020-08-11 at 11:44 +, David Laight wrote: > > On Tue, Aug 11, 2020 at 06:27:04PM +0800, Miles Chen wrote: > > > From: Miles Chen > > > > > > sockptr_is_kernel() uses (sockptr.kernel >= TASK_SIZE) to tell > > > if the pointer is kernel space or user space. When user space uses > > > th

  1   2   3   4   5   6   7   8   9   10   >