[PATCH] arm64: dts: qcom: c630: Add WiFi node

2019-10-17 Thread Bjorn Andersson
Specify regulators and enable the node. The firmware uses the 8 bit version of the host capability message, so specify this quirk. Signed-off-by: Bjorn Andersson --- arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts | 11 +++ 1 file changed, 11 insertions(+) diff --git

[PATCH] arm64: dts: qcom: c630: Enable UFS device reset

2019-10-17 Thread Bjorn Andersson
Setup the TLMM UFS_RESET to make the UFS core reset the UFS memory device during initialization. Signed-off-by: Bjorn Andersson --- arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts

Re: [PATCH] Bluetooth: hci_qca: fix in-band sleep enablement

2019-10-17 Thread Claire Chang
Hi Balakrishna, Sorry for the late reply. I was on vacation for the past few days. The chipset we use is QCA6174A-3 and rjliao has already confirmed that IBS won't work without RAM fw downloaded. Please ignore this change. Thanks, Claire On Fri, Oct 11, 2019 at 3:21 PM Balakrishna Godavarthi

Re: [PATCH v2 4/5] cpufreq: vexpress-spc: remove lots of debug messages

2019-10-17 Thread Viresh Kumar
On 17-10-19, 13:35, Sudeep Holla wrote: > This driver have been used and tested for year now and the extensive > debug/log messages in the driver are not really required anymore. > Get rid of those unnecessary log messages. > > Signed-off-by: Sudeep Holla > --- >

[PATCH v2] arm64: dts: qcom: c630: Enable adsp, cdsp and mpss

2019-10-17 Thread Bjorn Andersson
Specify the firmware-name for the adsp, cdsp and mpss and enable the nodes. Signed-off-by: Bjorn Andersson --- .../boot/dts/qcom/sdm850-lenovo-yoga-c630.dts | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts

Re: [PATCH] cpufreq: flush any pending policy update work scheduled before freeing

2019-10-17 Thread Sudeep Holla
On Thu, Oct 17, 2019 at 11:26:54PM +0200, Rafael J. Wysocki wrote: > On Thu, Oct 17, 2019 at 9:36 PM Rafael J. Wysocki wrote: > > > > On Thu, Oct 17, 2019 at 6:35 PM Sudeep Holla wrote: > > > > > > dev_pm_qos_remove_request ends calling {max,min}_freq_req QoS notifiers > > > which schedule

Re: [RFC][PATCH 2/3] usb: roles: Add usb role switch notifier.

2019-10-17 Thread John Stultz
On Wed, Oct 16, 2019 at 12:27 AM Hans de Goede wrote: > On 10/15/19 7:39 AM, John Stultz wrote: > > On Thu, Oct 3, 2019 at 1:51 PM Hans de Goede wrote: > >> On 03-10-2019 22:37, John Stultz wrote: > >>> Fair point. I'm sort of taking a larger patchset and trying to break > >>> it up into more

Re: [PATCH V3] mm/page_alloc: Add alloc_contig_pages()

2019-10-17 Thread Anshuman Khandual
nbrand >> Acked-by: Michal Hocko >> Signed-off-by: Anshuman Khandual >> --- >> This is based on https://patchwork.kernel.org/patch/11190213/ > > Hi Anshuman, > > I'm having trouble finding a tree that this applies cleanly too, > which one did you use? (late

linux-next: manual merge of the char-misc tree with the char-misc.current tree

2019-10-17 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the char-misc tree got a conflict in: drivers/android/binder.c between commit: 45d02f79b539 ("binder: Don't modify VMA bounds in ->mmap handler") from the char-misc.current tree and commit: 990be7476485 ("binder: Use common definition of SZ_1K")

[PATCH] x86: Don't use MWAIT if explicitly requested

2019-10-17 Thread Zhenzhong Duan
If 'idle=nomwait' is specified or process matching what's in processor_idle_dmi_table, we should't use MWAIT at bootup stage before cpuidle driver loaded, even if it's preferred by default on Intel. Add a check so that HALT instruction is used in those cases. Signed-off-by: Zhenzhong Duan Cc:

Re: [PATCH v2 5/5] cpufreq: vexpress-spc: fix some coding style issues

2019-10-17 Thread Viresh Kumar
On 17-10-19, 13:35, Sudeep Holla wrote: > Fix the following checkpatch checks/warnings: > > CHECK: Unnecessary parentheses around the code > CHECK: Alignment should match open parenthesis > CHECK: Prefer kernel type 'u32' over 'uint32_t' > WARNING: Missing a blank line after declarations > >

Re: [PATCH 07/15] riscv: implement remote sfence.i using IPIs

2019-10-17 Thread Anup Patel
On Thu, Oct 17, 2019 at 11:08 PM Christoph Hellwig wrote: > > The RISC-V ISA only supports flushing the instruction cache for the > local CPU core. Currently we always offload the remote TLB flushing to > the SBI, which then issues an IPI under the hoods. But with M-mode > we do not have an SBI

Re: [PATCH v2 2/5] cpufreq: merge arm_big_little and vexpress-spc

2019-10-17 Thread Sudeep Holla
On Fri, Oct 18, 2019 at 11:17:40AM +0530, Viresh Kumar wrote: > On 17-10-19, 13:35, Sudeep Holla wrote: > > diff --git a/drivers/cpufreq/arm_big_little.c > > b/drivers/cpufreq/vexpress-spc-cpufreq.c > > similarity index 90% > > rename from drivers/cpufreq/arm_big_little.c > > rename to

Re: [PATCH 08/15] riscv: add support for MMIO access to the timer registers

