Re: [PATCH] irqchip/gic-v3-its: Add early memory allocation errata

2018-10-05 Thread Richter, Robert
On 05.10.18 16:13:48, Matthias Brugger wrote: > On 05/10/2018 15:42, Marc Zyngier wrote: > > On 05/10/18 13:33, Matthias Brugger wrote: > >> With my distribution head on, I would prefer a solution that does not > >> change > >> FORCE_MAX_ZONEORDER. That's how I came to the idea providing a third

[PATCH v1 11/11] regulator: core: Properly handle case where supply is the couple

2018-10-05 Thread Dmitry Osipenko
Check whether supply regulator is the couple to avoid infinite recursion during of locking. Signed-off-by: Dmitry Osipenko --- drivers/regulator/core.c | 19 +-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c

[PATCH v1 07/11] dt-bindings: regulator: Document new regulator-max-step-microvolt property

2018-10-05 Thread Dmitry Osipenko
Certain hardware may require supply voltage to be changed in steps. Define new property that allow to describe such hardware. Signed-off-by: Dmitry Osipenko --- Documentation/devicetree/bindings/regulator/regulator.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH v1 03/11] regulator: core: Mutually resolve regulators coupling

2018-10-05 Thread Dmitry Osipenko
If registered regulator found a couple, then the couple can find the registered regulator too and hence coupling can be mutually resolved at the registration time. Signed-off-by: Dmitry Osipenko --- drivers/regulator/core.c | 54 +--- 1 file changed, 17

[PATCH v1 10/11] regulator: core: Use ww_mutex for regulators locking

2018-10-05 Thread Dmitry Osipenko
Wait/wound mutex shall be used in order to avoid lockups on locking of coupled regulators. Signed-off-by: Dmitry Osipenko Suggested-by: Lucas Stach --- drivers/regulator/core.c | 401 +++ include/linux/regulator/driver.h | 3 +- 2 files changed, 307

Re: [GIT PULL] for-next updates for soc/fsl drivers for v4.20 take 2

2018-10-05 Thread Arnd Bergmann
On Thu, Oct 4, 2018 at 6:47 PM Li Yang wrote: > > Hi arm-soc maintainers, > > Please merge the following updates for next. > > PS. One of the patches is depending on the last pull request for fixes to > build > https://patchwork.kernel.org/patch/10622883/ > I didn't include the fix patches

[PATCH v1 09/11] regulator: core: Decouple regulators on regulator_unregister()

2018-10-05 Thread Dmitry Osipenko
Regulators shall be uncoupled if one of the couples disappear. Signed-off-by: Dmitry Osipenko --- drivers/regulator/core.c | 38 ++ 1 file changed, 38 insertions(+) diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index

[PATCH v1 05/11] dt-bindings: regulator: Change regulator-coupled-max-spread property

2018-10-05 Thread Dmitry Osipenko
Redefine binding for regulator-coupled-max-spread property in a way that max-spread values are defined per regulator couple instead of defining single max-spread for the whole group of coupled regulators. With that change the following regulators coupling configuration will be possible: regA:

[PATCH v1 06/11] regulator: core: Limit regulators coupling to a single couple

2018-10-05 Thread Dmitry Osipenko
Device tree binding was changed in a way that now max-spread values must be defied per regulator pair. Limit number of pairs in order to adapt to the new binding without changing regulators code. Signed-off-by: Dmitry Osipenko --- include/linux/regulator/driver.h | 2 +- 1 file changed, 1

[PATCH v1 04/11] regulator: core: Don't allow to get regulator until all couples resolved

2018-10-05 Thread Dmitry Osipenko
Don't allow to get regulator until all of its couples resolved because consumer will get EPERM and coupling shall be transparent for the drivers. Signed-off-by: Dmitry Osipenko --- drivers/regulator/core.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/regulator/core.c

[PATCH v1 08/11] regulator: core: Add new max_uV_step constraint

2018-10-05 Thread Dmitry Osipenko
On NVIDIA Tegra30 there is a requirement for regulator "A" to have voltage higher than voltage of regulator "B" by N microvolts, the N value changes depending on the voltage of regulator "B". This is similar to min-spread between voltages of regulators, the difference is that the spread value

[PATCH v1 00/11] Continuing the work on coupled regulators

2018-10-05 Thread Dmitry Osipenko
Hello, Maciej moved on to work on something else and kindly allowed me to take over the coupled regulators patches [0] which I'll try to finalize. I recently started to work on adding DVFS support to the CPUFreq driver of NVIDIA Tegra20/30 which require the coupled regulators functionality. Both

Re: [PATCH v9 2/3]: perf record: enable asynchronous trace writing

2018-10-05 Thread Alexey Budankov
Hi, On 05.10.2018 14:50, Alexey Budankov wrote: > > According to docs [1] ftruncate() does not advance file pos > which is essential here. > Ideally, the both lseek() syscalls in every loop iteration can be replaced by the only two syscalls just before and after the loop and advancing

[PATCH AUTOSEL 4.18 32/48] hwmon: (nct6775) Fix RPM output for fan7 on NCT6796D

2018-10-05 Thread Sasha Levin
From: Guenter Roeck [ Upstream commit f6de298806d9cbc63a4907bca34a06162b9d7dce ] fan7 on NCT6796D does not have a fan count register; it only has an RPM register. Switch to using RPM registers to read the fan speed for all chips supporting it to solve the problem for good. Reported-by: Robert

[PATCH AUTOSEL 4.18 47/48] ubifs: Check for name being NULL while mounting

2018-10-05 Thread Sasha Levin
From: Richard Weinberger [ Upstream commit 37f31b6ca4311b94d985fb398a72e5399ad57925 ] The requested device name can be NULL or an empty string. Check for that and refuse to continue. UBIFS has to do this manually since we cannot use mount_bdev(), which checks for this condition. Fixes:

