Re: [PATCH v2 17/21] ASoC: samsung: i2s: Change indentation in SAMSUNG_I2S_FMTS definition

2019-02-12 Thread Krzysztof Kozlowski
On Tue, 12 Feb 2019 at 19:05, Sylwester Nawrocki wrote: > > Change indentation so this macro definition spans 2 rows and looks > more consistent with surrounding code. > > Signed-off-by: Sylwester Nawrocki > --- > sound/soc/samsung/i2s.c | 5 ++--- > 1 file changed, 2 insertions(+), 3

Re: [PATCH v2 16/21] ASoC: samsung: i2s: Simplify pri_dai, sec_dai pointers usage

2019-02-12 Thread Krzysztof Kozlowski
On Tue, 12 Feb 2019 at 19:05, Sylwester Nawrocki wrote: > > If the probe call is on the primary DAI we can use 'other' in place of > i2s->sec_dai, if the probe call is on the secondary DAI we can use 'i2s' > in place of other->sec_dai. > > While at it fix one whitespace issue. > > Signed-off-by:

Re: [tip:x86/boot] x86/boot: Early parse RSDP and save it in boot_params

2019-02-12 Thread Chao Fan
On Wed, Feb 13, 2019 at 08:36:12AM +0100, Boris Petkov wrote: >On February 13, 2019 2:54:29 AM GMT+01:00, Chao Fan >wrote: >>Yes, your PATCH really works well. I tried both efi32 OVMF and efi64 >>OVMF, all boot. > >What about the real hardware you are normally testing on? Boots there too? I

Re: [PATCH] mmc: mmc: Fix HS setting in mmc_hs400_to_hs200()

2019-02-12 Thread Chaotian Jing
On Wed, 2019-02-13 at 08:24 +0100, Ulf Hansson wrote: > On Wed, 13 Feb 2019 at 04:13, Chaotian Jing > wrote: > > > > On Wed, 2019-02-13 at 08:54 +0800, Chaotian Jing wrote: > > > On Tue, 2019-02-12 at 10:04 +0200, Adrian Hunter wrote: > > > > On 12/02/19 4:04 AM, Chaotian Jing wrote: > > > > >

Re: [PATCH] Documentation/atomic_t: Clarify signed vs unsigned

2019-02-12 Thread Ingo Molnar
* Peter Zijlstra wrote: > > Clarify the whole signed vs unsigned issue for atomic_t. > > There has been enough confusion on this topic to warrant a few explicit > words I feel. > > Signed-off-by: Peter Zijlstra (Intel) > --- > Documentation/atomic_t.txt | 17 + > 1 file

RE: [PATCH v4 6/6] RISC-V: Free-up initrd in free_initrd_mem()

2019-02-12 Thread Anup Patel
> -Original Message- > From: Mike Rapoport [mailto:r...@linux.ibm.com] > Sent: Wednesday, February 13, 2019 1:09 PM > To: Christoph Hellwig > Cc: Anup Patel ; Palmer Dabbelt > ; Albert Ou ; Atish Patra > ; Paul Walmsley ; linux- > ri...@lists.infradead.org; linux-kernel@vger.kernel.org

Re: Linux 4.4.174

2019-02-12 Thread Greg KH
On Tue, Feb 12, 2019 at 08:13:11PM -0800, Mark D Rustad wrote: > On Feb 9, 2019, at 12:13 AM, Greg KH wrote: > > > On Fri, Feb 08, 2019 at 08:44:32PM -0800, Mark D Rustad wrote: > > > On Feb 8, 2019, at 2:54 AM, Greg KH wrote: > > > > > > > diff --git a/Documentation/networking/ip-sysctl.txt >

[PATCH v3 9/9] device connection: Find device connections also from device graphs

2019-02-12 Thread Heikki Krogerus
If connections between devices are described in OF graph or ACPI device graph, we can find them by using the fwnode_graph_*() functions. Acked-by: Hans de Goede Reviewed-by: Andy Shevchenko Reviewed-by: Jun Li Tested-by: Jun Li Signed-off-by: Heikki Krogerus --- drivers/base/devcon.c | 38

[PATCH v3 5/9] usb: typec: mux: Find the muxes by also matching against the device node

2019-02-12 Thread Heikki Krogerus
When the connections are defined in firmware, struct device_connection will have the fwnode member pointing to the device node (struct fwnode_handle) of the requested device, and the endpoint will not be used at all in that case. Acked-by: Hans de Goede Reviewed-by: Andy Shevchenko Reviewed-by:

[PATCH v3 8/9] device connection: Prepare support for firmware described connections

2019-02-12 Thread Heikki Krogerus
When the connections are defined in firmware, struct device_connection will have the fwnode member pointing to the device node (struct fwnode_handle) of the requested device. The endpoint member for the device names will not be used at all in that case. Acked-by: Hans de Goede Reviewed-by: Andy

[PATCH v3 2/9] usb: typec: Rationalize the API for the muxes

2019-02-12 Thread Heikki Krogerus
Since with accessory modes there is no need for additional identification when requesting a handle to the mux, we can replace the second parameter that is passed to the typec_mux_get() function with a pointer to alternate mode description structure, and simply passing NULL with accessory modes.

[PATCH v3 4/9] device connection: Add fwnode member to struct device_connection

