Re: [PATCH 2/2] MIPS: SiByte: Enable swiotlb for SWARM and BigSur

2018-11-06 Thread Christoph Hellwig
Do we really need a new source file just to call swiotlb_init? And if we do that file should have a SPDX header these days. Otherwise looks fine: Reviewed-by: Christoph Hellwig

Re: [PATCH] leds: trigger: Fix sleeping function called from invalid context

2018-11-06 Thread Geert Uytterhoeven
Hi Baolin, On Wed, Nov 7, 2018 at 6:43 AM Baolin Wang wrote: > We will meet below issue due to mutex_lock() is called in interrupt context. > The mutex lock is used to protect the pattern trigger data, but before > changing > new pattern trigger data (pattern values or repeat value) by users,

Re: [PATCH 1/2] MIPS: SiByte: Set 32-bit bus mask for BCM1250 PCI

2018-11-06 Thread Christoph Hellwig
On Wed, Nov 07, 2018 at 12:08:23AM +, Maciej W. Rozycki wrote: > The Broadcom SiByte BCM1250, BCM1125H and BCM1125 SOCs have an onchip > 32-bit PCI host bridge, and the two former SOCs also have an onchip HT > host bridge. The HT host bridge, where present, appears in the PCI >

Re: [PATCH] mm, memory_hotplug: check zone_movable in has_unmovable_pages

2018-11-06 Thread osalvador
On Wed, 2018-11-07 at 08:35 +0100, Michal Hocko wrote: > On Wed 07-11-18 07:35:18, Balbir Singh wrote: > > The check seems to be quite aggressive and in a loop that iterates > > pages, but has nothing to do with the page, did you mean to make > > the check > > > > zone_idx(page_zone(page)) ==

Re: general protection fault in __x86_indirect_thunk_rbx

2018-11-06 Thread syzbot
syzbot has found a reproducer for the following crash on: HEAD commit:d881de30d29e Add linux-next specific files for 20181107 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=169e982540 kernel config:

Re: [PATCH] mm, memory_hotplug: check zone_movable in has_unmovable_pages

2018-11-06 Thread Michal Hocko
On Wed 07-11-18 08:35:48, Michal Hocko wrote: > On Wed 07-11-18 07:35:18, Balbir Singh wrote: > > On Tue, Nov 06, 2018 at 10:55:24AM +0100, Michal Hocko wrote: > > > From: Michal Hocko > > > > > > Page state checks are racy. Under a heavy memory workload (e.g. stress > > > -m 200 -t 2h) it is

Re: [PATCH] mm, memory_hotplug: check zone_movable in has_unmovable_pages

2018-11-06 Thread Michal Hocko
On Wed 07-11-18 07:35:18, Balbir Singh wrote: > On Tue, Nov 06, 2018 at 10:55:24AM +0100, Michal Hocko wrote: > > From: Michal Hocko > > > > Page state checks are racy. Under a heavy memory workload (e.g. stress > > -m 200 -t 2h) it is quite easy to hit a race window when the page is > >

Re: [PATCH next] mtd: maps: physmap: Fix infinite loop crash in ROM type probing

2018-11-06 Thread Ricardo Ribalda Delgado
Hi Boris and Geert On Tue, Nov 6, 2018 at 11:34 PM Boris Brezillon wrote: > > On Tue, 6 Nov 2018 23:19:14 +0100 > Geert Uytterhoeven wrote: > > > Hi Boris, > > > > On Tue, Nov 6, 2018 at 10:58 PM Boris Brezillon > > wrote: > > > On Tue, 6 Nov 2018 22:44:16 +0100 > > > Geert Uytterhoeven

[PATCH v2 1/2] PCI: Add HXT vendor ID and ACS quirk

2018-11-06 Thread Shunyong Yang
Add the HXT vendor ID to pci_ids.h and use it in quirks. As the design of HXT SD4800 ACS feature is the same as QCOM QDF2xxx, pci_quirk_qcom_rp_acs() is reused for SD4800 quirk. cc: Joey Zheng Reviewed-by: Sinan Kaya Signed-off-by: Shunyong Yang --- v2: Add Reviewed-by: Sinan Kaya. v1:

[PATCH v2 2/2] PCI: pciehp: Add HXT quirk for Command Completed errata

2018-11-06 Thread Shunyong Yang
The HXT SD4800 PCI controller does not set the Command Completed bit unless writes to the Slot Command register change "Control" bits. This patch adds SD4800 to the quirk. Cc: Joey Zheng Signed-off-by: Shunyong Yang diff --git a/drivers/pci/hotplug/pciehp_hpc.c

Re: [PATCH 06/24] leds: sc27xx-blt: Use led_compose_name()

2018-11-06 Thread Baolin Wang
Hi Jacek, On 7 November 2018 at 06:07, Jacek Anaszewski wrote: > Switch to using generic LED support for composing LED class > device name. > > Signed-off-by: Jacek Anaszewski > Cc: Xiaotong Lu > Cc: Baolin Wang Thanks for simplifying the code, it can work well for SC27XX LED. Tested-by:

Re: [PATCH 02/24] leds: core: Add support for composing LED class device names

