Re: [PATCH 2/2] mmc: tegra: Implement periodic pad calibration

2018-09-03 Thread Ulf Hansson
On 20 August 2018 at 11:23, Aapo Vienamo wrote: > Rerun the pad calibration procedure before sdhci_request() if > the 100 ms recalibration interval has been exceeded. > > Signed-off-by: Aapo Vienamo Applied for next, thanks! Kind regards Uffe > --- > drivers/mmc/host/sdhci-tegra.c | 22

Re: [PATCH v2 0/8] Tegra SDHCI support HS400 on Tegra210 and Tegra186

2018-09-03 Thread Ulf Hansson
On 10 August 2018 at 20:13, Aapo Vienamo wrote: > Hi all, > This series implements support for HS400 signaling on Tegra210 and > Tegra186. This includes programming the DQS trimmer values, implementing > enhanced strobe and HS400 delay line calibration. > > This series depends on the "Tegra SDHCI

Re: [PATCH v2 06/10] perf, tools, script: Implement - for typed fields

2018-09-03 Thread Jiri Olsa
On Fri, Aug 31, 2018 at 03:02:02PM -0700, Andi Kleen wrote: > From: Andi Kleen > > For perf script -F the - removal of fields didn't work for typed > fields, only for untyped. Add the REMOVE case for this variant too. missing changelog example jirka > > v2: Use correct index > Signed-off-by:

Re: [PATCH] fat: Relax checks for sector size and media type

2018-09-03 Thread OGAWA Hirofumi
Pali Rohár writes: > Windows fastfat.sys driver accepts also media types 0x00 and 0x01 and > sector sizes 128 and 256 bytes. Linux mkfs.fat can format disk also to > larger FAT sector sizes then 4096 bytes, therefore relax also upper limit > restriction. > - if

Re: [PATCH AUTOSEL 4.18 023/131] media: usbtv: use irqsave() in USB's complete callback

2018-09-03 Thread Sebastian Andrzej Siewior
On 2018-09-02 13:03:27 [+], Sasha Levin wrote: > From: Sebastian Andrzej Siewior > > [ Upstream commit 320905baa1dbddd3991c287432176d536e1d5b79 ] > > The USB completion callback does not disable interrupts while acquiring > the lock. We want to remove the local_irq_disable() invocation from

Re: [PATCH v2 10/10] tools, perf, script: Implement --graph-function

2018-09-03 Thread Jiri Olsa
On Fri, Aug 31, 2018 at 03:02:06PM -0700, Andi Kleen wrote: > From: Andi Kleen > > Add a ftrace style --graph-function argument to perf script that allows > to print itrace function calls only below a given function. This > makes it easier to find the code of interest in a large trace. > > %

Re: [PATCH] fat: Relax checks for sector size and media type

2018-09-03 Thread OGAWA Hirofumi
Pali Rohár writes: >> Just relaxing validation doesn't work. The block layer doesn't support >> smaller than 512, and lager than PAGE_SIZE. (And in specification, fat >> doesn't support lager than 4096.) > > Hi! I just sent this patch for discussion, with links to (now open > source) Windows

Re: [PATCH] fat: Relax checks for sector size and media type

2018-09-03 Thread OGAWA Hirofumi
Pali Rohár writes: >> That source seems to check power_of_2(size) and 128 <= size <= >> 4096. Rather why do you want to support larger than 4096? Or I'm missing >> something? > > I looked into (Linux) mkfs.fat and it supports formatting disk also with > sector size > 4096. Therefore I thought it

RE: [RFC PATCH 1/2] ARM: dt: fpga: Added binding docs for Xilinx zynqmp FPGA manager

2018-09-03 Thread Nava kishore Manne
Hi Rob, Thanks for the providing the comments... Please find my response inline... > -Original Message- > From: Rob Herring [mailto:r...@kernel.org] > Sent: Tuesday, August 14, 2018 9:49 PM > To: Nava kishore Manne > Cc: mark.rutl...@arm.com; Michal Simek ; Soren > Brinkmann ;

Re: [PATCH v2] arm64: kasan: add interceptors for strcmp/strncmp functions

2018-09-03 Thread Dmitry Vyukov
On Mon, Sep 3, 2018 at 11:02 AM, Kyeongdon Kim wrote: > Dear all, > > Could anyone review this and provide me appropriate approach ? > I think str[n]cmp are frequently used functions so I believe very useful w/ > arm64 KASAN. Hi Kyeongdon, Please add tests for this to lib/test_kasan.c. > On

[PATCH] i2c: xiic: Make the start and the byte count write atomic

2018-09-03 Thread shubhrajyoti.datta
From: Shubhrajyoti Datta Disable interrupts while configuring the transfer and enable them back. We have below as the programming sequence 1. start and slave address 2. byte count and stop In some customer platform there was a lot of interrupts between 1 and 2 and after slave address (around 7

Re: [PATCH] HID: i2c-hid: enforce I2C_HID_QUIRK_RESEND_REPORT_DESCR

2018-09-03 Thread Benjamin Tissoires
On Fri, Aug 31, 2018 at 12:04 PM Hans de Goede wrote: > > Hi, > > On 31-08-18 11:54, Benjamin Tissoires wrote: > > The spec states that the HID devices should allow > > the host to query the HID descriptor at any time. > > > > Some devices require the HID descriptor to be set > > on resume, or

[PATCH v4 2/5] regulator: rk808: add RK809 and RK817 support.

2018-09-03 Thread Tony Xie
Add support for the rk809 and rk817 regulator driver. Their specifications are as follows: 1. The RK809 and RK809 consist of 5 DCDCs, 9 LDOs and have the same registers for these components except dcdc5. 2. The dcdc5 is a boost dcdc for RK817 and is a buck for RK809. 3.

[PATCH v4 4/5] rtc: rk808: add RK809 and RK817 support.

2018-09-03 Thread Tony Xie
RK809 and RK817 are power management IC chips for multimedia products. Most of their functions and registers are same, including the rtc. Signed-off-by: Tony Xie Acked-by: Alexandre Belloni --- drivers/rtc/Kconfig | 4 +-- drivers/rtc/rtc-rk808.c | 68

[PATCH v4 0/5] support a new type of PMIC,including two chips(rk817 and rk809)

2018-09-03 Thread Tony Xie
Most of functions and registers of the rk817 and rk808 are the same, so they can share allmost all codes. Their specifications are as follows: 1) The RK809 and RK809 consist of 5 DCDCs, 9 LDOs and have the same registers for these components except dcdc5. 2) The dcdc5 is a boost dcdc for

