[RFC/RFT 09/10] i2c: s3c2410: use core helper to mark adapter suspended

2018-12-10 Thread Wolfram Sang
Rejecting transfers should be handled by the core. Also, this will ensure proper locking which was forgotten in this open coded version. Signed-off-by: Wolfram Sang --- drivers/i2c/busses/i2c-s3c2410.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/i2c/busses

[RFC/RFT 03/10] i2c: synquacer: remove unused is_suspended flag

2018-12-10 Thread Wolfram Sang
This flag was defined and checked but never set a value. Remove it. Signed-off-by: Wolfram Sang --- drivers/i2c/busses/i2c-synquacer.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/i2c/busses/i2c-synquacer.c b/drivers/i2c/busses/i2c-synquacer.c index 2184b7c3580e..d18b0941b71a

[RFC/RFT 10/10] i2c: rcar: add suspend/resume support

2018-12-10 Thread Wolfram Sang
Because the adapter will be set up before every transaction anyhow, we just need to mark it as adapted to the I2C core. Signed-off-by: Hiromitsu Yamasaki Signed-off-by: Wolfram Sang --- drivers/i2c/busses/i2c-rcar.c | 25 + 1 file changed, 25 insertions(+) diff --git a/

[RFC/RFT 07/10] i2c: sprd: use core helper to mark adapter suspended

2018-12-10 Thread Wolfram Sang
Rejecting transfers should be handled by the core. Signed-off-by: Wolfram Sang --- drivers/i2c/busses/i2c-sprd.c | 14 ++ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/drivers/i2c/busses/i2c-sprd.c b/drivers/i2c/busses/i2c-sprd.c index e266d8a713d9..acbaf5fd29ee 1006

[RFC/RFT 01/10] i2c: add 'is_suspended' flag for i2c adapters

2018-12-10 Thread Wolfram Sang
Some drivers open code handling of suspended adapters. It should be handled by the core, though, to ensure generic handling. This patch adds the flag and an accessor function. Signed-off-by: Wolfram Sang --- drivers/i2c/i2c-core-base.c | 1 + include/linux/i2c.h | 9 + 2 files ch

Re: [PATCH v2 0/5] leds: trigger: Add pattern initialization from Device Tree

2018-12-10 Thread Jacek Anaszewski
Hi Krzysztof, Thank you for the update. On 12/10/18 10:29 AM, Krzysztof Kozlowski wrote: Hi, I rebased on top of Jacek's patches and, as I could not find them on git kernel tree, I included them here. Also with small fixup. Changes since v1: 1. Rebase on Jacek's patches. Made following amen

[PATCH] sched/fair: move capacity_margin definition into #ifdef

2018-12-10 Thread Arnd Bergmann
Marking the variable static showed that it's only used for SMP builds, as seen from this warning: kernel/sched/fair.c:119:21: error: 'capacity_margin' defined but not used [-Werror=unused-variable] static unsigned int capacity_margin = 1280; This has apparently been true since the variable ha

Re: [PATCH] scsi: qla2xxx: fix unused function warning

2018-12-10 Thread Bart Van Assche
On Mon, 2018-12-10 at 21:51 +0100, Arnd Bergmann wrote: > In what seems to be a mismatch between the scsi-fixes branch and > the scsi-mkp/for-next branch, a newly introduced variable from > one patch got obsoleted in another one: > > drivers/scsi/qla2xxx/qla_os.c: In function '__qla2x00_abort_all_

[PATCH] ARM: shmobile: fix build regressions

2018-12-10 Thread Arnd Bergmann
A number of Kconfig options have become available now to random ARM platforms outside of ARCH_MULTIPLATFORM, which now causes Kconfig warnings, and other build errors when those select options that lack additonal dependencies, e.g.: WARNING: unmet direct dependencies detected for HAVE_ARM_ARCH_TIM

[PATCH] pinctrl: msm: mark PM functions as __maybe_unused

2018-12-10 Thread Arnd Bergmann
Without CONFIG_PM_SLEEP, we get annoyting warnings about unused functions: drivers/pinctrl/qcom/pinctrl-msm.c:1082:12: error: 'msm_pinctrl_resume' defined but not used [-Werror=unused-function] static int msm_pinctrl_resume(struct device *dev) ^~ drivers/pinctrl/qcom/

[PATCH] kasan: add missing Kconfig dependencies

2018-12-10 Thread Arnd Bergmann
Building with CONFIG_KASAN=y when neither KASAN_GENERIC nor KASAN_SW_TAGS can be selected leads to a build error: arch/arm64/mm/kasan_init.c: In function 'kasan_pte_populate': arch/arm64/mm/kasan_init.c:106:28: error: 'KASAN_SHADOW_INIT' undeclared (first use in this function); did you mean 'KASA

Re: [driver-core PATCH v8 2/9] driver core: Establish order of operations for device_add and device_del via bitflag

2018-12-10 Thread Alexander Duyck
On Mon, 2018-12-10 at 11:43 -0800, Dan Williams wrote: > On Mon, Dec 10, 2018 at 11:35 AM Alexander Duyck > wrote: > > > > On Mon, 2018-12-10 at 10:58 -0800, Dan Williams wrote: > > > On Wed, Dec 5, 2018 at 9:25 AM Alexander Duyck > > > wrote: > > > > > > > > Add an additional bit flag to the d

[PATCH] drm/msm: fix arm64 build error

2018-12-10 Thread Arnd Bergmann
The new a200 GPU MMU support fails to build on arm64 because of a conflicting macro name: drivers/gpu/drm/msm/msm_gpummu.c:17: error: "VA_START" redefined [-Werror] #define VA_START SZ_16M In file included from arch/arm64/include/asm/pgtable-hwdef.h:19, from arch/arm64/include/a

