[PATCH v2 2/5] drm/panel: lvds: Set up panel orientation

2020-06-14 Thread Dmitry Osipenko
The panel orientation needs to parsed from a device-tree and assigned to the panel's connector in order to make orientation property available to userspace. That's what this patch does for the generic LVDS panel. Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/panel/panel-lvds.c | 8

[PATCH v2 3/5] drm/tegra: plane: Rename bottom_up to reflect_y

2020-06-14 Thread Dmitry Osipenko
This makes the naming consistent with the DRM core. Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/tegra/dc.c| 10 +- drivers/gpu/drm/tegra/dc.h| 2 +- drivers/gpu/drm/tegra/plane.c | 2 +- drivers/gpu/drm/tegra/plane.h | 2 +- 4 files changed, 8 insertions(+), 8 deletions

Re: [PATCH] coccinelle: api: add kzfree script

2020-06-14 Thread Joe Perches
On Sun, 2020-06-14 at 22:42 +0300, Denis Efremov wrote: > On 6/4/20 7:27 PM, Joe Perches wrote: > > On Thu, 2020-06-04 at 17:08 +0300, Denis Efremov wrote: > > > Check for memset() with 0 followed by kfree(). > > > > Perhaps those uses should be memzero_explicit or kvfree_sensitive. > > > Is it s

[PATCH v2 0/5] 180 degrees rotation support for NVIDIA Tegra DRM

2020-06-14 Thread Dmitry Osipenko
Hello! This series adds 180° display plane rotation support to the NVIDIA Tegra DRM driver which is needed for devices that have display panel physically mounted upside-down, like Nexus 7 tablet device for example [1]. Since DRM panel rotation is a new thing for a userspace, currently only Openteg

[PATCH v2 0/2] media: Add colors' order over test image

2020-06-14 Thread Kaaira Gupta
This patchset aims to add a method to display the correct order of colors for a test image generated. It does so by adding a function which returns a string of correct order of the colors for a test pattern and a control using which displays the string over test image. Changes since v1: -

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

2020-06-14 Thread Kaaira Gupta
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 | 2 ++ drivers/media/test-drivers/vimc/vimc-common.h | 1 +

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

2020-06-14 Thread Kaaira Gupta
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 have a well defined colors' order. Hence add a NULL check for

[PATCH] doc:it_IT: add symbol-namespace translation

2020-06-14 Thread Federico Vaga
- add complete translation of symbol-namespaces.rst - fix references to this page within the italian translation - add document to main indexes Signed-off-by: Federico Vaga --- .../translations/it_IT/core-api/index.rst | 18 ++ .../it_IT/core-api/symbol-namespaces.rst | 166 +++

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

2020-06-14 Thread David Howells
Alexander A. Klimov wrote: > *Is it a good idea to rename files in include/uapi/ ?* Very likely not. If programs out there are going to be built on a case-sensitive filesystem (which happens all the time), they're going to break if you rename the headers. We're kind of stuck with them. David

[PATCH 1/3] dt-bindings: sound: Document wm8994 endpoints

2020-06-14 Thread Jonathan Bakker
The wm8994 exposes several inputs and outputs that can be used by machine drivers in their routing. Add them to the documention so they don't have been duplicated in any machine drivers bindings. Signed-off-by: Jonathan Bakker --- .../devicetree/bindings/sound/wm8994.txt | 23 +

[PATCH 3/3] ASoC: samsung: Add driver for Aries boards

2020-06-14 Thread Jonathan Bakker
Samsung Aries boards have a WM8994 codec connected to the Samsung I2S controller, the BT codec, and the cellular modem. Jack detection is done by a combination of an ADC, GPIOs, and an extcon device for the USB dock. There is also a GPIO for selection between the Mic path and the TV out path on t

[PATCH 2/3] dt-bindings: sound: Add bindings for Samsung Aries audio complex

2020-06-14 Thread Jonathan Bakker
The audio system on S5PV210 Aries boards have a wm8994 codec connected to the Samsung I2S0 DAI. Jack detection is done via GPIOs, an ADC, and an extcon device (fsa9480). There are two main variants, one with an FM radio and where the wm8994 is the master for the modem audio and the other without

[PATCH 0/3] ASoC: samsung: Add machine driver for Aries boards

2020-06-14 Thread Jonathan Bakker
This is a machine driver for Aries boards which are based on Samsung's S5PV210 platform. These are the first-gen Galaxy S devices. It consists of a WM8994 codec connected to I2S0 along with two codec-to-codec links to the modem and the bluetooth. -

Re: [PATCH v2] media: budget-core: Improve exception handling in budget_register()

2020-06-14 Thread Sean Young
On Sat, Jun 06, 2020 at 12:17:28AM +0800, Chuhong Yuan wrote: > budget_register() has no error handling after its failure. > Add the missed undo functions for error handling to fix it. > > Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Changes look good, but the Fixes: points to the first import of lin

Re: [PATCH v3 06/13] iio: imu: inv_icm42600: add temperature sensor support

2020-06-14 Thread Jean-Baptiste Maneyrol
Hello Lars, for the temperature data, the problem is that temperature in the FIFO (used in buffer) is not in the same format than when reading the register. Reading the temperature register return a full precision value on 16 bits. I am using a PROCESSED attribute for it. Temperature data in bu

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

