Re: [PATCH] Use default .cfg file name for RTL8723BS devices with id of OBDA8723

2018-08-14 Thread Marcel Holtmann
Hi Ian, > For RTL8723BS devices the current config file name is a composite of > both the config name (rtl8723bs) and a postfix of the device-id. > > Given the majority of RTL8723BS devices use a device-id of OBDA8723 > this simplifies the config file name to use "rtl8723bs_config.bin" > as a def

Re: [PATCH] bluetooth: hci_h5: avoid unused variable warnings

2018-08-14 Thread Marcel Holtmann
Hi Arnd, > When CONFIG_BT_HCIUART_RTL is disabled, the hci_h5 driver produces a build > warning because of an incorrect set of #ifdef guards: > > drivers/bluetooth/hci_h5.c:920:22: error: 'rtl_vnd' defined but not used > [-Werror=unused-variable] > > Replacing the #ifdef with an IS_ENABLED() ch

Re: [PATCH] perf tools: Add struct ordered_events_buffer layer

2018-08-14 Thread Stephane Eranian
Jiri, On Mon, Aug 13, 2018 at 6:04 AM Jiri Olsa wrote: > > On Fri, Aug 10, 2018 at 01:54:31PM +0200, Jiri Olsa wrote: > > On Fri, Aug 10, 2018 at 01:21:18AM -0700, Stephane Eranian wrote: > > > On Thu, Aug 9, 2018 at 1:07 AM Jiri Olsa wrote: > > > > > > > > On Wed, Aug 08, 2018 at 03:33:20PM -070

Re: [PATCH] mmc: Move the mmc driver init earlier

2018-08-14 Thread Greg Kroah-Hartman
On Tue, Aug 14, 2018 at 02:39:59PM +0800, Feng Tang wrote: > Hi Greg, Ulf > > Could you help to review this? many thanks! Review what? I see no patch here. And why would I need to review a mmc patch in the middle of the merge window? totally confused, greg k-h

Re: Turris Omnia firmware possibilities [Was: Re: led: hw-trigger, global brightness and multi-colored leds]

2018-08-14 Thread Uwe Kleine-König
Hello Tomas, On 05/25/2018 04:02 PM, Tomas Hlavacek wrote: >> Talking about firmware, I wonder if there is firmware supported needed >> to solve >> https://wiki.debian.org/InstallingDebianOn/TurrisOmnia#Power_Management >> . Didn't look into that deeply yet and probably not high prio given that >>

Re: [PATCH] bluetooth: hci_h5: avoid unused variable warnings

2018-08-14 Thread Hans de Goede
Hi Arnd, On 14-08-18 00:04, Arnd Bergmann wrote: When CONFIG_BT_HCIUART_RTL is disabled, the hci_h5 driver produces a build warning because of an incorrect set of #ifdef guards: drivers/bluetooth/hci_h5.c:920:22: error: 'rtl_vnd' defined but not used [-Werror=unused-variable] Replacing the #i

Re: [PATCH 1/2] perf tools: Make check-headers.sh check based on kernel dir

2018-08-14 Thread Jiri Olsa
On Tue, Aug 14, 2018 at 11:47:39AM +1000, Michael Ellerman wrote: > Jiri Olsa writes: > > diff --git a/tools/perf/check-headers.sh b/tools/perf/check-headers.sh > > index ea48aa6f8d19..9d466e853aec 100755 > > --- a/tools/perf/check-headers.sh > > +++ b/tools/perf/check-headers.sh > > @@ -88,6 +88,

Re: [PATCH] Use default .cfg file name for RTL8723BS devices with id of OBDA8723

2018-08-14 Thread Hans de Goede
Hi, On 14-08-18 08:47, Ian W MORRISON wrote: For RTL8723BS devices the current config file name is a composite of both the config name (rtl8723bs) and a postfix of the device-id. Given the majority of RTL8723BS devices use a device-id of OBDA8723 this simplifies the config file name to use "rtl

RE: [PATCH 2/2] clk: imx: imx7d: remove clks_init_on array

2018-08-14 Thread Anson Huang
Hi, Peng Anson Huang Best Regards! > -Original Message- > From: Peng Fan > Sent: Monday, August 13, 2018 9:16 AM > To: Anson Huang ; shawn...@kernel.org; > s.ha...@pengutronix.de; ker...@pengutronix.de; Fabio Estevam > ; mturque...@baylibre.com; sb...@kernel.org; > linux-arm-ker...@lists

Re: [PATCH] mmc: Move the mmc driver init earlier

2018-08-14 Thread Feng Tang
Hi Greg, On Tue, Aug 14, 2018 at 09:18:34AM +0200, Greg Kroah-Hartman wrote: > On Tue, Aug 14, 2018 at 02:39:59PM +0800, Feng Tang wrote: > > Hi Greg, Ulf > > > > Could you help to review this? many thanks! > > Review what? I see no patch here. And why would I need to review a mmc > patch in t

Re: [PATCH] mmc: Move the mmc driver init earlier

2018-08-14 Thread Greg Kroah-Hartman
On Tue, Aug 14, 2018 at 03:38:10PM +0800, Feng Tang wrote: > Hi Greg, > > On Tue, Aug 14, 2018 at 09:18:34AM +0200, Greg Kroah-Hartman wrote: > > On Tue, Aug 14, 2018 at 02:39:59PM +0800, Feng Tang wrote: > > > Hi Greg, Ulf > > > > > > Could you help to review this? many thanks! > > > > Review w

[PATCH v2] ARM: dts: spear: fix stmpe811 interrupt properties

2018-08-14 Thread Marcel Ziswiler
From: Marcel Ziswiler The property "irq-over-gpio" simply does not exist (this is nowadays actually auto detected) and the property "irq-gpios" is actually called "irq-gpio". Signed-off-by: Marcel Ziswiler --- Changes in v2: - Fix commit message as pointed out by Viresh. arch/arm/boot/dts/s

