Re: [PATCH v3 06/12] bus: mhi: core: Move to an error state on any firmware load failure

2020-10-30 Thread Manivannan Sadhasivam
On Thu, Oct 29, 2020 at 09:10:51PM -0700, Bhaumik Bhatt wrote: > Move MHI to a firmware download error state for a failure to find > the firmware files or to load SBL or EBL image using BHI/BHIe. This > helps detect an error state sooner and shortens the wait for a > synchronous power up timeout. >

[PATCH v2 1/3] dt-bindings: vendor-prefixes: Add an entry for Altus-Escon-Company

2020-10-30 Thread Oleksij Rempel
Add "alt" entry for Altus-Escon-Company BV: https://www.altus-escon.com/ Signed-off-by: Oleksij Rempel Acked-by: Rob Herring --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b

[PATCH v2 3/3] ARM: dts: add Altesco I6P board

2020-10-30 Thread Oleksij Rempel
Altesco (Altus-Escon-Company BV) I6P is a part of the diagnostic system for the vehicle inspection stations. Co-developed-by: David Jander Signed-off-by: David Jander Signed-off-by: Oleksij Rempel --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/imx6dl-alti6p.dts | 564 ++

Re: [PATCH v2 1/5] docs: automarkup.py: Use new C roles in Sphinx 3

2020-10-30 Thread Jonathan Corbet
On Fri, 30 Oct 2020 14:33:52 +0100 Dafna Hirschfeld wrote: > > +RE_struct = re.compile(r'\b(struct)\s+([a-zA-Z_]\w+)', flags=re.ASCII) > > +RE_union = re.compile(r'\b(union)\s+([a-zA-Z_]\w+)', flags=re.ASCII) > > +RE_enum = re.compile(r'\b(enum)\s+([a-zA-Z_]\w+)', flags=re.ASCII) > > +RE_typedef

Re: WARNING in close_fs_devices (2)

2020-10-30 Thread Anand Jain
On 30/10/20 6:10 pm, Dmitry Vyukov wrote: On Tue, Sep 22, 2020 at 2:37 PM Anand Jain wrote: On 18/9/20 7:22 pm, syzbot wrote: Hello, syzbot found the following issue on: HEAD commit:e4c26faa Merge tag 'usb-5.9-rc5' of git://git.kernel.org/p.. git tree: upstream console output:

Re: INFO: task hung in io_uring_setup

2020-10-30 Thread Jens Axboe
On 10/30/20 4:01 AM, Dmitry Vyukov wrote: > On Thu, Sep 3, 2020 at 1:44 PM Jens Axboe wrote: >> >> On 9/3/20 5:15 AM, Hillf Danton wrote: >>> >>> Thu, 03 Sep 2020 01:38:15 -0700 syzbot found the following issue on: HEAD commit:4442749a Add linux-next specific files for 20200902

[PATCH v2 2/3] dt-bindings: arm: fsl: add Altesco I6P board

2020-10-30 Thread Oleksij Rempel
Add Altus-Escon-Company BV I6P iMX6dl based board Signed-off-by: Oleksij Rempel Acked-by: Rob Herring --- Documentation/devicetree/bindings/arm/fsl.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/fsl.yaml b/Documentation/devicetree/bindings/arm/fs

[PATCH v2 0/3] mainline add Altesco I6P board

2020-10-30 Thread Oleksij Rempel
changes v2: - rebase against git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux.git for-next - remove spaces - use Co-developed-by instead of Co-Developed-by Oleksij Rempel (3): dt-bindings: vendor-prefixes: Add an entry for Altus-Escon-Company dt-bindings: arm: fsl: add Altesco I6P boa

Re: [PATCH v3 07/12] bus: mhi: core: Use appropriate label in firmware load handler API

2020-10-30 Thread Manivannan Sadhasivam
On Thu, Oct 29, 2020 at 09:10:52PM -0700, Bhaumik Bhatt wrote: > Correct the "error_read" label to say "error_ready_state" as that > is the appropriate usage of the label. > > Signed-off-by: Bhaumik Bhatt Reviewed-by: Manivannan Sadhasivam Thanks, Mani > --- > drivers/bus/mhi/core/boot.c | 6

Re: [PATCH v3 09/12] bus: mhi: core: Check for IRQ availability during registration

2020-10-30 Thread Manivannan Sadhasivam
On Thu, Oct 29, 2020 at 09:10:54PM -0700, Bhaumik Bhatt wrote: > Current design allows a controller to register with MHI successfully > without the need to have any IRQs available for use. If no IRQs are > available, power up requests to MHI can fail after a successful > registration with MHI. Impr

Re: [mm] e6e88712e4: stress-ng.tmpfs.ops_per_sec -69.7% regression

2020-10-30 Thread Chen, Rong A
On 10/30/2020 9:17 PM, Matthew Wilcox wrote: On Fri, Oct 30, 2020 at 03:17:15PM +0800, kernel test robot wrote: Details are as below: --> To reproduce: git clone https://github.com/inte

[PATCH] ide: Prevent some negative shifts in ide_set_ignore_cable()

2020-10-30 Thread Dan Carpenter
Shifting by a negative number is undefined. These values come from the module parameter, so it's not a big deal from a practical perspective. Fixes: 9fd91d959f1a ("ide: add "ignore_cable" parameter (take 2)") Signed-off-by: Dan Carpenter --- drivers/ide/ide.c | 2 +- 1 file changed, 1 insertion

Re: [PATCH v20 02/20] mm/memcg: bail early from swap accounting if memcg disabled

2020-10-30 Thread Johannes Weiner
On Fri, Oct 30, 2020 at 10:27:51AM +0800, Alex Shi wrote: > > > 在 2020/10/29 下午9:46, Johannes Weiner 写道: > >> ? release_pages+0x1ae/0x410 > >> shmem_alloc_and_acct_page+0x77/0x1c0 > >> shmem_getpage_gfp+0x162/0x910 > >> shmem_fault+0x74/0x210 > >> ? filemap_map_pages+0x29c/0x410 > >> __do_f