[PATCH] brcmfmac: fix false-positive -Wmaybe-unintialized warning

2018-12-10 Thread Arnd Bergmann
When CONFIG_NO_AUTO_INLINE is set, we get a false-postive warning for the brcmf_fw_request_nvram_done() function, after gcc figures out that brcmf_fw_nvram_from_efi() might not set the 'data_len' variable, but fails to notice that it always returns NULL: drivers/net/wireless/broadcom/brcm80211/brc

[PATCH] ALSA: hda/ca0132 - make pci_iounmap() call conditional

2018-12-10 Thread Arnd Bergmann
When building without CONFIG_PCI, we can (depending on the architecture) get a link failure: ERROR: "pci_iounmap" [sound/pci/hda/snd-hda-codec-ca0132.ko] undefined! Adding a compile-time check for PCI gets it to work correctly on 32-bit ARM. Signed-off-by: Arnd Bergmann --- sound/pci/hda/patch

[PATCH] dmaengine: fsl-qdma: add MODULE_LICENSE

2018-12-10 Thread Arnd Bergmann
The newly added driver lacks a MODULE_LICENSE tag, which now produces a warning: WARNING: modpost: missing MODULE_LICENSE() in drivers/dma/fsl-qdma.o Add the license according to the SPDX specifier. Fixes: 75628c149b0d ("dmaengine: fsl-qdma: Add qDMA controller driver for Layerscape SoCs") Sign

[PATCH] i2c: nvidia-gpu: mark resume function as __maybe_unused

2018-12-10 Thread Arnd Bergmann
When CONFIG_PM is disabled, this is needed to avoid a harmless unused-function warning: drivers/i2c/busses/i2c-nvidia-gpu.c:345:12: error: 'gpu_i2c_resume' defined but not used [-Werror=unused-function] Fixes: c71bcdcb42a7 ("i2c: add i2c bus driver for NVIDIA GPU") Signed-off-by: Arnd Bergmann

[PATCH] x86: mm: remove unused variable

