Re: [PATCH 2/3] power: supply: max8997_charger: Set CHARGER current limit

2020-12-04 Thread Timon Baetz
On Wed, 2 Dec 2020 23:50:57 +0200, Krzysztof Kozlowski wrote: > On Wed, Dec 02, 2020 at 09:07:19PM +, Timon Baetz wrote: > > Register for extcon notification and set charging current depending on > > the detected cable type. Current values are taken from i9100 kernel > > fork. > > > > Enable

Re: [PATCH] [v2] phy: mediatek: allow compile-testing the hdmi phy

2020-12-04 Thread Vinod Koul
On 04-12-20, 14:56, Arnd Bergmann wrote: > From: Arnd Bergmann > > Compile-testing the DRM_MEDIATEK_HDMI driver shows two missing > dependencies, one results in a link failure: > > arm-linux-gnueabi-ld: drivers/phy/mediatek/phy-mtk-hdmi.o: in function > `mtk_hdmi_phy_probe': >

Re: [PATCH 5/7] regmap: sdw: use no_pm routines for SoundWire 1.2 MBQ

2020-12-04 Thread Vinod Koul
On 03-12-20, 04:46, Bard Liao wrote: > MODULE_DESCRIPTION("Regmap SoundWire MBQ Module"); > -MODULE_LICENSE("GPL v2"); > +MODULE_LICENSE("GPL"); Why do you want to change this ? > -- > 2.17.1 -- ~Vinod

Re: [PATCH 4/7] soundwire/regmap: use _no_pm functions in regmap_read/write

2020-12-04 Thread Vinod Koul
On 03-12-20, 04:46, Bard Liao wrote: > sdw_update_slave_status will be invoked when a codec is attached, > and the codec driver will initialize the codec with regmap functions > while the codec device is pm_runtime suspended. > > regmap routines currently rely on regular SoundWire IO functions, >

Re: [PATCH 1/7] soundwire: bus: use sdw_update_no_pm when initializing a device

2020-12-04 Thread Vinod Koul
On 03-12-20, 04:46, Bard Liao wrote: > From: Pierre-Louis Bossart > > When a Slave device is resumed, it may resume the bus and restart the > enumeration. During that process, we absolutely don't want to call > regular read/write routines which will wait for the resume to > complete, otherwise a

Re: [PATCH] soundwire: intel: fix another unused-function warning

2020-12-04 Thread Vinod Koul
On 04-12-20, 00:04, Arnd Bergmann wrote: > From: Arnd Bergmann > > Without CONFIG_PM, there is another warning about an unused function: > > drivers/soundwire/intel.c:530:12: error: 'intel_link_power_down' defined but > not used [-Werror=unused-function] Applied, thanks -- ~Vinod

Re: [RFC PATCH] usb: hcd: complete URBs in threaded-IRQ context instead of tasklet

2020-12-04 Thread Davidlohr Bueso
On Thu, 03 Dec 2020, Bueso wrote: On Mon, 16 Apr 2018, Sebastian Andrzej Siewior wrote: On 2018-03-08 10:57:39 [+0100], To Mauro Carvalho Chehab wrote: On 2018-02-27 14:39:34 [-0300], Mauro Carvalho Chehab wrote: Hi Sebastian, Hi Mauro, Sorry for taking some time to test it, has been

Re: [PATCH v1, 3/5] mailbox: mediatek: add control_by_sw private data

2020-12-04 Thread Nicolas Boichat
On Sat, Dec 5, 2020 at 12:18 PM Yongqiang Niu wrote: > > add control_by_sw private data Can you describe in a bit more details what this means? > > Signed-off-by: Yongqiang Niu > --- > drivers/mailbox/mtk-cmdq-mailbox.c | 7 +++ > 1 file changed, 7 insertions(+) > > diff --git

Re: [PATCH v1, 4/5] soc: mediatek: cmdq: add address shift in jump

2020-12-04 Thread Nicolas Boichat
On Sat, Dec 5, 2020 at 12:16 PM Yongqiang Niu wrote: > > Add address shift when compose jump instruction > to compatible with 35bit format. This looks reasonable, but task->cmdq->shift_pa is not new and was introduced as part of mt6779 GCE support. Do you want to add a Fixes tag? Fixes:

Re: [PATCH 2/7] net: batman-adv: remove unneeded MODULE_VERSION() usage

2020-12-04 Thread Sven Eckelmann
On Wednesday, 2 December 2020 13:49:54 CET Enrico Weigelt, metux IT consult wrote: > Remove MODULE_VERSION(), as it isn't needed at all: the only version > making sense is the kernel version. Is there some explanation besides an opinion? Some kind goal which you want to achieve with it maybe?

Re: [BUG] SPI broken for SPI based panel drivers

2020-12-04 Thread H. Nikolaus Schaller
Hi Linus, > Am 05.12.2020 um 01:25 schrieb Linus Walleij : > > On Fri, Dec 4, 2020 at 5:52 PM H. Nikolaus Schaller > wrote: > >> But what I don't know is if I can omit spi-cs-high and have to keep >> ACTIVE_HIGH (my revert patch) or also change to ACTIVE_LOW (my additional >> patch). This is

linux-next boot error: kernel BUG at mm/page_alloc.c:LINE!

2020-12-04 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:2996bd3f Add linux-next specific files for 20201204 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=16e3f06d50 kernel config: https://syzkaller.appspot.com/x/.config?x=94ba7fafa89f1c3f dashboard

[PATCH v9 10/12] mm/vmalloc: add vmap_range_noflush variant

2020-12-04 Thread Nicholas Piggin
As a side-effect, the order of flush_cache_vmap() and arch_sync_kernel_mappings() calls are switched, but that now matches the other callers in this file. Signed-off-by: Nicholas Piggin --- mm/vmalloc.c | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git

[PATCH v9 11/12] mm/vmalloc: Hugepage vmalloc mappings

2020-12-04 Thread Nicholas Piggin
Support huge page vmalloc mappings. Config option HAVE_ARCH_HUGE_VMALLOC enables support on architectures that define HAVE_ARCH_HUGE_VMAP and supports PMD sized vmap mappings. vmalloc will attempt to allocate PMD-sized pages if allocating PMD size or larger, and fall back to small pages if that

[PATCH v9 12/12] powerpc/64s/radix: Enable huge vmalloc mappings

2020-12-04 Thread Nicholas Piggin
Cc: linuxppc-...@lists.ozlabs.org Signed-off-by: Nicholas Piggin --- Documentation/admin-guide/kernel-parameters.txt | 2 ++ arch/powerpc/Kconfig| 1 + arch/powerpc/kernel/module.c| 13 +++-- 3 files changed, 14 insertions(+), 2

[PATCH v9 05/12] mm: HUGE_VMAP arch support cleanup

2020-12-04 Thread Nicholas Piggin
This changes the awkward approach where architectures provide init functions to determine which levels they can provide large mappings for, to one where the arch is queried for each call. This removes code and indirection, and allows constant-folding of dead code for unsupported levels. This

[PATCH v9 08/12] x86: inline huge vmap supported functions

2020-12-04 Thread Nicholas Piggin
This allows unsupported levels to be constant folded away, and so p4d_free_pud_page can be removed because it's no longer linked to. Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: x...@kernel.org Cc: "H. Peter Anvin" Signed-off-by: Nicholas Piggin ---

[PATCH v9 07/12] arm64: inline huge vmap supported functions

2020-12-04 Thread Nicholas Piggin
This allows unsupported levels to be constant folded away, and so p4d_free_pud_page can be removed because it's no longer linked to. Cc: Catalin Marinas Cc: Will Deacon Cc: linux-arm-ker...@lists.infradead.org Acked-by: Catalin Marinas Signed-off-by: Nicholas Piggin ---

[PATCH v9 09/12] mm: Move vmap_range from mm/ioremap.c to mm/vmalloc.c

2020-12-04 Thread Nicholas Piggin
This is a generic kernel virtual memory mapper, not specific to ioremap. Signed-off-by: Nicholas Piggin --- include/linux/vmalloc.h | 3 + mm/ioremap.c| 197 mm/vmalloc.c| 196 +++ 3 files

[PATCH v9 06/12] powerpc: inline huge vmap supported functions

2020-12-04 Thread Nicholas Piggin
This allows unsupported levels to be constant folded away, and so p4d_free_pud_page can be removed because it's no longer linked to. Cc: linuxppc-...@lists.ozlabs.org Acked-by: Michael Ellerman Signed-off-by: Nicholas Piggin --- arch/powerpc/include/asm/vmalloc.h | 19 ---

[PATCH v9 04/12] mm/ioremap: rename ioremap_*_range to vmap_*_range

2020-12-04 Thread Nicholas Piggin
This will be used as a generic kernel virtual mapping function, so re-name it in preparation. Signed-off-by: Nicholas Piggin --- mm/ioremap.c | 64 +++- 1 file changed, 33 insertions(+), 31 deletions(-) diff --git a/mm/ioremap.c b/mm/ioremap.c

[PATCH v9 02/12] mm: apply_to_pte_range warn and fail if a large pte is encountered

2020-12-04 Thread Nicholas Piggin
apply_to_pte_range might mistake a large pte for bad, or treat it as a page table, resulting in a crash or corruption. Add a test to warn and return error if large entries are found. Signed-off-by: Nicholas Piggin --- mm/memory.c | 66 +++-- 1

[PATCH v9 03/12] mm/vmalloc: rename vmap_*_range vmap_pages_*_range

2020-12-04 Thread Nicholas Piggin
The vmalloc mapper operates on a struct page * array rather than a linear physical address, re-name it to make this distinction clear. Signed-off-by: Nicholas Piggin --- mm/vmalloc.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/mm/vmalloc.c b/mm/vmalloc.c

[PATCH v9 01/12] mm/vmalloc: fix vmalloc_to_page for huge vmap mappings

2020-12-04 Thread Nicholas Piggin
vmalloc_to_page returns NULL for addresses mapped by larger pages[*]. Whether or not a vmap is huge depends on the architecture details, alignments, boot options, etc., which the caller can not be expected to know. Therefore HUGE_VMAP is a regression for vmalloc_to_page. This change teaches

[PATCH v9 00/12] huge vmalloc mappings

2020-12-04 Thread Nicholas Piggin
Hi Andrew, A couple of things Rick noticed, he's working on huge module mappings to help iTLB pressure and seems to think this series will be useful infrastructure for his work. I think it finally should be just about ready. Thanks, Nick Since v8: - Fixed nommu compile. - Added Kconfig option

Re: [PATCH v2] clk: renesas: r9a06g032: Drop __packed for portability

2020-12-04 Thread Stephen Boyd
Quoting Geert Uytterhoeven (2020-11-30 00:57:43) > The R9A06G032 clock driver uses an array of packed structures to reduce > kernel size. However, this array contains pointers, which are no longer > aligned naturally, and cannot be relocated on PPC64. Hence when > compile-testing this driver on

[PATCH] sched/rt:fix the missing of rt_rq runtime check in rt-period timer

2020-12-04 Thread carver4lio
From: Hailong Liu The rq->rd->span of a cpu in a system with isolated cpus splited into two different parts: one is for isolated cpus, another for non-isolated cpus. When CONFIG_RT_GROUP_SCHED enabled, the handler of sched_rt_period_timer updates rt_time and rt_runtime for every cpus in

Re: [PATCH v2 00/18] Add CMU/RMU/DMA/MMC/I2C support for Actions Semi S500 SoCs

2020-12-04 Thread Manivannan Sadhasivam
Hi Cristi, On Fri, Nov 20, 2020 at 01:55:54AM +0200, Cristian Ciocaltea wrote: > Hi, > > This patchset brings a series of improvements for the Actions Semi S500 > SoCs family, by adding support for Clock & Reset Management Units, DMA, > MMC, I2C & SIRQ controllers. > > Please note the patches

Re: [PATCH v2 05/18] dmaengine: owl: Add compatible for the Actions Semi S500 DMA controller

2020-12-04 Thread Manivannan Sadhasivam
On Sun, Nov 29, 2020 at 08:24:21PM +0200, Cristian Ciocaltea wrote: > On Sat, Nov 28, 2020 at 01:00:45PM +0530, Manivannan Sadhasivam wrote: > > On Fri, Nov 20, 2020 at 01:55:59AM +0200, Cristian Ciocaltea wrote: > > > The DMA controller present on the Actions Semi S500 SoC is compatible > > >

Re: [PATCH v2 16/18] arm: dts: owl-s500-roseapplepi: Add uSD support

2020-12-04 Thread Manivannan Sadhasivam
On Sun, Nov 29, 2020 at 08:35:32PM +0200, Cristian Ciocaltea wrote: > On Sat, Nov 28, 2020 at 01:08:51PM +0530, Manivannan Sadhasivam wrote: > > On Fri, Nov 20, 2020 at 01:56:10AM +0200, Cristian Ciocaltea wrote: > > > Add uSD support for RoseapplePi SBC using a fixed regulator as a > > >

Re: [PATCH v2 18/18] MAINTAINERS: Add linux-actions ML for Actions Semi Arch

2020-12-04 Thread Manivannan Sadhasivam
On Mon, Nov 30, 2020 at 01:54:45AM +0100, Andreas Färber wrote: > On 29.11.20 20:48, Cristian Ciocaltea wrote: > > On Sat, Nov 28, 2020 at 01:13:50PM +0530, Manivannan Sadhasivam wrote: > >> On Fri, Nov 20, 2020 at 01:56:12AM +0200, Cristian Ciocaltea wrote: > >>> Add the linux-actions mailing

[PATCH v2 2/3] Input: atmel_mxt_ts - support wakeup methods

2020-12-04 Thread Dmitry Osipenko
According to datasheets, chips like mXT1386 have a WAKE line, it is used to wake the chip up from deep sleep mode before communicating with it via the I2C-compatible interface. If the WAKE line is connected to a GPIO line, the line must be asserted 25 ms before the host attempts to communicate

[PATCH v2 3/3] ARM: tegra: acer-a500: Add atmel,wakeup-method property

2020-12-04 Thread Dmitry Osipenko
Add atmel,wakeup-method property to the touchscreen node. Signed-off-by: Dmitry Osipenko --- arch/arm/boot/dts/tegra20-acer-a500-picasso.dts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/boot/dts/tegra20-acer-a500-picasso.dts b/arch/arm/boot/dts/tegra20-acer-a500-picasso.dts

[PATCH v2 0/3] Support wakeup methods of Atmel maXTouch controllers

2020-12-04 Thread Dmitry Osipenko
Some Atmel maXTouch controllers, like mXT1386 and mXT3432S1 for example, have a WAKE line that needs to be asserted in order to wake controller from a deep sleep, otherwise it will be unusable. This series implements support for the wakeup methods in accordance to the mXT1386 datasheet [1], see

[PATCH v2 1/3] dt-bindings: input: atmel_mxt_ts: Document atmel,wakeup-method and wake-GPIO

2020-12-04 Thread Dmitry Osipenko
Some Atmel touchscreen controllers have a WAKE line that needs to be asserted low in order to wake up controller from a deep sleep. Document the wakeup methods and the wake-GPIO properties. Signed-off-by: Dmitry Osipenko --- .../bindings/input/atmel,maxtouch.yaml| 26 +++

RE: [PATCH v4 00/10] Introduced new Cadence USBSSP DRD Driver.

2020-12-04 Thread Aswath Govindraju
Hi, On 04/12/20 6:49 am, Peter Chen wrote: > >> This patch introduce new Cadence USBSS DRD driver to linux kernel. >> >> The Cadence USBSS DRD Controller is a highly configurable IP Core which can >> be instantiated as Dual-Role Device (DRD), Peripheral Only and Host Only >>

Re: [PATCH] clk: imx: fix build failure on i.MX SCU clk

2020-12-04 Thread Stephen Boyd
Quoting Arnd Bergmann (2020-12-03 15:07:52) > From: Arnd Bergmann > > When CONFIG_MXC_CLK_SCU is enabled, but CONFIG_CLK_IMX8QXP is not, > the kernel fails to link with: > > aarch64-linux-ld: no input files > make[5]: *** [scripts/Makefile.build:434: drivers/clk/imx/clk-imx-scu.o] > Error 1 >

Re: [PATCH v1 2/3] Input: atmel_mxt_ts - support wakeup methods

2020-12-04 Thread Dmitry Osipenko
05.12.2020 08:33, Dmitry Osipenko пишет: > + /* Request the WAKE line as asserted so controller won't sleep */ > + data->wake_gpio = devm_gpiod_get_optional(>dev, > + "wake", GPIOD_OUT_HIGH); > + if (IS_ERR(data->reset_gpio)) { > +

[PATCH v1 0/3] Support wakeup methods of Atmel maXTouch controllers

2020-12-04 Thread Dmitry Osipenko
Some Atmel maXTouch controllers, like mXT1386 and mXT3432S1 for example, have a WAKE line that needs to be asserted in order to wake controller from a deep sleep, otherwise it will be unusable. This series implements support for the wakeup methods in accordance to the mXT1386 datasheet [1], see

[PATCH v1 1/3] dt-bindings: input: atmel_mxt_ts: Document atmel,wakeup-method and wake-GPIO

2020-12-04 Thread Dmitry Osipenko
Some Atmel touchscreen controllers have a WAKE line that needs to be asserted low in order to wake up controller from a deep sleep. Document the wakeup methods and the wake-GPIO properties. Signed-off-by: Dmitry Osipenko --- .../bindings/input/atmel,maxtouch.yaml| 26 +++

[PATCH v1 3/3] ARM: tegra: acer-a500: Add atmel,wakeup-method property

2020-12-04 Thread Dmitry Osipenko
Add atmel,wakeup-method property to the touchscreen node. Signed-off-by: Dmitry Osipenko --- arch/arm/boot/dts/tegra20-acer-a500-picasso.dts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/boot/dts/tegra20-acer-a500-picasso.dts b/arch/arm/boot/dts/tegra20-acer-a500-picasso.dts

[PATCH v1 2/3] Input: atmel_mxt_ts - support wakeup methods

2020-12-04 Thread Dmitry Osipenko
According to datasheets, chips like mXT1386 have a WAKE line, it is used to wake the chip up from deep sleep mode before communicating with it via the I2C-compatible interface. If the WAKE line is connected to a GPIO line, the line must be asserted 25 ms before the host attempts to communicate

Re: linux-next: build warning after merge of the akpm tree

2020-12-04 Thread Andrew Morton
On Fri, 4 Dec 2020 21:00:00 +1100 Stephen Rothwell wrote: > Hi all, > > After merging the akpm tree, today's linux-next build (powerpc > allyesconfig) produced warnings like this: > > kernel/kcov.c:296:14: warning: conflicting types for built-in function > '__sanitizer_cov_trace_switch';

Re: [PATCH 1/2] powerpc: Retire e200 core (mpc555x processor)

2020-12-04 Thread Scott Wood
On Tue, 2020-11-17 at 05:07 +, Christophe Leroy wrote: > There is no defconfig selecting CONFIG_E200, and no platform. > > e200 is an earlier version of booke, a predecessor of e500, > with some particularities like an unified cache instead of both an > instruction cache and a data cache. >

Re: [PATCH 4/5] clk: qcom: Add SDM660 GPU Clock Controller (GPUCC) driver

2020-12-04 Thread Bjorn Andersson
On Sat 26 Sep 08:03 CDT 2020, khol...@gmail.com wrote: > From: AngeloGioacchino Del Regno > > The GPUCC manages the clocks for the Adreno GPU found on the > SDM630, SDM636, SDM660 SoCs. > > Signed-off-by: AngeloGioacchino Del Regno > --- > drivers/clk/qcom/Kconfig | 9

Re: [PATCH 5/5] dt-bindings: clock: Add QCOM SDM630 and SDM660 graphics clock bindings

2020-12-04 Thread Bjorn Andersson
On Sat 26 Sep 08:03 CDT 2020, khol...@gmail.com wrote: > From: AngeloGioacchino Del Regno > > Add device tree bindings for graphics clock controller for > Qualcomm Technology Inc's SDM630 and SDM660 SoCs. > --- > .../bindings/clock/qcom,sdm660-gpucc.yaml | 75 +++ > 1 file

Re: [PATCH 0/1] mm: initialize struct pages in reserved regions outside of the zone ranges

2020-12-04 Thread Andrew Morton
On Fri, 4 Dec 2020 20:32:37 -0500 Andrea Arcangeli wrote: > I'm running with these patch applied on all instances as solution to > the compaction crashes that started to trigger after the v5.9 > upgrade. It's applied on top of > https://lore.kernel.org/lkml/20201201181502.2340-1-r...@kernel.org

Re: [PATCH 3/5] clk: qcom: mmcc-sdm660: Add MDP clock source CXC to MDSS GDSC

2020-12-04 Thread Bjorn Andersson
On Sat 26 Sep 08:03 CDT 2020, khol...@gmail.com wrote: > From: AngeloGioacchino Del Regno > > It is required for optimal performance and to avoid MDP stalls to > retain mem/periph on GDSC enablement: to achieve this, let's add > the required CXC to the MDSS GDSC. > Can you please explain how

Re: [PATCH 2/2] MIPS: Select ARCH_KEEP_MEMBLOCK to enable sysfs memblock debug

2020-12-04 Thread Tiezhu Yang
On 12/04/2020 08:08 PM, Thomas Bogendoerfer wrote: On Thu, Dec 03, 2020 at 11:58:51AM +0800, Jiaxun Yang wrote: 在 2020/12/3 上午11:19, Tiezhu Yang 写道: In the current code, CONFIG_ARCH_KEEP_MEMBLOCK is not set for MIPS arch, memblock_discard() will discard memory and reserved arrays if they were

Re: [PATCH 3/3] kunit: tool: move kunitconfig parsing into __init__

2020-12-04 Thread David Gow
On Sat, Dec 5, 2020 at 2:18 AM Daniel Latypov wrote: > > On Thu, Dec 3, 2020 at 7:57 PM David Gow wrote: > > > > On Fri, Dec 4, 2020 at 3:41 AM Daniel Latypov wrote: > > > > > > LinuxSourceTree will unceremoniously crash if the user doesn't call > > > read_kunitconfig() first in a number of

[PATCH] Documentation: x86: update the thread_info's position

2020-12-04 Thread Mingzhe Yang
Prior to kernel 4.9 the thread_info structure was at the bottom of the kernel stack. kernel 4.9 moved it into the task_struct. See commits c65eacb ("sched/core: Allow putting thread_info into task_struct"), 15f4eae ("x86: Move thread_info into task_struct") and 883d50f ("scripts/gdb: fix

Re: [PATCH 1/5] clk: qcom: Add SDM660 Multimedia Clock Controller (MMCC) driver

2020-12-04 Thread Bjorn Andersson
On Sat 26 Sep 08:03 CDT 2020, khol...@gmail.com wrote: > diff --git a/drivers/clk/qcom/mmcc-sdm660.c b/drivers/clk/qcom/mmcc-sdm660.c [..] > +static int mmcc_660_probe(struct platform_device *pdev) > +{ > + struct regmap *regmap; > + bool is_sdm630 = 0; This shouldn't be 0, but there's no

Re: [RFC v2 2/2] [MOCKUP] sched/mm: Lightweight lazy mm refcounting

2020-12-04 Thread Nicholas Piggin
Excerpts from Andy Lutomirski's message of December 5, 2020 12:37 am: > > >> On Dec 3, 2020, at 11:54 PM, Nicholas Piggin wrote: >> >> Excerpts from Andy Lutomirski's message of December 4, 2020 3:26 pm: >>> This is a mockup. It's designed to illustrate the algorithm and how the >>> code

Re: [PATCH v8 11/12] mm/vmalloc: Hugepage vmalloc mappings

2020-12-04 Thread Nicholas Piggin
Excerpts from Edgecombe, Rick P's message of December 5, 2020 4:33 am: > On Fri, 2020-12-04 at 18:12 +1000, Nicholas Piggin wrote: >> Excerpts from Edgecombe, Rick P's message of December 1, 2020 6:21 >> am: >> > On Sun, 2020-11-29 at 01:25 +1000, Nicholas Piggin wrote: >> > > Support huge page

Re: consoles: was: [PATCH next v2 3/3] printk: remove logbuf_lock, add syslog_lock

2020-12-04 Thread Sergey Senozhatsky
On (20/12/04 17:19), Petr Mladek wrote: [..] > > --- a/kernel/printk/printk.c > > +++ b/kernel/printk/printk.c > > @@ -2432,7 +2490,6 @@ void console_unlock(void) > > size_t len; > > > > printk_safe_enter_irqsave(flags); > > Why do we actually need to use the printk_safe

Re: [PATCH v2] scsi: NCR5380: Remove context check

2020-12-04 Thread Finn Thain
On Fri, 4 Dec 2020, Ahmed S. Darwish wrote: > NCR5380_poll_politely2() uses in_interrupt() and irqs_disabled() to > check if it is safe to sleep. > > Such usage in drivers is phased out and Linus clearly requested that > code which changes behaviour depending on context should either be >

[PATCH v3] f2fs: fix race of pending_pages in decompression

2020-12-04 Thread Daeho Jeong
From: Daeho Jeong I found out f2fs_free_dic() is invoked in a wrong timing, but f2fs_verify_bio() still needed the dic info and it triggered the below kernel panic. It has been caused by the race condition of pending_pages value between decompression and verity logic, when the same compression

Re: recursion handling: Re: [PATCH next v2 3/3] printk: remove logbuf_lock, add syslog_lock

2020-12-04 Thread Sergey Senozhatsky
On (20/12/04 17:10), Petr Mladek wrote: [..] > char *get_printk_counter_by_ctx() > { > int ctx = 0; > > if (in_nmi) > ctx = 1; > > if (!printk_percpu_data_ready()) > return _count_early[ctx]; > > return this_cpu_ptr(printk_count[ctx]); > } > >

[PATCH v1, 5/5] mailbox: cmdq: add mt8192 support

2020-12-04 Thread Yongqiang Niu
add mt8192 support Signed-off-by: Yongqiang Niu --- drivers/mailbox/mtk-cmdq-mailbox.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/mailbox/mtk-cmdq-mailbox.c b/drivers/mailbox/mtk-cmdq-mailbox.c index 5ed39f8..6e9f764 100644 --- a/drivers/mailbox/mtk-cmdq-mailbox.c +++

[PATCH v1, 1/5] dt-binding: gce: add gce header file for mt8192

2020-12-04 Thread Yongqiang Niu
Add documentation for the mt8192 gce. Add gce header file defined the gce hardware event, subsys number and constant for mt8192. Signed-off-by: Yongqiang Niu --- .../devicetree/bindings/mailbox/mtk-gce.txt| 7 +- include/dt-bindings/gce/mt8192-gce.h | 419

[PATCH v1, 3/5] mailbox: mediatek: add control_by_sw private data

2020-12-04 Thread Yongqiang Niu
add control_by_sw private data Signed-off-by: Yongqiang Niu --- drivers/mailbox/mtk-cmdq-mailbox.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/mailbox/mtk-cmdq-mailbox.c b/drivers/mailbox/mtk-cmdq-mailbox.c index 5665b6e..1c01fe0 100644 ---

[PATCH v1, 4/5] soc: mediatek: cmdq: add address shift in jump

2020-12-04 Thread Yongqiang Niu
Add address shift when compose jump instruction to compatible with 35bit format. Signed-off-by: Yongqiang Niu --- drivers/mailbox/mtk-cmdq-mailbox.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mailbox/mtk-cmdq-mailbox.c b/drivers/mailbox/mtk-cmdq-mailbox.c

[PATCH v1, 2/5] arm64: dts: mt8192: add gce node

2020-12-04 Thread Yongqiang Niu
add gce node Signed-off-by: Yongqiang Niu --- arch/arm64/boot/dts/mediatek/mt8192.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi b/arch/arm64/boot/dts/mediatek/mt8192.dtsi index 69d45c7..7c0c233 100644 ---

[PATCH v1, 0/5] support gce on mt8192 platform

2020-12-04 Thread Yongqiang Niu
support gce on mt8192 platform Yongqiang Niu (5): dt-binding: gce: add gce header file for mt8192 arm64: dts: mt8192: add gce node mailbox: mediatek: add control_by_sw private data soc: mediatek: cmdq: add address shift in jump mailbox: cmdq: add mt8192 support

Re: [PATCH v1 3/7] spi: qspi-tegra: Add support for Tegra210 QSPI controller

2020-12-04 Thread Sowjanya Komatineni
On 12/4/20 2:46 PM, Mark Brown wrote: On Fri, Dec 04, 2020 at 01:04:46PM -0800, Sowjanya Komatineni wrote: On 12/4/20 10:52 AM, Mark Brown wrote: On Thu, Dec 03, 2020 at 04:22:54PM -0800, Sowjanya Komatineni wrote: Also unpack mode needs to manually put the bytes together from read data to

[PATCH] MAINTAINERS: Update 68k Mac entry

2020-12-04 Thread Finn Thain
Two files under drivers/macintosh are actually m68k-only. I think that patches for these files should be reviewed in the appropriate forum and merged via the appropriate tree, rather than falling to the powerpc maintainers to deal with. Update the "M68K ON APPLE MACINTOSH" section accordingly.

Re: [f2fs-dev] [PATCH] f2fs: fix race of pending_pages in decompression

2020-12-04 Thread Daeho Jeong
Yep, we need to come back to v1 and enable verity in a unit of cluster. Plus, as I told you, I'll prevent newly verity enalbed pages from being merged with verity disabled bio. Thanks, 2020년 12월 5일 (토) 오전 3:29, Jaegeuk Kim 님이 작성: > > On 12/04, Daeho Jeong wrote: > > Thanks for the explanation

Re: [PATCH v8 3/3] net: ax88796c: ASIX AX88796C SPI Ethernet Adapter Driver

2020-12-04 Thread Jakub Kicinski
On Wed, 2 Dec 2020 22:47:09 +0100 Łukasz Stelmach wrote: > ASIX AX88796[1] is a versatile ethernet adapter chip, that can be > connected to a CPU with a 8/16-bit bus or with an SPI. This driver > supports SPI connection. > > The driver has been ported from the vendor kernel for ARTIK5[2] >

Re: [PATCH 03/22] keembay-ipc: Add Keem Bay IPC module

2020-12-04 Thread mark gross
On Wed, Dec 02, 2020 at 08:01:18PM +0100, Greg KH wrote: > On Wed, Dec 02, 2020 at 09:42:00AM -0800, mark gross wrote: > > On Wed, Dec 02, 2020 at 07:16:20AM +0100, Greg KH wrote: > > > On Tue, Dec 01, 2020 at 02:34:52PM -0800, mgr...@linux.intel.com wrote: > > > > --- a/MAINTAINERS > > > > +++

[tip:x86/urgent] BUILD SUCCESS 46a4ad7814fa39971aa6549b30c1a08d5c2ec65f

2020-12-04 Thread kernel test robot
allyesconfig powerpc allmodconfig powerpc allnoconfig x86_64 randconfig-a004-20201204 x86_64 randconfig-a006-20201204 x86_64 randconfig-a002-20201204 x86_64 randconfig-a001-20201204 x86_64

Re: [PATCH] macintosh/adb-iop: Send correct poll command

2020-12-04 Thread Finn Thain
On Fri, 4 Dec 2020, Geert Uytterhoeven wrote: > Hi Finn, > > On Fri, Nov 20, 2020 at 5:54 AM Finn Thain wrote: > > The behaviour of the IOP firmware is not well documented but we do know > > that IOP message reply data can be used to issue new ADB commands. > > Use the message reply to better

Re: [PATCH] macintosh/adb-iop: Always wait for reply message from IOP

2020-12-04 Thread Finn Thain
On Fri, 4 Dec 2020, Geert Uytterhoeven wrote: > Hi Finn, > > On Fri, Nov 20, 2020 at 5:54 AM Finn Thain wrote: > > A recent patch incorrectly altered the adb-iop state machine behaviour > > and introduced a regression that can appear intermittently as a > > malfunctioning ADB input device. This

Re: [PATCH v3 4/5] prctl: Hook L1D flushing in via prctl

2020-12-04 Thread Balbir Singh
On Fri, Dec 04, 2020 at 11:19:17PM +0100, Thomas Gleixner wrote: > > Balbir, > > On Fri, Nov 27 2020 at 17:59, Balbir Singh wrote: > > +enum l1d_flush_out_mitigations { > > + L1D_FLUSH_OUT_OFF, > > + L1D_FLUSH_OUT_ON, > > +}; > > + > > +static enum l1d_flush_out_mitigations

Re: [PATCH v1 0/3] Refine error history and introduce notify_event vop

2020-12-04 Thread Asutosh Das (asd)
On 11/25/2020 9:38 PM, Stanley Chu wrote: Hi, This series refines error history functions and introduce a new notify_event vop to allow vendor to get notified of important events. Stanley Chu (3): scsi: ufs: Add error history for abort event in UFS Device W-LUN scsi: ufs: Refine error

Re: [PATCH v2 0/4] Venus encoder improvements

2020-12-04 Thread Fritz Koenig
On Fri, Dec 4, 2020 at 2:03 AM Stanimir Varbanov wrote: > > Hello, > > Changes since v1: > * 1/4 - fixed error handling in hfi_session_deinit (Alex) > - keep venc_set_properties invocation from start_streaming (Dikshita) > * 2/4 - keep original mutex_lock (Alex) > * 3/4 - move msg

[PATCH v4 1/8] scsi: ufs: Remove unused setup_regulators variant function

2020-12-04 Thread Stanley Chu
Since setup_regulators variant function is not used by any vendors, simply remove it. Signed-off-by: Stanley Chu --- drivers/scsi/ufs/ufshcd.c | 10 +- drivers/scsi/ufs/ufshcd.h | 10 -- 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/drivers/scsi/ufs/ufshcd.c

[PATCH v4 6/8] scsi: ufs: Refine error history functions

2020-12-04 Thread Stanley Chu
Nowadays UFS error history does not only have "history of errors" but also have history of some other events which are not defined as errors. This patch fixes the confused naming of related functions, and change the way for updating and printing history as preparation of next patch. This patch

[PATCH v4 5/8] scsi: ufs: Add error history for abort event in UFS Device W-LUN

2020-12-04 Thread Stanley Chu
Add error history for abort event in UFS Device W-LUN. Besides, use specified value as parameter of ufshcd_update_reg_hist() to identify the aborted tag or LUNs. Reviewed-by: Can Guo Signed-off-by: Stanley Chu --- drivers/scsi/ufs/ufshcd.c | 6 -- 1 file changed, 4 insertions(+), 2

[PATCH v4 4/8] scsi: ufs-dwc: Use phy_initialization helper

2020-12-04 Thread Stanley Chu
Use phy_initialization helper instead of direct invoking. Signed-off-by: Stanley Chu --- drivers/scsi/ufs/ufshcd-dwc.c | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/scsi/ufs/ufshcd-dwc.c b/drivers/scsi/ufs/ufshcd-dwc.c index 6a901da2d15a..5bb9d3a88795

[PATCH v4 0/8] Refine error history and introduce event_notify vop

2020-12-04 Thread Stanley Chu
Hi, This series refines error history functions, do vop cleanups and introduce a new event_notify vop to allow vendor to get notification of important events. Changes since v3: - Fix build warning in patch [8/8] Changes since v2: - Add patches for vop cleanups - Introduce

[PATCH v4 7/8] scsi: ufs: Introduce event_notify variant function

2020-12-04 Thread Stanley Chu
Introduce event_notify variant function to allow vendor to get notification of important events and connect to any proprietary debugging facilities. Reviewed-by: Can Guo Signed-off-by: Stanley Chu --- drivers/scsi/ufs/ufshcd.c | 2 ++ drivers/scsi/ufs/ufshcd.h | 11 +++ 2 files

[PATCH v4 8/8] scsi: ufs-mediatek: Introduce event_notify implementation

2020-12-04 Thread Stanley Chu
Introduce event_notify implementation on MediaTek UFS platform. A vendor-specific tracepoint is added that could be used for debugging purpose. Signed-off-by: Stanley Chu --- drivers/scsi/ufs/ufs-mediatek-trace.h | 37 +++ drivers/scsi/ufs/ufs-mediatek.c | 12

[PATCH v4 3/8] scsi: ufs-cdns: Use phy_initialization helper

2020-12-04 Thread Stanley Chu
Use phy_initialization helper instead of direct function invoking. Signed-off-by: Stanley Chu --- drivers/scsi/ufs/cdns-pltfrm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/scsi/ufs/cdns-pltfrm.c b/drivers/scsi/ufs/cdns-pltfrm.c index da065a259f6e..149391faa19c

[PATCH v4 2/8] scsi: ufs: Introduce phy_initialization helper

2020-12-04 Thread Stanley Chu
Introduce phy_initialization helper since this is the only one variant function without helper. Signed-off-by: Stanley Chu --- drivers/scsi/ufs/ufshcd.h | 8 1 file changed, 8 insertions(+) diff --git a/drivers/scsi/ufs/ufshcd.h b/drivers/scsi/ufs/ufshcd.h index

Re: [PATCH 2/2] sched: Split the function show_schedstat()

2020-12-04 Thread Yunfeng Ye
On 2020/12/4 17:40, Mel Gorman wrote: > On Fri, Dec 04, 2020 at 09:22:34AM +0800, Yunfeng Ye wrote: >> >> >> On 2020/12/3 17:42, Mel Gorman wrote: >>> On Thu, Dec 03, 2020 at 02:47:14PM +0800, Yunfeng Ye wrote: The schedstat include runqueue-specific stats and domain-specific stats,

Re: WARNING in ieee80211_ibss_csa_beacon

2020-12-04 Thread syzbot
syzbot has found a reproducer for the following issue on: HEAD commit:e87297fa Merge tag 'drm-fixes-2020-12-04' of git://anongit.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1412f61750 kernel config:

[PATCH 1/2] clocksource/drivers/sh_cmt: Fix potential deadlock when calling runtime PM

2020-12-04 Thread Niklas Söderlund
The ch->lock is used to protect the whole enable() and read() of sh_cmt's implementation of struct clocksource. The enable() implementation calls pm_runtime_get_sync() which may result in the clock source to be read() triggering a cyclic lockdep warning for the ch->lock. The sh_cmt driver

[PATCH 0/2] timekeeping: Fix change_clocksource() for PM and sh_cmt

2020-12-04 Thread Niklas Söderlund
Hello, This series is an attempt to fix two potential deadlock situations and allowing the tools/testing/selftests/timers/clocksource-switch test to pass for the sh_cmt driver. The two patches are not directly related, but patch 1/2 fixes a local problem in the sh_cmt driver that hides the

[PATCH 2/2] timekeeping: Allow runtime PM from change_clocksource()

2020-12-04 Thread Niklas Söderlund
The struct clocksource callbacks enable() and disable() are described as a way to allow clock sources to enter a power save mode [1]. But using runtime PM from these callbacks triggers a cyclic lockdep warning when switching clock source using change_clocksource(). This change allows the new

Re: [PATCH net-next 2/3] net: hns3: add priv flags support to switch limit promisc mode

2020-12-04 Thread Jakub Kicinski
On Thu, 3 Dec 2020 20:18:55 +0800 Huazhong Tan wrote: > @@ -224,6 +224,7 @@ static int hclge_map_unmap_ring_to_vf_vector(struct > hclge_vport *vport, bool en, > static int hclge_set_vf_promisc_mode(struct hclge_vport *vport, >struct hclge_mbx_vf_to_pf_cmd

Re: [PATCH v10 2/8] powerpc: Move delete_fdt_mem_rsv() to drivers/of/kexec.c

2020-12-04 Thread Thiago Jung Bauermann
Hello Lakshmi, Lakshmi Ramasubramanian writes: > delete_fdt_mem_rsv() retrieves the memory reserve map entry, for > the given starting address and size, from the device tree blob, and > removes the entry from the device tree blob. This function is called > to free the resources reserved for

Re: [PATCH net-next 3/3] net: hns3: refine the VLAN tag handle for port based VLAN

2020-12-04 Thread Jakub Kicinski
On Thu, 3 Dec 2020 20:18:56 +0800 Huazhong Tan wrote: > tranmist Please spell check the commit messages and comments.

Re: [PATCH] ch_ktls: fix build warning for ipv4-only config

2020-12-04 Thread Jakub Kicinski
On Thu, 3 Dec 2020 23:26:16 +0100 Arnd Bergmann wrote: > From: Arnd Bergmann > > When CONFIG_IPV6 is disabled, clang complains that a variable > is uninitialized for non-IPv4 data: > > drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/chcr_ktls.c:1046:6: error: > variable 'cntrl1' is used

Re: [PATCH v1 bpf-next 11/11] bpf: Test BPF_SK_REUSEPORT_SELECT_OR_MIGRATE.

2020-12-04 Thread Martin KaFai Lau
On Tue, Dec 01, 2020 at 11:44:18PM +0900, Kuniyuki Iwashima wrote: > This patch adds a test for BPF_SK_REUSEPORT_SELECT_OR_MIGRATE. > > Reviewed-by: Benjamin Herrenschmidt > Signed-off-by: Kuniyuki Iwashima > --- > .../bpf/prog_tests/migrate_reuseport.c| 164 ++ >

Re: [PATCH net-next v4] net/nfc/nci: Support NCI 2.x initial sequence

2020-12-04 Thread Jakub Kicinski
On Thu, 3 Dec 2020 07:31:47 +0900 Bongsu Jeon wrote: > From: Bongsu Jeon > > implement the NCI 2.x initial sequence to support NCI 2.x NFCC. > Since NCI 2.0, CORE_RESET and CORE_INIT sequence have been changed. > If NFCEE supports NCI 2.x, then NCI 2.x initial sequence will work. > > In NCI

[PATCH v3 0/4] tpm_tis: Detect interrupt storms

2020-12-04 Thread Jerry Snitselaar
This patchset is an attempt to try and catch tpm_tis devices that have interrupt storm issues, disable the interrupt, and use polling. In 2016 the tpm_tis interrupt code was accidently disabled, and polling was just being used. When we initially tried to enable interrupts again there were some

[PATCH v3 3/4] tpm_tis: Disable interrupts if interrupt storm detected

2020-12-04 Thread Jerry Snitselaar
When enabling the interrupt code for the tpm_tis driver we have noticed some systems have a bios issue causing an interrupt storm to occur. The issue isn't limited to a single tpm or system manufacturer so keeping a denylist of systems with the issue isn't optimal. Instead try to detect the

[PATCH v3 2/4] drm/i915/pmu: Use kstat_irqs to get interrupt count

2020-12-04 Thread Jerry Snitselaar
Now that kstat_irqs is exported, get rid of count_interrupts in i915_pmu.c Cc: Thomas Gleixner Cc: Jani Nikula Cc: Rodrigo Vivi Cc: David Airlie Cc: Daniel Vetter Cc: intel-...@lists.freedesktop.org Cc: dri-de...@lists.freedesktop.org Cc: Jarkko Sakkinen Cc: Jason Gunthorpe Cc: Peter

[PATCH v3 1/4] irq: export kstat_irqs

2020-12-04 Thread Jerry Snitselaar
To try and detect potential interrupt storms that have been occurring with tpm_tis devices it was suggested to use kstat_irqs() to get the number of interrupts. Since tpm_tis can be built as a module it needs kstat_irqs exported. Reported-by: kernel test robot Cc: Thomas Gleixner Cc: Jarkko

[PATCH v3 4/4] tpm_tis: Disable Interrupts on the ThinkPad L490

2020-12-04 Thread Jerry Snitselaar
The interrupt storm detection code detects the issue on the ThinkPad T490s, but the L490 still hangs at initialization. So swap out the T490s for the L490 in the dmi check. Cc: Jarkko Sakkinen Cc: Jason Gunthorpe Cc: Peter Huewe Cc: James Bottomley Cc: Matthew Garrett Cc: Hans de Goede

  1   2   3   4   5   6   7   8   9   10   >