2018-11-06 Thread Baolin Wang
Hi Jacek, On 7 November 2018 at 06:07, Jacek Anaszewski wrote: > Add public led_compose_name() API for composing LED class device > name basing on fwnode_handle data. The function composes device name > according to either a new pattern or the legacy > pattern. The decision on using the >

[PATCH] cpuset: remove set but not used variable 'cs'

2018-11-06 Thread Yi Wang
This fixes the following warning: kernel/cgroup/cpuset.c: In function ‘cpuset_cancel_attach’: kernel/cgroup/cpuset.c:1501:17: warning: variable ‘cs’ set but not used [-Wunused-but-set-variable] struct cpuset *cs; ^ Signed-off-by: Yi Wang --- kernel/cgroup/cpuset.c | 2 -- 1

[PATCH] arm64: fix commit style in the comments

2018-11-06 Thread Peng Hao
Use git commit description style 'commit <12+ chars of sha1> ("")' in the comments. Signed-off-by: Peng Hao --- arch/arm64/kernel/sys32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/kernel/sys32.c b/arch/arm64/kernel/sys32.c index 0f8bcb7..8317a5a 100644

[PATCH] dt-bindings: watchdog: update bindings for MT7629 SoC

2018-11-06 Thread Ryder Lee
This updates dt-binding documentation for MT7629 SoC Signed-off-by: Ryder Lee --- Documentation/devicetree/bindings/watchdog/mtk-wdt.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/watchdog/mtk-wdt.txt

[PATCH] dt-bindings: rng: update bindings for MT7629 SoC

2018-11-06 Thread Ryder Lee
This updates bindings for MT7629 RNG driver. Signed-off-by: Ryder Lee --- Documentation/devicetree/bindings/rng/mtk-rng.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/rng/mtk-rng.txt

Re: [PATCH 1/2] nds32: Fix the missing "fpu_dp" message.

2018-11-06 Thread Greentime Hu
Hi Nylon, Nylon Chen 於 2018年11月7日 週三 下午1:32寫道: > > The "fpu_dp" should be added to hwcap_str table to make sure the cpu features > displayed correctly. > > Signed-off-by: Nylon Chen > --- > arch/nds32/kernel/setup.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git

Re: [PATCH v1 0/4]mm: convert totalram_pages, totalhigh_pages and managed pages to atomic

2018-11-06 Thread Konstantin Khlebnikov
On 06.11.2018 11:43, Arun KS wrote: On 2018-11-06 14:07, Konstantin Khlebnikov wrote: On 06.11.2018 11:30, Arun KS wrote: On 2018-11-06 13:47, Konstantin Khlebnikov wrote: On 06.11.2018 8:38, Arun KS wrote: Any comments? Looks good. Except unclear motivation behind this change. This should

Re: [PATCH 01/24] leds: class: Improve LED and LED flash class registration API

2018-11-06 Thread Baolin Wang
Hi Jacek, On 7 November 2018 at 06:07, Jacek Anaszewski wrote: > Replace of_led_classdev_register() with led_classdev_register_ext(), which > accepts easily extendable struct led_init_data, instead of the fixed > struct device_node argument. The latter can be now passed in a fwnode > property of

Re: [alsa-devel] [PATCH 2/2] ASoC: qdsp6: q6afe-dai: Fix the dai widgets

2018-11-06 Thread Rohit Kumar
Thanks Srinivas for the fix. On 11/6/2018 5:08 PM, Srinivas Kandagatla wrote: For some reason the dapm widgets are incorrectly defined from the start, Not sure how we ended up with such thing. Fix them now! Without this fix the backend dais are always powered up even if there is no active

Re: RFC: userspace exception fixups

2018-11-06 Thread Jethro Beekman
On 2018-11-07 02:17, Andy Lutomirski wrote: On Tue, Nov 6, 2018 at 4:02 PM Sean Christopherson wrote: /* * EEXIT or EENTER faulted. In the latter case, %RAX already holds some * fault indicator, e.g. -EFAULT. */ eexit_or_eenter_fault: ret But userspace wants to know whether it

Re: [PATCH 4/6] mm: introduce page->dma_pinned_flags, _count

2018-11-06 Thread John Hubbard
On 11/6/18 12:41 PM, Dave Chinner wrote: > On Tue, Nov 06, 2018 at 12:00:06PM +0100, Jan Kara wrote: >> On Tue 06-11-18 13:47:15, Dave Chinner wrote: >>> On Mon, Nov 05, 2018 at 04:26:04PM -0800, John Hubbard wrote: On 11/5/18 1:54 AM, Jan Kara wrote: > Hmm, have you tried larger buffer

Re: [PATCH] lib/genaloc: Fix allocation of aligned buffer from non-aligned chunk

2018-11-06 Thread Alexey Skidanov
On 11/7/18 12:15 AM, Andrew Morton wrote: > On Tue, 6 Nov 2018 14:20:53 +0200 Alexey Skidanov > wrote: > >> On success, gen_pool_first_fit_align() returns the bit number such that >> chunk_start_addr + (bit << order) is properly aligned. On failure, >> the bitmap size parameter is returned.

Re: [PATCH v6 1/2] memory_hotplug: Free pages as higher order