2020-06-14 Thread Stefano Brivio
On Sun, 14 Jun 2020 21:41:17 +0200 "Alexander A. Klimov" wrote: > Hello there! > > At the moment one can't checkout a clean working directory w/o any > changed files on a case-insensitive FS as the following file names have > lower-case duplicates: They are not duplicates: matching extensions

Re: [PATCH] drm/mediatek: remove unnecessary conversion to bool

2020-06-14 Thread Joe Perches
On Fri, 2020-06-12 at 20:40 +0800, Bernard Zhao wrote: > In function mtk_dsi_clk_hs_state, remove unnecessary conversion > to bool return, this change is to make the code a bit readable. [] > diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c > b/drivers/gpu/drm/mediatek/mtk_dsi.c [] > @@ -319,7 +319

Linux 5.8-rc1

2020-06-14 Thread Linus Torvalds
So I didn't really expect this, but 5.8 looks to be one of our biggest releases of all time. As of -rc1, it's right up there with v4.9, which has long been our biggest release by quite a bit in number of commits. Yes, 5.8-rc1 has a couple fewer commits than 4.9-rc1 did, but in many ways it's a muc

[PATCH net] net: dsa: sja1105: fix PTP timestamping with large tc-taprio cycles

2020-06-14 Thread Vladimir Oltean
From: Vladimir Oltean It isn't actually described clearly at all in UM10944.pdf, but on TX of a management frame (such as PTP), this needs to happen: - The destination MAC address (i.e. 01-80-c2-00-00-0e), along with the desired destination port, need to be installed in one of the 4 manageme

[PATCH 0/2] i2c-hid: Save power by reducing i2c xfers with block reads

2020-06-14 Thread Sultan Alsawaf
From: Sultan Alsawaf Hi, I noticed on my Dell Precision 15 5540 with an i9-9880H that simply putting my finger on the touchpad would increase my system's power consumption by 4W, which is quite considerable. Resting my finger on the touchpad would generate roughly 4000 i2c irqs per second, or ro

[PATCH 2/2] HID: i2c-hid: Use block reads when possible to save power

2020-06-14 Thread Sultan Alsawaf
From: Sultan Alsawaf We have no way of knowing how large an incoming payload is going to be, so the only strategy available up until now has been to always retrieve the maximum possible report length over i2c, which can be quite inefficient. For devices that send reports in block read format, the

[PATCH 1/2] i2c: designware: Only check the first byte for SMBus block read length

2020-06-14 Thread Sultan Alsawaf
From: Sultan Alsawaf SMBus block reads can be broken because the read function will just skip over bytes it doesn't like until reaching a byte that conforms to the length restrictions for block reads. This is problematic when it isn't known if the incoming payload is indeed a conforming block rea

Re: [PATCH 1/3] thermal/cpu-cooling, sched/core: Cleanup thermal pressure definition

2020-06-14 Thread Valentin Schneider
, please see > https://stackoverflow.com/a/37406982] > > url: > https://github.com/0day-ci/linux/commits/Valentin-Schneider/sched-arch_topology-Thermal-pressure-configuration-cleanup/20200614-091051 > base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git > 8dc697

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

2020-06-14 Thread Jan Engelhardt
On Sunday 2020-06-14 22:19, David Howells wrote: >Alexander A. Klimov wrote: > >> *Is it a good idea to rename files in include/uapi/ ?* > >Very likely not. If programs out there are going to be built on a >case-sensitive filesystem (which happens all the time), they're going to break >if you r

Re: [PATCH v3 0/2] Recommend blocklist/allowlist instead of blacklist/whitelist

2020-06-14 Thread Pavel Machek
On Wed 2020-06-10 08:52:21, SeongJae Park wrote: > From: SeongJae Park > > This patchset 1) adds support of deprecated terms in the 'checkpatch.pl' > and 2) set the 'blacklist' and 'whitelist' as deprecated with > replacement suggestion of 'blocklist' and 'allowlist', because the > suggestions ar

Re: [RFC,net-next, 2/5] vrf: track associations between VRF devices and tables

2020-06-14 Thread Andrea Mayer
On Sat, 13 Jun 2020 18:34:25 -0600 David Ahern wrote: > On 6/13/20 4:53 PM, Andrea Mayer wrote: > > Hi Stephen, > > thanks for your questions. > > > > On Sat, 13 Jun 2020 12:28:59 -0700 > > Stephen Hemminger wrote: > > > >>> + > >>> + * Conversely, shared_table is decreased when a vrf is de-a

Re: [PATCH v4 0/2] Recommend denylist/allowlist instead of blacklist/whitelist

2020-06-14 Thread Pavel Machek
On Sat 2020-06-13 00:40:59, Michael Ellerman wrote: > Jiri Slaby writes: > > On 11. 06. 20, 9:38, SeongJae Park wrote: > >> On Wed, 10 Jun 2020 23:35:24 -0700 Joe Perches wrote: > >>> On Thu, 2020-06-11 at 08:25 +0200, SeongJae Park wrote: > From: SeongJae Park > > This patchset 1

Re: [PATCH] drivers/hwmon/nct6683: Use kobj_to_dev() instead