[PATCH] [v2] interconnect: fix build error without DEBUGFS

2018-10-05 Thread Arnd Bergmann
The previous fix was incorrect, and now we get a build failure without CONFIG_DEBUG_FS: drivers/interconnect/core.c: In function 'icc_init': drivers/interconnect/core.c:710:32: error: 'icc_summary_fops' undeclared (first use in this function) Removing the last #ifdef as well makes it all work

[PATCH AUTOSEL 4.18 39/48] hv_netvsc: pair VF based on serial number

2018-10-05 Thread Sasha Levin
From: Stephen Hemminger [ Upstream commit 00d7ddba1143623b31bc2c15d18216e2da031b14 ] Matching network device based on MAC address is problematic since a non VF network device can be creted with a duplicate MAC address causing confusion and problems. The VMBus API does provide a serial number

[PATCH AUTOSEL 4.18 40/48] clk: x86: add "ether_clk" alias for Bay Trail / Cherry Trail

2018-10-05 Thread Sasha Levin
From: Hans de Goede [ Upstream commit b1e3454d39f992e5409cd19f97782185950df6e7 ] Commit d31fd43c0f9a ("clk: x86: Do not gate clocks enabled by the firmware") causes all unclaimed PMC clocks on Cherry Trail devices to be on all the time, resulting on the device not being able to reach S0i2 or

[PATCH AUTOSEL 4.18 46/48] drm/amdkfd: Fix ATS capablity was not reported correctly on some APUs

2018-10-05 Thread Sasha Levin
From: Yong Zhao [ Upstream commit 44d8cc6f1a905e4bb1d4221a898abb0d7e9d100a ] Because CRAT_CU_FLAGS_IOMMU_PRESENT was not set in some BIOS crat, we need to workaround this. For future compatibility, we also overwrite the bit in capability according to the value of needs_iommu_device. Acked-by:

[PATCH AUTOSEL 4.18 42/48] pinctrl: cannonlake: Fix gpio base for GPP-E

2018-10-05 Thread Sasha Levin
From: Simon Detheridge [ Upstream commit 8e2aac333785f91ff74e219a1e78e6bdc1ef2c41 ] The gpio base for GPP-E was set incorrectly to 258 instead of 256, preventing the touchpad working on my Tong Fang GK5CN5Z laptop. Buglink: https://bugzilla.kernel.org/show_bug.cgi?id=200787 Signed-off-by:

[PATCH AUTOSEL 4.18 41/48] clk: x86: Stop marking clocks as CLK_IS_CRITICAL

2018-10-05 Thread Sasha Levin
From: Hans de Goede [ Upstream commit 648e921888ad96ea3dc922739e96716ad3225d7f ] Commit d31fd43c0f9a ("clk: x86: Do not gate clocks enabled by the firmware"), which added the code to mark clocks as CLK_IS_CRITICAL, causes all unclaimed PMC clocks on Cherry Trail devices to be on all the time,

[PATCH AUTOSEL 4.18 43/48] x86/kvm/lapic: always disable MMIO interface in x2APIC mode

2018-10-05 Thread Sasha Levin
From: Vitaly Kuznetsov [ Upstream commit d1766202779e81d0f2a94c4650a6ba31497d369d ] When VMX is used with flexpriority disabled (because of no support or if disabled with module parameter) MMIO interface to lAPIC is still available in x2APIC mode while it shouldn't be (kvm-unit-tests): PASS:

[PATCH AUTOSEL 4.18 11/48] selftests/efivarfs: add required kernel configs

2018-10-05 Thread Sasha Levin
From: Lei Yang [ Upstream commit 53cf59d6c0ad3edc4f4449098706a8f8986258b6 ] add config file Signed-off-by: Lei Yang Signed-off-by: Shuah Khan (Samsung OSG) Signed-off-by: Sasha Levin --- tools/testing/selftests/efivarfs/config | 1 + 1 file changed, 1 insertion(+) create mode 100644

Re: [PATCH v3] tools/lib/traceevent: Replace str_error_r() with an open coded implementation

2018-10-05 Thread Colin McCabe
Hmm. Did you consider setting the ifdefs you can set to always get the POSIX version of strerror_r? best, Colin On Fri, Oct 5, 2018, at 08:30, Steven Rostedt wrote: > On Tue, 2 Oct 2018 17:55:39 -0400 > Steven Rostedt wrote: > > > From: "Steven Rostedt (VMware)" > > > > While working on

[PATCH AUTOSEL 4.18 09/48] ASoC: q6routing: initialize data correctly

2018-10-05 Thread Sasha Levin
From: Srinivas Kandagatla [ Upstream commit 7aa09ff24301535491cd4de1b93107ee91449a12 ] Some of the router data fields are left as default zeros which are valid dai ids, so initialize these to invalid value of -1. Without intializing these correctly get_session_from_id() can return incorrect

[PATCH AUTOSEL 4.18 05/48] selftests: kselftest: Remove outdated comment

2018-10-05 Thread Sasha Levin
From: Thiago Jung Bauermann [ Upstream commit c31d02d1290e1e82a08015199e408228e152991f ] Commit 3c07aaef6598 ("selftests: kselftest: change KSFT_SKIP=4 instead of KSFT_PASS") reverted commit 11867a77eb85 ("selftests: kselftest framework: change skip exit code to 0") but missed removing the

[PATCH AUTOSEL 4.18 01/48] ASoC: dapm: Fix NULL pointer deference on CODEC to CODEC DAIs

2018-10-05 Thread Sasha Levin
From: Charles Keepax [ Upstream commit 249dc49576fc953a7378b916c6a6d47ea81e4da2 ] Commit a655de808cbde ("ASoC: core: Allow topology to override machine driver FE DAI link config.") caused soc_dai_hw_params to be come dependent on the substream private_data being set with a pointer to the