2018-11-06 Thread Arun KS
On 2018-11-07 01:38, Michal Hocko wrote: On Tue 06-11-18 21:01:29, Arun KS wrote: On 2018-11-06 19:36, Michal Hocko wrote: > On Tue 06-11-18 11:33:13, Arun KS wrote: > > When free pages are done with higher order, time spend on > > coalescing pages by buddy allocator can be reduced. With > >

Re: [PATCH v1 0/4]mm: convert totalram_pages, totalhigh_pages and managed pages to atomic

2018-11-06 Thread Arun KS
On 2018-11-07 05:52, Andrew Morton wrote: On Fri, 26 Oct 2018 16:30:58 +0530 Arun KS wrote: This series convert totalram_pages, totalhigh_pages and zone->managed_pages to atomic variables. The whole point appears to be removal of managed_page_count_lock, yes? Why? What is the value of

Re: [PATCH] lib/genaloc: Fix allocation of aligned buffer from non-aligned chunk

2018-11-06 Thread Alexey Skidanov
On 11/7/18 12:11 AM, Andrew Morton wrote: > On Tue, 6 Nov 2018 14:20:53 +0200 Alexey Skidanov > wrote: > >> On success, gen_pool_first_fit_align() returns the bit number such that >> chunk_start_addr + (bit << order) is properly aligned. On failure, >> the bitmap size parameter is returned.

Re: [PATCH v4 1/6] tpm: dynamically allocate active_banks array

2018-11-06 Thread Nayna Jain
On 11/06/2018 08:31 PM, Roberto Sassu wrote: This patch removes the hard-coded limit of the active_banks array size. The hard-coded limit in static array active_banks[] represents the maximum possible banks. A TPM might have three banks, but only one bank may be active. To confirm my

Re: [PATCH] KVM/VMX: Check ept_pointer before flushing ept tlb

2018-11-06 Thread Tianyu Lan
Hi Vitaly: Thanks for your review. On 11/6/2018 11:50 PM, Vitaly Kuznetsov wrote: ltyker...@gmail.com writes: From: Lan Tianyu This patch is to initialize ept_pointer to INVALID_PAGE and check it before flushing ept tlb. If ept_pointer is invalidated, bypass the flush request.

Re: [GIT PULL] Qualcomm ARM64 DT updates for 4.20

2018-11-06 Thread Amit Kucheria
On Sun, Oct 28, 2018 at 11:24 PM Amit Kucheria wrote: > > On Thu, Oct 25, 2018 at 9:38 PM Andy Gross wrote: > > > > On Thu, Oct 25, 2018 at 10:55:32AM +0530, Amit Kucheria wrote: > > > > > > > > > Andy, > > > > > > While you acked the tsens thermal DT patches[1] so they could go > > > through

Re: [PATCH RFC] hist lookups

2018-11-06 Thread David Miller
From: Jiri Olsa Date: Tue, 6 Nov 2018 21:42:55 +0100 > I pushed that fix in perf/fixes branch, but I'm still occasionaly > hitting the namespace crash.. working on it ;-) Jiri, how can this new scheme work without setting copy_on_queue for the queued_events we use here? I don't see

Target bindeb-pkg no longer install DTBs

2018-11-06 Thread Nuno Gonçalves
Hi, Since 37c8a5fafa3bb7dcdd51774be353be6cb2912b86 [kbuild: consolidate Devicetree dtb build rules], the target bindeb-pkg no longer installs DTBs in the .deb package. Thanks, Nuno

[PATCH RFC v2 2/4] mm: userfault: return VM_FAULT_RETRY on signals

2018-11-06 Thread Peter Xu
There was a special path in handle_userfault() in the past that we'll return a VM_FAULT_NOPAGE when we detected non-fatal signals when waiting for userfault handling. We did that by reacquiring the mmap_sem before returning. However that brings a risk in that the vmas might have changed when we

[PATCH RFC v2 4/4] mm: gup: allow VM_FAULT_RETRY for multiple times

2018-11-06 Thread Peter Xu
This is the gup counterpart of the change that allows the VM_FAULT_RETRY to happen for more than once. Signed-off-by: Peter Xu --- mm/gup.c | 17 + 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/mm/gup.c b/mm/gup.c index 6faff46cd409..8a0e7f9bd29a 100644 ---

[PATCH RFC v2 0/4] mm: some enhancements to the page fault mechanism

2018-11-06 Thread Peter Xu
(sorry I got the cc list messed up; am sending another one with no change but only to fix the cc list) This is an RFC series as cleanup and enhancements to current page fault logic. The whole idea comes from the discussion between Andrea and Linus on the bug reported by syzbot here:

[PATCH RFC v2 3/4] mm: allow VM_FAULT_RETRY for multiple times

2018-11-06 Thread Peter Xu
The idea comes from a discussion between Linus and Andrea [1]. Before this patch we only allow a page fault to retry once. We achieved this by clearing the FAULT_FLAG_ALLOW_RETRY flag when doing handle_mm_fault() the second time. This was majorly used to avoid unexpected starvation of the

[PATCH RFC v2 1/4] mm: gup: rename "nonblocking" to "locked" where proper

2018-11-06 Thread Peter Xu
There's plenty of places around __get_user_pages() that has a parameter "nonblocking" which does not really mean that "it won't block" (because it can really block) but instead it shows whether the mmap_sem is released by up_read() during the page fault handling mostly when VM_FAULT_RETRY is