2019-10-17 Thread Anup Patel
On Thu, Oct 17, 2019 at 11:08 PM Christoph Hellwig wrote: > > When running in M-mode we can't use the SBI to set the timer, and > don't have access to the time CSR as that usually is emulated by > M-mode. Instead provide code that directly accesses the MMIO for > the timer. > > Signed-off-by:

Re: [PATCH] cpufreq: flush any pending policy update work scheduled before freeing

2019-10-17 Thread Sudeep Holla
On Thu, Oct 17, 2019 at 09:36:30PM +0200, Rafael J. Wysocki wrote: > On Thu, Oct 17, 2019 at 6:35 PM Sudeep Holla wrote: > > > > dev_pm_qos_remove_request ends calling {max,min}_freq_req QoS notifiers > > which schedule policy update work. It may end up racing with the freeing > > the policy and

Re: [PATCH 3/8] riscv: init: merge split string literals in preprocessor directive

2019-10-17 Thread Luc Van Oostenryck
On Thu, Oct 17, 2019 at 09:38:18PM -0700, Paul Walmsley wrote: > On Fri, 18 Oct 2019, Luc Van Oostenryck wrote: > > > On Thu, Oct 17, 2019 at 05:49:24PM -0700, Paul Walmsley wrote: > > > sparse complains loudly when string literals associated with > > > preprocessor directives are split into

Re: [PATCH v2 2/5] cpufreq: merge arm_big_little and vexpress-spc

2019-10-17 Thread Viresh Kumar
On 17-10-19, 13:35, Sudeep Holla wrote: > diff --git a/drivers/cpufreq/arm_big_little.c > b/drivers/cpufreq/vexpress-spc-cpufreq.c > similarity index 90% > rename from drivers/cpufreq/arm_big_little.c > rename to drivers/cpufreq/vexpress-spc-cpufreq.c > index 7fe52fcddcf1..b7e1aa000c80 100644 >

Re: [PATCH] lib/vdso: Use __arch_use_vsyscall() to indicate fallback

2019-10-17 Thread Andy Lutomirski
On Thu, Oct 17, 2019 at 7:57 PM Huacai Chen wrote: > > In do_hres(), we currently use whether the return value of __arch_get_ > hw_counter() is negtive to indicate fallback, but this is not a good > idea. Because: > > 1, ARM64 returns ULL_MAX but MIPS returns 0 when clock_mode is invalid; > 2,

BUG: unable to handle kernel paging request in is_bpf_text_address

2019-10-17 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:283ea345 coccinelle: api/devm_platform_ioremap_resource: r.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=122f199b60 kernel config: https://syzkaller.appspot.com/x/.config?x=f0a8b0a0736a2ac1

Re: [PATCH 12/15] riscv: clear the instruction cache and all registers when booting

2019-10-17 Thread Anup Patel
On Thu, Oct 17, 2019 at 11:08 PM Christoph Hellwig wrote: > > When we get booted we want a clear slate without any leaks from previous > supervisors or the firmware. Flush the instruction cache and then clear > all registers to known good values. This is really important for the > upcoming

Re: [PATCH 13/15] riscv: add nommu support

2019-10-17 Thread Anup Patel
On Thu, Oct 17, 2019 at 11:08 PM Christoph Hellwig wrote: > > The kernel runs in M-mode without using page tables, and thus can't run > bare metal without help from additional firmware. > > Most of the patch is just stubbing out code not needed without page > tables, but there is an interesting

Re: [RFT][PATCH 0/3] cpufreq / PM: QoS: Introduce frequency QoS and use it in cpufreq