[PATCH AUTOSEL 4.18 04/48] selftests: android: move config up a level

2018-10-05 Thread Sasha Levin
From: Anders Roxell [ Upstream commit 88bc243a3f22b9938c0b53c577dee28025cdb920 ] 'make kselftest-merge' assumes that the config files for the tests are located under the 'main' test dir, like tools/testing/selftests/android/ and not in a subdir to android. Signed-off-by: Anders Roxell

[PATCH AUTOSEL 4.18 06/48] ASoC: max98373: Added 10ms sleep after amp software reset

2018-10-05 Thread Sasha Levin
From: Ryan Lee [ Upstream commit ca917f9fe1a0fab3dde41bba4bbd173c5a3c5805 ] Signed-off-by: Ryan Lee Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/codecs/max98373.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/codecs/max98373.c

[PATCH AUTOSEL 4.18 03/48] ASoC: rt5514: Fix the issue of the delay volume applied again

2018-10-05 Thread Sasha Levin
From: Oder Chiou [ Upstream commit 6f0a256253f48095ba2e5bcdfbed41f21643c105 ] After our evaluation, we need to modify the default values to make sure the volume applied immediately. Signed-off-by: Oder Chiou Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/codecs/rt5514.c

[PATCH AUTOSEL 4.18 08/48] ASoC: sigmadsp: safeload should not have lower byte limit

2018-10-05 Thread Sasha Levin
From: Danny Smith [ Upstream commit 5ea752c6efdf5aa8a57aed816d453a8f479f1b0a ] Fixed range in safeload conditional to allow safeload to up to 20 bytes, without a lower limit. Signed-off-by: Danny Smith Acked-by: Lars-Peter Clausen Signed-off-by: Mark Brown Signed-off-by: Sasha Levin ---

Re: [PATCH 05/22] KEYS: Provide software public key query function

2018-10-05 Thread James Morris
On Fri, 5 Oct 2018, David Howells wrote: > James Morris wrote: > > > > + if (strcmp(encoding, "raw") == 0) { > > > + strcpy(alg_name, pkey->pkey_algo); > > > + return 0; > > > + } > > > > Can encoding here also be NULL to indicate raw? per patch 01: > > Ummm... By the letter

Re: [PATCH 3/5] arm64: mm: make use of new memblocks_present() helper

2018-10-05 Thread Catalin Marinas
On Fri, Oct 05, 2018 at 10:16:40AM -0600, Logan Gunthorpe wrote: > Cleanup the arm64_memory_present() function seeing it's very > similar to other arches. > > memblocks_present() is a direct replacement of arm64_memory_present() > > Signed-off-by: Logan Gunthorpe > --- > arch/arm64/mm/init.c |

Re: [PATCH] kasan: convert kasan/quarantine_lock to raw_spinlock

2018-10-05 Thread Sebastian Andrzej Siewior
On 2018-10-05 18:30:18 [+0200], To Clark Williams wrote: > This is the minimum to get this working on RT splat free. There is one > memory deallocation with irqs off which should work on RT in its current > way. > Once this and the on_each_cpu() invocation, I was wondering if… the patch at the

Re: [PATCH] ARM: orion: avoid VLA in orion_mpp_conf

2018-10-05 Thread Kees Cook
On Fri, Oct 5, 2018 at 9:15 AM, Arnd Bergmann wrote: > Testing randconfig builds found an instance of a VLA that was > missed when determining that we have removed them all: > > arch/arm/plat-orion/mpp.c: In function 'orion_mpp_conf': > arch/arm/plat-orion/mpp.c:31:2: error: ISO C90 forbids

Re: [PATCH net 2/2] rxrpc: Fix the data_ready handler

2018-10-05 Thread David Howells
Eric Dumazet wrote: > sk_data_ready is not meant to process packets, it is meant to signal > to another entity (preferably running in process context and thus with proper > schedule points, and not blocking BH) that there is data ready to be consumed. The issue is that I need to route the

Re: [PATCH v5 3/3] gpiolib: Show correct direction from the beginning

2018-10-05 Thread Timur Tabi
On 10/05/2018 11:17 AM, Jeffrey Hugo wrote:> > Looks like the driver is initing just fine to me. Is setting up the > jumpers and running gpio-test warranted? Well, that test only makes sure that input/output is actually working on the hardware level, but it also makes sure that the GPIOs are

Re: [PATCH v8 05/10] edac: synps: Add platform specific structures for ddrc controller

2018-10-05 Thread Borislav Petkov
On Thu, Oct 04, 2018 at 09:05:23PM +0530, Manish Narani wrote: > Add platform specific structures, so that we can add different IP > support later using quirks. > > Signed-off-by: Manish Narani > --- > drivers/edac/synopsys_edac.c | 91 > +++- > 1 file

Re: [PATCH 00/12] error handling and pciehp maintenance