[PATCH] leds: trigger: Fix sleeping function called from invalid context

2018-11-06 Thread Baolin Wang
We will meet below issue due to mutex_lock() is called in interrupt context. The mutex lock is used to protect the pattern trigger data, but before changing new pattern trigger data (pattern values or repeat value) by users, we always cancel the timer firstly to clear previous patterns'

[PATCHv3 4/4] arm64: dts: layerscape: removed compatible string "snps,dw-pcie"

2018-11-06 Thread Z.q. Hou
From: Hou Zhiqiang Removed the wrong compatible string "snps,dw-pcie", in case match incorrect driver. Signed-off-by: Hou Zhiqiang --- V3: - Reworded the subject. arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi | 2 +- arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi | 6 +++---

[PATCHv3 2/4] dt-bindings: pci: layerscape-pci: removed compatible string "snps,dw-pcie"

2018-11-06 Thread Z.q. Hou
From: Hou Zhiqiang Removed the compatible string "snps,dw-pcie", it is for the reference platform driver for PCI RC IP Protoyping Kits based on the ARC SDP, so it is not suitable for all platform with designware PCIe controller, and platform vendors have themselves' drivers. The compatible

[PATCHv3 3/4] ARM: dts: ls1021a: removed compatible string "snps,dw-pcie"

2018-11-06 Thread Z.q. Hou
From: Hou Zhiqiang Removed the wrong compatible string "snps,dw-pcie", in case match incorrect driver. Signed-off-by: Hou Zhiqiang --- V3: - Reworded the subject. arch/arm/boot/dts/ls1021a.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCHv3 0/4] dts/layerscape-pci: removed unsuitable compatible string

2018-11-06 Thread Z.q. Hou
From: Hou Zhiqiang Removed the compatible string "snps,dw-pcie" from FSL layerscape-pci compatible string list. Hou Zhiqiang (4): dt-bindings: pci: layerscape-pci: add compatible strings "fsl,ls1043a-pcie" dt-bindings: pci: layerscape-pci: removed compatible string "snps,dw-pcie"

[PATCHv3 1/4] dt-bindings: pci: layerscape-pci: add compatible strings "fsl,ls1043a-pcie"

2018-11-06 Thread Z.q. Hou
From: Hou Zhiqiang The PCIe compatible string for LS1043A was lost, so add it. Signed-off-by: Hou Zhiqiang Reviewed-by: Rob Herring --- V3: - no change Documentation/devicetree/bindings/pci/layerscape-pci.txt | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH 1/2] nds32: Fix the missing "fpu_dp" message.

2018-11-06 Thread Nylon Chen
The "fpu_dp" should be added to hwcap_str table to make sure the cpu features displayed correctly. Signed-off-by: Nylon Chen --- arch/nds32/kernel/setup.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/nds32/kernel/setup.c b/arch/nds32/kernel/setup.c index eacc79024879..e39274a21481

[PATCH 2/2] nds32: support hardware prefetcher

2018-11-06 Thread Nylon Chen
We add a config for user to enable or disable this feature. It can be used to control the hardware prefetch function. Signed-off-by: Nylon Chen --- arch/nds32/Kconfig.cpu| 7 +++ arch/nds32/include/asm/bitfield.h | 6 ++ arch/nds32/kernel/head.S | 2 +-

BUG: unable to handle kernel paging request in locks_remove_file

2018-11-06 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:d881de30d29e Add linux-next specific files for 20181107 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=1103882b40 kernel config: https://syzkaller.appspot.com/x/.config?x=caa433e1c8778437

[PATCH] ARM: dts: imx7d-sdb: add rev-a board support

2018-11-06 Thread Anson Huang
Current imx7d-sdb.dts has some incorrect settings about Rev-A and Rev-B boards, some of the settings are based on Rev-A board but some are based on Rev-B board, clean up it by adding i.MX7D SDB Rev-A board support, make default imx7d-sdb.dts for Rev-B board as usual, and introduce

[PATCHv2] PCI/Layerscape: fix wrongly invoking of outbound window disable accessor

2018-11-06 Thread Z.q. Hou
From: Hou Zhiqiang The order of parameters is not correct when invoking the outbound window disable routine. Fixes: commit 4a2745d760fac ("PCI: layerscape: Disable outbound windows configured by bootloader"). Cc: sta...@vger.kernel.org Signed-off-by: Hou Zhiqiang --- V2: - Tagged this patch

KASAN: stack-out-of-bounds Read in locks_remove_flock

2018-11-06 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:d881de30d29e Add linux-next specific files for 20181107 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=14aa485d40 kernel config: https://syzkaller.appspot.com/x/.config?x=caa433e1c8778437

KASAN: use-after-free Read in locks_remove_flock

2018-11-06 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:d881de30d29e Add linux-next specific files for 20181107 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=16e42f5b40 kernel config: https://syzkaller.appspot.com/x/.config?x=caa433e1c8778437

general protection fault in __x86_indirect_thunk_rbx

2018-11-06 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:d881de30d29e Add linux-next specific files for 20181107 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=10ae982540 kernel config: https://syzkaller.appspot.com/x/.config?x=caa433e1c8778437

general protection fault in locks_remove_flock

