[PATCH 4/7] sched, cgroup: add entry cpu.headroom

2019-04-08 Thread Song Liu
This patch introduces a new cgroup cpu controller knob: cpu.headroom. cpu.headroom is a mechanism for latency sensitive applications (or the main workkload) to enforce latency requirements by reserving cpu cycle headroom. Only the latency sensitive application can use the cpu cycle headroom. cpu c

[PATCH 2/7] cgroup: introduce hook css_has_tasks_changed

2019-04-08 Thread Song Liu
This patch introduces a new hook css_has_tasks_changed: void (*css_has_tasks_changed)(struct cgroup_subsys_state *css, bool has_tasks); The hook is called when the cgroup gets its first task and when the cgroup loses its last task. It is called under css_set_lo

[PATCH 6/7] sched/fair: throttle task runtime based on cpu.headroom

2019-04-08 Thread Song Liu
This patch enables task runtime throttling based on cpu.headroom setting. The throttling leverages the same mechanism of the cpu.max knob. Task groups with non-zero target_idle get throttled. In __refill_cfs_bandwidth_runtime(), global idleness measured by function cfs_global_idleness_update() is

Re: [PATCH v3 3/7] clk: Add of_clk_hw_register() API for early clk drivers

2019-04-08 Thread Jeffrey Hugo
On 4/4/2019 3:53 PM, Stephen Boyd wrote: In some circumstances drivers register clks early and don't have access to a struct device because the device model isn't initialized yet. Add an API to let drivers register clks associated with a struct device_node so that these drivers can participate in

[PATCH 5/7] sched/fair: global idleness counter for cpu.headroom

2019-04-08 Thread Song Liu
This patch introduces a global idleness counter in fair.c for the cpu.headroom knob. This counter is based on per cpu get_idle_time(). The counter is used via function call: unsigned long cfs_global_idleness_update(u64 now, u64 period); The function returns global idleness in fixed-point perce

[PATCH 7/7] Documentation: cgroup-v2: add information for cpu.headroom

2019-04-08 Thread Song Liu
This patch adds simple explanation of the new cpu.headroom knob. Signed-off-by: Song Liu --- Documentation/admin-guide/cgroup-v2.rst | 18 ++ 1 file changed, 18 insertions(+) diff --git a/Documentation/admin-guide/cgroup-v2.rst b/Documentation/admin-guide/cgroup-v2.rst index 20

Re: [PATCH kselftest-next] selftests: cgroup: fix cleanup path in test_memcg_subtree_control()

2019-04-08 Thread Roman Gushchin
On Mon, Apr 08, 2019 at 12:53:39PM -0600, shuah wrote: > On 3/27/19 8:56 PM, Roman Gushchin wrote: > > Dan reported, that cleanup path in test_memcg_subtree_control() > > triggers a static checker warning: > >./tools/testing/selftests/cgroup/test_memcontrol.c:76 \ > >test_memcg_subtree_cont

[PATCH 3/7] cgroup: introduce cgroup_parse_percentage

2019-04-08 Thread Song Liu
This patch introduces a helper to parse percentage string to long integer, with user selected scale: long cgroup_parse_percentage(char *tok, unsigned long base) Valid tok could be integer 0 to 100, decimal 0.00 to 100.00, or "max". A tok of "max"is same as "100". Base is the desire output sca

Re: Thoughts on simple scanner approach for free page hinting

2019-04-08 Thread Alexander Duyck
On Mon, Apr 8, 2019 at 2:21 PM David Hildenbrand wrote: > > On 08.04.19 22:51, David Hildenbrand wrote: > > On 08.04.19 22:10, Alexander Duyck wrote: > >> On Mon, Apr 8, 2019 at 11:40 AM David Hildenbrand wrote: > >>> > >> > >> In addition we will need some way to identify which pages hav

Re: [PATCH v10 02/18] counter: Documentation: Add Generic Counter sysfs documentation

2019-04-08 Thread Pavel Machek
On Tue 2019-04-02 15:30:37, William Breathitt Gray wrote: > This patch adds standard documentation for the userspace sysfs > attributes of the Generic Counter interface. > > Reviewed-by: Jonathan Cameron > Signed-off-by: William Breathitt Gray > --- > Documentation/ABI/testing/sysfs-bus-counter

Re: [PATCH net-next v3] net: dsa: mv88e6xxx: Prevent suspend to RAM

2019-04-08 Thread Pavel Machek
On Tue 2019-02-05 12:07:28, Miquel Raynal wrote: > On one hand, the mv88e6xxx driver has a work queue called in loop > which will attempt register accesses after MDIO bus suspension, that > entirely freezes the platform during suspend. > > On the other hand, the DSA core is not ready yet to suppor

Re: [PATCH 03/12] s390: purgatory: pass --target option to clang

2019-04-08 Thread Nathan Chancellor
On Mon, Apr 08, 2019 at 11:26:16PM +0200, Arnd Bergmann wrote: > The purgatory Makefile does not inherit the original cflags, > so clang falls back to the default target architecture when > building it, typically this would be x86 when cross-compiling. > > Pass --target=s390x-linux to all compiler

Re: 4/8/201912:57:28 PM

2019-04-08 Thread China National Chemicals
Dear linux-kernel@vger.kernel.org Greetings to you from China. Our company is currentlylooking for a sales representative in the USA. You could become our principal sales agent and earn big. It wouldn't disturb your present job, you could work from home as well. No upfront deposit. It is 100% l

[PATCH 0/2] sysctl: share commonly used constants

2019-04-08 Thread Matteo Croce
In the sysctl code there are a lot of duplicate constants used to validate the user input, which could be put in a shared place. Some of them are not even constant, fix this with the following patches. The first one declares the shared constants, the second one makes use of them for the kernel/ sys