[PATCH v4 1/5] mfd: rk808: Add RK817 and RK809 support

2018-09-03 Thread Tony Xie
The rk809 and rk817 are a Power Management IC (PMIC) for multimedia and handheld devices. It contains the following components: - Regulators - RTC - Clocking Both RK809 and RK817 chips are using a similar register map, so we can reuse the RTC and Clocking

Re: [PATCH v4 07/11] kbuild: use 'include' directive to load auto.conf from top Makefile

2018-09-03 Thread Borislav Petkov
On Mon, Sep 03, 2018 at 06:54:12PM +0900, Masahiro Yamada wrote: > You are right - I missed this usecase, > but I still want to excuse "it is rare enough". Isn't there a Makefile way to check file existence before including it? -- Regards/Gruss, Boris. Good mailing practices for 400: avoid

Re: [PATCH] pinctrl: Convert to using %pOFn instead of device_node.name

2018-09-03 Thread Patrice CHOTARD
Hi Rob On 08/28/2018 03:52 AM, Rob Herring wrote: > In preparation to remove the node name pointer from struct device_node, > convert printf users to use the %pOFn format specifier. > > Cc: Linus Walleij > Cc: Dong Aisheng > Cc: Fabio Estevam > Cc: Shawn Guo > Cc: Stefan Agner > Cc:

[PATCH v4 3/5] dt-bindings: mfd: rk808: Add binding information for RK809 and RK817.

2018-09-03 Thread Tony Xie
Add device tree bindings documentation for Rockchip's RK809 & RK817 PMIC. Signed-off-by: Tony Xie Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/mfd/rk808.txt | 56 + 1 file changed, 56 insertions(+) diff --git

Re: [PATCH v2] dt-binding: arm/cpus.txt: fix dynamic-power-coefficient unit

2018-09-03 Thread Viresh Kumar
On 29-08-18, 09:08, Vincent Guittot wrote: > The unit of dynamic-power-coefficient is described as mW/MHz/uV^2 whereas > its usage in the code assumes that unit is uW/MHz/V^2 > > In drivers/thermal/cpu_cooling.c, the code is : > > power = (u64)capacitance * freq_mhz * voltage_mv * voltage_mv; >

Re: [PATCH] drivers: gpio: gpio-adp5588: Fix sleep-in-atomic-context bug

2018-09-03 Thread Michael Hennerich
On 29.08.2018 10:55, Linus Walleij wrote: On Mon, Aug 13, 2018 at 3:53 PM wrote: From: Michael Hennerich This fixes: [BUG] gpio: gpio-adp5588: A possible sleep-in-atomic-context bug in adp5588_gpio_write() [BUG] gpio: gpio-adp5588: A possible

[PATCH -V5 15/21] swap: Support to copy PMD swap mapping when fork()

2018-09-03 Thread Huang Ying
During fork, the page table need to be copied from parent to child. A PMD swap mapping need to be copied too and the swap reference count need to be increased. When the huge swap cluster has been split already, we need to split the PMD swap mapping and fallback to PTE copying. When swap count

[PATCH -V5 16/21] swap: Free PMD swap mapping when zap_huge_pmd()

2018-09-03 Thread Huang Ying
For a PMD swap mapping, zap_huge_pmd() will clear the PMD and call free_swap_and_cache() to decrease the swap reference count and maybe free or split the huge swap cluster and the THP in swap cache. Signed-off-by: "Huang, Ying" Cc: "Kirill A. Shutemov" Cc: Andrea Arcangeli Cc: Michal Hocko

[PATCH -V5 14/21] swap: Support to move swap account for PMD swap mapping

2018-09-03 Thread Huang Ying
Previously the huge swap cluster will be split after the THP is swapout. Now, to support to swapin the THP in one piece, the huge swap cluster will not be split after the THP is reclaimed. So in memcg, we need to move the swap account for PMD swap mappings in the process's page table. When the

[PATCH -V5 17/21] swap: Support PMD swap mapping for MADV_WILLNEED

2018-09-03 Thread Huang Ying
During MADV_WILLNEED, for a PMD swap mapping, if THP swapin is enabled for the VMA, the whole swap cluster will be swapin. Otherwise, the huge swap cluster and the PMD swap mapping will be split and fallback to PTE swap mapping. Signed-off-by: "Huang, Ying" Cc: "Kirill A. Shutemov" Cc: Andrea

[PATCH -V5 11/21] swap: Add sysfs interface to configure THP swapin

