Re: [PATCH v4 2/3] iommu/tegra-smmu: Rework tegra_smmu_probe_device()

2020-10-05 Thread Thierry Reding
On Mon, Oct 05, 2020 at 01:36:55PM +0300, Dmitry Osipenko wrote: > 05.10.2020 12:53, Thierry Reding пишет: > > On Fri, Oct 02, 2020 at 05:50:08PM +0300, Dmitry Osipenko wrote: > >> 02.10.2020 17:22, Dmitry Osipenko пишет: > static int tegra_smmu_of_xlate(struct device *dev, >

Re: [RFC PATCH] kthread: do not modify running work

2020-10-05 Thread Petr Mladek
On Mon 2020-10-05 10:38:29, Petr Mladek wrote: > On Sun 2020-10-04 10:12:13, Hillf Danton wrote: > > On Fri, 02 Oct 2020 10:32:32 Thomas Gleixner wrote: > > > So having a consistent behaviour accross all these facilities makes > > > absolutely sense and I don't agree with your sentiment in the chan

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

2020-10-05 Thread Greg Kroah-Hartman
On Mon, Oct 05, 2020 at 01:08:19PM +0200, Thierry Reding wrote: > On Mon, Oct 05, 2020 at 12:40:23PM +0200, Greg Kroah-Hartman wrote: > > On Mon, Oct 05, 2020 at 12:17:21PM +0200, Thierry Reding wrote: > > > On Mon, Oct 05, 2020 at 11:45:30AM +0200, Greg Kroah-Hartman wrote: > > > > On Mon, Oct 05,

Re: [PATCH] sched: watchdog: Touch kernel watchdog in sched code

2020-10-05 Thread Peter Zijlstra
On Fri, Mar 06, 2020 at 02:34:20PM -0800, Xi Wang wrote: > On Fri, Mar 6, 2020 at 12:40 AM Peter Zijlstra wrote: > > > > On Thu, Mar 05, 2020 at 02:11:49PM -0800, Paul Turner wrote: > > > The goal is to improve jitter since we're constantly periodically > > > preempting other classes to run the wa

[PATCH v5] net: can: Introduce MEN 16Z192-00 CAN controller driver

2020-10-05 Thread Abhijeet Badurkar
 This CAN Controller is found on MEN Chameleon FPGAs. The driver/device supports the CAN2.0 specification. There are 255 RX and 255 Tx buffer within the IP. The pointer for the buffer are handled by HW to make the access from within the driver as simple as possible. The d

RE: [PATCH] mm: optionally disable brk()

2020-10-05 Thread David Laight
From: David Hildenbrand > Sent: 05 October 2020 10:55 ... > > If hardening and compatibility are seen as tradeoffs, perhaps there > > could be a top level config choice (CONFIG_HARDENING_TRADEOFF) for this. > > It would have options > > - "compatibility" (default) to gear questions for maximum comp

Re: [PATCH 0/3] soc/tegra: Prevent the PMC driver from corrupting interrupt routing

2020-10-05 Thread Thierry Reding
On Mon, Oct 05, 2020 at 12:14:40PM +0100, Marc Zyngier wrote: > Jon recently reported that one of the Tegra systems (Jetson TX2, aka > tegra186) stopped booting with the introduction of the "IPI as IRQs" > series. After a few weeks of head scratching and complete puzzlement, > I obtained a board an

Re: [PATCH 3/5] sched: Detect call to schedule from critical entry code

2020-10-05 Thread Peter Zijlstra
On Mon, Oct 05, 2020 at 12:49:17PM +0200, Frederic Weisbecker wrote: > Detect calls to schedule() between user_enter() and user_exit(). Those > are symptoms of early entry code that either forgot to protect a call > to schedule() inside exception_enter()/exception_exit() or, in the case > of HAVE_C

Re: [PATCH 09/25] ASoC: sun8i-codec: Prepare to extend the DAI driver

2020-10-05 Thread Maxime Ripard
Hi, On Wed, Sep 30, 2020 at 09:11:32PM -0500, Samuel Holland wrote: > In preparation for adding additional DAIs to this component, convert the > DAI driver definition to an array. Since this changes all of the lines > in the definition anyway, let's move it closer to the ops function > definitions

Re: [PATCH RFC v2] Opportunistic memory reclaim

2020-10-05 Thread Chris Down
Andrea Righi writes: This feature has been successfully used to improve hibernation time of cloud computing instances. Certain cloud providers allow to run "spot instances": low-priority instances that run when there are spare resources available and can be stopped at any time to prioritize othe

Re: [PATCH 10/25] ASoC: sun8i-codec: Program format before clock inversion

2020-10-05 Thread Maxime Ripard
On Wed, Sep 30, 2020 at 09:11:33PM -0500, Samuel Holland wrote: > The LRCK inversion bit has a different meaning in DSP mode: it selects > between DSP A and DSP B formats. To support this, we need to know if > the selected format is a DSP format. One easy way to do this is to set > the format field

Re: [PATCH 2/3] soc/tegra: pmc: Allow optional irq parent callbacks

2020-10-05 Thread Thierry Reding
On Mon, Oct 05, 2020 at 12:14:42PM +0100, Marc Zyngier wrote: > Make the PMC driver resistent to variable depth interrupt hierarchy, > which we are about to introduce. The irq_chip structure is now > allocated statically, providing the indirection for the couple of > callbacks that are SoC-specific

[PATCH] MIPS: alchemy: Share prom_init implementation

2020-10-05 Thread Thomas Bogendoerfer
All boards have the same prom_init() function. Move it to common code and delete the duplicates. Signed-off-by: Thomas Bogendoerfer --- arch/mips/alchemy/board-gpr.c | 17 - arch/mips/alchemy/board-mtx1.c | 17 - arch/mips/alchemy/board-xxs1500.c

[PATCH] MIPS: pgtable: Remove used PAGE_USERIO define

2020-10-05 Thread Thomas Bogendoerfer
There are no users of PAGE_USERIO. Signed-off-by: Thomas Bogendoerfer --- arch/mips/include/asm/pgtable.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/mips/include/asm/pgtable.h b/arch/mips/include/asm/pgtable.h index dd7a0f552cac..e5ef0fdd4838 100644 --- a/arch/mips/include/asm/pgt

Re: [PATCH v2] media: mtk-vcodec: fix builds when remoteproc is disabled

2020-10-05 Thread Alexandre Courbot
On Mon, Oct 5, 2020 at 5:49 PM Sakari Ailus wrote: > > Hi Alexandre, > > On Sun, Oct 04, 2020 at 09:22:34PM +0900, Alexandre Courbot wrote: > > The addition of MT8183 support added a dependency on the SCP remoteproc > > module. However the initial patch used the "select" Kconfig directive, > > whi

Re: [PATCH] ACPI / button: fix handling lid state changes when input device closed

2020-10-05 Thread Rafael J. Wysocki
On Mon, Oct 5, 2020 at 7:11 AM wrote: > > The original intent of 84d3f6b76447 was to delay evaluating lid state until > all drivers have been loaded, with input device being opened from userspace > serving as a signal for this condition. Let's ensure that state updates > happen even if userspace c

Re: [PATCH v2] drivers:tty:pty: Fix a race causing data loss on close

2020-10-05 Thread Greg Kroah-Hartman
On Fri, Oct 02, 2020 at 08:03:04AM -0500, miny...@acm.org wrote: > From: Corey Minyard > > If you write to a pty master an immediately close the pty master, the > receiver might get a chunk of data dropped, but then receive some later > data. That's obviously something rather unexpected for a us

Re: [PATCH 12/25] ASoC: sun8i-codec: Program the correct word size

2020-10-05 Thread Maxime Ripard
On Wed, Sep 30, 2020 at 09:11:35PM -0500, Samuel Holland wrote: > The hardware supports 8 to 24-bit word sizes on all three of its DAIs, > only one of which is connected to the CPU DAI. Program the word size > based on the actual selected format, instead of relying on limitations > in another drive

Re: [PATCH 11/25] ASoC: sun8i-codec: Enable all supported clock inversions

2020-10-05 Thread Maxime Ripard
On Wed, Sep 30, 2020 at 09:11:34PM -0500, Samuel Holland wrote: > When using the I2S, LEFT_J, or RIGHT_J format, the hardware supports > independent BCLK and LRCK inversion control. When using DSP_A or DSP_B, > LRCK inversion is not supported. The register bit is repurposed to > select between DSP_

Re: [PATCH 13/25] ASoC: sun8i-codec: Round up the LRCK divisor

2020-10-05 Thread Maxime Ripard
On Wed, Sep 30, 2020 at 09:11:36PM -0500, Samuel Holland wrote: > The codec supports only power-of-two BCLK/LRCK divisors. If either the > slot width or the number of slots is not a power of two, the LRCK > divisor must be rounded up to provide enough space. To do that, use > order_base_2 (instead

Re: [PATCH 3/3] soc/tegra: pmc: Don't create fake interrupt hierarchy levels

2020-10-05 Thread Thierry Reding
On Mon, Oct 05, 2020 at 12:14:43PM +0100, Marc Zyngier wrote: > The Tegra PMC driver does ungodly things with the interrupt hierarchy, > repeatedly corrupting it by pulling hwirq numbers out of thin air, > overriding existing IRQ mappings and changing the handling flow > of unsuspecting users. > >

Re: [PATCH 15/25] ASoC: sun8i-codec: Support the TDM slot binding

2020-10-05 Thread Maxime Ripard
On Wed, Sep 30, 2020 at 09:11:38PM -0500, Samuel Holland wrote: > Now that BCLK and LRCK rate calculations can handle any > hardware-supported slot width and number of slots, enable > support for overriding these parameters from the device tree. > > Signed-off-by: Samuel Holland Acked-by: Maxime

Re: [PATCH 14/25] ASoC: sun8i-codec: Correct the BCLK divisor calculation

2020-10-05 Thread Maxime Ripard
On Wed, Sep 30, 2020 at 09:11:37PM -0500, Samuel Holland wrote: > Previously, the BCLK divisor calculation assumed a power-of-two slot > width and exactly two slots. In order to support the TDM slot binding > and 20/24-bit word sizes, those assumptions must be removed. > > Due to hardware limitati

Re: [PATCH 2/2] usb: serial: option: add Cellient MPL200 card

2020-10-05 Thread Lars Melin
On 10/5/2020 18:06, Johan Hovold wrote: On Mon, Oct 05, 2020 at 01:01:34PM +0200, Wilken Gottwalt wrote: On Mon, 5 Oct 2020 10:20:45 +0200 Johan Hovold wrote: On Sat, Oct 03, 2020 at 11:40:29AM +0200, Wilken Gottwalt wrote: Add usb ids of the Cellient MPL200 card. Signed-off-by: Wilken Gott

Re: [PATCH 16/25] ASoC: sun8i-codec: Enforce symmetric DAI parameters

2020-10-05 Thread Maxime Ripard
On Wed, Sep 30, 2020 at 09:11:39PM -0500, Samuel Holland wrote: > The AIFs have a single register controlling DAI parameters in both > directions, including BCLK/LRCK divisor word size. The DAIs produce only > noise or silence if any of these parameters is wrong. Therefore, we need > to enforce sym

Re: [PATCH 17/25] ASoC: sun8i-codec: Enable all supported sample rates

2020-10-05 Thread Maxime Ripard
On Wed, Sep 30, 2020 at 09:11:40PM -0500, Samuel Holland wrote: > The system sample rate programmed into the hardware is really a clock > divider from SYSCLK to the ADC and DAC. Since we support two SYSCLK > frequencies, we can use all sample rates corresponding to one of those > frequencies divide

Re: [PATCH v2 08/12] ARM: dts: imx6dl-pico: fix board compatibles

2020-10-05 Thread Fabio Estevam
Hi Marco, On Fri, Oct 2, 2020 at 5:41 AM Marco Felsch wrote: > Question is what was the author's intention? @Fabio do you have any > comments here? Krzysztof's patch looks good: Reviewed-by: Fabio Estevam Thanks

Re: [PATCH v39 11/24] x86/sgx: Add SGX enclave driver

2020-10-05 Thread Jarkko Sakkinen
On Mon, Oct 05, 2020 at 09:45:54AM +0100, Christoph Hellwig wrote: > On Sat, Oct 03, 2020 at 04:39:25PM +0200, Greg KH wrote: > > > @@ -0,0 +1,173 @@ > > > +// SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) > > > > You use gpl-only header files in this file, so how in the world can it > > be b

[PATCH RESEND] hv: clocksource: Add notrace attribute to read_hv_sched_clock_*() functions

2020-10-05 Thread Mohammed Gamal
When selecting function_graph tracer with the command: # echo function_graph > /sys/kernel/debug/tracing/current_tracer The kernel crashes with the following stack trace: [69703.122389] BUG: stack guard page was hit at 1056545c (stack is fa3f8fed..05d39503) [69703.122403

Re: scripts/gdb: issues when loading modules after lx-symbols

2020-10-05 Thread Jan Kiszka
On 05.10.20 13:05, Stefano Garzarella wrote: > On Mon, Oct 05, 2020 at 11:45:41AM +0200, Jan Kiszka wrote: >> On 05.10.20 11:29, Stefano Garzarella wrote: >>> On Mon, Oct 05, 2020 at 10:33:30AM +0200, Jan Kiszka wrote: On 05.10.20 10:14, Stefano Garzarella wrote: > On Sun, Oct 04, 2020 at

Re: [PATCH v39 11/24] x86/sgx: Add SGX enclave driver

2020-10-05 Thread Greg KH
On Mon, Oct 05, 2020 at 02:42:50PM +0300, Jarkko Sakkinen wrote: > On Mon, Oct 05, 2020 at 09:45:54AM +0100, Christoph Hellwig wrote: > > On Sat, Oct 03, 2020 at 04:39:25PM +0200, Greg KH wrote: > > > > @@ -0,0 +1,173 @@ > > > > +// SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) > > > > > > Yo

[PATCH] hwmon: (pmbus/max34440) Fix/add missing break statements

2020-10-05 Thread Alexandru Ardelean
This one was caught by the compiler. Adds missing break statements, which look omitted by accident. Fixes: 599a5ac5f96c ("hwmon: (pmbus/max34440) Fix/add missing break statements") Signed-off-by: Alexandru Ardelean --- Maybe the lkp bot also reported this [by now]. I just bumped into this now, t

linux-next: Fixes tag needs some work in the battery tree

2020-10-05 Thread Stephen Rothwell
Hi all, In commit f9d293364b45 ("power: supply: sbs-battery: keep error code when get_property() fails") Fixes tag Fixes: c4f382930145 (power: supply: sbs-battery: don't assume i2c errors as battery disconnect) has these problem(s): - Target SHA1 does not exist Maybe you meant Fixes

Re: [PATCH 1/3] KVM: x86: disconnect kvm_check_cpuid() from vcpu->arch.cpuid_entries

2020-10-05 Thread Vitaly Kuznetsov
Maxim Levitsky writes: > On Thu, 2020-10-01 at 15:05 +0200, Vitaly Kuznetsov wrote: >> As a preparatory step to allocating vcpu->arch.cpuid_entries dynamically >> make kvm_check_cpuid() check work with an arbitrary 'struct kvm_cpuid_entry2' >> array. >> >> Currently, when kvm_check_cpuid() fails

linux-next: Fixes tag needs some work in the rcu tree

2020-10-05 Thread Stephen Rothwell
Hi all, n commit fe0d06f03320 ("srcu: Avoid escaped section names") Fixes tag Fixes: commit fe15b50cdeee ("srcu: Allocate per-CPU data for DEFINE_SRCU() in modules") has these problem(s): - leading word 'commit' unexpected -- Cheers, Stephen Rothwell pgpgxqQu3pcGQ.pgp Description:

Re: [PATCH] arm64: dts: ti: k3-j7200-main: Add McASP nodes

2020-10-05 Thread Nishanth Menon
On 10:48-20201005, Peter Ujfalusi wrote: > Add the nodes for McASP 0-2 and keep them disabled because several > required properties are not present as they are board specific. > > Signed-off-by: Peter Ujfalusi > --- > arch/arm64/boot/dts/ti/k3-j7200-main.dtsi | 57 ++

Re: [PATCH 18/25] ASoC: sun8i-codec: Automatically set the system sample rate

2020-10-05 Thread Maxime Ripard
On Wed, Sep 30, 2020 at 09:11:41PM -0500, Samuel Holland wrote: > The sun8i codec has three clock/sample rate domains: > - The AIF1 domain, with a sample rate equal to AIF1 LRCK > - The AIF2 domain, with a sample rate equal to AIF2 LRCK > - The SYSCLK domain, containing the ADC, DAC, and effects

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

2020-10-05 Thread Thierry Reding
On Mon, Oct 05, 2020 at 01:17:38PM +0200, Greg Kroah-Hartman wrote: > On Mon, Oct 05, 2020 at 01:08:19PM +0200, Thierry Reding wrote: > > On Mon, Oct 05, 2020 at 12:40:23PM +0200, Greg Kroah-Hartman wrote: > > > On Mon, Oct 05, 2020 at 12:17:21PM +0200, Thierry Reding wrote: > > > > On Mon, Oct 05,

Re: [PATCH 19/25] ASoC: sun8i-codec: Constrain to compatible sample rates

2020-10-05 Thread Maxime Ripard
On Wed, Sep 30, 2020 at 09:11:42PM -0500, Samuel Holland wrote: > While another stream is active, only allow userspace to use sample rates > that are compatible with the current SYSCLK frequency. This ensures the > actual sample rate will always match what is given in hw_params. > > Signed-off-by:

Re: [PATCH 20/25] ASoC: sun8i-codec: Protect the clock rate while streams are open

2020-10-05 Thread Maxime Ripard
On Wed, Sep 30, 2020 at 09:11:43PM -0500, Samuel Holland wrote: > The codec's clock input is shared among all AIFs, and shared with other > audio-related hardware in the SoC, including I2S and SPDIF controllers. > To ensure sample rates selected by userspace or by codec2codec DAI links > are mainta

Re: [PATCH 21/25] ASoC: sun8i-codec: Require an exact BCLK divisor match

2020-10-05 Thread Maxime Ripard
On Wed, Sep 30, 2020 at 09:11:44PM -0500, Samuel Holland wrote: > Now that we guarantee that SYSCLK is running at the optimal rate when > hw_params succeeds, and that it will continue running at that rate, > SYSCLK will always be an integer multiple of BCLK. So we can always > pick the exact divide

Re: [PATCH 22/25] ASoC: sun8i-codec: Enable all supported PCM formats

2020-10-05 Thread Maxime Ripard
On Wed, Sep 30, 2020 at 09:11:45PM -0500, Samuel Holland wrote: > Now that the DAI clock setup is correct for all hardware-supported PCM > formats, we can enable them in the driver. With the appropriate support > in the CPU DAI driver, this allows userspace to access the additional > formats. > >

Re: [PATCH] Revert "gpu/drm: ingenic: Add option to mmap GEM buffers cached"

2020-10-05 Thread Stephen Rothwell
Hi Paul, On Sun, 04 Oct 2020 22:11:23 +0200 Paul Cercueil wrote: > > Pushed to drm-misc-next with the changelog fix, thanks. > > Stephen: > Now it should build fine again. Could you remove the BROKEN flag? Thanks for letting me know, but the fix has not appeared in any drm tree included in linu

Re: [PATCH 1/9] mm, page_alloc: clean up pageset high and batch update

2020-10-05 Thread Michal Hocko
On Tue 22-09-20 16:37:04, Vlastimil Babka wrote: > The updates to pcplists' high and batch valued are handled by multiple > functions that make the calculations hard to follow. Consolidate everything > to pageset_set_high_and_batch() and remove pageset_set_batch() and > pageset_set_high() wrappers.

Re: [PATCH 2/2] usb: serial: option: add Cellient MPL200 card

2020-10-05 Thread Wilken Gottwalt
On Mon, 5 Oct 2020 13:06:38 +0200 Johan Hovold wrote: > On Mon, Oct 05, 2020 at 01:01:34PM +0200, Wilken Gottwalt wrote: > > On Mon, 5 Oct 2020 10:20:45 +0200 > > Johan Hovold wrote: > > > > > On Sat, Oct 03, 2020 at 11:40:29AM +0200, Wilken Gottwalt wrote: > > > > Add usb ids of the Cellient M

Re: [PATCH] arm64: dts: ti: k3-j7200-main: Add McASP nodes

2020-10-05 Thread Peter Ujfalusi
On 05/10/2020 14.58, Nishanth Menon wrote: > On 10:48-20201005, Peter Ujfalusi wrote: >> Add the nodes for McASP 0-2 and keep them disabled because several >> required properties are not present as they are board specific. >> >> Signed-off-by: Peter Ujfalusi >&g

Re: [PATCH] pci: meson: build as module by default

2020-10-05 Thread Lorenzo Pieralisi
On Fri, Oct 02, 2020 at 11:53:27AM -0700, Kevin Hilman wrote: > Hi Lorenzo, > > Lorenzo Pieralisi writes: > > > On Fri, Sep 18, 2020 at 11:12:51AM -0700, Kevin Hilman wrote: > >> Enable pci-meson to build as a module whenever ARCH_MESON is enabled. > >> > >> Cc: Yue Wang > >> Signed-off-by: Ke

Re: [PATCH 23/25] ASoC: sun8i-codec: Generalize AIF clock control

2020-10-05 Thread Maxime Ripard
Hi, On Wed, Sep 30, 2020 at 09:11:46PM -0500, Samuel Holland wrote: > The AIF clock control register has the same layout for all three AIFs. > The only difference between them is that AIF3 is missing some fields. We > can reuse the same register field definitions for all three registers, > and use

Re: [PATCH 24/25] ASoC: sun8i-codec: Add a DAI, widgets, and routes for AIF2

2020-10-05 Thread Maxime Ripard
On Wed, Sep 30, 2020 at 09:11:47PM -0500, Samuel Holland wrote: > This adds support for AIF2, which is stereo and has full clocking > capability, making it very similar to AIF1. > > Signed-off-by: Samuel Holland Acked-by: Maxime Ripard Maxime signature.asc Description: PGP signature

Re: [PATCH v4 35/52] docs: fs: fscrypt.rst: get rid of :c:type: tags

2020-10-05 Thread Mauro Carvalho Chehab
Hi Eric, Em Wed, 30 Sep 2020 10:06:37 -0700 Eric Biggers escreveu: > > I double checked: it is against next-20200922. The reason of > > not being today's next is that I didn't want any new warnings > > to be introduced before I finish this patch series. > > > > Anyway, I'm planning to do a reba

Re: [PATCH v2] mm: Remove src/dst mm parameter in copy_page_range()

2020-10-05 Thread Kirill A. Shutemov
On Fri, Oct 02, 2020 at 03:26:47PM -0400, Peter Xu wrote: > Both of the mm pointers are not needed after commit 7a4830c380f3 ("mm/fork: > Pass new vma pointer into copy_page_range()"). > > Jason Gunthorpe also reported that the ordering of copy_page_range() is odd. > Since working at it, reorder t

Re: [PATCH 2/2] usb: serial: option: add Cellient MPL200 card

2020-10-05 Thread Wilken Gottwalt
On Mon, 5 Oct 2020 18:36:36 +0700 Lars Melin wrote: > On 10/5/2020 18:06, Johan Hovold wrote: > > On Mon, Oct 05, 2020 at 01:01:34PM +0200, Wilken Gottwalt wrote: > >> On Mon, 5 Oct 2020 10:20:45 +0200 > >> Johan Hovold wrote: > >> > >>> On Sat, Oct 03, 2020 at 11:40:29AM +0200, Wilken Gottwalt

Re: [PATCH] arm64: dts: ti: k3-j7200-main: Add McASP nodes

2020-10-05 Thread Nishanth Menon
On 15:02-20201005, Peter Ujfalusi wrote: > > > On 05/10/2020 14.58, Nishanth Menon wrote: > > On 10:48-20201005, Peter Ujfalusi wrote: > >> Add the nodes for McASP 0-2 and keep them disabled because several > >> required properties are not present as they are boa

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

2020-10-05 Thread Greg Kroah-Hartman
On Mon, Oct 05, 2020 at 01:58:19PM +0200, Thierry Reding wrote: > On Mon, Oct 05, 2020 at 01:17:38PM +0200, Greg Kroah-Hartman wrote: > > On Mon, Oct 05, 2020 at 01:08:19PM +0200, Thierry Reding wrote: > > > On Mon, Oct 05, 2020 at 12:40:23PM +0200, Greg Kroah-Hartman wrote: > > > > On Mon, Oct 05,

[PATCH v3 00/32] Make charlcd device independent

2020-10-05 Thread poeschel
From: Lars Poeschel This tries to make charlcd device independent. At the moment hd44780 device specific code is contained deep in charlcd. This moves this out into a hd44780_common module, where the two hd44780 drivers we have at the moment (hd44780 and panel) can use this from. The goal is that

[PATCH v3 28/32] auxdisplay: charlcd: replace last device specific stuff

2020-10-05 Thread poeschel
From: Lars Poeschel These are the last bits left in charlcd.c that are device specific and they are removed now. In detail this is: * bwidth, which is the width of the display buffer per line. This is replaced by width of the display. * hwidth, which is the size of the display buffer as a whole

[PATCH v3 08/32] auxdisplay: hd44780_common_print

2020-10-05 Thread poeschel
From: Lars Poeschel We create a hd44780_common_print function. It is derived from the original charlcd_print. charlcd_print becomes a device independent print function, that then only calles via it's ops function pointers, into the print function offered by drivers. Reported-by: kernel test robo

[PATCH v3 06/32] auxdisplay: Move write_cmd pointers to hd44780 drivers

2020-10-05 Thread poeschel
From: Lars Poeschel The write_cmd function is used to send commands to hd44780 displays. The individual hd44780 drivers then implement their appropriate way of doing this with their supported displays. So we move this pointer so hd44780_common. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poe

[PATCH v3 07/32] auxdisplay: Move addr out of charlcd_priv

2020-10-05 Thread poeschel
From: Lars Poeschel Move out the struct addr from struct charlcd_priv into the less private struct charlcd. This member is used to pass position information. The individual drivers need to be able to read this information, so we move this out of charlcd_priv to charlcd structure. Reviewed-by: Wi

[PATCH v3 10/32] auxdisplay: add home to charlcd_ops

2020-10-05 Thread poeschel
From: Lars Poeschel This adds a home function to the charlcd_ops struct and offer an implementation for hd44780_common. This implementation is used by our two hd44780 drivers. This is to make charlcd device independent. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- drivers/auxdi

[PATCH v3 30/32] auxdisplay: charlcd: Do not print chars at end of line

2020-10-05 Thread poeschel
From: Lars Poeschel Skip printing characters at the end of a display line. This fits to the behaviour we already had, that the cursor is nailed to last position of a line. This might slightly change behaviour. On hd44780 displays with one or two lines the previous implementation did still write c

[PATCH v3 29/32] auxdisplay: Change gotoxy calling interface

2020-10-05 Thread poeschel
From: Lars Poeschel Change the calling interface for gotoxy from supplying the x and y coordinates in the charlcd struct to explicitly supplying x and y in the function arguments. This is more intuitive and allows for moving the cursor to positions independent from the position saved in the charl

[PATCH v3 09/32] auxdisplay: provide hd44780_common_gotoxy

2020-10-05 Thread poeschel
From: Lars Poeschel Provide a hd44780_common_gotoxy function and a pointer in the ops for charlcd to use to move the cursor. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- drivers/auxdisplay/charlcd.c| 38 + drivers/auxdisplay/charlcd.h

[PATCH v3 31/32] auxdisplay: lcd2s DT binding doc

2020-10-05 Thread poeschel
From: Lars Poeschel Add a binding doc for the modtronix lcd2s auxdisplay driver. It also adds modtronix to the list of known vendor-prefixes. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- Changes in v3: - Fixed make dt_binding_doc errors Changes in v2: - Adopted yaml based file f

[PATCH v3 01/32] auxdisplay: Use an enum for charlcd backlight on/off ops

2020-10-05 Thread poeschel
From: Lars Poeschel We use an enum for calling the functions in charlcd, that turn the backlight on or off. This enum is generic and can be used for other charlcd turn of / turn off operations as well. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- drivers/auxdisplay/charlcd.c |

[PATCH v3 11/32] auxdisplay: Move clear_display to hd44780_common

2020-10-05 Thread poeschel
From: Lars Poeschel This moves the clear_display function from charlcd to hd44780_common. This is one more step to make charlcd independent from device specific code. The two hd44780 drivers use the new function from hd44780_common and charlcd calls this function through its function pointer in i

[PATCH v3 02/32] auxdisplay: Introduce hd44780_common.[ch]

2020-10-05 Thread poeschel
From: Lars Poeschel There is some hd44780 specific code in charlcd and this code is used by multiple drivers. To make charlcd independent from this device specific code this has to be moved to a place where the multiple drivers can share their common code. This common place is now introduced as h

[PATCH v3 15/32] auxdisplay: implement hd44780_common_shift_cursor

2020-10-05 Thread poeschel
From: Lars Poeschel Implement a hd44780_common_shift_cursor function for drivers to use and make charlcd use this function through ops function pointer. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- drivers/auxdisplay/charlcd.c| 33 - drivers/

[PATCH v3 32/32] auxdisplay: add a driver for lcd2s character display

2020-10-05 Thread poeschel
From: Lars Poeschel This driver allows to use a lcd2s 20x4 character display from modtronix engineering as an auxdisplay charlcd device. Signed-off-by: Lars Poeschel --- drivers/auxdisplay/Kconfig | 11 + drivers/auxdisplay/Makefile | 1 + drivers/auxdisplay/lcd2s.c | 409

[PATCH v3 25/32] auxdisplay: Call charlcd_backlight in place

2020-10-05 Thread poeschel
From: Lars Poeschel This moves the call to charlcd_backlight from the end of the switch into the actual case statement that originates the change of the backlight. This is more consistent to what is now found in this switch. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- drivers/

[PATCH v3 24/32] auxdisplay: Move char redefine code to hd44780_common

2020-10-05 Thread poeschel
From: Lars Poeschel Take the code to redefine characters out of charlcd and move it to hd44780_common, as this is hd44780 specific. There is now a function hd44780_common_redefine_char that drivers use and charlcd calls it through its ops function pointer. Reviewed-by: Willy Tarreau Signed-off-

[PATCH v3 05/32] auxdisplay: Move write_data pointer to hd44780_common

2020-10-05 Thread poeschel
From: Lars Poeschel This moves the write_data function pointer from struct charlcd_ops to struct hd44780_common. This is the function that actually writes the character to the display. This hd44780 hardware specific function is used by two drivers at the moment. Reviewed-by: Willy Tarreau Signe

[PATCH v3 27/32] auxdisplay: hd44780: Remove clear_fast

2020-10-05 Thread poeschel
From: Lars Poeschel We remove the hd44780_clear_fast (display) clear implementation. With the new timeout the normal clear_display is reasonably fast. So there is no need for a clear_fast anymore. Link: https://lore.kernel.org/lkml/20200922092121.gg16...@1wt.eu/ Signed-off-by: Lars Poeschel --

[PATCH v3 22/32] auxdisplay: Implement hd44780_common_lines

2020-10-05 Thread poeschel
From: Lars Poeschel This implements hd44780_common_lines to switch the display between one and two lines mode. The hd44780 drivers use this function by adding it to their ops structure and charlcd now calls through its ops function pointer. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poesche

[PATCH v3 23/32] auxdisplay: Remove unnecessary hd44780 from charlcd

2020-10-05 Thread poeschel
From: Lars Poeschel The last two commits made another chunk of hd44780 code unnecessary which we remove here. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- drivers/auxdisplay/charlcd.c | 17 + 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/drivers/

[PATCH v3 26/32] auxdisplay: hd44780_common: Reduce clear_display timeout

2020-10-05 Thread poeschel
From: Lars Poeschel Digging in the hd44780 datasheet revealed that the timeout needed after clearing the whole display is only 1,64ms not 15ms. So we can reduce that timeout. Link: https://lore.kernel.org/lkml/20200922092121.gg16...@1wt.eu/ Link: https://www.crystalfontz.com/controllers/Hitachi/

Re: [PATCH v6 02/14] ASoC: sun4i-i2s: Change set_chan_cfg() params

2020-10-05 Thread Maxime Ripard
On Sat, Oct 03, 2020 at 04:19:38PM +0200, Clément Péron wrote: > 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 setted or not > in the struct. > > Avoid to check for this logic in set_chan_cfg

[PATCH v3 20/32] auxdisplay: cleanup unnecessary hd44780 code in charlcd

2020-10-05 Thread poeschel
From: Lars Poeschel This cleans up now unnecessary hd44780 specific code from charlcd. We obsoleted this with the last three patches. So another chunk of hd44780 code can be dropped. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- drivers/auxdisplay/charlcd.c | 17 +---

[PATCH v3 21/32] auxdisplay: Implement hd44780_common_fontsize

2020-10-05 Thread poeschel
From: Lars Poeschel This implements hd44780_common_fontsize to switch between two fontsizes. The hd44780 drivers can just set this function to their ops structure and charlcd uses it through this ops function pointer. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- drivers/auxdisp

[PATCH v3 19/32] auxdisplay: Implement hd44780_common_blink

2020-10-05 Thread poeschel
From: Lars Poeschel Implement a hd44780_common_blink function to turn on or off the blinking of the cursor. The hd44780 drivers just use this function and charlcd calls it through its ops function pointer. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- drivers/auxdisplay/charlcd.

[PATCH] PCI: dwc: Use ATU regions to map memory regions

2020-10-05 Thread Vidya Sagar
Use ATU region-3 and region-0 to setup mapping for prefetchable and non-prefetchable memory regions respectively only if their respective CPU and bus addresses are different. Signed-off-by: Vidya Sagar --- .../pci/controller/dwc/pcie-designware-host.c | 44 --- drivers/pci/contro

[PATCH v3 16/32] auxdisplay: Implement hd44780_common_display_shift

2020-10-05 Thread poeschel
From: Lars Poeschel Implement a hd44780_common_display_shift function for hd44780 drivers to use. charlcd uses this through its ops function pointer. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- drivers/auxdisplay/charlcd.c| 10 ++ drivers/auxdisplay/charlcd.h

[PATCH v3 17/32] auxdisplay: Implement a hd44780_common_display

2020-10-05 Thread poeschel
From: Lars Poeschel Implement a hd44780_common_display function to turn the whole display on or off. The hd44780 drivers can use this and charlcd uses this through its ops function pointer. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- drivers/auxdisplay/charlcd.c| 6 ++

[PATCH v3 18/32] auxdisplay: Implement hd44780_common_cursor

2020-10-05 Thread poeschel
From: Lars Poeschel Implement a hd44780_common_cursor function to turn the cursor on and off. The hd44780 drivers can use this function and charlcd calls it through its ops function pointer. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- drivers/auxdisplay/charlcd.c| 6 +

Re: [PATCH v6 03/14] ASoC: sun4i-i2s: Change get_sr() and get_wss() to be more explicit

2020-10-05 Thread Maxime Ripard
On Sat, Oct 03, 2020 at 04:19:39PM +0200, Clément Péron wrote: > 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. > > Al

[PATCH v3 04/32] auxdisplay: Move ifwidth to struct hd44780_common

2020-10-05 Thread poeschel
From: Lars Poeschel Move struct charlcd member ifwidth to our new struct hd44780_common. ifwidth is hd44780 device specific and is used by two drivers at the moment, so we move it to a common place, where both can use this. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- drivers/a

[PATCH v3 14/32] auxdisplay: Move init_display to hd44780_common

2020-10-05 Thread poeschel
From: Lars Poeschel The init_display function is moved over to hd44780_common. charlcd uses it via it's ops function pointer and drivers initialize the ops with the common hd44780_common_init_display function. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- drivers/auxdisplay/char

[PATCH v3 13/32] auxdisplay: Make use of enum for backlight on / off

2020-10-05 Thread poeschel
From: Lars Poeschel To turn the backlight on or off use our new enum CHARLCD_ON / CHARLCD_OFF. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- drivers/auxdisplay/charlcd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/auxdisplay/charlcd.c b/driv

Re: [PATCH v6 08/14] ASoC: sun4i-i2s: fix coding-style for callback definition

2020-10-05 Thread Maxime Ripard
On Sat, Oct 03, 2020 at 04:19:44PM +0200, Clément Péron wrote: > 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() call

[PATCH v3 12/32] auxdisplay: make charlcd_backlight visible to hd44780_common

2020-10-05 Thread poeschel
From: Lars Poeschel hd44780_common wants to use the charlcd_backlight function, so make it visible. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- drivers/auxdisplay/charlcd.c | 3 ++- drivers/auxdisplay/charlcd.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git

[PATCH v3 03/32] auxdisplay: Move hwidth and bwidth to struct hd44780_common

2020-10-05 Thread poeschel
From: Lars Poeschel hwidth is for the hardware buffer size and bwidth is for the buffer width of one single line. This is specific to the hd44780 displays and so it is moved out from charlcd to struct hd44780_common. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- drivers/auxdispl

[PATCH v2 0/5] mm: place pages to the freelist tail when onlining and undoing isolation

2020-10-05 Thread David Hildenbrand
When adding separate memory blocks via add_memory*() and onlining them immediately, the metadata (especially the memmap) of the next block will be placed onto one of the just added+onlined block. This creates a chain of unmovable allocations: If the last memory block cannot get offlined+removed() s

Re: [PATCH v2 0/3] drm: commit_work scheduling

2020-10-05 Thread Ville Syrjälä
On Fri, Oct 02, 2020 at 10:55:52AM -0700, Rob Clark wrote: > On Fri, Oct 2, 2020 at 4:05 AM Ville Syrjälä > wrote: > > > > On Fri, Oct 02, 2020 at 01:52:56PM +0300, Ville Syrjälä wrote: > > > On Thu, Oct 01, 2020 at 05:25:55PM +0200, Daniel Vetter wrote: > > > > On Thu, Oct 1, 2020 at 5:15 PM Rob

[PATCH v2 1/5] mm/page_alloc: convert "report" flag of __free_one_page() to a proper flag

2020-10-05 Thread David Hildenbrand
Let's prepare for additional flags and avoid long parameter lists of bools. Follow-up patches will also make use of the flags in __free_pages_ok(). Reviewed-by: Alexander Duyck Reviewed-by: Vlastimil Babka Reviewed-by: Oscar Salvador Reviewed-by: Wei Yang Reviewed-by: Pankaj Gupta Acked-by: M

[PATCH v2 5/5] mm/memory_hotplug: update comment regarding zone shuffling

2020-10-05 Thread David Hildenbrand
As we no longer shuffle via generic_online_page() and when undoing isolation, we can simplify the comment. We now effectively shuffle only once (properly) when onlining new memory. Reviewed-by: Wei Yang Acked-by: Michal Hocko Cc: Andrew Morton Cc: Alexander Duyck Cc: Mel Gorman Cc: Michal Ho

[PATCH v2 4/5] mm/page_alloc: place pages to tail in __free_pages_core()

2020-10-05 Thread David Hildenbrand
__free_pages_core() is used when exposing fresh memory to the buddy during system boot and when onlining memory in generic_online_page(). generic_online_page() is used in two cases: 1. Direct memory onlining in online_pages(). 2. Deferred memory onlining in memory-ballooning-like mechanisms (Hype

[PATCH v2 2/5] mm/page_alloc: place pages to tail in __putback_isolated_page()

2020-10-05 Thread David Hildenbrand
__putback_isolated_page() already documents that pages will be placed to the tail of the freelist - this is, however, not the case for "order >= MAX_ORDER - 2" (see buddy_merge_likely()) - which should be the case for all existing users. This change affects two users: - free page reporting - page

[PATCH v2 3/5] mm/page_alloc: move pages to tail in move_to_free_list()

2020-10-05 Thread David Hildenbrand
Whenever we move pages between freelists via move_to_free_list()/ move_freepages_block(), we don't actually touch the pages: 1. Page isolation doesn't actually touch the pages, it simply isolates pageblocks and moves all free pages to the MIGRATE_ISOLATE freelist. When undoing isolation, we m

Re: [PATCH] regmap: irq: Add support to clear ack registers

2020-10-05 Thread b_lkasam
On 2020-09-27 17:53, Greg KH wrote: On Fri, Sep 25, 2020 at 07:14:01PM +0530, b_lka...@codeaurora.org wrote: For particular codec HWs have requirement to writing interrupt clear and mask interrupt clear register to toggle interrupt status. To accommodate it, need to add one more field (clear_ack

Re: [PATCH net-next 03/16] devlink: Add devlink reload limit option

2020-10-05 Thread Jiri Pirko
Sun, Oct 04, 2020 at 08:42:47AM CEST, mo...@nvidia.com wrote: > >On 10/3/2020 10:51 AM, Jiri Pirko wrote: >> Thu, Oct 01, 2020 at 03:59:06PM CEST, mo...@mellanox.com wrote: >> >> [...] >> >> > enum devlink_attr { >> >/* don't change the order or add anything between, this is ABI! */ >> >D

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