2018-10-05 Thread Bjorn Helgaas
[+cc arm64 folks, LKML: This conversation is about this patch: https://lore.kernel.org/linux-pci/20180918235848.26694-3-keith.bu...@intel.com which fixes some PCIe AER error injection bugs, but also makes the error injector dependent on DYNAMIC_FTRACE_WITH_REGS, which not all arches support.

Re: [PATCH] i2c: core: squelch error: uninitialized symbol 'ret'

2018-10-05 Thread Wolfram Sang
> Feel free to ignore if this is a topic already discussed in other > threads. To be honest, I did not search the mailing list to determine if > this particular issue was already discussed. Not this particular issue, but in general we usually don't change working code to silence false

Re: [PATCH] arm64: dts: k3-am65-wakeup: Fix wakeup_uart reg address

2018-10-05 Thread Lokesh Vutla
On Thursday 27 September 2018 10:31 AM, Vignesh R wrote: cbass_wakeup interconnect which is the parent of wakeup_uart node defines address-cells=1 and size-cells=1, therefore fix up reg property of wakeup_uart node accordingly. Otherwise, this UART instance fails to probe if enabled. Fixes:

[mm PATCH 0/5] Deferred page init improvements

2018-10-05 Thread Alexander Duyck
This patchset is essentially a refactor of the page initialization logic that is meant to provide for better code reuse while providing a significant improvement in deferred page initialization performance. In my testing I have seen a 60% reduction in the time needed for deferred memory

Re: [PATCH v2 3/3] infiniband/mm: convert to the new put_user_page[s]() calls

2018-10-05 Thread Jason Gunthorpe
On Thu, Oct 04, 2018 at 09:02:25PM -0700, john.hubb...@gmail.com wrote: > From: John Hubbard > > For code that retains pages via get_user_pages*(), > release those pages via the new put_user_page(), > instead of put_page(). > > This prepares for eventually fixing the problem described > in [1],

Re: [PATCH v10 10/10] mtd: maps: gpio-addr-flash: Add support for device-tree devices

2018-10-05 Thread Ricardo Ribalda Delgado
Hi Boris On Fri, Oct 5, 2018 at 4:52 PM Boris Brezillon wrote: > > On Fri, 5 Oct 2018 16:06:57 +0200 > Ricardo Ribalda Delgado wrote: > > > Hi again Boris > > > > > > On Fri, Oct 5, 2018 at 2:10 PM Boris Brezillon > > wrote: > > > > > > On Fri, 5 Oct 2018 14:04:52 +0200 > > > Ricardo Ribalda

Re: [PATCH 1/2] arm64: dts: allwinner: Olimex A64-OLinuXino: enable eMMC.

2018-10-05 Thread Maxime Ripard
On Tue, Oct 02, 2018 at 01:47:33PM -0300, Rodrigo Exterckötter Tjäder wrote: > > > > > About device tree overlays, I read overlay-notes.txt, but I went > > > > > looking for an example with "git grep /plugin/ arch" and it came > > > > > empty. Is this approach not used for other boards? > > > > >

[PATCH AUTOSEL 4.9 02/14] ASoC: sigmadsp: safeload should not have lower byte limit

2018-10-05 Thread Sasha Levin
From: Danny Smith [ Upstream commit 5ea752c6efdf5aa8a57aed816d453a8f479f1b0a ] Fixed range in safeload conditional to allow safeload to up to 20 bytes, without a lower limit. Signed-off-by: Danny Smith Acked-by: Lars-Peter Clausen Signed-off-by: Mark Brown Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL 4.9 03/14] selftests/efivarfs: add required kernel configs

2018-10-05 Thread Sasha Levin
From: Lei Yang [ Upstream commit 53cf59d6c0ad3edc4f4449098706a8f8986258b6 ] add config file Signed-off-by: Lei Yang Signed-off-by: Shuah Khan (Samsung OSG) Signed-off-by: Sasha Levin --- tools/testing/selftests/efivarfs/config | 1 + 1 file changed, 1 insertion(+) create mode 100644

[PATCH AUTOSEL 4.14 19/23] clk: x86: add "ether_clk" alias for Bay Trail / Cherry Trail

2018-10-05 Thread Sasha Levin
From: Hans de Goede [ Upstream commit b1e3454d39f992e5409cd19f97782185950df6e7 ] Commit d31fd43c0f9a ("clk: x86: Do not gate clocks enabled by the firmware") causes all unclaimed PMC clocks on Cherry Trail devices to be on all the time, resulting on the device not being able to reach S0i2 or

[PATCH AUTOSEL 4.14 17/23] ARM: dts: at91: add new compatibility string for macb on sama5d3

2018-10-05 Thread Sasha Levin
From: Nicolas Ferre [ Upstream commit 321cc359d899a8e988f3725d87c18a628e1cc624 ] We need this new compatibility string as we experienced different behavior for this 10/100Mbits/s macb interface on this particular SoC. Backward compatibility is preserved as we keep the alternative strings.

[PATCH AUTOSEL 4.14 20/23] clk: x86: Stop marking clocks as CLK_IS_CRITICAL

2018-10-05 Thread Sasha Levin
From: Hans de Goede [ Upstream commit 648e921888ad96ea3dc922739e96716ad3225d7f ] Commit d31fd43c0f9a ("clk: x86: Do not gate clocks enabled by the firmware"), which added the code to mark clocks as CLK_IS_CRITICAL, causes all unclaimed PMC clocks on Cherry Trail devices to be on all the time,

[PATCH AUTOSEL 4.14 23/23] ubifs: Check for name being NULL while mounting

2018-10-05 Thread Sasha Levin
From: Richard Weinberger [ Upstream commit 37f31b6ca4311b94d985fb398a72e5399ad57925 ] The requested device name can be NULL or an empty string. Check for that and refuse to continue. UBIFS has to do this manually since we cannot use mount_bdev(), which checks for this condition. Fixes:

[PATCH AUTOSEL 4.9 01/14] ASoC: wm8804: Add ACPI support

2018-10-05 Thread Sasha Levin
From: Pierre-Louis Bossart [ Upstream commit 960cdd50ca9fdfeb82c2757107bcb7f93c8d7d41 ] HID made of either Wolfson/CirrusLogic PCI ID + 8804 identifier. This helps enumerate the HifiBerry Digi+ HAT boards on the Up2 platform. The scripts at https://github.com/thesofproject/acpi-scripts can be

[PATCH AUTOSEL 4.18 29/48] bpf: btf: Fix end boundary calculation for type section

