Re: [PATCH] nfp: remove h from printk format specifier

2020-12-25 Thread Joe Perches
On Fri, 2020-12-25 at 06:56 -0800, Tom Rix wrote: > On 12/24/20 2:39 PM, Joe Perches wrote: [] > > Kernel code doesn't use a signed char or short with %hx or %hu very often > > but in case you didn't already know, any signed char/short emitted with > > anything like %hx or %hu needs to be left alon

Re: riscv+KASAN does not boot

2020-12-25 Thread Andreas Schwab
On Dez 25 2020, Dmitry Vyukov wrote: > qemu-system-riscv64 \ > -machine virt -bios default -smp 1 -m 2G \ > -device virtio-blk-device,drive=hd0 \ > -drive file=buildroot-riscv64.ext4,if=none,format=raw,id=hd0 \ > -kernel arch/riscv/boot/Image \ > -nographic \ > -device virtio-rng-device,rng=rng0 -

[PATCH] ALSA: hda: Resume codec for system suspend if LED is controlled by codec

2020-12-25 Thread Kai-Heng Feng
Laptop with codec controlled LEDs takes a very long time to suspend after commit 215a22ed31a1 ("ALSA: hda: Refactor codec PM to use direct-complete optimization"): [ 90.065964] PM: suspend entry (s2idle) [ 90.067337] Filesystems sync: 0.001 seconds [ 90.185758] Freezing user space processes .

Re: [reiser4 SFRN 5.1.3] kernel [5.10.x] read not supported for file /test-exec \(pid: 10094 comm: debootstrap\)

2020-12-25 Thread Metztli Information Technology
On Wed, Dec 23, 2020 at 3:40 PM Edward Shishkin wrote: > > On 12/23/2020 05:01 PM, Metztli Information Technology wrote: > > Niltze [Ð—Ð´Ñ€Ð°Ð²Ñ Ñ‚Ð²ÑƒÐ¹Ñ‚Ðµ : Hello], Ed- > > > > I built Linux kernel 5.10.1-1 within the 'Debian way' -- as usual -- to > > generate a ke

Re: [PATCH 2/2] drivers/gpu/drm/ast: Fix infinite loop if read fails

