[PATCH] usb: cdns3: platform_get_irq_byname_optional instead platform_get_irq_byname

2020-09-29 Thread Pawel Laszczak
To avoid duplicate error information patch replaces platform_get_irq_byname into platform_get_irq_byname_optional. A change was suggested during reviewing CDNSP driver by Chunfeng Yun. Signed-off-by: Pawel Laszczak --- drivers/usb/cdns3/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deleti

Re: [PATCH v3] RISC-V: Check clint_time_val before use

2020-09-29 Thread Palmer Dabbelt
On Sat, 26 Sep 2020 22:52:19 PDT (-0700), Damien Le Moal wrote: On Sun, 2020-09-27 at 11:09 +0530, Anup Patel wrote: The NoMMU kernel is broken for QEMU virt machine from Linux-5.9-rc6 because clint_time_val is used even before CLINT driver is probed at following places: 1. rand_initialize() cal

Re: [PATCH 2/3] ubifs: Don't parse authentication mount options in remount process

2020-09-29 Thread Sascha Hauer
On Tue, Sep 29, 2020 at 08:45:30PM +0800, Zhihao Cheng wrote: > There is no need to dump authentication options while remounting, > because authentication initialization can only be doing once in > the first mount process. Dumping authentication mount options in > remount process may cause memory l

Re: [PATCH] pwm: sysfs: Set class on pwm devices

2020-09-29 Thread Uwe Kleine-König
Hello Lars, On Tue, Sep 29, 2020 at 02:19:53PM +0200, poesc...@lemonage.de wrote: > From: Lars Poeschel > > This adds a class to exported pwm devices. > Exporting a pwm through sysfs did not yield udev events. The I wonder what is your use-case here. This for sure also has a place to be mention

Re: [PATCH v13 08/15] mtd: spi-nor: core: do 2 byte reads for SR and FSR in DTR mode

2020-09-29 Thread Pratyush Yadav
On 30/09/20 06:50AM, tudor.amba...@microchip.com wrote: > On 9/16/20 3:44 PM, Pratyush Yadav wrote: > > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > > content is safe > > > > Some controllers, like the cadence qspi controller, have trouble reading > > only 1 byte i

Re: [Intel-wired-lan] [PATCH v4] e1000e: Increase polling timeout on MDIC ready bit

2020-09-29 Thread Vitaly Lifshits
On 9/29/2020 18:08, Kai-Heng Feng wrote: Hello Kai-Heng, On Sep 29, 2020, at 21:46, Neftin, Sasha wrote: Hello Kai-Heng, On 9/29/2020 16:31, Kai-Heng Feng wrote: Hi Sasha, On Sep 29, 2020, at 21:08, Neftin, Sasha wrote: On 9/28/2020 11:36, Kai-Heng Feng wrote: We are seeing the followi

Re: [PATCH 04/10] rpmsg: Move common structures and defines to headers

2020-09-29 Thread Guennadi Liakhovetski
On Mon, Sep 21, 2020 at 06:09:54PM -0600, Mathieu Poirier wrote: > From: Guennadi Liakhovetski > > virtio_rpmsg_bus.c keeps RPMsg protocol structure declarations and > common defines like the ones, needed for name-space announcements, > internal. Move them to common headers instead. > > Signed-o

Re: [PATCH v4 0/9] Update to zstd-1.4.6

2020-09-29 Thread Christoph Hellwig
As you keep resend this I keep retelling you that should not do it. Please provide a proper Linux API, and switch to that. Versioned APIs have absolutely no business in the Linux kernel. On Tue, Sep 29, 2020 at 11:53:09PM -0700, Nick Terrell wrote: > From: Nick Terrell > > This patchset upgrade

Re: [PATCH v13 06/15] mtd: spi-nor: sfdp: parse xSPI Profile 1.0 table

2020-09-29 Thread Pratyush Yadav
On 30/09/20 06:44AM, tudor.amba...@microchip.com wrote: > On 9/16/20 3:44 PM, Pratyush Yadav wrote: > > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > > content is safe > > > > This table is indication that the flash is xSPI compliant and hence > > supports octal DTR

Re: [PATCH] x86/uv/time: Replace one-element array and save heap space

2020-09-29 Thread Thomas Gleixner
On Mon, May 18 2020 at 14:01, Gustavo A. R. Silva wrote: > The current codebase makes use of one-element arrays in the following > form: > > struct something { > int length; > u8 data[1]; > }; > > struct something *instance; > > instance = kmalloc(sizeof(*instance) + size, GFP_KERNEL); > in

[PATCH v4 8/9] lib: unzstd: Switch to the zstd-1.4.6 API

2020-09-29 Thread Nick Terrell
From: Nick Terrell Move away from the compatibility wrapper to the zstd-1.4.6 API. This code is functionally equivalent. Signed-off-by: Nick Terrell --- lib/decompress_unzstd.c | 40 ++-- 1 file changed, 14 insertions(+), 26 deletions(-) diff --git a/lib/de

[PATCH v4 9/9] lib: zstd: Remove zstd compatibility wrapper

2020-09-29 Thread Nick Terrell
From: Nick Terrell All callers have been transitioned to the new zstd-1.4.6 API. There are no more callers of the zstd compatibility wrapper, so delete it. Signed-off-by: Nick Terrell --- include/linux/zstd_compat.h | 116 1 file changed, 116 deletions(-)

[PATCH v4 5/9] btrfs: zstd: Switch to the zstd-1.4.6 API

2020-09-29 Thread Nick Terrell
From: Nick Terrell Move away from the compatibility wrapper to the zstd-1.4.6 API. This code is functionally equivalent. Signed-off-by: Nick Terrell --- fs/btrfs/zstd.c | 48 1 file changed, 28 insertions(+), 20 deletions(-) diff --git a/fs/btr

