[PATCH] hwmon (pmbus/max20730): add max20710 and debugfs access support

2020-05-26 Thread Ugur Usug
This change has 2 parts: 1. Add support for max20710 into the existing max20730 driver. 2. Add debugfs interface support for accessing device specific registers (MFR_VOUT_MIN, MFR_DEVSET1 and MFR_DEVSET2) and others including OPERATION, ON_OFF_CONFIG, SMB_ALERT_MASK, VOUT_MODE, VOUT_COMMAND and

Re: [PATCH] treewide: fix incomplete error-handling in img_i2s_in_probe.

2020-05-26 Thread Mark Brown
On Mon, May 25, 2020 at 12:50:11AM -0500, wu000...@umn.edu wrote: > From: Qiushi Wu > > Function "pm_runtime_get_sync()" is not handled by "pm_runtime_put()" > if "PTR_ERR(rst) == -EPROBE_DEFER". Fix this issue by adding > "pm_runtime_put()" into this error path. This isn't a treewide change, th

Re: [PATCH v3 1/3] riscv: Move kernel mapping to vmalloc zone

2020-05-26 Thread Zong Li
On Sun, May 24, 2020 at 4:54 PM Alexandre Ghiti wrote: > > This is a preparatory patch for relocatable kernel. > > The kernel used to be linked at PAGE_OFFSET address and used to be loaded > physically at the beginning of the main memory. Therefore, we could use > the linear mapping for the kernel

Re: [PATCH v1 07/25] lockdep: Add preemption disabled assertion API

2020-05-26 Thread Ahmed S. Darwish
On Tue, May 26, 2020 at 10:13:50AM +0200, Peter Zijlstra wrote: > On Tue, May 26, 2020 at 02:52:31AM +0200, Ahmed S. Darwish wrote: > > Peter Zijlstra wrote: > > > > +#define lockdep_assert_irqs_enabled() > > > \ > > > +do {

Re: [PATCH v5 2/2] clk: qcom: gcc-msm8939: Add MSM8939 Generic Clock Controller

2020-05-26 Thread Konrad Dybcio
Just adding my few cents, working fine on Asus Zenfone 2 Z00T, MSM8939. Tested-by: Konrad Dybcio

[GIT PULL] Immutable branch between MFD, IIO and Power due for the v5.8 merge window