2020-06-14 Thread Guenter Roeck
On Sat, Jun 13, 2020 at 04:06:44PM +0800, Wang Qing wrote: > Use kobj_to_dev() instead of container_of() > > Signed-off-by: Wang Qing Applied. For future patches, I would suggest to look up subject labels used in affected subsystems. Thanks, Guenter > --- > drivers/hwmon/nct6683.c | 8 ---

[PATCH v3] coccinelle: api: add kzfree script

2020-06-14 Thread Denis Efremov
Check for memset()/memzero_explicit() followed by kfree()/vfree()/kvfree(). Signed-off-by: Denis Efremov --- Changes in v2: - memset_explicit() added - kvfree_sensitive() added - forall added to r1 - ... between memset and kfree added Changes in v3: - Explicit filter for definitions instead

Re: [RFC,net-next, 1/5] l3mdev: add infrastructure for table to VRF mapping

2020-06-14 Thread Andrea Mayer
On Sat, 13 Jun 2020 18:37:09 -0600 David Ahern wrote: > On 6/12/20 10:49 AM, Andrea Mayer wrote: > > @@ -37,6 +45,15 @@ struct l3mdev_ops { > > > > #ifdef CONFIG_NET_L3_MASTER_DEV > > > > +int l3mdev_table_lookup_register(enum l3mdev_type l3type, > > +int (*fn)(st

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

2020-06-14 Thread Pablo Neira Ayuso
On Sun, Jun 14, 2020 at 11:08:08PM +0200, Jan Engelhardt wrote: > > On Sunday 2020-06-14 22:19, David Howells wrote: > >Alexander A. Klimov wrote: > > > >> *Is it a good idea to rename files in include/uapi/ ?* > > > >Very likely not. If programs out there are going to be built on a > >case-sens

linux-next: Signed-off-by missing for commit in the hwmon-staging tree

2020-06-14 Thread Stephen Rothwell
Hi all, Commit 3c1c958a118e ("hwmon: (adm1275) Enable adm1278 ADM1278_TEMP1_EN") is missing a Signed-off-by from its author. -- Cheers, Stephen Rothwell pgpuJZpIZcY11.pgp Description: OpenPGP digital signature

Re: [RFC v2] hwmon: add Corsair Commander Pro driver

2020-06-14 Thread Guenter Roeck
On 6/12/20 6:29 AM, Marius Zachmann wrote: > This is a driver for the Corsair Commander Pro. > It provides sysfs attributes for: > - Reading fan speed > - Reading temp sensors > - Reading voltage values > - Writing pwm and reading last written pwm > > Changed it to a USB driver for a couple of rea

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

2020-06-14 Thread Al Viro
On Sun, Jun 14, 2020 at 09:41:17PM +0200, Alexander A. Klimov wrote: > Hello there! > > At the moment one can't checkout a clean working directory w/o any changed > files on a case-insensitive FS as the following file names have lower-case > duplicates: And if you use a filesystem that is limited

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

2020-06-14 Thread Alexander A. Klimov
Am 14.06.20 um 22:34 schrieb Stefano Brivio: On Sun, 14 Jun 2020 21:41:17 +0200 "Alexander A. Klimov" wrote: Hello there! At the moment one can't checkout a clean working directory w/o any changed files on a case-insensitive FS as the following file names have lower-case duplicates: They

Re: [PATCH] cgroup: Refactor two assignments in css_task_iter_next_css_set()

2020-06-14 Thread zzuedu2000
On Sun, 2020-06-14 at 18:10 +0800, James.Bottomley@xxx wrote: > it's arguable that having two statements instead of one makes the code > marginally more readable. Above the function there is a similar line of code: l = it->tcset_pos->next; One line of code makes the code style consistent and

Re: [PATCH v9 0/5] Add MMC software queue support

2020-06-14 Thread Baolin Wang
On Sun, Jun 14, 2020 at 11:05 PM Baolin Wang wrote: > > On Wed, Jun 10, 2020 at 10:26 AM BOUGH CHEN wrote: > > > > > -Original Message- > > > From: Baolin Wang [mailto:baolin.wa...@gmail.com] > > > Sent: 2020年6月8日 19:54 > > > To: BOUGH CHEN > > > Cc: Ulf Hansson ; Adrian Hunter > > > ; A

Re: [PATCH] scsi: target/sbp: remove firewire SBP target driver

2020-06-14 Thread Finn Thain
On Sun, 14 Jun 2020, Chris Boot wrote: > I expect that if someone finds this useful it can stick around (but > that's not my call). Who's call is that? If the patch had said "From: Martin K. Petersen" and "This driver is being removed because it has the following defects..." that would be some

[PATCH v2] powerpc/powernv/pci: use ifdef to avoid dead code

2020-06-14 Thread Greg Thelen
Commit dc3d8f85bb57 ("powerpc/powernv/pci: Re-work bus PE configuration") removed a couple pnv_ioda_setup_bus_dma() calls. The only remaining calls are behind CONFIG_IOMMU_API. Thus builds without CONFIG_IOMMU_API see: arch/powerpc/platforms/powernv/pci-ioda.c:1888:13: error: 'pnv_ioda_setup_b

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

2020-06-14 Thread Alexander A. Klimov
Am 14.06.20 um 23:08 schrieb Jan Engelhardt: On Sunday 2020-06-14 22:19, David Howells wrote: Alexander A. Klimov wrote: *Is it a good idea to rename files in include/uapi/ ?* Very likely not. If programs out there are going to be built on a case-sensitive filesystem (which happens all

[PATCH 0/4] Add initial support for RoseapplePi SBC

2020-06-14 Thread Cristian Ciocaltea
This patchset enables basic support for RoseapplePi, relying exclusively on the existing infrastructure for the Actions Semi Sxx SoCs (thank you Andreas and Manni for making this possible). The SBC is powered by the Actions Semi S500 SoC and comes with 2GB RAM, uSD slot and optional eMMC storage.

RE: [PATCH v3] x86/apic/flat64: Add back the early_param("apic", parse_apic)

2020-06-14 Thread Dexuan Cui
> From: Dexuan Cui > Sent: Sunday, May 31, 2020 9:49 AM > To: t...@linutronix.de; mi...@redhat.com; rdun...@infradead.org; > b...@alien8.de; h...@zytor.com; x...@kernel.org; pet...@infradead.org; > alli...@lohutok.net; alexios.zav...@intel.com; gre...@linuxfoundation.org; > Dexuan Cui ; na...@vmwa

RE: [PATCH 1/2] exfat: call sync_filesystem for read-only remount

2020-06-14 Thread Namjae Jeon
Hi Hyunchul, > We need to commit dirty metadata and pages to disk before remounting exfat as > read-only. > > This fixes a failure in xfstests generic/452 Could you please elaborate more the reason why generic/452 in xfstests failed ? > > Signed-off-by: Hyunchul Lee > --- > fs/exfat/super.c |

RE: [PATCH 2/2] exfat: allow to change some mount options for remount

2020-06-14 Thread Namjae Jeon
> Allow to change permission masks, allow_utime, errors. But ignore other > options. > > Signed-off-by: Hyunchul Lee > --- > fs/exfat/super.c | 40 +--- > 1 file changed, 29 insertions(+), 11 deletions(-) > > diff --git a/fs/exfat/super.c b/fs/exfat/super.c

Re: linux-next: Signed-off-by missing for commit in the hwmon-staging tree

2020-06-14 Thread Guenter Roeck
On 6/14/20 3:08 PM, Stephen Rothwell wrote: > Hi all, > > Commit > > 3c1c958a118e ("hwmon: (adm1275) Enable adm1278 ADM1278_TEMP1_EN") > > is missing a Signed-off-by from its author. > Uuh, yes, I completely missed that. I'll drop the patch until/unless I get a signed version. Thanks for not

[PATCH 1/4] arm: dts: owl-s500: Fix incorrect PPI interrupt specifiers

2020-06-14 Thread Cristian Ciocaltea
The PPI interrupts for cortex-a9 were incorrectly specified, fix them. Fixes: fdfe7f4f9d85 ("ARM: dts: Add Actions Semi S500 and LeMaker Guitar") Signed-off-by: Cristian Ciocaltea --- arch/arm/boot/dts/owl-s500.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/a

[PATCH 4/4] arm: dts: owl-s500: Add RoseapplePi

2020-06-14 Thread Cristian Ciocaltea
Add a Device Tree for the RoseapplePi SBC. Signed-off-by: Cristian Ciocaltea --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/owl-s500-roseapplepi.dts | 47 ++ 2 files changed, 48 insertions(+) create mode 100644 arch/arm/boot/dts/owl-s500-roseapplepi

[PATCH 2/4] dt-bindings: Add vendor prefix for RoseapplePi.org

2020-06-14 Thread Cristian Ciocaltea
Add devicetree vendor prefix for RoseapplePi.org Foundation. Website: http://roseapplepi.org/ Signed-off-by: Cristian Ciocaltea --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml

[PATCH 3/4] dt-bindings: arm: actions: Document RoseapplePi

2020-06-14 Thread Cristian Ciocaltea
Define compatible strings for RoseapplePi, a SBC manufactured in Taiwan, based on Actions Semi S500 reference design. Signed-off-by: Cristian Ciocaltea --- Documentation/devicetree/bindings/arm/actions.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm

Re: [PATCH] drm/exynos: fix ref count leak in mic_pre_enable

2020-06-14 Thread Inki Dae
Hi, 20. 6. 14. 오후 3:23에 Navid Emamdoost 이(가) 쓴 글: > in mic_pre_enable, pm_runtime_get_sync is called which > increments the counter even in case of failure, leading to incorrect > ref count. In case of failure, decrement the ref count before returning. > > Signed-off-by: Navid Emamdoost > --- >

Re: [RFC 2/4] regulator: lp87565: dt: remove duplicated section

2020-06-14 Thread J, KEERTHY
On 6/15/2020 1:30 AM, Luca Ceresoli wrote: Hi Rob, Keerthy, On 13/06/20 00:19, Rob Herring wrote: On Wed, Jun 03, 2020 at 10:03:17PM +0200, Luca Ceresoli wrote: The "Required properties:" section is copied verbatim for each of the two supported chips. In preparation to add a new chip varian

[PATCH] mm/cma: fix NULL pointer dereference when cma could not be activated

2020-06-14 Thread Jianqun Xu
In some case the cma area could not be activated, but the cma_alloc be used under this case, then the kernel will crash caused by NULL pointer dereference. Add bitmap valid check in cma_alloc to avoid this issue. Signed-off-by: Jianqun Xu --- mm/cma.c | 2 +- 1 file changed, 1 insertion(+), 1 d

Re: [PATCH] cgroup: Refactor two assignments in css_task_iter_next_css_set()

2020-06-14 Thread Zefan Li
On 2020/6/15 7:22, zzuedu2...@163.com wrote: > On Sun, 2020-06-14 at 18:10 +0800, James.Bottomley@xxx wrote: > >> it's arguable that having two statements instead of one makes the code >> marginally more readable. > > Above the function there is a similar line of code: > l = it->tcset_pos->ne

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

2020-06-14 Thread Zheng Bin
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, goto clunk clunk_fid: v9fs_session_close if (v

Re: [PATCH] powerpc/fsl_booke/32: fix build with CONFIG_RANDOMIZE_BASE

2020-06-14 Thread Jason Yan
在 2020/6/14 0:28, Arseny Solokha 写道: Building the current 5.8 kernel for a e500 machine with CONFIG_RANDOMIZE_BASE set yields the following failure: arch/powerpc/mm/nohash/kaslr_booke.c: In function 'kaslr_early_init': arch/powerpc/mm/nohash/kaslr_booke.c:387:2: error: implicit declarati

Re: [PATCH v2 1/3] mfd: core: Make a best effort attempt to match devices with the correct of_nodes

2020-06-14 Thread Frank Rowand
Hi Lee, I'm looking at 5.8-rc1. The only use of OF_MFD_CELL() where the same compatible is specified for multiple elements of a struct mfd_cell array is for compatible "stericsson,ab8500-pwm" in drivers/mfd/ab8500-core.c: OF_MFD_CELL("ab8500-pwm", NULL, NULL, 0, 1, "s

RE: [PATCH v2 02/15] iommu: Report domain nesting info

2020-06-14 Thread Tian, Kevin
> From: Liu, Yi L > Sent: Friday, June 12, 2020 5:05 PM > > Hi Alex, > > > From: Alex Williamson > > Sent: Friday, June 12, 2020 3:30 AM > > > > On Thu, 11 Jun 2020 05:15:21 -0700 > > Liu Yi L wrote: > > > > > IOMMUs that support nesting translation needs report the capability > > > info to us

[PATCH next v3 2/2] perf tools: fix potential memleak in perf events parser

2020-06-14 Thread Chen Wandun
Fix potential memory leak. Function new_term may return error, so it is need to free memory when the return value is negative. What's more, add jump targets so that a configuration object and a duplicated string are released after a call of the function "strdup" or "new_term" failed. Fixes: b6645a

[PATCH next v3 1/2] perf tools: fix potential memleak in perf events parser

2020-06-14 Thread Chen Wandun
From: Cheng Jian Fix memory leak of in function parse_events_term__sym_hw() and parse_events_term__clone() when string duplication failed. Fixes: b6645a723595 ("perf parse: Ensure config and str in terms are unique") Signed-off-by: Cheng Jian Signed-off-by: Chen Wandun --- tools/perf/util/par

[PATCH next v3 0/2] fix potential memleak in perf events parser

2020-06-14 Thread Chen Wandun
fix some memleaks in parse_events_term__sym_hw and parse_events_term__clone. ls/perf v1 ==> v2 1. split into two patches 2. add jump targets common exception handling 3. add Fixes tag v2 ==> v3 add more commit log. Chen Wandun (1): perf tools: fix potential memleak in perf events parser Cheng

Re: [PATCH v2] powerpc/powernv/pci: use ifdef to avoid dead code

2020-06-14 Thread Oliver O'Halloran
On Mon, Jun 15, 2020 at 9:33 AM Greg Thelen wrote: > > Commit dc3d8f85bb57 ("powerpc/powernv/pci: Re-work bus PE > configuration") removed a couple pnv_ioda_setup_bus_dma() calls. The > only remaining calls are behind CONFIG_IOMMU_API. Thus builds without > CONFIG_IOMMU_API see: > arch/powerpc

Re: [PATCH v2] Staging: rtl8712: Addressed checkpatch.pl issues related to macro parameter wrapping in parentheses.

2020-06-14 Thread kernel test robot
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git af7b4801030c07637840191c69eb666917e4135d config: arm-randconfig-r025-20200614 (attached as .config) compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com

Re: [PATCH 2/2] usb: dwc3: Host wake up support from system suspend

2020-06-14 Thread Peter Chen
On 20-06-11 19:58:03, Sandeep Maheswaram wrote: > Avoiding phy powerdown in host mode so that it can be wake up by devices. > Set usb controller wakeup capable when wakeup capable devices are > connected to the host. > > Signed-off-by: Sandeep Maheswaram > --- > drivers/usb/dwc3/core.c | 47

linux-next: Tree for Jun 15

2020-06-14 Thread Stephen Rothwell
Hi all, Changes since 20200614: My fixes tree contains: 4cb4bfffe2c1 ("device_cgroup: Fix RCU list debugging warning") Non-merge commits (relative to Linus' tree): 735 684 files changed, 227582 insertions(+),

Re: [PATCH] [traceevent] add_new_comm(): Fix memory leak

2020-06-14 Thread Steven Rostedt
On Sun, 14 Jun 2020 14:14:53 -0400 Gaurav Singh wrote: > The pointer cmdlines need to be explicity freed in case the > realloc() fails. Fix it by adding a free() if realloc() > returns a NULL pointer. > > Signed-off-by: Gaurav Singh > --- > tools/lib/traceevent/event-parse.c | 7 --- > 1 f

linux-next: stats (Was: Linux 5.8-rc1)

2020-06-14 Thread Stephen Rothwell
Hi all, On Sun, 14 Jun 2020 13:44:07 -0700 Linus Torvalds wrote: > > So I didn't really expect this, but 5.8 looks to be one of our biggest > releases of all time. This was the second largest linux-next (and may have been the largest if June 1 had not been a pubic holiday here). As usual, the

Re: [PATCH 3/3] creds: convert cred.usage to refcount_t

2020-06-14 Thread Xiaoming Ni
On 2020/6/13 2:34, Kees Cook wrote: From: Elena Reshetova atomic_t variables are currently used to implement reference counters with the following properties: - counter is initialized to 1 using atomic_set() - a resource is freed upon counter reaching zero - once counter reaches zero, its

Re: [RFC PATCH 11/13] sched: migration changes for core scheduling

2020-06-14 Thread Li, Aubrey
On 2020/6/14 2:59, Vineeth Remanan Pillai wrote: > On Fri, Jun 12, 2020 at 10:25 PM Joel Fernandes > wrote: >> >> Ok, so I take it that you will make it so in v6 then, unless of course >> someone else objects. >> > Yes, just wanted to hear from Aubrey, Tim and others as well to see > if we have n

Re: [PATCH 0/3] Convert nsproxy, groups, and creds to refcount_t

2020-06-14 Thread Xiaoming Ni
On 2020/6/13 2:34, Kees Cook wrote: This series was never applied[1], and was recently pointed out as missing[2]. If someone has a tree for this, please take it. Otherwise, please Ack and I'll send it to Linus. Thanks! -Kees [1] https://lore.kernel.org/lkml/20190306110549.7628-1-elena.reshet.

Re: [PATCH 1/2] exfat: call sync_filesystem for read-only remount

2020-06-14 Thread Hyunchul Lee
Hi Namjae, 2020년 6월 15일 (월) 오전 9:14, Namjae Jeon 님이 작성: > > Hi Hyunchul, > > We need to commit dirty metadata and pages to disk before remounting exfat > > as read-only. > > > > This fixes a failure in xfstests generic/452 > Could you please elaborate more the reason why generic/452 in xfstests f

Re: [PATCH 2/2] exfat: allow to change some mount options for remount

2020-06-14 Thread Hyunchul Lee
2020년 6월 15일 (월) 오전 9:18, Namjae Jeon 님이 작성: > > > Allow to change permission masks, allow_utime, errors. But ignore other > > options. > > > > Signed-off-by: Hyunchul Lee > > --- > > fs/exfat/super.c | 40 +--- > > 1 file changed, 29 insertions(+), 11 deletio

Re: [PATCH 2/2] soc: mediatek: devapc: add devapc-mt6873 driver

2020-06-14 Thread Neal Liu
Hi Chun-Kuang, On Fri, 2020-06-12 at 23:27 +0800, Chun-Kuang Hu wrote: > Hi, Neal: > > Neal Liu 於 2020年6月12日 週五 上午11:04寫道: > > > > Hi Chun-Kuang, > > > > [snip] > > > > > > +/* > > > > > > + * devapc_violation_irq - the devapc Interrupt Service Routine > > > > > > (ISR) will dump > > > > > > +

Re: [PATCH v2 11/12] x86/mmu: Allocate/free PASID

2020-06-14 Thread Lu Baolu
Hi Fenghua, On 6/13/20 8:41 AM, Fenghua Yu wrote: A PASID is allocated for an "mm" the first time any thread attaches to an SVM capable device. Later device attachments (whether to the same device or another SVM device) will re-use the same PASID. The PASID is freed when the process exits (so n

Re: [PATCH v2] tools build: Check libasan and libubsan in Makefile.feature

2020-06-14 Thread Tiezhu Yang
On 06/03/2020 07:32 PM, Arnaldo Carvalho de Melo wrote: Em Wed, Jun 03, 2020 at 02:10:04PM +0800, Tiezhu Yang escreveu: When build perf with ASan or UBSan, if libasan or libubsan can not find, the feature-glibc is 0 and there exists the following error log which is wrong, because we can find gnu

RE: [PATCH v9 0/5] Add MMC software queue support

2020-06-14 Thread BOUGH CHEN
> -Original Message- > From: Baolin Wang [mailto:baolin.wa...@gmail.com] > Sent: 2020年6月15日 7:26 > To: BOUGH CHEN > Cc: Ulf Hansson ; Adrian Hunter > ; Asutosh Das ; Orson > Zhai ; Chunyan Zhang ; Arnd > Bergmann ; Linus Walleij ; Baolin > Wang ; linux-...@vger.kernel.org; Linux Kernel >

Re: [PATCH 2/2] soc: mediatek: devapc: add devapc-mt6873 driver

2020-06-14 Thread Neal Liu
Hi Chun-Kuang, On Sun, 2020-06-14 at 11:26 +0800, Chun-Kuang Hu wrote: > Hi, Neal: > > Neal Liu 於 2020年6月9日 週二 下午6:25寫道: > > > > MT6873 bus frabric provides TrustZone security support and data > > protection to prevent slaves from being accessed by unexpected > > masters. > > The security viola

Re: [PATCH RFC v6 02/11] vhost: use batched get_vq_desc version

2020-06-14 Thread Jason Wang
On 2020/6/11 下午5:06, Michael S. Tsirkin wrote: On Thu, Jun 11, 2020 at 11:02:57AM +0800, Jason Wang wrote: On 2020/6/10 下午7:05, Michael S. Tsirkin wrote: +EXPORT_SYMBOL_GPL(vhost_get_vq_desc); /* Reverse the effect of vhost_get_vq_desc. Useful for error handling. */ void vhost_discard

RE: [EXT] [PATCH] i2c: busses: Fix a reference count leak.

2020-06-14 Thread Andy Duan
From: wu000...@umn.edu Sent: Sunday, June 14, 2020 6:12 AM > From: Qiushi Wu > > pm_runtime_get_sync() increments the runtime PM usage counter even > when it returns an error code. Thus call pm_runtime_put_noidle() if > pm_runtime_get_sync() fails. > > Fixes: 13d6eb20fc79 ("i2c: imx-lpi2c: add

RE: [PATCH 1/2] exfat: call sync_filesystem for read-only remount

2020-06-14 Thread Namjae Jeon
> Hi Namjae, > > 2020년 6월 15일 (월) 오전 9:14, Namjae Jeon 님이 작성: > > > > Hi Hyunchul, > > > We need to commit dirty metadata and pages to disk before remounting > > > exfat as read-only. > > > > > > This fixes a failure in xfstests generic/452 > > Could you please elaborate more the reason why gener

[PATCH] Documentation: remove SH-5 index entries

2020-06-14 Thread Randy Dunlap
From: Randy Dunlap Remove SH-5 documentation index entries following the removal of SH-5 source code. Error: Cannot open file ../arch/sh/mm/tlb-sh5.c Error: Cannot open file ../arch/sh/mm/tlb-sh5.c Error: Cannot open file ../arch/sh/include/asm/tlb_64.h Error: Cannot open file ../arch/sh/include

RE: [PATCH] exfat: remove EXFAT_SB_DIRTY flag

2020-06-14 Thread Sungjong Seo
> On 2020/06/12 17:34, Sungjong Seo wrote: > >> remove EXFAT_SB_DIRTY flag and related codes. > >> > >> This flag is set/reset in exfat_put_super()/exfat_sync_fs() to avoid > >> sync_blockdev(). > >> However ... > >> - exfat_put_super(): > >> Before calling this, the VFS has already called sync_fil

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

2020-06-14 Thread Jason Wang
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 host to access all of its memory. Let's ref

[PATCH] Documentation: fix filesystems/locking.rst malformed table warnings

2020-06-14 Thread Randy Dunlap
From: Randy Dunlap Fix Sphinx malformed table warnings in filesystems/locking.rst: lnx-58-rc1/Documentation/filesystems/locking.rst:443: WARNING: Malformed table. Text in column margin in table line 8. lnx-58-rc1/Documentation/filesystems/locking.rst:620: WARNING: Malformed table. Text in colum

[PATCH] nvmem: sc27xx: add sc2730 efuse support

2020-06-14 Thread Chunyan Zhang
From: Freeman Liu Add support to the new efuse IP which is integrated in the SC2730 which includes multiple blocks in a single chip. Signed-off-by: Freeman Liu Signed-off-by: Chunyan Zhang --- drivers/nvmem/sc27xx-efuse.c | 34 +++--- 1 file changed, 31 insertions(

[PATCH] dlm: Fix kobject memleak

2020-06-14 Thread Wang Hai
Currently the error return path from kobject_init_and_add() is not followed by a call to kobject_put() - which means we are leaking the kobject. Set do_unreg = 1 before kobject_init_and_add() to ensure that kobject_put() can be called in its error patch. Fixes: 901195ed7f4b ("Kobject: change GFS2

Re: [LKP] [btrfs] c75e839414: aim7.jobs-per-min -9.1% regression

2020-06-14 Thread Xing Zhengjun
Hi Josef, Do you have time to take a look at this? Thanks. On 6/12/2020 2:11 PM, kernel test robot wrote: Greeting, FYI, we noticed a -9.1% regression of aim7.jobs-per-min due to commit: commit: c75e839414d3610e6487ae3145199c500d55f7f7 ("btrfs: kill the subvol_srcu") https://git.kernel.or

[PATCH] Documentation: fix malformed table in filesystems/proc.rst

2020-06-14 Thread Randy Dunlap
From: Randy Dunlap Fix malformed table in "proc.rst" by dropping a needless hyphen ('-'). Documentation/filesystems/proc.rst:548: WARNING: Malformed table. Text in column margin in table line 29. Fixes: 424037b77519 ("mm: smaps: Report arm64 guarded pages in smaps") Signed-off-by: Randy Dunlap

[PATCH V3 1/4] mm/debug_vm_pgtable: Add tests validating arch helpers for core MM features

2020-06-14 Thread Anshuman Khandual
This adds new tests validating arch page table helpers for these following core memory features. These tests create and test specific mapping types at various page table levels. 1. SPECIAL mapping 2. PROTNONE mapping 3. DEVMAP mapping 4. SOFTDIRTY mapping 5. SWAP mapping 6. MIGRATION mapping 7. HU

[PATCH v2] crypto: hisilicon - fix strncpy warning with strscpy

2020-06-14 Thread Zhangfei Gao
Use strscpy to fix the warning warning: 'strncpy' specified bound 64 equals destination size Reported-by: kernel test robot Signed-off-by: Zhangfei Gao --- v2: Use strscpy instead of strlcpy since better truncation handling suggested by Herbert Rebase to 5.8-rc1 drivers/crypto/hisilico

[PATCH V3 2/4] mm/debug_vm_pgtable: Add tests validating advanced arch page table helpers

2020-06-14 Thread Anshuman Khandual
This adds new tests validating for these following arch advanced page table helpers. These tests create and test specific mapping types at various page table levels. 1. pxxp_set_wrprotect() 2. pxxp_get_and_clear() 3. pxxp_set_access_flags() 4. pxxp_get_and_clear_full() 5. pxxp_test_and_clear_young

[PATCH V3 3/4] mm/debug_vm_pgtable: Add debug prints for individual tests

2020-06-14 Thread Anshuman Khandual
This adds debug print information that enlists all tests getting executed on a given platform. With dynamic debug enabled, the following information will be splashed during boot. For compactness purpose, dropped both time stamp and prefix (i.e debug_vm_pgtable) from this sample output. [debug_vm_p

[PATCH V3 0/4] mm/debug_vm_pgtable: Add some more tests

2020-06-14 Thread Anshuman Khandual
This series adds some more arch page table helper validation tests which are related to core and advanced memory functions. This also creates a documentation, enlisting expected semantics for all page table helpers as suggested by Mike Rapoport previously (https://lkml.org/lkml/2020/1/30/40). Ther

[PATCH V3 4/4] Documentation/mm: Add descriptions for arch page table helpers

2020-06-14 Thread Anshuman Khandual
This adds a specific description file for all arch page table helpers which is in sync with the semantics being tested via CONFIG_DEBUG_VM_PGTABLE. All future changes either to these descriptions here or the debug test should always remain in sync. Cc: Jonathan Corbet Cc: Andrew Morton Cc: Mike

[PATCH] : fix kernel-doc notation & warning

2020-06-14 Thread Randy Dunlap
From: Randy Dunlap Fix a kernel-doc warning due to missing a beginning '*' on the comment line. ../include/linux/rculist.h:515: warning: bad line: [@right ][node2 ... ] Fixes: 35fc0e3b0bd5 ("rculist: Add hlists_swap_heads_rcu") Signed-off-by: Randy Dunlap Cc: Eric W.

[Issue]platform/x86: iommu: System can't shutdown because iommu driver keeps checking the status of DMA_GSTS_TES

2020-06-14 Thread Koba Ko
hi All, I have a machine and there's only intel gpu. the secureboot and vt-d is enabled in BIOS. On the Ubuntu desktop, I do s2idle first and restart the machine. The machine can't restart successfully, so I need to press the power button to shutdown. I tried each of the following and the issue ca

[PATCH] mfd: sprd: get subdevices from DT instead for SC27XX SPI

2020-06-14 Thread Chunyan Zhang
From: Chunyan Zhang SC27XX-SPI added subdevices according to a pre-defined mfd_cell array, no matter these devices were really included on board. So with this patch we switch to a new way of detecting subdevices which are defined in the devicetree. Signed-off-by: Chunyan Zhang --- drivers/mfd/

[PATCH] certs/blacklist_hashes.c: Use __initconst for const init definition

2020-06-14 Thread Xingxing Su
Fix the following checkpatch error: ERROR: Use of const init definition must use __initconst #4: FILE: certs/blacklist_hashes.c:4: +const char __initdata *const blacklist_hashes[] = { Signed-off-by: Xingxing Su --- certs/blacklist_hashes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [PATCH 04/21] mm: free_area_init: use maximal zone PFNs rather than zone sizes

2020-06-14 Thread Greg Ungerer
Hi Mike, From: Mike Rapoport Currently, architectures that use free_area_init() to initialize memory map and node and zone structures need to calculate zone and hole sizes. We can use free_area_init_nodes() instead and let it detect the zone boundaries while the architectures will only have to

Re: [PATCH 0/3] Convert nsproxy, groups, and creds to refcount_t

2020-06-14 Thread Kees Cook
On Mon, Jun 15, 2020 at 10:10:08AM +0800, Xiaoming Ni wrote: > On 2020/6/13 2:34, Kees Cook wrote: > > This series was never applied[1], and was recently pointed out as > > missing[2]. If someone has a tree for this, please take it. Otherwise, > > please Ack and I'll send it to Linus. > > > > Than

[PATCH] block: Eliminate usage of uninitialized_var() macro

2020-06-14 Thread Jason Yan
This is an effort to eliminate the uninitialized_var() macro[1]. The use of this macro is the wrong solution because it forces off ANY analysis by the compiler for a given variable. It even masks "unused variable" warnings. Quoted from Linus[2]: "It's a horrible thing to use, in that it adds ext

<    1   2   3   4   5   >