2020-12-25 Thread Randy Dunlap
On 12/25/20 12:13 AM, Defang Bo wrote: > [Why] Similar to commit <298360af3> ast_init_dram_reg() configures a window > in order to access BMC memory. > A BMC register can be configured to disallow this, and if so, causes > an infinite loop in the ast driver which renders the system unusable. > [Ho

Re: [rcu:dev.2020.12.23a 133/149] kernel/time/clocksource.c:220:6: warning: no previous prototype for function 'clocksource_verify_one_cpu'

2020-12-25 Thread Paul E. McKenney
On Fri, Dec 25, 2020 at 06:55:07PM +0800, kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git > dev.2020.12.23a > head: 7cc07f4867eb9618d4f7c35ddfbd746131b52f51 > commit: 6a70298420b2bd6d3e3dc86d81b993f618df8569 [133/149] clocksource: Check >

undefined reference to `__ubsan_handle_alignment_assumption'

2020-12-25 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 71c5f03154ac1cb27423b984743ccc2f5d11d14d commit: 31de313dfdcf6971b0a1c30f86eabaa1eede74b3 PHY: Ingenic: Add USB PHY driver using generic PHY framework. date: 3 weeks ago config: s390-randconfig-r031-202012

Re: [PATCH] nfp: remove h from printk format specifier

2020-12-25 Thread Tom Rix
On 12/24/20 2:39 PM, Joe Perches wrote: > On Thu, 2020-12-24 at 14:14 -0800, Tom Rix wrote: >> On 12/24/20 12:21 PM, Simon Horman wrote: >>> On Wed, Dec 23, 2020 at 12:20:53PM -0800, t...@redhat.com wrote: From: Tom Rix This change fixes the checkpatch warning described in this co

riscv+KASAN does not boot

2020-12-25 Thread Dmitry Vyukov
Hello, I am considering setting up a syzbot instance for riscv arch (using qemu emulation) and testing kernel config/image/etc. I can boot defconfig+kvmconfig riscv kernel, but so far I can't get a booting CONFIG_KASAN+CONFIG+KCOV kernel. But first of all I would like to ask if the riscv port is

Re: driver: watchdog: Remove mtk_wdt_stop() in probe() to prevent the system freeze and it doesn't reboot by watchdog problem

2020-12-25 Thread Guenter Roeck
On 12/24/20 11:30 PM, Freddy Hsin wrote: > Before user space daemon start to access the watchdog device, > there is a time interval that watchdog is disabled in the > original flow. If the system freezing at this interval, it > cannot be rebooted by watchdog hardware automatically. > > In order to

RE: [PATCH v14 04/10] fs/ntfs3: Add file operations and implementation

2020-12-25 Thread Konstantin Komarov
Sent: Friday, December 11, 2020 7:31 PM > To: 'Eric Biggers' > Cc: linux-fsde...@vger.kernel.org; v...@zeniv.linux.org.uk; > linux-kernel@vger.kernel.org; p...@kernel.org; dste...@suse.cz; > aap...@suse.com; wi...@infradead.org; rdun...@infradead.org; > j...@perches.com; m...@harmstone.com; nbor

Re: [PATCH v1 1/1] driver: watchdog: Remove mtk_wdt_stop() in probe() to prevent the system freeze and it doesn't reboot by watchdog problem

2020-12-25 Thread Guenter Roeck
On 12/24/20 11:30 PM, Freddy Hsin wrote: > From: "freddy.hsin" > > Before user space daemon start to access the watchdog device, > there is a time interval that watchdog is disabled in the > original flow. If the system freezing at this interval, it > cannot be rebooted by watchdog hardware autom

RE: [PATCH v14 06/10] fs/ntfs3: Add compression

2020-12-25 Thread Konstantin Komarov
From: Konstantin Komarov > Sent: Friday, December 11, 2020 7:28 PM > To: 'Eric Biggers' > Cc: linux-fsde...@vger.kernel.org; v...@zeniv.linux.org.uk; > linux-kernel@vger.kernel.org; p...@kernel.org; dste...@suse.cz; > aap...@suse.com; wi...@infradead.org; rdun...@infradead.org; > j...@perches.co

Re: [PATCH v1 1/1] driver: watchdog: Remove mtk_wdt_stop() in probe() to prevent the system freeze and it doesn't reboot by watchdog problem

2020-12-25 Thread Guenter Roeck
On 12/24/20 11:30 PM, Freddy Hsin wrote: > From: "freddy.hsin" > > Before user space daemon start to access the watchdog device, > there is a time interval that watchdog is disabled in the > original flow. If the system freezing at this interval, it > cannot be rebooted by watchdog hardware autom

[PATCH] trace: Remove get/put_cpu() from function_trace_init

2020-12-25 Thread Qiujun Huang
Since commit b6f11df26fdc ("trace: Call tracing_reset_online_cpus before tracer->init()"), get/put_cpu() are not needed anymore. We can use smp_processor_id() instead. Signed-off-by: Qiujun Huang --- kernel/trace/trace_functions.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --g

undefined reference to `cmd_db_read_addr'

2020-12-25 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 71c5f03154ac1cb27423b984743ccc2f5d11d14d commit: 778279f4f5e4e89ff31803ba48135256563825c2 soc: qcom: cmd-db: allow loading as a module date: 9 weeks ago config: microblaze-randconfig-r026-20201224 (attache

[PATCH v3 0/3] drivers/soc/litex: support 32-bit subregisters, 64-bit CPUs

2020-12-25 Thread Gabriel Somlo
This series expands on commit 22447a99c97e ("drivers/soc/litex: add LiteX SoC Controller driver"), adding support for handling both 8- and 32-bit LiteX CSR (MMIO) subregisters, on both 32- and 64-bit CPUs. Notes v3: - split into smaller, more self-explanatory patches - more detaile

[PATCH v3 2/3] drivers/soc/litex: separate MMIO from subregister offset calculation

2020-12-25 Thread Gabriel Somlo
Separate MMIO (read/write) access into _[read|write]_litex_subregister() static inline functions, leaving existing "READ|WRITE" macros to handle calculation of the subregister offset only. NOTE: this is a non-functional change. Signed-off-by: Gabriel Somlo --- include/linux/litex.h | 16 +++

[PATCH v3 3/3] drivers/soc/litex: support 32-bit subregisters, 64-bit CPUs

2020-12-25 Thread Gabriel Somlo
Upstream LiteX now defaults to using 32-bit CSR subregisters (see https://github.com/enjoy-digital/litex/commit/a2b71fde). This patch expands on commit 22447a99c97e ("drivers/soc/litex: add LiteX SoC Controller driver"), adding support for handling both 8- and 32-bit LiteX CSR (MMIO) subregisters,

[PATCH] powerpc/mm: avoid null pointer dereference in flush_tlb_mm

2020-12-25 Thread Defang Bo
Similar to commit<0dc294f7>, there should be a check for 'mm' to prevent Null pointer dereference in case of 'mm' argument was legitimately passed. Signed-off-by: Defang Bo --- arch/powerpc/mm/nohash/tlb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/powerpc/mm/nohash/tlb.c b/arc

[PATCH v3 1/3] drivers/soc/litex: move generic accessors to litex.h

2020-12-25 Thread Gabriel Somlo
Move generic LiteX CSR (MMIO) register accessors to litex.h and declare them as "static inline", in preparation for supporting 32-bit CSR subregisters and 64-bit CPUs. NOTE: this is a non-functional change. Signed-off-by: Gabriel Somlo --- drivers/soc/litex/litex_soc_ctrl.c | 73 ---

[PATCH] ring-buffer: Remove cpu_buffer argument from the rb_inc_page()

2020-12-25 Thread Qiujun Huang
The cpu_buffer argument is not used inside the rb_inc_page() after commit 3adc54fa82a6 ("ring-buffer: make the buffer a true circular link list"). And cpu_buffer argument is not used inside the two functions too, rb_is_head_page/rb_set_list_to_head. Signed-off-by: Qiujun Huang --- kernel/trace/r

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

2020-12-25 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 32944ecc5733..5260e1939798 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -12674,6 +12674,13 @@ T: git git://git.kernel.org/pub/s

[PATCH v16 03/10] fs/ntfs3: Add bitmap

2020-12-25 Thread Konstantin Komarov
This adds bitmap Signed-off-by: Konstantin Komarov --- fs/ntfs3/bitfunc.c | 135 fs/ntfs3/bitmap.c | 1504 2 files changed, 1639 insertions(+) create mode 100644 fs/ntfs3/bitfunc.c create mode 100644 fs/ntfs3/bitmap.c diff --git a/fs/ntfs3/b

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

2020-12-25 Thread Konstantin Komarov
This adds Kconfig, Makefile and doc Signed-off-by: Konstantin Komarov --- Documentation/filesystems/ntfs3.rst | 107 fs/ntfs3/Kconfig| 41 +++ fs/ntfs3/Makefile | 31 3 files changed, 179 insertions(+) create

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

2020-12-25 Thread Konstantin Komarov
This patch adds different types of NTFS-applicable compressions: - lznt - lzx - xpress Latter two (lzx, xpress) implement Windows Compact OS feature and were taken from ntfs-3g system comression plugin authored by Eric Biggers (https://github.com/ebiggers/ntfs-3g-system-compression) which were port

[PATCH v16 07/10] fs/ntfs3: Add NTFS journal

2020-12-25 Thread Konstantin Komarov
This adds NTFS journal Signed-off-by: Konstantin Komarov --- fs/ntfs3/fslog.c | 5220 ++ 1 file changed, 5220 insertions(+) create mode 100644 fs/ntfs3/fslog.c diff --git a/fs/ntfs3/fslog.c b/fs/ntfs3/fslog.c new file mode 100644 index ..

[PATCH v16 01/10] fs/ntfs3: Add headers and misc files

2020-12-25 Thread Konstantin Komarov
This adds headers and misc files Signed-off-by: Konstantin Komarov --- fs/ntfs3/debug.h | 61 +++ fs/ntfs3/ntfs.h| 1237 fs/ntfs3/ntfs_fs.h | 1050 + fs/ntfs3/upcase.c | 77 +++ 4 files changed, 2425 inse

[PATCH v16 05/10] fs/ntfs3: Add attrib operations

2020-12-25 Thread Konstantin Komarov
This adds attrib operations Signed-off-by: Konstantin Komarov --- fs/ntfs3/attrib.c | 2080 +++ fs/ntfs3/attrlist.c | 463 ++ fs/ntfs3/xattr.c| 1072 ++ 3 files changed, 3615 insertions(+) create mode 100644 fs/ntfs3/att

[PATCH v16 09/10] fs/ntfs3: Add NTFS3 in fs/Kconfig and fs/Makefile

2020-12-25 Thread Konstantin Komarov
This adds NTFS3 in fs/Kconfig and fs/Makefile Signed-off-by: Konstantin Komarov --- fs/Kconfig | 1 + fs/Makefile | 1 + 2 files changed, 2 insertions(+) diff --git a/fs/Kconfig b/fs/Kconfig index aa4c12282301..eae96d55ab67 100644 --- a/fs/Kconfig +++ b/fs/Kconfig @@ -145,6 +145,7 @@ menu "DOS

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

2020-12-25 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

BUG: sleeping function called from invalid context in do_user_addr_fault (2)

2020-12-25 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:d467d80d bpf: Remove unused including git tree: bpf console output: https://syzkaller.appspot.com/x/log.txt?x=159392cb50 kernel config: https://syzkaller.appspot.com/x/.config?x=2764fc28a92339f9 dashboard link: https://syzkal

[PATCH] x86/tools: Use POSIX-compliant syntax for empty regex groups

2020-12-25 Thread John Millikin
The syntax for POSIX regexes technically doesn't allow empty branches in conditional match groups. GNU libc accepts them as equivalent to `()', but other libc implementations (e.g. macOS libc) reject them with a parse error. Changing to compliant syntax, `(|_sym)' to `(()|_sym)', lets the `relocs'

drivers/mmc/host/s3cmci.c:1684:21: sparse: sparse: incorrect type in argument 1 (different address spaces)

2020-12-25 Thread kernel test robot
Hi Krzysztof, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 71c5f03154ac1cb27423b984743ccc2f5d11d14d commit: 1b0e4a2141c7bf6a122f1e04cbc1690b835707cf mmc: s3cmci: enable compile testing date: 6 weeks ago confi

drivers/scsi/fnic/vnic_dev.c:332:32: sparse: sparse: incorrect type in argument 1 (different address spaces)

2020-12-25 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 71c5f03154ac1cb27423b984743ccc2f5d11d14d commit: 8f28ca6bd8211214faf717677bbffe375c2a6072 iomap: constify ioreadX() iomem argument (as in generic implementation) date: 4 months ago config: i386-randconfig-

Re: [PATCH v1 11/19] x86/sev-es: Convert to insn_decode()

2020-12-25 Thread Borislav Petkov
On Fri, Dec 25, 2020 at 06:50:33PM +0800, kernel test robot wrote: > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > > All warnings (new ones prefixed by >>): > > >> arch/x86/kernel/sev-es.c:258:7: warning: variable 'ret' is used > >> uninitializ

Re: [PATCH v8 1/4] dt-bindings: display: Document the Xylon LogiCVC display controller

2020-12-25 Thread Paul Kocialkowski
Hi, On Thu 24 Dec 20, 10:01, Rob Herring wrote: > On Wed, 23 Dec 2020 22:29:44 +0100, Paul Kocialkowski wrote: > > The Xylon LogiCVC is a display controller implemented as programmable > > logic in Xilinx FPGAs. > > > > Signed-off-by: Paul Kocialkowski > > Acked-by: Rob Herring > > --- > > ...

[PATCH] regmap: debugfs: fix a memory leak when calling regmap_attach_dev

2020-12-25 Thread Xiaolei Wang
This should be caused by commit <9b947a13e7f6> ("") After initializing the regmap through syscon_regmap_lookup_by_compatible, then regmap_attach_dev to the device, because the debugfs_name has been allocated, there is no need to redistribute it again unreferenced object 0xd8399b80 (size 64): co

Re: [PATCH v4 2/4] spi: ls7a: Add YAML schemas

2020-12-25 Thread Sergei Shtylyov
On 12/25/20 1:35 PM, Qing Zhang wrote: > Switch the DT binding to a YAML schema to enable the DT validation. > > Signed-off-by: Qing Zhang > --- > > v4: fix warnings/errors about running 'make dt_binding_check' > > --- > .../devicetree/bindings/spi/loongson,spi-ls7a.yaml | 46 > +

Re: [PATCH v5 0/4] powercap/dtpm: Add the DTPM framework

2020-12-25 Thread Daniel Lezcano
On 24/12/2020 19:46, Pavel Machek wrote: > Hi! > >> The density of components greatly increased the last decade bringing a >> numerous number of heating sources which are monitored by more than 20 >> sensors on recent SoC. The skin temperature, which is the case >> temperature of the device, must

[PATCH 1/1] ARM: LPAE: use phys_addr_t instead of unsigned long in outercache hooks

2020-12-25 Thread Zhen Lei
The outercache of some Hisilicon SOCs support physical addresses wider than 32-bits. The unsigned long datatype is not sufficient for mapping physical addresses >= 4GB. The commit ad6b9c9d78b9 ("ARM: 6671/1: LPAE: use phys_addr_t instead of unsigned long in outercache functions") has already modifi

Re: [RFC PATCH] usb: dwc2: Try usb_get_phy_by_phandle instead of usb_get_phy

2020-12-25 Thread Artur Petrosyan
Hi Jules, On 12/16/2020 20:59, Jules Maselbas wrote: > On probe the dwc2 driver tries two path to get an usb phy, first calling > devm_phy_get() and secondly with devm_usb_get_phy(). > > However the current implementation of devm_phy_get() never return a valid > phy for usb-nop-xceiv. And the cur

Re: [PATCH 1/2] mm: Allow architectures to request 'old' entries when prefaulting

2020-12-25 Thread Kirill A. Shutemov
On Wed, Dec 23, 2020 at 08:04:54PM -0800, Hugh Dickins wrote: > It's not ready yet. Thanks for the feedback. It's very helpful. The patch below should address the problems you've found. The new helper next_page() returns a stablized page, so filemap_map_pmd() can clearly decide if we should set

Re: [PATCH v4 4/7] power: supply: max8997_charger: Set CHARGER current limit

2020-12-25 Thread Timon Baetz
On Thu, 24 Dec 2020 15:00:38 +0100, Krzysztof Kozlowski wrote: > On Thu, Dec 24, 2020 at 02:37:06PM +0100, Krzysztof Kozlowski wrote: > > On Thu, Dec 24, 2020 at 01:13:02PM +, Timon Baetz wrote: > > > On Thu, 24 Dec 2020 10:55:59 +0100, Krzysztof Kozlowski wrote: > > > > > @@ -170,6 +237,28

[PATCH] genirq: Fix export of irq_to_desc() for powerpc KVM

2020-12-25 Thread Michael Ellerman
Commit 64a1b95bb9fe ("genirq: Restrict export of irq_to_desc()") removed the export of irq_to_desc() unless powerpc KVM is being built, because there is still a use of irq_to_desc() in modular code there. However it used: #ifdef CONFIG_KVM_BOOK3S_64_HV Which doesn't work when that symbol is =m

[PATCH 2/2] drivers/gpu/drm/ast: Fix infinite loop if read fails

2020-12-25 Thread Defang Bo
[Why] Similar to commit <298360af3> ast_init_dram_reg() configures a window in order to access BMC memory. A BMC register can be configured to disallow this, and if so, causes an infinite loop in the ast driver which renders the system unusable. [How] Fix this by erroring out if an error is detect

[PATCH v1 2/2] drm/bridge: anx7625: add MIPI DPI input feature support

2020-12-25 Thread Xin Ji
Add MIPI rx DPI input support Signed-off-by: Xin Ji --- drivers/gpu/drm/bridge/analogix/anx7625.c | 352 -- drivers/gpu/drm/bridge/analogix/anx7625.h | 24 +- 2 files changed, 356 insertions(+), 20 deletions(-) diff --git a/drivers/gpu/drm/bridge/analogix/anx7625.c

[PATCH v1 1/2] dt-bindings: drm/bridge: anx7625: add DPI flag and swing setting

2020-12-25 Thread Xin Ji
Add DPI flag for distinguish MIPI input signal type, DSI or DPI. Add swing setting for adjusting DP tx PHY swing Signed-off-by: Xin Ji --- .../bindings/display/bridge/analogix,anx7625.yaml | 19 +++ 1 file changed, 19 insertions(+) diff --git a/Documentation/devicetree/bind

[PATCH v1 0/2] Add MIPI rx DPI support

2020-12-25 Thread Xin Ji
Hi all, this patch series implement MIPI rx DPI feature. Please help to review. This is the v1 version, any mistakes, please let me know, I'll fix it in the next series. Change history: v1: initial MIPI rx DPI feature support Xin Ji (2): dt-bindings: drm/bridge: anx7625: add DPI flag and swing

[rcu:dev.2020.12.23a 133/149] kernel/time/clocksource.c:220:6: warning: no previous prototype for function 'clocksource_verify_one_cpu'

2020-12-25 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev.2020.12.23a head: 7cc07f4867eb9618d4f7c35ddfbd746131b52f51 commit: 6a70298420b2bd6d3e3dc86d81b993f618df8569 [133/149] clocksource: Check per-CPU clock synchronization when marked unstable config: x86_64-randconfig

Re: [PATCH v1 11/19] x86/sev-es: Convert to insn_decode()

2020-12-25 Thread kernel test robot
Hi Borislav, I love your patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v5.10 next-20201223] [cannot apply to tip/perf/core tip/x86/core luto/next] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitti

arch/powerpc/mm/book3s64/pgtable.c:174:15: error: no previous prototype for function 'create_section_mapping'

2020-12-25 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 71c5f03154ac1cb27423b984743ccc2f5d11d14d commit: a927bd6ba952d13c52b8b385030943032f659a3e mm: fix phys_to_target_node() and memory_add_physaddr_to_nid() exports date: 5 weeks ago config: powerpc64-randconf

[PATCH v4 3/4] MIPS: Loongson64: DTS: Add SPI support to LS7A

2020-12-25 Thread Qing Zhang
add spi support. Signed-off-by: Qing Zhang --- v2: - Add spi about pci device DT v3: - Remove spiflash node v4: - Remove useless compatible --- arch/mips/boot/dts/loongson/ls7a-pch.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/mips/boot/dts/loongson/ls7a-pch.dtsi

[PATCH v4 1/4] spi: LS7A: Add Loongson LS7A SPI controller driver support

2020-12-25 Thread Qing Zhang
The SPI controller has the following characteristics: - Full-duplex synchronous serial data transmission - Support up to 4 variable length byte transmission - Main mode support - Mode failure generates an error flag and issues an interrupt request - Double buffer receiver - Serial clock with progr

[PATCH v4 4/4] MIPS: Loongson: Enable Loongson LS7A SPI in loongson3_defconfig

2020-12-25 Thread Qing Zhang
This is now supported, enable for Loongson systems. Signed-off-by: Qing Zhang --- v2: - Modify CONFIG_SPI_LOONGSON to CONFIG_SPI_LS7A v3: - No changes v4: - No changes --- arch/mips/configs/loongson3_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/mips/configs/loongs

[PATCH v4 2/4] spi: ls7a: Add YAML schemas

2020-12-25 Thread Qing Zhang
Switch the DT binding to a YAML schema to enable the DT validation. Signed-off-by: Qing Zhang --- v4: fix warnings/errors about running 'make dt_binding_check' --- .../devicetree/bindings/spi/loongson,spi-ls7a.yaml | 46 ++ 1 file changed, 46 insertions(+) create mode 1006

Fair Pay: DS X

2020-12-25 Thread Ywe Cærlyn
I tried indicating the Adamic guad as DS, which seems correct, and it works quite nice for me. It is from a simpler typeography, and later ofcourse it grew more complex. The project is now DS X, and the philosophical background drives this, and should be Islam, perfected in all languages, whic

[v6,3/4] PCI: mediatek-gen3: Add MediaTek Gen3 driver for MT8192

2020-12-25 Thread Jianjun Wang
MediaTek's PCIe host controller has three generation HWs, the new generation HW is an individual bridge, it supports Gen3 speed and up to 256 MSI interrupt numbers for multi-function devices. Add support for new Gen3 controller which can be found on MT8192. Signed-off-by: Jianjun Wang Acked-by:

[v6,4/4] MAINTAINERS: Add Jianjun Wang as MediaTek PCI co-maintainer

2020-12-25 Thread Jianjun Wang
Update entry for MediaTek PCIe controller, add Jianjun Wang as MediaTek PCI co-maintainer. Signed-off-by: Jianjun Wang Acked-by: Ryder Lee --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index e73636b75f29..1a033812c7f9 100644 --- a/MAINTAINERS +++

[v6,1/4] dt-bindings: PCI: mediatek: Add YAML schema

2020-12-25 Thread Jianjun Wang
Add YAML schemas documentation for Gen3 PCIe controller on MediaTek SoCs. Signed-off-by: Jianjun Wang Acked-by: Ryder Lee Reviewed-by: Rob Herring --- .../bindings/pci/mediatek-pcie-gen3.yaml | 135 ++ 1 file changed, 135 insertions(+) create mode 100644 Documentation/de

[v6,0/4] PCI: mediatek: Add new generation controller support

2020-12-25 Thread Jianjun Wang
These series patches add pcie-mediatek-gen3.c and dt-bindings file to support new generation PCIe controller. Changes in v6: 1. Export pci_pio_to_address() to support compiling as kernel module; 2. Replace usleep_range(100 * 1000, 120 * 1000) with msleep(100); 3. Replace dev_notice with dev_err; 4

[v6,2/4] PCI: Export pci_pio_to_address() for module use

2020-12-25 Thread Jianjun Wang
This interface will be used by PCI host drivers for PIO translation, export it to support compiling those drivers as kernel modules. Signed-off-by: Jianjun Wang --- drivers/pci/pci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 6d4d5a2f923d..3de

[RFC PATCH 1/4] mm/swap.c: pre-sort pages in pagevec for pagevec_lru_move_fn

2020-12-25 Thread Alex Shi
Pages in pagevec may have different lruvec, so we have to do relock in function pagevec_lru_move_fn(), but a relock may cause current cpu wait for long time on the same lock for spinlock fairness reason. Before per memcg lru_lock, we have to bear the relock since the spinlock is the only way to se

[RFC PATCH 3/4] mm/swap.c: extend the usage to pagevec_lru_add

2020-12-25 Thread Alex Shi
The only different for __pagevec_lru_add and other page moving between lru lists is page to add lru list has no need to do TestClearPageLRU and set the lru bit back. So we could combound them with a clear lru bit switch in sort function parameter. Than all lru list operation functions could be uni

[RFC PATCH 2/4] mm/swap.c: bail out early for no memcg and no numa

2020-12-25 Thread Alex Shi
If a system has memcg disabled and no numa node, like a embedded system, there is no needs to do the pagevec sort, since only just one lruvec in system. In this situation, we could skip the pagevec sorting. Signed-off-by: Alex Shi Cc: Konstantin Khlebnikov Cc: Hugh Dickins Cc: Yu Zhao Cc: Mich

[RFC PATCH 0/4] pre sort pages on lruvec in pagevec

2020-12-25 Thread Alex Shi
This idea was tried on per memcg lru lock patchset v18, and had a good result, about 5%~20+% performance gain on lru lock busy benchmarks, like case-lru-file-readtwice. But on the latest kernel, I can not reproduce the result on my box. Also I can not reproduce Tim's performance gain too on my box

[PATCH] staging: board: description for CONFIG_STAGING_BOARD

2020-12-25 Thread Song Chen
A paragraph to describe what CONFIG_STAGING_BOARD is for, to help developers have better understanding. Signed-off-by: Song Chen --- drivers/staging/board/Kconfig | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/staging/board/Kconfig b/drivers/staging/board/Kc

[PATCH v8 03/12] mfd: rohm-generic: Add BD9571 and BD9574

2020-12-25 Thread Yoshihiro Shimoda
Add chip IDs for BD9571MWV and BD9574MWF. Signed-off-by: Yoshihiro Shimoda Reviewed-by: Matti Vaittinen Acked-for-MFD-by: Lee Jones --- include/linux/mfd/rohm-generic.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/mfd/rohm-generic.h b/include/linux/mfd/rohm-generic.h ind

[PATCH v8 02/12] dt-bindings: mfd: bd9571mwv: Document BD9574MWF

2020-12-25 Thread Yoshihiro Shimoda
Document other similar specification chip BD9574MWF. Signed-off-by: Yoshihiro Shimoda Acked-for-MFD-by: Lee Jones --- Documentation/devicetree/bindings/mfd/bd9571mwv.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/mfd/bd9571mwv.txt

[PATCH v8 08/12] gpio: bd9571mwv: Add BD9574MWF support

2020-12-25 Thread Yoshihiro Shimoda
Add support for BD9574MWF which is similar chip with BD9571MWV. Note that BD9574MWF has additional features "RECOV_GPOUT", "FREQSEL" and "RTC_IN", but supports GPIO function only. Signed-off-by: Yoshihiro Shimoda Reviewed-by: Matti Vaittinen --- drivers/gpio/gpio-bd9571mwv.c | 6 -- 1 file

[PATCH v8 05/12] regulator: bd9571mwv: Add BD9574MWF support

2020-12-25 Thread Yoshihiro Shimoda
Add support for BD9574MWF which is similar chip with BD9571MWV. Note that we don't support voltage rails VD{09,18,25,33} by this driver on BD9574. The VD09 voltage could be read from PMIC but that is not supported by this commit. Signed-off-by: Yoshihiro Shimoda Reviewed-by: Matti Vaittinen ---

[PATCH v8 11/12] mfd: bd9571mwv: Make the driver more generic

2020-12-25 Thread Yoshihiro Shimoda
From: Khiem Nguyen Since the driver supports BD9571MWV PMIC only, this patch makes the functions and data structure become more generic so that it can support other PMIC variants as well. Also remove printing part name which Lee Jones suggested. Signed-off-by: Khiem Nguyen Co-developed-by: Yosh

[PATCH v8 09/12] mfd: bd9571mwv: Use the SPDX license identifier

2020-12-25 Thread Yoshihiro Shimoda
Use the SPDX license identifier instead of a local description. Signed-off-by: Yoshihiro Shimoda Reviewed-by: Geert Uytterhoeven Acked-for-MFD-by: Lee Jones --- drivers/mfd/bd9571mwv.c | 10 +- include/linux/mfd/bd9571mwv.h | 10 +- 2 files changed, 2 insertions(+), 18 de

[PATCH v8 10/12] mfd: bd9571mwv: Use devm_regmap_add_irq_chip()

2020-12-25 Thread Yoshihiro Shimoda
Use devm_regmap_add_irq_chip() to simplify the code. Signed-off-by: Yoshihiro Shimoda Acked-for-MFD-by: Lee Jones Reviewed-by: Matti Vaittinen Reviewed-by: Geert Uytterhoeven --- drivers/mfd/bd9571mwv.c | 27 ++- 1 file changed, 6 insertions(+), 21 deletions(-) diff -

[PATCH v8 12/12] mfd: bd9571mwv: Add support for BD9574MWF

2020-12-25 Thread Yoshihiro Shimoda
From: Khiem Nguyen The new PMIC BD9574MWF inherits features from BD9571MWV. Add the support of new PMIC to existing bd9571mwv driver. Signed-off-by: Khiem Nguyen Co-developed-by: Yoshihiro Shimoda Signed-off-by: Yoshihiro Shimoda Reviewed-by: Matti Vaittinen Acked-for-MFD-by: Lee Jones ---

[PATCH v8 04/12] regulator: bd9571mwv: rid of using struct bd9571mwv

2020-12-25 Thread Yoshihiro Shimoda
To simplify this driver, use dev_get_regmap() and rid of using struct bd9571mwv. Signed-off-by: Yoshihiro Shimoda Reviewed-by: Matti Vaittinen --- drivers/regulator/bd9571mwv-regulator.c | 49 + 1 file changed, 26 insertions(+), 23 deletions(-) diff --git a/driv

[PATCH v8 06/12] gpio: bd9571mwv: Use the SPDX license identifier

2020-12-25 Thread Yoshihiro Shimoda
Use the SPDX license identifier instead of a local description. Signed-off-by: Yoshihiro Shimoda Reviewed-by: Geert Uytterhoeven --- drivers/gpio/gpio-bd9571mwv.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/gpio/gpio-bd9571mwv.c b/drivers/gpio/gpio-bd95

[PATCH v8 07/12] gpio: bd9571mwv: rid of using struct bd9571mwv

2020-12-25 Thread Yoshihiro Shimoda
To simplify this driver, use dev_get_regmap() and rid of using struct bd9571mwv. Signed-off-by: Yoshihiro Shimoda Reviewed-by: Matti Vaittinen --- drivers/gpio/gpio-bd9571mwv.c | 19 +-- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/drivers/gpio/gpio-bd9571mwv.c

[PATCH v8 00/12] treewide: bd9571mwv: Add support for BD9574MWF

2020-12-25 Thread Yoshihiro Shimoda
Add BD9574MWF support into bd9571mwv gpio, mfd and regulator drivers. Latest Ebisu-4D boards has this chip instead of BD9571MWV so that we need this patch series to detect this chip at runtime. Note that the patch [1/12] is a bug-fix patch for mfd driver. Changes from v6: - Fix typo in the patch

[PATCH v8 01/12] mfd: bd9571mwv: Use devm_mfd_add_devices()

2020-12-25 Thread Yoshihiro Shimoda
To remove mfd devices when unload this driver, should use devm_mfd_add_devices() instead. Fixes: d3ea21272094 ("mfd: Add ROHM BD9571MWV-M MFD PMIC driver") Signed-off-by: Yoshihiro Shimoda Acked-for-MFD-by: Lee Jones Reviewed-by: Geert Uytterhoeven Reviewed-by: Matti Vaittinen --- drivers/mfd

Re: [PATCH 0/3] add support for metadata encryption to F2FS

2020-12-25 Thread Chao Yu
On 2020/12/24 18:13, Satya Tangirala wrote: On Tue, Dec 22, 2020 at 07:47:45PM +0800, Chao Yu wrote: On 2020/12/18 19:53, Satya Tangirala wrote: On Fri, Dec 18, 2020 at 05:02:23PM +0800, Chao Yu wrote: But, what's the plan about supporting software encryption for metadata? Current f2fs write f

[RFC PATCH v2 2/2] fs/task_mmu: acquire mmap_lock for write on soft-dirty cleanup

2020-12-25 Thread Nadav Amit
From: Nadav Amit Clearing soft-dirty through /proc/[pid]/clear_refs can cause memory corruption as it clears the dirty-bit without acquiring the mmap_lock for write and defers TLB flushes. As a result of this behavior, it is possible that one of the CPUs would have the stale PTE cached in its TL

[RFC PATCH v2 1/2] mm/userfaultfd: fix memory corruption due to writeprotect

2020-12-25 Thread Nadav Amit
From: Nadav Amit Userfaultfd self-test fails occasionally, indicating a memory corruption. Analyzing this problem indicates that there is a real bug since mmap_lock is only taken for read in mwriteprotect_range() and defers flushes, and since there is insufficient consideration of concurrent def

[RFC PATCH v2 0/2] mm: fix races due to deferred TLB flushes

2020-12-25 Thread Nadav Amit
From: Nadav Amit This patch-set went from v1 to RFCv2, as there is still an ongoing discussion regarding the way of solving the recently found races due to deferred TLB flushes. These patches are only sent for reference for now, and can be applied later if no better solution is taken. In a nutsh

RE: [PATCH v7 10/12] mfd: bd9571mwv: Use devm_regmap_add_irq_chip()

2020-12-25 Thread Yoshihiro Shimoda
Hello Sergei, > From: Sergei Shtylyov, Sent: Thursday, December 24, 2020 5:50 PM > On 24.12.2020 10:04, Yoshihiro Shimoda wrote: > > > Use dev_regmap_add_irq_chip() to simplify the code. > > devm_? Thank you for the pointed it out. I'll fix it. Best regards, Yoshihiro Shimoda

[v3] PCI: Add pci reset quirk for Huawei Intelligent NIC virtual function

2020-12-25 Thread Chiqijun
When multiple VFs do FLR at the same time, the firmware is processed serially, resulting in some VF FLRs being delayed more than 100ms, when the virtual machine restarts and the device driver is loaded, the firmware is doing the corresponding VF FLR, causing the driver to fail to load. To solve th

Re: [PATCH V2 2/9] arm64: dts: renesas: beacon kit: Fix Audio Clock sources

2020-12-25 Thread Sergei Shtylyov
On 24.12.2020 20:04, Adam Ford wrote: The SoC was expecting two clock sources with different frequencies. One to support 44.1KHz and one to support 48KHz. With the newly added ability to configure the programmably clock, configure both clocks. Programmable. Assign the rcar-sound clocks t

Re: [PATCH V2 5/9] arm64: dts: renesas: beacon: Cleanup USB References

2020-12-25 Thread Sergei Shtylyov
On 24.12.2020 20:04, Adam Ford wrote: The programmable versaclock is used for the usb_extal reference clock for the EHCI driver instead of a fixed-clock. Because the versaclock needs to be enabled, the clock reference needs to be added to the clocks list. For the USB3 Phy, the perferred clock

Re: [PATCH V2 8/9] arm64: dts: renesas: Introduce r8a774e1-beacon-rzg2h-kit

2020-12-25 Thread Sergei Shtylyov
On 24.12.2020 20:05, Adam Ford wrote: eacon EmebeddedWorks is introducing a new kit based on the Beacon? RZ/G2H SoC from Renesas. The SOM supports eMMC, WiFi and Bluetooth, along with a Cat-M1 cellular radio. The Baseboard has Ethernet, USB, HDMI, stereo audio in and out, along with a v

[PATCH] scsi: qla2xxx: Remove redundant NULL check

2020-12-25 Thread Xu Wang
Fix warnings reported by coccicheck: ./drivers/scsi/qla2xxx/qla_os.c:4636:2-7: WARNING: NULL check before some freeing functions is not needed. ./drivers/scsi/qla2xxx/qla_os.c:4651:3-8: WARNING: NULL check before some freeing functions is not needed. Signed-off-by: Xu Wang --- drivers/scsi/qla

[PATCH] f2fs: enhance to update i_mode and acl atomically in f2fs_setattr()

2020-12-25 Thread Chao Yu
Previously, in f2fs_setattr(), we don't update S_ISUID|S_ISGID|S_ISVTX bits with S_IRWXUGO bits and acl entries atomically, so in error path, chmod() may partially success, this patch enhances to make chmod() flow being atomical. Signed-off-by: Chao Yu --- fs/f2fs/acl.c | 23 ++

ASoC: soc-pcm: disconnect BEs if the FE is not ready

2020-12-25 Thread 朱灿灿
FE is connected to two BEs, BE1 is active, BE2 is deactive. When closing BE1, FE/BE1 is in HW_FREE state, then BE2 is startup by mixer runtime update. For FE is in HW_FREE state, dpcm_run_update_startup() will skip BE2's startup because FE's state is HW_FREE, BE2 stays in FE's be_clients list. Du

[PATCH] f2fs: fix to keep isolation of atomic write

2020-12-25 Thread Chao Yu
ThreadA ThreadB - f2fs_ioc_start_atomic_write - write - f2fs_ioc_commit_atomic_write - f2fs_commit_inmem_pages - f2fs_drop_inmem_pages - f2fs_drop_inmem_pages - __revoke_inmem_pages - f2fs_vm_page_mkwrite

[PATCH] media: atomisp: Remove redundant NULL check

2020-12-25 Thread Xu Wang
./drivers/staging/media/atomisp/pci/isp/kernels/sdis/sdis_1.0/ia_css_sdis.host.c:390:2-8: WARNING: NULL check before some freeing functions is not needed. Signed-off-by: Xu Wang --- .../atomisp/pci/isp/kernels/sdis/sdis_1.0/ia_css_sdis.host.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletio

[PATCH 1/2] drivers/gpu/drm/ast: Fix infinite loop if read fails

2020-12-25 Thread Defang Bo
[Why] Similar to commit <298360af3> ast_init_dram_reg() configures a window in order to access BMC memory. A BMC register can be configured to disallow this, and if so, causes an infinite loop in the ast driver which renders the system unusable. [How] Fix this by erroring out if an error is detec

[PATCH] media: atomisp: Remove redundant NULL check

2020-12-25 Thread Xu Wang
Fix warnings reported by coccicheck: ./drivers/staging/media/atomisp/pci/runtime/isp_param/src/isp_param.c:159:4-10: WARNING: NULL check before some freeing functions is not needed. Signed-off-by: Xu Wang --- .../media/atomisp/pci/runtime/isp_param/src/isp_param.c| 3 +-- 1 file changed

RE: [PATCH 1/1] [Add support Mediatek mt7921U]

2020-12-25 Thread 陳揚文
Hi Marcel, Thanks for your suggestions, I will remove the duplicate definitions and functions. Firstly, we will add the support of enabling MT7921U in btusb.c Secondary, we will discuss the driver architecture with you. Finally, we update the common part and hif part for MT7921. I have a couple

[PATCH] scsi: fnic: Fix memleak in vnic_dev_init_devcmd2

2020-12-25 Thread Dinghao Liu
When ioread32() returns 0x, we should execute cleanup functions like other error handling paths before returning. Signed-off-by: Dinghao Liu --- drivers/scsi/fnic/vnic_dev.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/fnic/vnic_dev.c b/drivers

RE: [PATCH v2 3/3] iommu/vt-d: Fix ineffective devTLB invalidation for subdevices

2020-12-25 Thread Liu, Yi L
Hi Baolu, Well received, all comments accepted. thanks. Regards, Yi Liu > From: Lu Baolu > Sent: Wednesday, December 23, 2020 6:10 PM > > Hi Yi, > > On 2020/12/23 14:27, Liu Yi L wrote: > > iommu_flush_dev_iotlb() is called to invalidate caches on device. It only > > loops the devices which a

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

2020-12-25 Thread Ding Tianhong
> +again: > + size = PAGE_ALIGN(size); > + area = __get_vm_area_node(size, align, VM_ALLOC | VM_UNINITIALIZED | > vm_flags, start, end, node, gfp_mask, caller); > if (!area) > goto fail; > > - addr = __vmalloc_area_node(area, gfp_mas

<    1   2   3   >