[PATCH v4 7/9] squashfs: zstd: Switch to the zstd-1.4.6 API

2020-09-29 Thread Nick Terrell
From: Nick Terrell Move away from the compatibility wrapper to the zstd-1.4.6 API. This code is functionally equivalent. Signed-off-by: Nick Terrell --- fs/squashfs/zstd_wrapper.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/fs/squashfs/zstd_wrapper.c b/fs/squas

Re: [PATCH v13 08/15] mtd: spi-nor: core: do 2 byte reads for SR and FSR in DTR mode

2020-09-29 Thread Tudor.Ambarus
On 9/16/20 3:44 PM, Pratyush Yadav wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > content is safe > > Some controllers, like the cadence qspi controller, have trouble reading > only 1 byte in DTR mode. So, do 2 byte reads for SR and FSR commands in did you

[PATCH v4 6/9] f2fs: zstd: Switch to the zstd-1.4.6 API

2020-09-29 Thread Nick Terrell
From: Nick Terrell Move away from the compatibility wrapper to the zstd-1.4.6 API. This code is more efficient because it uses the single-pass API instead of the streaming API. The streaming API is not necessary because the whole input and output buffers are available. This saves memory because w

[PATCH v4 4/9] crypto: zstd: Switch to zstd-1.4.6 API

2020-09-29 Thread Nick Terrell
From: Nick Terrell Move away from the compatibility wrapper to the zstd-1.4.6 API. This code is functionally equivalent. Signed-off-by: Nick Terrell --- crypto/zstd.c | 24 +++- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/crypto/zstd.c b/crypto/zstd.c in

[PATCH v4 1/9] lib: zstd: Add zstd compatibility wrapper

2020-09-29 Thread Nick Terrell
From: Nick Terrell Adds zstd_compat.h which provides the necessary functions from the current zstd.h API. It is only active for zstd versions 1.4.6 and newer. That means it is disabled currently, but will become active when a later patch in this series updates the zstd library in the kernel to 1.

[PATCH v4 0/9] Update to zstd-1.4.6

2020-09-29 Thread Nick Terrell
From: Nick Terrell This patchset upgrades the zstd library to the latest upstream release. The current zstd version in the kernel is a modified version of upstream zstd-1.3.1. At the time it was integrated, zstd wasn't ready to be used in the kernel as-is. But, it is now possible to use upstream

[PATCH v4 2/9] lib: zstd: Add decompress_sources.h for decompress_unzstd

2020-09-29 Thread Nick Terrell
From: Nick Terrell Adds decompress_sources.h which includes every .c file necessary for zstd decompression. This is used in decompress_unzstd.c so the internal structure of the library isn't exposed. This allows us to upgrade the zstd library version without modifying any callers. Instead we jus

[PATCH net v1] net: phy: realtek: Modify 2.5G PHY name to RTL8226

2020-09-29 Thread Willy Liu
Realtek single-chip Ethernet PHY solutions can be separated as below: 10M/100Mbps: RTL8201X 1Gbps: RTL8211X 2.5Gbps: RTL8226/RTL8221X RTL8226 is the first version for realtek that compatible 2.5Gbps single PHY. Since RTL8226 is single port only, realtek changes its name to RTL8221B from the second

Re: [PATCH V6] serial: qcom_geni_serial: To correct QUP Version detection logic

2020-09-29 Thread Akash Asthana
On 9/30/2020 11:35 AM, Paras Sharma wrote: For QUP IP versions 2.5 and above the oversampling rate is halved from 32 to 16. Commit ce734600545f ("tty: serial: qcom_geni_serial: Update the oversampling rate") is pushed to handle this scenario. But the existing logic is failing to classify QUP V

Re: [PATCH bpf-next v4 0/6] bpf: BTF support for ksyms

2020-09-29 Thread Hao Luo
Ah, this is the bug in pahole described in https://lkml.org/lkml/2020/8/20/1862. I proposed a fix [1] but it hasn't reached pahole's master branch. Let me ask Arnaldo to see if he is OK merging it. [1] https://www.spinics.net/lists/dwarves/msg00451.html On Tue, Sep 29, 2020 at 9:36 PM Alexei Star

Re: [PATCH v13 07/15] mtd: spi-nor: core: use dummy cycle and address width info from SFDP

2020-09-29 Thread Tudor.Ambarus
On 9/16/20 3:44 PM, Pratyush Yadav wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > content is safe > > The xSPI Profile 1.0 table specifies how many dummy cycles and address > bytes are needed for the Read Status Register command in octal DTR mode. > Use that

Re: [PATCH v13 06/15] mtd: spi-nor: sfdp: parse xSPI Profile 1.0 table

2020-09-29 Thread Tudor.Ambarus
On 9/16/20 3:44 PM, Pratyush Yadav wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > content is safe > > This table is indication that the flash is xSPI compliant and hence > supports octal DTR mode. Extract information like the fast read opcode, > dummy cycles

Re: [PATCH 3/3] ubifs: mount_ubifs: Release authentication resource in error handling path

2020-09-29 Thread Sascha Hauer
On Tue, Sep 29, 2020 at 08:45:31PM +0800, Zhihao Cheng wrote: > Release the authentication related resource in some error handling > branches in mount_ubifs(). > > Signed-off-by: Zhihao Cheng > Cc: # 4.20+ > Fixes: d8a22773a12c6d7 ("ubifs: Enable authentication support") Reviewed-by: Sascha Ha

Re: [PATCH v2 1/3] memory: tegra: Add helper function tegra_get_memory_controller