2018-09-03 Thread Huang Ying
Swapin a THP as a whole isn't desirable in some situations. For example, for completely random access pattern, swapin a THP in one piece will inflate the reading greatly. So a sysfs interface: /sys/kernel/mm/transparent_hugepage/swapin_enabled is added to configure it. Three options as follow

[PATCH -V5 18/21] swap: Support PMD swap mapping in mincore()

2018-09-03 Thread Huang Ying
During mincore(), for PMD swap mapping, swap cache will be looked up. If the resulting page isn't compound page, the PMD swap mapping will be split and fallback to PTE swap mapping processing. Signed-off-by: "Huang, Ying" Cc: "Kirill A. Shutemov" Cc: Andrea Arcangeli Cc: Michal Hocko Cc:

[PATCH -V5 05/21] swap: Support PMD swap mapping in free_swap_and_cache()/swap_free()

2018-09-03 Thread Huang Ying
When a PMD swap mapping is removed from a huge swap cluster, for example, unmap a memory range mapped with PMD swap mapping, etc, free_swap_and_cache() will be called to decrease the reference count to the huge swap cluster. free_swap_and_cache() may also free or split the huge swap cluster, and

[PATCH -V5 09/21] swap: Swapin a THP in one piece

2018-09-03 Thread Huang Ying
With this patch, when page fault handler find a PMD swap mapping, it will swap in a THP in one piece. This avoids the overhead of splitting/collapsing before/after the THP swapping. And improves the swap performance greatly for reduced page fault count etc. do_huge_pmd_swap_page() is added in

[PATCH -V5 02/21] swap: Add __swap_duplicate_locked()

2018-09-03 Thread Huang Ying
The part of __swap_duplicate() with lock held is separated into a new function __swap_duplicate_locked(). Because we will add more logic about the PMD swap mapping into __swap_duplicate() and keep the most PTE swap mapping related logic in __swap_duplicate_locked(). Just mechanical code

Re: [PATCH 1/7] spi: add slave device size in spi_device struct

2018-09-03 Thread Boris Brezillon
Hi Yogesh, On Mon, 3 Sep 2018 04:47:25 + Yogesh Narayan Gaur wrote: > Hi Lothar, > > > -Original Message- > > From: Lothar Waßmann [mailto:l...@karo-electronics.de] > > Sent: Friday, August 31, 2018 5:28 PM > > To: Yogesh Narayan Gaur > > Cc: linux-...@lists.infradead.org;

Re: [PATCH v2] arm64: kasan: add interceptors for strcmp/strncmp functions