2018-11-06 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:d881de30d29e Add linux-next specific files for 20181107 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=1594d98340 kernel config: https://syzkaller.appspot.com/x/.config?x=caa433e1c8778437

[PATCH 2/2] arm64: dts: mt7622: fix console output issue on BPI-R64 board

2018-11-06 Thread Ryder Lee
Fix this by using a 'stdout-path' property that points to the device. Fixes: 0b6286dd96c0 ("arm64: dts: mt7622: add bananapi BPI-R64 board") Cc: sta...@vger.kernel.org Signed-off-by: Ryder Lee --- arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts | 7 ++- 1 file changed, 6

[PATCH 1/2] arm64: dts: mt7622: fix console output issue on rfb1

2018-11-06 Thread Ryder Lee
The issue was introduced by Kernel CI: https://kernelci.org/boot/id/5bbdcbad59b5146fc5b43592/ Fix this by using a 'stdout-path' property that points to the device. Fixes: c0d9f9ad4f76 ("arm64: dts: mt7622: add earlycon to mt7622-rfb1 board") Cc: sta...@vger.kernel.org Signed-off-by: Ryder Lee

Re: [PATCH] ACPI / battery: Fix reporting "Not charging" when capacity is 100%

2018-11-06 Thread Daniel Drake
On Mon, Nov 5, 2018 at 1:19 AM Pavel Machek wrote: > Plus, I don't think "100% charge" is right test for "battery full". At > least on thinkpads, there's configuration option, and it is common > _not_ to charge batterry above 95% or so (to increase its lifetime). Hans also touched on this area

RE: [PATCH] PCI/Layerscape: fix wrongly invoking of outbound window disable accessor

2018-11-06 Thread Z.q. Hou
Hi Bjorn, Thanks a lot for your guide! I'll tag it for stable in v2. Thanks, Zhiqiang > -Original Message- > From: Bjorn Helgaas > Sent: 2018年10月30日 0:31 > To: Z.q. Hou > Cc: linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; > bhelg...@google.com; lorenzo.pieral...@arm.com; Roy

Re: [PATCH 4/6] drivers: base: Introducing software nodes to the firmware node framework

2018-11-06 Thread Dan Carpenter
Hi Heikki, url: https://github.com/0day-ci/linux/commits/Heikki-Krogerus/device-property-Introducing-software-nodes/20181106-031310 smatch warnings: drivers/base/swnode.c:391 fwnode_create_software_node() error: dereferencing freed memory 'swnode' # https://github.com/0day-ci/linux/commit

[PATCH 1/2] opp: ti-opp-supply: Dynamically update u_volt_min

2018-11-06 Thread Keerthy
The voltage range (min, max) provided in the device tree is from the data manual and is pretty big, catering to a wide range of devices. On a i2c read/write failure the regulator_set_voltage_triplet function falls back to set voltage between min and max. The min value from Device Tree can be

[PATCH 2/2] opp: ti-opp-supply: Correct the supply in _get_optimal_vdd_voltage call

2018-11-06 Thread Keerthy
_get_optimal_vdd_voltage call provides new_supply_vbb->u_volt as the reference voltage while it should be really new_supply_vdd->u_volt. Fixes: 9a835fa6e47 ("PM / OPP: Add ti-opp-supply driver") Signed-off-by: Keerthy --- drivers/opp/ti-opp-supply.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 0/2] opp: ti-opp-supply: Fixes

2018-11-06 Thread Keerthy
The series brings in couple of fixes to the ti-opp-supply driver. One of them updates u_volt_min dynamically and avoids hang due to lesser static u_volt_min and the other fixes the supply in _get_optimal_vdd_voltage. Keerthy (2): power: opp: ti-opp-supply: Dynamically update u_volt_min power:

RE: [PATCH v2 4/4] dts/arm64/layerscape: Clean PCIe controller compatible strings

2018-11-06 Thread Z.q. Hou
Hi Leo, Thanks a lot for your comments! > -Original Message- > From: Li Yang > Sent: 2018年10月27日 5:01 > To: Z.q. Hou > Cc: moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE > ; lkml ; > linux-...@vger.kernel.org; open list:OPEN FIRMWARE AND FLATTENED > DEVICE TREE BINDINGS ; Rob

RE: [PATCH v2 3/4] dts/arm/ls1021a: Clean PCIe controller compatible strings

2018-11-06 Thread Z.q. Hou
Hi Leo, Thanks a lot for your comments! > -Original Message- > From: Li Yang > Sent: 2018年10月27日 4:58 > To: Z.q. Hou > Cc: moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE > ; lkml ; > linux-...@vger.kernel.org; open list:OPEN FIRMWARE AND FLATTENED > DEVICE TREE BINDINGS ; Rob

[PATCH 22/23] SUNRPC: simplify auth_unix.

2018-11-06 Thread NeilBrown
1/ discard 'struct unx_cred'. We don't need any data that is not already in 'struct rpc_cred'. 2/ Don't keep these creds in a hash table. When a credential is needed, simply allocate it. When not needed, discard it. This can easily be faster than performing a lookup on a shared hash

[PATCH 21/23] SUNRPC: remove crbind rpc_cred operation