Re: [PATCH v3 10/12] bus: mhi: core: Separate system error and power down handling

2020-10-30 Thread Manivannan Sadhasivam
On Thu, Oct 29, 2020 at 09:10:55PM -0700, Bhaumik Bhatt wrote: > Currently, there exist a set of if...else statements in the > mhi_pm_disable_transition() function which make handling system > error and disable transitions differently complex. To make that > cleaner and facilitate differences in be

[PATCH] [v3] x86: apic: avoid -Wshadow warning in header

2020-10-30 Thread Arnd Bergmann
From: Arnd Bergmann There are hundreds of warnings in a W=2 build about a local variable shadowing the global 'apic' definition: arch/x86/kvm/lapic.h:149:65: warning: declaration of 'apic' shadows a global declaration [-Wshadow] Avoid this by renaming the global 'apic' variable to the more des

Re: [PATCH 1/4] erofs: fix setting up pcluster for temporary pages

2020-10-30 Thread Gao Xiang
On Fri, Oct 30, 2020 at 03:32:55PM +0200, Vladimir Zapolskiy wrote: > Hi Gao Xiang, > > On 10/30/20 2:47 PM, Gao Xiang wrote: > > Hi Vladimir, > > > > On Fri, Oct 30, 2020 at 02:20:31PM +0200, Vladimir Zapolskiy wrote: > > > Hello Gao Xiang, > > > > > > On 10/22/20 5:57 PM, Gao Xiang via Linux-e

Re: [PATCH v3 11/12] bus: mhi: core: Mark and maintain device states early on after power down

2020-10-30 Thread Manivannan Sadhasivam
On Thu, Oct 29, 2020 at 09:10:56PM -0700, Bhaumik Bhatt wrote: > mhi_power_down() does not ensure that the PM state is moved to an > inaccessible state soon enough as the system can encounter > scheduling delays till mhi_pm_disable_transition() gets called. > Additionally, if an MHI controller deci

Python 2.7 support and automarkup.py - Was: Re: [PATCH v2 1/5] docs: automarkup.py: Use new C roles in Sphinx 3

2020-10-30 Thread Mauro Carvalho Chehab
Hi Dafna, Em Fri, 30 Oct 2020 14:33:52 +0100 Dafna Hirschfeld escreveu: > Hi > > Am 14.10.20 um 01:13 schrieb Nícolas F. R. A. Prado: > > While Sphinx 2 used a single c:type role for struct, union, enum and > > typedef, Sphinx 3 uses a specific role for each one. > > To keep backward compatibil

Re: [PATCH v5 05/15] mm/frame-vector: Use FOLL_LONGTERM

2020-10-30 Thread Tomasz Figa
On Fri, Oct 30, 2020 at 11:08 AM Daniel Vetter wrote: > > This is used by media/videbuf2 for persistent dma mappings, not just > for a single dma operation and then freed again, so needs > FOLL_LONGTERM. > > Unfortunately current pup_locked doesn't support FOLL_LONGTERM due to > locking issues. Re

Re: [PATCH v3 12/12] bus: mhi: core: Remove MHI event ring IRQ handlers when powering down

2020-10-30 Thread Manivannan Sadhasivam
On Thu, Oct 29, 2020 at 09:10:57PM -0700, Bhaumik Bhatt wrote: > While powering down, the device may or may not acknowledge an MHI > RESET issued by host for a graceful shutdown scenario and end up > sending an incoming data packet after tasklets have been killed. > If a rogue device sends this int

Re: [PATCH v2 5/5] firmware: QCOM_SCM: Allow qcom_scm driver to be loadable as a permenent module

2020-10-30 Thread Robin Murphy
On 2020-10-30 01:02, John Stultz wrote: On Wed, Oct 28, 2020 at 7:51 AM Robin Murphy wrote: Hmm, perhaps I'm missing something here, but even if the config options *do* line up, what prevents arm-smmu probing before qcom-scm and dereferencing NULL in qcom_scm_qsmmu500_wait_safe_toggle() before

re: spi: bcm2835: fix gpio cs level inversion

2020-10-30 Thread Colin Ian King
Hi, Static analysis with coverity on today's linux-next has detected a potential issue in bcm2835_spi_setup() in the following commit: commit 5e31ba0c0543a04483b53151eb5b7413efece94c Author: Martin Hundebøll Date: Wed Oct 14 11:02:30 2020 +0200 spi: bcm2835: fix gpio cs level inversion

Re: [PATCH v2 1/2] reboot: fix overflow parsing reboot cpu number

2020-10-30 Thread Petr Mladek
On Tue 2020-10-27 14:42:43, Greg KH wrote: > On Tue, Oct 27, 2020 at 02:35:44PM +0100, Matteo Croce wrote: > > From: Matteo Croce > > > > Limit the CPU number to num_possible_cpus(), because setting it > > to a value lower than INT_MAX but higher than NR_CPUS produces the > > following error on r

Re: Python 2.7 support and automarkup.py - Was: Re: [PATCH v2 1/5] docs: automarkup.py: Use new C roles in Sphinx 3

2020-10-30 Thread Jonathan Corbet
On Fri, 30 Oct 2020 15:10:26 +0100 Mauro Carvalho Chehab wrote: > I see a few alternatives: > > 1) fix automarkup.py for it to work again with python 2.7; > > 2) conf.py could gain some logic to disable automarkup with >Python < 3; > > 3) scripts/sphinx-pre-install already detects Python v

Re: Python 2.7 support and automarkup.py - Was: Re: [PATCH v2 1/5] docs: automarkup.py: Use new C roles in Sphinx 3