general protection fault in kvm_ioapic_scan_entry

2018-08-14 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:1c2f2531cf8b Add linux-next specific files for 20180809 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=16016cf840 kernel config: https://syzkaller.appspot.com/x/.config?x=44657afb75515c8b dashb

[PATCH] arm64: lib: use c string functions for KASAN support

2018-08-14 Thread Kyeongdon Kim
Assembly optimized string functions cannot detect KASan bug. This might have been the intention of the original author. (not too much important to catch) But, I found the obvious uaf problem in strcmp() function. - in this case, using 32bit KASan patchset helps Since I used c string function, I

Re: [PATCH] bitfield: avoid gcc-8 -Wint-in-bool-context warning

2018-08-14 Thread Johannes Berg
On Tue, 2018-08-14 at 08:57 +0900, Masahiro Yamada wrote: > 2018-08-14 7:09 GMT+09:00 Arnd Bergmann : > > Passing an enum into FIELD_GET() produces a long but harmless warning on > > newer compilers: > > > > from include/linux/linkage.h:7, > > from include/linux/k

Re: [PATCH] mmc: Move the mmc driver init earlier

2018-08-14 Thread Feng Tang
Hi Greg, Thanks for the prompt review. On Tue, Aug 14, 2018 at 09:40:41AM +0200, Greg Kroah-Hartman wrote: > On Tue, Aug 14, 2018 at 03:38:10PM +0800, Feng Tang wrote: > > Hi Greg, > > > > On Tue, Aug 14, 2018 at 09:18:34AM +0200, Greg Kroah-Hartman wrote: > > > On Tue, Aug 14, 2018 at 02:39:59P

Re: [PATCH v2] ASoC: wm9712: fix replace codec to component

2018-08-14 Thread Charles Keepax
On Tue, Aug 14, 2018 at 12:35:56AM +0200, Marcel Ziswiler wrote: > From: Marcel Ziswiler > > Since commit 143b44845d87 ("ASoC: wm9712: replace codec to component") > "wm9712-codec" got renamed to "wm9712-component", however, this change > never got propagated down to the actual board/platform dri

linux-next: Tree for Aug 14