2019-10-17 Thread Viresh Kumar
On 17-10-19, 18:34, Rafael J. Wysocki wrote: > [BTW, Viresh, it looks like cpufreq_set_policy() should still ensure > that the new min is less than the new max, because the QoS doesn't do > that.] The ->verify() callback does that for us I believe. -- viresh

Re: [RFT][PATCH 1/3] PM: QoS: Introduce frequency QoS

2019-10-17 Thread Viresh Kumar
On 17-10-19, 16:16, Rafael J. Wysocki wrote: > [Also note that the current code in device PM QoS uses MIN and MAX > here in the same way. :-)] Stupid me, enough embarrassment for the day :( -- viresh

Re: [PATCH] cpufreq: flush any pending policy update work scheduled before freeing

2019-10-17 Thread Viresh Kumar
On 17-10-19, 17:35, Sudeep Holla wrote: > dev_pm_qos_remove_request ends calling {max,min}_freq_req QoS notifiers > which schedule policy update work. I don't think that's correct. We remove the notifiers first and then only remove the requests. Though it is possible due to the other bug we are

Re: [PATCH 02/15] riscv: cleanup do_trap_break

2019-10-17 Thread Anup Patel
On Thu, Oct 17, 2019 at 11:07 PM Christoph Hellwig wrote: > > If we always compile the get_break_insn_length inline function we can > remove the ifdefs and let dead code elimination take care of the warn > branch that is now unreadable because the report_bug stub always > returns

Re: [PATCH v3 04/10] sched/fair: rework load_balance

2019-10-17 Thread Parth Shah
On 10/16/19 5:26 PM, Vincent Guittot wrote: > On Wed, 16 Oct 2019 at 09:21, Parth Shah wrote: >> >> >> >> On 9/19/19 1:03 PM, Vincent Guittot wrote: >> >> [...] >> >>> Signed-off-by: Vincent Guittot >>> --- >>> kernel/sched/fair.c | 585 >>>

Re: [PATCH 09/15] riscv: provide native clint access for M-mode

2019-10-17 Thread Anup Patel
On Thu, Oct 17, 2019 at 11:08 PM Christoph Hellwig wrote: > > RISC-V has the concept of a cpu level interrupt controller. The > interface for it is split between a standardized part that is exposed > as bits in the mstatus/sstatus register and the mie/mip/sie/sip > CRS. But the bit to actually

[PATCH net] net: hns3: fix mis-counting IRQ vector numbers issue

2019-10-17 Thread Huazhong Tan
From: Yonglong Liu Currently, the num_msi_left means the vector numbers of NIC, but if the PF supported RoCE, it contains the vector numbers of NIC and RoCE(Not expected). This may cause interrupts lost in some case, because of the NIC module used the vector resources which belongs to RoCE.

Re: [PATCH 11/15] riscv: use the correct interrupt levels for M-mode

2019-10-17 Thread Anup Patel
On Thu, Oct 17, 2019 at 11:08 PM Christoph Hellwig wrote: > > The numerical levels for External/Timer/Software interrupts differ > between S-mode and M-mode. > > Signed-off-by: Christoph Hellwig > --- > arch/riscv/kernel/irq.c | 12 +--- > 1 file changed, 9 insertions(+), 3 deletions(-)

Re: [PATCH v4 1/2] clk: qcom: Add MSM8998 GPU Clock Controller (GPUCC) driver

2019-10-17 Thread Taniya Das
Hi Jeffrey, On 10/2/2019 6:46 AM, Jeffrey Hugo wrote: The GPUCC manages the clocks for the Adreno GPU found on MSM8998. Signed-off-by: Jeffrey Hugo --- drivers/clk/qcom/Kconfig | 9 + drivers/clk/qcom/Makefile| 1 + drivers/clk/qcom/gpucc-msm8998.c | 346

Re: [PATCH] cpufreq: powernv: fix stack bloat and NR_CPUS limitation

2019-10-17 Thread Viresh Kumar
On 17-10-19, 17:04, John Hubbard wrote: > The following build warning occurred on powerpc 64-bit builds: > > drivers/cpufreq/powernv-cpufreq.c: In function 'init_chip_info': > drivers/cpufreq/powernv-cpufreq.c:1070:1: warning: the frame size of 1040 > bytes is larger than 1024 bytes

[PATCH v4 1/2] dt-bindings: iio: accel: bma400: add bindings

2019-10-17 Thread Dan Robertson
Add devicetree binding for the Bosch BMA400 3-axes ultra-low power accelerometer sensor. Signed-off-by: Dan Robertson --- .../devicetree/bindings/iio/accel/bma400.yaml | 39 +++ 1 file changed, 39 insertions(+) create mode 100644

[PATCH v4 2/2] iio: (bma400) add driver for the BMA400

2019-10-17 Thread Dan Robertson
Add a IIO driver for the Bosch BMA400 3-axes ultra-low power accelerometer. The driver supports reading from the acceleration and temperature registers. The driver also supports reading and configuring the output data rate, oversampling ratio, and scale. Signed-off-by: Dan Robertson ---

Re: [PATCH 10/15] riscv: read the hart ID from mhartid on boot

2019-10-17 Thread Anup Patel
On Thu, Oct 17, 2019 at 11:08 PM Christoph Hellwig wrote: > > From: Damien Le Moal > > When in M-Mode, we can use the mhartid CSR to get the ID of the running > HART. Doing so, direct M-Mode boot without firmware is possible. > > Signed-off-by: Damien Le Moal > Signed-off-by: Christoph Hellwig

[PATCH v3 0/2] iio: add driver for Bosch BMA400 accelerometer

2019-10-17 Thread Dan Robertson
This patchset adds a IIO driver for the Bosch BMA400 3-axes ultra low-power accelerometer. The initial implementation of the driver adds read support for the acceleration and temperature data registers. The driver also has support for reading and writing to the output data rate, oversampling

Re: [PATCH 3/8] riscv: init: merge split string literals in preprocessor directive

2019-10-17 Thread Luc Van Oostenryck
On Thu, Oct 17, 2019 at 09:38:18PM -0700, Paul Walmsley wrote: > On Fri, 18 Oct 2019, Luc Van Oostenryck wrote: > > > On Thu, Oct 17, 2019 at 05:49:24PM -0700, Paul Walmsley wrote: > > > sparse complains loudly when string literals associated with > > > preprocessor directives are split into

Re: [PATCH 04/15] riscv: don't allow selecting SBI based drivers for M-mode

2019-10-17 Thread Anup Patel
On Thu, Oct 17, 2019 at 11:07 PM Christoph Hellwig wrote: > > From: Damien Le Moal > > When running in M-mode we can't use SBI based drivers. Add a new > CONFIG_RISCV_SBI that drivers that do SBI calls can depend on > instead. > > Signed-off-by: Damien Le Moal > Signed-off-by: Christoph

Re: [PATCH 06/15] riscv: cleanup the default power off implementation

2019-10-17 Thread Anup Patel
On Thu, Oct 17, 2019 at 11:08 PM Christoph Hellwig wrote: > > Move the sbi poweroff to a separate function and file that is only > compiled if CONFIG_SBI is set. Provide a new default fallback > power off that just sits in a wfi loop to save some power. > > Signed-off-by: Christoph Hellwig >

Re: [PATCH 4/8] riscv: ensure RISC-V C model definitions are passed to static analyzers

2019-10-17 Thread Luc Van Oostenryck
On Thu, Oct 17, 2019 at 09:39:29PM -0700, Paul Walmsley wrote: > On Fri, 18 Oct 2019, Luc Van Oostenryck wrote: > > On Thu, Oct 17, 2019 at 05:49:25PM -0700, Paul Walmsley wrote: > > > ifeq ($(CONFIG_CMODEL_MEDANY),y) > > > KBUILD_CFLAGS += -mcmodel=medany > > > + CHECKFLAGS +=

[PATCH v12 0/5] DMA-BUF Heaps (destaging ION)

2019-10-17 Thread John Stultz
Andrew brought up a reasonable concern with the CMA heap enumeration in the previous patch set, and I had a few other minor cleanups to add, so here is yet another pass at the dma-buf heaps patchset Andrew and I have been working on which tries to destage a fair chunk of ION functionality. The

[PATCH v12 2/5] dma-buf: heaps: Add heap helpers

2019-10-17 Thread John Stultz
Add generic helper dmabuf ops for dma heaps, so we can reduce the amount of duplicative code for the exported dmabufs. This code is an evolution of the Android ION implementation, so thanks to its original authors and maintainters: Rebecca Schultz Zavin, Colin Cross, Laura Abbott, and others!

[PATCH 1/4] Bluetooth: hci_qca: Update regulator_set_load() usage

2019-10-17 Thread Bjorn Andersson
Since the introduction of '5451781dadf8 ("regulator: core: Only count load for enabled consumers")' in v5.0, the requested load of a regulator consumer is only accounted for when said consumer is voted enabled. So there's no need to vote for load ever time the regulator is enabled or disabled.

[PATCH 4/4] Bluetooth: hci_qca: Split qca_power_setup()

2019-10-17 Thread Bjorn Andersson
Split and rename qca_power_setup() in order to simplify each code path and to clarify that it is unrelated to qca_power_off() and qca_power_setup(). Signed-off-by: Bjorn Andersson --- drivers/bluetooth/hci_qca.c | 61 ++--- 1 file changed, 36 insertions(+), 25

[PATCH v12 4/5] dma-buf: heaps: Add CMA heap to dmabuf heaps

2019-10-17 Thread John Stultz
This adds a CMA heap, which allows userspace to allocate a dma-buf of contiguous memory out of a CMA region. This code is an evolution of the Android ION implementation, so thanks to its original author and maintainters: Benjamin Gaignard, Laura Abbott, and others! NOTE: This patch only adds

[PATCH 0/4] Bluetooth: hci_qca: Regulator usage cleanup

2019-10-17 Thread Bjorn Andersson
Clean up the regulator usage in hci_qca and in particular don't regulator_set_voltage() for fixed voltages. It cleans up the driver, but more important it makes bluetooth work on my Lenovo Yoga C630, where the regulator for vddch0 is defined with a voltage range that doesn't overlap the values in

[PATCH 3/4] Bluetooth: hci_qca: Use regulator bulk enable/disable

2019-10-17 Thread Bjorn Andersson
With the regulator_set_load() and regulator_set_voltage() out of the enable/disable code paths the code can now use the standard regulator bulk enable/disable API. By cloning num_vregs into struct qca_power there's no need to lug around a reference to the struct qca_vreg_data, which further

[PATCH v12 3/5] dma-buf: heaps: Add system heap to dmabuf heaps

2019-10-17 Thread John Stultz
This patch adds system heap to the dma-buf heaps framework. This allows applications to get a page-allocator backed dma-buf for non-contiguous memory. This code is an evolution of the Android ION implementation, so thanks to its original authors and maintainters: Rebecca Schultz Zavin, Colin

[PATCH v12 5/5] kselftests: Add dma-heap test

2019-10-17 Thread John Stultz
Add very trivial allocation and import test for dma-heaps, utilizing the vgem driver as a test importer. A good chunk of this code taken from: tools/testing/selftests/android/ion/ionmap_test.c Originally by Laura Abbott Cc: Benjamin Gaignard Cc: Sumit Semwal Cc: Liam Mark Cc: Pratik

[PATCH 2/4] Bluetooth: hci_qca: Don't vote for specific voltage

2019-10-17 Thread Bjorn Andersson
Devices with specific voltage requirements should not request voltage from the driver, but instead rely on the system configuration to define appropriate voltages for each rail. This ensures that PMIC and board variations are accounted for, something that the 0.1V range in the hci_qca driver

Re: [PATCH 01/15] riscv: cleanup

2019-10-17 Thread Anup Patel
On Thu, Oct 17, 2019 at 11:07 PM Christoph Hellwig wrote: > > Remove various not required ifdefs and externs. > > Signed-off-by: Christoph Hellwig > --- > arch/riscv/include/asm/bug.h | 16 +++- > 1 file changed, 3 insertions(+), 13 deletions(-) > > diff --git

Re: [PATCH 05/15] riscv: poison SBI calls for M-mode

2019-10-17 Thread Anup Patel
On Thu, Oct 17, 2019 at 11:08 PM Christoph Hellwig wrote: > > There is no SBI when we run in M-mode, so fail the compile for any code > trying to use SBI calls. > > Signed-off-by: Christoph Hellwig > --- > arch/riscv/include/asm/sbi.h | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-)