2020-10-30 Thread Mauro Carvalho Chehab
Em Fri, 30 Oct 2020 08:14:40 -0600 Jonathan Corbet escreveu: > On Fri, 30 Oct 2020 15:10:26 +0100 > Mauro Carvalho Chehab wrote: > > > I see a few alternatives: > > > > 1) fix automarkup.py for it to work again with python 2.7; > > > > 2) conf.py could gain some logic to disable automarkup wi

Re: [Y2038][time namespaces] Question regarding CLOCK_REALTIME support plans in Linux time namespaces

2020-10-30 Thread Zack Weinberg
On Fri, Oct 30, 2020 at 9:57 AM Cyril Hrubis wrote: > > According to patch description [1] and time_namespaces documentation > > [2] the CLOCK_REALTIME is not supported (for now?) to avoid complexity > > and overhead in the kernel. ... > > To be more specific - [if this were supported] it would be

Re: [PATCH v2 1/2] reboot: fix overflow parsing reboot cpu number

2020-10-30 Thread Matteo Croce
On Fri, Oct 30, 2020 at 3:13 PM Petr Mladek wrote: > > On Tue 2020-10-27 14:42:43, Greg KH wrote: > > On Tue, Oct 27, 2020 at 02:35:44PM +0100, Matteo Croce wrote: > > > From: Matteo Croce > > > > > > Limit the CPU number to num_possible_cpus(), because setting it > > > to a value lower than INT_

[PATCH] mfd: core: Restore error-free return for dt-disabled devices

2020-10-30 Thread Paul Kocialkowski
When adding devices via mfd (mfd_add_device), a check on the device-tree status of the device was performed to gracefully handle disabled devices without errors. This was done with a check using of_device_is_available, that was recently moved to the mfd_match_of_node_to_dev function (by returning

[PATCH RFC] scripts: kernel-doc: better handle spaces after section markups

2020-10-30 Thread Mauro Carvalho Chehab
Better handle things like: * Return: foo * description Suggested-by: Randy Dunlap Signed-off-by: Mauro Carvalho Chehab --- I already posted this as part of a reply to Randy/Matthew. As said there, I only did a fast check here, in order to verify if it won't be produci

Re: SIGHUP on connect

2020-10-30 Thread Michael J. Baars
Here, think I got it :) Just run 'make; make run' Thank you for your help. On Thu, 2020-10-29 at 21:48 +0100, Bernd Petrovitsch wrote: > Hi all! > > On 29/10/2020 14:10, Michael J. Baars wrote: > [...] > > According to manual page socket(7), SO_REUSEADDR allows for local addresses > > to be r

Re: [PATCH 3/9] mfd: intel_soc_pmic: remove unnecessary CONFIG_PM_SLEEP

2020-10-30 Thread Coiby Xu
On Thu, Oct 29, 2020 at 07:04:44PM +0200, Andy Shevchenko wrote: On Thu, Oct 29, 2020 at 5:27 PM Lee Jones wrote: On Thu, 29 Oct 2020, Coiby Xu wrote: > On Thu, Oct 29, 2020 at 01:00:29PM +0200, Andy Shevchenko wrote: > > On Thu, Oct 29, 2020 at 06:06:41PM +0800, Coiby Xu wrote: > > > SIMPLE_DE

Re: [PATCH] ARM: dts: at91: add serial MFD sub-node for usart

2020-10-30 Thread Codrin.Ciubotariu
On 30.10.2020 15:38, Nicolas Ferre wrote: > On 30/10/2020 at 12:07, Codrin Ciubotariu wrote: >> The "atmel,at91sam9260-usart" driver is a MFD driver, so it needs >> sub-nodes >> to match the registered platform device. For this reason, we add a serial >> subnode to all the "atmel,at91sam9260-usart

[PATCH v2 1/2] m68k: m68328: move platform code to separate files

2020-10-30 Thread Arnd Bergmann
From: Arnd Bergmann The dragen2 and ucsimm/ucdimm files require a bit of custom code compared to the other dragonball platforms, move them into separate files as a preparation for a build fix. Signed-off-by: Arnd Bergmann --- Just a small cleanup after I ran into some issue during build testing

[PATCH v2 2/2] m68k: m68328: remove duplicate code

2020-10-30 Thread Arnd Bergmann
From: Arnd Bergmann Building a kernel with multiple dragonball based boards enabled needlessly causes a link failure because of duplicate config_BSP() functions between the CPU versions. Avoid that merging the three almost identical files into one, and hiding the CPU configuration behind the boa

[PATCH][next] SFH: fix error return check for -ERESTARTSYS

2020-10-30 Thread Colin King
From: Colin Ian King Currently the check for the error return code -ERESTARTSYS is dead code and never executed because a previous check for ret < 0 is catching this and returning -ETIMEDOUT instead. Fix this by checking for -ERESTARTSYS before the more generic negative error code. Addresses-Co

Re: [RESEND PATCH v3 1/4] dt-bindings: connector: add power-opmode optional property to usb-connector

2020-10-30 Thread Rob Herring
On Thu, Oct 29, 2020 at 11:49 AM Amelie DELAUNAY wrote: > > > > On 10/29/20 4:40 PM, Rob Herring wrote: > > On Thu, Oct 29, 2020 at 10:58:03AM +0100, Amelie Delaunay wrote: > >> Power operation mode may depends on hardware design, so, add the optional > >> property power-opmode for usb-c connector

Re: [PATCH v2 2/2] reboot: fix parsing of reboot cpu number

2020-10-30 Thread Petr Mladek
On Tue 2020-10-27 14:35:45, Matteo Croce wrote: > From: Matteo Croce > > The kernel cmdline reboot= argument allows to specify the CPU used > for rebooting, with the syntax `s` among the other flags, e.g. > > reboot=soft,s4 > reboot=warm,s31,force > > In the early days the parsing was d