2018-12-10 Thread Arnd Bergmann
A recent change dropped the only user of the variable, which should now be removed as well to avoid this warning: arch/x86/mm/init_32.c: In function 'arch_remove_memory': arch/x86/mm/init_32.c:867:15: error: unused variable 'zone' [-Werror=unused-variable] Fixes: dd99d07f818b ("mm, memory_hotplu

[PATCH] scsi: qla2xxx: fix unused function warning

2018-12-10 Thread Arnd Bergmann
In what seems to be a mismatch between the scsi-fixes branch and the scsi-mkp/for-next branch, a newly introduced variable from one patch got obsoleted in another one: drivers/scsi/qla2xxx/qla_os.c: In function '__qla2x00_abort_all_cmds': drivers/scsi/qla2xxx/qla_os.c:1791:11: error: unused variab

Re: [PATCH] x86/resctrl: Ensure usage of CPUs are locked while needed

2018-12-10 Thread Reinette Chatre
Hi Boris, On 12/10/2018 12:49 PM, Borislav Petkov wrote: > On Wed, Nov 28, 2018 at 10:22:07AM -0800, Reinette Chatre wrote: >> The user triggers the creation of a pseudo-locked region when writing >> the requested schemata to the schemata resctrl file. The pseudo-locking >> of a region is required

[PATCH] ASoC: sdm845: add rt5663 codec select

2018-12-10 Thread Arnd Bergmann
Calling into the codec driver adds a dependency on that being reachable from the module: ERROR: "rt5663_sel_asrc_clk_src" [sound/soc/qcom/snd-soc-sdm845.ko] undefined! Add the corresponding select statement, as it is done in the other user (Intel). Fixes: f7485875a687 ("ASoC: sdm845: Add configu

Re: use generic DMA mapping code in powerpc V4

2018-12-10 Thread Benjamin Herrenschmidt
On Mon, 2018-12-10 at 20:33 +0100, Christoph Hellwig wrote: > On Mon, Dec 10, 2018 at 05:04:46PM +, Rui Salvaterra wrote: > > Hi, Christoph and Ben, > > > > It just came to my mind (and this is most likely a stupid question, > > but still)… Is there any possibility of these changes having an >

Re: [PATCH] x86/resctrl: Ensure usage of CPUs are locked while needed

2018-12-10 Thread Borislav Petkov
On Wed, Nov 28, 2018 at 10:22:07AM -0800, Reinette Chatre wrote: > The user triggers the creation of a pseudo-locked region when writing > the requested schemata to the schemata resctrl file. The pseudo-locking > of a region is required to be done on a CPU that is associated with the > cache on whi

Re: [PATCH V3 2/2] iio: light: isl29018: add optional vdd/vdda regulator operation support

2018-12-10 Thread Jonathan Cameron
On Mon, 10 Dec 2018 07:11:23 + Anson Huang wrote: > The light sensor's power supply could be controlled by regulator > on some platforms, such as i.MX6Q-SABRESD board, the light sensor > isl29023's power supply is controlled by a GPIO fixed regulator, > need to make sure the regulator is enab

Re: [PATCH 0/2] riscv: enable syscalls tracepoints

2018-12-10 Thread David Abdurachmanov
On Fri, Dec 7, 2018 at 9:32 PM Palmer Dabbelt wrote: > > On Thu, 06 Dec 2018 07:26:33 PST (-0800), david.abdurachma...@gmail.com wrote: > > Depends on audit patch: > > http://lists.infradead.org/pipermail/linux-riscv/2018-October/001931.html > > > > audit patch is already merged into linux-next. >

[PATCH] ARM: imx: fix dependencies on imx7ulp

2018-12-10 Thread Arnd Bergmann
The i.MX7D configuration was reworked, but that change did not get propagated into the newly added i.MX7ULP, which now produces a Kconfig warning: WARNING: unmet direct dependencies detected for HAVE_ARM_ARCH_TIMER Depends on [n]: CPU_V7 [=n] Selected by [y]: - SOC_IMX7ULP [=y] && ARCH_MXC [

[PATCH] ASoC: simple-card-utils: fix build warning without CONFIG_OF

2018-12-10 Thread Arnd Bergmann
When CONFIG_OF is disabled, of_graph_parse_endpoint() does not initialize 'info', and gcc can see that: sound/soc/generic/simple-card-utils.c: In function 'asoc_simple_card_parse_graph_dai': sound/soc/generic/simple-card-utils.c:284:13: error: 'info.port' may be used uninitialized in this functi

[PATCH] mmc: sdhci-msm: avoid unused function warning

2018-12-10 Thread Arnd Bergmann
The newly added sdhci_msm_restore_sdr_dll_config() function is only called if CONFIG_PM is enabled: drivers/mmc/host/sdhci-msm.c:1050:12: error: 'sdhci_msm_restore_sdr_dll_config' defined but not used [-Werror=unused-function] Better remove the incorrect #ifdef altogether and just use __maybe_un

[PATCH] w90p910_ether: remove incorrect __init annotation

2018-12-10 Thread Arnd Bergmann
The get_mac_address() function is normally inline, but when it is not, we get a warning that this configuration is broken: WARNING: vmlinux.o(.text+0x4aff00): Section mismatch in reference from the function w90p910_ether_setup() to the function .init.text:get_mac_address() The function w90p910_et

Re: [PATCH v7] clk: bd718x7: Initial support for ROHM bd71837/bd71847 PMIC clock

2018-12-10 Thread Stephen Boyd
Quoting Matti Vaittinen (2018-12-07 02:01:44) > ROHM bd71837 and bd71847 contain 32768Hz clock gate. Support the clock > using generic clock framework. Note, only bd71837 is tested but bd71847 > should be identical what comes to clk parts. > > Signed-off-by: Matti Vaittinen > --- Applied to clk-

[PATCH] hns3: prevent building without CONFIG_INET

2018-12-10 Thread Arnd Bergmann
We now get a link failure when CONFIG_INET is disabled, since tcp_gro_complete is unavailable: drivers/net/ethernet/hisilicon/hns3/hns3_enet.o: In function `hns3_set_gro_param': hns3_enet.c:(.text+0x230c): undefined reference to `tcp_gro_complete' Add an explicit CONFIG_INET dependency here to a

[PATCH 2/2] riscv: define CREATE_TRACE_POINTS in ptrace.c

2018-12-10 Thread David Abdurachmanov
Define CREATE_TRACE_POINTS in order to create functions and structures for the trace events. This is needed if HAVE_SYSCALL_TRACEPOINTS and CONFIG_FTRACE_SYSCALLS are enabled, otherwise we get linking errors: [..] MODPOST vmlinux.o kernel/trace/trace_syscalls.o: In function `.L0 ': trace_syscall

[PATCH 2/2] ARM: mmp: fix pxa168_device_usb_phy use on aspenite

2018-12-10 Thread Arnd Bergmann
This one ended up in the wrong header file, causing a build failure on at least one platform: arch/arm/mach-mmp/aspenite.c: In function 'common_init': arch/arm/mach-mmp/aspenite.c:260:28: error: 'pxa168_device_usb_phy' undeclared (first use in this function); did you mean 'pxa168_device_ssp5'? W

[PATCH 0/2] Fix next-audit branch

2018-12-10 Thread David Abdurachmanov
Intel kbuild test robot reported on Dec 8th, 2018 that next-audit is broken. This was with riscv-allmodconfig config. There were two issues found: - We don't generate functions needed for trace events; - We are missing NR_syscalls macro used by kernel/trace. David Abdurachmanov (2): riscv: defi

[PATCH 1/2] riscv: define NR_syscalls in unistd.h

2018-12-10 Thread David Abdurachmanov
This macro is used by kernel/trace/{trace.h,trace_syscalls.c} if we have CONFIG_FTRACE_SYSCALLS enabled. Signed-off-by: David Abdurachmanov Fixes: b78002b395b4 ("riscv: add HAVE_SYSCALL_TRACEPOINTS to Kconfig") --- arch/riscv/include/asm/unistd.h | 2 ++ 1 file changed, 2 insertions(+) diff --g

[PATCH 1/2] ARM: mmp: fix timer_init calls

2018-12-10 Thread Arnd Bergmann
The change to passing the timer frequency as a function argument was a good idea, but caused a build failure for one user that was missed in the update: arch/arm/mach-mmp/time.c: In function 'mmp_dt_init_timer': arch/arm/mach-mmp/time.c:242:2: error: implicit declaration of function 'timer_init';

[PATCH 0/2] tracing: Fix a couple of memory leaks in the event trigger code

2018-12-10 Thread Steven Rostedt
Tom, While testing other changes, kmemleak pointed out a few leaks in the trigger code. Can you take a look at them and give me a Reviewed-by or Ack. Thanks! -- Steve Steven Rostedt (VMware) (2): tracing: Fix memory leak in create_filter() tracing: Fix memory leak in set_trigger_fi

[PATCH 1/2] tracing: Fix memory leak in create_filter()

2018-12-10 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" The create_filter() calls create_filter_start() which allocates a "parse_error" descriptor, but fails to call create_filter_finish() that frees it. The op_stack and inverts in predicate_parse() were also not freed. Found by kmemleak detector. Cc: Tom Zanussi C

[PATCH] media: seco-cec: fix RC_CORE dependency

2018-12-10 Thread Arnd Bergmann
All other drivers that need RC_CORE have a dependency rather than using 'select', so we should do the same here to avoid circular dependencies as well as this warning about missing dependencies: WARNING: unmet direct dependencies detected for RC_CORE Depends on [n]: INPUT [=n] Selected by [y]:

[PATCH 2/2] tracing: Fix memory leak in set_trigger_filter()

2018-12-10 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" When create_event_filter() fails in set_trigger_filter(), the filter may still be allocated and needs to be freed. The caller expects the data->filter to be updated with the new filter, even if the new filter failed (we could add an error message by setting set_str

Re: [PATCH] x86/resctrl: Fix rdt_find_domain() return value checks

2018-12-10 Thread Reinette Chatre
Hi Boris, On 12/10/2018 11:13 AM, Borislav Petkov wrote: > On Wed, Nov 28, 2018 at 10:20:27AM -0800, Reinette Chatre wrote: >> rdt_find_domain() may return an ERR_PTR(), NULL, or a pointer to struct >> rdt_domain. It is thus required that the return value be checked for the >> possibility of an ER

Re: kvm: RDTSCP on AMD

2018-12-10 Thread Borislav Petkov
On Mon, Dec 10, 2018 at 06:08:43PM -0200, Eduardo Habkost wrote: > | The Opteron_G2, OpteronG3, Opteron_G4, and Opteron_G5 CPU > | models require KVM support for RDTSCP, which was added on > | Linux 4.5. I've added that to the current diff: "The OpteronG[345] CPU models require KVM support for RD

[PATCH] iwlwifi: fix false-positive maybe-uninitialized warning

2018-12-10 Thread Arnd Bergmann
With CONFIG_NO_AUTO_INLINE, we run into a silly warning when gcc fails to remember that n_profiles is constant across the function call to iwl_mvm_sar_set_profile: drivers/net/wireless/intel/iwlwifi/mvm/fw.c: In function 'iwl_mvm_sar_get_ewrd_table': drivers/net/wireless/intel/iwlwifi/mvm/fw.c:74

Re: [PATCH 2/2] iio: adc: Add the TI ads124s08 ADC code

2018-12-10 Thread Jonathan Cameron
Hi Dan, Replies to queries inline. On Mon, 10 Dec 2018 14:14:55 -0600 Dan Murphy wrote: > Jonathan > > Thanks for the review > > On 12/08/2018 05:56 AM, Jonathan Cameron wrote: > > On Tue, 4 Dec 2018 11:59:55 -0600 > > Dan Murphy wrote: > > > >> Introduce the TI ADS124S08 and the ADS124S0

[PATCH] mtd: atmel-quadspi: disallow building on ebsa110

2018-12-10 Thread Arnd Bergmann
I ran into a link-time error with the atmel-quadspi driver on the EBSA110 platform: drivers/mtd/built-in.o: In function `atmel_qspi_run_command': :(.text+0x1ee3c): undefined reference to `_memcpy_toio' :(.text+0x1ee48): undefined reference to `_memcpy_fromio' The problem is that _memcpy_toio/_mem

Re: [PATCH 3.16 000/328] 3.16.62-rc1 review

2018-12-10 Thread Guenter Roeck
On Mon, Dec 10, 2018 at 07:06:41PM +, Ben Hutchings wrote: > On Mon, 2018-12-10 at 08:54 -0800, Guenter Roeck wrote: > > On Sun, Dec 09, 2018 at 09:50:32PM +, Ben Hutchings wrote: > > > This is the start of the stable review cycle for the 3.16.62 release. > > > There are 328 patches in this

[PATCH v3] kbuild: Add support for DT binding schema checks

2018-12-10 Thread Rob Herring
This adds the build infrastructure for checking DT binding schema documents and validating dts files using the binding schema. Check DT binding schema documents: make dt_binding_check Build dts files and check using DT binding schema: make dtbs_check Optionally, DT_SCHEMA_FILES can passed in wit

Re: [PATCH] pseries/hotplug: Add more delay in pseries_cpu_die while waiting for rtas-stop

2018-12-10 Thread Thiago Jung Bauermann
Hello Michael, Michael Bringmann writes: > I have asked Scott Mayes to take a look at one of these crashes from > the phyp side. I will let you know if he finds anything notable. Thanks! It might make sense to test whether booting with cede_offline=off makes the bug go away. One suspicion I

Re: [PATCH v3 0/3] sh: system call table generation support

2018-12-10 Thread Rich Felker
On Mon, Nov 19, 2018 at 10:38:20AM +0530, Firoz Khan wrote: > On Wed, 14 Nov 2018 at 10:02, Firoz Khan wrote: > > > > The purpose of this patch series is, we can easily > > add/modify/delete system call table support by cha- > > nging entry in syscall.tbl file instead of manually > > changing many

Re: [PATCH v5 19/25] xtensa: define syscall_get_* functions

2018-12-10 Thread Dmitry V. Levin
On Mon, Dec 10, 2018 at 11:24:02PM +0300, Dmitry V. Levin wrote: > On Mon, Dec 10, 2018 at 12:14:37PM -0800, Max Filippov wrote: > > On Mon, Dec 10, 2018 at 4:53 AM Dmitry V. Levin wrote: > > > On Sun, Dec 09, 2018 at 09:02:50PM -0800, Max Filippov wrote: > > > > How should we synchronize our chan

Re: [PATCH v6 04/13] arm64/kvm: hide ptrauth from guests

2018-12-10 Thread Kristina Martsenko
On 10/12/2018 20:22, Richard Henderson wrote: > On 12/10/18 2:12 PM, Kristina Martsenko wrote: >> The plan was to disable trapping, yes. However, after that thread there >> was a retrospective change applied to the architecture, such that the >> XPACLRI (and XPACD/XPACI) instructions are no longer

Re: [PATCH v5 19/25] xtensa: define syscall_get_* functions

2018-12-10 Thread Dmitry V. Levin
On Mon, Dec 10, 2018 at 12:14:37PM -0800, Max Filippov wrote: > On Mon, Dec 10, 2018 at 4:53 AM Dmitry V. Levin wrote: > > On Sun, Dec 09, 2018 at 09:02:50PM -0800, Max Filippov wrote: > > > How should we synchronize our changes? > > > > No problem, I can revert to the previous edition of this pat

Re: [PATCH v6 04/13] arm64/kvm: hide ptrauth from guests

2018-12-10 Thread Richard Henderson
On 12/10/18 2:12 PM, Kristina Martsenko wrote: > The plan was to disable trapping, yes. However, after that thread there > was a retrospective change applied to the architecture, such that the > XPACLRI (and XPACD/XPACI) instructions are no longer trapped by > HCR_EL2.API. (The public documentation

Re: [GIT PULL] HID fixes

2018-12-10 Thread pr-tracker-bot
The pull request you sent on Mon, 10 Dec 2018 17:05:06 +0100 (CET): > git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git for-linus has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/f5d582777bcb1c7ff19a5a2343f66ea01de401c6 Thank you! -- Deet-doot-dot, I am a bot.

Re: [GIT PULL] ARM: SoC fixes

2018-12-10 Thread pr-tracker-bot
The pull request you sent on Sun, 9 Dec 2018 17:23:35 -0800: > git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc.git > tags/armsoc-fixes has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/1dffab5e98969087039fefa8cde4699c7353b71e Thank you! -- Deet-doot-dot, I a

Re: [GIT PULL] Backlight fixes for v4.20

2018-12-10 Thread pr-tracker-bot
The pull request you sent on Mon, 10 Dec 2018 15:51:43 +: > git://git.kernel.org/pub/scm/linux/kernel/git/lee/backlight.git > tags/backlight-fixes-4.20 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/9bb40f0108857ddb93e7480a7f38c1a9ad432e1d Thank you! -- Deet-do

Re: [PATCH v2 1/2] perf tools: Make find_vdso_map() more modular

2018-12-10 Thread Florian Fainelli
On 11/27/18 1:31 AM, Jiri Olsa wrote: > On Thu, Oct 25, 2018 at 10:55:07AM -0700, Florian Fainelli wrote: >> In preparation for checking that the vectors page on the ARM >> architecture, refactor the find_vdso_map() function to accept finding an >> arbitrary string and create a dedicated helper fun

Re: kvm: RDTSCP on AMD

2018-12-10 Thread Borislav Petkov
On Mon, Dec 10, 2018 at 05:47:25PM -0200, Eduardo Habkost wrote: > On Mon, Dec 10, 2018 at 07:41:53PM +0100, Borislav Petkov wrote: > > On Mon, Dec 10, 2018 at 04:37:30PM -0200, Eduardo Habkost wrote: > > > It isn't as simply as reverting commit 33b5e8c03ae7, but we can > > > surely re-add RDTSCP o

Re: [PATCH] pseries/hotplug: Add more delay in pseries_cpu_die while waiting for rtas-stop

2018-12-10 Thread Michael Bringmann
I have asked Scott Mayes to take a look at one of these crashes from the phyp side. I will let you know if he finds anything notable. Michael On 12/07/2018 08:40 PM, Thiago Jung Bauermann wrote: > > Gautham R Shenoy writes: >> On Fri, Dec 07, 2018 at 04:13:11PM +0530, Gautham R Shenoy wrote: >

Re: [PATCH 2/2] iio: adc: Add the TI ads124s08 ADC code

2018-12-10 Thread Dan Murphy
Jonathan Thanks for the review On 12/08/2018 05:56 AM, Jonathan Cameron wrote: > On Tue, 4 Dec 2018 11:59:55 -0600 > Dan Murphy wrote: > >> Introduce the TI ADS124S08 and the ADS124S06 ADC >> devices from TI. The ADS124S08 is the 12 channel ADC >> and the ADS124S06 is the 6 channel ADC device

Re: [PATCH v5 19/25] xtensa: define syscall_get_* functions

2018-12-10 Thread Max Filippov
On Mon, Dec 10, 2018 at 4:53 AM Dmitry V. Levin wrote: > On Sun, Dec 09, 2018 at 09:02:50PM -0800, Max Filippov wrote: > > How should we synchronize our changes? > > No problem, I can revert to the previous edition of this patch > that just adds syscall_get_arch. > Alternatively, you can just take

Re: [PATCH v6 04/13] arm64/kvm: hide ptrauth from guests

2018-12-10 Thread Kristina Martsenko
On 09/12/2018 14:53, Richard Henderson wrote: > On 12/7/18 12:39 PM, Kristina Martsenko wrote: >> From: Mark Rutland >> >> In subsequent patches we're going to expose ptrauth to the host kernel >> and userspace, but things are a bit trickier for guest kernels. For the >> time being, let's hide ptr

Re: [PATCH] ipv4: Fix potential Spectre v1 vulnerability

2018-12-10 Thread David Miller
From: "Gustavo A. R. Silva" Date: Mon, 10 Dec 2018 12:41:24 -0600 > vr.vifi is indirectly controlled by user-space, hence leading to > a potential exploitation of the Spectre variant 1 vulnerability. > > This issue was detected with the help of Smatch: > > net/ipv4/ipmr.c:1616 ipmr_ioctl() warn

Re: [PATCH] ksm: React on changing "sleep_millisecs" parameter faster

2018-12-10 Thread Cyrill Gorcunov
On Mon, Dec 10, 2018 at 07:06:18PM +0300, Kirill Tkhai wrote: > ksm thread unconditionally sleeps in ksm_scan_thread() > after each iteration: > > schedule_timeout_interruptible( > msecs_to_jiffies(ksm_thread_sleep_millisecs)) > > The timeout is configured in /sys/kernel/mm/ks

Re: [PATCH 17/18] mfd: wm8350-core: drop unused MODULE_ tags from non-modular code

2018-12-10 Thread Paul Gortmaker
[Re: [PATCH 17/18] mfd: wm8350-core: drop unused MODULE_ tags from non-modular code] On 10/12/2018 (Mon 06:38) Lee Jones wrote: > On Fri, 07 Dec 2018, Paul Gortmaker wrote: [...] > > Cc: Linus Walleij > > Cc: Lee Jones > > Cc: patc...@opensource.cirrus.com > > Acked-by: Linus Walleij > > Sig

[PATCH 1/2] ARM: dts: aspeed: Add KCS & lpc ctrl for Facebook

2018-12-10 Thread Vijay Khemka
Added kcs device and lpc ctrl device to enable LPC clock in Facebook Tiogapass device tree. Signed-off-by: Vijay Khemka --- .../dts/aspeed-bmc-facebook-tiogapass.dts | 30 +++ 1 file changed, 30 insertions(+) diff --git a/arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts

Re: [PATCH 2/2] fat: New macros to determine the FAT variant (32, 16 or 12)

2018-12-10 Thread Joe Perches
On Mon, 2018-12-10 at 14:41 -0500, Carmeli Tamir wrote: > This patch introduces 3 new macros - IS_FAT12, IS_FAT16 and IS_FAT32, > and replaces every occurrence in the code in which the FS variant (whether > this is FAT12, FAT16 or FAT32) was previously checked using > msdos_sb_info->fat_bits. Over

Re: [PATCH] userfaultfd: clear flag if remap event not enabled

2018-12-10 Thread Andrea Arcangeli
Hello, On Mon, Dec 10, 2018 at 07:51:16PM +0200, Mike Rapoport wrote: > On Mon, Dec 10, 2018 at 02:51:21PM +0800, Peter Xu wrote: > > When the process being tracked do mremap() without > > UFFD_FEATURE_EVENT_REMAP on the corresponding tracking uffd file > > handle, we should not generate the remap

Re: kvm: RDTSCP on AMD

2018-12-10 Thread Eduardo Habkost
On Mon, Dec 10, 2018 at 08:42:58PM +0100, Borislav Petkov wrote: > On Mon, Dec 10, 2018 at 05:06:00PM -0200, Eduardo Habkost wrote: > > I mean documenting it. We already have code that will print > > warnings if a feature isn't available. > > > > See my previous attempt to document the minimum ke

[PATCH 2/2] ARM: dts: aspeed: Add KCS support for LPC BMC

2018-12-10 Thread Vijay Khemka
Added kcs device support for lpc BMC. Signed-off-by: Vijay Khemka --- arch/arm/boot/dts/aspeed-g5.dtsi | 29 - 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/aspeed-g5.dtsi b/arch/arm/boot/dts/aspeed-g5.dtsi index d107459fc0f8..1bd4865

[PATCH] ARM: dts: aspeed: Add KCS support for LPC BMC

2018-12-10 Thread Vijay Khemka
Added kcs device support for lpc BMC. Signed-off-by: Vijay Khemka --- arch/arm/boot/dts/aspeed-g5.dtsi | 29 - 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/aspeed-g5.dtsi b/arch/arm/boot/dts/aspeed-g5.dtsi index d107459fc0f8..1bd4865

Re: [PATCH] usb: core: Remove unnecessary memset()

2018-12-10 Thread Alan Stern
On Tue, 4 Dec 2018, Suwan Kim wrote: > register_root_hub() calls memset() setting usb_dev->bus->devmap. > devicemap to 0 during hcd probe function (usb_hcd_pci_probe). But > in previous function which is also the procedure of usb_hcd_pci_probe(), > usb_bus_init() already initialized bus->devmap ca

Re: [PATCH] bonding: convert to DEFINE_SHOW_ATTRIBUTE

2018-12-10 Thread David Miller
From: Yangtao Li Date: Mon, 10 Dec 2018 11:08:45 -0500 > Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. > > Signed-off-by: Yangtao Li Applied.

Re: [PATCH] fjes: convert to DEFINE_SHOW_ATTRIBUTE

2018-12-10 Thread David Miller
From: Yangtao Li Date: Mon, 10 Dec 2018 10:57:38 -0500 > Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. > > Signed-off-by: Yangtao Li Applied.

Re: [PATCH] ieee802154: at86rf230: convert to DEFINE_SHOW_ATTRIBUTE

2018-12-10 Thread David Miller
From: Yangtao Li Date: Mon, 10 Dec 2018 10:46:03 -0500 > Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. > > Signed-off-by: Yangtao Li Applied.

Re: [PATCH] net: xenbus: convert to DEFINE_SHOW_ATTRIBUTE

2018-12-10 Thread David Miller
From: Yangtao Li Date: Mon, 10 Dec 2018 10:53:29 -0500 > Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. > > Signed-off-by: Yangtao Li Applied.

Re: use generic DMA mapping code in powerpc V4

2018-12-10 Thread Rui Salvaterra
On Mon, 10 Dec 2018 at 19:33, Christoph Hellwig wrote: > > On Mon, Dec 10, 2018 at 05:04:46PM +, Rui Salvaterra wrote: > > Hi, Christoph and Ben, > > > > It just came to my mind (and this is most likely a stupid question, > > but still)… Is there any possibility of these changes having an > >

Re: [PATCH net-next] ieee802154: ca8210: remove a dead branch

2018-12-10 Thread David Miller
From: YueHaibing Date: Mon, 10 Dec 2018 19:34:43 +0800 > Fix follwing gcc warning: > > drivers/net/ieee802154/ca8210.c:730:10: warning: > comparison is always false due to limited range of data type [-Wtype-limits] > > the variable 'len' is of type u8 and cannot greater than > CA8210_SPI_BUF_S

Re: [PATCH] l1tf: drop the swap storage limit restriction when l1tf=off

2018-12-10 Thread Michal Hocko
On Sun 09-12-18 21:46:57, Jiri Kosina wrote: > On Mon, 19 Nov 2018, Michal Hocko wrote: > > > > > > > + It also drops the swap size and > > > > > > available > > > > > > + RAM limit restriction. > > > > > > > > > > Minor nit: I think this shoul

Re: [PATCH 16/18] mfd: wm8350-i2c: Make it explicitly non-modular

2018-12-10 Thread Paul Gortmaker
[Re: [PATCH 16/18] mfd: wm8350-i2c: Make it explicitly non-modular] On 10/12/2018 (Mon 09:28) Charles Keepax wrote: > On Fri, Dec 07, 2018 at 03:11:03PM -0500, Paul Gortmaker wrote: [...] > > -static int wm8350_i2c_remove(struct i2c_client *i2c) > > -{ > > - struct wm8350 *wm8350 = i2c_get_cl

Re: [PATCH v2 1/2] swiotlb: add debugfs to track swiotlb buffer usage

2018-12-10 Thread Tim Chen
On 12/9/18 4:37 PM, Dongli Zhang wrote: > > diff --git a/kernel/dma/swiotlb.c b/kernel/dma/swiotlb.c > index 045930e..3979c2c 100644 > --- a/kernel/dma/swiotlb.c > +++ b/kernel/dma/swiotlb.c > @@ -35,6 +35,9 @@ > #include > #include > #include > +#ifdef CONFIG_DEBUG_FS > +#include > +#

[PATCH 10/12] x86/crypto: aesni: Introduce READ_PARTIAL_BLOCK macro

2018-12-10 Thread Dave Watson
Introduce READ_PARTIAL_BLOCK macro, and use it in the two existing partial block cases: AAD and the end of ENC_DEC. In particular, the ENC_DEC case should be faster, since we read by 8/4 bytes if possible. This macro will also be used to read partial blocks between enc_update and dec_update call

[PATCH 12/12] x86/crypto: aesni: Add scatter/gather avx stubs, and use them in C

2018-12-10 Thread Dave Watson
Add the appropriate scatter/gather stubs to the avx asm. In the C code, we can now always use crypt_by_sg, since both sse and asm code now support scatter/gather. Introduce a new struct, aesni_gcm_tfm, that is initialized on startup to point to either the SSE, AVX, or AVX2 versions of the four nec

[PATCH 07/12] x86/crypto: aesni: Merge avx precompute functions

2018-12-10 Thread Dave Watson
The precompute functions differ only by the sub-macros they call, merge them to a single macro. Later diffs add more code to fill in the gcm_context_data structure, this allows changes in a single place. Signed-off-by: Dave Watson --- arch/x86/crypto/aesni-intel_avx-x86_64.S | 76 +

[PATCH 11/12] x86/crypto: aesni: Introduce partial block macro

2018-12-10 Thread Dave Watson
Before this diff, multiple calls to GCM_ENC_DEC will succeed, but only if all calls are a multiple of 16 bytes. Handle partial blocks at the start of GCM_ENC_DEC, and update aadhash as appropriate. The data offset %r11 is also updated after the partial block. Signed-off-by: Dave Watson --- arc

[PATCH 09/12] x86/crypto: aesni: Move ghash_mul to GCM_COMPLETE

2018-12-10 Thread Dave Watson
Prepare to handle partial blocks between scatter/gather calls. For the last partial block, we only want to calculate the aadhash in GCM_COMPLETE, and a new partial block macro will handle both aadhash update and encrypting partial blocks between calls. Signed-off-by: Dave Watson --- arch/x86/cry

[PATCH 06/12] x86/crypto: aesni: Split AAD hash calculation to separate macro

2018-12-10 Thread Dave Watson
AAD hash only needs to be calculated once for each scatter/gather operation. Move it to its own macro, and call it from GCM_INIT instead of INITIAL_BLOCKS. Signed-off-by: Dave Watson --- arch/x86/crypto/aesni-intel_avx-x86_64.S | 228 ++- arch/x86/crypto/aesni-intel_glue.c

[PATCH 08/12] x86/crypto: aesni: Fill in new context data structures

2018-12-10 Thread Dave Watson
Fill in aadhash, aadlen, pblocklen, curcount with appropriate values. pblocklen, aadhash, and pblockenckey are also updated at the end of each scatter/gather operation, to be carried over to the next operation. Signed-off-by: Dave Watson --- arch/x86/crypto/aesni-intel_avx-x86_64.S | 51

[PATCH 05/12] x86/crypto: aesni: Add GCM_COMPLETE macro

2018-12-10 Thread Dave Watson
Merge encode and decode tag calculations in GCM_COMPLETE macro. Scatter/gather routines will call this once at the end of encryption or decryption. Signed-off-by: Dave Watson --- arch/x86/crypto/aesni-intel_avx-x86_64.S | 8 1 file changed, 8 insertions(+) diff --git a/arch/x86/crypto/

[PATCH 04/12] x86/crypto: aesni: support 256 byte keys in avx asm

2018-12-10 Thread Dave Watson
Add support for 192/256-bit keys using the avx gcm/aes routines. The sse routines were previously updated in e31ac32d3b (Add support for 192 & 256 bit keys to AESNI RFC4106). Instead of adding an additional loop in the hotpath as in e31ac32d3b, this diff instead generates separate versions of the

[PATCH 02/12] x86/crypto: aesni: Introduce gcm_context_data

2018-12-10 Thread Dave Watson
Add the gcm_context_data structure to the avx asm routines. This will be necessary to support both 256 bit keys and scatter/gather. The pre-computed HashKeys are now stored in the gcm_context_data struct, which is expanded to hold the greater number of hashkeys necessary for avx. Loads and stores

Re: [PATCH 2/2] Input: raspberrypi-ts - add devicetree binding documentation

2018-12-10 Thread Stefan Wahren
Hi Nicolas, please change your subject to something like this: dt-bindings: input: Add Raspberry Pi Touchscreen and also change the order of your patches. The binding always comes first. > Nicolas Saenz Julienne hat am 10. Dezember 2018 um > 17:30 geschrieben: > > > Adds device tree documen

[PATCH 03/12] x86/crypto: aesni: Macro-ify func save/restore

2018-12-10 Thread Dave Watson
Macro-ify function save and restore. These will be used in new functions added for scatter/gather update operations. Signed-off-by: Dave Watson --- arch/x86/crypto/aesni-intel_avx-x86_64.S | 94 +--- 1 file changed, 36 insertions(+), 58 deletions(-) diff --git a/arch/x86/cr

[PATCH 00/12] x86/crypto: gcmaes AVX scatter/gather support

2018-12-10 Thread Dave Watson
This patch set refactors the x86 aes/gcm AVX crypto routines to support true scatter/gather by adding gcm_enc/dec_update methods. It is similar to the previous SSE patchset starting at e1fd316f. Unlike the SSE routines, the AVX routines did not support keysize 192 & 256, this patchset also adds

[PATCH 01/12] x86/crypto: aesni: Merge GCM_ENC_DEC

2018-12-10 Thread Dave Watson
The GCM_ENC_DEC routines for AVX and AVX2 are identical, except they call separate sub-macros. Pass the macros as arguments, and merge them. This facilitates additional refactoring, by requiring changes in only one place. The GCM_ENC_DEC macro was moved above the CONFIG_AS_AVX* ifdefs, since it w

Re: [PATCH v4 1/5] cgroup: subtree_control bypass mode for bypassable controllers

2018-12-10 Thread Waiman Long
On 11/29/2018 06:18 AM, Dan Carpenter wrote: > Hi Waiman, > > Thank you for the patch! Perhaps something to improve: > > url: > https://github.com/0day-ci/linux/commits/Waiman-Long/cgroup-Introducing-bypass-mode/20181123-030552 > base: https://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup

Re: [PATCH net-next] ipvlan: Remove a useless comparison

2018-12-10 Thread David Miller
From: YueHaibing Date: Mon, 10 Dec 2018 19:25:38 +0800 > Fix following gcc warning: > > drivers/net/ipvlan/ipvlan_main.c:543:12: warning: > comparison is always false due to limited range of data type [-Wtype-limits] > > 'mode' is a u16 variable, IPVLAN_MODE_L2 is zero, > the comparison is alw

Re: [PATCH net] sctp: initialize sin6_flowinfo for ipv6 addrs in sctp_inet6addr_event

2018-12-10 Thread David Miller
From: Xin Long Date: Mon, 10 Dec 2018 18:00:52 +0800 > syzbot reported a kernel-infoleak, which is caused by an uninitialized > field(sin6_flowinfo) of addr->a.v6 in sctp_inet6addr_event(). > The call trace is as below: ... > sin6_flowinfo is not really used by SCTP, so it will be fixed by simply

Re: [PATCH v6 02/13] arm64: add pointer authentication register bits

2018-12-10 Thread Kristina Martsenko
On 09/12/2018 14:24, Richard Henderson wrote: > On 12/7/18 12:39 PM, Kristina Martsenko wrote: >> #define SCTLR_ELx_DSSBS (1UL << 44) >> +#define SCTLR_ELx_ENIA (1 << 31) > > 1U or 1UL lest you produce signed -0x8000. Thanks, this was setting all SCTLR bits above 31 as well... Now f

Re: [PATCH v4 3/7] mips: rename macros and files from '64' to 'n64'

2018-12-10 Thread Paul Burton
Hi Firoz, On Thu, Dec 06, 2018 at 10:48:24AM +0530, Firoz Khan wrote: > diff --git a/arch/mips/include/uapi/asm/sgidefs.h > b/arch/mips/include/uapi/asm/sgidefs.h > index 26143e3..0364eec 100644 > --- a/arch/mips/include/uapi/asm/sgidefs.h > +++ b/arch/mips/include/uapi/asm/sgidefs.h > @@ -40,6 +

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