Re: RISC-V nommu support v5

2019-10-17 Thread Paul Walmsley
On Fri, 18 Oct 2019, Anup Patel wrote: > It will be really cool to have this series for Linux-5.4-rcX. It's way too big to go in via the -rc series. I'm hoping to have it ready to go for v5.5-rc1. - Paul

Re: [PATCH 5/8] riscv: add missing prototypes

2019-10-17 Thread Luc Van Oostenryck
On Thu, Oct 17, 2019 at 05:49:26PM -0700, Paul Walmsley wrote: > sparse identifies these missing prototypes when building arch/riscv: > > arch/riscv/kernel/cpu.c:149:29: warning: symbol 'cpuinfo_op' was not > declared. Should it be static? > arch/riscv/kernel/irq.c:27:29: warning: symbol

[PATCH v3 0/3] Logitech G920 fixes

2019-10-17 Thread Andrey Smirnov
Everyone: This series contains patches to fix a couple of regressions in G920 wheel support by hid-logitech-hidpp driver. Without the patches the wheel remains stuck in autocentering mode ("resisting" any attempt to trun) as well as missing support for any FF action. Thanks, Andrey Smirnov

Re: [PATCH v2 31/33] tools lib bpf: Renaming pr_warning to pr_warn

2019-10-17 Thread Alexei Starovoitov
On Fri, Oct 18, 2019 at 11:18:48AM +0800, Kefeng Wang wrote: > For kernel logging macro, pr_warning is completely removed and > replaced by pr_warn, using pr_warn in tools lib bpf for symmetry > to kernel logging macro, then we could drop pr_warning in the > whole linux code. > > Cc: Alexei

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