2020-09-29 Thread Nicolin Chen
On Wed, Sep 30, 2020 at 09:32:20AM +0300, Dmitry Osipenko wrote: > 30.09.2020 08:44, Nicolin Chen пишет: > > On Wed, Sep 30, 2020 at 08:12:10AM +0300, Dmitry Osipenko wrote: > >> 30.09.2020 03:30, Nicolin Chen пишет: > >> ... > >>> int tegra_mc_write_emem_configuration(struct tegra_mc *mc, unsigne

[PATCH v3 0/2] Qualcomm's lpass device tree changes

2020-09-29 Thread Srinivasa Rao Mandadapu
These patches are device tree changes to support audio over DP. It includes changes of HDMI reg, interrupt and iommu and hdmi dai link. These patches depends on the lpass I2S patch series and DP dts node patch series: -- https://patchwork.kernel.org/patch/11785073/ -- https://patchwork.kernel.

[PATCH v3 1/2] arm64: dts: qcom: sc7180: Update lpass cpu node for audio over dp

2020-09-29 Thread Srinivasa Rao Mandadapu
From: V Sujith Kumar Reddy Updaate lpass dts node with HDMI reg, interrupt and iommu for supporting audio over dp. Signed-off-by: Srinivasa Rao Mandadapu Signed-off-by: V Sujith Kumar Reddy --- arch/arm64/boot/dts/qcom/sc7180.dtsi | 17 ++--- 1 file changed, 10 insertions(+), 7 de

[PATCH v3 2/2] arm64: dts: qcom: sc7180-trogdor: Add lpass dai link for HDMI

2020-09-29 Thread Srinivasa Rao Mandadapu
From: V Sujith Kumar Reddy Add dai link in sc7180-trogdor.dtsi for supporting audio over DP Signed-off-by: V Sujith Kumar Reddy Signed-off-by: Srinivasa Rao Mandadapu --- arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm

Re: [patch V2 00/46] x86, PCI, XEN, genirq ...: Prepare for device MSI

2020-09-29 Thread Thomas Gleixner
On Tue, Sep 29 2020 at 16:03, Megha Dey wrote: > On 8/26/2020 4:16 AM, Thomas Gleixner wrote: >> #9 is obviously just for the folks interested in IMS >> > > I see that the tip tree (as of 9/29) has most of these patches but > notice that the DEV_MSI related patches > > haven't made it. I have te

[PATCH v8 4/7] Asoc: qcom: lpass:Update lpaif_dmactl members order

2020-09-29 Thread Srinivasa Rao Mandadapu
From: V Sujith Kumar Reddy Update the lpaif_dmactl struct members order to match HDMI reg map members sequence. Separate Interface reg map as it is used for I2S control but not for HDMI control, to make use of bulk API, which makes code more readable. Signed-off-by: V Sujith Kumar Reddy Reviewe

[PATCH v8 2/7] ASoC: dt-bindings: Add dt binding for lpass hdmi

2020-09-29 Thread Srinivasa Rao Mandadapu
From: V Sujith Kumar Reddy Adds bindings for lpass hdmi interface which can support audio path over dp. Signed-off-by: V Sujith Kumar Reddy Reviewed-by: Rob Herring Signed-off-by: Srinivasa Rao --- .../devicetree/bindings/sound/qcom,lpass-cpu.yaml | 74 +++--- 1 file changed

[PATCH v8 5/7] ASoC: qcom: Add support for lpass hdmi driver

2020-09-29 Thread Srinivasa Rao Mandadapu
From: V Sujith Kumar Reddy Upadate lpass cpu and platform driver to support audio over dp. Also add lpass-hdmi.c and lpass-hdmi.h. Signed-off-by: V Sujith Kumar Reddy Signed-off-by: Srinivasa Rao --- sound/soc/qcom/Kconfig | 5 + sound/soc/qcom/Makefile | 2 + sound/soc

[PATCH v8 7/7] ASoC: qcom: sc7180: Add support for audio over DP

2020-09-29 Thread Srinivasa Rao Mandadapu
From: V Sujith Kumar Reddy Add support for audio playback over DP in lpass sc7180 platform driver. Update lpass_variant structure for hdmi data configuaration. Signed-off-by: V Sujith Kumar Reddy Signed-off-by: Srinivasa Rao --- sound/soc/qcom/lpass-sc7180.c | 116

[PATCH v8 3/7] Asoc:qcom:lpass-cpu:Update dts property read API

2020-09-29 Thread Srinivasa Rao Mandadapu
From: V Sujith Kumar Reddy Update dts property read API call with platform get property by name, as it make code more readable and avoid conflicts when array of properties to be used. Signed-off-by: V Sujith Kumar Reddy Reviewed-by: Srinivas Kandagatla Signed-off-by: Srinivasa Rao --- sound/

[PATCH v8 6/7] Asoc: qcom: lpass-platform : Increase buffer size

2020-09-29 Thread Srinivasa Rao Mandadapu
From: V Sujith Kumar Reddy Increase buffer size to support audio over DP. Signed-off-by: V Sujith Kumar Reddy Signed-off-by: Srinivasa Rao Mandadapu --- sound/soc/qcom/lpass-platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/qcom/lpass-platform.c b/sound/

[PATCH v8 1/7] ASoC: Add sc7180-lpass binding header hdmi define

2020-09-29 Thread Srinivasa Rao Mandadapu
From: V Sujith Kumar Reddy Add header defining hdmi dai-id for SC7180 lpass soc in dt bindings. Signed-off-by: V Sujith Kumar Reddy Acked-by: Rob Herring Signed-off-by: Srinivasa Rao --- include/dt-bindings/sound/sc7180-lpass.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/dt-b

Re: [PATCH v2 2/3] iommu/tegra-smmu: Rework .probe_device and .attach_dev

2020-09-29 Thread Nicolin Chen
On Wed, Sep 30, 2020 at 08:20:50AM +0300, Dmitry Osipenko wrote: > 30.09.2020 08:10, Dmitry Osipenko пишет: > > 30.09.2020 03:30, Nicolin Chen пишет: > >> static void tegra_smmu_release_device(struct device *dev) > > > > The tegra_get_memory_controller() uses of_find_device_by_node(), hence > > t

[PATCH v8 0/7] Qualcomm's lpass-hdmi ASoC driver to support audio over dp port

2020-09-29 Thread Srinivasa Rao Mandadapu
These patches are to support audio over DP port on Qualcomm's SC7180 LPASS Asoc. It includes machine driver, cpu driver, platform driver updates for HDMI path support, device tree documention, lpass variant structure optimization and configuration changes. These patches depends on the DP patch se

Re: [PATCH] habanalabs/gaudi: use correct define for qman init

2020-09-29 Thread Greg Kroah-Hartman
On Tue, Sep 29, 2020 at 11:58:22PM +0300, Oded Gabbay wrote: > On Fri, Sep 25, 2020 at 8:14 PM Oded Gabbay wrote: > > > > There was a copy-paste error, and the wrong define was used for > > initializing the QMAN. > > > > Signed-off-by: Oded Gabbay > > --- > > drivers/misc/habanalabs/gaudi/gaudi.

[PATCH 5/9] media: v4l2-subdev.rst: get rid of a duplicatd kernel-doc markup

2020-09-29 Thread Mauro Carvalho Chehab
There are two kernel-doc markups for include/media/v4l2-async.h, one at v4l2-async.rst and another one at v4l2-subdev.rst. Sphinx 3.x checks it and complains for duplicated symbols. So, get rid of one of them. Signed-off-by: Mauro Carvalho Chehab --- Documentation/driver-api/media/v4l2-subdev.

[PATCH 6/9] media: cec-core.rst: fix warnings with Sphinx 3.0+

2020-09-29 Thread Mauro Carvalho Chehab
The new C domain code on Sphinx 3 is a lot more pedantic. It only accepts real functions declared as c:function. So, declarations like this are not valid: .. c:function:: int (*adap_enable)(struct cec_adapter *adap, bool enable); Also, no blank lines are allowed after "..

Re: [PATCH 02/10] rpmsg: core: Add channel creation internal API

2020-09-29 Thread Guennadi Liakhovetski
On Mon, Sep 21, 2020 at 06:09:52PM -0600, Mathieu Poirier wrote: > From: Arnaud Pouliquen > > Add the channel creation API as a first step to be able to define the > name service announcement as a rpmsg driver independent from the RPMsg > virtio bus. > > Signed-off-by: Arnaud Pouliquen > --- >

[PATCH 0/9] Address several issues when building media docs with Sphinx 3.x

2020-09-29 Thread Mauro Carvalho Chehab
The C domain parser was re-written on Sphinx 3.x. It is now a lot more pedantic than on past versions, and has specific macros for addressing C namespaces and documenting data types, like c:struct, c:enum, c:macro, etc. I'm currently working on addressing the issues upstream, as some changes at

[PATCH 1/9] media: camera-sensor.rst: fix a doc build warning

2020-09-29 Thread Mauro Carvalho Chehab
Documentation/driver-api/media/camera-sensor.rst:123: WARNING: Inline literal start-string without end-string. There's a missing blank space over there. Signed-off-by: Mauro Carvalho Chehab --- Documentation/driver-api/media/camera-sensor.rst | 2 +- 1 file changed, 1 insertion(+), 1 d

[PATCH 4/9] media: dvb-frontends: remove a clone of a kernel-doc markup at zd1301_demod.h

2020-09-29 Thread Mauro Carvalho Chehab
The same markup are there twice, causing warnings with Sphinx 3.x. Drop the second copy. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/dvb-frontends/zd1301_demod.h | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/media/dvb-frontends/zd1301_demod.h b/drivers/media/dvb-fr

[PATCH 8/9] media: hist-v4l2.rst: remove struct duplication

2020-09-29 Thread Mauro Carvalho Chehab
There are several places there where struct was used twice, on multiple lines, like: struct struct ``v4l2_zoomcap`` That's probably done during the DocBook to ReSt conversion. Probably the cases where "struct struct" were at the same line was addressed back then, but the multi-li

[PATCH 2/9] media: glossary.rst: use the right case for glossary entries

2020-09-29 Thread Mauro Carvalho Chehab
Sphinx 3.x is pedantic with glossary entries: Documentation/userspace-api/media/glossary.rst:17: WARNING: term device driver not found in case sensitive match.made a reference to Device Driver instead. Documentation/userspace-api/media/glossary.rst:59: WARNING: term media hardware not f

[PATCH 7/9] media: v4l2-subdev.h: fix a kernel-doc markup

2020-09-29 Thread Mauro Carvalho Chehab
As reported by Sphinx: ./Documentation/driver-api/media/v4l2-subdev:490: ./include/media/v4l2-subdev.h:384: WARNING: Unparseable C cross-reference: 'struct' Invalid C declaration: Expected identifier in nested name, got keyword: struct [error at 6] struct ---

[PATCH 9/9] media: hist-v4l2.rst: remove :c:`type` from structs and enums

2020-09-29 Thread Mauro Carvalho Chehab
Using struct|enum :c:`type` here sounds a bad idea, as it may be documenting data types that were already removed. Also, it makes the file harder to read. As automarkup.py should be able to handle those cases, let's just get rid of the markup. While not required by automarkup, in order to make ea

[PATCH 3/9] media: docs: ipu3.rst: rely at automarkup extension

2020-09-29 Thread Mauro Carvalho Chehab
There are several :c:type: definitions there, in order to do cross-references with the driver's documentation. Those are broken when docs are built with Sphinx 3.x, as it would require :c:struct: instead. For Sphinx < 3.x, the automarkup.py extension is able to do the replacement already, and a f

Re: [PATCH v2 2/3] iommu/tegra-smmu: Rework .probe_device and .attach_dev

2020-09-29 Thread Dmitry Osipenko
30.09.2020 09:13, Nicolin Chen пишет: > On Wed, Sep 30, 2020 at 09:10:38AM +0300, Dmitry Osipenko wrote: >> 30.09.2020 08:49, Nicolin Chen пишет: >>> On Wed, Sep 30, 2020 at 08:11:52AM +0300, Dmitry Osipenko wrote: 30.09.2020 03:30, Nicolin Chen пишет: > + /* An invalid mc pointer means mc

Re: [PATCH v2 1/3] memory: tegra: Add helper function tegra_get_memory_controller

2020-09-29 Thread Dmitry Osipenko
30.09.2020 08:44, Nicolin Chen пишет: > On Wed, Sep 30, 2020 at 08:12:10AM +0300, Dmitry Osipenko wrote: >> 30.09.2020 03:30, Nicolin Chen пишет: >> ... >>> int tegra_mc_write_emem_configuration(struct tegra_mc *mc, unsigned long >>> rate); >>> unsigned int tegra_mc_get_emem_device_count(struct

Re: [PATCH 00/22] Introduce the TDP MMU

2020-09-29 Thread Paolo Bonzini
On 30/09/20 08:19, Sean Christopherson wrote: > In case Paolo is feeling trigger happy, I'm going to try and get through the > second half of this series tomorrow. I'm indeed feeling trigger happy about this series, but I wasn't planning to include it in kvm.git this week. I'll have my version po

Re: [PATCH 07/22] kvm: mmu: Support zapping SPTEs in the TDP MMU

2020-09-29 Thread Paolo Bonzini
On 30/09/20 08:15, Sean Christopherson wrote: >> kvm_zap_obsolete_pages(kvm); >> + >> +if (kvm->arch.tdp_mmu_enabled) >> +kvm_tdp_mmu_zap_all(kvm); > > Haven't looked into how this works; is kvm_tdp_mmu_zap_all() additive to > what is done by the legacy zapping, or is it a rep

linux-next: manual merge of the kvm-arm tree with the arm64 tree

2020-09-29 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the kvm-arm tree got a conflict in: arch/arm64/kvm/hyp/Makefile between commit: 5359a87d5bda ("KVM: arm64: Replace CONFIG_KVM_INDIRECT_VECTORS with CONFIG_RANDOMIZE_BASE") 9ef2b48be9bb ("KVM: arm64: Allow patching EL2 vectors even with KASLR is not en

Re: [PATCH 04/22] kvm: mmu: Allocate and free TDP MMU roots

2020-09-29 Thread Paolo Bonzini
On 30/09/20 08:06, Sean Christopherson wrote: >> +static struct kvm_mmu_page *alloc_tdp_mmu_root(struct kvm_vcpu *vcpu, >> + union kvm_mmu_page_role role) >> +{ >> +struct kvm_mmu_page *new_root; >> +struct kvm_mmu_page *root; >> + >> +new_root

Re: [PATCH v2 2/3] iommu/tegra-smmu: Rework .probe_device and .attach_dev

2020-09-29 Thread Nicolin Chen
On Wed, Sep 30, 2020 at 08:59:45AM +0300, Dmitry Osipenko wrote: > 30.09.2020 08:41, Nicolin Chen пишет: > > On Wed, Sep 30, 2020 at 08:39:54AM +0300, Dmitry Osipenko wrote: > >> 30.09.2020 03:30, Nicolin Chen пишет: > >>> static int tegra_smmu_attach_dev(struct iommu_domain *domain, > >>>

Re: [PATCH 02/22] kvm: mmu: Introduce tdp_iter

2020-09-29 Thread Paolo Bonzini
On 30/09/20 07:24, Sean Christopherson wrote: > Maybe use the params, if only to avoid the line wrap? > > iter->gfn = goal_gfn - (goal_gfn % KVM_PAGES_PER_HPAGE(root_level)); > > Actually, peeking further into the file, this calculation is repeated in both > try_step_up and try_step_down,

Re: [patch V2 21/36] net: usb: kaweth: Replace kaweth_control() with usb_control_msg()

2020-09-29 Thread Greg Kroah-Hartman
On Tue, Sep 29, 2020 at 10:25:30PM +0200, Thomas Gleixner wrote: > From: Sebastian Andrzej Siewior > > kaweth_control() is almost the same as usb_control_msg() except for the > memory allocation mode (GFP_ATOMIC vs GFP_NOIO) and the in_interrupt() > check. > > All the invocations of kaweth_contr

Re: [PATCH 0/4] Remove LPC register partitioning

2020-09-29 Thread Andrew Jeffery
On Mon, 28 Sep 2020, at 17:13, Ryan Chen wrote: > Hello Joel & Andrew, > Those patches are more organize for ASPEED SOC LPC register layout. > Does those patches have any feedback? I support getting the problem fixed. However, the series also needs to fix the LPC devicetree bindin

Re: [PATCH 00/22] Introduce the TDP MMU

2020-09-29 Thread Sean Christopherson
In case Paolo is feeling trigger happy, I'm going to try and get through the second half of this series tomorrow.

Re: [PATCH v2 2/3] iommu/tegra-smmu: Rework .probe_device and .attach_dev

2020-09-29 Thread Nicolin Chen
On Wed, Sep 30, 2020 at 09:10:38AM +0300, Dmitry Osipenko wrote: > 30.09.2020 08:49, Nicolin Chen пишет: > > On Wed, Sep 30, 2020 at 08:11:52AM +0300, Dmitry Osipenko wrote: > >> 30.09.2020 03:30, Nicolin Chen пишет: > >>> + /* An invalid mc pointer means mc and smmu drivers are not ready */ > >>>

Re: [PATCH v13 05/15] mtd: spi-nor: sfdp: get command opcode extension type from BFPT

2020-09-29 Thread Tudor.Ambarus
On 9/16/20 3:44 PM, Pratyush Yadav wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > content is safe > > Some devices in DTR mode expect an extra command byte called the > extension. The extension can either be same as the opcode, bitwise > inverse of the opcod

Re: [PATCH 07/22] kvm: mmu: Support zapping SPTEs in the TDP MMU

2020-09-29 Thread Sean Christopherson
On Fri, Sep 25, 2020 at 02:22:47PM -0700, Ben Gardon wrote: > Add functions to zap SPTEs to the TDP MMU. These are needed to tear down > TDP MMU roots properly and implement other MMU functions which require > tearing down mappings. Future patches will add functions to populate the > page tables, b

Re: [RFC PATCH] tee: add support for application-based session login methods

2020-09-29 Thread Jens Wiklander
On Wed, Sep 30, 2020 at 05:01:01AM +0300, Elvira Khabirova wrote: > On Mon, 28 Sep 2020 15:43:47 +0200 > Jens Wiklander wrote: > > > Hi Elvira, > > > > On Thu, Sep 17, 2020 at 06:38:03PM +0300, Elvira Khabirova wrote: > > > GP TEE Client API in addition to login methods already supported > > > i

Re: [PATCH 06/22] kvm: mmu: Make address space ID a property of memslots

2020-09-29 Thread Sean Christopherson
On Fri, Sep 25, 2020 at 02:22:46PM -0700, Ben Gardon wrote: > Save address space ID as a field in each memslot so that functions that > do not use rmaps (which implicitly encode the id) can handle multiple > address spaces correctly. > > Tested by running kvm-unit-tests and KVM selftests on an Int

Re: [PATCH v2 2/3] iommu/tegra-smmu: Rework .probe_device and .attach_dev

2020-09-29 Thread Dmitry Osipenko
30.09.2020 08:49, Nicolin Chen пишет: > On Wed, Sep 30, 2020 at 08:11:52AM +0300, Dmitry Osipenko wrote: >> 30.09.2020 03:30, Nicolin Chen пишет: >>> + /* An invalid mc pointer means mc and smmu drivers are not ready */ >>> + if (IS_ERR_OR_NULL(mc)) >> >> tegra_get_memory_controller() doesn't r

[PATCH V6] serial: qcom_geni_serial: To correct QUP Version detection logic

2020-09-29 Thread Paras Sharma
For QUP IP versions 2.5 and above the oversampling rate is halved from 32 to 16. Commit ce734600545f ("tty: serial: qcom_geni_serial: Update the oversampling rate") is pushed to handle this scenario. But the existing logic is failing to classify QUP Version 3.0 into the correct group ( 2.5 and abo

Re: [PATCH 04/22] kvm: mmu: Allocate and free TDP MMU roots

2020-09-29 Thread Sean Christopherson
On Fri, Sep 25, 2020 at 02:22:44PM -0700, Ben Gardon wrote: static u64 __read_mostly shadow_nx_mask; > @@ -3597,10 +3592,14 @@ static void mmu_free_root_page(struct kvm *kvm, hpa_t > *root_hpa, > if (!VALID_PAGE(*root_hpa)) > return; > > - sp = to_shadow_page(*root_hpa

[RFC V2] mm/vmstat: Add events for HugeTLB migration

2020-09-29 Thread Anshuman Khandual
Add following new vmstat events which will track HugeTLB page migration. 1. HUGETLB_MIGRATION_SUCCESS 2. HUGETLB_MIGRATION_FAILURE It follows the existing semantics to accommodate HugeTLB subpages in total page migration statistics. While here, this updates current trace event 'mm_migrate_pages'

Re: [PATCH v2 3/3] iommu/tegra-smmu: Add PCI support

2020-09-29 Thread Dmitry Osipenko
30.09.2020 08:34, Nicolin Chen пишет: > On Wed, Sep 30, 2020 at 08:10:35AM +0300, Dmitry Osipenko wrote: >> 30.09.2020 03:30, Nicolin Chen пишет: >>> void tegra_smmu_remove(struct tegra_smmu *smmu) >>> { >>> + bus_set_iommu(&platform_bus_type, NULL); >> >> Why only platform_bus? Is this really

Re: [PATCH v2 2/3] iommu/tegra-smmu: Rework .probe_device and .attach_dev

2020-09-29 Thread Dmitry Osipenko
30.09.2020 08:41, Nicolin Chen пишет: > On Wed, Sep 30, 2020 at 08:39:54AM +0300, Dmitry Osipenko wrote: >> 30.09.2020 03:30, Nicolin Chen пишет: >>> static int tegra_smmu_attach_dev(struct iommu_domain *domain, >>> struct device *dev) >>> { >>> + struct iommu_fwspe

Re: [PATCH v2 2/2] iommu/iova: Free global iova rcache on iova alloc failure

2020-09-29 Thread Vijayanand Jitta
On 9/28/2020 6:11 PM, Vijayanand Jitta wrote: > > > On 9/18/2020 8:11 PM, Robin Murphy wrote: >> On 2020-08-20 13:49, vji...@codeaurora.org wrote: >>> From: Vijayanand Jitta >>> >>> When ever an iova alloc request fails we free the iova >>> ranges present in the percpu iova rcaches and then r

Re: [PATCH 4/5] iio: adc: vf610_adc: Replace indio_dev->mlock with own device lock

2020-09-29 Thread Alexandru Ardelean
On Tue, Sep 29, 2020 at 7:15 PM Jonathan Cameron wrote: > > On Mon, 28 Sep 2020 16:13:32 +0300 > Mircea Caprioru wrote: > > > From: Sergiu Cuciurean > > > > As part of the general cleanup of indio_dev->mlock, this change replaces > > it with a local lock on the device's state structure. > > > >

Re: [PATCH v2 3/3] iommu/tegra-smmu: Add PCI support

2020-09-29 Thread Dmitry Osipenko
30.09.2020 08:29, Nicolin Chen пишет: > Hi Dmitry, > > On Wed, Sep 30, 2020 at 08:10:07AM +0300, Dmitry Osipenko wrote: >> 30.09.2020 03:30, Nicolin Chen пишет: >>> - group->group = iommu_group_alloc(); >>> + group->group = pci ? pci_device_group(dev) : iommu_group_alloc(); >> >> This will be

[PATCH v2 2/4] iio: adc: at91_adc: const-ify some driver data

2020-09-29 Thread Alexandru Ardelean
The main intent is to get rid of the cast for the void-pointer returned by of_device_get_match_data(). This requires const-ifying the 'caps' and 'registers' references on the at91_adc_state struct. The caps can be obtained also from the old platform_data (in the at91_adc_probe_pdata() function),

[PATCH v2 3/4] iio: adc: at91_adc: add Kconfig dependency on the OF symbol

2020-09-29 Thread Alexandru Ardelean
This tries to solve a warning reported by the lkp bot: >> drivers/iio/adc/at91_adc.c:1439:34: warning: unused variable >> 'at91_adc_dt_ids' [-Wunused-const-variable] static const struct of_device_id at91_adc_dt_ids[] = { ^ 1 warning generated. This shows

[PATCH v2 0/4] iio: adc: at91: misc driver cleanups

2020-09-29 Thread Alexandru Ardelean
This whole thing started because the lkp bot haunted me for a while with this build warning: >> drivers/iio/adc/at91_adc.c:1439:34: warning: unused variable >> 'at91_adc_dt_ids' [-Wunused-const-variable] static const struct of_device_id at91_adc_dt_ids[] = {

[PATCH v2 4/4] iio: adc: at91_adc: remove of_match_ptr() usage

2020-09-29 Thread Alexandru Ardelean
Since the driver should be allowed to build without OF support, the of_match_ptr() is redundant. Signed-off-by: Alexandru Ardelean --- drivers/iio/adc/at91_adc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/adc/at91_adc.c b/drivers/iio/adc/at91_adc.c index 7d84

[PATCH v2 1/4] iio: adc: at91_adc: use of_device_get_match_data() helper

2020-09-29 Thread Alexandru Ardelean
This is a small tidy-up. The of_device_get_match_data() helper retrieves the driver data from the OF table, without needed to explicitly know the table variable (since it can retrieve it from the driver object). Signed-off-by: Alexandru Ardelean --- drivers/iio/adc/at91_adc.c | 5 + 1 file c

Re: [PATCH v2 2/3] iommu/tegra-smmu: Rework .probe_device and .attach_dev

2020-09-29 Thread Nicolin Chen
On Wed, Sep 30, 2020 at 08:20:50AM +0300, Dmitry Osipenko wrote: > 30.09.2020 08:10, Dmitry Osipenko пишет: > > 30.09.2020 03:30, Nicolin Chen пишет: > >> static void tegra_smmu_release_device(struct device *dev) > > > > The tegra_get_memory_controller() uses of_find_device_by_node(), hence > > t

[tip: ras/core] x86/mce: Add Skylake quirk for patrol scrub reported errors

2020-09-29 Thread tip-bot2 for Borislav Petkov
The following commit has been merged into the ras/core branch of tip: Commit-ID: fd258dc4442c5c1c069c6b5b42bfe7d10cddda95 Gitweb: https://git.kernel.org/tip/fd258dc4442c5c1c069c6b5b42bfe7d10cddda95 Author:Borislav Petkov AuthorDate:Tue, 29 Sep 2020 19:13:12 -07:00 Committe

[tip: ras/core] x86/mce: Drop AMD-specific "DEFERRED" case from Intel severity rule list

2020-09-29 Thread tip-bot2 for Tony Luck
The following commit has been merged into the ras/core branch of tip: Commit-ID: ed9705e4ad1c19ae51ed0cb4c112f9eb6dfc69fc Gitweb: https://git.kernel.org/tip/ed9705e4ad1c19ae51ed0cb4c112f9eb6dfc69fc Author:Tony Luck AuthorDate:Tue, 29 Sep 2020 19:13:13 -07:00 Committer:

Re: [PATCH v2 2/3] iommu/tegra-smmu: Rework .probe_device and .attach_dev

2020-09-29 Thread Nicolin Chen
On Wed, Sep 30, 2020 at 08:11:52AM +0300, Dmitry Osipenko wrote: > 30.09.2020 03:30, Nicolin Chen пишет: > > + /* An invalid mc pointer means mc and smmu drivers are not ready */ > > + if (IS_ERR_OR_NULL(mc)) > > tegra_get_memory_controller() doesn't return NULL. Well, I don't want to assume

Re: [PATCH v2 1/3] memory: tegra: Add helper function tegra_get_memory_controller

2020-09-29 Thread Nicolin Chen
On Wed, Sep 30, 2020 at 08:12:10AM +0300, Dmitry Osipenko wrote: > 30.09.2020 03:30, Nicolin Chen пишет: > ... > > int tegra_mc_write_emem_configuration(struct tegra_mc *mc, unsigned long > > rate); > > unsigned int tegra_mc_get_emem_device_count(struct tegra_mc *mc); > > +struct tegra_mc *tegra

Re: [PATCH v2 2/3] iommu/tegra-smmu: Rework .probe_device and .attach_dev

2020-09-29 Thread Dmitry Osipenko
30.09.2020 08:39, Nicolin Chen пишет: > On Wed, Sep 30, 2020 at 08:24:02AM +0300, Dmitry Osipenko wrote: >> 30.09.2020 03:30, Nicolin Chen пишет: >>> + /* >>> +* IOMMU core allows -ENODEV return to carry on. So bypass any call >>> +* from bus_set_iommu() during tegra_smmu_probe(), as a de

Re: [PATCH v2 1/2] iommu/iova: Retry from last rb tree node if iova search fails

2020-09-29 Thread Vijayanand Jitta
On 9/18/2020 7:48 PM, Robin Murphy wrote: > On 2020-08-20 13:49, vji...@codeaurora.org wrote: >> From: Vijayanand Jitta >> >> When ever a new iova alloc request comes iova is always searched >> from the cached node and the nodes which are previous to cached >> node. So, even if there is free io

[PATCH v4 2/2] iommu/iova: Free global iova rcache on iova alloc failure

2020-09-29 Thread vjitta
From: Vijayanand Jitta When ever an iova alloc request fails we free the iova ranges present in the percpu iova rcaches and then retry but the global iova rcache is not freed as a result we could still see iova alloc failure even after retry as global rcache is holding the iova's which can cause

[PATCH v4 1/2] iommu/iova: Retry from last rb tree node if iova search fails

2020-09-29 Thread vjitta
From: Vijayanand Jitta When ever a new iova alloc request comes iova is always searched from the cached node and the nodes which are previous to cached node. So, even if there is free iova space available in the nodes which are next to the cached node iova allocation can still fail because of thi

Re: [PATCH v3 2/3] dmaengine: add peripheral configuration

2020-09-29 Thread Peter Ujfalusi
Hi Vinod, On 29/09/2020 11.06, Peter Ujfalusi wrote: > > I know that you want this to be as generic as much as it is possible, > but do we really want to? > GPIv2 will also handle I2S peripheral, other vendor's similar solution > would require different sets of parameters unique to their IPs? >

Re: [PATCH v2 2/3] iommu/tegra-smmu: Rework .probe_device and .attach_dev

2020-09-29 Thread Nicolin Chen
On Wed, Sep 30, 2020 at 08:39:54AM +0300, Dmitry Osipenko wrote: > 30.09.2020 03:30, Nicolin Chen пишет: > > static int tegra_smmu_attach_dev(struct iommu_domain *domain, > > struct device *dev) > > { > > + struct iommu_fwspec *fwspec = dev_iommu_fwspec_get(dev); >

Re: [PATCH v2 2/3] iommu/tegra-smmu: Rework .probe_device and .attach_dev

2020-09-29 Thread Nicolin Chen
On Wed, Sep 30, 2020 at 08:24:02AM +0300, Dmitry Osipenko wrote: > 30.09.2020 03:30, Nicolin Chen пишет: > > + /* > > +* IOMMU core allows -ENODEV return to carry on. So bypass any call > > +* from bus_set_iommu() during tegra_smmu_probe(), as a device will > > +* call in again via of

Re: [PATCH v2 3/3] iommu/tegra-smmu: Add PCI support

2020-09-29 Thread Nicolin Chen
On Wed, Sep 30, 2020 at 08:10:35AM +0300, Dmitry Osipenko wrote: > 30.09.2020 03:30, Nicolin Chen пишет: > > void tegra_smmu_remove(struct tegra_smmu *smmu) > > { > > + bus_set_iommu(&platform_bus_type, NULL); > > Why only platform_bus? Is this really needed at all? I see qcom_iommu.c file se

Re: [PATCH v2 2/3] iommu/tegra-smmu: Rework .probe_device and .attach_dev

2020-09-29 Thread Dmitry Osipenko
30.09.2020 03:30, Nicolin Chen пишет: > static int tegra_smmu_attach_dev(struct iommu_domain *domain, >struct device *dev) > { > + struct iommu_fwspec *fwspec = dev_iommu_fwspec_get(dev); > struct tegra_smmu *smmu = dev_iommu_priv_get(dev); > struct

Re: [PATCH v5] ipvs: adjust the debug info in function set_tcp_state

2020-09-29 Thread yue longguang
It's done. On Wed, Sep 30, 2020 at 1:08 PM Julian Anastasov wrote: > > > Hello, > > On Mon, 28 Sep 2020, longguang.yue wrote: > > > Outputting client,virtual,dst addresses info when tcp state changes, > > which makes the connection debug more clear > > > > Signed-off-by: longguang.yue

RE: [PATCH] PCI: layerscape: Change back to the default error response behavior

2020-09-29 Thread Z.q. Hou
Hi Bjorn, Thanks a lot for your comments! > -Original Message- > From: Bjorn Helgaas > Sent: 2020年9月29日 23:03 > To: Z.q. Hou > Cc: linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; > linux-arm-ker...@lists.infradead.org; lorenzo.pieral...@arm.com; > r...@kernel.org; bhelg...@goog

Re: [PATCH v3 2/2] hwmon: intel-m10-bmc-hwmon: add hwmon support for Intel MAX 10 BMC

2020-09-29 Thread Guenter Roeck
On 9/20/20 11:17 PM, Xu Yilun wrote: > This patch adds hwmon functionality for Intel MAX 10 BMC chip. This BMC > chip connects to a set of sensor chips to monitor current, voltage, > thermal and power of different components on board. The BMC firmware is > responsible for sensor data sampling and r

[PATCH v3 2/4] dt-bindings: PCI: uniphier-ep: Add iATU register description

2020-09-29 Thread Kunihiko Hayashi
In the dt-bindings, "atu" reg-names is required to get the register space for iATU in Synopsis DWC version 4.80 or later. Signed-off-by: Kunihiko Hayashi --- .../bindings/pci/socionext,uniphier-pcie-ep.yaml | 20 ++-- 1 file changed, 14 insertions(+), 6 deletions(-) diff --g

  1   2   3   4   5   6   7   8   9   10   >