2018-08-14 Thread Stephen Rothwell
Hi all, Please do not add any v4.20 material to your linux-next included branches until after v4.19-rc1 has been released. Changes since 20180813: Non-merge commits (relative to Linus' tree): 12053 10771 files changed, 512108 insertions(+), 210583 deletions(-) -

[PATCH 2/2] bcache: add undef for macro in function

2018-08-14 Thread Dongbo Cao
add undef for macro d_strtoul,d_strtoul_nonzero and d_strtoi_h Signed-off-by: Dongbo Cao --- drivers/md/bcache/sysfs.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/md/bcache/sysfs.c b/drivers/md/bcache/sysfs.c index 225b15aa..ed67a290 100644 --- a/drivers/md/bcache/sysfs.c +++

Re: [PATCH 1/3] arm64: implement ftrace with regs

2018-08-14 Thread Julien Thierry
On 14/08/18 03:03, Steven Rostedt wrote: On Mon, 13 Aug 2018 11:54:06 +0100 Julien Thierry wrote: --- a/arch/arm64/Makefile +++ b/arch/arm64/Makefile @@ -78,6 +78,15 @@ ifeq ($(CONFIG_ARM64_MODULE_PLTS),y) KBUILD_LDFLAGS_MODULE+= -T $(srctree)/arch/arm64/kernel/module.lds endi

Re: [PATCH] mmc: Move the mmc driver init earlier

2018-08-14 Thread Greg Kroah-Hartman
On Tue, Aug 14, 2018 at 04:08:51PM +0800, Feng Tang wrote: > Hi Greg, > > Thanks for the prompt review. > > On Tue, Aug 14, 2018 at 09:40:41AM +0200, Greg Kroah-Hartman wrote: > > On Tue, Aug 14, 2018 at 03:38:10PM +0800, Feng Tang wrote: > > > Hi Greg, > > > > > > On Tue, Aug 14, 2018 at 09:18:

Re: [PATCH] bluetooth: hci_h5: avoid unused variable warnings

2018-08-14 Thread Arnd Bergmann
On Tue, Aug 14, 2018 at 9:22 AM Hans de Goede wrote: > > Hi Arnd, > > On 14-08-18 00:04, Arnd Bergmann wrote: > > When CONFIG_BT_HCIUART_RTL is disabled, the hci_h5 driver produces a build > > warning because of an incorrect set of #ifdef guards: > > > > drivers/bluetooth/hci_h5.c:920:22: error: '

Re: [PATCH v9 04/22] s390/zcrypt: Integrate ap_asm.h into include/asm/ap.h.

2018-08-14 Thread Cornelia Huck
On Mon, 13 Aug 2018 17:48:01 -0400 Tony Krowiak wrote: > From: Harald Freudenberger > > Move all the inline functions from the ap bus header > file ap_asm.h into the in-kernel api header file > arch/s390/include/asm/ap.h so that KVM can make use > of all the low level AP functions. > > Signed-

Re: [PATCH] bitfield: avoid gcc-8 -Wint-in-bool-context warning

2018-08-14 Thread Arnd Bergmann
On Tue, Aug 14, 2018 at 9:57 AM Johannes Berg wrote: > On Tue, 2018-08-14 at 08:57 +0900, Masahiro Yamada wrote: > > 2018-08-14 7:09 GMT+09:00 Arnd Bergmann : > > > drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c:1025:21: note: in expansion > > > of macro 'FIELD_GET' > > > le16_encode_bits(FIE

[PATCH] perf auxtrace: Fix queue resize

2018-08-14 Thread Adrian Hunter
When the number of queues grows beyond 32, the array of queues is resized but not all members were being copied. Fix by also copying 'tid', 'cpu' and 'set'. Fixes: e502789302a6e ("perf auxtrace: Add helpers for queuing AUX area tracing data") Cc: sta...@vger.kernel.org Signed-off-by: Adrian Hunte

Re: [PATCH] mm: migration: fix migration of huge PMD shared pages

2018-08-14 Thread Kirill A. Shutemov
On Mon, Aug 13, 2018 at 11:21:41PM +, Mike Kravetz wrote: > On 08/13/2018 03:58 AM, Kirill A. Shutemov wrote: > > On Sun, Aug 12, 2018 at 08:41:08PM -0700, Mike Kravetz wrote: > >> The page migration code employs try_to_unmap() to try and unmap the > >> source page. This is accomplished by usi

Re: [PATCH v9 05/22] KVM: s390: vsie: simulate VCPU SIE entry/exit

2018-08-14 Thread Cornelia Huck
On Mon, 13 Aug 2018 17:48:02 -0400 Tony Krowiak wrote: > From: David Hildenbrand > > VCPU requests and VCPU blocking right now don't take care of the vSIE > (as it was not necessary until now). But we want to have VCPU requests > that will also be handled before running the vSIE again. > > So

Re: [PATCH v8 3/6] Uprobes: Support SDT markers having reference count (semaphore)

2018-08-14 Thread Ravi Bangoria
> +static int delayed_uprobe_install(struct vm_area_struct *vma) > +{ > + struct list_head *pos, *q; > + struct delayed_uprobe *du; > + unsigned long vaddr; > + int ret = 0, err = 0; > + > + mutex_lock(&delayed_uprobe_lock); > + list_for_each_safe(pos, q, &delayed_uprobe_l

Re: [PATCH] spi: spi-geni-qcom: Add SPI driver support for GENI based QUP

2018-08-14 Thread dkota
On 2018-08-10 22:16, Mark Brown wrote: On Fri, Aug 10, 2018 at 09:59:46PM +0530, dk...@codeaurora.org wrote: Now the need is, how to communicate the SPI controller maximum frequency to SPI core framework? Is it by DTSI entry or hardcoding in the SPI controller driver? If you've got a limit t

Re: [PATCH] arm64: lib: use c string functions for KASAN support

2018-08-14 Thread Andrey Ryabinin
On 08/14/2018 10:55 AM, Kyeongdon Kim wrote: > Assembly optimized string functions cannot detect KASan bug. > This might have been the intention of the original author. > (not too much important to catch) > > But, I found the obvious uaf problem in strcmp() function. > - in this case, using 32

[PATCH v2] clk: tegra: probe deferral error reporting

2018-08-14 Thread Marcel Ziswiler
From: Marcel Ziswiler Actually report the error code from devm_regulator_get() which may as well just be a probe deferral. Signed-off-by: Marcel Ziswiler --- Changes in v2: - Silence probe deferral as discussed between Peter, Stefan and Stephen. - Fix line over 80 characters as reported by ch

[PATCH 1/2] x86: apm: mark proc_apm_show as __maybe_unused

2018-08-14 Thread Arnd Bergmann
A new build error appeared with CONFIG_PROC_FS disabled: arch/x86/kernel/apm_32.c:1643:12: error: 'proc_apm_show' defined but not used [-Werror=unused-function] This marks the function as __maybe_unused to let the compiler drop it silently. Fixes: 3f3942aca6da ("proc: introduce proc_create_sing

[PATCH 2/2] ARM: rpc: mark ecard_devices_proc_show as __maybe_unused

2018-08-14 Thread Arnd Bergmann
A new build error appeared with CONFIG_PROC_FS disabled: arch/arm/mach-rpc/ecard.c:646:12: error: 'ecard_devices_proc_show' defined but not used [-Werror=unused-function] This marks the function as __maybe_unused to let the compiler drop it silently. Fixes: 3f3942aca6da ("proc: introduce proc_c

Re: [PATCH v5 2/2] rtc: omap: Cut down the shutdown time from 2 seconds to 1 sec

2018-08-14 Thread Johan Hovold
On Wed, Jul 25, 2018 at 11:21:22AM +0530, Keerthy wrote: > Cut down the shutdown time from 2 seconds to 1 sec. In case of roll > over try again. > > Signed-off-by: Keerthy > --- > > Changes in v5: > > * Added an additional check to see if ALARM2 status is not set > before retrying. > *

Re: [PATCH RESEND RFC 2/4] drivers: pinctrl: qcom: add wakeup gpio map for sdm845

2018-08-14 Thread Marc Zyngier
On 13/08/18 20:41, Lina Iyer wrote: > On Wed, Aug 01 2018 at 14:04 -0600, Lina Iyer wrote: >> On Wed, Aug 01 2018 at 02:42 -0600, Marc Zyngier wrote: >>> On Wed, 01 Aug 2018 03:00:19 +0100, >>> Lina Iyer wrote: Add GPIO to PDC pin map for the SDM845 SoC. Signed-off-by: Lina Iye

Re: [PATCH v5 2/2] rtc: omap: Cut down the shutdown time from 2 seconds to 1 sec

2018-08-14 Thread Johan Hovold
On Wed, Jul 25, 2018 at 11:30:18AM +0200, Alexandre Belloni wrote: > Hi, > > On 25/07/2018 11:21:22+0530, Keerthy wrote: > > Cut down the shutdown time from 2 seconds to 1 sec. In case of roll > > over try again. > > > > Signed-off-by: Keerthy > > static void omap_rtc_power_off(void) > > @@ -4

Re: [PATCH v2 1/3] mm/memory-hotplug: Drop unused args from remove_memory_section

2018-08-14 Thread David Hildenbrand
On 13.08.2018 17:46, osalva...@techadventures.net wrote: > From: Oscar Salvador > > unregister_memory_section() calls remove_memory_section() > with three arguments: > > * node_id > * section > * phys_device > > Neither node_id nor phys_device are used. > Let us drop them from the function. >

Re: [PATCH v2 2/3] mm/memory_hotplug: Drop mem_blk check from unregister_mem_sect_under_nodes

2018-08-14 Thread David Hildenbrand
On 13.08.2018 17:46, osalva...@techadventures.net wrote: > From: Oscar Salvador > > Before calling to unregister_mem_sect_under_nodes(), > remove_memory_section() already checks if we got a valid > memory_block. > > No need to check that again in unregister_mem_sect_under_nodes(). > > Signed-of

Re: [PATCH] bitfield: avoid gcc-8 -Wint-in-bool-context warning

2018-08-14 Thread Masahiro Yamada
2018-08-14 16:56 GMT+09:00 Johannes Berg : > On Tue, 2018-08-14 at 08:57 +0900, Masahiro Yamada wrote: >> 2018-08-14 7:09 GMT+09:00 Arnd Bergmann : >> > Passing an enum into FIELD_GET() produces a long but harmless warning on >> > newer compilers: >> > >> > from include/linux/linka

Re: [PATCH v5 2/2] rtc: omap: Cut down the shutdown time from 2 seconds to 1 sec

2018-08-14 Thread Keerthy
On Wednesday 25 July 2018 03:00 PM, Alexandre Belloni wrote: > Hi, > > On 25/07/2018 11:21:22+0530, Keerthy wrote: >> Cut down the shutdown time from 2 seconds to 1 sec. In case of roll >> over try again. >> >> Signed-off-by: Keerthy >> --- >> >> Changes in v5: >> >> * Added an additional ch

Re: [PATCH v2 2/3] mm/memory_hotplug: Drop mem_blk check from unregister_mem_sect_under_nodes

2018-08-14 Thread Oscar Salvador
On Tue, Aug 14, 2018 at 11:30:51AM +0200, David Hildenbrand wrote: > > While it is correct in current code, I wonder if this sanity check > should stay. I would completely agree if it would be a static function. Hi David, Well, unregister_mem_sect_under_nodes() __only__ gets called from remove

Re: [PATCH v2 3/3] mm/memory_hotplug: Refactor unregister_mem_sect_under_nodes

2018-08-14 Thread David Hildenbrand
On 13.08.2018 17:46, osalva...@techadventures.net wrote: > From: Oscar Salvador > > unregister_mem_sect_under_nodes() tries to allocate a nodemask_t > in order to check whithin the loop which nodes have already been unlinked, > so we do not repeat the operation on them. > > NODEMASK_ALLOC calls

Re: [PATCH RFC 1/3] cgroup: list all subsystem states in debugfs files

2018-08-14 Thread Konstantin Khlebnikov
On 13.08.2018 20:53, Roman Gushchin wrote: On Mon, Aug 13, 2018 at 01:11:19PM -0400, Johannes Weiner wrote: On Mon, Aug 13, 2018 at 06:48:42AM -0700, Tejun Heo wrote: Hello, Konstantin. On Mon, Aug 13, 2018 at 09:58:05AM +0300, Konstantin Khlebnikov wrote: After removing cgroup subsystem stat

Re: [PATCH v2 2/3] mm/memory_hotplug: Drop mem_blk check from unregister_mem_sect_under_nodes

2018-08-14 Thread David Hildenbrand
On 14.08.2018 11:36, Oscar Salvador wrote: > On Tue, Aug 14, 2018 at 11:30:51AM +0200, David Hildenbrand wrote: > >> >> While it is correct in current code, I wonder if this sanity check >> should stay. I would completely agree if it would be a static function. > > Hi David, > > Well, unregister

Re: [PATCH] mmc: Move the mmc driver init earlier

2018-08-14 Thread Feng Tang
Hi Greg, On Tue, Aug 14, 2018 at 10:42:41AM +0200, Greg Kroah-Hartman wrote: > On Tue, Aug 14, 2018 at 04:08:51PM +0800, Feng Tang wrote: > > Hi Greg, > > > > Thanks for the prompt review. > > > > On Tue, Aug 14, 2018 at 09:40:41AM +0200, Greg Kroah-Hartman wrote: > > > On Tue, Aug 14, 2018 at 0

Re: [PATCH v2 3/3] mm/memory_hotplug: Refactor unregister_mem_sect_under_nodes

2018-08-14 Thread Oscar Salvador
On Tue, Aug 14, 2018 at 11:39:34AM +0200, David Hildenbrand wrote: > On 13.08.2018 17:46, osalva...@techadventures.net wrote: > > From: Oscar Salvador > > While at it, we can also drop the node_online() check, as a node can only be > > offline if all the memory/cpus associated with it have been re

Re: [PATCH v5 2/2] rtc: omap: Cut down the shutdown time from 2 seconds to 1 sec

2018-08-14 Thread Keerthy
On Tuesday 14 August 2018 02:53 PM, Johan Hovold wrote: > On Wed, Jul 25, 2018 at 11:21:22AM +0530, Keerthy wrote: >> Cut down the shutdown time from 2 seconds to 1 sec. In case of roll >> over try again. >> >> Signed-off-by: Keerthy >> --- >> >> Changes in v5: >> >> * Added an additional che

RE: [PATCH] bitfield: avoid gcc-8 -Wint-in-bool-context warning

2018-08-14 Thread David Laight
From: Johannes Berg > Sent: 14 August 2018 08:57 ... > > How about fixing the root cause > > in drivers/net/wireless/intel/iwlwifi/fw/api/rx.h ? > > > > > > #define IWL_RX_HE_PHY_SIBG_SYM_OR_USER_NUM_MASK 0x1eULL > > > > > > enum iwl_rx_he_phy looks really strange. > > Why? I don't think

Re: [PATCH v2 2/3] mm/memory_hotplug: Drop mem_blk check from unregister_mem_sect_under_nodes

2018-08-14 Thread Oscar Salvador
On Tue, Aug 14, 2018 at 11:44:50AM +0200, David Hildenbrand wrote: > > Yes I know, as I said, if it would be local to a file I would not care. > Making this functions never return an error is nice, though (and as you > noted, the return value is never checked). > > I am a friend of stating which

Re: [PATCH v2 2/3] mm/memory_hotplug: Drop mem_blk check from unregister_mem_sect_under_nodes

2018-08-14 Thread David Hildenbrand
On 14.08.2018 12:06, Oscar Salvador wrote: > On Tue, Aug 14, 2018 at 11:44:50AM +0200, David Hildenbrand wrote: >> >> Yes I know, as I said, if it would be local to a file I would not care. >> Making this functions never return an error is nice, though (and as you >> noted, the return value is neve

Re: [PATCH] ACPICA: Clear status of all events when entering sleep states

2018-08-14 Thread Rafael J. Wysocki
On Monday, August 13, 2018 7:15:19 PM CEST Schmauss, Erik wrote: > > > -Original Message- > > From: linux-acpi-ow...@vger.kernel.org [mailto:linux-acpi- > > ow...@vger.kernel.org] On Behalf Of Rafael J. Wysocki > > Sent: Sunday, August 12, 2018 3:50 AM > > To: Linux ACPI > > Cc: Paul Menz

Re: [PATCH v3 15/17] driver/cpufreq: enable Hygon support to cpufreq driver

2018-08-14 Thread Rafael J. Wysocki
On Monday, August 13, 2018 6:22:16 PM CEST Pu Wen wrote: > On 2018/8/12 17:55, Rafael J. Wysocki wrote: > > On Sat, Aug 11, 2018 at 3:36 PM Pu Wen wrote: > >> > >> Enable ACPI cpufreq driver support for Hygon by adding family ID check > >> along with AMD. > >> > >> As Hygon platforms have SMBus de

Re: [PATCH v3 15/17] driver/cpufreq: enable Hygon support to cpufreq driver

2018-08-14 Thread Rafael J. Wysocki
On Saturday, August 11, 2018 3:29:52 PM CEST Pu Wen wrote: > Enable ACPI cpufreq driver support for Hygon by adding family ID check > along with AMD. > > As Hygon platforms have SMBus device(PCI device ID 0x790b), enable Hygon > support to function amd_freq_sensitivity_init(). > > Signed-off-by:

[GIT PULL] Power management updates for v4.19-rc1

2018-08-14 Thread Rafael J. Wysocki
Hi Linus, Please pull from the tag git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-4.19-rc1 with top-most commit 7425ecd5e3e8c9d84f399a102282a23a90a19278 Merge branch 'pm-cpufreq' on top of commit 9b7c19e96cededec6b0435933adefbd56cad37ab Merge branch 'pm-tools' to

[GIT PULL] ACPI updates for v4.19-rc1

2018-08-14 Thread Rafael J. Wysocki
Hi Linus, Please pull from the tag git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ acpi-4.19-rc1 with top-most commit 76f7d6c07acd7a694ccc97355d37637f6677de51 Merge branches 'acpi-button', 'acpi-battery' and 'acpi-osi' on top of commit 1ffaddd029c867d134a1dde39f540dcc8c5

Re: [PATCH 4/5] perf/hw_breakpoint: Enable breakpoint in modify_user_hw_breakpoint

2018-08-14 Thread Oleg Nesterov
On 08/10, Jiri Olsa wrote: > > --- a/kernel/events/hw_breakpoint.c > +++ b/kernel/events/hw_breakpoint.c > @@ -523,13 +523,11 @@ int modify_user_hw_breakpoint(struct perf_event *bp, > struct perf_event_attr *att > perf_event_disable(bp); > > err = modify_user_hw_breakpoint_ch

Re: [PATCH 5/5] perf/hw_breakpoint: Simplify breakpoint enable in perf_event_modify_breakpoint

2018-08-14 Thread Oleg Nesterov
On 08/10, Jiri Olsa wrote: > > --- a/kernel/events/core.c > +++ b/kernel/events/core.c > @@ -2867,16 +2867,11 @@ static int perf_event_modify_breakpoint(struct > perf_event *bp, > _perf_event_disable(bp); > > err = modify_user_hw_breakpoint_check(bp, attr, true); > - if (err) { >

[PATCH v5] cpuidle: menu: Handle stopped tick more aggressively

2018-08-14 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Commit 87c9fe6ee495 (cpuidle: menu: Avoid selecting shallow states with stopped tick) missed the case when the target residencies of deep idle states of CPUs are above the tick boundary which may cause the CPU to get stuck in a shallow idle state for a long time. Say ther

[PATCH v3 0/2] arm64: dts: meson-g12a: Introduce new DT files for Meson-G12A SoC

2018-08-14 Thread Jianxin Pan
This attempt will try to add new DT files to support Meson-G12A SoC. 1) first, Please notice that, in this patch series, the DT node about 16M reserved memory for hwrom is removed, since it's not needed by G12A SoC. 2) second, the pclk for uart_AO need to be fixed once G12A clock_ao driver is mer

[PATCH v3 2/2] arm64: dts: meson-g12a: add initial g12a s905d2 SoC DT support

2018-08-14 Thread Jianxin Pan
Try to add basic DT support for the Amlogic's Meson-G12A S905D2 SoC, which describe components as follows: Reserve Memory, CPU, GIC, IRQ, Timer, UART. It's capable of booting up into the serial console. Signed-off-by: Jianxin Pan --- arch/arm64/boot/dts/amlogic/Makefile| 1 + arch/

[PATCH v3 1/2] dt-bindings: arm: amlogic: Add Meson G12A binding

2018-08-14 Thread Jianxin Pan
Introduce new bindings for the Meson G12A SoC Signed-off-by: Jianxin Pan Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/arm/amlogic.txt | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/amlogic.txt b/Documentation/devicetree/binding

Re: [RFC PATCH v4 1/2] drm: Add generic colorkey properties for display planes

2018-08-14 Thread Daniel Vetter
On Tue, Aug 14, 2018 at 12:48:08PM +0300, Laurent Pinchart wrote: > Hi Dmitry, > > Thank you for the patch. > > On Tuesday, 7 August 2018 20:22:01 EEST Dmitry Osipenko wrote: > > From: Laurent Pinchart > > > > Color keying is the action of replacing pixels matching a given color > > (or range o

Re: [PATCH] arm64: mm: check for upper PAGE_SHIFT bits in pfn_valid()

2018-08-14 Thread Will Deacon
Hi Greg, On Mon, Aug 13, 2018 at 12:30:11PM -0700, Greg Hackmann wrote: > ARM64's pfn_valid() shifts away the upper PAGE_SHIFT bits of the input > before seeing if the PFN is valid. This leads to false positives when > some of the upper bits are set, but the lower bits match a valid PFN. > > For

Re: [PATCH 1/2] dt-bindings: PCI: meson: add DT bindings for Amlogic Meson PCIe controller

2018-08-14 Thread Jerome Brunet
On Tue, 2018-08-14 at 02:18 -0400, Hanjie Lin wrote: > From: Yue Wang > > The Amlogic Meson PCIe host controller is based on the Synopsys DesignWare > PCI core. This patch adds documentation for the DT bindings in Meson PCIe > controller. > > Signed-off-by: Yue Wang > Signed-off-by: Hanjie Lin

Re: [PATCH 2/2] PCI: meson: add the Amlogic Meson PCIe controller driver

2018-08-14 Thread Jerome Brunet
On Tue, 2018-08-14 at 02:18 -0400, Hanjie Lin wrote: > From: Yue Wang > > The Amlogic Meson PCIe host controller is based on the Synopsys DesignWare > PCI core. This patch adds the driver support for Meson PCIe controller. > > Signed-off-by: Yue Wang > Signed-off-by: Hanjie Lin > --- > driver

[PATCH] cpuidle: menu: Fix white space

2018-08-14 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Fix some damaged white space in menu_select(). Signed-off-by: Rafael J. Wysocki --- drivers/cpuidle/governors/menu.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Index: linux-pm/drivers/cpuidle/governors/menu.c ==

Re: [PATCH 2/2] PCI: meson: add the Amlogic Meson PCIe phy driver

2018-08-14 Thread Jerome Brunet
On Tue, 2018-08-14 at 02:12 -0400, Hanjie Lin wrote: > From: Yue Wang > > The Meson-PCIE-PHY controller supports the 5-Gbps data rate > of the PCI Express Gen 2 specification and is backwardcompatible > with the 2.5-Gbps Gen 1.1 specification with only > inferred idle detection supported on AMLOG

Re: [PATCH v9 08/22] s390: vfio-ap: base implementation of VFIO AP device driver

2018-08-14 Thread Cornelia Huck
On Mon, 13 Aug 2018 17:48:05 -0400 Tony Krowiak wrote: > diff --git a/drivers/s390/crypto/vfio_ap_drv.c > b/drivers/s390/crypto/vfio_ap_drv.c > new file mode 100644 > index 000..5069580 > --- /dev/null > +++ b/drivers/s390/crypto/vfio_ap_drv.c > @@ -0,0 +1,118 @@ > +// SPDX-License-Identifi

Re: [PATCH 1/2] kconfig: report recursive dependency involving 'imply'

2018-08-14 Thread Dirk Gouders
Masahiro Yamada writes: > Currently, Kconfig does not report anything about the recursive > dependency where 'imply' keywords are involved. > > [Test Code] > > config A > bool "a" > > config B > bool "b" > imply A > depends on A Hello Masahiro, obviou

[PATCH v2] ia64: Use ARRAY_SIZE to replace its implementation

2018-08-14 Thread zhong jiang
We prefer to ARRAY_SIZE rather than duplicating its implementation. And just one place use the #define variable, therefore, remove PFM_CMD_COUNT definition altogether. Signed-off-by: zhong jiang --- v1->v2: - According to Joe's suggestion. remove the #define variable, and use ARRAY_SIZE t

[PATCH] fix ifnullfree.cocci warnings

2018-08-14 Thread Julia Lawall
From: kbuild test robot NULL check before some freeing functions is not needed. Based on checkpatch warning "kfree(NULL) is safe this check is probably not required" and kfreeaddr.cocci by Julia Lawall. Generated by: scripts/coccinelle/free/ifnullfree.cocci Fixes: 0099cc17a399 ("ASoC:topol

Re: [Regression] usb: xhci: Add XHCI_TRUST_TX_LENGTH for Renesas uPD720201

2018-08-14 Thread Daniel Thompson
On Fri, Aug 10, 2018 at 12:13:53PM -0400, Joseph Salisbury wrote: > Hi Daniel, > > A kernel bug report was opened against Ubuntu [0].  It was found the > following patch introduced the regression: > > da9970668948 ("usb: xhci: Add XHCI_TRUST_TX_LENGTH for Renesas uPD720201") I can see nothing in

Re: [PATCH] bitfield: avoid gcc-8 -Wint-in-bool-context warning

2018-08-14 Thread Arnd Bergmann
On Tue, Aug 14, 2018 at 12:04 PM David Laight wrote: > > From: Johannes Berg > > Sent: 14 August 2018 08:57 > ... > > > How about fixing the root cause > > > in drivers/net/wireless/intel/iwlwifi/fw/api/rx.h ? > > > > > > > > > #define IWL_RX_HE_PHY_SIBG_SYM_OR_USER_NUM_MASK 0x1eULL > >

Re: [PATCH] bitfield: avoid gcc-8 -Wint-in-bool-context warning

2018-08-14 Thread Johannes Berg
On Tue, 2018-08-14 at 13:08 +0200, Arnd Bergmann wrote: > > It would be much more useful to indicate where the values are used. > > Such a field/parameter could (probably) have the type of the enum. > > But, at some point, the compiler might start barfing at that at well. > > I think the compiler

Re: [PATCH v9 09/22] s390: vfio-ap: register matrix device with VFIO mdev framework

2018-08-14 Thread Cornelia Huck
On Mon, 13 Aug 2018 17:48:06 -0400 Tony Krowiak wrote: > From: Tony Krowiak > > Registers the matrix device created by the VFIO AP device > driver with the VFIO mediated device framework. > Registering the matrix device will create the sysfs > structures needed to create mediated matrix devices

Re: [PATCH v3 02/14] sched/core: uclamp: map TASK's clamp values into CPU's clamp groups

2018-08-14 Thread Pavan Kondeti
On Mon, Aug 06, 2018 at 05:39:34PM +0100, Patrick Bellasi wrote: > Utilization clamping requires each CPU to know which clamp values are > assigned to tasks that are currently RUNNABLE on that CPU. > Multiple tasks can be assigned the same clamp value and tasks with > different clamp values can be

[PATCH 5/7] drivers: misc: ad525x_dpot: Update MODULE AUTHOR email address

2018-08-14 Thread michael.hennerich
From: Michael Hennerich no functional changes Signed-off-by: Michael Hennerich --- drivers/misc/ad525x_dpot-i2c.c | 2 +- drivers/misc/ad525x_dpot-spi.c | 2 +- drivers/misc/ad525x_dpot.c | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/misc/ad525x_dpot-i2

[PATCH 7/7] drivers: mfd: adp5520: Update MODULE AUTHOR email address

2018-08-14 Thread michael.hennerich
From: Michael Hennerich no functional changes Signed-off-by: Michael Hennerich --- drivers/mfd/adp5520.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/adp5520.c b/drivers/mfd/adp5520.c index d817f20..be0497b 100644 --- a/drivers/mfd/adp5520.c +++ b/drivers/mfd

[GIT PULL] arm64: updates for 4.19

2018-08-14 Thread Will Deacon
Hi Linus, Please pull these arm64 updates for 4.19. Details in the tag, but please be aware that we've pulled in the x86/mm branch from -tip so that we can make use of the core ioremap changes which allow us to put down huge mappings in the vmalloc area without screwing up the TLB. Much of the pos

Re: [PATCH V4 4/7] mmc: sdhci: add 32-bit block count support for v4 mode

2018-08-14 Thread Adrian Hunter
On 07/08/18 04:58, Jason Wu (吴霁爽) wrote: >   > > According the information of following picture, in this case I think, we > just have 2 choice in sdio v4.1: > > 1 do not define SDHCI_AUTO_CMD23: argument of cmd23 will define in register > 0x8(Argument register) That would only need to be done fo

Re: [PATCH 2/2] PCI: meson: add the Amlogic Meson PCIe controller driver

2018-08-14 Thread kbuild test robot
/commits/Hanjie-Lin/dt-bindings-PCI-meson-add-DT-bindings-for-Amlogic-Meson-PCIe-controller/20180814-180019 base: https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git next coccinelle warnings: (new ones prefixed by >>) >> drivers/pci/controller/dwc/pci-meson.c:121:

[PATCH] PCI: meson: fix ptr_ret.cocci warnings

2018-08-14 Thread kbuild test robot
From: kbuild test robot drivers/pci/controller/dwc/pci-meson.c:121:1-3: WARNING: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci Fixes: b43bb00f7533 ("PCI: meson: add the Amlogic Meson PCIe controller d

Re: [PATCH v3 0/2] arm64: dts: meson-g12a: Introduce new DT files for Meson-G12A SoC

2018-08-14 Thread Jerome Brunet
On Tue, 2018-08-14 at 18:38 +0800, Jianxin Pan wrote: > This attempt will try to add new DT files to support Meson-G12A SoC. > > 1) first, Please notice that, in this patch series, the DT node about 16M > reserved > memory for hwrom is removed, since it's not needed by G12A SoC. > 2) second, the

[PATCH v12 03/14] clk: qcom: Add HFPLL driver

2018-08-14 Thread Sricharan R
From: Stephen Boyd On some devices (MSM8974 for example), the HFPLLs are instantiated within the Krait processor subsystem as separate register regions. Add a driver for these PLLs so that we can provide HFPLL clocks for use by the system. Cc: Signed-off-by: Stephen Boyd Signed-off-by: Srichar

[PATCH v12 02/14] clk: qcom: Add support for High-Frequency PLLs (HFPLLs)

2018-08-14 Thread Sricharan R
From: Stephen Boyd HFPLLs are the main frequency source for Krait CPU clocks. Add support for changing the rate of these PLLs. Signed-off-by: Stephen Boyd Signed-off-by: Sricharan R --- drivers/clk/qcom/Makefile| 1 + drivers/clk/qcom/clk-hfpll.c | 244 ++

[PATCH V12 00/14] Krait clocks + Krait CPUfreq

2018-08-14 Thread Sricharan R
[v12] * Added my signed-off that was missing in some patches. * Added Bjorn's acked that i missed earlier. [v11] * Dropped patch 13 and 14 from v10 and merged the qcom-cpufreq-krait driver to the existing qcom-cpufreq-kryo.c * Rebased on top of clk-next * Fixed a bug while populating

[PATCH v12 04/14] dt-bindings: clock: Document qcom,hfpll

2018-08-14 Thread Sricharan R
From: Stephen Boyd Adds bindings document for qcom,hfpll instantiated within the Krait processor subsystem as separate register region. Reviewed-by: Rob Herring Signed-off-by: Stephen Boyd Signed-off-by: Sricharan R --- .../devicetree/bindings/clock/qcom,hfpll.txt | 60

[PATCH v12 01/14] ARM: Add Krait L2 register accessor functions

2018-08-14 Thread Sricharan R
From: Stephen Boyd Krait CPUs have a handful of L2 cache controller registers that live behind a cp15 based indirection register. First you program the indirection register (l2cpselr) to point the L2 'window' register (l2cpdr) at what you want to read/write. Then you read/write the 'window' regi

[PATCH v12 05/14] clk: qcom: Add MSM8960/APQ8064's HFPLLs

2018-08-14 Thread Sricharan R
From: Stephen Boyd Describe the HFPLLs present on MSM8960 and APQ8064 devices. Acked-by: Rob Herring (bindings) Signed-off-by: Stephen Boyd Signed-off-by: Sricharan R --- drivers/clk/qcom/gcc-msm8960.c | 172 +++ include/dt-bindings/clock/qcom,gcc-msm896

[PATCH v12 11/14] dt-bindings: clock: Document qcom,krait-cc

2018-08-14 Thread Sricharan R
From: Stephen Boyd The Krait clock controller controls the krait CPU and the L2 clocks consisting a primary mux and secondary mux. Add document for that. Reviewed-by: Rob Herring Signed-off-by: Stephen Boyd Signed-off-by: Sricharan R --- .../devicetree/bindings/clock/qcom,krait-cc.txt| 3

[PATCH v12 08/14] clk: qcom: Add KPSS ACC/GCC driver

2018-08-14 Thread Sricharan R
From: Stephen Boyd The ACC and GCC regions present in KPSSv1 contain registers to control clocks and power to each Krait CPU and L2. For CPUfreq purposes probe these devices and expose a mux clock that chooses between PXO and PLL8. Cc: Signed-off-by: Stephen Boyd Signed-off-by: Sricharan R --

[PATCH] drivers: hwmon: pmbus: ltc2978: Add support for LTM4686 uModule

2018-08-14 Thread michael.hennerich
From: Michael Hennerich This patch adds support for LTM4686 Ultrathin Dual 10A or Single 20A uModule Regulator with Digital Power System Management. Datasheet: http://www.analog.com/ltm4686 Signed-off-by: Michael Hennerich --- Documentation/devicetree/bindings/hwmon/ltc2978.txt | 2 ++ Docum

[PATCH v12 14/14] cpufreq: qcom: Add support for krait based socs

2018-08-14 Thread Sricharan R
In Certain QCOM SoCs like ipq8064, apq8064, msm8960, msm8974 that has KRAIT processors the voltage/current value of each OPP varies based on the silicon variant in use. The required OPP related data is determined based on the efuse value. This is similar to the existing code for kryo cores. So add

[PATCH v12 10/14] clk: qcom: Add Krait clock controller driver

2018-08-14 Thread Sricharan R
From: Stephen Boyd The Krait CPU clocks are made up of a primary mux and secondary mux for each CPU and the L2, controlled via cp15 accessors. For Kraits within KPSSv1 each secondary mux accepts a different aux source, but on KPSSv2 each secondary mux accepts the same aux source. Cc: Signed-off

[PATCH v12 09/14] dt-bindings: arm: Document qcom,kpss-gcc

2018-08-14 Thread Sricharan R
From: Stephen Boyd The ACC and GCC regions present in KPSSv1 contain registers to control clocks and power to each Krait CPU and L2. Documenting the bindings here. Reviewed-by: Rob Herring Signed-off-by: Stephen Boyd Signed-off-by: Sricharan R --- .../devicetree/bindings/arm/msm/qcom,kpss-ac

[PATCH v12 07/14] clk: qcom: Add support for Krait clocks

2018-08-14 Thread Sricharan R
From: Stephen Boyd The Krait clocks are made up of a series of muxes and a divider that choose between a fixed rate clock and dedicated HFPLLs for each CPU. Instead of using mmio accesses to remux parents, the Krait implementation exposes the remux control via cp15 registers. Support these clocks

[PATCH v12 13/14] cpufreq: qcom: Re-organise kryo cpufreq to use it for other nvmem based qcom socs

2018-08-14 Thread Sricharan R
The kryo cpufreq driver reads the nvmem cell and uses that data to populate the opps. There are other qcom cpufreq socs like krait which does similar thing. Except for the interpretation of the read data, rest of the driver is same for both the cases. So pull the common things out for reuse. Signe

[PATCH v12 06/14] clk: qcom: Add IPQ806X's HFPLLs

2018-08-14 Thread Sricharan R
From: Stephen Boyd Describe the HFPLLs present on IPQ806X devices. Signed-off-by: Stephen Boyd Signed-off-by: Sricharan R --- drivers/clk/qcom/gcc-ipq806x.c | 82 ++ 1 file changed, 82 insertions(+) diff --git a/drivers/clk/qcom/gcc-ipq806x.c b/drivers

[PATCH v12 12/14] clk: qcom: Add safe switch hook for krait mux clocks

2018-08-14 Thread Sricharan R
When the Hfplls are reprogrammed during the rate change, the primary muxes which are sourced from the same hfpll for higher frequencies, needs to be switched to the 'safe secondary mux' as the parent for that small window. This is done by registering a clk notifier for the muxes and switching to th

Re: [PATCH 2/2] bcache: add undef for macro in function

2018-08-14 Thread Coly Li
On 2018/8/14 4:16 PM, Dongbo Cao wrote: > add undef for macro d_strtoul,d_strtoul_nonzero and d_strtoi_h > > Signed-off-by: Dongbo Cao > --- > drivers/md/bcache/sysfs.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/md/bcache/sysfs.c b/drivers/md/bcache/sysfs.c > index 225b

  1   2   3   4   5   6   7   8   9   >