2019-10-17 Thread Stephen Rothwell
Hi Jens, On Thu, 17 Oct 2019 18:56:39 -0600 Jens Axboe wrote: > > I'll fix these warnings up, guessing it's 32-bit? Thanks. Yeah 32 bit. -- Cheers, Stephen Rothwell pgpAAZTHyaXeP.pgp Description: OpenPGP digital signature

[PATCH v3 2/3] HID: logitech-hidpp: rework device validation

2019-10-17 Thread Andrey Smirnov
G920 device only advertises REPORT_ID_HIDPP_LONG and REPORT_ID_HIDPP_VERY_LONG in its HID report descriptor, so querying for REPORT_ID_HIDPP_SHORT with optional=false will always fail and prevent G920 to be recognized as a valid HID++ device. To fix this and improve some other aspects, modify

[PATCH v3 1/3] HID: logitech-hidpp: split g920_get_config()

2019-10-17 Thread Andrey Smirnov
Original version of g920_get_config() contained two kind of actions: 1. Device specific communication to query/set some parameters which requires active communication channel with the device, or, put in other way, for the call to be sandwiched between

[PATCH] mm,thp: recheck each page before collapsing file THP

2019-10-17 Thread Song Liu
In collapse_file(), after locking the page, it is necessary to recheck that the page is up-to-date, clean, and pointing to the proper mapping. If any check fails, abort the collapse. Fixes: 99cb0dbd47a1 ("mm,thp: add read-only THP support for (non-shmem) FS") Cc: Kirill A. Shutemov Cc: Johannes

Re: [PATCH v1 4/4] net: dsa: add support for Atheros AR9331 build-in switch

2019-10-17 Thread Oleksij Rempel
On Thu, Oct 17, 2019 at 11:35:48AM -0700, Florian Fainelli wrote: > > > On 10/13/2019 11:15 PM, Oleksij Rempel wrote: > > Provide basic support for Atheros AR9331 build-in switch. So far it > > works as port multiplexer without any hardware offloading support. > > I glanced through the

Re: [PATCH 4/8] riscv: ensure RISC-V C model definitions are passed to static analyzers

2019-10-17 Thread Paul Walmsley
On Fri, 18 Oct 2019, Luc Van Oostenryck wrote: > On Thu, Oct 17, 2019 at 05:49:25PM -0700, Paul Walmsley wrote: > > Static analysis tools such as sparse don't set the RISC-V C model > > preprocessor directives such as "__riscv_cmodel_medany", set by the C > > compilers. This causes the static

Re: [PATCH 2/3] HID: google: Add of_match table to Whiskers switch device.

2019-10-17 Thread Ikjoon Jang
A gentle ping on adding DT binding for Hammer (2/2). On Sat, Oct 5, 2019 at 6:14 PM Ikjoon Jang wrote: > > Add a device tree match table. > > Change-Id: Iaee68311073cefa4b99cde182bd37d1a67c94ea6 > Signed-off-by: Ikjoon Jang > --- > drivers/hid/hid-google-hammer.c | 10 ++ > 1 file

Re: [PATCH v2] cpufreq: powernv: fix stack bloat and NR_CPUS limitation

2019-10-17 Thread Viresh Kumar
On 17-10-19, 21:55, John Hubbard wrote: > The following build warning occurred on powerpc 64-bit builds: > > drivers/cpufreq/powernv-cpufreq.c: In function 'init_chip_info': > drivers/cpufreq/powernv-cpufreq.c:1070:1: warning: the frame size of 1040 > bytes is larger than 1024 bytes

[PATCH v2 22/33] sh/intc: Use pr_warn instead of pr_warning

2019-10-17 Thread Kefeng Wang
As said in commit f2c2cbcc35d4 ("powerpc: Use pr_warn instead of pr_warning"), removing pr_warning so all logging messages use a consistent _warn style. Let's do it. Cc: Yoshinori Sato Cc: Rich Felker Reviewed-by: Sergey Senozhatsky Signed-off-by: Kefeng Wang --- drivers/sh/intc/core.c | 4

Re: [PATCH 2/2] Fix a NULL-ptr-deref bug in ath10k_usb_alloc_urb_from_pipe

2019-10-17 Thread Guenter Roeck
On Sun, Sep 01, 2019 at 11:06:05AM +0300, Kalle Valo wrote: > Guenter Roeck writes: > > > Hi, > > > > On Sat, Aug 03, 2019 at 08:31:01PM -0400, Hui Peng wrote: > >> The `ar_usb` field of `ath10k_usb_pipe_usb_pipe` objects > >> are initialized to point to the containing `ath10k_usb` object > >>

