[PATCH 2/2 v2] staging: fsl-mc: do not print error in case of defer probe error

2017-12-11 Thread Nipun Gupta
Devices on MC bus can be deferred because of dependencies on other modules (such as IOMMU). Those are not the actual errors; as probing is again done by the kernel at later stages. So this patch avoids the error print in such case. Signed-off-by: Nipun Gupta --- drivers/staging/fsl-mc/bus/fsl-mc

Re: [PATCH 5/8] ASoC: uniphier: add support for UniPhier AIO driver

2017-12-11 Thread Katsuhiro Suzuki
Hello, > One example is how all the drivers that use the generic dmaengine code > instantiate their DMA drivers, or how all the drivers for CODECs that > have both I2C and SPIi control interfaces instantiate - given that the > device specific code here seems to be mostly data tables that's probabl

Re: [RFC PATCH v2 1/2] xen/pvh: Add memory map pointer to hvm_start_info struct

2017-12-11 Thread Jan Beulich
>>> On 08.12.17 at 20:05, wrote: > On 12/8/2017 12:49 AM, Jan Beulich wrote: >> I'm not convinced of re-using E820 types here. I can see that this >> might ease the consumption in Linux, but I don't think there should >> be any connection to x86 aspects here - the data being supplied is >> x86-agn

Re: [PATCH v2 3/3] i2c: at91: added slave mode support

2017-12-11 Thread Juergen Fitschen
Hi Ludovic, thank you for your reply and sorry for the delayed response! I'm a little bit busy atm, as well. So I won't be able to reproduce that before the next week. I also want to try another I2C master: A wild Arduino Uno appeared on my desk ;) Thank you for your support for bringing this to

Re: [PATCH v6 4/6] clk: meson: make the spinlock naming more specific

2017-12-11 Thread Jerome Brunet
On Mon, 2017-12-11 at 14:48 +0800, Yixun Lan wrote: > Make the spinlock more specific, so better for lockdep > debugging and ctags/grep. > > Suggested-by: Stephen Boyd > Signed-off-by: Yixun Lan Yixun, This change is not related to the main task describe in the cover letter. Next time, please

Re: [PATCH] drm/i915/gvt/fb_decoder: Fix out-of-bounds read

2017-12-11 Thread Zhenyu Wang
On 2017.12.09 00:37:59 -0600, Gustavo A. R. Silva wrote: > In case function skl_format_to_drm returns -EINVAL, fmt turns into a huge > number as fmt is of type u32, hence there is an out-of-bounds read when > using fmt as an index for array skl_pixel_formats at line 225: > plane->bpp = skl_pixel_fo

Re: [PATCH] ARM: debug: add stm32 low-level debug support

2017-12-11 Thread Neil Armstrong
On 04/12/2017 14:32, Ludovic Barre wrote: > From: Ludovic Barre > > This adds low-level debug support on USART1 for STM32F4 > and STM32F7. Compiled via 'CONFIG_DEBUG_LL' and 'CONFIG_EARLY_PRINTK'. > Enabled via 'earlyprintk' in bootargs. > > Signed-off-by: Gerald Baeza Hi Ludovic, Please also

Re: [PATCHSET] blk-mq: reimplement timeout handling

2017-12-11 Thread Peter Zijlstra
On Sat, Dec 09, 2017 at 11:25:19AM -0800, Tejun Heo wrote: > Currently, blk-mq timeout path synchronizes against the usual > issue/completion path using a complex scheme involving atomic > bitflags, REQ_ATOM_*, memory barriers and subtle memory coherence > rules. Unfortunatley, it contains quite a

Re: [PATCH V1 2/4] qcom: spmi-wled: Add support for short circuit handling

2017-12-11 Thread kgunda
On 2017-12-05 10:05, Bjorn Andersson wrote: On Thu 16 Nov 04:18 PST 2017, Kiran Gunda wrote: Handle the short circuit(SC) interrupt and check if the SC interrupt is valid. Re-enable the module to check if it goes away. Disable the module altogether if the SC event persists. Signed-off-by: Kira

Re: [PATCH] Fix resume on x86-32 machines

2017-12-11 Thread Jarkko Nikula
On 12/11/2017 12:20 AM, Pavel Machek wrote: On Sun 2017-12-10 13:58:23, Andy Lutomirski wrote: On Dec 10, 2017, at 1:38 PM, Pavel Machek wrote: After 4.15-rc2, suspend stopped working on Thinkpad X60. 5b06bbc (unintentionally?) reordered stuff with respect to fix_processor_context() on 32-bit

[RESEND PATCH 1/2 v2] staging: fsl-mc: Allocate IRQ's before scanning DPRC objects

2017-12-11 Thread Nipun Gupta
Following is the current scenario when the devices are probed: FSL_MC Bus probe ---> dprc probe ---> dprc devices scan ---> probe devices in DPRC container ---> allocate IRQ's In case the devices being probed in the DPRC container need the IRQ's; probing of that device will fail. In curren

Re: [RFC] irqchip: add support for LS1021A external interrupt lines

2017-12-11 Thread Rasmus Villemoes
On 2017-12-08 17:02, Marc Zyngier wrote: >> + >> +#define INTPCR_REG 0x01ac >> +#define NIRQ 6 > > These should come from the DT, specially if as suggested above, there > are other similar HW in the wild. OK, but see below. >> +static int >> +ls1021a_extirq_set_type(struct irq_data *data, unsign

[RESEND PATCH 2/2 v2] staging: fsl-mc: do not print error in case of defer probe error

2017-12-11 Thread Nipun Gupta
Devices on MC bus can be deferred because of dependencies on other modules (such as IOMMU). Those are not the actual errors; as probing is again done by the kernel at later stages. So this patch avoids the error print in such case. Signed-off-by: Nipun Gupta --- Resending v2 as missed mentioning