2019-02-12 Thread Heikki Krogerus
This will prepare the device connection API for connections described in firmware. Acked-by: Hans de Goede Reviewed-by: Andy Shevchenko Reviewed-by: Jun Li Signed-off-by: Heikki Krogerus --- include/linux/device.h | 6 ++ 1 file changed, 6 insertions(+) diff --git

[PATCH v3 7/9] usb: typec: Find the ports by also matching against the device node

2019-02-12 Thread Heikki Krogerus
When the connections are defined in firmware, struct device_connection will have the fwnode member pointing to the device node (struct fwnode_handle) of the requested device, and the endpoint will not be used at all in that case. Acked-by: Hans de Goede Reviewed-by: Andy Shevchenko Reviewed-by:

[PATCH v3 6/9] usb: roles: Find the muxes by also matching against the device node

2019-02-12 Thread Heikki Krogerus
When the connections are defined in firmware, struct device_connection will have the fwnode member pointing to the device node (struct fwnode_handle) of the requested device, and the endpoint will not be used at all in that case. Acked-by: Hans de Goede Reviewed-by: Andy Shevchenko Reviewed-by:

[PATCH v3 3/9] platform/x86: intel_cht_int33fe: Remove old style mux connections

2019-02-12 Thread Heikki Krogerus
The new mux connection naming scheme is now in use, so dropping the connections still using the old names. From now on the same connection description named "mode-switch" is used with both the port and the alternate modes, so on CHT the DP alt mode will use the same connection as the port to get a

[PATCH v3 1/9] platform/x86: intel_cht_int33fe: Prepare for better mux naming scheme

2019-02-12 Thread Heikki Krogerus
Adding new connections with for the muxes with new identifiers. The old connection are left in for now. Reviewed-by: Hans de Goede Reviewed-by: Andy Shevchenko Reviewed-by: Jun Li Signed-off-by: Heikki Krogerus --- drivers/platform/x86/intel_cht_int33fe.c | 8 +++- 1 file changed, 7

[PATCH v3 0/9] device connection: Add support for device graphs

2019-02-12 Thread Heikki Krogerus
Hi, This is the third version of my proposal to add device graph parsing to the device connection API. There was only one problem reported in v2 by Jun - kernel-doc entry was missing for the new fwnode member in struct usb_role_switch_desc - and it's now fixed. The second version of the series:

Re: [PATCH v2 2/2] locking/rwsem: Optimize down_read_trylock()

2019-02-12 Thread Ingo Molnar
* Waiman Long wrote: > I looked at the assembly code in arch/x86/include/asm/rwsem.h. For both > trylocks (read & write), the count is read first before attempting to > lock it. We did the same for all trylock functions in other locks. > Depending on how the trylock is used and how contended

Re: [PATCH v4 1/2] tpm: Unify the send callback behaviour

2019-02-12 Thread Jarkko Sakkinen
On Mon, Feb 11, 2019 at 04:05:39PM +0100, Alexander Steffen wrote: > Tested-by: Alexander Steffen Thank you! /Jarkko

[PATCH v2] iio/gyro/bmg160: Use millidegrees for temperature scale

2019-02-12 Thread Mike Looijmans
Standard unit for temperature is millidegrees Celcius, whereas this driver was reporting in degrees. Fix the scale factor in the driver. Signed-off-by: Mike Looijmans --- v2: Don't touch val2 when returning IIO_VAL_INT Only touch val when returning a value drivers/iio/gyro/bmg160_core.c |

Re: [PATCH v4 6/6] RISC-V: Free-up initrd in free_initrd_mem()

2019-02-12 Thread Mike Rapoport
Hi, On Tue, Feb 12, 2019 at 10:44:19PM -0800, Christoph Hellwig wrote: > On Wed, Feb 13, 2019 at 06:32:24AM +, Anup Patel wrote: > > index 9cd583b6d1cd..c22b873de856 100644 > > --- a/arch/riscv/kernel/setup.c > > +++ b/arch/riscv/kernel/setup.c > > @@ -97,8 +97,9 @@ static void __init

Re: [RFC PATCH v1 3/3] regulator: bd718x7: Support SNVS low power state

2019-02-12 Thread Matti Vaittinen
Hello Mark, On Tue, Feb 12, 2019 at 04:08:31PM +, Mark Brown wrote: > On Tue, Feb 12, 2019 at 04:19:38PM +0200, Matti Vaittinen wrote: > > read ROHM BD71837 / BD71847 specific device tree bindings for > > controlling the PMIC shutdown/reset states and voltages for > > different HW states. The

Re: [GIT PULL rcu/next] RCU commits for 5.1

2019-02-12 Thread Ingo Molnar
* Paul E. McKenney wrote: > Hello, Ingo, > > This pull request contains the following changes: > > 1.Additional cleanups after RCU flavor consolidation. > > http://lkml.kernel.org/r/20190109211830.ga30...@linux.ibm.com > > 2.Grace-period forward-progress cleanups and

linux-next: Tree for Feb 13

2019-02-12 Thread Stephen Rothwell
Hi all, Changes since 20190212: The net-next tree gained a conflict against the net tree. The netfilter-next tree gained a build failure so I reverted a commit. The tip tree gained conflicts against the block tree. The vhost tree gained a conflict against the swiotlb tree. The akpm-current

[PATCH v2 1/3] spi: sprd: Add the SPI irq function for the SPI DMA mode