[PATCH v2 11/33] clocksource: samsung_pwm_timer: Use pr_warn instead of pr_warning

2019-10-17 Thread Kefeng Wang
As said in commit f2c2cbcc35d4 ("powerpc: Use pr_warn instead of pr_warning"), removing pr_warning so all logging messages use a consistent _warn style. Let's do it. Cc: Daniel Lezcano Acked-by: Daniel Lezcano Reviewed-by: Sergey Senozhatsky Signed-off-by: Kefeng Wang ---

[PATCH v2 17/33] oprofile: Use pr_warn instead of pr_warning

2019-10-17 Thread Kefeng Wang
As said in commit f2c2cbcc35d4 ("powerpc: Use pr_warn instead of pr_warning"), removing pr_warning so all logging messages use a consistent _warn style. Let's do it. Cc: Robert Richter Acked-by: Robert Richter Reviewed-by: Sergey Senozhatsky Signed-off-by: Kefeng Wang ---

[PATCH v2 21/33] scsi: Use pr_warn instead of pr_warning

2019-10-17 Thread Kefeng Wang
As said in commit f2c2cbcc35d4 ("powerpc: Use pr_warn instead of pr_warning"), removing pr_warning so all logging messages use a consistent _warn style. Let's do it. Cc: "James E.J. Bottomley" Cc: "Martin K. Petersen" Reviewed-by: Sergey Senozhatsky Signed-off-by: Kefeng Wang ---

Re: [PATCH] cpufreq: powernv: fix stack bloat and NR_CPUS limitation

2019-10-17 Thread Viresh Kumar
On 17-10-19, 21:34, John Hubbard wrote: > On 10/17/19 9:27 PM, Viresh Kumar wrote: > > On 17-10-19, 17:04, John Hubbard wrote: > >> The following build warning occurred on powerpc 64-bit builds: > >> > >> drivers/cpufreq/powernv-cpufreq.c: In function 'init_chip_info': > >>

[PATCH v2 04/33] riscv: Use pr_warn instead of pr_warning

2019-10-17 Thread Kefeng Wang
As said in commit f2c2cbcc35d4 ("powerpc: Use pr_warn instead of pr_warning"), removing pr_warning so all logging messages use a consistent _warn style. Let's do it. Cc: Paul Walmsley Cc: Palmer Dabbelt Cc: Albert Ou Acked-by: Palmer Dabbelt Reviewed-by: Sergey Senozhatsky Signed-off-by:

[PATCH v2 06/33] sparc: Use pr_warn instead of pr_warning

2019-10-17 Thread Kefeng Wang
As said in commit f2c2cbcc35d4 ("powerpc: Use pr_warn instead of pr_warning"), removing pr_warning so all logging messages use a consistent _warn style. Let's do it. Cc: "David S. Miller" Cc: Andrew Morton Reviewed-by: Sergey Senozhatsky Signed-off-by: Kefeng Wang ---

[PATCH] staging: rtl8192e: initializing the wep buffer

2019-10-17 Thread Kangjie Lu
The "wep" buffer is not initialized. To avoid memory disclosures, the fix initializes it, as peer functions like rtllib_ccmp_set_key do. Signed-off-by: Kangjie Lu --- drivers/staging/rtl8192e/rtllib_crypt_wep.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v2 05/33] sh: Use pr_warn instead of pr_warning

2019-10-17 Thread Kefeng Wang
As said in commit f2c2cbcc35d4 ("powerpc: Use pr_warn instead of pr_warning"), removing pr_warning so all logging messages use a consistent _warn style. Let's do it. Cc: Stephen Rothwell Cc: Yoshinori Sato Cc: Rich Felker Reviewed-by: Sergey Senozhatsky Signed-off-by: Kefeng Wang ---

[PATCH v2 31/33] tools lib bpf: Renaming pr_warning to pr_warn

2019-10-17 Thread Kefeng Wang
For kernel logging macro, pr_warning is completely removed and replaced by pr_warn, using pr_warn in tools lib bpf for symmetry to kernel logging macro, then we could drop pr_warning in the whole linux code. Cc: Alexei Starovoitov Cc: Daniel Borkmann Cc: Martin KaFai Lau Cc: Song Liu Cc:

[PATCH v2 08/33] acpi: Use pr_warn instead of pr_warning

2019-10-17 Thread Kefeng Wang
As said in commit f2c2cbcc35d4 ("powerpc: Use pr_warn instead of pr_warning"), removing pr_warning so all logging messages use a consistent _warn style. Let's do it. Cc: "Rafael J. Wysocki" Cc: Len Brown Cc: James Morse Reviewed-by: Sergey Senozhatsky Signed-off-by: Kefeng Wang ---

[PATCH v2 03/33] ia64: Use pr_warn instead of pr_warning

2019-10-17 Thread Kefeng Wang
As said in commit f2c2cbcc35d4 ("powerpc: Use pr_warn instead of pr_warning"), removing pr_warning so all logging messages use a consistent _warn style. Let's do it. Cc: Tony Luck Cc: Fenghua Yu Reviewed-by: Sergey Senozhatsky Signed-off-by: Kefeng Wang --- arch/ia64/kernel/setup.c | 2 +- 1

Re: [PATCH 03/15] riscv: abstract out CSR names for supervisor vs machine mode