2018-11-06 Thread NeilBrown
This now always just does get_rpccred(), so we don't need an operation pointer to know to do that. Signed-off-by: NeilBrown --- include/linux/sunrpc/auth.h|2 -- net/sunrpc/auth.c | 12 +--- net/sunrpc/auth_gss/auth_gss.c |2 -- net/sunrpc/auth_null.c

[PATCH 19/23] NFS/NFSD/SUNRPC: replace generic creds with 'struct cred'.

2018-11-06 Thread NeilBrown
SUNRPC has two sorts of credentials, both of which appear as "struct rpc_cred". There are "generic credentials" which are supplied by clients such as NFS and passed in 'struct rpc_message' to indicate which user should be used to authorize the request, and there are low-level credentials such as

[PATCH 23/23] SUNRPC discard cr_uid from struct rpc_cred.

2018-11-06 Thread NeilBrown
Just use ->cr_cred->fsuid directly. Signed-off-by: NeilBrown --- include/linux/sunrpc/auth.h|2 -- net/sunrpc/auth.c |1 - net/sunrpc/auth_gss/auth_gss.c | 12 ++-- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/include/linux/sunrpc/auth.h

[PATCH 20/23] SUNRPC: remove generic cred code.

2018-11-06 Thread NeilBrown
This is no longer used. Signed-off-by: NeilBrown --- include/linux/sunrpc/auth.h |6 - net/sunrpc/Makefile |2 net/sunrpc/auth.c | 18 net/sunrpc/auth_generic.c | 199 --- net/sunrpc/auth_null.c |2 5 files

[PATCH 14/23] SUNRPC: add side channel to use non-generic cred for rpc call.

2018-11-06 Thread NeilBrown
The credential passed in rpc_message.rpc_cred is always a generic credential except in one instance. When gss_destroying_context() calls rpc_call_null(), it passes a specific credential that it needs to destroy. In this case the RPC acts *on* the credential rather than being authorized by it.

[PATCH 12/23] NFS/SUNRPC: don't lookup machine credential until rpcauth_bindcred().

2018-11-06 Thread NeilBrown
When NFS creates a machine credential, it is a "generic" credential, not tied to any auth protocol, and is really just a container for the princpal name. This doesn't get linked to a genuine credential until rpcauth_bindcred() is called. The lookup always succeeds, so various places that test if

[PATCH 17/23] NFS: change access cache to use 'struct cred'.

2018-11-06 Thread NeilBrown
Rather than keying the access cache with 'struct rpc_cred', use 'struct cred'. Then use cred_fscmp() to compare credentials rather than comparing the raw pointer. A benefit of this approach is that in the common case we avoid the rpc_lookup_cred_nonblock() call which can be slow when the cred

[PATCH 16/23] SUNRPC: remove RPCAUTH_AUTH_NO_CRKEY_TIMEOUT

2018-11-06 Thread NeilBrown
This is no longer used. Signed-off-by: NeilBrown --- include/linux/sunrpc/auth.h |3 --- net/sunrpc/auth_null.c |1 - net/sunrpc/auth_unix.c |1 - 3 files changed, 5 deletions(-) diff --git a/include/linux/sunrpc/auth.h b/include/linux/sunrpc/auth.h index

[PATCH 15/23] NFS: move credential expiry tracking out of SUNRPC into NFS.

2018-11-06 Thread NeilBrown
NFS needs to know when a credential is about to expire so that it can modify write-back behaviour to finish the write inside the expiry time. It currently uses functions in SUNRPC code which make use of a fairly complex callback scheme and flags in the generic credientials. As I am working to

[PATCH 18/23] NFS: struct nfs_open_dir_context: convert rpc_cred pointer to cred.

2018-11-06 Thread NeilBrown
Use the common 'struct cred' to pass credentials for readdir. Signed-off-by: NeilBrown --- fs/nfs/dir.c| 15 +-- fs/nfs/nfs3proc.c | 11 +-- fs/nfs/nfs4proc.c | 13 ++--- fs/nfs/proc.c | 11 +-- include/linux/nfs_fs.h

[PATCH 13/23] SUNRPC: introduce RPC_TASK_NULLCREDS to request auth_none

2018-11-06 Thread NeilBrown
In almost all cases the credential stored in rpc_message.rpc_cred is a "generic" credential. One of the two expections is when an AUTH_NULL credential is used such as for RPC ping requests. To improve consistency, don't pass an explicit credential in these cases, but instead pass NULL and set a

[PATCH 07/23] SUNRPC: remove uid and gid from struct auth_cred

2018-11-06 Thread NeilBrown
Use cred->fsuid and cred->fsgid instead. Signed-off-by: NeilBrown --- fs/nfs/flexfilelayout/flexfilelayout.c | 14 -- fs/nfsd/nfs4callback.c |6 ++ include/linux/sunrpc/auth.h|3 --- net/sunrpc/auth.c |6 +-

[PATCH 11/23] SUNRPC: discard RPC_DO_ROOTOVERRIDE()

2018-11-06 Thread NeilBrown
it is never used. Signed-off-by: NeilBrown --- include/linux/sunrpc/sched.h |1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/sunrpc/sched.h b/include/linux/sunrpc/sched.h index 7b540c066594..f542dad8d4ab 100644 --- a/include/linux/sunrpc/sched.h +++