Re: [RESEND PATCH v3 1/4] dt-bindings: connector: add power-opmode optional property to usb-connector

2020-10-30 Thread Rob Herring
On Thu, Oct 29, 2020 at 8:55 PM Jun Li wrote: > > Amelie DELAUNAY 于2020年10月30日周五 上午12:52写道: > > > > > > > > On 10/29/20 4:40 PM, Rob Herring wrote: > > > On Thu, Oct 29, 2020 at 10:58:03AM +0100, Amelie Delaunay wrote: > > >> Power operation mode may depends on hardware design, so, add the option

Re: [PATCH v2 27/39] docs: ABI: convert testing/configfs-acpi to ReST

2020-10-30 Thread Rafael J. Wysocki
On Fri, Oct 30, 2020 at 8:42 AM Mauro Carvalho Chehab wrote: > > There are some problems with this file when a ReST content > is produced. Fix it. > > Signed-off-by: Mauro Carvalho Chehab Acked-by: Rafael J. Wysocki and I assume this to go in via the documentation tree. > --- > Documentation

Re: [PATCH 3/9] mfd: intel_soc_pmic: remove unnecessary CONFIG_PM_SLEEP

2020-10-30 Thread Andy Shevchenko
On Fri, Oct 30, 2020 at 4:23 PM Coiby Xu wrote: > On Thu, Oct 29, 2020 at 07:04:44PM +0200, Andy Shevchenko wrote: > >On Thu, Oct 29, 2020 at 5:27 PM Lee Jones wrote: ... > >There are pros and cons of each approach, but not above. > > > Can you elaborate on the pros and cons of each approach? T

Re: [PATCH 01/15] iio: accel: remove unnecessary CONFIG_PM_SLEEP

2020-10-30 Thread Coiby Xu
On Thu, Oct 29, 2020 at 07:06:40PM +0200, Andy Shevchenko wrote: On Thu, Oct 29, 2020 at 4:42 PM Jonathan Cameron wrote: On Thu, 29 Oct 2020 15:48:56 +0800 Coiby Xu wrote: Please put a cover letter on your next series explaining the context. In this particular case some of the replies you h

Re: [PATCH] mm/compaction: count pages and stop correctly during page isolation.

2020-10-30 Thread Zi Yan
On 30 Oct 2020, at 9:36, Michal Hocko wrote: > On Fri 30-10-20 08:20:50, Zi Yan wrote: >> On 30 Oct 2020, at 5:43, Michal Hocko wrote: >> >>> [Cc Vlastimil] >>> >>> On Thu 29-10-20 16:04:35, Zi Yan wrote: From: Zi Yan In isolate_migratepages_block, when cc->alloc_contig is true, we

[PATCH v2 2/4] media: meson: Add M2M driver for the Amlogic GE2D Accelerator Unit

2020-10-30 Thread Neil Armstrong
The GE2D is a 2D accelerator with various features like configurable blitter with alpha blending, frame rotation, scaling, format conversion and colorspace conversion. The driver implements a Memory2Memory VB2 V4L2 streaming device permitting: - 0, 90, 180, 270deg rotation - horizontal/vertical fl

[PATCH v2 4/4] arm64: dts: meson-axg: add GE2D node

2020-10-30 Thread Neil Armstrong
This adds the node for the GE2D accelerator unit. Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi index b9efc8469265.

[PATCH v2 3/4] MAINTAINERS: Add myself as maintainer of the Amlogic GE2D driver

2020-10-30 Thread Neil Armstrong
Signed-off-by: Neil Armstrong --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index e73636b75f29..db93156dcaba 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -11412,6 +11412,15 @@ F: Documentation/devicetree/bindings/media/amlogic,meson-g

[PATCH v2 0/4] media: meson: Add support for the Amlogic GE2D Accelerator Unit

2020-10-30 Thread Neil Armstrong
The GE2D is a 2D accelerator with various features like configurable blitter with alpha blending, frame rotation, scaling, format conversion and colorspace conversion. The driver implements a Memory2Memory VB2 V4L2 streaming device permitting: - 0, 90, 180, 270deg rotation - horizontal/vertical fl

Re: [PATCH v5 05/15] mm/frame-vector: Use FOLL_LONGTERM

2020-10-30 Thread Daniel Vetter
On Fri, Oct 30, 2020 at 3:11 PM Tomasz Figa wrote: > > On Fri, Oct 30, 2020 at 11:08 AM Daniel Vetter wrote: > > > > This is used by media/videbuf2 for persistent dma mappings, not just > > for a single dma operation and then freed again, so needs > > FOLL_LONGTERM. > > > > Unfortunately current

[PATCH v2 1/4] dt-bindings: media: Add bindings for the Amlogic GE2D Accelerator Unit

2020-10-30 Thread Neil Armstrong
The GE2D is a 2D accelerator with various features like configurable blitter with alpha blending, frame rotation, scaling, format conversion and colorspace conversion. This adds the bindings for the GE2D version found in the AXG SoCs Family. Signed-off-by: Neil Armstrong Reviewed-by: Rob Herring

Re: [PATCH v2 28/39] docs: ABI: fix syntax to be parsed using ReST notation

2020-10-30 Thread Rafael J. Wysocki
On Fri, Oct 30, 2020 at 8:41 AM Mauro Carvalho Chehab wrote: > > There are a number of new changes at the ABI files that cause > them to produce warnings when generating ABI output. > > Fix them. > > Signed-off-by: Mauro Carvalho Chehab > --- > .../ABI/stable/sysfs-driver-firmware-zynqmp | 62

AW: [PATCH][next] SFH: fix error return check for -ERESTARTSYS

2020-10-30 Thread Walter Harms
nit picking: i would without "else" to improve readability: if (ret == -ERESTARTSYS) return -ERESTARTSYS; if (ret < 0) return -ETIMEDOUT; return 0; jm2c wh Von: Colin King Gesendet: Freitag, 30.