2018-10-05 Thread Sasha Levin
From: Martin KaFai Lau [ Upstream commit 4b1c5d917d34f705096bb7dd8a2bd19b0881970e ] The end boundary math for type section is incorrect in btf_check_all_metas(). It just happens that hdr->type_off is always 0 for now because there are only two sections (type and string) and string section must

[PATCH AUTOSEL 4.18 25/48] scsi: iscsi: target: Don't use stack buffer for scatterlist

2018-10-05 Thread Sasha Levin
From: Laura Abbott [ Upstream commit 679fcae46c8b2352bba3485d521da070cfbe68e6 ] Fedora got a bug report of a crash with iSCSI: kernel BUG at include/linux/scatterlist.h:143! ... RIP: 0010:iscsit_do_crypto_hash_buf+0x154/0x180 [iscsi_target_mod] ... Call Trace: ?

[PATCH AUTOSEL 4.18 34/48] hwmon: (nct6775) Use different register to get fan RPM for fan7

2018-10-05 Thread Sasha Levin
From: Guenter Roeck [ Upstream commit 55066354285b36ee09dc50e2527f43a97c567177 ] The documented register to retrieve the fan RPM for fan7 is found to be unreliable at least with NCT6796D revision 3. Let's use register 0x4ce instead. This is undocumented for NCT6796D, but documented for NCT6797D

[PATCH AUTOSEL 4.18 28/48] sound: don't call skl_init_chip() to reset intel skl soc

2018-10-05 Thread Sasha Levin
From: Yu Zhao [ Upstream commit 75383f8d39d4c0fb96083dd460b7b139fbdac492 ] Internally, skl_init_chip() calls snd_hdac_bus_init_chip() which 1) sets bus->chip_init to prevent multiple entrances before device is stopped; 2) enables interrupt. We shouldn't use it for the purpose of resetting

[PATCH AUTOSEL 4.18 26/48] scsi: qla2xxx: Fix an endian bug in fcpcmd_is_corrupted()

2018-10-05 Thread Sasha Levin
From: Dan Carpenter [ Upstream commit cbe3fd39d223f14b1c60c80fe9347a3dd08c2edb ] We should first do the le16_to_cpu endian conversion and then apply the FCP_CMD_LENGTH_MASK mask. Fixes: 5f35509db179 ("qla2xxx: Terminate exchange if corrupted") Signed-off-by: Dan Carpenter Acked-by: Quinn Tran

[PATCH AUTOSEL 4.18 27/48] sound: enable interrupt after dma buffer initialization

2018-10-05 Thread Sasha Levin
From: Yu Zhao [ Upstream commit b61749a89f826eb61fc59794d9e4697bd246eb61 ] In snd_hdac_bus_init_chip(), we enable interrupt before snd_hdac_bus_init_cmd_io() initializing dma buffers. If irq has been acquired and irq handler uses the dma buffer, kernel may crash when interrupt comes in. Fix

[PATCH AUTOSEL 4.18 23/48] mfd: omap-usb-host: Fix dts probe of children

2018-10-05 Thread Sasha Levin
From: Tony Lindgren [ Upstream commit 10492ee8ed9188d6d420e1f79b2b9bdbc0624e65 ] It currently only works if the parent bus uses "simple-bus". We currently try to probe children with non-existing compatible values. And we're missing .probe. I noticed this while testing devices configured to

Re: [PATCH RT 2/2] watchdog, rt: prevent deferral of watchdogd wakeup

2018-10-05 Thread Sebastian Andrzej Siewior
On 2018-09-28 21:03:51 [+], Julia Cartwright wrote: > When PREEMPT_RT_FULL is enabled, all hrtimer expiry functions are > deferred for execution into the context of ktimersoftd unless otherwise > annotated. … > Signed-off-by: Julia Cartwright did s@HRTIMER_MODE_REL@HRTIMER_MODE_REL_HARD@ and

Re: [PATCH v3] arm64: new board - Emlid Neutis N5

2018-10-05 Thread Maxime Ripard
Hi, On Fri, Oct 05, 2018 at 04:25:49PM +0300, Aleksandr Aleksandrov wrote: > Emlid Neutis N5 is a SoM based on Allwinner H5, has a WiFi & BT > module, DDR3 RAM and eMMC. > > - add neutis n5 dtsi file for SoM needs > - add neutis devboard dts file > - add neutis devboard target to dtb makefile >

Re: [PATCH v2 2/3] dmaengine: Add Slave and Cyclic mode support for Actions Semi Owl S900 SoC

2018-10-05 Thread Vinod
On 29-09-18, 13:16, Manivannan Sadhasivam wrote: > Add Slave and Cyclic mode support for Actions Semi Owl S900 SoC. The slave > mode supports bus width of 4 bytes common for all peripherals and 1 byte > specific for UART. > > The cyclic mode supports only block mode transfer. Applied after

Re: [PATCH v10 10/10] mtd: maps: gpio-addr-flash: Add support for device-tree devices

2018-10-05 Thread Boris Brezillon
On Fri, 5 Oct 2018 14:04:52 +0200 Ricardo Ribalda Delgado wrote: > Hi Boris > On Fri, Oct 5, 2018 at 12:12 PM Boris Brezillon > wrote: > > > > On Fri, 5 Oct 2018 11:54:18 +0200 > > Ricardo Ribalda Delgado wrote: > > > > > Hi Boris > > > > > > Just seen that you already did the rebase at > >

Re: KASAN: use-after-scope in ext4_group_desc_csum

2018-10-05 Thread Dmitry Vyukov
On Fri, Oct 5, 2018 at 3:05 PM, Jan Glauber wrote: > On Fri, Oct 05, 2018 at 01:13:52PM +0200, Dmitry Vyukov wrote: >> On Fri, Oct 5, 2018 at 12:16 PM, Jan Glauber wrote: >> > Hi, >> > >> > I'm getting below warning when I enable CONFIG_KASAN_EXTRA=y on a arm64 >> > ThunderX2 system. >> > As