[PATCH 1/2] proc/sysctl: add shared variables for range check

2019-04-08 Thread Matteo Croce
In the sysctl code the proc_dointvec_minmax() function is often used to validate the user supplied value between an allowed range. This function uses the extra1 and extra2 members from struct ctl_table as minimum and maximum allowed value. On sysctl handler declaration, in every source file there

[PATCH 2/2] kernel: use sysctl shared variables for range check

2019-04-08 Thread Matteo Croce
Use the shared variables for range check, instead of declaring a local one in every source file. Signed-off-by: Matteo Croce --- kernel/pid_namespace.c | 3 +- kernel/sysctl.c| 193 - kernel/ucount.c| 6 +- 3 files changed, 98 insertion

[PATCH kselftest-next] selftests: cgroup: fix cleanup path in test_memcg_subtree_control()

2019-04-08 Thread Roman Gushchin
Dan reported, that cleanup path in test_memcg_subtree_control() triggers a static checker warning: ./tools/testing/selftests/cgroup/test_memcontrol.c:76 \ test_memcg_subtree_control() error: uninitialized symbol 'child2'. Fix this by initializing child2 and parent2 variables and split the cl

Re: [PATCH] selftests: cgroup: fix cleanup path in test_memcg_subtree_control()

2019-04-08 Thread Roman Gushchin
Ooops... wrong subject. Please, ignore. Thanks!

Re: [PATCH 04/12] s390: qeth: address type mismatch warning

2019-04-08 Thread Nathan Chancellor
On Mon, Apr 08, 2019 at 11:26:17PM +0200, Arnd Bergmann wrote: > clang produces a harmless warning for each use for the qeth_adp_supported > macro: > > drivers/s390/net/qeth_l2_main.c:559:31: warning: implicit conversion from > enumeration type 'enum qeth_ipa_setadp_cmd' to > different enum

Re: [PATCH v3 1/7] clkdev: Hold clocks_mutex while iterating clocks list

2019-04-08 Thread Russell King - ARM Linux admin
On Mon, Apr 08, 2019 at 10:00:02AM -0700, Stephen Boyd wrote: > Quoting Matti Vaittinen (2019-04-08 03:49:41) > > On Fri, Apr 05, 2019 at 01:37:24PM -0700, Stephen Boyd wrote: > > > Quoting Vaittinen, Matti (2019-04-04 23:51:43) > > > > On Thu, 2019-04-04 at 14:53 -0700, Stephen Boyd wrote: > > > >

Re: linux-next: Fixes tags need some work in the cifs tree

2019-04-08 Thread Steve French
I just fixed these up manually and repushed to cifs-2.6.git for-next I was curious if checkpatch should have flagged this - I reran checkpatch on the original version of Zhang's patches and it didn't complain about the spacing (and probably should have). On Mon, Apr 8, 2019 at 4:38 PM Stephen Rot

Re: [PATCH 05/12] s390: zcrypt: initialize variables before_use

2019-04-08 Thread Nathan Chancellor
On Mon, Apr 08, 2019 at 11:26:18PM +0200, Arnd Bergmann wrote: > The 'func_code' variable gets printed in debug statements without > a prior initialization in multiple functions, as reported when building > with clang: > > drivers/s390/crypto/zcrypt_api.c:659:6: warning: variable 'func_code' is us

Re: [PATCH 06/12] s390: ctcm: fix ctcm_new_device error return code

2019-04-08 Thread Nathan Chancellor
On Mon, Apr 08, 2019 at 11:26:19PM +0200, Arnd Bergmann wrote: > clang points out that the return code from this function is > undefined for one of the error paths: > > ../drivers/s390/net/ctcm_main.c:1595:7: warning: variable 'result' is used > uninitialized whenever 'if' condition is true >

Re: [PATCH 07/12] s390: cio: fix cio_irb declaration

2019-04-08 Thread Nathan Chancellor
On Mon, Apr 08, 2019 at 11:26:20PM +0200, Arnd Bergmann wrote: > clang points out that the declaration of cio_irb does not match the > definition exactly, it is missing the alignment attribute: > > ../drivers/s390/cio/cio.c:50:1: warning: section does not match previous > declaration [-Wsection]

Re: [PATCH] spi: rockchip: Revert "set min/max speed"

2019-04-08 Thread Vicente Bergas
On Sunday, April 7, 2019 2:57:59 AM CEST, Vicente Bergas wrote: This reverts commit 420b82f84294 ("spi: rockchip: set min/max speed") commit 74b7efa82b11 ("spi: rockchip: precompute rx sample delay") The former breaks bursts of writes of 48 bytes or more. Both patches touch the same part of the f

Re: [PATCH 1/3] dt-bindings: interconnect: Add Qualcomm QCS404 DT bindings

2019-04-08 Thread Bjorn Andersson
On Fri 05 Apr 08:46 PDT 2019, Georgi Djakov wrote: > Hi Bjorn, > > On 4/5/19 21:32, Bjorn Andersson wrote: > > On Fri 05 Apr 10:54 +07 2019, Georgi Djakov wrote: > > > >> The Qualcomm QCS404 platform has several buses that could be controlled > >> and tuned according to the bandwidth demand. > >

RE: [PATCH RESEND 4/5] x86/MCE: Make number of MCA banks per_cpu

2019-04-08 Thread Ghannam, Yazen
> -Original Message- > From: linux-edac-ow...@vger.kernel.org On > Behalf Of Borislav Petkov > Sent: Monday, April 8, 2019 3:50 PM > To: Luck, Tony > Cc: Ghannam, Yazen ; linux-e...@vger.kernel.org; > linux-kernel@vger.kernel.org; x...@kernel.org > Subject: Re: [PATCH RESEND 4/5] x86/MC