Re: Python 2.7 support and automarkup.py - Was: Re: [PATCH v2 1/5] docs: automarkup.py: Use new C roles in Sphinx 3

2020-10-30 Thread Matthew Wilcox
On Fri, Oct 30, 2020 at 08:14:40AM -0600, Jonathan Corbet wrote: > On Fri, 30 Oct 2020 15:10:26 +0100 > Mauro Carvalho Chehab wrote: > > > I see a few alternatives: > > > > 1) fix automarkup.py for it to work again with python 2.7; > > > > 2) conf.py could gain some logic to disable automarkup

Re: Linux 4.19.153

2020-10-30 Thread Sasha Levin
On Fri, Oct 30, 2020 at 10:14:16AM +0100, Greg Kroah-Hartman wrote: On Fri, Oct 30, 2020 at 09:49:15AM +0100, Greg Kroah-Hartman wrote: On Fri, Oct 30, 2020 at 09:26:54AM +0100, Pavel Machek wrote: > Hi! > > > I'm announcing the release of the 4.19.153 kernel. > > > > All users of the 4.19 kerne

[PATCH v10 04/15] ASoC: sun4i-i2s: Change get_sr() and get_wss() to be more explicit

2020-10-30 Thread Clément Péron
We are actually using a complex formula to just return a bunch of simple values. Also this formula is wrong for sun4i when calling get_wss() the function return 4 instead of 3. Replace this with a simpler switch case. Also drop the i2s params which is unused and return a simple int as returning a

[PATCH v10 02/15] ASoC: sun4i-i2s: Change set_chan_cfg() params

2020-10-30 Thread Clément Péron
As slots and slot_width can be set manually using set_tdm(). These values are then kept in sun4i_i2s struct. So we need to check if these values are set or not. This is not done actually and will trigger a bug. For example, if we set to the simple soundcard in the device-tree dai-tdm-slot-width =

[PATCH v10 03/15] ASoC: sun4i-i2s: Add support for H6 I2S

2020-10-30 Thread Clément Péron
From: Jernej Skrabec H6 I2S is very similar to that in H3, except it supports up to 16 channels. Signed-off-by: Jernej Skrabec Signed-off-by: Marcus Cooper Reviewed-by: Chen-Yu Tsai Acked-by: Maxime Ripard Signed-off-by: Clément Péron --- sound/soc/sunxi/sun4i-i2s.c | 222 +

[PATCH v10 00/15] Add Allwinner H3/H5/H6/A64 HDMI audio

2020-10-30 Thread Clément Péron
Hi, This series add H6 I2S support and the I2S node missing to support HDMI audio in different Allwinner SoC. As we first use some TDM property to make the I2S working with the simple soundcard. We have now drop this simple sound card and a proper dedicated soundcard will be introduce later. Thi

[PATCH v10 06/15] ASoC: sun4i-i2s: Add 20 and 24 bit support

2020-10-30 Thread Clément Péron
From: Marcus Cooper Extend the functionality of the driver to include support of 20 and 24 bits per sample. Signed-off-by: Marcus Cooper Acked-by: Maxime Ripard Reviewed-by: Chen-Yu Tsai Signed-off-by: Clément Péron --- sound/soc/sunxi/sun4i-i2s.c | 11 +-- 1 file changed, 9 inserti

[PATCH v10 01/15] ASoC: sun4i-i2s: Fix lrck_period computation for I2S justified mode

2020-10-30 Thread Clément Péron
Left and Right justified mode are computed using the same formula as DSP_A and DSP_B mode. Which is wrong and the user manual explicitly says: LRCK_PERDIOD: PCM Mode: Number of BCLKs within (Left + Right) channel width. I2S/Left-Justified/Right-Justified Mode: Number of BCLKs within each individua

[PATCH v10 05/15] ASoC: sun4i-i2s: Set sign extend sample

2020-10-30 Thread Clément Péron
From: Marcus Cooper On the newer SoCs such as the H3 and A64 this is set by default to transfer a 0 after each sample in each slot. However the A10 and A20 SoCs that this driver was developed on had a default setting where it padded the audio gain with zeros. This isn't a problem while we have o

[PATCH v10 12/15] arm64: dts: allwinner: a64: Add I2S2 node

2020-10-30 Thread Clément Péron
From: Marcus Cooper Add the I2S2 node connected to the HDMI interface. Signed-off-by: Jernej Skrabec Signed-off-by: Marcus Cooper Acked-by: Chen-Yu Tsai Signed-off-by: Clément Péron --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff

[PATCH v10 13/15] arm64: defconfig: Enable Allwinner i2s driver

2020-10-30 Thread Clément Péron
Enable Allwinner I2S driver for arm64 defconfig. Acked-by: Chen-Yu Tsai Signed-off-by: Clément Péron --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 17a2df6a263e..3f89f427a355 100644 --- a/arc

[PATCH v10 09/15] ASoC: sun4i-i2s: fix coding-style for callback definition

2020-10-30 Thread Clément Péron
Checkpatch script produces warning: WARNING: function definition argument 'const struct sun4i_i2s *' should also have an identifier name. Let's fix this by adding identifier name to get_bclk_parent_rate() and set_fmt() callback definition. Acked-by: Maxime Ripard Signed-off-by: Clément Péron --

[PATCH v10 11/15] arm64: dts: allwinner: h6: Add I2S1 node

2020-10-30 Thread Clément Péron
From: Jernej Skrabec Add Allwinner H6 I2S1 node connected to HDMI interface. Signed-off-by: Jernej Skrabec Signed-off-by: Marcus Cooper Acked-by: Chen-Yu Tsai Signed-off-by: Clément Péron --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 13 + 1 file changed, 13 insertions(+)

[PATCH v10 14/15] dt-bindings: sound: sun4i-i2s: Document H3 with missing RX channel possibility