2019-02-12 Thread Baolin Wang
From: Lanqing Liu The SPI irq event will use to complete the SPI work in the SPI DMA mode, so this patch is a preparation for the following DMA mode support. Moreover the SPI interrupt can be fired when removing the SPI controller, so we should make sure the SPI controller has stopped the queue

Re: [LSF/MM TOPIC] FS, MM, and stable trees

2019-02-12 Thread Greg KH
On Wed, Feb 13, 2019 at 09:20:00AM +0200, Amir Goldstein wrote: > I never saw an email from you or Greg saying, the branch "stable-xxx" is > in review. Please run your tests. That is what my "Subject: [PATCH 4.9 000/137] 4.9.156-stable review" type emails are supposed to kick off. They are sent

[PATCH v2 3/3] spi: sprd: spi: sprd: Add DMA mode support

2019-02-12 Thread Baolin Wang
From: Lanqing Liu Add DMA mode support for the Spreadtrum SPI controller, and we will enable SPI interrupt to help to complete the SPI transfer work in DMA mode. Signed-off-by: Lanqing Liu Signed-off-by: Baolin Wang --- Changes from v1: - Implement the can_dma() ops. - Remove DMA slave id

[PATCH v2 2/3] dt-bindings: spi: Add the DMA properties for the SPI dma mode

2019-02-12 Thread Baolin Wang
From: Lanqing Liu Add the DMA properties for the SPI dma mode. Signed-off-by: Lanqing Liu Signed-off-by: Baolin Wang --- Changes from v1: - Remove sprd,dma-slave-ids property. --- Documentation/devicetree/bindings/spi/spi-sprd.txt |7 +++ 1 file changed, 7 insertions(+) diff --git

Re: [tip:x86/boot] x86/boot: Early parse RSDP and save it in boot_params

2019-02-12 Thread Boris Petkov
On February 13, 2019 2:54:29 AM GMT+01:00, Chao Fan wrote: >Yes, your PATCH really works well. I tried both efi32 OVMF and efi64 >OVMF, all boot. What about the real hardware you are normally testing on? Boots there too? Thx. -- Sent from a small device: formatting sux and brevity is

Re: [PATCH] slub: untag object before slab end

2019-02-12 Thread Pekka Enberg
On 13/02/2019 4.05, Qian Cai wrote: get_freepointer() could return NULL if there is no more free objects in the slab. However, it could return a tagged pointer (like 0x2200) with KASAN_SW_TAGS which would escape the NULL object checking in check_valid_pointer() and trigger errors

Re: [PATCH 12/13] input: max77650: add onkey support

2019-02-12 Thread Dmitry Torokhov
Hi Lee, On Tue, Feb 12, 2019 at 12:34 PM Lee Jones wrote: > > > > From: Bartosz Golaszewski > > > > > > Add support for the push- and slide-button events for max77650. > > > > > > Signed-off-by: Bartosz Golaszewski > > > --- > > > drivers/input/misc/Kconfig | 9 ++ > > >

Re: [PATCH 01/12] mfd/sm501: depend on HAS_DMA

2019-02-12 Thread Lee Jones
On Mon, 11 Feb 2019, Christoph Hellwig wrote: > Currently the sm501 mfd driver can be compiled without any dependencies, > but through the use of dma_declare_coherent it really depends on > having DMA and iomem support. Normally we don't explicitly require DMA > support as we have stubs for it

Re: [PATCH 06/12] dma-mapping: improve selection of dma_declare_coherent availability

2019-02-12 Thread Lee Jones
On Mon, 11 Feb 2019, Christoph Hellwig wrote: > This API is primarily used through DT entries, but two architectures > and two drivers call it directly. So instead of selecting the config > symbol for random architectures pull it in implicitly for the actual > users. Also rename the Kconfig

Re: [PATCH] mmc: mmc: Fix HS setting in mmc_hs400_to_hs200()

2019-02-12 Thread Ulf Hansson
On Wed, 13 Feb 2019 at 04:13, Chaotian Jing wrote: > > On Wed, 2019-02-13 at 08:54 +0800, Chaotian Jing wrote: > > On Tue, 2019-02-12 at 10:04 +0200, Adrian Hunter wrote: > > > On 12/02/19 4:04 AM, Chaotian Jing wrote: > > > > On Tue, 2019-02-05 at 15:42 +0200, Adrian Hunter wrote: > > > >> On

Re: [PATCH v2] mfd: sec: Add support for the RTC on S2MPA01

2019-02-12 Thread Lee Jones
Good morning Stuart, It's been a while. I hope all is well with you. > The RTC portion of the S2MPA01 appears to have the same > register layout as the S2MPS14. > > Signed-off-by: Stuart Menefy > --- > drivers/mfd/sec-core.c | 2 ++ > drivers/mfd/sec-irq.c | 3 +++ > 2 files changed, 5

Re: [LSF/MM TOPIC] FS, MM, and stable trees