2018-09-03 Thread Andrey Ryabinin
On 08/23/2018 11:56 AM, Kyeongdon Kim wrote: > diff --git a/mm/kasan/kasan.c b/mm/kasan/kasan.c > index c3bd520..61ad7f1 100644 > --- a/mm/kasan/kasan.c > +++ b/mm/kasan/kasan.c > @@ -304,6 +304,29 @@ void *memcpy(void *dest, const void *src, size_t len) > > return __memcpy(dest, src,

Re: [PATCH v4 07/11] kbuild: use 'include' directive to load auto.conf from top Makefile

2018-09-03 Thread Borislav Petkov
Hey, On Fri, Jul 20, 2018 at 04:46:32PM +0900, Masahiro Yamada wrote: > When you build targets that require the kernel configuration, dot-config > is set to 1, then the top-level Makefile includes auto.conf. However, > Make considers its inclusion is optional because the '-include' directive >

Re: [PATCH 1/3] MIPS: jz4780: Allow access to jz4740-i2s

2018-09-03 Thread Mathieu Malaterre
On Fri, Aug 31, 2018 at 10:59 PM Paul Burton wrote: > > On Fri, Aug 31, 2018 at 01:37:52PM -0700, Paul Burton wrote: > > Further to that, this series doesn't seem to work for me. With > > v4.19-rc1, with the patch from [1] & then this series applied I see the > > following when booting a

Re: [PATCH v2 04/10] perf, tools, script: Allow sym and dso without ip, addr

2018-09-03 Thread Jiri Olsa
On Fri, Aug 31, 2018 at 03:02:00PM -0700, Andi Kleen wrote: > From: Andi Kleen > > Currently sym and dso require printing ip and addr because > the print function is tied to those outputs. With callindent > it makes sense to print the symbol or dso without numerical > IP or ADDR. So change the

[PATCH RESEND] firmware: google: make structure gsmi_dev static

2018-09-03 Thread Jean Delvare
From: Colin Ian King Subject: firmware: google: make structure gsmi_dev static The structure gsmi_dev is local to the source and does not need to be in global scope, so make it static. Cleans up sparse warning: symbol 'gsmi_dev' was not declared. Should it be static? Signed-off-by: Colin Ian

Re: REGRESSION: boot stalls on several old dual core Intel CPUs

2018-09-03 Thread Thomas Gleixner
On Mon, 3 Sep 2018, Peter Zijlstra wrote: > On Sat, Sep 01, 2018 at 11:51:26AM +0930, Kevin Shanahan wrote: > > commit 01548f4d3e8e94caf323a4f664eb347fd34a34ab > > Author: Martin Schwidefsky > > Date: Tue Aug 18 17:09:42 2009 +0200 > > > > clocksource: Avoid clocksource watchdog circular

Re: [PATCH] fat: Relax checks for sector size and media type

2018-09-03 Thread Pali Rohár
On Monday 03 September 2018 16:17:26 OGAWA Hirofumi wrote: > Pali Rohár writes: > > > Windows fastfat.sys driver accepts also media types 0x00 and 0x01 and > > sector sizes 128 and 256 bytes. Linux mkfs.fat can format disk also to > > larger FAT sector sizes then 4096 bytes, therefore relax also

Re: Make perf script easier to use for itrace

2018-09-03 Thread Jiri Olsa
On Fri, Aug 31, 2018 at 03:01:56PM -0700, Andi Kleen wrote: SNIP > perf 900 [000] 194167.205652203: ([kernel.kallsyms]) > calc_timer_values > perf 900 [000] 194167.205652203: ([kernel.kallsyms]) >

Re: [PATCH] fat: Relax checks for sector size and media type

2018-09-03 Thread Pali Rohár
On Monday 03 September 2018 17:01:03 OGAWA Hirofumi wrote: > Pali Rohár writes: > > >> Just relaxing validation doesn't work. The block layer doesn't support > >> smaller than 512, and lager than PAGE_SIZE. (And in specification, fat > >> doesn't support lager than 4096.) > > > > Hi! I just

Re: [PATCH v4 2/7] dmaengine: xilinx_dma: in axidma slave_sg and dma_cylic mode align split descriptors

2018-09-03 Thread Andrea Merello
On Thu, Aug 30, 2018 at 3:27 PM Vinod wrote: > > On 30-08-18, 10:11, Andrea Merello wrote: > > On Wed, Aug 29, 2018 at 10:12 AM Andrea Merello > > wrote: > > > > > > On Mon, Aug 27, 2018 at 7:30 AM Vinod wrote: > > > > > > > > On 02-08-18, 16:10, Andrea Merello wrote: > > > > > > > >

[PATCH v2 2/2] power: supply: Add Spreadtrum SC2731 charger support

2018-09-03 Thread Baolin Wang
This patch adds the SC2731 PMIC switch charger support. Signed-off-by: Baolin Wang --- Changes from v1: - Remove some redundant head files. - Add one mutex to make sure getting the charger status is correct. - Fix some coding style issues. - Use standard DT properties. ---

Re: REGRESSION: boot stalls on several old dual core Intel CPUs

2018-09-03 Thread Peter Zijlstra
On Mon, Sep 03, 2018 at 09:38:15AM +0200, Thomas Gleixner wrote: > On Mon, 3 Sep 2018, Peter Zijlstra wrote: > > On Sat, Sep 01, 2018 at 11:51:26AM +0930, Kevin Shanahan wrote: > > > commit 01548f4d3e8e94caf323a4f664eb347fd34a34ab > > > Author: Martin Schwidefsky > > > Date: Tue Aug 18 17:09:42

KASAN: slab-out-of-bounds Write in __ext4_expand_extra_isize

2018-09-03 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:a880148cb2af Add linux-next specific files for 20180831 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=135f5e0a40 kernel config: https://syzkaller.appspot.com/x/.config?x=a059d319ef7d83f6

Re: [PATCH 2/3] arm64: dts: meson-axg: s400: add dmic codec

2018-09-03 Thread Jerome Brunet
On Sat, 2018-09-01 at 18:24 -0300, Fabio Estevam wrote: > Hi Jerome, > > On Fri, Aug 31, 2018 at 12:02 PM, Jerome Brunet wrote: > > There are 7 digital mics on the MIC daughter board attached > > to the s400 board, so add the digital microphone codec to > > its DTS > > > > Signed-off-by: Jerome

Re: [PATCH v5 02/16] x86/cache: get cache size/leaves and setup cache cpumap for Dhyana

2018-09-03 Thread Borislav Petkov
Patch subject needs to be of the format: : Sentence starting with a capital letter and describing concisely the patch Fix all your subjects pls. On Wed, Aug 29, 2018 at 08:43:10PM +0800, Pu Wen wrote: > Hygon Dhyana processor has the topology extensions bit in CPUID. > With this bit kernel can

Re: [PATCH 2/7] Compiler Attributes: use the no-underscores syntax

2018-09-03 Thread Geert Uytterhoeven
Hi Miguel, On Sat, Sep 1, 2018 at 12:41 AM Miguel Ojeda wrote: > On Sat, Sep 1, 2018 at 12:10 AM, Miguel Ojeda > wrote: > > arch/parisc/boot/compressed/misc.c:#define malloc malloc_gzip > > include/linux/decompress/mm.h:#define malloc(a) kmalloc(a, GFP_KERNEL) > > lib/inflate.c:#define

Re: Make perf script easier to use for itrace

2018-09-03 Thread Jiri Olsa
On Fri, Aug 31, 2018 at 05:54:53PM -0500, Kim Phillips wrote: > On Fri, 31 Aug 2018 15:01:56 -0700 > Andi Kleen wrote: > > > Also available in > > git://git.kernel.org/pub/scm/linux/kernel/git/ak/linux-misc.git > > pt/easy-script-2 > > > > v1: Initial post > > v2: Address review comments.

Re: PROBLEM: Keyboard not responding after resuming from suspend/hibernate

2018-09-03 Thread Numan Demirdöğen
Fri, 31 Aug 2018 21:51:21 +0300 tarihinde Numan Demirdöğen yazdı: >If I put laptop to suspend or hibernate by closing lid, power >manager or any other method and then I resume/wake up laptop, keyboard >is not responding. My laptop is a Sony Vaio VPCEH2F1E. > >Steps to produce bug: >1. Boot >2.

RE: [PATCH 4/7] dt-bindings: spi: add binding file for NXP FlexSPI driver

2018-09-03 Thread Prabhakar Kushwaha
Dear Yogesh, > -Original Message- > From: linux-kernel-ow...@vger.kernel.org ow...@vger.kernel.org> On Behalf Of Yogesh Gaur > Sent: Friday, August 31, 2018 4:00 PM > To: linux-...@lists.infradead.org; boris.brezil...@bootlin.com; > marek.va...@gmail.com; linux-...@vger.kernel.org; >

[PATCH v2] arm64: dts: ti: k3-am65: Change #address-cells and #size-cells of interconnect to 2

2018-09-03 Thread Kishon Vijay Abraham I
AM65 has two PCIe controllers and each PCIe controller has '2' address spaces one within the 4GB address space of the SoC and the other above the 4GB address space of the SoC (cbass_main) in addition to the register space. The size of the address space above the 4GB SoC address space is 4GB. These

Re: [PATCH v2 2/2] power: supply: Add Spreadtrum SC2731 charger support

2018-09-03 Thread Krzysztof Kozlowski
On Mon, 3 Sep 2018 at 10:56, Baolin Wang wrote: > > This patch adds the SC2731 PMIC switch charger support. > > Signed-off-by: Baolin Wang > --- > Changes from v1: > - Remove some redundant head files. > - Add one mutex to make sure getting the charger status is correct. > - Fix some coding

Re: [PATCH v3 21/30] iio: adc: sun4i-gpadc-iio: add support for H3 thermal sensor

2018-09-03 Thread Maxime Ripard
On Fri, Aug 31, 2018 at 05:51:41PM +0800, Icenowy Zheng wrote: > Personally I suggest to leave out all SID or calibration related > patches here. > > Currently we seems to be wrongly converting SID to big endian, however, > the orgnization of the THS calibration data on H6 shows that it's >

Re: [PATCH v1] thermal: core: Fix use-after-free in thermal_cooling_device_destroy_sysfs

2018-09-03 Thread Viresh Kumar
On 13-08-18, 20:14, Dmitry Osipenko wrote: > This patch fixes use-after-free that was detected by KASAN. The bug is > triggered on a CPUFreq driver module unload by freeing 'cdev' on device > unregister and then using the freed structure during of the cdev's sysfs > data destruction. The solution

Re: [PATCH v2] ARM: dts: spear: fix stmpe811 interrupt properties

2018-09-03 Thread Viresh Kumar
On 14-08-18, 09:39, Marcel Ziswiler wrote: > From: Marcel Ziswiler > > The property "irq-over-gpio" simply does not exist (this is nowadays > actually auto detected) and the property "irq-gpios" is actually called > "irq-gpio". > > Signed-off-by: Marcel Ziswiler > > --- > > Changes in v2: >

Re: [PATCH v2] cpufreq: ti-cpufreq: Only register platform_device when supported

2018-09-03 Thread Viresh Kumar
On 23-08-18, 14:20, Dave Gerlach wrote: > Currently the ti-cpufreq driver blindly registers a 'ti-cpufreq' to force > the driver to probe on any platforms where the driver is built in. > However, this should only happen on platforms that actually can make use > of the driver. There is already

RE: [PATCH 2/2] clk: imx: imx7d: remove clks_init_on array

2018-09-03 Thread Anson Huang
Anson Huang Best Regards! > -Original Message- > From: Stephen Boyd > Sent: Saturday, September 1, 2018 1:58 AM > To: ker...@pengutronix.de; linux-arm-ker...@lists.infradead.org; > linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; > mturque...@baylibre.com;

Re: [PATCH 2/2] x86/mm/KASLR: Adjust the vmemmap size according to paging mode

2018-09-03 Thread Baoquan He
On 09/02/18 at 11:52pm, Kirill A. Shutemov wrote: > On Thu, Aug 30, 2018 at 11:25:12PM +0800, Baoquan He wrote: > > Hi Kirill, > > > > I made a new version according to your suggestion, just a little > > different, I didn't make 1TB as default, just calculate with the actual > > size, then align

Re: VLAs and security

2018-09-03 Thread Uecker, Martin
Am Sonntag, den 02.09.2018, 10:40 -0700 schrieb Kees Cook: > On Sun, Sep 2, 2018 at 1:08 AM, Uecker, Martin > wrote: > > I do not agree that VLAs are generally bad for security. > > I think the opposite is true. A VLA with the right size > > allows the compiler to automatically perform or insert

[PATCH] timekeeping: Fix declaration of read_persistent_wall_and_boot_offset

2018-09-03 Thread Christian Borntraeger
it is read_persistent_wall_and_boot_offset and not read_persistent_clock_and_boot_offset Fixes: 3eca993740b8eb40f51 ("timekeeping: Replace read_boot_clock64() with read_persistent_wall_and_boot_offset()") CC: Pavel Tatashin CC: Thomas Gleixner Signed-off-by: Christian Borntraeger ---

RE: [PATCH V2 2/6] x86/efi: Remove __init attribute from memory mapping functions

2018-09-03 Thread Prakhya, Sai Praneeth
> On Mon, Sep 03, 2018 at 05:03:56AM +, Prakhya, Sai Praneeth wrote: > > Hmm.. thought that __efi_init might be confusing with the normal > > __init attribute > > How would that be confusing? It has "__efi" prepended?! > > All I'm saying is, if you're going to define your own function

Re: [PATCH] x86/speculation: Enable cross-hyperthread spectre v2 STIBP mitigation

2018-09-03 Thread Jiri Kosina
On Fri, 31 Aug 2018, Jiri Kosina wrote: > From: Jiri Kosina > > STIBP is a feature provided by certain Intel ucodes / CPUs. This feature > (once enabled) prevents cross-hyperthread control of decisions made by > indirect branch predictors. > > Enable this feature if > > - the CPU is

RE: [PATCH 2/2] tty: serial: imx: add pinctrl sleep/default mode switch for suspend

2018-09-03 Thread Anson Huang
Gentle Ping... Anson Huang Best Regards! > -Original Message- > From: Anson Huang > Sent: Thursday, August 9, 2018 6:06 PM > To: gre...@linuxfoundation.org; jsl...@suse.com; > linux-ser...@vger.kernel.org; linux-kernel@vger.kernel.org > Cc: dl-linux-imx > Subject: [PATCH 2/2] tty:

Re: [PATCH v2] arm64: kasan: add interceptors for strcmp/strncmp functions

2018-09-03 Thread Kyeongdon Kim
Dear all, Could anyone review this and provide me appropriate approach ? I think str[n]cmp are frequently used functions so I believe very useful w/ arm64 KASAN. Best Regards, Kyeongdon Kim On 2018-08-23 오후 5:56, Kyeongdon Kim wrote: This patch declares strcmp/strncmp as weak symbols. (2

Re: [PATCH RFC LKMM 1/7] tools/memory-model: Add extra ordering for locks and remove it for ordinary release/acquire

2018-09-03 Thread Andrea Parri
On Fri, Aug 31, 2018 at 08:28:46PM +0200, Andrea Parri wrote: > > > Yes, it's true that implementing locks with atomic_cmpxchg_acquire > > > should be correct on all existing architectures. And Paul has invited > > > a patch to modify the LKMM accordingly. If you feel that such a change > > >

Re: [PATCH] mm: Disable deferred struct page for 32-bit arches

2018-09-03 Thread Michal Hocko
On Fri 31-08-18 15:05:09, Pavel Tatashin wrote: > Deferred struct page init is needed only on systems with large amount of > physical memory to improve boot performance. 32-bit systems do not benefit > from this feature. > > Jiri reported a problem where deferred struct pages do not work well

RE: [PATCH rdma-next] RDMA/qedr: remove set but not used variable 'ctx'

2018-09-03 Thread Verma, Rahul
> -Original Message- > From: YueHaibing > Sent: Saturday, September 1, 2018 6:54 AM > To: Kalderon, Michal ; Elior, Ariel > ; Doug Ledford ; Jason > Gunthorpe > Cc: YueHaibing ; linux-r...@vger.kernel.org; > linux-kernel@vger.kernel.org; kernel-janit...@vger.kernel.org > Subject:

Re: [PATCH v2 15/34] ARM: tegra: apalis_t30: reorder backlight properties

2018-09-03 Thread Daniel Thompson
On Fri, Aug 31, 2018 at 06:37:57PM +0200, Marcel Ziswiler wrote: > From: Marcel Ziswiler > > Reorder backlight properties. This is a bit terse. Should the header explain why too? > > Signed-off-by: Marcel Ziswiler > > --- > > Changes in v2: None > >

Re: [PATCH v4 07/11] kbuild: use 'include' directive to load auto.conf from top Makefile

2018-09-03 Thread Masahiro Yamada
Hi, 2018-09-03 18:39 GMT+09:00 Borislav Petkov : > Hey, > > On Fri, Jul 20, 2018 at 04:46:32PM +0900, Masahiro Yamada wrote: >> When you build targets that require the kernel configuration, dot-config >> is set to 1, then the top-level Makefile includes auto.conf. However, >> Make considers its

[RFC PATCH 3/3] kbuild: rpm-pkg: set KCONFIG_NONINTERACTIVE_UPDATE

2018-09-03 Thread Masahiro Yamada
Prevent "make syncconfig" from prompting user inputs when new symbols become available due to build environment changes. Signed-off-by: Masahiro Yamada --- scripts/package/mkspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/package/mkspec b/scripts/package/mkspec

[RFC PATCH 2/3] kbuild: rpm-pkg: hard-code ARCH in RPM SPEC file

2018-09-03 Thread Masahiro Yamada
The kernel source package contains the .config, which is ARCH-specific. Obviously, the target architecture is specified when you create a source package, instead of build-time. Record ARCH= in the spec file in order to avoid uncertainty about what ARCH should be given for building. Add

Re: [PATCH] ARM: dts: stm32: enable display on stm32mp157c-ev1 board

2018-09-03 Thread Alexandre Torgue
Hi Yannick, On 08/21/2018 02:58 PM, Yannick Fertré wrote: Enable panel raydium RM68200, DSI bridge & display controller. Signed-off-by: Yannick Fertré --- arch/arm/boot/dts/stm32mp157c-ev1.dts | 60 +++ 1 file changed, 60 insertions(+) diff --git

[PATCH v4 5/5] clk: RK808: add RK809 and RK817 support.

2018-09-03 Thread Tony Xie
RK809 and RK817 are power management IC chips for multimedia products. most of their functions and registers are same, including the clkout funciton. Signed-off-by: Tony Xie --- drivers/clk/Kconfig | 9 --- drivers/clk/clk-rk808.c | 64 -

[PATCH v5 3/9] dt-bindings: ata: ahci-platform: document ahci-supply

2018-09-03 Thread Corentin Labbe
This patch document the new optional ahci-supply. Signed-off-by: Corentin Labbe Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/ata/ahci-platform.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/ata/ahci-platform.txt

[PATCH v5 5/9] dt-bindings: ata: ahci-platform: document phy-supply

2018-09-03 Thread Corentin Labbe
This patch document the new optional phy-supply. Signed-off-by: Corentin Labbe --- Documentation/devicetree/bindings/ata/ahci-platform.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/ata/ahci-platform.txt

[PATCH v5 4/9] ata: ahci_platform: add support for PHY controller regulator

2018-09-03 Thread Corentin Labbe
The SoC R40 AHCI controller need a PHY regulator to work. But since the PHY is embedded in the controller, we cannot do a DT node for it, since phy-supply works only in node with a PHY compatible. So this patch adds a way to add an optional phy-supply regulator on AHCI controller node.

Re: [PATCH] cpufreq: Convert to using %pOFn instead of device_node.name

2018-09-03 Thread Viresh Kumar
On 27-08-18, 20:52, Rob Herring wrote: > In preparation to remove the node name pointer from struct device_node, > convert printf users to use the %pOFn format specifier. > > Cc: "Rafael J. Wysocki" > Cc: Viresh Kumar > Cc: linux-arm-ker...@lists.infradead.org > Cc:

[PATCH -V5 04/21] swap: Support PMD swap mapping in put_swap_page()

2018-09-03 Thread Huang Ying
Previously, during swapout, all PMD page mapping will be split and replaced with PTE swap mapping. And when clearing the SWAP_HAS_CACHE flag for the huge swap cluster in put_swap_page(), the huge swap cluster will be split. Now, during swapout, the PMD page mappings to the THP will be changed to

[PATCH -V5 03/21] swap: Support PMD swap mapping in swap_duplicate()

2018-09-03 Thread Huang Ying
To support to swapin the THP in one piece, we need to create PMD swap mapping during swapout, and maintain PMD swap mapping count. This patch implements the support to increase the PMD swap mapping count (for swapout, fork, etc.) and set SWAP_HAS_CACHE flag (for swapin, etc.) for a huge swap

Re: REGRESSION: boot stalls on several old dual core Intel CPUs

2018-09-03 Thread Peter Zijlstra
On Sat, Sep 01, 2018 at 11:51:26AM +0930, Kevin Shanahan wrote: > On Thu, Aug 30, 2018 at 03:04:39PM +0200, Peter Zijlstra wrote: > > On Thu, Aug 30, 2018 at 12:55:30PM +0200, Siegfried Metz wrote: > > > Dear kernel developers, > > > > > > since mainline kernel 4.18 (up to the latest mainline

Re: [PATCH 0/2] x86/kvm: Enable MCE injection in the guest v2

2018-09-03 Thread Borislav Petkov
Ping... On Thu, Jun 28, 2018 at 07:38:06PM +0200, Borislav Petkov wrote: > From: Borislav Petkov > > Hi all, > > here's v2, dropping patch 3 and incorporating hopefully all of Radim's > feedback. > > Thx. > > v1 cover letter: > > there's this mce-inject.ko module in the kernel which allows

Re: [PATCH v2 2/2] clk: tegra20: Enable lock-status polling for PLLs

2018-09-03 Thread Peter De Schrijver
On Fri, Aug 31, 2018 at 12:45:17PM +0300, Dmitry Osipenko wrote: > On 8/31/18 12:29 PM, Peter De Schrijver wrote: > > On Thu, Aug 30, 2018 at 09:42:10PM +0300, Dmitry Osipenko wrote: > >> Currently all PLL's on Tegra20 use a hardcoded delay despite of having > >> a lock-status bit. The lock-status

Re: REGRESSION: boot stalls on several old dual core Intel CPUs

2018-09-03 Thread Peter Zijlstra
On Mon, Sep 03, 2018 at 10:54:23AM +0200, Peter Zijlstra wrote: > On Mon, Sep 03, 2018 at 09:38:15AM +0200, Thomas Gleixner wrote: > > On Mon, 3 Sep 2018, Peter Zijlstra wrote: > > > On Sat, Sep 01, 2018 at 11:51:26AM +0930, Kevin Shanahan wrote: > > > > commit

[PATCH v2 00/11] mscc: ocelot: add support for SerDes muxing configuration

2018-09-03 Thread Quentin Schulz
The Ocelot switch has currently an hardcoded SerDes muxing that suits only a particular use case. Any other board setup will fail to work. To prepare for upcoming boards' support that do not have the same muxing, create a PHY driver that will handle all possible cases. A SerDes can work in

[PATCH net-next v2 05/11] net: mscc: ocelot: simplify register access for PLL5 configuration

2018-09-03 Thread Quentin Schulz
Since HSIO address space can be accessed by different drivers, let's simplify the register address definitions so that it can be easily used by all drivers and put the register address definition in the include/soc/mscc/ocelot_hsio.h header file. Acked-by: Alexandre Belloni Signed-off-by:

[PATCH v2 10/11] phy: add driver for Microsemi Ocelot SerDes muxing

2018-09-03 Thread Quentin Schulz
The Microsemi Ocelot can mux SerDes lanes (aka macros) to different switch ports or even make it act as a PCIe interface. This adds support for the muxing of the SerDes. Signed-off-by: Quentin Schulz --- drivers/phy/Kconfig | 1 + drivers/phy/Makefile | 1 +

RE: [PATCH v5 1/2] clk: Add of_clk_get_by_name_optional() function

2018-09-03 Thread Phil Edworthy
Hi Stephen, On 01 September 2018 03:46, Stephen Boyd wrote: > Quoting Phil Edworthy (2018-08-31 07:07:22) > > diff --git a/drivers/clk/clkdev.c b/drivers/clk/clkdev.c index > > 9ab3db8..4adb99e 100644 > > --- a/drivers/clk/clkdev.c > > +++ b/drivers/clk/clkdev.c > > @@ -54,30 +54,29 @@

Re: Access to non-RAM pages

2018-09-03 Thread Jiri Kosina
On Sun, 2 Sep 2018, Linus Torvalds wrote: > Which basically doesn't happen on x86 in reality. BIOSes just don't put > MMIO right after the last page of RAM. I think this is why it only > triggered on Xen, due to some crazy "Xen reacts badly" case where we do > the speculation into a balloon

[PATCH 11/13] iommu/mediatek: Add shutdown callback

2018-09-03 Thread Yong Wu
In the reboot burning test, if some Multimedia HW has something wrong, It may keep send the invalid request to IOMMU. In order to avoid affect the reboot flow, we add the shutdown callback to disable M4U HW when shutdown. Signed-off-by: Yong Wu --- drivers/iommu/mtk_iommu.c | 6 ++ 1 file

[PATCH 10/13] iommu/mediatek: Add VLD_PA_RANGE register backup when suspend

2018-09-03 Thread Yong Wu
The register VLD_PA_RNG(0x118) was forgot to backup while adding 4GB mode support for mt2712. this patch add it. Fixes: 30e2fccf9512 ("iommu/mediatek: Enlarge the validate PA range for 4GB mode") Signed-off-by: Yong Wu --- drivers/iommu/mtk_iommu.c | 2 ++ drivers/iommu/mtk_iommu.h | 1 + 2

[PATCH 13/13] iommu/mediatek: Switch to SPDX license identifier

2018-09-03 Thread Yong Wu
Switch to SPDX license identifier for MediaTek iommu/smi and their header files. Signed-off-by: Yong Wu --- drivers/iommu/mtk_iommu.c | 10 +- drivers/iommu/mtk_iommu.h | 10 +- drivers/iommu/mtk_iommu_v1.c | 10 +-

[PATCH -V5 20/21] swap: create PMD swap mapping when unmap the THP

2018-09-03 Thread Huang Ying
This is the final step of the THP swapin support. When reclaiming a anonymous THP, after allocating the huge swap cluster and add the THP into swap cache, the PMD page mapping will be changed to the mapping to the swap space. Previously, the PMD page mapping will be split before being changed.

[PATCH -V5 13/21] swap: Support PMD swap mapping in madvise_free()

2018-09-03 Thread Huang Ying
When madvise_free() found a PMD swap mapping, if only part of the huge swap cluster is operated on, the PMD swap mapping will be split and fallback to PTE swap mapping processing. Otherwise, if all huge swap cluster is operated on, free_swap_and_cache() will be called to decrease the PMD swap

[PATCH -V5 07/21] swap: Support PMD swap mapping in split_swap_cluster()

2018-09-03 Thread Huang Ying
When splitting a THP in swap cache or failing to allocate a THP when swapin a huge swap cluster, the huge swap cluster will be split. In addition to clear the huge flag of the swap cluster, the PMD swap mapping count recorded in cluster_count() will be set to 0. But we will not touch PMD swap

[PATCH -V5 21/21] swap: Update help of CONFIG_THP_SWAP

2018-09-03 Thread Huang Ying
The help of CONFIG_THP_SWAP is updated to reflect the latest progress of THP (Tranparent Huge Page) swap optimization. Signed-off-by: "Huang, Ying" Reviewed-by: Dan Williams Cc: "Kirill A. Shutemov" Cc: Andrea Arcangeli Cc: Michal Hocko Cc: Johannes Weiner Cc: Shaohua Li Cc: Hugh Dickins

[PATCH -V5 19/21] swap: Support PMD swap mapping in common path

2018-09-03 Thread Huang Ying
Original code is only for PMD migration entry, it is revised to support PMD swap mapping. Signed-off-by: "Huang, Ying" Cc: "Kirill A. Shutemov" Cc: Andrea Arcangeli Cc: Michal Hocko Cc: Johannes Weiner Cc: Shaohua Li Cc: Hugh Dickins Cc: Minchan Kim Cc: Rik van Riel Cc: Dave Hansen Cc:

[PATCH -V5 01/21] swap: Enable PMD swap operations for CONFIG_THP_SWAP

2018-09-03 Thread Huang Ying
Currently, "the swap entry" in the page tables is used for a number of things outside of actual swap, like page migration, etc. We support the THP/PMD "swap entry" for page migration currently and the functions behind this are tied to page migration's config option

[PATCH -V5 10/21] swap: Support to count THP swapin and its fallback

2018-09-03 Thread Huang Ying
2 new /proc/vmstat fields are added, "thp_swapin" and "thp_swapin_fallback" to count swapin a THP from swap device in one piece and fallback to normal page swapin. Signed-off-by: "Huang, Ying" Cc: "Kirill A. Shutemov" Cc: Andrea Arcangeli Cc: Michal Hocko Cc: Johannes Weiner Cc: Shaohua Li

Re: [PATCH 0/5] Remove sh_mobile_ceu_camera from arch/sh

2018-09-03 Thread jacopo mondi
Hi Sakari, On Fri, Aug 31, 2018 at 03:25:58PM +0300, Sakari Ailus wrote: > Hi Jacopo, > > On Mon, May 28, 2018 at 06:37:06PM +0200, Jacopo Mondi wrote: > > Hello, > > this series removes dependencies on the soc_camera based > > sh_mobile_ceu_camera driver from 3 board files in arch/sh and

[PATCH -V5 12/21] swap: Support PMD swap mapping in swapoff

2018-09-03 Thread Huang Ying
During swapoff, for a huge swap cluster, we need to allocate a THP, read its contents into the THP and unuse the PMD and PTE swap mappings to it. If failed to allocate a THP, the huge swap cluster will be split. During unuse, if it is found that the swap cluster mapped by a PMD swap mapping is

  1   2   3   4   5   6   7   8   9   10   >