Re: [PATCH v3] tools/lib/traceevent: Replace str_error_r() with an open coded implementation

2018-10-05 Thread Arnaldo Carvalho de Melo
Em Fri, Oct 05, 2018 at 11:45:16AM -0400, Steven Rostedt escreveu: > On Fri, 5 Oct 2018 12:37:31 -0300 > Arnaldo Carvalho de Melo wrote: > > > Em Fri, Oct 05, 2018 at 11:30:56AM -0400, Steven Rostedt escreveu: > > > Bah, I now get warnings that sys_nerr and sys_errlist are deprecated. > > > > >

[PATCH AUTOSEL 4.4 10/11] drm/amdgpu: Fix SDMA HQD destroy error on gfx_v7

2018-10-05 Thread Sasha Levin
From: Amber Lin [ Upstream commit caaa4c8a6be2a275bd14f2369ee364978ff74704 ] A wrong register bit was examinated for checking SDMA status so it reports false failures. This typo only appears on gfx_v7. gfx_v8 checks the correct bit. Acked-by: Alex Deucher Signed-off-by: Amber Lin

[PATCH AUTOSEL 4.4 09/11] floppy: Do not copy a kernel pointer to user memory in FDGETPRM ioctl

2018-10-05 Thread Sasha Levin
From: Andy Whitcroft [ Upstream commit 65eea8edc315589d6c993cf12dbb5d0e9ef1fe4e ] The final field of a floppy_struct is the field "name", which is a pointer to a string in kernel memory. The kernel pointer should not be copied to user memory. The FDGETPRM ioctl copies a floppy_struct to user

[PATCH AUTOSEL 4.4 08/11] ARM: dts: at91: add new compatibility string for macb on sama5d3

2018-10-05 Thread Sasha Levin
From: Nicolas Ferre [ Upstream commit 321cc359d899a8e988f3725d87c18a628e1cc624 ] We need this new compatibility string as we experienced different behavior for this 10/100Mbits/s macb interface on this particular SoC. Backward compatibility is preserved as we keep the alternative strings.

[tip:perf/urgent] perf script python: Fix export-to-postgresql.py occasional failure

2018-10-05 Thread tip-bot for Adrian Hunter
Commit-ID: 25e11700b54c7b6b5ebfc4361981dae12299557b Gitweb: https://git.kernel.org/tip/25e11700b54c7b6b5ebfc4361981dae12299557b Author: Adrian Hunter AuthorDate: Tue, 11 Sep 2018 14:45:03 +0300 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 25 Sep 2018 11:33:06 -0300 perf script

Re: [RFC PATCH 00/10] arch/x86: AMD QoS support

2018-10-05 Thread James Morse
Hi Babu, (Thanks for looping me in!) On 28/09/18 02:57, Moger, Babu wrote: >> On Mon, 24 Sep 2018, Moger, Babu wrote: >> >>> This series adds support for AMD64 architectural extensions for Platform >>> Quality of Service. These extensions are intended to provide for the >>> monitoring of the

[PATCH AUTOSEL 3.18 1/6] selftests/efivarfs: add required kernel configs

2018-10-05 Thread Sasha Levin
From: Lei Yang [ Upstream commit 53cf59d6c0ad3edc4f4449098706a8f8986258b6 ] add config file Signed-off-by: Lei Yang Signed-off-by: Shuah Khan (Samsung OSG) Signed-off-by: Sasha Levin --- tools/testing/selftests/efivarfs/config | 1 + 1 file changed, 1 insertion(+) create mode 100644

[PATCH] ceph: use an enum instead of 'static const' to define constants

2018-10-05 Thread Arnd Bergmann
Building with W=1 produces lots of warnings for files including ceph_features.h: include/linux/ceph/ceph_features.h:15:24: error: 'CEPH_FEATUREMASK_SERVER_M' defined but not used [-Werror=unused-const-variable=] The normal way to define compile-time constants in the kernel is to use either

[tip:perf/urgent] perf script python: Fix export-to-sqlite.py sample columns

2018-10-05 Thread tip-bot for Adrian Hunter
Commit-ID: d005efe18db0b4a123dd92ea8e77e27aee8f99fd Gitweb: https://git.kernel.org/tip/d005efe18db0b4a123dd92ea8e77e27aee8f99fd Author: Adrian Hunter AuthorDate: Tue, 11 Sep 2018 14:45:04 +0300 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 25 Sep 2018 11:37:05 -0300 perf script

Re: [RFC PATCH 00/10] arch/x86: AMD QoS support

2018-10-05 Thread Moger, Babu
Hi James, On 10/05/2018 11:18 AM, James Morse wrote: > Hi Babu, > > (Thanks for looping me in!) > > On 28/09/18 02:57, Moger, Babu wrote: >>> On Mon, 24 Sep 2018, Moger, Babu wrote: >>> This series adds support for AMD64 architectural extensions for Platform Quality of Service. These

Re: [PATCH v7 1/4] vmalloc: Add __vmalloc_node_try_addr function

2018-10-05 Thread Edgecombe, Rick P
Forgot to include this: Reviewed-by: Kees Cook On Mon, 2018-10-01 at 14:38 -0700, Rick Edgecombe wrote: > Create __vmalloc_node_try_addr function that tries to allocate at a specific > address and supports caller specified behavior for whether any lazy purging > happens if there is a collision.

Re: [PATCH v7 3/4] vmalloc: Add debugfs modfraginfo

2018-10-05 Thread Edgecombe, Rick P
For a previous version before making asked for corrections, this was: Reviewed-by: Kees Cook On Mon, 2018-10-01 at 14:38 -0700, Rick Edgecombe wrote: > Add debugfs file "modfraginfo" for providing info on module space > fragmentation. > This can be used for determining if loadable module