Re: [PATCH V5 00/12] perf: Add Icelake support (kernel only, except Topdown)

2019-04-08 Thread Liang, Kan
On 4/8/2019 12:06 PM, Liang, Kan wrote: @@ -1875,7 +1868,7 @@ static void intel_pmu_drain_pebs_nhm(str   counts[bit]++;   } -    for (bit = 0; bit < size; bit++) { +    for_each_set_bit(bit, (unsigned long *)&mask, size) {   if ((counts[bit] == 0) && (error[bit] == 0))

Re: [PATCH v1 bitops] bitops: Fix UBSAN undefined behavior warning for rotation right

2019-04-08 Thread Andrew Morton
On Sun, 7 Apr 2019 12:53:25 + Vadim Pasternak wrote: > The warning is caused by call to rorXX(), if the second parameters of > this function "shift" is zero. In such case UBSAN reports the warning > for the next expression: (word << (XX - shift), where XX is > 64, 32, 16, 8 for respectively

Re: [PATCH v1 bitops] bitops: Fix UBSAN undefined behavior warning for rotation right

2019-04-08 Thread Andrew Morton
(resend, cc Andrey) On Sun, 7 Apr 2019 12:53:25 + Vadim Pasternak wrote: > The warning is caused by call to rorXX(), if the second parameters of > this function "shift" is zero. In such case UBSAN reports the warning > for the next expression: (word << (XX - shift), where XX is > 64, 32, 16

Re: [PATCH v3] PCI: al: Add Amazon Annapurna Labs PCIe host controller driver

2019-04-08 Thread Benjamin Herrenschmidt
On Thu, 2019-03-28 at 13:57 +0200, Jonathan Chocron wrote: > Add support for Amazon's Annapurna Labs PCIe driver. The HW > controller > is based on DesignWare's IP. > > The HW doesn't support accessing the Root Port's config space via > ECAM, > so we obtain its base address via an AMZN0001 device.

[GIT PULL] TPM fixes for v5.1

2019-04-08 Thread James Morris
Please pull these TPM fixes, from Jarkko: "These are critical fixes for v5.1. Contains also couple of new selftests for v5.1 features (partial reads in /dev/tpm0)." --- The following changes since commit fd008d1a7a204695f0e5e003af16448bb9c34b7b: Merge branch 'linus' of git://git.kernel.org/

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

2019-04-08 Thread Stephen Rothwell
Hi all, On Tue, 26 Mar 2019 10:01:45 +1100 Stephen Rothwell wrote: > > After merging the sound-asoc tree, today's linux-next build (x86_64 > allmodconfig) produced this warning: > > sound/soc/codecs/tlv320aic32x4-clk.c: In function > 'clk_aic32x4_pll_recalc_rate': > sound/soc/codecs/tlv320aic3

Re: [PATCH v4 1/3] mm/vmap: keep track of free blocks for vmap allocation

2019-04-08 Thread Roman Gushchin
On Sat, Apr 06, 2019 at 08:35:06PM +0200, Uladzislau Rezki (Sony) wrote: > Currently an allocation of the new vmap area is done over busy > list iteration(complexity O(n)) until a suitable hole is found > between two busy areas. Therefore each new allocation causes > the list being grown. Due to ov

Re: [PATCH RESEND 4/5] x86/MCE: Make number of MCA banks per_cpu

2019-04-08 Thread Luck, Tony
On Mon, Apr 08, 2019 at 10:48:34PM +, Ghannam, Yazen wrote: > Okay, so drop the export and leave the injector code as-is (it's > already doing a rdmsrl_on_cpu()). It's still a globally visible symbol (shared by core.c and amd.c). So I think it needs a "mce_" prefix. While it doesn't collide n

RE: [PATCH RESEND 4/5] x86/MCE: Make number of MCA banks per_cpu

2019-04-08 Thread Ghannam, Yazen
> -Original Message- > From: linux-edac-ow...@vger.kernel.org On > Behalf Of Luck, Tony > Sent: Monday, April 8, 2019 6:23 PM > To: Ghannam, Yazen > Cc: Borislav Petkov ; linux-e...@vger.kernel.org; > linux-kernel@vger.kernel.org; x...@kernel.org > Subject: Re: [PATCH RESEND 4/5] x86/MC

Re: [PATCH] slab: fix a crash by reading /proc/slab_allocators

2019-04-08 Thread Tobin C. Harding
On Sun, Apr 07, 2019 at 07:35:34PM -1000, Linus Torvalds wrote: > On Sat, Apr 6, 2019 at 12:59 PM Qian Cai wrote: > > > > The commit 510ded33e075 ("slab: implement slab_root_caches list") > > changes the name of the list node within "struct kmem_cache" from > > "list" to "root_caches_node", but le

Re: linux-next: manual merge of the kspp-gustavo tree with Linus' tree

2019-04-08 Thread Gustavo A. R. Silva
On 4/7/19 4:17 PM, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the kspp-gustavo tree got a conflict in: > > arch/x86/include/asm/syscall.h > > between commits: > > b35f549df1d7 ("syscalls: Remove start and number from > syscall_get_arguments() args") > 32d9258662

Re: linux-next: Fixes tags need some work in the cifs tree

2019-04-08 Thread Stephen Rothwell
Hi Steve, On Mon, 8 Apr 2019 17:30:20 -0500 Steve French wrote: > > I just fixed these up manually and repushed to cifs-2.6.git for-next Thanks. > I was curious if checkpatch should have flagged this - I reran > checkpatch on the original version of Zhang's patches and it didn't > complain abou

Re: [PATCH v5 3/3] platform/chrome: Standardize Chrome OS keyboard backlight name

2019-04-08 Thread Nick Crews
I've just found a few [embarrassing :)] bugs in this version, so after we figure out the naming, please wait for me to send out another patch that fixes these. Thanks, Nick On Thu, Apr 4, 2019 at 11:10 AM Nick Crews wrote: > > We want all backlights for the system keyboard to > use a common name

[PATCH 14/18] iommu/vt-d: Add nested translation support

2019-04-08 Thread Jacob Pan
Nested translation mode is supported in VT-d 3.0 Spec.CH 3.8. With PASID granular translation type set to 0x11b, translation result from the first level(FL) also subject to a second level(SL) page table translation. This mode is used for SVA virtualization, where FL performs guest virtual to guest

[PATCH 07/18] iommu: Introduce attach/detach_pasid_table API

2019-04-08 Thread Jacob Pan
In virtualization use case, when a guest is assigned a PCI host device, protected by a virtual IOMMU on the guest, the physical IOMMU must be programmed to be consistent with the guest mappings. If the physical IOMMU supports two translation stages it makes sense to program guest mappings onto the

Re: [PATCH] ARM: dts: imx6qdl-nitrogen6_max: Disable LVDS channels

2019-04-08 Thread Robert Foss
Hey Fabio, On 4/8/19 10:37 PM, Fabio Estevam wrote: Hi Robert, [Adding Gary] On Mon, Apr 8, 2019 at 2:54 PM Robert Foss wrote: If a LVDS device is not connected, having the LVDS channels enabled will prevent imx-ldb from probing correctly even if other CRTCs are connected. Signed-off-by: R

Re: [PATCH] afs: Mark expected switch fall-throughs

2019-04-08 Thread Kees Cook
On Thu, Jan 10, 2019 at 2:02 PM Gustavo A. R. Silva wrote: > In preparation to enabling -Wimplicit-fallthrough, mark switch cases > where we are expecting to fall through. > > Notice that in many cases I placed a /* Fall through */ comment > at the bottom of the case, which what GCC is expecting t

Re: [PATCH] adfs: mark expected switch fall-throughs

2019-04-08 Thread Kees Cook
On Mon, Jan 14, 2019 at 12:35 PM Gustavo A. R. Silva wrote: > > In preparation to enabling -Wimplicit-fallthrough, mark switch cases > where we are expecting to fall through. > > Warning level 3 was used: -Wimplicit-fallthrough=3 > > This patch is part of the ongoing efforts to enabling > -Wimplic

[PATCH v6] platform/chrome: Add Wilco EC keyboard backlight LEDs support

2019-04-08 Thread Nick Crews
The EC is in charge of controlling the keyboard backlight on the Wilco platform. We expose a standard LED class device at /sys/class/leds/chromeos::kbd_backlight. This driver is modeled after the standard Chrome OS keyboard backlight driver at drivers/platform/chrome/cros_kbd_led_backlight.c Some

Re: [PATCH 03/22] watchdog: aspeed_wdt: Use 'dev' instead of dereferencing it repeatedly

2019-04-08 Thread Andrew Jeffery
On Tue, 9 Apr 2019, at 05:09, Guenter Roeck wrote: > Introduce local variable 'struct device *dev' and use it instead of > dereferencing it repeatedly. > > The conversion was done automatically with coccinelle using the > following semantic patches. The semantic patches and the scripts > used t

Re: [PATCH v10 1/2] dt-bindings: misc: aspeed-p2a-ctrl: add support

2019-04-08 Thread Andrew Jeffery
On Tue, 9 Apr 2019, at 00:12, Patrick Venture wrote: > Document the ast2400, ast2500 PCI-to-AHB bridge control driver bindings. > > Signed-off-by: Patrick Venture > Reviewed-by: Rob Herring Reviewed-by: Andrew Jeffery > --- > Changes for v10: > - Chopped out nearly identical information.

Re: linux-next: manual merge of the kspp-gustavo tree with Linus' tree

2019-04-08 Thread Stephen Rothwell
Hi Gustavo, On Mon, 8 Apr 2019 18:53:16 -0500 "Gustavo A. R. Silva" wrote: > > I just removed the above commit from my tree. OK, thanks. -- Cheers, Stephen Rothwell pgpFH68Tq494p.pgp Description: OpenPGP digital signature

Re: [PATCH 03/22] watchdog: aspeed_wdt: Use 'dev' instead of dereferencing it repeatedly

2019-04-08 Thread Guenter Roeck
Hi Andrew, On 4/8/19 5:37 PM, Andrew Jeffery wrote: On Tue, 9 Apr 2019, at 05:09, Guenter Roeck wrote: Introduce local variable 'struct device *dev' and use it instead of dereferencing it repeatedly. The conversion was done automatically with coccinelle using the following semantic patches.

Re: [PATCH 03/22] watchdog: aspeed_wdt: Use 'dev' instead of dereferencing it repeatedly

2019-04-08 Thread Andrew Jeffery
On Tue, 9 Apr 2019, at 10:33, Guenter Roeck wrote: > Hi Andrew, > > On 4/8/19 5:37 PM, Andrew Jeffery wrote: > > > > > > On Tue, 9 Apr 2019, at 05:09, Guenter Roeck wrote: > >> Introduce local variable 'struct device *dev' and use it instead of > >> dereferencing it repeatedly. > >> > >> The

Re: [PATCH 1/2] mm/gup.c: fix the wrong comments

2019-04-08 Thread Huang Shijie
On Mon, Apr 08, 2019 at 07:13:13AM -0700, Matthew Wilcox wrote: > On Mon, Apr 08, 2019 at 10:37:45AM +0800, Huang Shijie wrote: > > When CONFIG_HAVE_GENERIC_GUP is defined, the kernel will use its own > > get_user_pages_fast(). > > > > In the following scenario, we will may meet the bug in the DMA

Re: [PATCH v8 02/11] dt-bindings: power: supply: add DT bindings for max77650

2019-04-08 Thread Rob Herring
On Mon, Apr 8, 2019 at 7:25 AM Bartosz Golaszewski wrote: > > sob., 6 kwi 2019 o 09:07 Rob Herring napisał(a): > > > > On Wed, Apr 03, 2019 at 11:00:59AM +0200, Bartosz Golaszewski wrote: > > > From: Bartosz Golaszewski > > > > > > Add the DT binding document for the battery charger module of ma

Re: [PATCH 1/2] dt-bindings: rtc: add battery-low-hw-alarm property

2019-04-08 Thread Rob Herring
On Mon, Apr 8, 2019 at 2:22 AM Flavio Suligoi wrote: > > HI, > > > On 06/04/2019 01:07:13-0500, Rob Herring wrote: > > > On Wed, Apr 03, 2019 at 04:52:44PM +0200, Flavio Suligoi wrote: > > > > Some RTC devices have a battery-low automatic detection circuit. > > > > The battery-low event is usually

Re: [PATCH -next] pinctrl: artpec6: Make two functions static

2019-04-08 Thread YueHaibing
On 2019/4/9 2:01, Nathan Chancellor wrote: > On Thu, Mar 21, 2019 at 11:09:09PM +0800, Yue Haibing wrote: >> From: YueHaibing >> >> Fix sparse warnings: >> >> drivers/pinctrl/pinctrl-artpec6.c:691:5: warning: >> symbol 'artpec6_pmx_enable' was not declared. Should it be static? >> drivers/pinct

Re: Adding plain accesses and detecting data races in the LKMM

2019-04-08 Thread Andrea Parri
> > The formula was more along the line of "do not assume either of these > > cases to hold; use barrier() is you need an unconditional barrier..." > > AFAICT, all current implementations of smp_mb__{before,after}_atomic() > > provides a compiler barrier with either barrier() or "memory" clobber. >

linux-next: build warning after merge of the sound-asoc tree

2019-04-08 Thread Stephen Rothwell
Hi all, After merging the sound-asoc tree, today's linux-next build (x86_64 allmodconfig) produced this warning: sound/soc/intel/boards/bytcht_es8316.c: In function 'snd_byt_cht_es8316_mc_probe': sound/soc/intel/boards/bytcht_es8316.c:508:11: warning: cast from pointer to integer of different s

Re: [PATCH][next] scsi: qla2xxx: fix spelling mistake "alredy" -> "already"

2019-04-08 Thread Martin K. Petersen
Colin, > There is a spelling mistake in a ql_log message. Fix it. Applied to 5.2/scsi-queue, thanks! -- Martin K. Petersen Oracle Linux Engineering

RE: [PATCH V5 4/4] rtc: imx-sc: add rtc alarm support

2019-04-08 Thread Anson Huang
Hi, Aisheng Best Regards! Anson Huang > -Original Message- > From: Aisheng Dong > Sent: 2019年4月8日 19:09 > To: Anson Huang ; robh...@kernel.org; > mark.rutl...@arm.com; shawn...@kernel.org; s.ha...@pengutronix.de; > ker...@pengutronix.de; feste...@gmail.com; a.zu...@towertech.it; > alexand

Re: [RFC PATCH v2 11/14] x86/watchdog/hardlockup: Add an HPET-based hardlockup detector

2019-04-08 Thread Ricardo Neri
On Tue, Mar 26, 2019 at 09:49:13PM +0100, Thomas Gleixner wrote: > On Wed, 27 Feb 2019, Ricardo Neri wrote: > > +/** > > + * get_count() - Get the current count of the HPET timer > > + * > > + * Returns: > > + * > > + * Value of the main counter of the HPET timer > > The extra newline is not requi

Re: [RFC PATCH v2 02/14] x86/hpet: Expose more functions to read and write registers

2019-04-08 Thread Ricardo Neri
On Tue, Mar 26, 2019 at 10:00:24PM +0100, Thomas Gleixner wrote: > On Wed, 27 Feb 2019, Ricardo Neri wrote: > > struct irq_data; > > @@ -109,6 +114,11 @@ extern void > > hpet_unregister_irq_handler(rtc_irq_handler handler); > > static inline int hpet_enable(void) { return 0; } > > static inline

Re: [RFC PATCH v2 12/14] x86/watchdog/hardlockup/hpet: Determine if HPET timer caused NMI

2019-04-08 Thread Ricardo Neri
On Tue, Mar 26, 2019 at 09:55:35PM +0100, Thomas Gleixner wrote: > On Wed, 27 Feb 2019, Ricardo Neri wrote: > > @@ -62,7 +67,18 @@ static inline void set_comparator(struct hpet_hld_data > > *hdata, > > static void kick_timer(struct hpet_hld_data *hdata, bool force) > > { > > bool kick_needed

Re: [RFC PATCH v2 05/14] x86/hpet: Relocate flag definitions to a header file

2019-04-08 Thread Ricardo Neri
On Tue, Mar 26, 2019 at 10:11:16PM +0100, Thomas Gleixner wrote: > On Wed, 27 Feb 2019, Ricardo Neri wrote: > > > Users of HPET timers (such as the hardlockup detector) need the definitions > > of these flags to interpret the configuration of a timer as passed by > > platform code. > > Which plat

Re: [RFC PATCH v2 03/14] x86/hpet: Calculate ticks-per-second in a separate function

2019-04-08 Thread Ricardo Neri
On Tue, Mar 26, 2019 at 10:03:02PM +0100, Thomas Gleixner wrote: > On Wed, 27 Feb 2019, Ricardo Neri wrote: > > int hpet_alloc(struct hpet_data *hdp) > > { > > u64 cap, mcfg; > > @@ -845,7 +868,6 @@ int hpet_alloc(struct hpet_data *hdp) > > size_t siz; > > struct hpet __iomem *hpet; >

Re: [RFC PATCH v2 06/14] x86/hpet: Configure the timer used by the hardlockup detector

2019-04-08 Thread Ricardo Neri
On Tue, Mar 26, 2019 at 10:13:06PM +0100, Thomas Gleixner wrote: > On Wed, 27 Feb 2019, Ricardo Neri wrote: > > +#ifdef CONFIG_X86_HARDLOCKUP_DETECTOR_HPET > > +struct hpet_hld_data *hpet_hardlockup_detector_assign_timer(void) > > +{ > > + struct hpet_hld_data *hdata; > > + unsigned int cfg; >

Re: [RFC PATCH v2 08/14] watchdog/hardlockup: Decouple the hardlockup detector from perf

2019-04-08 Thread Ricardo Neri
On Tue, Mar 26, 2019 at 10:18:32PM +0100, Thomas Gleixner wrote: > On Wed, 27 Feb 2019, Ricardo Neri wrote: > > +// SPDX-License-Identifier: GPL-2.0 > > +/* > > + * Detect hard lockups on a system > > + * > > + * Copyright (C) Intel Corporation 2019 > > + * > > + * Note: All of this code comes from

Re: [RFC PATCH v2 13/14] watchdog/hardlockup/hpet: Only enable the HPET watchdog via a boot parameter

2019-04-08 Thread Ricardo Neri
On Tue, Mar 26, 2019 at 10:29:52PM +0100, Thomas Gleixner wrote: > On Wed, 27 Feb 2019, Ricardo Neri wrote: > > + When hpet is specified, the NMI watchdog will be driven > > + by an HPET timer, if available in the system. Otherwise, > > + the pe

[PATCH v2 4/4] dt-bindings: mfd: Document Macronix MX25F0A controller bindings

2019-04-08 Thread Mason Yang
Document the bindings used by the Macronix MX25F0A MFD controller. Signed-off-by: Mason Yang --- .../devicetree/bindings/mfd/mxic-mx25f0a.txt | 51 ++ 1 file changed, 51 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/mxic-mx25f0a.txt diff --git

Re: [PATCH 1/1] of: reserved_mem: fix reserve memory leak

2019-04-08 Thread pierre kuo
hi Rob, Marek and Frank: > > In this patch, we un-reserving memory ONLY if explicit compatible matching > > fail. > > That mean driver found something wrong while matching and let OS know. > > (But reserved-memory without compatible property will not be affected.) > > > > So per ur explaination,

[PATCH v2 1/4] mfd: Add Macronix MX25F0A MFD controller driver

2019-04-08 Thread Mason Yang
Add a driver for Macronix MX25F0A multifunction device controller. Signed-off-by: Mason Yang --- drivers/mfd/Kconfig | 9 ++ drivers/mfd/Makefile | 1 + drivers/mfd/mxic-mx25f0a.c | 84 +++ include/linux/mfd/mxic-mx25f0a.h | 175 +++

[PATCH v2 2/4] mtd: rawnand: Add Macronix MX25F0A NAND controller driver

2019-04-08 Thread Mason Yang
Add a driver for Macronix MX25F0A NAND controller. Signed-off-by: Mason Yang --- drivers/mtd/nand/raw/Kconfig | 6 + drivers/mtd/nand/raw/Makefile| 1 + drivers/mtd/nand/raw/mxic_nand.c | 294 +++ 3 files changed, 301 insertions(+) create mode 100

[PATCH v2 3/4] spi: Add MFD for Macronix MX25F0A SPI controller driver

2019-04-08 Thread Mason Yang
Add a MFD driver for Macronix MX25F0A SPI controller. Signed-off-by: Mason Yang --- drivers/spi/spi-mxic.c | 275 + 1 file changed, 49 insertions(+), 226 deletions(-) diff --git a/drivers/spi/spi-mxic.c b/drivers/spi/spi-mxic.c index e41ae6e..f98f

[PATCH v2 0/4] Add Macronix MX25F0A MFD driver for raw nand and spi

2019-04-08 Thread Mason Yang
Hi, This patches support Macronix MX25F0A MFD driver for raw nand and spi controller which is separated form previous patchset: https://patchwork.kernel.org/patch/10874679/ thanks for your review. best regards, Mason Mason Yang (4): mfd: Add Macronix MX25F0A MFD controller driver mtd: rawn

Re: [PATCH 1/1] of: reserved_mem: fix reserve memory leak

2019-04-08 Thread pierre kuo
hi Rob, Marek and Frank: > > > > In this patch, we un-reserving memory ONLY if explicit compatible matching > > fail. > > That mean driver found something wrong while matching and let OS know. > > (But reserved-memory without compatible property will not be affected.) > > > > So per ur explainati

Re: [RFC PATCH v2 11/14] x86/watchdog/hardlockup: Add an HPET-based hardlockup detector

2019-04-08 Thread Ricardo Neri
On Fri, Apr 05, 2019 at 04:12:56PM +, Suthikulpanit, Suravee wrote: > Hi Neri, Hi Suravee, Many thanks for testing the patches! > > While trying out this patch series, I found that it does not work when the > HPET timer > is in periodic mode. I should have tested this better. I'll double c

[PATCH V6 3/4] arm64: dts: freescale: imx8qxp: enable scu general irq channel

2019-04-08 Thread Anson Huang
On i.MX8QXP, SCU uses MU1 general interrupt channel #3 to notify user for IRQs of RTC alarm, thermal alarm and WDOG etc., mailbox RX doorbell mode is used for this function, this patch adds support for it. Signed-off-by: Anson Huang Reviewed-by: Dong Aisheng --- No changes. --- arch/arm64/boot/

[PATCH V6 1/4] dt-bindings: fsl: scu: add general interrupt support

2019-04-08 Thread Anson Huang
Add scu general interrupt function support. Signed-off-by: Anson Huang Reviewed-by: Rob Herring Reviewed-by: Dong Aisheng --- No changes. --- .../devicetree/bindings/arm/freescale/fsl,scu.txt | 29 +- 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/Documenta

[PATCH V6 2/4] firmware: imx: enable imx scu general irq function

2019-04-08 Thread Anson Huang
The System Controller Firmware (SCFW) controls RTC, thermal and WDOG etc., these resources' interrupt function are managed by SCU. When any IRQ pending, SCU will notify Linux via MU general interrupt channel #3, and Linux kernel needs to call SCU APIs to get IRQ status and notify each module to han

Re: Thoughts on simple scanner approach for free page hinting

2019-04-08 Thread Michael S. Tsirkin
On Fri, Apr 05, 2019 at 05:09:45PM -0700, Alexander Duyck wrote: > In addition we will need some way to identify which pages have been > hinted on and which have not. The way I believe easiest to do this > would be to overload the PageType value so that we could essentially > have two values for "B

[PATCH V6 4/4] rtc: imx-sc: add rtc alarm support

2019-04-08 Thread Anson Huang
Add i.MX system controller RTC alarm support, the RTC alarm is implemented via SIP(silicon provider) runtime service call and ARM-Trusted-Firmware will communicate with system controller via MU(message unit) IPC to set RTC alarm. When RTC alarm fires, system controller will generate a common MU irq

Re: [PATCH 1/2] mm/gup.c: fix the wrong comments

2019-04-08 Thread Matthew Wilcox
On Tue, Apr 09, 2019 at 09:08:33AM +0800, Huang Shijie wrote: > On Mon, Apr 08, 2019 at 07:13:13AM -0700, Matthew Wilcox wrote: > > On Mon, Apr 08, 2019 at 10:37:45AM +0800, Huang Shijie wrote: > > > The root cause is that sg_alloc_table_from_pages() requires the > > > page order to keep the same a

[PATCH] fat: issue flush after the writeback of FAT

2019-04-08 Thread Hou Tao
fsync() needs to make sure the data & meta-data of file are persistent after the return of fsync(), even when a power-failure occurs later. In the case of fat-fs, the FAT belongs to the meta-data of file, so we need to issue a flush after the writeback of FAT instead before. Also bail out early wh

[PATCH] mtd: rawnand: Add Macronix NAND read retry and randomizer support

2019-04-08 Thread Mason Yang
Add a driver for Macronix NAND read retry and randomizer. Signed-off-by: Mason Yang --- drivers/mtd/nand/raw/nand_macronix.c | 169 +++ 1 file changed, 169 insertions(+) diff --git a/drivers/mtd/nand/raw/nand_macronix.c b/drivers/mtd/nand/raw/nand_macronix.c ind

Re: [PATCH v2] RISC-V: Implement ASID allocator

2019-04-08 Thread Guo Ren
Hi Anup, On Thu, Mar 28, 2019 at 06:32:36AM +, Anup Patel wrote: > This patch is tested on QEMU/virt machine and SiFive Unleashed board. > On QEMU/virt machine, we see 10% (approx) performance improvement with > SW emulated TLBs provided by QEMU. Unfortunately, ASID bits of SATP CSR > are not

Re: [PATCH 1/2] mm/gup.c: fix the wrong comments

2019-04-08 Thread Huang Shijie
On Mon, Apr 08, 2019 at 07:49:29PM -0700, Matthew Wilcox wrote: > On Tue, Apr 09, 2019 at 09:08:33AM +0800, Huang Shijie wrote: > > On Mon, Apr 08, 2019 at 07:13:13AM -0700, Matthew Wilcox wrote: > > > On Mon, Apr 08, 2019 at 10:37:45AM +0800, Huang Shijie wrote: > > > > The root cause is that sg_a

RE: [PATCH V5 4/4] rtc: imx-sc: add rtc alarm support

2019-04-08 Thread Aisheng Dong
[...] > so I will add another API in imx-scu-irq > driver to provide function of enabling/disabling irq, each driver can just > call the > API to enable/disable its own IRQ, ONLY need to pass the corresponding > arguments: > That's exactly what I mean. > > > > > + msg.group = SC_IRQ_GROUP_RTC;

[PATCH V9 5/5] drm/mediatek: no change parent rate in round_rate() for mt2701 hdmi phy

2019-04-08 Thread wangyan wang
From: Wangyan Wang This is the third step to make MT2701 HDMI stable. We should not change the rate of parent for hdmi phy when doing round_rate for this clock. The parent clock of hdmi phy must be the same as it. We change it when doing set_rate only. Signed-off-by: Wangyan Wang --- drivers/g

Re: [PULL 0/4] xtensa fixes for v5.1-rc5

2019-04-08 Thread pr-tracker-bot
The pull request you sent on Mon, 8 Apr 2019 11:01:46 -0700: > git://github.com/jcmvbkbc/linux-xtensa.git tags/xtensa-20190408 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/10d433979f2eb78fa6ef042bf0d7e1c1f3199d4c Thank you! -- Deet-doot-dot, I am a bot. ht

Re: [GIT PULL] TPM fixes for v5.1

2019-04-08 Thread pr-tracker-bot
The pull request you sent on Tue, 9 Apr 2019 09:07:10 +1000 (AEST): > git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security.git > fixes-v5.1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/a556810d8e06aa2da8bbe22da3d105eb5a0d0c7d Thank you! -- Deet-do

Re: [GIT] Networking

2019-04-08 Thread pr-tracker-bot
The pull request you sent on Mon, 08 Apr 2019 19:21:27 -0700 (PDT): > git://git.kernel.org/pub/scm/linux/kernel/git/davem/net.git refs/heads/master has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/869e3305f23dfeacdaa234717c92ccb237815d90 Thank you! -- Deet-doot-dot, I

RE: [PATCH V6 2/4] firmware: imx: enable imx scu general irq function

2019-04-08 Thread Aisheng Dong
> From: Anson Huang > Sent: Tuesday, April 9, 2019 10:43 AM > Subject: [PATCH V6 2/4] firmware: imx: enable imx scu general irq function > > The System Controller Firmware (SCFW) controls RTC, thermal and WDOG etc., > these resources' interrupt function are managed by SCU. When any IRQ > pending,

Re: [PATCH v4 2/2] Input: add Apple SPI keyboard and trackpad driver.

2019-04-08 Thread Life is hard, and then you die
On Mon, Apr 08, 2019 at 03:33:43PM +0300, Andy Shevchenko wrote: > On Sat, Apr 06, 2019 at 10:03:58PM -0700, Ronald Tschalär wrote: > > The keyboard and trackpad on recent MacBook's (since 8,1) and > > MacBookPro's (13,* and 14,*) are attached to an SPI controller instead > > of USB, as previousl

RE: [PATCH V6 4/4] rtc: imx-sc: add rtc alarm support

2019-04-08 Thread Aisheng Dong
> From: Anson Huang > Sent: Tuesday, April 9, 2019 10:44 AM > Subject: [PATCH V6 4/4] rtc: imx-sc: add rtc alarm support > > Add i.MX system controller RTC alarm support, the RTC alarm is implemented > via SIP(silicon provider) runtime service call and ARM-Trusted-Firmware will > communicate with

RE: Issues with i.MX SPI DMA transfers

2019-04-08 Thread Robin Gong
Hi Igor, Please have a try with the attached patches, and revert 25aaa75df1e6, ad0d92d7ba6a , dd4b487b32a3, df07101e1c4a before apply. Besides XCH, tx thresh should be set to 0 , now no failure caught on ecspi5. > -Original Message- > From: Robin Gong > Sent: 2019年4月2日 16:33 > To

Re: [PATCH 2/3] interconnect: qcom: Add QCS404 interconnect provider driver

2019-04-08 Thread Bjorn Andersson
On Mon 08 Apr 07:33 PDT 2019, Georgi Djakov wrote: > On 4/5/19 17:57, Bjorn Andersson wrote: > > On Fri 05 Apr 10:54 +07 2019, Georgi Djakov wrote: > > [..] [..] > >> diff --git a/drivers/interconnect/qcom/qcs404_ids.h > >> b/drivers/interconnect/qcom/qcs404_ids.h > > > > You use these defines in

Re: [PATCH][next] acpi/hmat: fix uninitialized pointer dereference on pointer 'target'

2019-04-08 Thread Nathan Chancellor
On Fri, Apr 05, 2019 at 03:12:15PM +0100, Colin King wrote: > From: Colin Ian King > > The pointer 'target' is not initialized and is only assigned when the > ACPI_HMAT_MEMORY_PD_VALID bit in p->flags is set. There is a later null > check on target that leads to an uninitialized pointer read and

RE: [PATCH v3] pinctrl: imx8mq: Add suspend/resume ops

2019-04-08 Thread Aisheng Dong
> From: Abel Vesa > Sent: Tuesday, April 9, 2019 2:39 AM > > To support pinctl hog restore after LPSR resume back, add the generic > suspend/resume in pinctrl-imx along with the generic pm ops to be used by > platform specific drivers. Then make use of the newly added ops in i.MX8MQ > platform spe

Re: [PATCH v2 0/2] A couple hugetlbfs fixes

2019-04-08 Thread Mike Kravetz
On 4/8/19 12:48 PM, Davidlohr Bueso wrote: > On Thu, 28 Mar 2019, Mike Kravetz wrote: > >> - A BUG can be triggered (not easily) due to temporarily mapping a >> page before doing a COW. > > But you actually _have_ seen it? Do you have the traces? I ask > not because of the patches perse, but bec

RE: [PATCH V6 4/4] rtc: imx-sc: add rtc alarm support

2019-04-08 Thread Anson Huang
Best Regards! Anson Huang > -Original Message- > From: Aisheng Dong > Sent: 2019年4月9日 11:25 > To: Anson Huang ; robh...@kernel.org; > mark.rutl...@arm.com; shawn...@kernel.org; s.ha...@pengutronix.de; > ker...@pengutronix.de; feste...@gmail.com; a.zu...@towertech.it; > alexandre.bell...@

RE: [PATCH V6 2/4] firmware: imx: enable imx scu general irq function

2019-04-08 Thread Anson Huang
Best Regards! Anson Huang > -Original Message- > From: Aisheng Dong > Sent: 2019年4月9日 11:21 > To: Anson Huang ; robh...@kernel.org; > mark.rutl...@arm.com; shawn...@kernel.org; s.ha...@pengutronix.de; > ker...@pengutronix.de; feste...@gmail.com; a.zu...@towertech.it; > alexandre.bell...@

<    2   3   4   5   6   7   8   >