2019-10-17 Thread Anup Patel
On Thu, Oct 17, 2019 at 11:07 PM Christoph Hellwig wrote: > > Many of the privileged CSRs exist in a supervisor and machine version > that are used very similarly. Provide a new X-naming layer so that > we don't have to ifdef everywhere for M-mode Linux support. > > Contains contributions from

[PATCH v2 09/33] drbd: Use pr_warn instead of pr_warning

2019-10-17 Thread Kefeng Wang
As said in commit f2c2cbcc35d4 ("powerpc: Use pr_warn instead of pr_warning"), removing pr_warning so all logging messages use a consistent _warn style. Let's do it. Cc: Philipp Reisner Cc: Lars Ellenberg Cc: Jens Axboe Cc: drbd-...@lists.linbit.com Reviewed-by: Sergey Senozhatsky

Re: [PATCH 0/8] riscv: resolve most warnings from sparse

2019-10-17 Thread Anup Patel
On Fri, Oct 18, 2019 at 6:19 AM Paul Walmsley wrote: > > Resolve most warnings from the 'sparse' static analysis tool for the > arch/riscv codebase. This makes life easier for us as maintainers, > and makes it easier for developers to use static analysis tools on > their own changes. > > This

[PATCH v2 30/33] tools lib api: Renaming pr_warning to pr_warn

2019-10-17 Thread Kefeng Wang
For kernel logging macro, pr_warning is completely removed and replaced by pr_warn, using pr_warn in tools lib api for symmetry to kernel logging macro, then we could drop pr_warning in the whole linux code. Changing __pr_warning to __pr_warn to be consistent. Cc: Arnaldo Carvalho de Melo

Re: [PATCH 4/8] riscv: ensure RISC-V C model definitions are passed to static analyzers

2019-10-17 Thread Luc Van Oostenryck
On Thu, Oct 17, 2019 at 05:49:25PM -0700, Paul Walmsley wrote: > Static analysis tools such as sparse don't set the RISC-V C model > preprocessor directives such as "__riscv_cmodel_medany", set by the C > compilers. This causes the static analyzers to evaluate different > preprocessor paths than

[PATCH v2 26/33] trace: Use pr_warn instead of pr_warning

2019-10-17 Thread Kefeng Wang
As said in commit f2c2cbcc35d4 ("powerpc: Use pr_warn instead of pr_warning"), removing pr_warning so all logging messages use a consistent _warn style. Let's do it. Cc: Steven Rostedt Cc: Ingo Molnar Acked-by: Steven Rostedt (VMware) Reviewed-by: Sergey Senozhatsky Signed-off-by: Kefeng Wang

[PATCH v2 16/33] of: Use pr_warn instead of pr_warning

2019-10-17 Thread Kefeng Wang
As said in commit f2c2cbcc35d4 ("powerpc: Use pr_warn instead of pr_warning"), removing pr_warning so all logging messages use a consistent _warn style. Let's do it. Cc: Rob Herring Cc: Frank Rowand Reviewed-by: Sergey Senozhatsky Signed-off-by: Kefeng Wang --- drivers/of/fdt.c | 20

[PATCH v2 33/33] checkpatch: Drop pr_warning check

2019-10-17 Thread Kefeng Wang
For now, all pr_warning are removed, delete pr_warning check in checkpatch. Cc: Andy Whitcroft Cc: Joe Perches Reviewed-by: Sergey Senozhatsky Signed-off-by: Kefeng Wang --- scripts/checkpatch.pl | 9 - 1 file changed, 9 deletions(-) diff --git a/scripts/checkpatch.pl

[PATCH v2 15/33] macintosh: Use pr_warn instead of pr_warning

2019-10-17 Thread Kefeng Wang
As said in commit f2c2cbcc35d4 ("powerpc: Use pr_warn instead of pr_warning"), removing pr_warning so all logging messages use a consistent _warn style. Let's do it. Cc: Benjamin Herrenschmidt Cc: linuxppc-...@lists.ozlabs.org Reviewed-by: Sergey Senozhatsky Signed-off-by: Kefeng Wang ---

[PATCH v2 27/33] lib: cpu_rmap: Use pr_warn instead of pr_warning

2019-10-17 Thread Kefeng Wang
As said in commit f2c2cbcc35d4 ("powerpc: Use pr_warn instead of pr_warning"), removing pr_warning so all logging messages use a consistent _warn style. Let's do it. Cc: Andrew Morton Reviewed-by: Sergey Senozhatsky Signed-off-by: Kefeng Wang --- lib/cpu_rmap.c | 2 +- 1 file changed, 1

[PATCH] media: rcar_drif: fix a memory disclosure

2019-10-17 Thread Kangjie Lu
"f->fmt.sdr.reserved" is uninitialized. As other peer drivers like msi2500 and airspy do, the fix initializes it to avoid memory disclosures. Signed-off-by: Kangjie Lu --- drivers/media/platform/rcar_drif.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/platform/rcar_drif.c

[PATCH v2 12/33] crypto: n2: Use pr_warn instead of pr_warning

2019-10-17 Thread Kefeng Wang
As said in commit f2c2cbcc35d4 ("powerpc: Use pr_warn instead of pr_warning"), removing pr_warning so all logging messages use a consistent _warn style. Let's do it. Cc: Herbert Xu Cc: "David S. Miller" Reviewed-by: Sergey Senozhatsky Signed-off-by: Kefeng Wang --- drivers/crypto/n2_core.c |

[PATCH v2 18/33] platform/x86: eeepc-laptop: Use pr_warn instead of pr_warning