2020-10-30 Thread Clément Péron
Like A83T the Allwinner H3 doesn't have the DMA reception available for some audio interfaces. As it's already documented for A83T convert this to an enum and add the H3 interface. Acked-by: Rob Herring Signed-off-by: Clément Péron --- .../devicetree/bindings/sound/allwinner,sun4i-a10-i2s.yaml

[PATCH v10 15/15] arm: dts: sunxi: h3/h5: Add I2S2 node

2020-10-30 Thread Clément Péron
From: Marcus Cooper Add H3/H5 I2S2 node connected to the HDMI interface. Signed-off-by: Jernej Skrabec Signed-off-by: Marcus Cooper Acked-by: Chen-Yu Tsai Signed-off-by: Clément Péron --- arch/arm/boot/dts/sunxi-h3-h5.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git a/a

[PATCH 2/2] kernel-doc: Handle function typedefs without asterisks

2020-10-30 Thread Paolo Bonzini
From: Eduardo Habkost Example of typedef that was not parsed by kernel-doc: typedef void (ObjectUnparent)(Object *obj); Signed-off-by: Eduardo Habkost Signed-off-by: Paolo Bonzini --- scripts/kernel-doc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/kernel-doc

[PATCH 0/2] kernel-doc: Handle function typedefs

2020-10-30 Thread Paolo Bonzini
Hi all, QEMU has been using kernel-doc for a while and we're very happy with it. :) These two patches are relatively simple regex changes that were done to support QEMU header files; they handle function typedefs (i.e. not function _pointer_ typedefs). These are basically the only difference betw

[PATCH v10 10/15] dt-bindings: ASoC: sun4i-i2s: Add H6 compatible

2020-10-30 Thread Clément Péron
From: Jernej Skrabec H6 I2S is very similar to H3, except that it supports up to 16 channels and thus few registers have fields on different position. Signed-off-by: Jernej Skrabec Signed-off-by: Marcus Cooper Acked-by: Maxime Ripard Acked-by: Rob Herring Acked-by: Chen-Yu Tsai Signed-off-b

[PATCH v10 07/15] ASoC: sun4i-i2s: Fix sun8i volatile regs

2020-10-30 Thread Clément Péron
The FIFO TX reg is volatile and sun8i i2s register mapping is different from sun4i. Even if in this case it's doesn't create an issue, Avoid setting some regs that are undefined in sun8i. Acked-by: Maxime Ripard Reviewed-by: Chen-Yu Tsai Signed-off-by: Clément Péron --- sound/soc/sunxi/sun4i-

Re: [PATCH 2/2] i2c: designware: slave should do WRITE_REQUESTED before WRITE_RECEIVED

2020-10-30 Thread Jarkko Nikula
On 10/30/20 10:04 AM, Michael Wu wrote: Sometimes we would get the following flow when doing an i2cset: 0x1 STATUS SLAVE_ACTIVITY=0x1 : RAW_INTR_STAT=0x514 : INTR_STAT=0x4 I2C_SLAVE_WRITE_RECEIVED 0x1 STATUS SLAVE_ACTIVITY=0x0 : RAW_INTR_STAT=0x714 : INTR_STAT=0x204 I2C_SLAVE_WRITE_REQUESTED I2C

[PATCH v10 08/15] ASoC: sun4i-i2s: Fix setting of FIFO modes

2020-10-30 Thread Clément Péron
From: Samuel Holland Because SUN4I_I2S_FIFO_CTRL_REG is volatile, writes done while the regmap is cache-only are ignored. To work around this, move the configuration to a callback that runs while the ASoC core has a runtime PM reference to the device. Signed-off-by: Samuel Holland Reviewed-by:

[PATCH 1/2] kernel-doc: Handle function typedefs that return pointers

2020-10-30 Thread Paolo Bonzini
From: Eduardo Habkost One example that was not being parsed correctly by kernel-doc is: typedef Object *(ObjectPropertyResolve)(Object *obj, void *opaque, const char *part); Signed-off-by: Eduardo Habkost Sig

[PATCH v2 1/2] mm: reorganize internal_get_user_pages_fast()

2020-10-30 Thread Jason Gunthorpe
The next patch in this series makes the lockless flow a little more complex, so move the entire block into a new function and remove a level of indention. Tidy a bit of cruft: - addr is always the same as start, so use start - Use the modern check_add_overflow() for computing end = start + len

Re: [PATCH] mm/compaction: count pages and stop correctly during page isolation.

2020-10-30 Thread Michal Hocko
On Fri 30-10-20 10:35:43, Zi Yan wrote: > On 30 Oct 2020, at 9:36, Michal Hocko wrote: > > > On Fri 30-10-20 08:20:50, Zi Yan wrote: > >> On 30 Oct 2020, at 5:43, Michal Hocko wrote: > >> > >>> [Cc Vlastimil] > >>> > >>> On Thu 29-10-20 16:04:35, Zi Yan wrote: > From: Zi Yan > > In

[PATCH] sched/fair: remove the spin_lock operations

2020-10-30 Thread Hui Su
Since 'ab93a4bc955b ("sched/fair: Remove distribute_running fromCFS bandwidth")',there is nothing to protect between raw_spin_lock_irqsave/store() in do_sched_cfs_slack_timer(). So remove it. Signed-off-by: Hui Su --- kernel/sched/fair.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/ker

Re: [PATCH] mm/compaction: count pages and stop correctly during page isolation.

2020-10-30 Thread Vlastimil Babka
On 10/29/20 9:04 PM, Zi Yan wrote: From: Zi Yan In isolate_migratepages_block, when cc->alloc_contig is true, we are able to isolate compound pages, nr_migratepages and nr_isolated did not count compound pages correctly, causing us to isolate more pages than we thought. Use thp_nr_pages to coun

Re: [PATCH v2 0/3] gpiolib: cdev: allow edge event timestamps to be configured as REALTIME