[PATCH 10/23] NFSv4: don't require lock for get_renew_cred or get_machine_cred

2018-11-06 Thread NeilBrown
This lock is no longer necessary. If nfs4_get_renew_cred() needs to hunt through the open-state creds for a user cred, it still takes the lock to stablize the rbtree, but otherwise there are no races. Note that this completely removes the lock from nfs4_renew_state(). It appears that the

[PATCH 09/23] NFSv4: add cl_root_cred for use when machine cred is not available.

2018-11-06 Thread NeilBrown
NFSv4 state management tries a root credential when no machine credential is available, as can happen with kerberos. It does this by replacing the cl_machine_cred with a root credential. This means that any user of the machine credential needs to take a lock while getting a reference to the

[PATCH 06/23] SUNRPC: remove groupinfo from struct auth_cred.

2018-11-06 Thread NeilBrown
We can use cred->groupinfo (from the 'struct cred') instead. Signed-off-by: NeilBrown --- fs/nfs/flexfilelayout/flexfilelayout.c | 14 +- include/linux/sunrpc/auth.h|1 - net/sunrpc/auth.c |1 - net/sunrpc/auth_generic.c | 17

[PATCH 05/23] SUNRPC: add 'struct cred *' to auth_cred and rpc_cred

2018-11-06 Thread NeilBrown
The SUNRPC credential framework was put together before Linux has 'struct cred'. Now that we have it, it makes sense to use it. This first step just includes a suitable 'struct cred *' pointer in every 'struct auth_cred' and almost every 'struct rpc_cred'. The rpc_cred used for auth_null has a

[PATCH 08/23] SUNRPC: remove machine_cred field from struct auth_cred

2018-11-06 Thread NeilBrown
The cred is a machine_cred iff ->principal is set, so there is no need for the extra flag. There is one case which deserves some explanation. nfs4_root_machine_cred() calls rpc_lookup_machine_cred() with a NULL principal name which results in not getting a machine credential, but getting a root

[PATCH 02/23] cred: add get_cred_rcu()

2018-11-06 Thread NeilBrown
Sometimes we want to opportunistically get a ref to a cred in an rcu_read_lock protected section. get_task_cred() does this, and NFS does as similar thing with its own credential structures. To prepare for NFS converting to use 'struct cred' more uniformly, define get_cred_rcu(), and use it in

[PATCH 00/23 - V4] NFS: Remove generic RPC credentials.

2018-11-06 Thread NeilBrown
This is an updated version of a series I sent in Feb of this year. Since then there have only been minor improvement and updates to sync with the changing kernel. There doesn't seem to be a maintainer for the 'cred' code, so I don't know who to ask to approve the first 4 patches. Maybe if the

[PATCH 04/23] cred: allow get_cred() and put_cred() to be given NULL.

2018-11-06 Thread NeilBrown
It is common practice for helpers like this to silently, accept a NULL pointer. get_rpccred() and put_rpccred() used by NFS act this way and using the same interface will ease the conversion for NFS, and simplify the resulting code. Signed-off-by: NeilBrown --- include/linux/cred.h | 14

[PATCH 01/23] cred: add cred_fscmp() for comparing creds.

2018-11-06 Thread NeilBrown
NFS needs to compare to credentials, to see if they can be treated the same w.r.t. filesystem access. Sometimes an ordering is needed when credentials are used as a key to an rbtree. NFS currently has its own private credential management from before 'struct cred' existed. To move it over to

[PATCH 03/23] cred: export get_task_cred().

2018-11-06 Thread NeilBrown
There is no reason that modules should not be able to use this, and NFS will need it when converted to use 'struct cred'. Signed-off-by: NeilBrown --- kernel/cred.c |1 + 1 file changed, 1 insertion(+) diff --git a/kernel/cred.c b/kernel/cred.c index ba60162249e8..21f4a97085b4 100644 ---

Re: [PATCH] Revert "scripts/setlocalversion: git: Make -dirty check more robust"

2018-11-06 Thread Brian Norris
On Tue, Nov 6, 2018 at 6:58 PM Christian Kujau wrote: > FWIW, the issue I reported back in 2013[0] was not an ill-configured NFS > export, but a read-only NFS export (and then a read-write exported NFS > export, but the user compiling the kernel did not have write permission) > and so "test -w

[PATCH 2/2] hwmon: (adt7475): add support for inverting the pwm output

2018-11-06 Thread Chris Packham
Add a "invert-pwm" device-tree property to allow hardware designs to use inverted logic on the PWM output. We intentionally preserve the invert PWM output bit if the property is not found to allow for bootloaders/bios which may have configured this earlier. Signed-off-by: Chris Packham ---

[PATCH 1/2] dt-bindings: hwmon: add binding documentation for adt7475

2018-11-06 Thread Chris Packham
With the addition of the invert-pwm property the adt7475 needs its own binding documentation rather being captured under trivial-devices.txt. Signed-off-by: Chris Packham --- .../devicetree/bindings/hwmon/adt7475.txt | 22 +++ .../devicetree/bindings/trivial-devices.txt |

[RFC PATCH] ptrace: add PTRACE_GET_SYSCALL_INFO request