Re: [PATCH V1 3/4] qcom: spmi-wled: Add support for OVP interrupt handling

2017-12-11 Thread kgunda
On 2017-12-05 10:15, Bjorn Andersson wrote: On Thu 16 Nov 04:18 PST 2017, Kiran Gunda wrote: WLED peripheral has over voltage protection(OVP) circuitry and the OVP fault is notified through an interrupt. Though this fault condition rising is due to an incorrect hardware configuration is mitiga

Re: [PATCH] ARM: debug: add stm32 low-level debug support

2017-12-11 Thread Philippe Ombredanne
Ludovic, On Mon, Dec 11, 2017 at 10:08 AM, Alexandre Torgue wrote: > Hi Ludovic > > On 12/04/2017 02:32 PM, Ludovic Barre wrote: >> >> From: Ludovic Barre >> >> This adds low-level debug support on USART1 for STM32F4 >> and STM32F7. Compiled via 'CONFIG_DEBUG_LL' and 'CONFIG_EARLY_PRINTK'. >> En

Re: [Intel-gfx] [PATCH] drm/i915: Use copy_from_user() in fence copying

2017-12-11 Thread Joonas Lahtinen
On Wed, 2017-12-06 at 12:28 -0800, Kees Cook wrote: > There's no good reason to separate the access_ok() from the copy, > especially since the access_ok() size is hard-coded instead of using > sizeof(). Instead, just use copy_from_user() directly. > > Fixes: cf6e7bac6357 ("drm/i915: Add support fo

Re: [PATCH v1 1/2] usb: phy: tegra: Cleanup error messages

2017-12-11 Thread Thierry Reding
On Mon, Dec 11, 2017 at 02:07:37AM +0300, Dmitry Osipenko wrote: > Tegra's PHY driver has a mix of pr_err() and dev_err(), let's switch to > dev_err() and use common errors message formatting across the driver for > consistency. > > Signed-off-by: Dmitry Osipenko > --- > drivers/usb/phy/phy-tegr

Re: [PATCH] eeprom: at24: code shrink