2020-10-30 Thread Bartosz Golaszewski
On Thu, Oct 29, 2020 at 12:22 AM Kent Gibson wrote: > > On Wed, Oct 28, 2020 at 05:01:49PM +0100, Linus Walleij wrote: > > On Thu, Oct 15, 2020 at 1:12 AM Kent Gibson wrote: > > > > > This patch set adds the option to select CLOCK_REALTIME as the source > > > clock for line events. > > > > > > Th

Re: [PATCH v2 0/3] gpiolib: cdev: allow edge event timestamps to be configured as REALTIME

2020-10-30 Thread Bartosz Golaszewski
On Fri, Oct 30, 2020 at 3:49 PM Bartosz Golaszewski wrote: > > On Thu, Oct 29, 2020 at 12:22 AM Kent Gibson wrote: > > > > On Wed, Oct 28, 2020 at 05:01:49PM +0100, Linus Walleij wrote: > > > On Thu, Oct 15, 2020 at 1:12 AM Kent Gibson wrote: > > > > > > > This patch set adds the option to selec

Re: Queries on ARM SDEI Linux kernel code

2020-10-30 Thread James Morse
Hi Neeraj, On 21/10/2020 18:31, Neeraj Upadhyay wrote: > On 10/16/2020 9:57 PM, James Morse wrote: >> On 15/10/2020 07:07, Neeraj Upadhyay wrote: >>> 1. Looks like interrupt bind interface (SDEI_1_0_FN_SDEI_INTERRUPT_BIND) is >>> not available >>> for clients to use; can you please share informat

Re: [PATCH] gpiolib: cdev: add GPIO_V2_LINE_FLAG_EDGE_BOTH and use it in edge_irq_thread()

2020-10-30 Thread Bartosz Golaszewski
On Thu, Oct 29, 2020 at 9:48 AM Kent Gibson wrote: > > Add GPIO_V2_LINE_FLAG_EDGE_BOTH macro and use it in edge_irq_thread() to > improve readability of edge handling cases. > > Suggested-by: Andy Shevchenko > Signed-off-by: Kent Gibson > --- > drivers/gpio/gpiolib-cdev.c | 5 +++-- > 1 file ch

Re: [PATCH 9/9] mfd: sprd-sc27xx-spi: remove unnecessary CONFIG_PM_SLEEP

2020-10-30 Thread Coiby Xu
Hi Chunyan, On Fri, Oct 30, 2020 at 12:02:03PM +0800, Chunyan Zhang wrote: Hi Coiby, After removing CONFIG_PM_SLEEP, sprd_pmic_suspend/resume() would not be built into symbol table with clang compiler though, that would cause clang compiler report warnings of "unused function" if CONFIG_PM_SLEE

Re: [PATCH] mm/compaction: count pages and stop correctly during page isolation.

2020-10-30 Thread Zi Yan
On 30 Oct 2020, at 10:49, Michal Hocko wrote: > On Fri 30-10-20 10:35:43, Zi Yan wrote: >> On 30 Oct 2020, at 9:36, Michal Hocko wrote: >> >>> On Fri 30-10-20 08:20:50, Zi Yan wrote: On 30 Oct 2020, at 5:43, Michal Hocko wrote: > [Cc Vlastimil] > > On Thu 29-10-20 16:04:35, Z

Re: [PATCH] mm/compaction: count pages and stop correctly during page isolation.

2020-10-30 Thread Vlastimil Babka
On 10/30/20 3:49 PM, Michal Hocko wrote: On Fri 30-10-20 10:35:43, Zi Yan wrote: On 30 Oct 2020, at 9:36, Michal Hocko wrote: > On Fri 30-10-20 08:20:50, Zi Yan wrote: >> On 30 Oct 2020, at 5:43, Michal Hocko wrote: >> >>> [Cc Vlastimil] >>> >>> On Thu 29-10-20 16:04:35, Zi Yan wrote: >>> >>> D

Re: [PATCH RFC v2 14/21] kasan: add and integrate kasan boot parameters

2020-10-30 Thread Marco Elver
On Thu, 22 Oct 2020 at 15:19, Andrey Konovalov wrote: > > TODO: no meaningful description here yet, please see the cover letter > for this RFC series. > > Signed-off-by: Andrey Konovalov > Link: > https://linux-review.googlesource.com/id/If7d37003875b2ed3e0935702c8015c223d6416a4 > --- > m

[no subject]

2020-10-30 Thread Liliane Abel
Dearest Greeting my dear, I am Liliane Abel by name, The only daughter of late Mr.Benson Abel. My father is one of the top Politician in our country and my mother is a farmers and cocoa merchant when they were both alive. After the death of my mother, long ago, my father was controlling their busi

[PATCH V6 1/3] soc: qcom: geni: Remove "iova" check

2020-10-30 Thread Roja Rani Yarubandi
Remove "iova" check from geni_se_tx_dma_unprep and geni_se_rx_dma_unprep functions as checking with dma_mapping_error() is enough. Signed-off-by: Roja Rani Yarubandi --- Changes in V5: - This is newly added patch in V5. As per Stephen's comments separted this patch from shutdown callback patc

[PATCH V6 2/3] i2c: i2c-qcom-geni: Store DMA mapping data in geni_i2c_dev struct

2020-10-30 Thread Roja Rani Yarubandi
Store DMA mapping data in geni_i2c_dev struct to enhance DMA mapping data scope. For example during shutdown callback to unmap DMA mapping, this stored DMA mapping data can be used to call geni_se_tx_dma_unprep and geni_se_rx_dma_unprep functions. Add two helper functions geni_i2c_rx_msg_cleanup a

Re: [PATCH V5 3/3] i2c: i2c-qcom-geni: Add shutdown callback for i2c

