Re: [PATCH] cpufreq: skip cpufreq resume if it's not suspended

2018-02-02 Thread Rafael J. Wysocki
On Wednesday, January 24, 2018 9:53:14 PM CET Bo Yan wrote: > > On 01/23/2018 06:02 PM, Rafael J. Wysocki wrote: > > On Tuesday, January 23, 2018 10:57:55 PM CET Bo Yan wrote: > >> drivers/cpufreq/cpufreq.c | 4 > >> 1 file changed, 4 insertions(+) > >> > >> diff --git

Re: Is the hisilicon tree maintained ?

2018-02-02 Thread Wei Xu
Hi Daniel, On 2018/2/2 12:05, Daniel Lezcano wrote: > On 02/02/2018 12:42, Wei Xu wrote: >> Hi Daniel, >> >> On 2018/2/2 6:59, Daniel Lezcano wrote: >>> >>> Hi Wei Xu, >>> >>> I found in the MAINTAINERS file the hisilicon tree is at: >>> >>> https://github.com/hisilicon/linux-hisi >>> >>> But,

[PATCH 04/17] kexec_file: Search symbols in read-only kexec_purgatory

2018-02-02 Thread Philipp Rudo
The stripped purgatory does not contain a symtab. So when looking for symbols this is done in read-only kexec_purgatory. Highlight this by marking the corresponding variables as 'const'. Signed-off-by: Philipp Rudo --- kernel/kexec_file.c | 38

[PATCH 05/17] kexec_file: Use read-only sections in arch_kexec_apply_relocations*

2018-02-02 Thread Philipp Rudo
When the relocations are applied to the purgatory only the section the relocations are applied to is writable. The other sections, i.e. the symtab and .rel/.rela, are in read-only kexec_purgatory. Highlight this by marking the corresponding variables as 'const'. While at it also change the

[PATCH 02/17] kexec_file: Remove checks in kexec_purgatory_load

2018-02-02 Thread Philipp Rudo
Before the purgatory is loaded several checks are done whether the ELF file in kexec_purgatory is valid or not. These checks are incomplete. For example they don't check for the total size of the sections defined in the section header table or if the entry point actually points into the purgatory.

[PATCH 07/17] kexec_file: Simplify kexec_purgatory_setup_sechdrs 1

2018-02-02 Thread Philipp Rudo
To update the entry point there is an extra loop over all section headers although this can be done in the main loop. So move it there and eliminate the extra loop and variable to store the 'entry section index'. Also, in the main loop, move the usual case, i.e. non-bss section, out of the extra

[PATCH 06/17] kexec_file: Split up __kexec_load_puragory

2018-02-02 Thread Philipp Rudo
When inspecting __kexec_load_purgatory you find that it has two tasks 1) setting up the kexec_buffer for the new kernel and, 2) setting up pi->sechdrs for the final load address. The two tasks are independent of each other. To improve readability split up __kexec_load_purgatory

[PATCH 09/17] kexec_file: Remove mis-use of sh_offset field

2018-02-02 Thread Philipp Rudo
The current code uses the sh_offset field in purgatory_info->sechdrs to store a pointer to the current load address of the section. Depending whether the section will be loaded or not this is either a pointer into purgatory_info->purgatory_buf or kexec_purgatory. This is not only a violation of

[PATCH 08/17] kexec_file: Simplify kexec_purgatory_setup_sechdrs 2

2018-02-02 Thread Philipp Rudo
The main loop currently uses quite a lot of variables to update the section headers. Some of them are unnecessary. So clean them up a little. Signed-off-by: Philipp Rudo --- kernel/kexec_file.c | 34 -- 1 file changed, 12 insertions(+),

[PATCH 01/17] kexec_file: Silence compile warnings

2018-02-02 Thread Philipp Rudo
When building the kernel with CONFIG_KEXEC_FILE enabled gcc prints a compile warning multiple times. In file included from /linux/init/initramfs.c:526:0: /include/linux/kexec.h:120:9: warning: ‘struct kimage’ declared inside parameter list [enabled by default] unsigned long

Re: [PATCH] clk: sunxi-ng: ccu-sun4i-a10: Fix mali changing dclk frequency

2018-02-02 Thread Maxime Ripard
On Fri, Feb 02, 2018 at 11:57:20AM +0100, Giulio Benetti wrote: > Il 02/02/2018 11:53, Maxime Ripard ha scritto: > > Hi, > > > > On Thu, Feb 01, 2018 at 05:17:11PM +0100, Giulio Benetti wrote: > > > > > > What kernel version did you use? > > > > > > > > > > Latest mainline. > > > > > > > > I

[GIT PULL] Please pull powerpc/linux.git powerpc-4.16-1 tag

2018-02-02 Thread Michael Ellerman
Hi Linus, Please pull powerpc updates for 4.16. We've added a new driver in drivers/misc, which Greg was OK for us to merge via powerpc, though it has still resulted in a trivial conflict in the Makefile and Kconfig. There's also a conflict with the nvdimm tree, which you haven't merged yet

Re: [PATCH v6 19/41] clk: davinci: New driver for TI DA8XX USB PHY clocks