2020-05-26 Thread Lee Jones
Enjoy! The following changes since commit 8f3d9f354286745c751374f5f1fcafee6b3f3136: Linux 5.7-rc1 (2020-04-12 12:35:55 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git tags/ib-mfd-iio-power-v5.8 for you to fetch changes up to 904ac71

Re: [PATCH] serial: 8250: Enable 16550A variants by default on non-x86

2020-05-26 Thread Greg Kroah-Hartman
On Tue, May 26, 2020 at 01:40:06AM -0700, Josh Triplett wrote: > Some embedded devices still use these serial ports; make sure they're > still enabled by default on architectures more likely to have them, to > avoid rendering someone's console unavailable. > > Fixes: dc56ecb81a0a ("serial: 8250: S

[PATCH] block/floppy: fix contended case in floppy_queue_rq()

2020-05-26 Thread Jiri Kosina
From: Jiri Kosina Since the switch of floppy driver to blk-mq, the contended (fdc_busy) case in floppy_queue_rq() is not handled correctly. In case we reach floppy_queue_rq() with fdc_busy set (i.e. with the floppy locked due to another request still being in-flight), we put the request on th

Re: [PATCH v4 2/6] dt-bindings: interrupt-controller: Add Loongson HTVEC

2020-05-26 Thread Marc Zyngier
On 2020-05-26 10:26, Jiaxun Yang wrote: On Mon, 25 May 2020 11:12:26 +0100 Marc Zyngier wrote: On Sat, 16 May 2020 09:29:02 +0100, Jiaxun Yang wrote: > > Add binding for Loongson-3 HyperTransport Interrupt Vector > Controller. > > Signed-off-by: Jiaxun Yang > -- > v4: Drop ref, '|', add addi

Re: [PATCH v3 05/10] media: i2c: imx290: Add configurable link frequency and pixel rate

2020-05-26 Thread Sakari Ailus
Hi Andrey, On Tue, May 26, 2020 at 12:27:17PM +0300, Andrey Konovalov wrote: > Hi Sakari, > > Thank you for the review! You're welcome! > > On 26.05.2020 12:12, Sakari Ailus wrote: > > Hi Andrey, > > > > On Sun, May 24, 2020 at 10:25:00PM +0300, Andrey Konovalov wrote: > > > From: Manivannan

Re: [RFC 02/17] dma-fence: basic lockdep annotations

2020-05-26 Thread Maarten Lankhorst
Op 12-05-2020 om 10:59 schreef Daniel Vetter: > Design is similar to the lockdep annotations for workers, but with > some twists: > > - We use a read-lock for the execution/worker/completion side, so that > this explicit annotation can be more liberally sprinkled around. > With read locks lockd

[PATCH] scsi: ufs: ti-j721e-ufs: Fix unwinding of pm_runtime changes

2020-05-26 Thread Vignesh Raghavendra
Fix unwinding of pm_runtime changes when bailing out of driver probe due to a failure and also on removal of driver. Fixes: 6979e56cec97 ("scsi: ufs: Add driver for TI wrapper for Cadence UFS IP") Reported-by: Dinghao Liu Signed-off-by: Vignesh Raghavendra --- drivers/scsi/ufs/ti-j721e-ufs.c |

Re: [PATCH v3] workqueue: Fix double kfree for rescuer

2020-05-26 Thread Zhang, Qiang
Thank you reply There is something wrong with my description. is it feasible to describe as follows: The resucer is already free in "destroy_workqueue" and "wq->rescuer = NULL" was executed, but in "rcu_free_wq" it's release again (equivalent to kfree(NULL)), this is unnecessary, so

Re: Re: Re: [PATCH] iio: magnetometer: ak8974: Fix runtime PM imbalance on error

2020-05-26 Thread dinghao . liu
> What about just moving the pm_runtime_put() until the end > of the initialization? Right before return 0; > Then we can keep this nice goto exits as they are. > > Maybe move all these three: > > pm_runtime_set_autosuspend_delay(&i2c->dev, > AK8974_

Re: [PATCH v3 1/6] arm64: Detect the ARMv8.4 TTL feature

2020-05-26 Thread Marc Zyngier
On 2020-05-26 07:40, Zhenyu Ye wrote: Hi Anshuman, On 2020/5/26 10:39, Anshuman Khandual wrote: This patch (https://patchwork.kernel.org/patch/11557359/) is adding some more ID_AA64MMFR2 features including the TTL. I am going to respin parts of the V4 series patches along with the above mentio

Re: [PATCH] scsi: ufs: Fix runtime PM imbalance on error

2020-05-26 Thread Vignesh Raghavendra
Hi, On 22/05/20 10:23 am, Dinghao Liu wrote: > When devm_clk_get() returns an error code, a pairing > runtime PM usage counter decrement is needed to keep > the counter balanced. > > Signed-off-by: Dinghao Liu > --- Thanks for the patch! But this fix is incomplete, I have posted a more compreh

[PATCH net-next v1] net: phy: at803x: add cable diagnostics support for ATH9331 and ATH8032

2020-05-26 Thread Oleksij Rempel
Add support for Atheros 100Bast-T PHYs. The only difference seems to be the ability to test 2 pares instead of 4 and the lack of 1000Bast-T specific register. Only ATH9331 was tested with this patch. Signed-off-by: Oleksij Rempel --- drivers/net/phy/at803x.c | 18 -- 1 file chan

Re: [RFC PATCH v12 03/11] psci: export smccc conduit get helper.

2020-05-26 Thread Sudeep Holla
On Mon, May 25, 2020 at 01:37:56AM +, Jianyong Wu wrote: > Hi Sudeep, > > > -Original Message- > > From: Sudeep Holla > > Sent: Friday, May 22, 2020 9:12 PM > > To: Jianyong Wu > > Cc: net...@vger.kernel.org; yangbo...@nxp.com; john.stu...@linaro.org; > > t...@linutronix.de; pbonz...

Re: [PATCH v3 12/19] mm: memcg/slab: use a single set of kmem_caches for all accounted allocations

2020-05-26 Thread Vlastimil Babka
On 4/22/20 10:47 PM, Roman Gushchin wrote: > This is fairly big but mostly red patch, which makes all accounted > slab allocations use a single set of kmem_caches instead of > creating a separate set for each memory cgroup. > > Because the number of non-root kmem_caches is now capped by the number

Re: Re: [PATCH] scsi: ufs: Fix runtime PM imbalance on error

2020-05-26 Thread dinghao . liu
> Hi, > > On 22/05/20 10:23 am, Dinghao Liu wrote: > > When devm_clk_get() returns an error code, a pairing > > runtime PM usage counter decrement is needed to keep > > the counter balanced. > > > > Signed-off-by: Dinghao Liu > > --- > > Thanks for the patch! But this fix is incomplete, I have

Re: [v2 2/2] crypto: virtio: Fix use-after-free in virtio_crypto_skcipher_finalize_req()

2020-05-26 Thread Greg KH
On Tue, May 26, 2020 at 05:24:03PM +0800, Longpeng (Mike, Cloud Infrastructure Service Product Dept.) wrote: > > > On 2020/5/26 17:01, Markus Elfring wrote: > … Thus release specific resources before > >>> > >>> Is there a need to improve also this information another bit? > >>> > >> You me

Re: [PATCH v1] x86: Pin cr4 FSGSBASE

2020-05-26 Thread Greg KH
On Tue, May 26, 2020 at 11:17:45AM +0200, Peter Zijlstra wrote: > On Tue, May 26, 2020 at 10:17:52AM +0200, Greg KH wrote: > > On Tue, May 26, 2020 at 09:57:36AM +0200, Peter Zijlstra wrote: > > > On Tue, May 26, 2020 at 08:56:18AM +0200, Greg KH wrote: > > > > On Mon, May 25, 2020 at 10:28:48PM -0

Re: [RFC 00/16] KVM protected memory extension

2020-05-26 Thread Liran Alon
On 26/05/2020 9:17, Mike Rapoport wrote: On Mon, May 25, 2020 at 04:47:18PM +0300, Liran Alon wrote: On 22/05/2020 15:51, Kirill A. Shutemov wrote: Furthermore, I would like to point out that just unmapping guest data from kernel direct-map is not sufficient to prevent all guest-to-guest info

Re: [PATCH v2 00/91] drm/vc4: Support BCM2711 Display Pipelin

2020-05-26 Thread Maxime Ripard
Hi, On Mon, May 11, 2020 at 11:12:05AM +0800, Jian-Hong Pan wrote: > Jian-Hong Pan 於 2020年5月8日 週五 下午2:20寫道: > > > > Maxime Ripard 於 2020年5月8日 週五 上午1:22寫道: > > > > > > On Mon, May 04, 2020 at 02:35:08PM +0800, Jian-Hong Pan wrote: > > > > Maxime Ripard 於 2020年4月29日 週三 上午12:21寫道: > > > > > > > >

Re: [PATCH 1/4] i2c: smbus: add core function handling SMBus host-notify

2020-05-26 Thread Alain Volmat
On Sat, May 23, 2020 at 10:46:25AM +, Wolfram Sang wrote: > > Adding Benjamin who mainly implemented this. > > On Tue, May 05, 2020 at 07:51:08AM +0200, Alain Volmat wrote: > > SMBus Host-Notify protocol, from the adapter point of view > > consist of receiving a message from a client, includi

Re: [PATCH][V3] arm64: perf: Get the wrong PC value in REGS_ABI_32 mode

2020-05-26 Thread Mark Rutland
On Mon, May 11, 2020 at 10:52:07AM +0800, Jiping Ma wrote: > Modified the patch subject and the change description. > > PC value is get from regs[15] in REGS_ABI_32 mode, but correct PC > is regs->pc(regs[PERF_REG_ARM64_PC]) in arm64 kernel, which caused > that perf can not parser the backtrace of

Re: [PATCH v7 0/3] perf arm-spe: Add support for synthetic events

2020-05-26 Thread Will Deacon
On Fri, May 22, 2020 at 11:09:19AM +0800, Leo Yan wrote: > On Mon, May 04, 2020 at 07:56:22PM +0800, Leo Yan wrote: > > This patch set is to support synthetic events with enabling Arm SPE > > decoder. Since before Xiaojun Tan (Hisilicon) and James Clark (Arm) > > have contributed much for this tas

Re: [PATCH] [v2] ASoC: ti: Fix runtime PM imbalance in omap2_mcbsp_set_clks_src

2020-05-26 Thread Peter Ujfalusi
On 25/05/2020 11.58, Dinghao Liu wrote: > When clk_set_parent() returns an error code, a pairing > runtime PM usage counter increment is needed to keep the > counter balanced. > > Signed-off-by: Dinghao Liu > --- > > Changelog: > > v2: - Fix this in a cleaner way. Thanks for the update, Acke

Re: [RFC PATCH v5 3/3] docs: scheduler: Add introduction to scheduler context-switch

2020-05-26 Thread Srikar Dronamraju
* john mathew [2020-05-14 12:26:37]: > + > +Context Switching > +- > + > +Context switching, the switching from a running task to another, > +is done by the context_switch() function defined in kernel/sched.c. context_switch is defined in kernel/sched/core.c > +It is called by

Re: [PATCH v3] Makefile: support compressed debug info

2020-05-26 Thread Masahiro Yamada
On Fri, May 22, 2020 at 7:00 AM 'Nick Desaulniers' via Clang Built Linux wrote: > > As debug information gets larger and larger, it helps significantly save > the size of vmlinux images to compress the information in the debug > information sections. Note: this debug info is typically split off fr

Re: [PATCH] kbuild: doc: remove documentation about copying Module.symvers around

2020-05-26 Thread Masahiro Yamada
On Thu, May 21, 2020 at 1:31 PM Masahiro Yamada wrote: > > This is a left-over of commit 39808e451fdf ("kbuild: do not read > $(KBUILD_EXTMOD)/Module.symvers"). > > Kbuild no longer supports this way. > > Signed-off-by: Masahiro Yamada > --- > Applied to linux-kbuild. > Documentation/kbuild/

Re: [PATCH] mm/gup: correct pin_user_pages.rst location

2020-05-26 Thread Souptick Joarder
On Tue, May 26, 2020 at 1:49 PM John Hubbard wrote: > > On 2020-05-26 01:13, Vitaly Kuznetsov wrote: > > pin_user_pages.rst lives in Documentation/core-api/, not Documentation/vm/, > > adjust all links accordingly. > > > > Fixes: 3faa52c03f44 ("mm/gup: track FOLL_PIN pages") > > Fixes: eddb1c228f7

Re: [PATCH 1/5] kbuild: remove ifdef builtin-target / lib-target

2020-05-26 Thread Masahiro Yamada
On Fri, May 22, 2020 at 11:00 AM Masahiro Yamada wrote: > > I do not see a good reason to add ifdef here. > > Signed-off-by: Masahiro Yamada > --- Applied to linux-kbuild. > scripts/Makefile.build | 10 ++ > 1 file changed, 2 insertions(+), 8 deletions(-) > > diff --git a/scripts/Ma

Re: [PATCH v3 13/19] mm: memcg/slab: simplify memcg cache creation

2020-05-26 Thread Vlastimil Babka
On 4/22/20 10:47 PM, Roman Gushchin wrote: > Because the number of non-root kmem_caches doesn't depend on the > number of memory cgroups anymore and is generally not very big, > there is no more need for a dedicated workqueue. > > Also, as there is no more need to pass any arguments to the > memcg

Re: [PATCH 3/4] dt-bindings: i2c-stm32: add SMBus Alert bindings

2020-05-26 Thread Alain Volmat
On Sat, May 23, 2020 at 10:36:01AM +, w...@kernel.org wrote: > > > > > +st,smbus-alert: > > > > + description: Enable the SMBus Alert feature > > > > + $ref: /schemas/types.yaml#/definitions/flag > > > > + > > > > > > We already have smbus_alert interrupt. Can't you

[PATCH rdma-next v3 0/6] Add Enhanced Connection Established (ECE)

2020-05-26 Thread Leon Romanovsky
From: Leon Romanovsky Changelog: v3: * Rebased on top of ebd6e96b33a2 RDMA/ipoib: Remove can_sleep parameter from iboib_mcast_alloc * Updated rdma_reject patch to include newly added RTR ulp * Remove empty hunks added by rebase * Changed signature of rdma_reject so kernel users will provide

Re: [PATCH v3 14/19] mm: memcg/slab: deprecate memcg_kmem_get_cache()

2020-05-26 Thread Vlastimil Babka
"deprecate" means it still exist but shouldn't get new callers, no? maybe just "remove" or "inline ... into its caller" On 4/22/20 10:47 PM, Roman Gushchin wrote: > The memcg_kmem_get_cache() function became really trivial, so > let's just inline it into the single call point: > memcg_slab_pre_all

Re: [v3] workqueue: Fix double kfree for rescuer

2020-05-26 Thread Markus Elfring
> There is something wrong with my description. is it feasible to describe as > follows: > > The resucer is already free in "destroy_workqueue" and > "wq->rescuer = NULL" was executed, but in "rcu_free_wq" > it's release again (equivalent to kfree(NULL)), this is > unnecessary, so sho

Re: [Tee-dev] [PATCHv3 2/3] optee: use uuid for sysfs driver entry

2020-05-26 Thread Sumit Garg
On Mon, 25 May 2020 at 21:24, Jerome Forissier wrote: > > > > On 5/25/20 3:36 PM, Maxim Uvarov wrote: > > On Mon, 25 May 2020 at 15:10, Jerome Forissier wrote: > >> > >> > >> > >> On 5/25/20 1:52 PM, Maxim Uvarov wrote: > >>> Optee device names for sysfs needed to be unique > >> > >> s/Optee/OP-T

Re: [PATCH v5 6/8] drm/panel: Add ilitek ili9341 panel driver

2020-05-26 Thread Noralf Trønnes
Den 26.05.2020 11.08, skrev dillon min: > Hi Andy, > > Thanks for input. > > On Tue, May 26, 2020 at 3:46 PM Andy Shevchenko > wrote: >> >> On Mon, May 25, 2020 at 6:46 AM wrote: >>> >>> From: dillon min >>> >>> This driver combine tiny/ili9341.c mipi_dbi_interface driver >>> with m

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

2020-05-26 Thread Mark Brown
On Wed, May 13, 2020 at 04:42:58PM +0530, Rajendra Nayak wrote: > 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. Acked

linux-next: Tree for May 26

2020-05-26 Thread Stephen Rothwell
Hi all, News: there will be no linux-next release tomorrow. Changes since 20200525: My fixes tree contains: cd2b06ec45d6 ("device_cgroup: Fix RCU list debugging warning") The net-next tree gained a conflict against the bpf tree. The nand tree lost its build failure. The drm-msm tree still

Re: [PATCH v5 6/6] spi: spi-qcom-qspi: Use OPP API to set clk/perf state

2020-05-26 Thread Mark Brown
On Wed, May 13, 2020 at 04:43:02PM +0530, Rajendra Nayak wrote: > QSPI needs to vote on a performance state of a power domain depending on > the clock rate. Add support for it by specifying the perf state/clock rate > as an OPP table in device Acked-by: Mark Brown signature.asc Description: PG

Re: [PATCH 4/4] i2c: stm32f7: Add SMBus-specific protocols support

2020-05-26 Thread Alain Volmat
On Sat, May 23, 2020 at 01:01:40PM +0200, Wolfram Sang wrote: > > > +static int stm32f7_i2c_reg_client(struct i2c_client *client) > > +{ > > + struct stm32f7_i2c_dev *i2c_dev = i2c_get_adapdata(client->adapter); > > + int ret; > > + > > + if (client->flags & I2C_CLIENT_HOST_NOTIFY) { > > +

Re: [linux-next PATCH] mm/gup.c: Convert to use get_user_{page|pages}_fast_only()

2020-05-26 Thread Souptick Joarder
On Tue, May 26, 2020 at 1:29 PM Paul Mackerras wrote: > > On Mon, May 25, 2020 at 02:23:32PM +0530, Souptick Joarder wrote: > > API __get_user_pages_fast() renamed to get_user_pages_fast_only() > > to align with pin_user_pages_fast_only(). > > > > As part of this we will get rid of write parameter

Re: [PATCH 1/2] x86: mm: ptdump: Calculate effective permissions correctly

2020-05-26 Thread Steven Price
On 22/05/2020 19:07, Qian Cai wrote: On Thu, May 21, 2020 at 04:23:07PM +0100, Steven Price wrote: --- a/arch/x86/mm/dump_pagetables.c +++ b/arch/x86/mm/dump_pagetables.c @@ -249,10 +249,22 @@ static void note_wx(struct pg_state *st, unsigned long addr) @@ -270,16 +282,10 @@ static void note_pa

Re: [PATCH -tip v3 09/11] data_race: Avoid nested statement expression

2020-05-26 Thread Arnd Bergmann
On Thu, May 21, 2020 at 10:21 PM 'Nick Desaulniers' via Clang Built Linux wrote: > > On Thu, May 21, 2020 at 7:22 AM 'Marco Elver' via Clang Built Linux > wrote: > > > > It appears that compilers have trouble with nested statement > > expressions. Therefore remove one level of statement expressio

Re: [PATCH RFCv2 3/9] kvm/arm64: Rename kvm_vcpu_get_hsr() to kvm_vcpu_get_esr()

2020-05-26 Thread Mark Rutland
On Fri, May 08, 2020 at 01:29:13PM +1000, Gavin Shan wrote: > Since kvm/arm32 was removed, this renames kvm_vcpu_get_hsr() to > kvm_vcpu_get_esr() to it a bit more self-explaining because the > functions returns ESR instead of HSR on aarch64. This shouldn't > cause any functional changes. > > Sign

Re: [PATCH v7 0/3] perf arm-spe: Add support for synthetic events

2020-05-26 Thread Leo Yan
Hi Will, On Tue, May 26, 2020 at 11:26:03AM +0100, Will Deacon wrote: > On Fri, May 22, 2020 at 11:09:19AM +0800, Leo Yan wrote: > > On Mon, May 04, 2020 at 07:56:22PM +0800, Leo Yan wrote: > > > This patch set is to support synthetic events with enabling Arm SPE > > > decoder. Since before Xiaoj

Re: [PATCH RFCv2 5/9] kvm/arm64: Replace hsr with esr

2020-05-26 Thread Mark Rutland
On Fri, May 08, 2020 at 01:29:15PM +1000, Gavin Shan wrote: > This replace the variable names to make them self-explaining. The > tracepoint isn't changed accordingly because they're part of ABI: > >* @hsr to @esr >* @hsr_ec to @ec >* Use kvm_vcpu_trap_get_class() helper if possible >

[PATCH] [v2] iio: magnetometer: ak8974: Fix runtime PM imbalance on error

2020-05-26 Thread Dinghao Liu
When devm_regmap_init_i2c() returns an error code, a pairing runtime PM usage counter decrement is needed to keep the counter balanced. For error paths after ak8974_set_power(), ak8974_detect() and ak8974_reset(), things are the same. However, When iio_triggered_buffer_setup() returns an error cod

[PATCH] blk-mq: Explicitly zero-init blk_mq_tags.active_queues

2020-05-26 Thread John Garry
As is good practice, explicitly zero-init atomic_t type blk_mq_tags.active_queues. Signed-off-by: John Garry diff --git a/block/blk-mq-tag.c b/block/blk-mq-tag.c index 586c9d6e904a..cbbd0af9f3b0 100644 --- a/block/blk-mq-tag.c +++ b/block/blk-mq-tag.c @@ -469,6 +469,7 @@ struct blk_mq_tags *blk_

Re: Some -serious- BPF-related litmus tests

2020-05-26 Thread Akira Yokosawa
On Mon, 25 May 2020 16:31:05 -0700, Andrii Nakryiko wrote: > On Mon, May 25, 2020 at 3:01 PM Akira Yokosawa wrote: >> [...] >> Yes, that should work. > > Ok, assigning to zero didn't work (it still complained about > uninitialized read), but using a separate int *lenFail to assign to > rLenPtr wo

Re: [PATCH RFCv2 4/9] kvm/arm64: Detach ESR operator from vCPU struct

2020-05-26 Thread Mark Rutland
On Fri, May 08, 2020 at 01:29:14PM +1000, Gavin Shan wrote: > There are a set of inline functions defined in kvm_emulate.h. Those > functions reads ESR from vCPU fault information struct and then operate > on it. So it's tied with vCPU fault information and vCPU struct. It > limits their usage scop

Re: [PATCH v3 15/19] mm: memcg/slab: deprecate slab_root_caches

2020-05-26 Thread Vlastimil Babka
On 4/22/20 10:47 PM, Roman Gushchin wrote: > Currently there are two lists of kmem_caches: > 1) slab_caches, which contains all kmem_caches, > 2) slab_root_caches, which contains only root kmem_caches. > > And there is some preprocessor magic to have a single list > if CONFIG_MEMCG_KMEM isn't enab

[PATCH v4 0/1] perf: cs_etm: Allow no sink on command line.

2020-05-26 Thread Mike Leach
Currently starting CoreSight tracing using perf requires a sink selection on the command line:- sudo ./perf record -e cs_etm/@tmc_etr0/ --per-thread uname -a Not providing the @ here results in an error and no trace produced. After this set (alongside the CoreSight change set [1]) the infrastruc

[PATCH v4 1/1] perf: cs-etm: Allow no CoreSight sink to be specified on command line

2020-05-26 Thread Mike Leach
Adjust the handling of the session sink selection to allow no sink to be selected on the command line. This then forwards the sink selection to the CoreSight infrastructure which will attempt to select a sink based on the default sink select priorities. Signed-off-by: Mike Leach --- tools/perf/a

Re: [RFC] METADATA design using V4l2 Request API

2020-05-26 Thread Hans Verkuil
Hi Dikshita, My apologies for the delay, this was (mostly) due to various vacation days. On 08/05/2020 08:21, Dikshita Agarwal wrote: > There are many commercialized video use cases which needs metadata info > to be circulated between v4l2 client and v4l2 driver. > > METADATA has following requi

Re: [PATCH RFCv2 6/9] kvm/arm64: Export kvm_handle_user_mem_abort() with prefault mode

2020-05-26 Thread Mark Rutland
On Fri, May 08, 2020 at 01:29:16PM +1000, Gavin Shan wrote: > This renames user_mem_abort() to kvm_handle_user_mem_abort(), and > then export it. The function will be used in asynchronous page fault > to populate a page table entry once the corresponding page is populated > from the backup device (

[PATCH v4 1/3] virtio: add dma-buf support for exported objects

2020-05-26 Thread David Stevens
This change adds a new flavor of dma-bufs that can be used by virtio drivers to share exported objects. A virtio dma-buf can be queried by virtio drivers to obtain the UUID which identifies the underlying exported object. Signed-off-by: David Stevens --- drivers/virtio/Makefile | 2 +-

[PATCH v4 3/3] drm/virtio: Support virtgpu exported resources

2020-05-26 Thread David Stevens
Add support for UUID-based resource sharing mechanism to virtgpu. This implements the new virtgpu commands and hooks them up to dma-buf's get_uuid callback. Signed-off-by: David Stevens --- drivers/gpu/drm/virtio/virtgpu_drv.c | 3 + drivers/gpu/drm/virtio/virtgpu_drv.h | 20 ++ drivers

[PATCH v4 0/3] Support virtio cross-device resources

2020-05-26 Thread David Stevens
This patchset implements the current proposal for virtio cross-device resource sharing [1]. It will be used to import virtio resources into the virtio-video driver currently under discussion [2]. The patch under consideration to add support in the virtio-video driver is [3]. It uses the APIs from v

[PATCH v4 2/3] virtio-gpu: add VIRTIO_GPU_F_RESOURCE_UUID feature

2020-05-26 Thread David Stevens
This feature allows the guest to request a UUID from the host for a particular virtio_gpu resource. The UUID can then be shared with other virtio devices, to allow the other host devices to access the virtio_gpu's corresponding host resource. Signed-off-by: David Stevens --- include/uapi/linux/v

Re: [RFC PATCH v12 07/11] psci: Add hypercall service for kvm ptp.

2020-05-26 Thread Steven Price
On 25/05/2020 03:11, Jianyong Wu wrote: Hi Steven, Hi Jianyong, [...]>>> diff --git a/virt/kvm/arm/hypercalls.c b/virt/kvm/arm/hypercalls.c index db6dce3d0e23..c964122f8dae 100644 --- a/virt/kvm/arm/hypercalls.c +++ b/virt/kvm/arm/hypercalls.c @@ -3,6 +3,7 @@ #include #include +#incl

[PATCH v3 0/7] Statsfs: a new ram-based file system for Linux kernel statistics

2020-05-26 Thread Emanuele Giuseppe Esposito
There is currently no common way for Linux kernel subsystems to expose statistics to userspace shared throughout the Linux kernel; subsystems have to take care of gathering and displaying statistics by themselves, for example in the form of files in debugfs. For example KVM has its own code section

[PATCH] MIPS: BCM63xx: fix 6328 boot selection bit

2020-05-26 Thread Álvaro Fernández Rojas
MISC_STRAP_BUS_BOOT_SEL_SHIFT is 18 according to Broadcom's GPL source code. Signed-off-by: Álvaro Fernández Rojas --- arch/mips/include/asm/mach-bcm63xx/bcm63xx_regs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/mips/include/asm/mach-bcm63xx/bcm63xx_regs.h b/ar

[PATCH v3 1/7] stats_fs API: create, add and remove stats_fs sources and values

2020-05-26 Thread Emanuele Giuseppe Esposito
Introduction to the stats_fs API, that allows to easily create, add and remove stats_fs sources and values. The API allows to easily building the statistics directory tree to automatically gather them for the linux kernel. The main functionalities are: create a source, add child sources/values/aggr

Re: [PATCH v7 2/4] usb: dwc3: qcom: Add interconnect support in dwc3 driver

2020-05-26 Thread Sandeep Maheswaram (Temp)
Hi Felipe, Please let me know how to go forward with this patch Regards Sandeep On 5/19/2020 12:05 AM, Bjorn Andersson wrote: On Thu 14 May 23:29 PDT 2020, Felipe Balbi wrote: Hi, Georgi Djakov writes: Sandeep Maheswaram writes: +static int dwc3_qcom_interconnect_init(struct dwc3_qcom

Re: [PATCH v1] driver core: Update device link status correctly for SYNC_STATE_ONLY links

2020-05-26 Thread Michael Walle
Hi Saravana, Am 2020-05-26 09:07, schrieb Saravana Kannan: Greg, I think this is the issue Michael ran into. I'd like him to test the fix before it's pulled in. Michael, If you can test this on the branch you saw the issue in and give a Tested-by if it works, that'd be great. Unfortunatel

[PATCH v3 2/7] documentation for stats_fs

2020-05-26 Thread Emanuele Giuseppe Esposito
Html docs for a complete documentation of the stats_fs API, filesystem and usage. Signed-off-by: Emanuele Giuseppe Esposito --- Documentation/filesystems/index.rst| 1 + Documentation/filesystems/stats_fs.rst | 222 + 2 files changed, 223 insertions(+) create mode

[PATCH v3 3/7] kunit: tests for stats_fs API

2020-05-26 Thread Emanuele Giuseppe Esposito
Add kunit tests to extensively test the stats_fs API functionality. In order to run them, the kernel .config must set CONFIG_KUNIT=y and a new .kunitconfig file must be created with CONFIG_STATS_FS=y and CONFIG_STATS_FS_TEST=y Tests can be then started by running the following command from the ro

[PATCH v3 4/7] stats_fs fs: virtual fs to show stats to the end-user

2020-05-26 Thread Emanuele Giuseppe Esposito
Add virtual fs that maps stats_fs sources with directories, and values (simple or aggregates) to files. Every time a file is read/cleared, the fs internally invokes the stats_fs API to get/set the requested value. Also introduce the optional show function in each value, that allows to customize h

[PATCH v3 5/7] kvm_main: replace debugfs with stats_fs

2020-05-26 Thread Emanuele Giuseppe Esposito
Use stats_fs API instead of debugfs to create sources and add values. This also requires to change all architecture files to replace the old debugfs_entries with stats_fs_vcpu_entries and statsfs_vm_entries. The files/folders name and organization is kept unchanged, and a symlink in sys/kernel/de

[PATCH v3 6/7] [not for merge] kvm: example of stats_fs_value show function

2020-05-26 Thread Emanuele Giuseppe Esposito
Add an example of the show function using the mp_state value. mp_state is an enum that represents the VCPU state, so instead of displaying its integer representation, the show function takes care of translating the integer into a more meaningful string representation. The VCPU status is shown in

[PATCH v3 7/7] [not for merge] netstats: example use of stats_fs API

2020-05-26 Thread Emanuele Giuseppe Esposito
Apply stats_fs on the networking statistics subsystem. Currently it only works with disabled network namespace (CONFIG_NET_NS=n), because multiple namespaces will have the same device name under the same root source that will cause a conflict in stats_fs. Signed-off-by: Emanuele Giuseppe Esposito

Re: [RFC] kdb: Switch kdb_printf to use safer console poll APIs

2020-05-26 Thread Daniel Thompson
On Tue, May 26, 2020 at 01:16:17PM +0530, Sumit Garg wrote: > On Fri, 22 May 2020 at 21:33, Daniel Thompson > wrote: > > > > On Fri, May 22, 2020 at 08:04:31PM +0530, Sumit Garg wrote: > > > In kgdb NMI context, polling driver APIs are more safer to use instead > > > of console APIs since the poll

Re: [PATCH] ACPI: GED: add support for _Exx / _Lxx handler methods

2020-05-26 Thread Ard Biesheuvel
Hello Rafael, I spotted an issue with this patch. Please see below. On Fri, 15 May 2020 at 18:32, Rafael J. Wysocki wrote: > > On Fri, May 15, 2020 at 11:37 AM Ard Biesheuvel wrote: > > > > Per the ACPI spec, interrupts in the range [0, 255] may be handled > > in AML using individual methods w

Re: [PATCH] [v2] iio: magnetometer: ak8974: Fix runtime PM imbalance on error

2020-05-26 Thread Linus Walleij
On Tue, May 26, 2020 at 12:47 PM Dinghao Liu wrote: > When devm_regmap_init_i2c() returns an error code, a pairing > runtime PM usage counter decrement is needed to keep the > counter balanced. For error paths after ak8974_set_power(), > ak8974_detect() and ak8974_reset(), things are the same. >

Re: [RFC 00/14] perf tests: Check on subtest for user specified test

2020-05-26 Thread Jiri Olsa
On Mon, May 25, 2020 at 11:23:00AM -0300, Arnaldo Carvalho de Melo wrote: > Em Mon, May 25, 2020 at 12:42:05AM +0200, Jiri Olsa escreveu: > > hi, > > changes for using metric result in another metric seem > > to change lot of core metric code, so it's better we > > have some more tests before we do

watchdog: iTCO_wdt: cannot register miscdev on minor=130 (err=-16).

2020-05-26 Thread Paul Menzel
Dear Linux folks, Linux 5.4.39 reports the watchdog messages below on a Dell PowerEdge T630 with 12x E5-2603 v4 @ 1.70GHz. DMI: Dell Inc. PowerEdge T630/0NT78X, BIOS 2.5.4 08/17/2017 ``` handsomejack:~$ more /proc/version Linux version 5.4.39.mx64.334 (r...@lol.molgen.mpg.de) (gcc versio

Re: [PATCH v3 2/5] dt-bindings: panel: Add binding for Xingbangda XBD599 panel

2020-05-26 Thread Linus Walleij
On Wed, May 13, 2020 at 11:24 PM Ondrej Jirman wrote: > From: Icenowy Zheng > > Xingbangda XBD599 is a 5.99" 720x1440 MIPI-DSI LCD panel. It is based on > Sitronix ST7703 LCD controller. > > Add its device tree binding. > > Signed-off-by: Icenowy Zheng > Signed-off-by: Ondrej Jirman Reviewed-

[PATCH V3] pwm: tegra: dynamic clk freq configuration by PWM driver

2020-05-26 Thread Sandipan Patra
Added support for dynamic clock freq configuration in pwm kernel driver. Earlier the pwm driver used to cache boot time clock rate by pwm clock parent during probe. Hence dynamically changing pwm frequency was not possible for all the possible ranges. With this change, dynamic calculation is enable

Re: [PATCH v3 16/19] mm: memcg/slab: remove redundant check in memcg_accumulate_slabinfo()

2020-05-26 Thread Vlastimil Babka
On 4/22/20 10:47 PM, Roman Gushchin wrote: > memcg_accumulate_slabinfo() is never called with a non-root > kmem_cache as a first argument, so the is_root_cache(s) check > is redundant and can be removed without any functional change. > > Signed-off-by: Roman Gushchin Reviewed-by: Vlastimil Babka

Re: [PATCH v5 00/38] DRM: fix struct sg_table nents vs. orig_nents misuse

2020-05-26 Thread Daniel Vetter
On Tue, May 26, 2020 at 9:01 AM Marek Szyprowski wrote: > > Hi > > On 13.05.2020 15:47, Christoph Hellwig wrote: > > I've pushed out a branch with the first three patches here: > > > > git://git.infradead.org/users/hch/dma-mapping.git dma-sg_table-helper > > > > Gitweb: > > > > > > http:/

Re: [PATCH v3 3/5] drm: panel: Add Xingbangda XBD599 panel (ST7703 controller)

2020-05-26 Thread Linus Walleij
Hi Ondrej, I see you took over this driver submission from Icenowy. On Wed, May 13, 2020 at 11:24 PM Ondrej Jirman wrote: > From: Icenowy Zheng > > Xingbangda XBD599 is a 5.99" 720x1440 MIPI-DSI IPS LCD panel made by > Xingbangda, which is used on PinePhone final assembled phones. > > It is ba

Re: [PATCH] mm/compaction: Fix the incorrect hole in fast_isolate_freepages()

2020-05-26 Thread Mike Rapoport
Hello Baoquan, On Tue, May 26, 2020 at 04:45:43PM +0800, Baoquan He wrote: > On 05/22/20 at 05:20pm, Mike Rapoport wrote: > > Hello Baoquan, > > > > On Fri, May 22, 2020 at 03:25:24PM +0800, Baoquan He wrote: > > > On 05/22/20 at 03:01pm, Baoquan He wrote: > > > > > > > > So let's add these unav

Re: [PATCH v7 2/4] usb: dwc3: qcom: Add interconnect support in dwc3 driver

2020-05-26 Thread Georgi Djakov
On 26.05.20 14:04, Sandeep Maheswaram (Temp) wrote: > Hi Felipe, > > Please let me know how to go forward with this patch > Hi Sandeep, Please just add a patch to fix the allmodconfig error. Felipe has suggested to introduce a separate patch which exports the device_is_bound() function. This ex

Re: [PATCH] mac80211_hwsim: report the WIPHY_FLAG_SUPPORTS_5_10_MHZ capability

2020-05-26 Thread Ramon Fontes
> Not sure this is enough? How about wmediumd, for example? It works with wmediumd too. At least I was able to enable 5 / 10MHz via iw with 5.9GHz > And also, 5/10 MHz has many more channels inbetween the normal ones, no? > Shouldn't those also be added? Tested with 5855MHz - 5925MHz -- Ramon

Re: watchdog: iTCO_wdt: cannot register miscdev on minor=130 (err=-16).

2020-05-26 Thread Guenter Roeck
On 5/26/20 4:21 AM, Paul Menzel wrote: > Dear Linux folks, > > > Linux 5.4.39 reports the watchdog messages below on a Dell PowerEdge T630 > with 12x E5-2603 v4 @ 1.70GHz. > >     DMI: Dell Inc. PowerEdge T630/0NT78X, BIOS 2.5.4 08/17/2017 > > ``` > handsomejack:~$ more /proc/version > Linux v

Re: [RFC 00/16] KVM protected memory extension

2020-05-26 Thread Mike Rapoport
On Tue, May 26, 2020 at 01:16:14PM +0300, Liran Alon wrote: > > On 26/05/2020 9:17, Mike Rapoport wrote: > > On Mon, May 25, 2020 at 04:47:18PM +0300, Liran Alon wrote: > > > On 22/05/2020 15:51, Kirill A. Shutemov wrote: > > > > > Out of curiosity, do we actually have some numbers for the "non-t

Re: [PATCH 1/2] arm64: dts: Add a device tree for the Librem5 phone

2020-05-26 Thread Daniel Baluta
On Thu, May 14, 2020 at 7:02 PM Martin Kepplinger wrote: > > From: "Angus Ainslie (Purism)" > > Add a devicetree description for the Librem 5 phone. The early batches > that have been sold are supported as well as the mass-produced device > available later this year, see https://puri.sm/products/

Re: [PATCH 1/2] hwmon: pwm-fan: Add profile support and add remove module support

2020-05-26 Thread Guenter Roeck
On 5/25/20 10:06 PM, Sandipan Patra wrote: > This change has 2 parts: > 1. Add support for profiles mode settings. > This allows different fan settings for trip point temp/hyst/pwm. > T194 has multiple fan-profiles support. > > 2. Add pwm-fan remove support. This is essential since the con

Re: [PATCH v3 07/18] nitro_enclaves: Init misc device providing the ioctl interface

2020-05-26 Thread Alexander Graf
On 26.05.20 08:51, Greg KH wrote: On Tue, May 26, 2020 at 01:13:23AM +0300, Andra Paraschiv wrote: +#define NE "nitro_enclaves: " Again, no need for this. +#define NE_DEV_NAME "nitro_enclaves" KBUILD_MODNAME? +#define NE_IMAGE_LOAD_OFFSET (8 * 1024UL * 1024UL) + +static char *ne_cpus

Re: [PATCH v7 2/4] usb: dwc3: qcom: Add interconnect support in dwc3 driver

2020-05-26 Thread Felipe Balbi
Hi, Georgi Djakov writes: > On 26.05.20 14:04, Sandeep Maheswaram (Temp) wrote: >> Hi Felipe, >> >> Please let me know how to go forward with this patch (don't top-post!) > Please just add a patch to fix the allmodconfig error. Felipe has > suggested to introduce a separate patch which export

Re: [PATCH 1/2] hwmon: pwm-fan: Add profile support and add remove module support

2020-05-26 Thread Guenter Roeck
On 5/26/20 2:05 AM, Sandipan Patra wrote: > Hi Uwe, > > > >> -Original Message- >> From: Uwe Kleine-König >> Sent: Tuesday, May 26, 2020 12:35 PM >> To: Sandipan Patra >> Cc: Thierry Reding ; Jonathan Hunter >> ; ka...@wypas.org; jdelv...@suse.com; linux@roeck- >> us.net; robh...@kerne

Re: [greybus-dev] [PATCH] staging: greybus: loopback: fix a spelling error.

2020-05-26 Thread Alex Elder
On 5/25/20 1:10 AM, Till Varoquaux wrote: Successed -> succeeded. Signed-off-by: Till Varoquaux Looks good. Reviewed-by: Alex Elder --- drivers/staging/greybus/loopback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/greybus/loopback.c b/drivers/s

Re: [PATCH] mm/compaction: Fix the incorrect hole in fast_isolate_freepages()

2020-05-26 Thread David Hildenbrand
On 26.05.20 13:32, Mike Rapoport wrote: > Hello Baoquan, > > On Tue, May 26, 2020 at 04:45:43PM +0800, Baoquan He wrote: >> On 05/22/20 at 05:20pm, Mike Rapoport wrote: >>> Hello Baoquan, >>> >>> On Fri, May 22, 2020 at 03:25:24PM +0800, Baoquan He wrote: On 05/22/20 at 03:01pm, Baoquan He wr

Re: [RFC PATCH 2/7] KVM: arm64: Set DBM bit of PTEs if hw DBM enabled

2020-05-26 Thread Catalin Marinas
On Mon, May 25, 2020 at 07:24:01PM +0800, Keqian Zhu wrote: > diff --git a/arch/arm64/include/asm/pgtable-prot.h > b/arch/arm64/include/asm/pgtable-prot.h > index 1305e28225fc..f9910ba2afd8 100644 > --- a/arch/arm64/include/asm/pgtable-prot.h > +++ b/arch/arm64/include/asm/pgtable-prot.h > @@ -79,

[PATCH 0/2] Introduce PCI_FIXUP_IOMMU

2020-05-26 Thread Zhangfei Gao
Some platform devices appear as PCI but are actually on the AMBA bus, and they need fixup in drivers/pci/quirks.c handling iommu_fwnode. Here introducing PCI_FIXUP_IOMMU, which is called after iommu_fwnode is allocated, instead of reusing PCI_FIXUP_FINAL since it will slow down iommu probing as all

[PATCH 1/2] PCI: Introduce PCI_FIXUP_IOMMU

2020-05-26 Thread Zhangfei Gao
Some platform devices appear as PCI but are actually on the AMBA bus, and they need fixup in drivers/pci/quirks.c handling iommu_fwnode. Here introducing PCI_FIXUP_IOMMU, which is called after iommu_fwnode is allocated, instead of reusing PCI_FIXUP_FINAL since it will slow down iommu probing as all

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