Re: [mm PATCH 1/5] mm: Use mm_zero_struct_page from SPARC on all 64b architectures

2018-10-05 Thread Khalid Aziz
On 10/05/2018 09:12 AM, Alexander Duyck wrote: This change makes it so that we use the same approach that was already in use on Sparc on all the archtectures that support a 64b long. This is mostly motivated by the fact that 8 to 10 store/move instructions are likely always going to be faster

Re: [PATCH 2/3] namei: implement AT_THIS_ROOT chroot-like path resolution

2018-10-05 Thread Aleksa Sarai
On 2018-10-04, Jann Horn wrote: > On Thu, Oct 4, 2018 at 6:26 PM Aleksa Sarai wrote: > > On 2018-09-29, Jann Horn wrote: > > > You attempt to open "C/../../etc/passwd" under the root "/A/B". > > > Something else concurrently moves /A/B/C to /A/C. This can result in > > > the following: > > > >

Re: [PATCH v3] tools/lib/traceevent: Replace str_error_r() with an open coded implementation

2018-10-05 Thread Steven Rostedt
On Tue, 2 Oct 2018 17:55:39 -0400 Steven Rostedt wrote: > From: "Steven Rostedt (VMware)" > > While working on having PowerTop use libtracevent as a shared object > library, Tzvetomir hit "str_error_r not defined". This was added by commit > c3cec9e68f12d ("tools lib traceevent: Use

Re: [PATCH v10 10/10] mtd: maps: gpio-addr-flash: Add support for device-tree devices

2018-10-05 Thread Ricardo Ribalda Delgado
HI again! On Fri, Oct 5, 2018 at 5:23 PM Boris Brezillon wrote: > > On Fri, 5 Oct 2018 14:04:52 +0200 > Ricardo Ribalda Delgado wrote: > > > Hi Boris > > On Fri, Oct 5, 2018 at 12:12 PM Boris Brezillon > > wrote: > > > > > > On Fri, 5 Oct 2018 11:54:18 +0200 > > > Ricardo Ribalda Delgado

Re: [PATCH 2/2] pwm: Kconfig: Enable TI ECAP driver for ARCH_K3

2018-10-05 Thread Andrew F. Davis
On 10/03/2018 12:06 PM, Vignesh R wrote: > K3 devices have the same ECAP IP as OMAP SoC. Enable driver to be built > for K3 devices. > > Signed-off-by: Vignesh R > Signed-off-by: Sekhar Nori > --- > drivers/pwm/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

Re: [PATCH 05/22] KEYS: Provide software public key query function

2018-10-05 Thread David Howells
James Morris wrote: > > + if (strcmp(encoding, "raw") == 0) { > > + strcpy(alg_name, pkey->pkey_algo); > > + return 0; > > + } > > Can encoding here also be NULL to indicate raw? per patch 01: Ummm... By the letter of the documentation, yes, though in practice it isn't

[PATCH AUTOSEL 4.14 07/23] ASoC: rsnd: don't fallback to PIO mode when -EPROBE_DEFER

2018-10-05 Thread Sasha Levin
From: Kuninori Morimoto [ Upstream commit 6c92d5a2744e27619a8fcc9d74b91ee9f1cdebd1 ] Current rsnd driver will fallback to PIO mode if it can't get DMA handler. But, DMA might return -EPROBE_DEFER when probe timing. This driver always fallback to PIO mode especially from commit ac6bbf0cdf4206c

[PATCH AUTOSEL 4.14 18/23] PCI: hv: support reporting serial number as slot information

2018-10-05 Thread Sasha Levin
From: Stephen Hemminger [ Upstream commit a15f2c08c70811f120d99288d81f70d7f3d104f1 ] The Hyper-V host API for PCI provides a unique "serial number" which can be used as basis for sysfs PCI slot table. This can be useful for cases where userspace wants to find the PCI device based on serial

[PATCH AUTOSEL 4.14 21/23] x86/kvm/lapic: always disable MMIO interface in x2APIC mode

2018-10-05 Thread Sasha Levin
From: Vitaly Kuznetsov [ Upstream commit d1766202779e81d0f2a94c4650a6ba31497d369d ] When VMX is used with flexpriority disabled (because of no support or if disabled with module parameter) MMIO interface to lAPIC is still available in x2APIC mode while it shouldn't be (kvm-unit-tests): PASS:

[PATCH AUTOSEL 4.14 12/23] sound: enable interrupt after dma buffer initialization

2018-10-05 Thread Sasha Levin
From: Yu Zhao [ Upstream commit b61749a89f826eb61fc59794d9e4697bd246eb61 ] In snd_hdac_bus_init_chip(), we enable interrupt before snd_hdac_bus_init_cmd_io() initializing dma buffers. If irq has been acquired and irq handler uses the dma buffer, kernel may crash when interrupt comes in. Fix

[PATCH 5/5] RISC-V: Implement sparsemem

2018-10-05 Thread Logan Gunthorpe
This patch implements sparsemem support for risc-v which helps pave the way for memory hotplug and eventually P2P support. We introduce Kconfig options for virtual and physical address bits which are used to calculate the size of the vmemmap and set the MAX_PHYSMEM_BITS. The vmemmap is located

[PATCH AUTOSEL 4.18 38/48] PCI: hv: support reporting serial number as slot information

2018-10-05 Thread Sasha Levin
From: Stephen Hemminger [ Upstream commit a15f2c08c70811f120d99288d81f70d7f3d104f1 ] The Hyper-V host API for PCI provides a unique "serial number" which can be used as basis for sysfs PCI slot table. This can be useful for cases where userspace wants to find the PCI device based on serial

[PATCH AUTOSEL 4.18 37/48] ARM: dts: at91: add new compatibility string for macb on sama5d3

2018-10-05 Thread Sasha Levin
From: Nicolas Ferre [ Upstream commit 321cc359d899a8e988f3725d87c18a628e1cc624 ] We need this new compatibility string as we experienced different behavior for this 10/100Mbits/s macb interface on this particular SoC. Backward compatibility is preserved as we keep the alternative strings.

[PATCH AUTOSEL 4.18 35/48] net: ethernet: ti: add missing GENERIC_ALLOCATOR dependency

2018-10-05 Thread Sasha Levin
From: Corentin Labbe [ Upstream commit f025571e96caa95ffc3c1792f762a584893de582 ] This patch mades TI_DAVINCI_CPDMA select GENERIC_ALLOCATOR. without that, the following sparc64 build failure happen drivers/net/ethernet/ti/davinci_cpdma.o: In function `cpdma_check_free_tx_desc': (.text+0x278):

[PATCH] bpf: fix building without CONFIG_INET

2018-10-05 Thread Arnd Bergmann
The newly added TCP and UDP handling fails to link when CONFIG_INET is disabled: net/core/filter.o: In function `sk_lookup': filter.c:(.text+0x7ff8): undefined reference to `tcp_hashinfo' filter.c:(.text+0x7ffc): undefined reference to `tcp_hashinfo' filter.c:(.text+0x8020): undefined reference

[PATCH] ARM: orion: avoid VLA in orion_mpp_conf

2018-10-05 Thread Arnd Bergmann
Testing randconfig builds found an instance of a VLA that was missed when determining that we have removed them all: arch/arm/plat-orion/mpp.c: In function 'orion_mpp_conf': arch/arm/plat-orion/mpp.c:31:2: error: ISO C90 forbids variable length array 'mpp_ctrl' [-Werror=vla] This one is fairly

[PATCH AUTOSEL 4.18 31/48] hwmon: (nct6775) Fix virtual temperature sources for NCT6796D

2018-10-05 Thread Sasha Levin
From: Guenter Roeck [ Upstream commit 37196ba4ae95a2077d78715eb12e879e57613d43 ] The following kernel log message is reported for the nct6775 driver on ASUS WS X299 SAGE. nct6775: Found NCT6796D or compatible chip at 0x2e:0x290 nct6775 nct6775.656: Invalid temperature source 11 at index 0,

Re: [PATCH RT] rt: convert mm/kasan/quarantine_lock to raw_spinlock

2018-10-05 Thread Sebastian Andrzej Siewior
On 2018-09-19 04:34:50 [+0800], kbuild test robot wrote: > Hi Clark, > > Thank you for the patch! Perhaps something to improve: > > [auto build test WARNING on linux-rt-devel/for-kbuild-bot/current-stable] > > url: >

Re: [PATCH 1/2] kthread: convert worker lock to raw spinlock

2018-10-05 Thread Sebastian Andrzej Siewior
On 2018-09-28 21:03:51 [+], Julia Cartwright wrote: > In order to enable the queuing of kthread work items from hardirq > context even when PREEMPT_RT_FULL is enabled, convert the worker > spin_lock to a raw_spin_lock. > > This is only acceptable to do because the work performed under the

[PATCH] sched/dl : return accurate release rq lock info

2018-10-05 Thread Peng Hao
find_lock_later_rq may or not releease rq lock when return later_rq=NULL, but it is fuzzy. If not releasing rq lock, it is unnecessary to re-call pick_next_pushable_dl_task. Signed-off-by: Peng Hao --- kernel/sched/deadline.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff

Re: [GIT PULL] for-next updates for soc/fsl drivers for v4.20 take 2

2018-10-05 Thread Li Yang
On Fri, Oct 5, 2018 at 10:40 AM Arnd Bergmann wrote: > > On Thu, Oct 4, 2018 at 6:47 PM Li Yang wrote: > > > > Hi arm-soc maintainers, > > > > Please merge the following updates for next. > > > > PS. One of the patches is depending on the last pull request for fixes to > > build > >

Re: [PATCH v10 10/10] mtd: maps: gpio-addr-flash: Add support for device-tree devices

2018-10-05 Thread Ricardo Ribalda Delgado
Hi Boris On Fri, Oct 5, 2018 at 6:29 PM Boris Brezillon wrote: > > On Fri, 5 Oct 2018 17:40:44 +0200 > Ricardo Ribalda Delgado wrote: > > > Hi Boris > > On Fri, Oct 5, 2018 at 4:52 PM Boris Brezillon > > wrote: > > > > > > On Fri, 5 Oct 2018 16:06:57 +0200 > > > Ricardo Ribalda Delgado wrote:

Re: [PATCH v3 2/2] dmaengine: uniphier-mdmac: add UniPhier MIO DMAC driver

2018-10-05 Thread Vinod
On 13-09-18, 09:51, Masahiro Yamada wrote: > +#define UNIPHIER_MDMAC_CH_IRQ_STAT 0x010 // current hw status (RO) > +#define UNIPHIER_MDMAC_CH_IRQ_REQ0x014 // latched STAT (WOC) > +#define UNIPHIER_MDMAC_CH_IRQ_EN 0x018 // IRQ enable mask > +#define UNIPHIER_MDMAC_CH_IRQ_DET

Re: [PATCH] reset: socfpga: add an early reset driver for SoCFPGA

2018-10-05 Thread Philipp Zabel
Hi Dinh, On Fri, 2018-10-05 at 10:17 -0500, Dinh Nguyen wrote: [...] > > > +static int a10_reset_init(struct device_node *np) > > > +{ > > > + struct reset_simple_data *data; > > > + struct resource res; > > > + resource_size_t size; > > > + int ret; > > > + u32 reg_offset = 0; > > > > ... now

  1   2   3   4   5   6   7   8   9   10   >