2018-02-02 Thread Sekhar Nori
On Saturday 20 January 2018 10:43 PM, David Lechner wrote: > diff --git a/include/linux/clk/davinci.h b/include/linux/clk/davinci.h > index 54ea3ff..04b48b3 100644 > --- a/include/linux/clk/davinci.h > +++ b/include/linux/clk/davinci.h > @@ -9,6 +9,9 @@ > > #include > > +struct clk; >

Re: [PATCH v2 06/16] iio: adc: sun4i-gpadc-iio: rework: support multiple sensors

2018-02-02 Thread Philipp Rossak
On 31.01.2018 19:42, Quentin Schulz wrote: Hi Philipp, On Mon, Jan 29, 2018 at 12:29:09AM +0100, Philipp Rossak wrote: For adding newer sensor some basic rework of the code is necessary. This patch reworks the driver to be able to handle more than one thermal sensor. Newer SoC like the A80

Re: [PATCH v11 00/10] Application Data Integrity feature introduced by SPARC M7

2018-02-02 Thread Steven Sistare
On 2/1/2018 9:29 PM, ebied...@xmission.com wrote: > Khalid Aziz writes: > >> V11 changes: >> This series is same as v10 and was simply rebased on 4.15 kernel. Can >> mm maintainers please review patches 2, 7, 8 and 9 which are arch >> independent, and include/linux/mm.h

Re: [PATCH v6 20/41] ARM: da830: add new clock init using common clock framework