2019-02-12 Thread Amir Goldstein
On Tue, Feb 12, 2019 at 11:56 PM Steve French wrote: > > Makes sense - e.g. I would like to have a process to make automation > of the xfstests for proposed patches for stable for cifs.ko easier and > part of the process (as we already do for cifs/smb3 related checkins > to for-next ie linux next

Re: [PATCH v1] clk: qcom: lpass: Add CLK_IGNORE_UNUSED for lpass clocks

2019-02-12 Thread Bjorn Andersson
On Thu 20 Dec 03:46 PST 2018, Taniya Das wrote: > The LPASS clocks has a dependency on the GCC lpass clocks to be enabled > before accessing them and that was the reason to mark the gcc lpass clocks > as critical. I have the same problem with the TuringCC in QCS404, that in order to disable the

Re: [PATCH -tip v3 05/10] kprobes: Search non-suffixed symbol in blacklist

2019-02-12 Thread Ingo Molnar
* Ingo Molnar wrote: > > * Masami Hiramatsu wrote: > > > Newer gcc can generate some different instances of a function > > with suffixed symbols if the function is optimized and only > > has a part of that. (e.g. .constprop, .part etc.) > > > > In this case, it is not enough to check the

Re: [PATCH] printk: add KERN_NOTIME to skip the timestamp

2019-02-12 Thread xiang xiao
But how can I precisely control timestamp on/off per message through sysfs node? On Wed, Feb 13, 2019 at 2:38 PM Sergey Senozhatsky wrote: > > On (02/13/19 15:29), Sergey Senozhatsky wrote: > > > > cat /sys/module/printk/parameters/time ? > ^ > cat / echo > > Works both ways. > >

Re: [PATCH -tip v3 05/10] kprobes: Search non-suffixed symbol in blacklist

2019-02-12 Thread Ingo Molnar
* Masami Hiramatsu wrote: > Newer gcc can generate some different instances of a function > with suffixed symbols if the function is optimized and only > has a part of that. (e.g. .constprop, .part etc.) > > In this case, it is not enough to check the entry of kprobe > blacklist because it

[PATCH] arm/mach-socfpga/pm: fix possible object reference leak

2019-02-12 Thread Peng Hao
of_find_device_by_node() takes a reference to the struct device when it finds a match via get_device. When returning error we should call put_device. Signed-off-by: Peng Hao --- arch/arm/mach-socfpga/pm.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git

[PATCH] arm/mach-omap2/display: fix possible object reference leak

2019-02-12 Thread Peng Hao
of_find_device_by_node() takes a reference to the struct device when it finds a match via get_device.When returning error we should call put_device. Signed-off-by: Peng Hao --- arch/arm/mach-omap2/display.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-omap2/display.c

Re: [PATCH 3/4] clk: samsung: exynos5410: Add gate clock for ADC

2019-02-12 Thread Chanwoo Choi
Hi, On 19. 2. 13. 오전 2:50, Krzysztof Kozlowski wrote: > Add the gate clock for ADC block on Exynos5410. > > Signed-off-by: Krzysztof Kozlowski > --- > drivers/clk/samsung/clk-exynos5410.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/clk/samsung/clk-exynos5410.c >

Re: [PATCH 3/3] cpufreq: imx-sc: add i.mx system controller cpufreq support

2019-02-12 Thread Viresh Kumar
On 13-02-19, 03:09, Anson Huang wrote: > On NXP's i.MX SoCs with system controller inside, CPU frequency > scaling can ONLY be done by system controller firmware, and it > can ONLY be requested from secure mode, so Linux cpufreq driver has > to call ARM SMC to trap to ARM-Trusted-Firmware to

Re: [PATCH 2/4] dt-bindings: clock: exynos: Add ADC clock ID to Exynos5410

2019-02-12 Thread Chanwoo Choi
Hi, On 19. 2. 13. 오전 2:50, Krzysztof Kozlowski wrote: > Add ID for TSADC clock to Exynos5410. Choose the same value of ID as in > Exynos5420 to make it simpler/compatible in future (although clock > driver code is not shared). > > Signed-off-by: Krzysztof Kozlowski > --- >

[GIT PULL V3] csky fixes for v5.0-rc6

2019-02-12 Thread guoren
Hi Linus, This is third version of pull-request from csky, we removed all patches of drivers. Best Regards Guo Ren The following changes since commit d13937116f1e82bf508a6325111b322c30c85eb9: Linux 5.0-rc6 (2019-02-10 14:42:20 -0800) are available in the git repository at:

[PATCH 2/2] arm64: dts: allwinner: a64: Rename hpvcc-supply to cpvdd-supply

2019-02-12 Thread Chen-Yu Tsai
The A64 datasheet lists the supply rail for the headphone amp's charge pump as "CPVDD". cpvdd-supply is the name of the property for this power rail specified in the device tree bindings. "HPVCC" was the name used in the A33 datasheet for the same function. Rename the supply so it matches the

[PATCH 0/2] arm64: allwinner: a64: Rename hpvcc-supply to cpvdd-supply

2019-02-12 Thread Chen-Yu Tsai
Hi everyone, This is a small series to fix the CPVDD regulator supply name for the A64 codec. The datasheet specifies the name "CPVDD" for the supply rail for the audio codec's internal headphone amp charge pump. Somehow I managed to write "CPVDD" in the commit message and the device tree

[PATCH 03/32] powerpc/dma: untangle vio_dma_mapping_ops from dma_iommu_ops

2019-02-12 Thread Christoph Hellwig
vio_dma_mapping_ops currently does a lot of indirect calls through dma_iommu_ops, which not only make the code harder to follow but are also expensive in the post-spectre world. Unwind the indirect calls by calling the ppc_iommu_* or iommu_* APIs directly applicable, or just use the dma_iommu_*

[PATCH 1/2] ASoC: sunxi: sun50i-codec-analog: Rename hpvcc regulator supply to cpvdd

2019-02-12 Thread Chen-Yu Tsai
The A64 datasheet lists the supply rail for the headphone amp's charge pump as "CPVDD". cpvdd-supply is the name of the property for this power rail specified in the device tree bindings. "HPVCC" was the name used in the A33 datasheet for the same function. Rename the supply so it matches the

use generic DMA mapping code in powerpc V7

2019-02-12 Thread Christoph Hellwig
Hi all, this series switches the powerpc port to use the generic swiotlb and noncoherent dma ops, and to use more generic code for the coherent direct mapping, as well as removing a lot of dead code. As this series is very large and depends on the dma-mapping tree I've also published a git tree:

[PATCH 02/32] dma-direct: we might need GFP_DMA for 32-bit dma masks

2019-02-12 Thread Christoph Hellwig
If there is no ZONE_DMA32 we might need GFP_DMA to be able to allocate memory that satisfies a 32-bit DMA mask. Reported-by: Christian Zigotzky Signed-off-by: Christoph Hellwig Tested-by: Christian Zigotzky --- kernel/dma/direct.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff

[PATCH 23/32] powerpc/dma: remove dma_nommu_mmap_coherent

2019-02-12 Thread Christoph Hellwig
The coherent cache version of this function already is functionally identicall to the default version, and by defining the arch_dma_coherent_to_pfn hook the same is ture for the noncoherent version as well. Signed-off-by: Christoph Hellwig Tested-by: Christian Zigotzky ---

[PATCH 19/32] powerpc/dma: remove max_direct_dma_addr

2019-02-12 Thread Christoph Hellwig
The max_direct_dma_addr duplicates the bus_dma_mask field in struct device. Use the generic field instead. Signed-off-by: Christoph Hellwig Tested-by: Christian Zigotzky --- arch/powerpc/include/asm/device.h | 3 --- arch/powerpc/include/asm/dma-direct.h | 4 +---

[PATCH 21/32] dma-mapping, powerpc: simplify the arch dma_set_mask override

2019-02-12 Thread Christoph Hellwig
Instead of letting the architecture supply all of dma_set_mask just give it an additional hook selected by Kconfig. Signed-off-by: Christoph Hellwig Tested-by: Christian Zigotzky --- arch/powerpc/Kconfig | 1 + arch/powerpc/include/asm/dma-mapping.h | 2 --

[PATCH 08/32] powerpc/cell: use the generic iommu bypass code

2019-02-12 Thread Christoph Hellwig
This gets rid of a lot of clumsy code and finally allows us to mark dma_iommu_ops const. Includes fixes from Michael Ellerman. Signed-off-by: Christoph Hellwig --- arch/powerpc/include/asm/dma-mapping.h | 2 +- arch/powerpc/include/asm/iommu.h | 6 ++ arch/powerpc/kernel/dma-iommu.c

[PATCH 25/32] powerpc/dma: remove dma_nommu_dma_supported

2019-02-12 Thread Christoph Hellwig
This function is largely identical to the generic version used everywhere else. Replace it with the generic version. Signed-off-by: Christoph Hellwig Tested-by: Christian Zigotzky --- arch/powerpc/include/asm/dma-mapping.h | 1 - arch/powerpc/kernel/dma-iommu.c| 2 +-

[PATCH 13/32] powerpc/powernv: use the generic iommu bypass code

2019-02-12 Thread Christoph Hellwig
Use the generic iommu bypass code instead of overriding set_dma_mask. Signed-off-by: Christoph Hellwig --- arch/powerpc/platforms/powernv/pci-ioda.c | 95 ++- 1 file changed, 25 insertions(+), 70 deletions(-) diff --git a/arch/powerpc/platforms/powernv/pci-ioda.c

[PATCH 04/32] powerpc/dma: handle iommu bypass in dma_iommu_ops

2019-02-12 Thread Christoph Hellwig
Add a new iommu_bypass flag to struct dev_archdata so that the dma_iommu implementation can handle the direct mapping transparently instead of switiching ops around. Setting of this flag is controlled by new pci_controller_ops method. Signed-off-by: Christoph Hellwig Tested-by: Christian

Re: [PATCH 1/4] dt-bindings: clock: exynos: Put CLK_UART3 in order

2019-02-12 Thread Chanwoo Choi
Hi, On 19. 2. 13. 오전 2:50, Krzysztof Kozlowski wrote: > Order the CLK_UART3 by ID. No change in functionality. > > Signed-off-by: Krzysztof Kozlowski > --- > include/dt-bindings/clock/exynos5410.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

[PATCH 17/32] powerpc/dma: remove get_pci_dma_ops

2019-02-12 Thread Christoph Hellwig
This function is only used by the Cell iommu code, which can keep track if it is using the iommu internally just as good. Signed-off-by: Christoph Hellwig Tested-by: Christian Zigotzky --- arch/powerpc/include/asm/pci.h | 2 -- arch/powerpc/kernel/pci-common.c| 6 --

[PATCH 11/32] powerpc/powernv: remove pnv_pci_ioda_pe_single_vendor

2019-02-12 Thread Christoph Hellwig
This function is completely bogus - the fact that two PCIe devices come from the same vendor has absolutely nothing to say about the DMA capabilities and characteristics. Signed-off-by: Christoph Hellwig --- arch/powerpc/platforms/powernv/pci-ioda.c | 28 ++- 1 file changed,

[PATCH 12/32] powerpc/powernv: remove pnv_npu_dma_set_mask

2019-02-12 Thread Christoph Hellwig
These devices are not PCIe devices and do not have associated dma map ops, so this is just dead code. Signed-off-by: Christoph Hellwig --- arch/powerpc/platforms/powernv/pci-ioda.c | 9 - 1 file changed, 9 deletions(-) diff --git a/arch/powerpc/platforms/powernv/pci-ioda.c

[PATCH 18/32] powerpc/dma: move pci_dma_dev_setup_swiotlb to fsl_pci.c

2019-02-12 Thread Christoph Hellwig
pci_dma_dev_setup_swiotlb is only used by the fsl_pci code, and closely related to it, so fsl_pci.c seems like a better place for it. Signed-off-by: Christoph Hellwig Tested-by: Christian Zigotzky --- arch/powerpc/include/asm/swiotlb.h | 2 -- arch/powerpc/kernel/dma-swiotlb.c | 11

[PATCH 26/32] swiotlb: remove swiotlb_dma_supported

2019-02-12 Thread Christoph Hellwig
The only user left is powerpc, but even there the generic dma-direct version works just as well, given that we guarantee that the swiotlb buffer must always be addressable. Signed-off-by: Christoph Hellwig Tested-by: Christian Zigotzky --- arch/powerpc/kernel/dma-swiotlb.c | 2 +-

[PATCH 20/32] powerpc/dma: fix an off-by-one in dma_capable

2019-02-12 Thread Christoph Hellwig
We need to compare the last byte in the dma range and not the one after it for the bus_dma_mask, just like we do for the regular dma_mask. Fix this cleanly by merging the two comparisms into one. Signed-off-by: Christoph Hellwig Tested-by: Christian Zigotzky ---

[PATCH 28/32] powerpc/dma: use the dma_direct mapping routines

2019-02-12 Thread Christoph Hellwig
Switch the streaming DMA mapping and ownership transfer methods to the functionally identical dma_direct_ versions. Factor the cache maintainance helpers into the form expected by the common code for that. Signed-off-by: Christoph Hellwig Tested-by: Christian Zigotzky ---

[PATCH 24/32] powerpc/dma: remove dma_nommu_get_required_mask

2019-02-12 Thread Christoph Hellwig
This function is identical to the generic dma_direct_get_required_mask, except that the generic version also takes the bus_dma_mask account, which could lead to incorrect results in the powerpc version. Signed-off-by: Christoph Hellwig Tested-by: Christian Zigotzky ---

[PATCH 27/32] powerpc/dma: use the dma-direct allocator for coherent platforms

2019-02-12 Thread Christoph Hellwig
The generic code allows a few nice things such as node local allocations and dipping into the CMA area. The lookup of the right zone for a given dma mask works a little different, but the results should be the same. Signed-off-by: Christoph Hellwig Tested-by: Christian Zigotzky ---

[PATCH 14/32] powerpc/dma: stop overriding dma_get_required_mask

2019-02-12 Thread Christoph Hellwig
The ppc_md and pci_controller_ops methods are unused now and can be removed. The dma_nommu implementation is generic to the generic one except for using max_pfn instead of calling into the memblock API, and all other dma_map_ops instances implement a method of their own. Signed-off-by: Christoph

[PATCH 09/32] powerpc/dart: remove dead cleanup code in iommu_init_early_dart

2019-02-12 Thread Christoph Hellwig
If dart_init failed we didn't have a chance to setup dma or controller ops yet, so there is no point in resetting them. Signed-off-by: Christoph Hellwig --- arch/powerpc/sysdev/dart_iommu.c | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git

[PATCH 22/32] powerpc/dma: use phys_to_dma instead of get_dma_offset

2019-02-12 Thread Christoph Hellwig
Use the standard portable helper instead of the powerpc specific one, which is about to go away. Signed-off-by: Christoph Hellwig Acked-by: Benjamin Herrenschmidt Tested-by: Christian Zigotzky --- arch/powerpc/kernel/dma.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff

[PATCH 07/32] powerpc/cell: move dma direct window setup out of dma_configure

2019-02-12 Thread Christoph Hellwig
Configure the dma settings at device setup time, and stop playing games with get_pci_dma_ops. This prepares for using the common dma_configure code later on. Includes fixes from Michael Ellerman. Signed-off-by: Christoph Hellwig --- arch/powerpc/platforms/cell/iommu.c | 24

[PATCH 32/32] powerpc/dma: trim the fat from

2019-02-12 Thread Christoph Hellwig
There is no need to provide anything but get_arch_dma_ops to . More the remaining declarations to and drop all the includes. Signed-off-by: Christoph Hellwig Tested-by: Christian Zigotzky --- arch/powerpc/include/asm/dma-mapping.h| 29 ---

[PATCH 31/32] powerpc/dma: remove set_dma_offset

2019-02-12 Thread Christoph Hellwig
There is no good reason for this helper, just opencode it. Signed-off-by: Christoph Hellwig Tested-by: Christian Zigotzky --- arch/powerpc/include/asm/dma-mapping.h| 6 -- arch/powerpc/kernel/pci-common.c | 2 +- arch/powerpc/platforms/cell/iommu.c | 4 ++--

[PATCH 29/32] powerpc/dma: use the generic direct mapping bypass

2019-02-12 Thread Christoph Hellwig
Now that we've switched all the powerpc nommu and swiotlb methods to use the generic dma_direct_* calls we can remove these ops vectors entirely and rely on the common direct mapping bypass that avoids indirect function calls entirely. This also allows to remove a whole lot of boilerplate code

[PATCH 30/32] powerpc/dma: remove get_dma_offset

2019-02-12 Thread Christoph Hellwig
Just fold the calculation into __phys_to_dma/__dma_to_phys as those are the only places that should know about it. Signed-off-by: Christoph Hellwig Acked-by: Benjamin Herrenschmidt Tested-by: Christian Zigotzky --- arch/powerpc/include/asm/dma-direct.h | 8 ++--

[PATCH 10/32] powerpc/dart: use the generic iommu bypass code

2019-02-12 Thread Christoph Hellwig
Use the generic iommu bypass code instead of overriding set_dma_mask. Signed-off-by: Christoph Hellwig --- arch/powerpc/sysdev/dart_iommu.c | 47 1 file changed, 17 insertions(+), 30 deletions(-) diff --git a/arch/powerpc/sysdev/dart_iommu.c

[PATCH 16/32] powerpc/dma: remove the iommu fallback for coherent allocations

2019-02-12 Thread Christoph Hellwig
All iommu capable platforms now always use the iommu code with the internal bypass, so there is not need for this magic anymore. Signed-off-by: Christoph Hellwig Tested-by: Christian Zigotzky --- arch/powerpc/Kconfig | 4 --- arch/powerpc/kernel/dma.c | 68

[PATCH 15/32] powerpc/pci: remove the dma_set_mask pci_controller ops methods

2019-02-12 Thread Christoph Hellwig
Unused now. Signed-off-by: Christoph Hellwig --- arch/powerpc/include/asm/pci-bridge.h | 2 -- arch/powerpc/kernel/dma.c | 7 --- 2 files changed, 9 deletions(-) diff --git a/arch/powerpc/include/asm/pci-bridge.h b/arch/powerpc/include/asm/pci-bridge.h index

[PATCH 01/32] net: pasemi: set a 64-bit DMA mask on the DMA device

2019-02-12 Thread Christoph Hellwig
The pasemi driver never set a DMA mask, and given that the powerpc DMA mapping routines never check it this worked ok so far. But the generic dma-direct code which I plan to switch on for powerpc checks the DMA mask and fails unsupported mapping requests, so we need to make sure the proper 64-bit

[PATCH 05/32] powerpc/pseries: unwind dma_get_required_mask_pSeriesLP a bit

2019-02-12 Thread Christoph Hellwig
Call dma_get_required_mask_pSeriesLP directly instead of dma_iommu_ops to simply the code a bit. Signed-off-by: Christoph Hellwig --- arch/powerpc/platforms/pseries/iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/pseries/iommu.c

[PATCH 06/32] powerpc/pseries: use the generic iommu bypass code

2019-02-12 Thread Christoph Hellwig
Use the generic iommu bypass code instead of overriding set_dma_mask. Signed-off-by: Christoph Hellwig --- arch/powerpc/platforms/pseries/iommu.c | 100 +++-- 1 file changed, 27 insertions(+), 73 deletions(-) diff --git a/arch/powerpc/platforms/pseries/iommu.c

Re: [PATCH] iio/gyro/bmg160: Use millidegrees for temperature scale

2019-02-12 Thread Mike Looijmans
On 12-02-19 18:00, Tomasz Duszynski wrote: > On Tue, Feb 12, 2019 at 03:25:49PM +0100, Mike Looijmans wrote: >> Standard unit for temperature is millidegrees Celcius, whereas this driver >> was reporting in degrees. Fix the scale factor in the driver. >> >> Signed-off-by: Mike Looijmans >> --- >>

Re: [RESEND PATCH v2] of: fix kmemleak crash caused by imbalance in early memory reservation

2019-02-12 Thread Mike Rapoport
On Tue, Feb 12, 2019 at 04:12:24PM -0600, Rob Herring wrote: > On Tue, Feb 12, 2019 at 3:50 PM Stephen Rothwell > wrote: > > > > Hi all, > > > > On Tue, 12 Feb 2019 10:03:09 -0600 Rob Herring wrote: > > > > > > On Mon, Feb 11, 2019 at 10:47 AM Marc Gonzalez > > > wrote: > > > > > > > > On

Re: [PATCH] fat: enable .splice_write to support splice on O_DIRECT file

2019-02-12 Thread Hou Tao
ping ? On 2019/2/10 17:47, Hou Tao wrote: > Now splice() on O_DIRECT-opened fat file will return -EFAULT, that is > because the default .splice_write, namely default_file_splice_write(), > will construct an ITER_KVEC iov_iter and dio_refill_pages() in dio path > can not handle it. > > Fix it by

Re: [PATCH 1/1] tracing: Fix event_trace_printk loss on printk_format.

2019-02-12 Thread Mars Cheng
Hi Steve On Wed, 2019-02-13 at 12:54 +0800, Mars Cheng wrote: > Hi Steve > > On Tue, 2019-02-12 at 20:41 -0500, Steven Rostedt wrote: > > On Tue, 12 Feb 2019 19:41:57 +0800 > > Mars Cheng wrote: > > > > > From: Andress Kuo > > > > > > If fmt on event_trace_printk is not a constant, It means

linux-next: manual merge of the akpm tree with the tip tree

2019-02-12 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the akpm tree got a conflict in: scripts/atomic/check-atomics.sh between commit: 4ad119545d78 ("locking/atomics: Check atomic headers with sha1sum") from the tip tree and patch: "scripts/atomic/check-atomics.sh: don't assume that scripts are

Re: [PATCH -next] ASoC: cros_ec_codec: Make symbol 'cros_ec_dai' static

2019-02-12 Thread Cheng-yi Chiang
On Wed, Feb 13, 2019 at 2:16 PM Wei Yongjun wrote: > > Fixes the following sparse warning: > > sound/soc/codecs/cros_ec_codec.c:209:27: warning: > symbol 'cros_ec_dai' was not declared. Should it be static? > > Fixes: b291f42a3718 ("ASoC: cros_ec_codec: Add codec driver for Cros EC") >

Re: [v4 PATCH 6/8] clocksource/drivers/riscv: Add required checks during clock source init

2019-02-12 Thread Anup Patel
On Tue, Feb 12, 2019 at 4:40 PM Atish Patra wrote: > > Currently, clocksource registration happens for an invalid cpu for > non-smp kernels. This lead to kernel panic as cpu hotplug registration > will fail for those cpus. Moreover, riscv_hartid_to_cpuid can return > errors now. > > Do not

Re: [PATCH v4 6/6] RISC-V: Free-up initrd in free_initrd_mem()

2019-02-12 Thread Christoph Hellwig
On Wed, Feb 13, 2019 at 06:32:24AM +, Anup Patel wrote: > index 9cd583b6d1cd..c22b873de856 100644 > --- a/arch/riscv/kernel/setup.c > +++ b/arch/riscv/kernel/setup.c > @@ -97,8 +97,9 @@ static void __init setup_initrd(void) > initrd_end = 0; > } > > -void free_initrd_mem(unsigned long

Re: [PATCH] printk: add KERN_NOTIME to skip the timestamp

2019-02-12 Thread Sergey Senozhatsky
On (02/13/19 15:29), Sergey Senozhatsky wrote: > > cat /sys/module/printk/parameters/time ? ^ cat / echo Works both ways. -ss

[PATCH] arm/mach-at91/pm : fix possible object reference leak

2019-02-12 Thread Peng Hao
of_find_device_by_node() takes a reference to the struct device when it finds a match via get_device. When returning error we should call put_device. Signed-off-by: Peng Hao --- arch/arm/mach-at91/pm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-at91/pm.c

[PATCH v4 5/6] RISC-V: Implement compile-time fixed mappings

2019-02-12 Thread Anup Patel
This patch implements compile-time virtual to physical mappings. These compile-time fixed mappings can be used by earlycon, ACPI, and early ioremap for creating fixed mappings when FIX_EARLYCON_MEM=y. To start with, we have enabled compile-time fixed mappings for earlycon. Signed-off-by: Anup

[PATCH v4 2/6] RISC-V: Setup init_mm before parse_early_param()

2019-02-12 Thread Anup Patel
We should setup init_mm before doing parse_early_param() in setup_arch() to be consistent with setup_arch() of other architectures such as x86, ARM, and ARM64. Signed-off-by: Anup Patel Reviewed-by: Christoph Hellwig Reviewed-by: Palmer Dabbelt --- arch/riscv/kernel/setup.c | 9 - 1

[PATCH v4 4/6] RISC-V: Move setup_vm() to mm/init.c

2019-02-12 Thread Anup Patel
The setup_vm() is responsible for setting up initial page table hence should be placed in mm/init.c. Signed-off-by: Anup Patel Reviewed-by: Christoph Hellwig Reviewed-by: Palmer Dabbelt --- arch/riscv/kernel/setup.c | 49 --- arch/riscv/mm/init.c | 49

[PATCH v4 3/6] RISC-V: Move setup_bootmem() to mm/init.c

2019-02-12 Thread Anup Patel
The setup_bootmem() mainly populates memblocks and does early memory reservations. The right location for this function is mm/init.c. Signed-off-by: Anup Patel Reviewed-by: Christoph Hellwig Reviewed-by: Palmer Dabbelt --- arch/riscv/include/asm/pgtable.h | 1 + arch/riscv/kernel/setup.c

[PATCH v4 6/6] RISC-V: Free-up initrd in free_initrd_mem()

2019-02-12 Thread Anup Patel
We should free-up initrd memory in free_initrd_mem() instead of doing nothing. Signed-off-by: Anup Patel --- arch/riscv/kernel/setup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/riscv/kernel/setup.c b/arch/riscv/kernel/setup.c index 9cd583b6d1cd..c22b873de856

[PATCH v4 1/6] RISC-V: Move free_initrd_mem() to kernel/setup.c

2019-02-12 Thread Anup Patel
We move free_initrd_mem() to kernel/setup.c so that all initrd related functions are in one place. Signed-off-by: Anup Patel Reviewed-by: Christoph Hellwig Reviewed-by: Palmer Dabbelt --- arch/riscv/kernel/setup.c | 4 arch/riscv/mm/init.c | 7 --- 2 files changed, 4

[PATCH v4 0/6] Fixmap support and MM cleanups

2019-02-12 Thread Anup Patel
This patchset does: 1. Moves MM related code from kernel/setup.c to mm/init.c 2. Implements compile-time fixed mappings Using fixed mappings available, we can now get earlyprints even without SBI calls. For example, we can use kernel parameter "earlycon=uart8250,mmio,0x1000" to get early

  1   2   3   4   5   6   7   8   9   10   >