2018-11-06 Thread Elvira Khabirova
PTRACE_GET_SYSCALL_INFO lets ptracer obtain details of the syscall the tracee is blocked in. The request returns meaningful data only when the tracee is in a syscall-enter-stop or a syscall-exit-stop. There are two reasons for a special syscall-related ptrace request. Firstly, with the current

Re: Question: perf dso support for /proc/kallsyms

2018-11-06 Thread leo . yan
On Fri, Nov 02, 2018 at 10:55:16AM +0800, Leo Yan wrote: > Hi all, > > Now I found that if use the command 'perf script' for Arm CoreSight trace > data, it fails to parse kernel symbols if we don't specify kernel vmlinux > file. So when we don't specify kernel symbol files then perf tool will >

Re: [PATCH] fs/proc: introduce /proc/stat2 file

2018-11-06 Thread Davidlohr Bueso
On Tue, 06 Nov 2018, Andrew Morton wrote: It would be interesting to know precisely which stat fields the database-which-shall-not-be-named is looking for. Then we could cook up a very whizzy way of getting at the info. The ctxt field, afaik. In any case they have been able to work around

[PATCH] x86/irq: fix build warning in irq.c

2018-11-06 Thread Yi Wang
This fixes the following warnings: arch/x86/kernel/irq.c:270:28: warning: no previous prototype for ‘smp_x86_platform_ipi’ [-Wmissing-prototypes] __visible void __irq_entry smp_x86_platform_ipi(struct pt_regs *regs) ^ arch/x86/kernel/irq.c:301:16: warning: no previous

Re: [PATCH v14 1/2] leds: core: Introduce LED pattern trigger

2018-11-06 Thread Baolin Wang
Hi Geert, On 6 November 2018 at 23:57, Geert Uytterhoeven wrote: > Hi Baolin, > > On Tue, Oct 2, 2018 at 6:39 PM Baolin Wang wrote: >> This patch adds one new led trigger that LED device can configure >> the software or hardware pattern and trigger it. >> >> Consumers can write 'pattern' file

Re: [PATCH 3/3] coresight: etm3x: Release CLAIM tag when operated from perf

2018-11-06 Thread leo . yan
Hi Mathieu, On Mon, Nov 05, 2018 at 03:26:30PM -0700, Mathieu Poirier wrote: > This patch deals with the release of the CLAIM tag when the ETM is > operated from perf. Otherwise the tag is left asserted and subsequent > requests to use the device fail. > > Signed-off-by: Mathieu Poirier > ---

Re: [PATCH] PCI: mediatek: Use devm_of_pci_get_host_bridge_resources() to parse DT

2018-11-06 Thread Honghui Zhang
On Fri, 2018-11-02 at 14:36 +0800, Ryder Lee wrote: > On Thu, 2018-10-18 at 11:23 +0800, Honghui Zhang (张洪辉) wrote: > > From: Honghui Zhang > > > > Use the devm_of_pci_get_host_bridge_resources() API in place of the PCI OF > > DT parser. > > > > Signed-off-by: Honghui Zhang > > --- > >

linux-next: Tree for Nov 7

2018-11-06 Thread Stephen Rothwell
Hi all, Changes since 20181106: New trees: slimbus, nvmem The tip tree still had its build failure for which I applied a fix patch. Non-merge commits (relative to Linus' tree): 1408 1540 files changed, 69938 insertions(+), 65849 deletions

Re: [PATCH] Revert "scripts/setlocalversion: git: Make -dirty check more robust"

2018-11-06 Thread Guenter Roeck
On 11/6/18 6:58 PM, Christian Kujau wrote: On Tue, 6 Nov 2018, Brian Norris wrote: Perhaps both scenarios could be satisfied by having scripts/setlocalversion first check if .git has write permissions, and acting accordingly. Looking into history, this actually used to be done, but cdf2bc632ebc

Re: [PATCH] Revert "scripts/setlocalversion: git: Make -dirty check more robust"

2018-11-06 Thread Christian Kujau
On Tue, 6 Nov 2018, Brian Norris wrote: > > Perhaps both scenarios could be satisfied by having > > scripts/setlocalversion first check if .git has write permissions, and > > acting accordingly. Looking into history, this actually used to be > > done, but cdf2bc632ebc ("scripts/setlocalversion on

RE: [PATCH RESEND V4 0/9] clk: add imx7ulp clk support

2018-11-06 Thread A.s. Dong
> -Original Message- > From: Leonard Crestez > Sent: Tuesday, November 6, 2018 11:34 PM [...] > > On Tue, 2018-11-06 at 15:30 +, A.s. Dong wrote: > > Gently Ping... > > > drivers/clk/imx/clk-composite.c| 85 + > > During review for 8m clocks a separate

Re: [PATCH RFC 2/3] mmc: sdhci-omap: Add using external dma

2018-11-06 Thread Chunyan Zhang
On Tue, 6 Nov 2018 at 20:51, Arnd Bergmann wrote: > > On 11/5/18, Kishon Vijay Abraham I wrote: > > On 05/11/18 8:46 AM, Chunyan Zhang wrote: > >> > >> +sdhci_switch_extdma(host, true); > > > > A number of devices using sdhci-omap supports ADMA. So switching to > > external > > DMA shouldn't

  1   2   3   4   5   6   7   8   >