2018-02-02 Thread Sekhar Nori
On Saturday 20 January 2018 10:43 PM, David Lechner wrote: > void __init da830_init_time(void) > { > +#ifdef CONFIG_COMMON_CLK > + void __iomem *pll0, *psc0, *psc1; > + struct clk *clk; > + > + pll0 = ioremap(DA8XX_PLL0_BASE, SZ_4K); > + psc0 = ioremap(DA8XX_PSC0_BASE, SZ_4K); >

[PATCH RFC v2 2/3] dt-bindings/interrupt-controller: pdc: descibe PDC device binding

2018-02-02 Thread Lina Iyer
From: Archana Sathyakumar Add device binding documentation for the PDC Interrupt controller on QCOM SoC's like the SDM845. The interrupt-controller can be used to sense edge low interrupts and wakeup interrupts when the GIC is non-operational. Cc:

[PATCH RFC v2 1/3] drivers: irqchip: pdc: Add PDC interrupt controller for QCOM SoCs

2018-02-02 Thread Lina Iyer
>From : Archana Sathyakumar The Power Domain Controller (PDC) on QTI SoCs like SDM845 houses an interrupt controller along with other domain control functions to handle interrupt related functions like handle falling edge or active low which are not detected at the GIC

[PATCH RFC v2 0/3] irqchip: qcom: add support for PDC interrupt controller

2018-02-02 Thread Lina Iyer
Changes in v2: - Drviers will specify PDC pin as their interrupt and PDC as interrupt parent - Updated driver to pick up PDC pin mappings from DT - Cleanup driver per Marc's suggestions - Addressed DT bindings comments from Rob H - Addressed FTRACE comments from Steven R On newer Qualcomm

Re: [PATCH v6 22/41] ARM: dm355: add new clock init using common clock framework

2018-02-02 Thread Sekhar Nori
On Saturday 20 January 2018 10:44 PM, David Lechner wrote: > This adds the new board-specific clock init in mach-davinci/dm355.c > using the new common clock framework drivers. > > The #ifdefs are needed to prevent compile errors until the entire > ARCH_DAVINCI is converted. > > Also clean up

RE: [PATCH V5 12/17] perf evsel: expose perf_missing_features.write_backward

2018-02-02 Thread Liang, Kan
> Em Thu, Jan 18, 2018 at 01:26:27PM -0800, kan.li...@intel.com escreveu: > > From: Kan Liang > > > > perf top need it to handle overwrite fallback later. > > > > Signed-off-by: Kan Liang > > --- > > tools/perf/util/evsel.c | 5 + > >

[PATCH] KVM: x86: Reduce retpoline performance impact in slot_handle_level_range()

2018-02-02 Thread David Woodhouse
With retpoline, tight loops of "call this function for every XXX" are very much pessimised by taking a prediction miss *every* time. This one showed up very high in our early testing, and it only has five things it'll ever call so make it take an 'op' enum instead of a function pointer and let's

[PATCH 3/3] x86: error_inject: make just_return_func globally visible

2018-02-02 Thread Arnd Bergmann
With link time optimizations enabled, I get a link failure: ./ccLbOEHX.ltrans19.ltrans.o: In function `override_function_with_return': :(.text+0x7f3): undefined reference to `just_return_func' Marking the symbol .globl makes it work as expected. Fixes: 540adea3809f ("error-injection: Separate

Re: [PATCH v11 00/10] Application Data Integrity feature introduced by SPARC M7

2018-02-02 Thread Khalid Aziz
On 02/01/2018 07:29 PM, ebied...@xmission.com wrote: Khalid Aziz writes: V11 changes: This series is same as v10 and was simply rebased on 4.15 kernel. Can mm maintainers please review patches 2, 7, 8 and 9 which are arch independent, and include/linux/mm.h and

[PATCH 0/2] i2c-puv3: Adjustments for puv3_i2c_probe()

2018-02-02 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 2 Feb 2018 15:54:32 +0100 Two update suggestions were taken into account from static source code analysis. Markus Elfring (2): Delete an error message for a failed memory allocation Improve a size determination

[PATCH] kdb: use memmove instead of overlapping memcpy

2018-02-02 Thread Arnd Bergmann
gcc discovered that the memcpy() arguments in kdbnearsym() overlap, so we should really use memmove(), which is defined to handle that correctly: In function 'memcpy', inlined from 'kdbnearsym' at /git/arm-soc/kernel/debug/kdb/kdb_support.c:132:4: /git/arm-soc/include/linux/string.h:353:9:

[PATCH] net: cxgb4: avoid memcpy beyond end of source buffer

2018-02-02 Thread Arnd Bergmann
Building with link-time-optimizations revealed that the cxgb4 driver does a fixed-size memcpy() from a variable-length constant string into the network interface name: In function 'memcpy', inlined from 'cfg_queues_uld.constprop' at drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.c:335:2,

Re: [V2][PATCH] ohci-hcd: Fix race condition caused by ohci_urb_enqueue() and io_watchdog_func()

2018-02-02 Thread Alan Stern
On Fri, 2 Feb 2018, Haiqing Bai wrote: > From: Shigeru Yoshida > > Running io_watchdog_func() while ohci_urb_enqueue() is running can > cause a race condition where ohci->prev_frame_no is corrupted and the > watchdog can mis-detect following error: > >

Re: [PATCH 1/2] fbdev: don't select I2C directly

2018-02-02 Thread Arnd Bergmann
On Fri, Feb 2, 2018 at 1:21 AM, Randy Dunlap wrote: > On 02/01/2018 08:14 AM, Bartlomiej Zolnierkiewicz wrote: >> On Monday, January 15, 2018 05:14:04 PM Arnd Bergmann wrote: >>> Using a Kconfig 'select' statement for a user-visible symbol that other >>> drivers depend on

Re: [PATCH v3 18/18] arm64: Kill PSCI_GET_VERSION as a variant-2 workaround

2018-02-02 Thread Marc Zyngier
On 02/02/18 04:05, Hanjun Guo wrote: > Hi Marc, > > Thank you for keeping me in the loop, just minor comments below. > > On 2018/2/1 19:46, Marc Zyngier wrote: >> Now that we've standardised on SMCCC v1.1 to perform the branch >> prediction invalidation, let's drop the previous band-aid. >> If

[PATCH 3/6] scsi: sym53c416: avoid section mismatch with LTO

2018-02-02 Thread Arnd Bergmann
Building with link time optimizations produces a false-postive section mismatch warning: WARNING: vmlinux.o(.data+0xf8c8): Section mismatch in reference from the variable driver_template.lto_priv.6915 to the function .init.text:sym53c416_detect() The variable driver_template.lto_priv.6915

Re: [PATCH 4/4] sched/fair: Use a recently used CPU as an idle candidate and the basis for SIS

2018-02-02 Thread Mel Gorman
On Fri, Feb 02, 2018 at 12:42:29PM +0100, Rafael J. Wysocki wrote: > > > > But now that you made me look, intel_pstate_hwp_set() is horrible crap. > > > > You should _never_ do things like: > > > > > > > > rdmsr_on_cpu() > > > > /* frob value */ > > > > wrmsr_on_cpu() > > > > > > > >

Re: [PATCH] perf vendor events aarch64: Add JSON metrics for ARM Cortex-A53 Processor

2018-02-02 Thread Arnaldo Carvalho de Melo
Em Thu, Feb 01, 2018 at 04:52:16PM -0500, William Cohen escreveu: > On 02/01/2018 03:51 PM, Arnaldo Carvalho de Melo wrote: > > Em Thu, Feb 01, 2018 at 10:12:59AM -0500, William Cohen escreveu: > >> On 02/01/2018 09:43 AM, Arnaldo Carvalho de Melo wrote: > >>> Em Tue, Jan 30, 2018 at 10:28:13PM

[git pull] FireWire (IEEE 1394) updates post v4.15

2018-02-02 Thread Stefan Richter
Linus, please pull from the tag "firewire-updates" at git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394.git firewire-updates to receive the following IEEE 1394 subsystem patches: - make JMicron JMB38x controllers work with IOMMU-equipped systems - IP-over-1394: allow

Re: Is the hisilicon tree maintained ?

2018-02-02 Thread Daniel Lezcano
On 02/02/2018 14:48, Wei Xu wrote: > Hi Daniel, > > On 2018/2/2 13:34, Daniel Lezcano wrote: >> On 02/02/2018 13:10, Wei Xu wrote: >>> Hi Daniel, >>> >>> On 2018/2/2 12:05, Daniel Lezcano wrote: On 02/02/2018 12:42, Wei Xu wrote: > Hi Daniel, > > On 2018/2/2 6:59, Daniel Lezcano

[PATCH 10/14] clk: stm32mp1: add Peripheral clocks

2018-02-02 Thread gabriel.fernandez
From: Gabriel Fernandez Each peripheral requires a bus interface clock. Signed-off-by: Gabriel Fernandez --- drivers/clk/clk-stm32mp1.c | 114 + 1 file changed, 114 insertions(+) diff --git

[PATCH 08/14] clk: stm32mp1: add Sub System clocks

2018-02-02 Thread gabriel.fernandez
From: Gabriel Fernandez The RCC handles three sub-system clocks: ck_mpuss, ck_axiss and ck_mcuss. This patch adds also some MUX system and several prescalers. Signed-off-by: Gabriel Fernandez --- drivers/clk/clk-stm32mp1.c | 61

[PATCH 11/14] clk: stm32mp1: add Kernel clocks

2018-02-02 Thread gabriel.fernandez
From: Gabriel Fernandez Some peripherals need also a dedicated clock for their communication interface, this clock is generally asynchronous with respect to the bus interface clock (peripheral clock), and is named kernel clock. Signed-off-by: Gabriel Fernandez

[PATCH 00/14] Introduce STM32MP1 clock driver

2018-02-02 Thread gabriel.fernandez
From: Gabriel Fernandez This patch-set introduces clock driver for STM32MP157 based on Arm Cortex-A7. The driver patch is splitted in several patches (by kind of clock) to facilitate code reviewing. Gabriel Fernandez (14): dt-bindings: Document STM32MP1 Reset Clock

[PATCH 14/14] clk: stm32mp1: add Debug clocks

2018-02-02 Thread gabriel.fernandez
From: Gabriel Fernandez RCC manages clock for debug and trace. Signed-off-by: Gabriel Fernandez --- drivers/clk/clk-stm32mp1.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/clk/clk-stm32mp1.c

[PATCH 13/14] clk: stm32mp1: add MCO clocks

2018-02-02 Thread gabriel.fernandez
From: Gabriel Fernandez Two micro-controller clock output (MCO) pins are available: MCO1 and MCO2. For each output, it is possible to select a clock source. The selected clock can be divided thanks to configurable prescaler. Signed-off-by: Gabriel Fernandez

[PATCH 1/2] i2c-sh7760: Delete an error message for a failed memory allocation in sh7760_i2c_probe()

2018-02-02 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 2 Feb 2018 11:46:02 +0100 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring ---

[PATCH] x86/perf : Add check for CPUID instruction before using

2018-02-02 Thread Matthew Whitehead
We still officially support the ancient i486 cpu. First generation versions of this processor do not have the CPUID instruction, though later versions do. Therefore you must check that the cpu supports it before using it. At present it fails with an "Illegal Instruction" signal on the early

Re: [PATCH v6 24/41] ARM: dm644x: add new clock init using common clock framework

2018-02-02 Thread Sekhar Nori
On Saturday 20 January 2018 10:44 PM, David Lechner wrote: > This adds the new board-specific clock init in mach-davinci/dm644x.c > using the new common clock framework drivers. > > The #ifdefs are needed to prevent compile errors until the entire > ARCH_DAVINCI is converted. > > Also clean up

Re: clang warning: implicit conversion in intel_ddi.c:1481

2018-02-02 Thread Ruben Safir
> > What is the goal of these types of emails? > even more so on this mailing list. It almost feels like guerilla advertising for Clang. > thanks, > > greg k-h > > ___ > Kernelnewbies mailing list > kernelnewb...@kernelnewbies.org >

Re: [RFC PATCH v1 12/13] mm: split up release_pages into non-sentinel and sentinel passes

2018-02-02 Thread Laurent Dufour
On 01/02/2018 00:04, daniel.m.jor...@oracle.com wrote: > A common case in release_pages is for the 'pages' list to be in roughly > the same order as they are in their LRU. With LRU batch locking, when a > sentinel page is removed, an adjacent non-sentinel page must be promoted > to a sentinel

[PATCH 1/2] i2c-puv3: Delete an error message for a failed memory allocation in puv3_i2c_probe()

2018-02-02 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 2 Feb 2018 15:41:26 +0100 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring ---

Re: [PATCH v6 27/41] ARM: da8xx: add new sata_refclk init using common clock framework

2018-02-02 Thread Sekhar Nori
On Saturday 20 January 2018 10:44 PM, David Lechner wrote: > This adds the new SATA REFCLK clock init in mach-davinci/devices-da8xx.c > using the new common clock framework drivers. > > The #ifdefs are needed to prevent compile errors until the entire > ARCH_DAVINCI is converted. > > Also, the

Re: [RFC PATCH] sched/fair: Optionally restrict SMT scheduling ("restrict_smt")

2018-02-02 Thread Sergio Lopez
On Thu, 2018-02-01 at 15:37 +0100, Mike Galbraith wrote: > On Thu, 2018-02-01 at 13:37 +0100, Sergio Lopez wrote: > > Compared against "isolcpus", "restrict_smt" presents the following > > advantages: > > - Doesn't require prior knowledge of the CPU topology, making it > > more friendly to both

Re: [PATCH v2 1/2] x86/acpi: add retrieval function for rsdp address

2018-02-02 Thread Rafael J. Wysocki
On Thu, Feb 1, 2018 at 4:45 PM, Andy Shevchenko wrote: > On Thu, Feb 1, 2018 at 9:57 AM, Rafael J. Wysocki wrote: >> On Wed, Jan 31, 2018 at 4:43 PM, Andy Shevchenko >> wrote: >>> On Mon, Jan 29, 2018 at 5:02 AM, Rafael J.

Re: Re: [PATCH v3] ACPI / tables: Add IORT to injectable table list

2018-02-02 Thread Wang, Dongsheng
Hey, Hanjun, On 2018/2/2 19:54:24, "Hanjun Guo" wrote: >On 2018/2/2 18:25, Yang Shunyong wrote: >>Loading IORT table from initrd is used to fix firmware IORT defects. > >I don't think this fix "firmware defects", it just for debug purpose, >we will not use that for

[Patch v8 04/12] [media] s5p-mfc: Support MFCv10.10 buffer requirements

2018-02-02 Thread Smitha T Murthy
Aligning the luma_dpb_size, chroma_dpb_size, mv_size and me_buffer_size for MFCv10.10. Signed-off-by: Smitha T Murthy Reviewed-by: Andrzej Hajda Acked-by: Kamil Debski Acked-by: Hans Verkuil ---

[Patch v8 06/12] [media] v4l2-ioctl: add HEVC format description

2018-02-02 Thread Smitha T Murthy
HEVC is a video coding format Signed-off-by: Smitha T Murthy Reviewed-by: Stanimir Varbanov Acked-by: Hans Verkuil --- drivers/media/v4l2-core/v4l2-ioctl.c | 1 + 1 file changed, 1 insertion(+) diff --git

[Patch v8 09/12] [media] s5p-mfc: Add VP9 decoder support

2018-02-02 Thread Smitha T Murthy
Add support for codec definition and corresponding buffer requirements for VP9 decoder. Signed-off-by: Smitha T Murthy Reviewed-by: Andrzej Hajda Acked-by: Hans Verkuil --- drivers/media/platform/s5p-mfc/regs-mfc-v10.h | 6

[Patch v8 05/12] [media] videodev2.h: Add v4l2 definition for HEVC

2018-02-02 Thread Smitha T Murthy
Add V4L2 definition for HEVC compressed format Signed-off-by: Smitha T Murthy Reviewed-by: Andrzej Hajda Reviewed-by: Stanimir Varbanov Acked-by: Hans Verkuil --- include/uapi/linux/videodev2.h |

[Patch v8 07/12] Documentation: v4l: Documentation for HEVC v4l2 definition

2018-02-02 Thread Smitha T Murthy
Add V4L2 definition for HEVC compressed format which is also known as H.265. Signed-off-by: Smitha T Murthy Reviewed-by: Andrzej Hajda Reviewed-by: Stanimir Varbanov Acked-by: Hans Verkuil ---

RE: [PATCH net-next] r8169: add module param for control of ASPM disable

2018-02-02 Thread Hau
> -Original Message- > From: Francois Romieu [mailto:rom...@fr.zoreil.com] > Sent: Friday, February 2, 2018 7:27 AM > To: Hau > Cc: net...@vger.kernel.org; nic_swsd ; linux- > ker...@vger.kernel.org > Subject: Re: [PATCH net-next] r8169: add module

Re: [PATCH V2 2/7] cpuset: Rebuild root domain deadline accounting information

2018-02-02 Thread Juri Lelli
Hi Mathieu, On 01/02/18 09:51, Mathieu Poirier wrote: > When the topology of root domains is modified by CPUset or CPUhotplug > operations information about the current deadline bandwidth held in the > root domain is lost. > > This patch address the issue by recalculating the lost deadline >

[PATCH] drm/msm/dsi: Fix potential NULL pointer dereference in msm_dsi_modeset_init

2018-02-02 Thread Gustavo A. R. Silva
_dev_ is being dereferenced before it is null checked, hence there is a potential null pointer dereference. Fix this by moving the pointer dereference after _dev_ has been null checked. Fixes: d4e7f38d70ef ("drm/msm/dsi: check msm_dsi and dsi pointers before use") Signed-off-by: Gustavo A. R.

[PATCH 11/17] kexec_file: Move purgatories sha256 to common code

2018-02-02 Thread Philipp Rudo
The code to verify the new kernels sha digest are applicable for all architectures. Move it to common code. Signed-off-by: Philipp Rudo --- arch/x86/purgatory/Makefile| 3 +++ arch/x86/purgatory/purgatory.c | 2 +-

[PATCH 10/17] kexec_file: Allow archs to set purgatory load address

2018-02-02 Thread Philipp Rudo
For s390 new kernels are loaded to fixed addresses in memory before they are booted. With the current code this is a problem as it assumes the kernel will be loaded to an 'arbitrary' address. In particular, kexec_locate_mem_hole searches for a large enough memory region and sets the load address

[PATCH 13/17] s390/kexec_file: Add purgatory

2018-02-02 Thread Philipp Rudo
The common code expects the architecture to have a purgatory that runs between the two kernels. Add it now. For simplicity first skip crash support. Signed-off-by: Philipp Rudo --- arch/s390/Kbuild | 1 + arch/s390/include/asm/purgatory.h | 17 +++

Re: [RFC PATCH 09/12] mmc: sdhci: Use software timer when timeout greater than hardware capablility

2018-02-02 Thread Kishon Vijay Abraham I
Hi Adrian, On Thursday 11 January 2018 02:16 PM, Adrian Hunter wrote: > On 04/01/18 14:59, Kishon Vijay Abraham I wrote: >> Hi Adrian, >> >> On Wednesday 20 December 2017 07:41 PM, Adrian Hunter wrote: >>> On 14/12/17 15:09, Kishon Vijay Abraham I wrote: Errata i834 in AM572x Sitara

[V9fs-developer] [RFC] why set SB_NOATIME in v9fs_fill_super by default

2018-02-02 Thread jiangyiwen
Hi all, I found v9fs always set SB_NOATIME into sb->s_flags in v9fs_fill_super, even if user use mount option relatime, I am very curious about this thing, can anyone tell me? Thanks, Yiwen Jiang.

Re: [PATCH v6 18/41] clk: davinci: New driver for TI DA8XX CFGCHIP clocks

2018-02-02 Thread Sekhar Nori
On Friday 02 February 2018 06:49 PM, Sekhar Nori wrote: > On Saturday 20 January 2018 10:43 PM, David Lechner wrote: >> +static const struct clk_ops da8xx_cfgchip_div4p5_clk_ops = { >> +.enable = da8xx_cfgchip_gate_clk_enable, >> +.disable= da8xx_cfgchip_gate_clk_disable,

[PATCH 03/14] clk: stm32mp1: Introduce STM32MP1 clock driver

2018-02-02 Thread gabriel.fernandez
From: Gabriel Fernandez This patch introduces the mechanism to probe stm32mp1 driver. It also defines registers and clocks source definition. This patch also introduces the generic mechanism to register a clock (a simple gate). All clocks will be defined in one

[Resend] Possible bug in __fragmentation_index()

2018-02-02 Thread Robert Harris
I was planning to annotate the opaque calculation in __fragmentation_index() but on closer inspection I think there may be a bug. I could use some feedback. Firstly, for the case of fragmentation and ignoring the scaling, __fragmentation_index() purports to return a value in the range 0 to 1.

Re: [PATCH v6 21/41] ARM: da850: add new clock init using common clock framework

2018-02-02 Thread Sekhar Nori
On Saturday 20 January 2018 10:44 PM, David Lechner wrote: > void __init da850_init_time(void) > { > +#ifdef CONFIG_COMMON_CLK > + void __iomem *pll0, *pll1, *psc0, *psc1; > + struct regmap *cfgchip; > + struct clk *clk; > + struct clk_hw *parent; > + > + pll0 =

[PATCH RFC v2 3/3] drivers: irqchip: pdc: log PDC info in FTRACE

2018-02-02 Thread Lina Iyer
From: Archana Sathyakumar Log key PDC pin configuration in FTRACE. Cc: Steven Rostedt Signed-off-by: Archana Sathyakumar Signed-off-by: Lina Iyer --- drivers/irqchip/qcom-pdc.c | 7 ++

[PATCH 2/2] i2c-sh7760: Improve a size determination in sh7760_i2c_probe()

2018-02-02 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 2 Feb 2018 14:50:09 +0100 Replace the specification of a data structure by a pointer dereference as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style

Re: Is the hisilicon tree maintained ?

2018-02-02 Thread Wei Xu
Hi Daniel, On 2018/2/2 14:29, Daniel Lezcano wrote: > On 02/02/2018 15:04, Wei Xu wrote: >> Hi Daniel, >> >> On 2018/2/2 13:53, Daniel Lezcano wrote: >>> On 02/02/2018 14:48, Wei Xu wrote: Hi Daniel, On 2018/2/2 13:34, Daniel Lezcano wrote: > On 02/02/2018 13:10, Wei Xu wrote:

Re: [PATCH v6 28/41] ARM: davinci: remove CONFIG_DAVINCI_RESET_CLOCKS

2018-02-02 Thread Sekhar Nori
On Saturday 20 January 2018 10:44 PM, David Lechner wrote: > The common clock framework will take care of disabling unused clocks when > we switch from the legacy davinci clocks and having this enabled will > cause compile errors after we switch, so remove it now. > > Signed-off-by: David Lechner

Re: [PATCH v6 29/41] ARM: davinci_all_defconfig: remove CONFIG_DAVINCI_RESET_CLOCKS

2018-02-02 Thread Sekhar Nori
On Saturday 20 January 2018 10:44 PM, David Lechner wrote: > This removes CONFIG_DAVINCI_RESET_CLOCKS. The option has been removed from > the kernel. > > Signed-off-by: David Lechner Reviewed-by: Sekhar Nori Thanks, Sekhar

Re: [PATCH 4/4] sched/fair: Use a recently used CPU as an idle candidate and the basis for SIS

2018-02-02 Thread Peter Zijlstra
On Fri, Feb 02, 2018 at 12:42:29PM +0100, Rafael J. Wysocki wrote: > > Yes, too many synchronous IPIs, which themselves are typically already > > more expensive than the MSR access. > > We could do all of the updates in one IPI (as Srinivas said), but it would be > more code, and custom code for

[PATCH 00/17] Add kexec_file_load support to s390

2018-02-02 Thread Philipp Rudo
Hi everybody this series adds the kexec_file_load system call to s390. Before the system call is added there are some preparations/clean ups to common kexec_file_load. In detail this series contains: Patch #1&2: Minor cleanups/fixes. Patch #3-9: Clean up the purgatory load/relocation code.

[PATCH 03/17] kexec_file: Make purgatory_info->ehdr const

2018-02-02 Thread Philipp Rudo
The kexec_purgatory buffer is read-only. Thus all pointers into kexec_purgatory are read-only, too. Point this out by explicitly marking purgatory_info->ehdr as 'const' and update the comments in purgatory_info. Signed-off-by: Philipp Rudo --- include/linux/kexec.h |

Re: [perf] perf test BPF fails on 4.9.20

2018-02-02 Thread Pintu Kumar
Hi All, I have fixed both the issue with perf test. 1) 16: Try 'import perf' in python, checking link problems : FAILED! To fix this issue, I have to install: pip install --upgrade pip pip2.7 install perf 2) 37.2: Test BPF prologue generation : FAILED! To fix this

Re: [PATCH arm/aspeed/ast2500 v4 1/2] ipmi: add a KCS IPMI BMC driver

2018-02-02 Thread Corey Minyard
On 02/01/2018 07:33 PM, Wang, Haiyue wrote: On 2018-02-02 09:10, Corey Minyard wrote: I loaded this in, tried a compile on x86_64, and got the following: In file included from ../drivers/char/ipmi/kcs_bmc.c:15:0: ../drivers/char/ipmi/kcs_bmc.h: In function ‘kcs_bmc_priv’:

Re: [PATCH arm/aspeed/ast2500 v5 1/2] ipmi: add a KCS IPMI BMC driver

2018-02-02 Thread Corey Minyard
On 02/01/2018 08:16 PM, Haiyue Wang wrote: --- v4->v5 - Fix -Wdiscarded-qualifiers 'const' compile warning. - Fix size_t printk compile error. v3->v4 - Change to accept WRITE_START any time. v2->v3 - Update the KCS phase state machine. - Fix the race condition of read/write. v1->v2 - Divide

[PATCH 2/3] ARM: dts: sun8i: add audio codec support into V3s DTSI

2018-02-02 Thread Icenowy Zheng
Allwinner V3s SoC features an internal audio codec like the one in H3, and a analog codec like the one in H3/A23 (but much simpler). Add them in the DTSI file. Signed-off-by: Icenowy Zheng --- arch/arm/boot/dts/sun8i-v3s.dtsi | 19 +++ 1 file changed, 19

Re: [Patch v8 12/12] Documention: v4l: Documentation for HEVC CIDs

2018-02-02 Thread Hans Verkuil
On 02/02/18 13:25, Smitha T Murthy wrote: > Added V4l2 controls for HEVC encoder > > Signed-off-by: Smitha T Murthy Looks good. Acked-by: Hans Verkuil Regards, Hans

[PATCH 09/14] clk: stm32mp1: add Kernel timers

2018-02-02 Thread gabriel.fernandez
From: Gabriel Fernandez This patch adds Kernel timers. This patch adds timers kernel clock. Timers are gather into two groups corresponding to the APB bus they are attached to. Each group has its own prescaler, managed in this patch. Signed-off-by: Gabriel Fernandez

Re: Is the hisilicon tree maintained ?

2018-02-02 Thread Wei Xu
Hi Daniel, On 2018/2/2 13:53, Daniel Lezcano wrote: > On 02/02/2018 14:48, Wei Xu wrote: >> Hi Daniel, >> >> On 2018/2/2 13:34, Daniel Lezcano wrote: >>> On 02/02/2018 13:10, Wei Xu wrote: Hi Daniel, On 2018/2/2 12:05, Daniel Lezcano wrote: > On 02/02/2018 12:42, Wei Xu wrote:

[PATCH 3/3] ARM: sun8i: v3s: enable audio on Lichee Pi Zero Dock board

2018-02-02 Thread Icenowy Zheng
The Lichee Pi Zero Dock board has an audio jack and an onboard MIC. Enable them. Signed-off-by: Icenowy Zheng --- arch/arm/boot/dts/sun8i-v3s-licheepi-zero-dock.dts | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-v3s-licheepi-zero-dock.dts

Re: [PATCH v2] buffer: Avoid setting buffer bits that are already set

2018-02-02 Thread Jens Axboe
On 2/2/18 1:07 AM, kemi wrote: > Hi, Jens > Could you help to merge this patch to your tree? Thanks Yes, I'll queue it up, thanks. -- Jens Axboe

Re: [PATCH v6 25/41] ARM: dm646x: add new clock init using common clock framework

2018-02-02 Thread Sekhar Nori
On Saturday 20 January 2018 10:44 PM, David Lechner wrote: > void __init dm646x_init_time(unsigned long ref_clk_rate, >unsigned long aux_clkin_rate) > { > +#ifdef CONFIG_COMMON_CLK > + void __iomem *pll1, *pll2, *psc; > + struct clk *clk; > + > + pll1 =

Re: [PATCH v2 07/16] iio: adc: sun4i-gpadc-iio: rework: support nvmem calibration data

2018-02-02 Thread Philipp Rossak
/* prevents concurrent reads of temperature and ADC */ struct mutexmutex; struct thermal_zone_device *tzd; @@ -561,6 +569,9 @@ static int sun4i_gpadc_probe_dt(struct platform_device *pdev, struct resource *mem; void __iomem

Re: [PATCH v3] ACPI / tables: Add IORT to injectable table list

2018-02-02 Thread Hanjun Guo
On 2018/2/2 18:25, Yang Shunyong wrote: > Loading IORT table from initrd is used to fix firmware IORT defects. I don't think this fix "firmware defects", it just for debug purpose, we will not use that for production purpose, right? I think above line can be removed. > Moreover, it is very

Re: [RFCv2 00/17] Request API, take three

2018-02-02 Thread Sakari Ailus
Hi Alexandre, On Wed, Jan 31, 2018 at 07:24:18PM +0900, Alexandre Courbot wrote: > This is a quickly-put together revision that includes and uses Hans' work to > use v4l2_ctrl_handler as the request state holder for V4L2 devices. Although > minor fixes have also been applied, there are still a

[PATCH 1/6] scsi: fc_encode: work around strncpy size warnings

2018-02-02 Thread Arnd Bergmann
struct fc_fdmi_attr_entry contains a variable-length string at the end, which is encoded as a one-byte array. gcc-8 notices that we copy strings into it that obviously go beyond that one byte: In function 'fc_ct_ms_fill', inlined from 'fc_elsct_send' at include/scsi/fc_encode.h:518:8:

[PATCH 5/6] scsi: qedi: fix building with LTO

2018-02-02 Thread Arnd Bergmann
When link-time optimizations are enabled, qedi fails to build because of mismatched prototypes: drivers/scsi/qedi/qedi_gbl.h:27:37: error: type of 'qedi_dbg_fops' does not match original declaration [-Werror=lto-type-mismatch] extern const struct file_operations qedi_dbg_fops;

Re: Query related to usage of cpufreq_suspend() & cpufreq_resume

2018-02-02 Thread Prateek Sood
On 02/02/2018 06:49 PM, Rafael J. Wysocki wrote: > On Fri, Feb 2, 2018 at 1:53 PM, Prateek Sood wrote: >> On 02/02/2018 05:18 PM, Rafael J. Wysocki wrote: >>> On Friday, February 2, 2018 12:41:58 PM CET Prateek Sood wrote: Hi Viresh, One scenario is there

[Patch v2 5/5] platform/x86: intel_pmc_core: Special case for Coffeelake

2018-02-02 Thread Rajneesh Bhardwaj
Intel CoffeeLake SoC uses CPU ID of KabyLake but has Cannonlake PCH, so in this case PMC register details from Cannonlake PCH must be used. In order to identify whether the given platform is Coffeelake, scan for the Sunrisepoint PMC PCI Id. KBL CPUID SPT PCIID

[Patch v2 1/5] ACPI / LPIT: Export lpit_read_residency_count_address()

2018-02-02 Thread Rajneesh Bhardwaj
From: Srinivas Pandruvada Export lpit_read_residency_count_address(), so that it can be used from drivers built as module. With the recent changes, the builtin_pci functionality of the intel_pmc_core driver is removed and now it can be built as a module to

Re: [PATCH V2 0/7] sched/deadline: fix cpusets bandwidth accounting

2018-02-02 Thread Luca Abeni
Hi Mathieu, On Thu, 1 Feb 2018 09:51:02 -0700 Mathieu Poirier wrote: > This is the follow-up patchset to [1] that attempt to fix a problem > reported by Steve Rostedt [2] where DL bandwidth accounting is not > recomputed after CPUset and CPU hotplug operations.

Re: [RFC][PATCH] printk: do not flush printk_safe from irq_work

2018-02-02 Thread Petr Mladek
On Fri 2018-02-02 13:17:08, Petr Mladek wrote: > On Thu 2018-02-01 11:46:47, Sergey Senozhatsky wrote: > > On (01/30/18 13:23), Petr Mladek wrote: > > [..] > > > > If the system is in "big troubles" then what makes irq_work more > > > > possible? Local IRQs can stay disabled, just like preemption.

Re: [PATCH V5 12/17] perf evsel: expose perf_missing_features.write_backward

2018-02-02 Thread Arnaldo Carvalho de Melo
Em Thu, Jan 18, 2018 at 01:26:27PM -0800, kan.li...@intel.com escreveu: > From: Kan Liang > > perf top need it to handle overwrite fallback later. > > Signed-off-by: Kan Liang > --- > tools/perf/util/evsel.c | 5 + > tools/perf/util/evsel.h | 2 ++

Re: [PATCH V2 3/7] sched/deadline: Keep new DL task within root domain's boundary

2018-02-02 Thread Juri Lelli
Hi Mathieu, On 01/02/18 09:51, Mathieu Poirier wrote: > When considering to move a task to the DL policy we need to make sure > the CPUs it is allowed to run on matches the CPUs of the root domains of > the runqueue it is currently assigned to. Otherwise the task will be > allowed to roam on

[PATCH 0/3] x86 bugfixes for LTO

2018-02-02 Thread Arnd Bergmann
Here are three bugfixes for x86 that I needed to get LTO-enabled kernels to build reliably. I'm not sure abouto that first one though. None of these are urgent, as they don't show up in mainline kernels and they don't indicate serious problems. Arnd Bergmann (3): x86: dumpstack: avoid

Re: [PATCH 4/4] sched/fair: Use a recently used CPU as an idle candidate and the basis for SIS

2018-02-02 Thread Srinivas Pandruvada
On Fri, 2018-02-02 at 12:00 +0100, Rafael J. Wysocki wrote: > On Thursday, February 1, 2018 2:18:12 PM CET Srinivas Pandruvada > wrote: > > > > On Thu, 2018-02-01 at 10:11 +0100, Peter Zijlstra wrote: > > > > > > On Thu, Feb 01, 2018 at 08:50:28AM +0100, Rafael J. Wysocki > > > wrote: > > > > >

  1   2   3   4   5   6   7   8   9   10   >