2017-12-11 Thread Bartosz Golaszewski
2017-12-11 9:08 GMT+01:00 Uwe Kleine-König : > Hello, > > On Sun, Dec 10, 2017 at 08:29:47PM +0100, Bartosz Golaszewski wrote: >> @@ -625,7 +610,7 @@ static int at24_probe(struct i2c_client *client, const >> struct i2c_device_id *id) >> at24->offset_adj = at24_get_offset_adj(chip.flags, chip

[PATCH 0/5] Add STM32F769 pinctrl support

2017-12-11 Thread Alexandre Torgue
This series adds STM32F769 pinctrl and GPIO support, relies on the generic STM32 pinctrl driver. It also changes stm32f7 device tree structure to use dedicated files for stm32f746 pinctrl and stm32f769 pinctrl. Regards Alex Alexandre Torgue (5): dt-bindings: pinctrl: Add st,stm32f769-pinctrl c

Re: [PATCH v4] f2fs: obsolete free nid list approach

2017-12-11 Thread Chao Yu
Hi Jaegeuk, On 2017/12/1 15:36, Jaegeuk Kim wrote: > Hi Chao, > > This is really hard to review and risky a lot to apply it shortly. Do we have > a I can understand your concern. > strong reason we have to do this? The original design goal was to minimize > allocation delay which is almost zer

Re: [PATCH] checkpatch: don't require octal permissions for "0"

2017-12-11 Thread Bartosz Golaszewski
2017-12-11 3:19 GMT+01:00 Joe Perches : > On Sun, 2017-12-10 at 15:04 +0100, Bartosz Golaszewski wrote: >> If the permission value is 0, don't raise the NON_OCTAL_PERMISSIONS >> error. There's no possibility of an error if there are no permissions. >> >> Suggested-by: Andy Shevchenko >> Signed-off

RE: [PATCH] drm/i915: Use copy_from_user() in fence copying

2017-12-11 Thread David Laight
From: Kees Cook > Sent: 08 December 2017 21:10 > >> There's no good reason to separate the access_ok() from the copy, > >> especially since the access_ok() size is hard-coded instead of using > >> sizeof(). Instead, just use copy_from_user() directly. > > > > Looks like an optimisation to save doin

Re: [RFC] irqchip: add support for LS1021A external interrupt lines

2017-12-11 Thread Alexander Stein
On Monday, December 11, 2017, 10:08:20 AM CET Rasmus Villemoes wrote: > >>> +static int > >>> +ls1021a_extirq_set_type(struct irq_data *data, unsigned int type) > >>> +{ > >>> + irq_hw_number_t hwirq = data->hwirq; > >>> + struct extirq_chip_data *chip_data = data->chip_data; > >>> + u32 value, mas

Re: [PATCH v6 3/6] clk: meson-axg: add clock controller drivers

2017-12-11 Thread Jerome Brunet
On Mon, 2017-12-11 at 14:48 +0800, Yixun Lan wrote: > From: Qiufang Dai > > Add clock controller drivers for Amlogic Meson-AXG SoC. > > Acked-by: Neil Armstrong > Signed-off-by: Qiufang Dai > Signed-off-by: Yixun Lan > --- > arch/arm64/Kconfig.platforms | 1 + > drivers/clk/meson/Kconfig

Re: Linux kernel configuration for MPS2 AN385

2017-12-11 Thread Vladimir Murzin
On 09/12/17 18:33, Guenter Roeck wrote: > Hi folks, > > I am playing with qemu's mps2-an385 emulation and try to get Linux to boot > with it, > so far with little (ie no) success. > > Is a working kernel configuration for this board available somewhere ? make ARCH=arm mps2_defconfig would give

Re: [PATCH v1] usb: phy: tegra: Increase PHY clock stabilization timeout

2017-12-11 Thread Thierry Reding
On Mon, Dec 11, 2017 at 01:55:35AM +0300, Dmitry Osipenko wrote: > This fixes "utmi_phy_clk_enable: timeout waiting for phy to stabilize" > error message. > > Signed-off-by: Dmitry Osipenko > --- > drivers/usb/phy/phy-tegra-usb.c | 13 - > 1 file changed, 4 insertions(+), 9 deletions

[PATCH] staging: fbtft: replace __ATTR() with DEVICE_ATTR()

2017-12-11 Thread Aishwarya Pant
This is a clean-up patch which replaces the uses of raw __ATTR(...) macro with the more conventional DEVICE_ATTR(...) for defining device attributes. Done using coccinelle- @r@ identifier foo, n; @@ struct device_attribute foo = __ATTR(n, ...); @script:python p@ id; foo << r.foo; n << r.n; @@

Re: [PATCH 3/6] x86/hyper-v: reenlightenment notifications support

2017-12-11 Thread Vitaly Kuznetsov
Roman Kagan writes: > On Fri, Dec 08, 2017 at 11:49:57AM +0100, Vitaly Kuznetsov wrote: >> Hyper-V supports Live Migration notification. This is supposed to be used >> in conjunction with TSC emulation: when we are migrated to a host with >> different TSC frequency for some short period host emul

Re: [PATCH] x86: update/correct opcode-map

2017-12-11 Thread Masami Hiramatsu
Hi Randy, 2017-12-11 9:33 GMT+09:00 Randy Dunlap : > From: Randy Dunlap > > Update x86-opcode-map.txt based on the October 2017 Intel SDM publication. > Correct INVPID to INVVPID. > Add UD0, UD1, and UD2 instruction opcodes. Thanks for update! I have some comments on it. > > Signed-off-by: Rand

Re: [PATCH 6/6] x86/kvm: support Hyper-V reenlightenment

2017-12-11 Thread Vitaly Kuznetsov
Roman Kagan writes: > On Fri, Dec 08, 2017 at 11:50:00AM +0100, Vitaly Kuznetsov wrote: >> When we run nested KVM on Hyper-V guests we need to update masterclocks for >> all guests when L1 migrates to a host with different TSC frequency. >> Implement the procedure in the following way: >> - Pause

Re: [RFC] irqchip: add support for LS1021A external interrupt lines

2017-12-11 Thread Alexander Stein
On Monday, December 11, 2017, 10:45:09 AM CET Alexander Stein wrote: > On Monday, December 11, 2017, 10:08:20 AM CET Rasmus Villemoes wrote: > > >>> +static int > > >>> +ls1021a_extirq_set_type(struct irq_data *data, unsigned int type) > > >>> +{ > > >>> + irq_hw_number_t hwirq = data->hwirq;

Re: [PATCH v1 1/2] usb: phy: Add Kconfig entry for Tegra's PHY driver

2017-12-11 Thread Thierry Reding
On Mon, Dec 11, 2017 at 02:09:59AM +0300, Dmitry Osipenko wrote: > Add Kconfig entry so that other drivers other than ehci-tegra > (like ChipIdea) could add Tegra's PHY to build dependencies. > > Signed-off-by: Dmitry Osipenko > --- > drivers/usb/host/Kconfig | 2 +- > drivers/usb/phy/Kconfig |

Re: [Intel-gfx] [GIT pull] x86 APIC updates for 4.15

2017-12-11 Thread Daniel Vetter
On Wed, Dec 06, 2017 at 12:13:27PM +0100, Maarten Lankhorst wrote: > Hey, > > Op 30-11-17 om 23:47 schreef Thomas Gleixner: > > On Thu, 30 Nov 2017, Maarten Lankhorst wrote: > >> Op 30-11-17 om 10:18 schreef Thomas Gleixner: > >> # cat /sys/kernel/debug/irq/irqs/28 > >> handler: handle_edge_irq

Re: [PATCH 1/4] PM / core: Use dev_pm_skip_next_resume_phases() internally

2017-12-11 Thread Geert Uytterhoeven
On Sun, Dec 10, 2017 at 12:56 AM, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Make the PM core call dev_pm_skip_next_resume_phases() to skip the > "early resume" and "resume" phases of system-wide transitions to the > working state for a given device instead of clearing the relevant >

Re: [PATCH v1 2/2] usb: chipidea: tegra: Select Tegra's PHY in Kconfig

2017-12-11 Thread Thierry Reding
On Mon, Dec 11, 2017 at 02:10:00AM +0300, Dmitry Osipenko wrote: > UDC driver won't probe without Tegra's PHY, hence select it in the > Kconfig. > > Signed-off-by: Dmitry Osipenko > --- > drivers/usb/chipidea/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/usb/chipidea/

Re: [PATCH 2/4] PM / core: Add helpers for subsystem callback selection

2017-12-11 Thread Geert Uytterhoeven
On Sun, Dec 10, 2017 at 12:58 AM, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Add helper routines to find and return a suitable subsystem callback > during the "noirq" phases of system suspend/resume (or analogous) > transitions as well as during the "late" phase of system suspend and

Re: [Xen-devel] [PATCH v3 4/4] x86/xen: supply rsdp address in boot params for pvh guests

2017-12-11 Thread Jan Beulich
>>> On 08.12.17 at 16:11, wrote: > Set the boot loader version to 2.14 (0x020e) replacing the wrong 0x0212 > which should have been 0x020c. This part of the description has become partly stale now with the new patch 3. Jan

Re: [PATCH v2 1/2] dt-bindings: Add binding for Sitronix ST7735R display panels

2017-12-11 Thread Linus Walleij
On Sun, Dec 10, 2017 at 11:10 PM, David Lechner wrote: > This adds a new device tree binding for Sitronix ST7735R display panels, > such as the Adafruit 1.8" TFT. > > Signed-off-by: David Lechner > Acked-by: Rob Herring (...) > Limor brought up an interesting point in an off-list discussion. T

Re: [PATCH v1 1/2] drm/tegra: dc: Link DC1 to DC0 on Tegra20

2017-12-11 Thread Thierry Reding
On Mon, Dec 11, 2017 at 02:19:43AM +0300, Dmitry Osipenko wrote: > HW reset isn't actually broken on Tegra20, but there is a dependency on > first display controller to be taken out of reset for the second to be > enabled successfully. > > Signed-off-by: Dmitry Osipenko > --- > drivers/gpu/drm/t

Re: [PATCH v1 2/2] drm/tegra: Support disabled CONFIG_PM

2017-12-11 Thread Thierry Reding
On Mon, Dec 11, 2017 at 02:19:44AM +0300, Dmitry Osipenko wrote: > Add manual HW power management to drivers probe/remove in order to > not fail in a case of runtime power management being disabled in kernel > config. > > Signed-off-by: Dmitry Osipenko > --- > drivers/gpu/drm/tegra/dc.c | 164

[PATCH V4 00/11] Intel Processor Trace virtulization enabling

2017-12-11 Thread Luwei Kang
Hi All, Here is a patch-series which adding Processor Trace enabling in KVM guest. You can get It's software developer manuals from: https://software.intel.com/sites/default/files/managed/c5/15/architecture-instruction-set-extensions-programming-reference.pdf In Chapter 5 INTEL PROCESSOR TRACE: V

[PATCH V4 01/11] perf/x86/intel/pt: Move Intel-PT MSR bit definitions to a public header

2017-12-11 Thread Luwei Kang
From: Chao Peng Intel Processor Trace virtualization enabling in guest need to use these MSR bits, so move then to public header msr-index.h. Signed-off-by: Chao Peng Signed-off-by: Luwei Kang --- arch/x86/events/intel/pt.h | 37 - arch/x86/include/as

[PATCH V4 03/11] KVM: x86: Add Intel Processor Trace virtualization mode

2017-12-11 Thread Luwei Kang
From: Chao Peng Intel PT virtualization can be work in one of 3 possible modes: a. system-wide: trace both host/guest and output to host buffer; b. host-only: only trace host and output to host buffer; c. host-guest: trace host/guest simultaneous and output to their respective buffer. Sig

[PATCH V4 08/11] KVM: x86: Add Intel processor trace context for each vcpu

2017-12-11 Thread Luwei Kang
From: Chao Peng Add a data structure to save Intel Processor Trace context. It mainly include the MSRs related Intel Processor Trace. Signed-off-by: Chao Peng Signed-off-by: Luwei Kang --- arch/x86/include/asm/msr-index.h | 1 + arch/x86/include/asm/vmx.h | 2 ++ arch/x86/kvm/vmx.c

[PATCH V4 09/11] KVM: x86: Disable Intel Processor Trace when VMXON in L1 guest

2017-12-11 Thread Luwei Kang
Currently, Intel Processor Trace do not support tracing in L1 guest VMX operation(IA32_VMX_MISC[bit 14] is 0). As mentioned in SDM, on these type of processors, execution of the VMXON instruction will clears IA32_RTIT_CTL.TraceEn and any attempt to write IA32_RTIT_CTL causes a general-protection xc

[PATCH V4 06/11] KVM: x86: Add a function to get the number of address ranges

2017-12-11 Thread Luwei Kang
CPUID.(EAX=14H,ECX=1H).EAX[2:0] enumerates the number of Intel Processor Trace configurable Address Ranges for filtering. Signed-off-by: Luwei Kang --- arch/x86/include/asm/kvm_host.h | 1 + arch/x86/kvm/x86.c | 13 + 2 files changed, 14 insertions(+) diff --git a/arch

[PATCH V4 05/11] KVM: x86: Add Intel Processor Trace cpuid emulation

2017-12-11 Thread Luwei Kang
From: Chao Peng Expose Intel Processor Trace to guest only when PT work in HOST_GUEST mode. Signed-off-by: Chao Peng Signed-off-by: Luwei Kang --- arch/x86/include/asm/kvm_host.h | 1 + arch/x86/kvm/cpuid.c| 22 -- arch/x86/kvm/svm.c | 6 ++

[PATCH V4 04/11] x86: cpufeature: move processor tracing out of scattered features

2017-12-11 Thread Luwei Kang
From: Paolo Bonzini Processor tracing is already enumerated in word 9 (CPUID[7,0].EBX), so do not duplicate it in the scattered features word. Signed-off-by: Paolo Bonzini --- arch/x86/include/asm/cpufeatures.h | 2 +- arch/x86/kernel/cpu/scattered.c| 1 - 2 files changed, 1 insertion(+),

[PATCH V4 10/11] KVM: x86: Implement Intel Processor Trace MSRs read/write

2017-12-11 Thread Luwei Kang
From: Chao Peng Intel PT MSRs read/write will not be intercepted when guest enabled Intel PT. IA32_RTIT_CTL read/write will always cause a VM-Exit. Signed-off-by: Chao Peng Signed-off-by: Luwei Kang --- arch/x86/kvm/vmx.c | 64 ++ arch/x86/k

Re: [PATCH v6 3/6] clk: meson-axg: add clock controller drivers

2017-12-11 Thread Yixun Lan
HI Jerome: On 12/11/17 17:46, Jerome Brunet wrote: > On Mon, 2017-12-11 at 14:48 +0800, Yixun Lan wrote: >> From: Qiufang Dai >> >> Add clock controller drivers for Amlogic Meson-AXG SoC. >> >> Acked-by: Neil Armstrong >> Signed-off-by: Qiufang Dai >> Signed-off-by: Yixun Lan >> --- >> arch/a

Re: [PATCH v3] kbuild: fix linker feature test macros when cross compiling with Clang

2017-12-11 Thread Arnd Bergmann
On Mon, Nov 6, 2017 at 7:47 PM, Nick Desaulniers wrote: > I was not seeing my linker flags getting added when using ld-option when > cross compiling with Clang. Upon investigation, this seems to be due to > a difference in how GCC vs Clang handle cross compilation. > > GCC is configured at build t

[PATCH V4 11/11] KVM: x86: Implement Intel Processor Trace context switch

2017-12-11 Thread Luwei Kang
From: Chao Peng Load/Store Intel processor trace register in context switch. MSR IA32_RTIT_CTL is loaded/stored automatically from VMCS. In HOST mode, we just need to restore the status of IA32_RTIT_CTL. In HOST_GUEST mode, we need load/resore PT MSRs only when PT is enabled in guest. Signed-off

[PATCH V4 07/11] KVM: x86: Add a function to disable/enable Intel PT MSRs intercept

2017-12-11 Thread Luwei Kang
Intel Processor Trace MSRs(except IA32_RTIT_CTL) would be passthrough to guest when Intel PT is enable in guest. So we need this function to disable/enable intercept these MSRs. Signed-off-by: Luwei Kang --- arch/x86/kvm/vmx.c | 68 ++ 1 file c

Re: [PATCH] PCI: dwc: Use {upper,lower}_32_bits() macros for clarity

2017-12-11 Thread Lorenzo Pieralisi
On Tue, Nov 28, 2017 at 04:53:34PM -0800, Stephen Boyd wrote: > We have macros for getting the upper or lower 32 bits of a > number. Use them here to shave a couple lines off the code. > > Signed-off-by: Stephen Boyd > --- > drivers/pci/dwc/pcie-designware-host.c | 6 ++ > 1 file changed, 2

[PATCH V4 02/11] perf/x86/intel/pt: Change pt_cap_get() to a public function

2017-12-11 Thread Luwei Kang
From: Chao Peng Change pt_cap_get() to a public function so that KVM can access it. Signed-off-by: Chao Peng Signed-off-by: Luwei Kang --- arch/x86/events/intel/pt.c | 3 ++- arch/x86/events/intel/pt.h | 18 -- arch/x86/include/asm/intel_pt.h | 20 ++

Re: [PATCH] drm: Update edid-derived drm_display_info fields at edid property set

2017-12-11 Thread Daniel Vetter
On Thu, Dec 07, 2017 at 04:42:57PM -0800, Keith Packard wrote: > There are a set of values in the drm_display_info structure for each > connector which hold information derived from EDID. These are computed > in drm_add_display_info. Before this patch, that was only called in > drm_add_edid_modes.

Re: Linux 4.15-rc3 (uml + bpf_perf_event.h)

2017-12-11 Thread Daniel Borkmann
Hi Randy, hi Richard, [ +Hendrik for c895f6f703ad7dd2f ] On 12/11/2017 09:32 AM, Richard Weinberger wrote: > Randy, > > Am Montag, 11. Dezember 2017, 03:42:12 CET schrieb Randy Dunlap: >> On 12/10/2017 06:08 PM, Linus Torvalds wrote: >>> Another week, another rc. >> >> um (uml) won't build on i38

Re: [PATCH 1/3] Input: twl4030-vibra: fix sibling-node lookup

2017-12-11 Thread Johan Hovold
On Sat, Nov 11, 2017 at 04:43:37PM +0100, Johan Hovold wrote: > A helper purported to look up a child node based on its name was using > the wrong of-helper and ended up prematurely freeing the parent of-node > while searching the whole device tree depth-first starting at the parent > node. > > Fi

Re: [PATCH v6 3/6] clk: meson-axg: add clock controller drivers

2017-12-11 Thread Jerome Brunet
On Mon, 2017-12-11 at 18:16 +0800, Yixun Lan wrote: > > Overall, the changes looks good to me. > > I still have a few comments which I'd like to see addressed quickly after > > this > > series is merged > > did you say that: > you will merge these patches now, then I could send fixes later? > >

Re: [PATCH] ARM: debug: add stm32 low-level debug support

2017-12-11 Thread Ludovic BARRE
Hi Neil, Philippe thanks for review I will send V2 with: -my "signed-off" -Acked-by: Alexandre TORGUE -SPDX license /* SPDX-License-Identifier: GPL-2.0 */ BR Ludo On 12/11/2017 10:33 AM, Philippe Ombredanne wrote: Ludovic, On Mon, Dec 11, 2017 at 10:08 AM, Alexandre Torgue wrote: Hi Ludov

Re: [RFC v2 1/3] security: Add safe, dynamic (runtime-loadable) hook support

2017-12-11 Thread Tetsuo Handa
James Morris wrote: > On Fri, 8 Dec 2017, Casey Schaufler wrote: > > Would it make sense to have lsm_dynamic.h ? > > Yes. OK, you are going to consider LKM based LSMs, aren't you? Any chance changing "struct security_hook_heads" to pure "struct list_head[]" with enum (below patch) ? Below patch

Re: [PATCH 1/6] ARM: stm32: prepare stm32 family to welcome armv7 architecture

2017-12-11 Thread Linus Walleij
On Fri, Dec 8, 2017 at 3:11 PM, Ludovic Barre wrote: > From: Ludovic Barre > > This patch prepares the STM32 machine for the integration of Cortex-A > based microprocessor (MPU), on top of the existing Cortex-M > microcontroller family (MCU). Since both MCUs and MPUs are sharing > common hardwar

Re: [PATCH v1 2/2] usb: tegra: Move UTMI-pads reset from ehci-tegra to tegra-phy

2017-12-11 Thread Thierry Reding
On Mon, Dec 11, 2017 at 02:07:38AM +0300, Dmitry Osipenko wrote: > UTMI pads are shared by USB controllers and reset of UTMI pads is shared > with the reset of USB1 controller. Currently reset of UTMI pads is done by > the EHCI driver and ChipIdea UDC works because EHCI driver always happen > to be

Build regressions/improvements in v4.15-rc3

2017-12-11 Thread Geert Uytterhoeven
Below is the list of build error/warning regressions/improvements in v4.15-rc3[1] compared to v4.14[2]. Summarized: - build errors: +1/-6 - build warnings: +1116/-1061 JFYI, when comparing v4.15-rc3[1] to v4.15-rc2[3], the summaries are: - build errors: +0/-0 - build warnings: +308/-941

Re: [RFC PATCH 2/5] perf jevents: add support for arch recommended events

2017-12-11 Thread John Garry
On 09/12/2017 07:31, Jiri Olsa wrote: On Fri, Dec 08, 2017 at 03:42:10PM +, John Garry wrote: On 08/12/2017 12:29, Jiri Olsa wrote: On Wed, Dec 06, 2017 at 03:20:14PM +, John Garry wrote: On 06/12/2017 13:36, Jiri Olsa wrote: On Wed, Dec 06, 2017 at 12:13:16AM +0800, John Garry wrote:

Re: [PATCH] HID: elecom: rewrite report fixup for EX-G and future mice

2017-12-11 Thread Jiri Kosina
On Sat, 9 Dec 2017, Tomasz Kramkowski wrote: > Alright, that's fine. Anything else to change before I send a v2? Not from my side, I think we're good to go. > Also, would you like v2 in-reply-to the root of this thread or as its > own thread? Feel free to send it as a followup here. Thanks,

Re: [PATCH v2] PCI: keystone: fix interrupt-controller-node lookup

2017-12-11 Thread Johan Hovold
On Fri, Nov 17, 2017 at 02:38:31PM +0100, Johan Hovold wrote: > Fix child-node lookup during initialisation which was using the wrong > OF-helper and ended up searching the whole device tree depth-first > starting at the parent rather than just matching on its children. > > To make things worse, t

Re: [PATCH 1/4] PM / core: Use dev_pm_skip_next_resume_phases() internally

2017-12-11 Thread Ulf Hansson
On 10 December 2017 at 00:56, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Make the PM core call dev_pm_skip_next_resume_phases() to skip the > "early resume" and "resume" phases of system-wide transitions to the > working state for a given device instead of clearing the relevant > stat

Re: [Intel-gfx] linux-next: Signed-off-by missing for commit in the drm-intel-fixes tree

2017-12-11 Thread Joonas Lahtinen
+ GVT folks. On Fri, 2017-12-08 at 09:15 +1100, Stephen Rothwell wrote: > Hi all, > > Commit > > 365ad5df9caa ("drm/i915/gvt: Export > intel_gvt_render_mmio_to_ring_id()") > > is missing a Signed-off-by from its committer. > -- Joonas Lahtinen Open Source Technology Center Intel Corporation

Re: [PATCH v8 00/20] ILP32 for ARM64

2017-12-11 Thread Catalin Marinas
Hi Yury, On Thu, Nov 16, 2017 at 02:11:30PM +0300, Yury Norov wrote: > This is ILP32 patches on top of 4.14 kernel: > https://github.com/norov/linux/commits/ilp32-4.14 > > I tested the series with LTP lite built by Linaro toolchain, and no > regressions found. Thanks. I gave it a try as well wit

Re: [PATCH] usb-core: Fix potential null pointer dereference in xhci-debugfs.c

2017-12-11 Thread Mathias Nyman
On 10.12.2017 00:38, Alexander Kappner wrote: Hi Mathias, thanks for the patch! The system now resumes cleanly from hibernate even with usbmuxd doing its thing. Tested-by: Alexander Kappner While testing this I hit some other issues with xhci-debugfs.c but I'll write these up in a separate

[PATCH 0/6] target/loopback/tcm: Adjustments for some function implementations

2017-12-11 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 11 Dec 2017 11:33:44 +0100 Some update suggestions were taken into account from static source code analysis. Markus Elfring (6): Delete an error message for a failed memory allocation in four functions Improve a size determination in two functions Combine su

Re: [PATCH v2] PCI: keystone: fix interrupt-controller-node lookup

2017-12-11 Thread Lorenzo Pieralisi
On Mon, Dec 11, 2017 at 11:29:55AM +0100, Johan Hovold wrote: > On Fri, Nov 17, 2017 at 02:38:31PM +0100, Johan Hovold wrote: > > Fix child-node lookup during initialisation which was using the wrong > > OF-helper and ended up searching the whole device tree depth-first > > starting at the parent r

[PATCH 1/6] target: tcm_loop: Delete an error message for a failed memory allocation in four functions

2017-12-11 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 10 Dec 2017 21:18:15 +0100 Omit an extra message for a memory allocation failure in these functions. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/target/loopback/tcm_loop.c | 14 -- 1 file chang

[PATCH 2/6] target: tcm_loop: Improve a size determination in two functions

2017-12-11 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 10 Dec 2017 21:23:43 +0100 Replace the specification of data structures by pointer dereferences as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. This issue was detec

[PATCH V2 1/1] ARM: debug: add stm32 low-level debug support

2017-12-11 Thread Ludovic Barre
From: Ludovic Barre This adds low-level debug support on USART1 for STM32F4 and STM32F7. Compiled via 'CONFIG_DEBUG_LL' and 'CONFIG_EARLY_PRINTK'. Enabled via 'earlyprintk' in bootargs. Signed-off-by: Gerald Baeza Signed-off-by: Ludovic Barre Acked-by: Alexandre TORGUE --- arch/arm/Kconfig.d

[PATCH 3/6] target: tcm_loop: Combine substrings for 26 messages

2017-12-11 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 11 Dec 2017 10:40:23 +0100 The script "checkpatch.pl" pointed information out like the following. WARNING: quoted string split across lines Thus fix the affected source code places. Signed-off-by: Markus Elfring --- drivers/target/loopback/tcm_loop.c | 120 +++

Re: [PATCH 02/20] dt-bindings: gpio: Add ASPEED constants

2017-12-11 Thread Joel Stanley
On Mon, Dec 11, 2017 at 6:26 PM, Arnd Bergmann wrote: > On Mon, Dec 11, 2017 at 6:06 AM, Joel Stanley wrote: >> These are used to by the device tree to map pin numbers to constants >> required by the GPIO bindings. >> + >> +#define ASPEED_GPIO_PORT_A 0 >> +#define ASPEED_GPIO_PORT_B 1 >> +#define

Re: [PATCH 05/20] ARM: dts: aspeed: Add proper clock references

2017-12-11 Thread Joel Stanley
On Mon, Dec 11, 2017 at 6:39 PM, Arnd Bergmann wrote: > On Mon, Dec 11, 2017 at 6:06 AM, Joel Stanley wrote: >> The existing device trees use fixed-clocks in order to boot without a >> clk driver. The newly added clk driver provides proper clock support, >> including gating, so we move the device

[PATCH 4/6] target: tcm_loop: Delete two unnecessary variable initialisations in tcm_loop_issue_tmr()

2017-12-11 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 11 Dec 2017 10:56:42 +0100 The variables "se_cmd" and "tl_cmd" will eventually be set to appropriate pointers a bit later. Thus omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring --- drivers/target/loopback/tcm_loop.c | 4 ++-- 1 fi

Re: [PATCH 03/20] ARM: dts: aspeed-g4: Correct VUART IRQ number

2017-12-11 Thread Joel Stanley
On Mon, Dec 11, 2017 at 6:28 PM, Arnd Bergmann wrote: > On Mon, Dec 11, 2017 at 6:06 AM, Joel Stanley wrote: >> This should have always been 8. >> >> Signed-off-by: Joel Stanley > > As this is a bugfix, should we backport it to stable kernels? When you > fix a bug, > I generally recommend includ

Re: [RESEND PATCH v4 2/2] arm64: Add software workaround for Falkor erratum 1041

2017-12-11 Thread Mark Rutland
Hi, On Sun, Dec 10, 2017 at 08:03:43PM -0600, Shanker Donthineni wrote: > +/** > + * Errata workaround prior to disable MMU. Insert an ISB immediately prior > + * to executing the MSR that will change SCTLR_ELn[M] from a value of 1 to 0. > + */ > + .macro pre_disable_mmu_workaround > +#ifdef C

[PATCH 5/6] target: tcm_loop: Delete an unnecessary return statement in tcm_loop_submission_work()

2017-12-11 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 11 Dec 2017 10:58:33 +0100 The script "checkpatch.pl" pointed information out like the following. WARNING: void function return statements are not generally useful Thus remove such a statement in the affected function. Signed-off-by: Markus Elfring --- drivers

[PATCH] checkpatch: don't require octal permissions for "0" in module_param

2017-12-11 Thread Bartosz Golaszewski
File permissions set to "0" in the module_param family of macros mean that the parameter should not show up in sysfs. Don't require octal permissions in this case. Signed-off-by: Bartosz Golaszewski --- scripts/checkpatch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scr

[PATCH 6/6] target: tcm_loop: Use seq_puts() in tcm_loop_show_info()

2017-12-11 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 11 Dec 2017 11:01:57 +0100 The script "checkpatch.pl" pointed information out like the following. WARNING: Prefer seq_puts to seq_printf Thus fix the affected source code place. Signed-off-by: Markus Elfring --- drivers/target/loopback/tcm_loop.c | 2 +- 1 fil

Re: [Xen-devel] [PATCH v3 4/4] x86/xen: supply rsdp address in boot params for pvh guests

2017-12-11 Thread Juergen Gross
On 11/12/17 11:09, Jan Beulich wrote: On 08.12.17 at 16:11, wrote: >> Set the boot loader version to 2.14 (0x020e) replacing the wrong 0x0212 >> which should have been 0x020c. > > This part of the description has become partly stale now with the > new patch 3. Indeed. I'll wait for other co

Re: [RFC] Rebasing the IDR

2017-12-11 Thread Chris Wilson
Quoting Matthew Wilcox (2017-11-30 17:36:30) > About 40 of the approximately 180 users of the IDR in the kernel are > "1-based" instead of "0-based". That is, they never want to have ID 0 > allocated; they want to see IDs allocated between 1 and N. Usually, that's > expressed like this: > >

[PATCH v3 1/4] dt-bindings: rtc: add bindings for i.MX53 SRTC

2017-12-11 Thread linux-kernel-dev
From: Patrick Bruenn Document the binding for i.MX53 SRTC implemented by rtc-mxc_v2 Signed-off-by: Patrick Bruenn --- v2: - added "Secure" and (SRTC) to the description Cc: Alessandro Zummo Cc: Alexandre Belloni Cc: Rob Herring Cc: Mark Rutland (maintainer:OPEN FIRMWARE AND FLATTENED D

[PATCH v3 0/4] rtc: add mxc driver for i.MX53 SRTC

2017-12-11 Thread linux-kernel-dev
From: Patrick Bruenn Neither rtc-imxdi, rtc-mxc nor rtc-snvs are compatible with i.MX53. This is driver enables support for the low power domain SRTC features: - 32-bit MSB of non-rollover time counter - 32-bit alarm register Select the new config option RTC_DRV_MXC_V2 to build this driver Bas

[PATCH v3 2/4] ARM: dts: imx53: add srtc node

2017-12-11 Thread linux-kernel-dev
From: Patrick Bruenn rtc-mxc_v2 driver will add support for the i.MX53 SRTC Signed-off-by: Patrick Bruenn --- Cc: Shawn Guo Cc: Sascha Hauer (maintainer:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE) Cc: Alessandro Zummo Cc: Alexandre Belloni Cc: Rob Herring Cc: Mark Rutland (maintainer:OP

[PATCH v3 4/4] ARM: imx_v6_v7_defconfig: enable RTC_DRV_MXC_V2

2017-12-11 Thread linux-kernel-dev
From: Patrick Bruenn Enable SRTC driver for i.MX53 in default config Signed-off-by: Patrick Bruenn --- v3: - imx_v4_v5_defconfig was the wrong default config for i.MX53 Cc: Shawn Guo Cc: Sascha Hauer (maintainer:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE) Cc: Alessandro Zummo Cc: Alexandre

Re: [Intel-gfx] [GIT pull] x86 APIC updates for 4.15

2017-12-11 Thread Thomas Gleixner
On Mon, 11 Dec 2017, Daniel Vetter wrote: > Anything else we can do to move this? I just had to resolve a small > conflict when moving forward to -rc3. Carrying a revert for the entire > apic pull (too many deps to just revert the bisected patch) is a bit > annoying. https://lkml.kernel.org/r/al

[PATCH v3 3/4] rtc: add mxc driver for i.MX53 SRTC

2017-12-11 Thread linux-kernel-dev
From: Patrick Bruenn Neither rtc-imxdi, rtc-mxc nor rtc-snvs are compatible with i.MX53. This is driver enables support for the low power domain SRTC features: - 32-bit MSB of non-rollover time counter - 32-bit alarm register Select the new config option RTC_DRV_MXC_V2 to build this driver Bas

Re: [RESEND PATCH] irq_work: improve the flag definitions

2017-12-11 Thread Bartosz Golaszewski
2017-11-27 11:52 GMT+01:00 Bartosz Golaszewski : > IRQ_WORK_FLAGS is defined simply to 3UL. This is confusing as it > says nothing about its purpose. Define IRQ_WORK_FLAGS as a bitwise > OR of IRQ_WORK_PENDING and IRQ_WORK_BUSY and change its name to > IRQ_WORK_CLAIMED. > > While we're at it: use t

Re: KASAN: stack-out-of-bounds Read in write_mmio

2017-12-11 Thread Wanpeng Li
2017-12-09 19:39 GMT+08:00 Tianyu Lan : > 2017-12-09 17:15 GMT+08:00 syzbot > : >> syzkaller has found reproducer for the following crash on >> ad4dac17f9d563b9e34aab78a34293b10993e9b5 >> git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/master >> compiler: gcc (GCC) 7.1.1 20170620

Re: [Intel-gfx] [GIT pull] x86 APIC updates for 4.15

2017-12-11 Thread Thomas Gleixner
On Mon, 11 Dec 2017, Thomas Gleixner wrote: > On Mon, 11 Dec 2017, Daniel Vetter wrote: > > Anything else we can do to move this? I just had to resolve a small > > conflict when moving forward to -rc3. Carrying a revert for the entire > > apic pull (too many deps to just revert the bisected patch)

Re: [PATCH 00/18] crypto: talitos - fixes and performance improvement

2017-12-11 Thread Herbert Xu
On Fri, Dec 08, 2017 at 03:20:40PM +, Horia Geantă wrote: > On 10/12/2017 6:20 PM, Herbert Xu wrote: > > On Fri, Oct 06, 2017 at 03:04:31PM +0200, Christophe Leroy wrote: > >> This serie fixes and improves the talitos crypto driver. > >> > >> First 6 patchs are fixes of failures reported by the

Re: [GIT PULL for v4.15-rc3] media fixes

2017-12-11 Thread Mauro Carvalho Chehab
Hi Linus, Em Fri, 8 Dec 2017 13:28:57 -0800 Linus Torvalds escreveu: > On Fri, Dec 8, 2017 at 7:56 AM, Mauro Carvalho Chehab > wrote: > > > > - The largest amount of fixes in this series is with regards to comments > > that aren't kernel-doc, but start with "/**". A new check added for > >

Re: [PATCH v3 31/36] mac80211_hwsim: Replace hrtimer tasklet with softirq hrtimer

2017-12-11 Thread Johannes Berg
On Wed, 2017-11-29 at 16:30 +0100, Anna-Maria Gleixner wrote: > From: Thomas Gleixner > > Switch the timer to HRTIMER_MODE_SOFT, which executed the timer > callback in softirq context and remove the hrtimer_tasklet. You didn't change the commit log to HRTIMER_MODE_REL_SOFT, but otherwise looks g

Re: [PATCH v6 4/6] clk: meson: make the spinlock naming more specific

2017-12-11 Thread Jerome Brunet
On Mon, 2017-12-11 at 14:48 +0800, Yixun Lan wrote: > .ops = &clk_gate_ops, > diff --git a/drivers/clk/meson/clkc.h b/drivers/clk/meson/clkc.h > index 1629da9b4141..87f06a801a4d 100644 > --- a/drivers/clk/meson/clkc.h > +++ b/drivers/clk/meson/clkc.h > @@ -134,7 +134,7 @@ struct mes

<    1   2   3   4   5   6   7   8   9   >