2019-10-17 Thread Kefeng Wang
As said in commit f2c2cbcc35d4 ("powerpc: Use pr_warn instead of pr_warning"), removing pr_warning so all logging messages use a consistent _warn style. Let's do it. Cc: Corentin Chary Cc: Darren Hart Cc: Andy Shevchenko Cc: Andy Shevchenko Reviewed-by: Sergey Senozhatsky Signed-off-by:

[PATCH v2 29/33] printk: Drop pr_warning

2019-10-17 Thread Kefeng Wang
With all pr_warning are removed, saftely drop pr_warning definition. Cc: Petr Mladek Cc: Sergey Senozhatsky Cc: Steven Rostedt Reviewed-by: Sergey Senozhatsky Signed-off-by: Kefeng Wang --- include/linux/printk.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

[PATCH v2 02/33] arm64: Use pr_warn instead of pr_warning

2019-10-17 Thread Kefeng Wang
As said in commit f2c2cbcc35d4 ("powerpc: Use pr_warn instead of pr_warning"), removing pr_warning so all logging messages use a consistent _warn style. Let's do it. Cc: Will Deacon Cc: Mark Rutland Cc: Catalin Marinas Acked-by: Will Deacon Reviewed-by: Sergey Senozhatsky Signed-off-by:

[PATCH v2 19/33] platform/x86: asus-laptop: Use pr_warn instead of pr_warning

2019-10-17 Thread Kefeng Wang
As said in commit f2c2cbcc35d4 ("powerpc: Use pr_warn instead of pr_warning"), removing pr_warning so all logging messages use a consistent _warn style. Let's do it. Cc: Corentin Chary Cc: Darren Hart Cc: Andy Shevchenko Cc: Andy Shevchenko Reviewed-by: Sergey Senozhatsky Signed-off-by:

[PATCH v2 25/33] dma-debug: Use pr_warn instead of pr_warning

2019-10-17 Thread Kefeng Wang
As said in commit f2c2cbcc35d4 ("powerpc: Use pr_warn instead of pr_warning"), removing pr_warning so all logging messages use a consistent _warn style. Let's do it. Cc: Christoph Hellwig Cc: Marek Szyprowski Cc: Robin Murphy Reviewed-by: Sergey Senozhatsky Signed-off-by: Kefeng Wang ---

[PATCH v2 24/33] vgacon: Use pr_warn instead of pr_warning

2019-10-17 Thread Kefeng Wang
As said in commit f2c2cbcc35d4 ("powerpc: Use pr_warn instead of pr_warning"), removing pr_warning so all logging messages use a consistent _warn style. Let's do it. Cc: Bartlomiej Zolnierkiewicz Cc: linux-fb...@vger.kernel.org Reviewed-by: Sergey Senozhatsky Signed-off-by: Kefeng Wang ---

[PATCH v2 32/33] tools perf: Renaming pr_warning to pr_warn

2019-10-17 Thread Kefeng Wang
For kernel logging macro, pr_warning is completely removed and replaced by pr_warn, using pr_warn in tools perf for symmetry to kernel logging macro, then we could drop pr_warning in the whole linux code. Cc: Arnaldo Carvalho de Melo Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Mark Rutland Cc:

[PATCH v2 23/33] fs: afs: Use pr_warn instead of pr_warning

2019-10-17 Thread Kefeng Wang
As said in commit f2c2cbcc35d4 ("powerpc: Use pr_warn instead of pr_warning"), removing pr_warning so all logging messages use a consistent _warn style. Let's do it. Cc: David Howells Cc: linux-...@lists.infradead.org Reviewed-by: Sergey Senozhatsky Signed-off-by: Kefeng Wang ---

[PATCH v2 28/33] ASoC: samsung: Use pr_warn instead of pr_warning

2019-10-17 Thread Kefeng Wang
As said in commit f2c2cbcc35d4 ("powerpc: Use pr_warn instead of pr_warning"), removing pr_warning so all logging messages use a consistent _warn style. Let's do it. Cc: Krzysztof Kozlowski Cc: Sangbeom Kim Cc: Sylwester Nawrocki Cc: Jaroslav Kysela Cc: Takashi Iwai Reviewed-by: Sergey

[PATCH v2 14/33] idsn: Use pr_warn instead of pr_warning

2019-10-17 Thread Kefeng Wang
As said in commit f2c2cbcc35d4 ("powerpc: Use pr_warn instead of pr_warning"), removing pr_warning so all logging messages use a consistent _warn style. Let's do it. Cc: Karsten Keil Reviewed-by: Sergey Senozhatsky Signed-off-by: Kefeng Wang --- drivers/isdn/hardware/mISDN/avmfritz.c | 16

[PATCH v2 13/33] ide: Use pr_warn instead of pr_warning

2019-10-17 Thread Kefeng Wang
As said in commit f2c2cbcc35d4 ("powerpc: Use pr_warn instead of pr_warning"), removing pr_warning so all logging messages use a consistent _warn style. Let's do it. Cc: "David S. Miller" Reviewed-by: Sergey Senozhatsky Signed-off-by: Kefeng Wang --- drivers/ide/tx4938ide.c | 2 +-

[PATCH v2 20/33] platform/x86: intel_oaktrail: Use pr_warn instead of pr_warning

2019-10-17 Thread Kefeng Wang
As said in commit f2c2cbcc35d4 ("powerpc: Use pr_warn instead of pr_warning"), removing pr_warning so all logging messages use a consistent _warn style. Let's do it. Cc: Corentin Chary Cc: Darren Hart Cc: Andy Shevchenko Cc: Andy Shevchenko Reviewed-by: Sergey Senozhatsky Signed-off-by:

  1   2   3   4   5   6   7   8   9   10   >