2020-10-30 Thread rojay
Hi Stephen, On 2020-10-03 07:09, Stephen Boyd wrote: Quoting Roja Rani Yarubandi (2020-10-01 01:44:25) diff --git a/drivers/i2c/busses/i2c-qcom-geni.c b/drivers/i2c/busses/i2c-qcom-geni.c index aee2a1dd2c62..56d3fbfe7eb6 100644 --- a/drivers/i2c/busses/i2c-qcom-geni.c +++ b/drivers/i2c/busses/

[PATCH V6 3/3] i2c: i2c-qcom-geni: Add shutdown callback for i2c

2020-10-30 Thread Roja Rani Yarubandi
If the hardware is still accessing memory after SMMU translation is disabled (as part of smmu shutdown callback), then the IOVAs (I/O virtual address) which it was using will go on the bus as the physical addresses which will result in unknown crashes like NoC/interconnect errors. So, implement sh

[PATCH V6 0/3] Implement Shutdown callback for geni-i2c

2020-10-30 Thread Roja Rani Yarubandi
Roja Rani Yarubandi (3): soc: qcom: geni: Remove "iova" check i2c: i2c-qcom-geni: Store DMA mapping data in geni_i2c_dev struct i2c: i2c-qcom-geni: Add shutdown callback for i2c drivers/i2c/busses/i2c-qcom-geni.c | 104 - drivers/soc/qcom/qcom-geni-se.c| 4

[PATCH] vfio/pci: Implement ioeventfd thread handler for contended memory lock

2020-10-30 Thread Alex Williamson
The ioeventfd is called under spinlock with interrupts disabled, therefore if the memory lock is contended defer code that might sleep to a thread context. Fixes: bc93b9ae0151 ("vfio-pci: Avoid recursive read-lock usage") Link: https://bugzilla.kernel.org/show_bug.cgi?id=209253#c1 Reported-by: Ian

Re: [mm] e6e88712e4: stress-ng.tmpfs.ops_per_sec -69.7% regression

2020-10-30 Thread Matthew Wilcox
On Fri, Oct 30, 2020 at 10:02:45PM +0800, Chen, Rong A wrote: > On 10/30/2020 9:17 PM, Matthew Wilcox wrote: > > On Fri, Oct 30, 2020 at 03:17:15PM +0800, kernel test robot wrote: > > > Details are as below: > > > -

Re: [PATCH 1/9] mfd: maxim: remove unnecessary CONFIG_PM_SLEEP

2020-10-30 Thread Coiby Xu
On Thu, Oct 29, 2020 at 07:32:26PM +0100, Krzysztof Kozlowski wrote: On Thu, Oct 29, 2020 at 06:06:39PM +0800, Coiby Xu wrote: SIMPLE_DEV_PM_OPS has already took good care of CONFIG_PM_CONFIG. I don't quite get what did you mean by "took good care". This should cause warnings of unused structu

Re: [PATCH v2] f2fs: move ioctl interface definitions to separated file

2020-10-30 Thread Chao Yu
On 2020-10-30 20:30, Jaegeuk Kim wrote: Hi Chao, Can we make a documentation for this in f2fs.rst? Jaegeuk, Sure, let me work on this. Thanks, Thanks, On 10/30, Chao Yu wrote: Like other filesystem does, we introduce a new file f2fs.h in path of include/uapi/linux/, and move f2fs-specif

[PATCH] hidraw: Remove the redundent spaces

2020-10-30 Thread Zhaoyu Liu
Remove spaces to align code. Signed-off-by: Zhaoyu Liu --- drivers/hid/hidraw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hid/hidraw.c b/drivers/hid/hidraw.c index 2eee5e31c2b7..249666ea9a5a 100644 --- a/drivers/hid/hidraw.c +++ b/drivers/hid/hidraw.c @@ -600,7

[PATCH v11 00/10] NTFS read-write driver GPL implementation by Paragon Software

2020-10-30 Thread Konstantin Komarov
This patch adds NTFS Read-Write driver to fs/ntfs3. Having decades of expertise in commercial file systems development and huge test coverage, we at Paragon Software GmbH want to make our contribution to the Open Source Community by providing implementation of NTFS Read-Write driver for the Linux

[PATCH v11 10/10] fs/ntfs3: Add MAINTAINERS

2020-10-30 Thread Konstantin Komarov
This adds MAINTAINERS Signed-off-by: Konstantin Komarov --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index e73636b75f29..55922e8a4557 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -12494,6 +12494,13 @@ T: git git://git.kernel.org/pub/s

Re: [PATCH 1/2] coresight: cti: Initialize dynamic sysfs attributes

2020-10-30 Thread Mathieu Poirier
On Thu, Oct 29, 2020 at 08:10:11PM +0100, Greg KH wrote: > On Thu, Oct 29, 2020 at 10:45:58AM -0600, Mathieu Poirier wrote: > > From: Suzuki K Poulose > > > > With LOCKDEP enabled, CTI driver triggers the following splat due > > to uninitialized lock class for dynamically allocated attribute > >

[PATCH v11 06/10] fs/ntfs3: Add compression

2020-10-30 Thread Konstantin Komarov
This adds compression Signed-off-by: Konstantin Komarov --- fs/ntfs3/lznt.c | 452 1 file changed, 452 insertions(+) create mode 100644 fs/ntfs3/lznt.c diff --git a/fs/ntfs3/lznt.c b/fs/ntfs3/lznt.c new file mode 100644 index ..d7b79

[PATCH v11 08/10] fs/ntfs3: Add Kconfig, Makefile and doc

2020-10-30 Thread Konstantin Komarov
This adds Kconfig, Makefile and doc Signed-off-by: Konstantin Komarov --- Documentation/filesystems/ntfs3.rst | 112 fs/ntfs3/Kconfig| 23 ++ fs/ntfs3/Makefile | 11 +++ 3 files changed, 146 insertions(+) create mode 10064

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