Re: [PATCH] mm: don't show nr_indirectly_reclaimable in /proc/vmstat

2018-04-27 Thread Roman Gushchin
On Fri, Apr 27, 2018 at 11:17:01AM +0200, Vlastimil Babka wrote: > On 04/26/2018 11:55 PM, David Rientjes wrote: > > On Thu, 26 Apr 2018, Michal Hocko wrote: > > > >>> Don't show nr_indirectly_reclaimable in /proc/vmstat, > >>> because there is no need in exporting this vm counter > >>> to the use

Re: [PATCH v4 09/15] memory: tegra: Squash tegra20-mc into common tegra-mc driver

2018-04-27 Thread Dmitry Osipenko
On 27.04.2018 13:24, Thierry Reding wrote: > On Fri, Apr 27, 2018 at 01:13:47PM +0300, Dmitry Osipenko wrote: >> On 27.04.2018 12:34, Thierry Reding wrote: >>> On Mon, Apr 09, 2018 at 10:28:31PM +0300, Dmitry Osipenko wrote: >>> [...] diff --git a/drivers/memory/tegra/mc.c b/drivers/memory/teg

RE: [PATCH 5/5] X86: Hyper-V: Consolidate the allocation of the hypercall input page

2018-04-27 Thread Thomas Gleixner
On Fri, 27 Apr 2018, KY Srinivasan wrote: > > > > -Original Message- > > From: Thomas Gleixner > > Sent: Thursday, April 26, 2018 3:24 PM > > To: KY Srinivasan > > Cc: x...@kernel.org; gre...@linuxfoundation.org; linux- > > ker...@vger.kernel.org; de...@linuxdriverproject.org; o...@aep

[tip:locking/core] locking/qspinlock: Remove duplicate clear_pending() function from PV code

2018-04-27 Thread tip-bot for Will Deacon
Commit-ID: 3bea9adc96842b8a7345c7fb202c16ae9c8d5b25 Gitweb: https://git.kernel.org/tip/3bea9adc96842b8a7345c7fb202c16ae9c8d5b25 Author: Will Deacon AuthorDate: Fri, 27 Apr 2018 10:40:13 +0100 Committer: Ingo Molnar CommitDate: Fri, 27 Apr 2018 12:55:22 +0200 locking/qspinlock: Remove d

Re: [PATCH v8 05/13] ACPI/PPTT: Add Processor Properties Topology Table parsing

2018-04-27 Thread Rafael J. Wysocki
On Thu, Apr 26, 2018 at 1:31 AM, Jeremy Linton wrote: > ACPI 6.2 adds a new table, which describes how processing units > are related to each other in tree like fashion. Caches are > also sprinkled throughout the tree and describe the properties > of the caches in relation to other caches and proc

[PATCH] spi: mpc52xx: Use gpio_is_valid()

2018-04-27 Thread Arvind Yadav
Replace the manual validity checks for the GPIO with the gpio_is_valid(). Signed-off-by: Arvind Yadav --- drivers/spi/spi-mpc52xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-mpc52xx.c b/drivers/spi/spi-mpc52xx.c index e8b59ce..0e55784 100644 --- a/driver

Re: [PATCH v2 1/3] ACPI: improve function documentation for acpi_parse_entries_array()

2018-04-27 Thread Rafael J. Wysocki
On Tue, Apr 24, 2018 at 9:35 PM, Al Stone wrote: > I found the description of the table_size argument to the function > acpi_parse_entries_array() unclear and ambiguous. This is a minor > documentation change to improve that description so I don't misuse > the argument again in the future, and it

[PATCH] video: fbdev: remove unused auo_k190xfb drivers

2018-04-27 Thread Bartlomiej Zolnierkiewicz
auo_k1900fb and auo_k1901fb drivers have been introduced six years ago by following commits: commit 2c8304d3125b ("video: auo_k190x: add code shared by controller drivers") commit 96b1d500e028 ("video: auo_k190x: add driver for AUO-K1900 variant") commit 53027cdf2a67 ("video: auo_k190x: add driver

Re: [PATCH v2 2/3] ACPI: ensure acpi_parse_entries_array() does not access non-existent table data

2018-04-27 Thread Rafael J. Wysocki
On Tue, Apr 24, 2018 at 9:35 PM, Al Stone wrote: > For ACPI tables that have subtables, acpi_parse_entries_array() gets used > to step through each of the subtables in memory. The primary loop for this > was checking that the beginning location of the subtable being examined > plus the length of

Re: [PATCH v6 02/24] soc: qcom: Add APR bus driver

2018-04-27 Thread Mark Brown
On Thu, Apr 26, 2018 at 04:17:40PM -0500, Andy Gross wrote: > I just acked this, so it'd be great if you took it along with the others. If > you don't want to do that, I can just pull it in with my pull requests. > Up to you, That's fine, I'm happy to take it - I just wanted to work out what wa

Re: [PATCH] mm: don't show nr_indirectly_reclaimable in /proc/vmstat

2018-04-27 Thread Vlastimil Babka
On 04/27/2018 12:55 PM, Roman Gushchin wrote: > On Fri, Apr 27, 2018 at 11:17:01AM +0200, Vlastimil Babka wrote: >> On 04/26/2018 11:55 PM, David Rientjes wrote: >>> >>> Implementing this counter as a vmstat doesn't make much sense based on how >>> it's used. Do you have a link to what Vlastimil

Applied "spi: mpc52xx: Use gpio_is_valid()" to the spi tree

2018-04-27 Thread Mark Brown
The patch spi: mpc52xx: Use gpio_is_valid() has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during t

Re: [PATCH 4/4] KVM: arm64: Add support for PUD hugepages at stage 2

2018-04-27 Thread Christoffer Dall
On Fri, Apr 20, 2018 at 03:54:09PM +0100, Punit Agrawal wrote: > KVM only supports PMD hugepages at stage 2. Extend the stage 2 fault > handling to add support for PUD hugepages. > > Addition of pud hugepage support enables additional hugepage > sizes (e.g., 1G with 4K granule) which can be useful

Re: [PATCH 2/4] KVM: arm/arm64: Introduce helpers to manupulate page table entries

2018-04-27 Thread Christoffer Dall
On Fri, Apr 20, 2018 at 03:54:07PM +0100, Punit Agrawal wrote: > Introduce helpers to abstract architectural handling of the conversion > of pfn to page table entries and marking a PMD page table entry as a > block entry. > > The helpers are introduced in preparation for supporting PUD hugepages >

Re: [PATCH 3/4] KVM: arm64: Support dirty page tracking for PUD hugepages

2018-04-27 Thread Christoffer Dall
On Fri, Apr 20, 2018 at 03:54:08PM +0100, Punit Agrawal wrote: > In preparation for creating PUD hugepages at stage 2, add support for > write protecting PUD hugepages when they are encountered. Write > protecting guest tables is used to track dirty pages when migrating > VMs. > > Also, provide tr

Re: [PATCH 1/4] KVM: arm/arm64: Share common code in user_mem_abort()

2018-04-27 Thread Christoffer Dall
On Fri, Apr 20, 2018 at 03:54:06PM +0100, Punit Agrawal wrote: > The code for operations such as marking the pfn as dirty, and > dcache/icache maintenance during stage 2 fault handling is duplicated > between normal pages and PMD hugepages. > > Instead of creating another copy of the operations wh

Re: [PATCH v4 2/5] reset: qcom: AOSS (always on subsystem) reset controller

2018-04-27 Thread Sibi S
Hi Philipp, Thanks for the review. On 04/27/2018 04:11 PM, Philipp Zabel wrote: On Wed, 2018-04-25 at 20:38 +0530, Sibi Sankar wrote: Add reset controller driver for Qualcomm SDM845 SoC to control reset signals provided by AOSS for Modem, Venus ADSP, GPU, Camera, Wireless, Display subsystem S

Re: [PATCH v2 3/3] mailbox: ACPI: erroneous error message when parsing the ACPI PCCT

2018-04-27 Thread Rafael J. Wysocki
On Tue, Apr 24, 2018 at 9:35 PM, Al Stone wrote: > There have been multiple reports of the following error message: > > [0.068293] Error parsing PCC subspaces from PCCT > [cut] > > Tested on my personal laptop which showed the error previously; the > error message no longer appears and the l

Re: [PATCH v1 3/4] mhi_bus: dev: netdev: add network interface driver

2018-04-27 Thread Arnd Bergmann
On Fri, Apr 27, 2018 at 4:23 AM, Sujeev Dias wrote: > MHI based net device driver is used for transferring IP > traffic between host and modem. Driver allows clients to > transfer data using standard network interface. > > Signed-off-by: Sujeev Dias > --- > Documentation/devicetree/bindings/bus/

Re: [PATCH v3 04/15] ARM: dts: dra74x-mmc-iodelay: Add a new pinctrl group for clk line without pullup

2018-04-27 Thread Kishon Vijay Abraham I
Hi Tony, On Wednesday 25 April 2018 07:05 PM, Tony Lindgren wrote: > * Kishon Vijay Abraham I [180425 12:57]: >> --- a/arch/arm/boot/dts/dra74x-mmc-iodelay.dtsi >> +++ b/arch/arm/boot/dts/dra74x-mmc-iodelay.dtsi >> @@ -49,6 +49,17 @@ >> >; >> }; >> >> +mmc1_pins_default_no

Re: [PATCH v3 11/15] ARM: dts: dra7-evm: Add wilink8 wlan support

2018-04-27 Thread Kishon Vijay Abraham I
Hi Rob, On Wednesday 25 April 2018 08:17 PM, Rob Herring wrote: > On Wed, Apr 25, 2018 at 7:54 AM, Kishon Vijay Abraham I wrote: >> From: Hari Nagalla >> >> The wilink module is a combo wireless connectivity sdio >> card based on Texas Instrument's wl18xx solution. It is a >> 4-wire, 1.8V, embed

[PATCH 0/3] fbdev/drm: sh_mobile: remove unused MERAM support

2018-04-27 Thread Bartlomiej Zolnierkiewicz
Hi, This patchset removes unused MERAM support (last user was removed 3 years ago) from shmobile fbdev & drm drivers and then removes MERAM driver itself. If it is okay to merge this patches I would like patch #1 to go through fbdev tree and patch #2 to go through drm tree. Once they are both ups

Re: [PATCH 2/5] X86: Hyper-V: Enable IPI enlightenments

2018-04-27 Thread kbuild test robot
://github.com/0day-ci/linux/commits/kys-linuxonhyperv-com/X86-Hyper-V-APIC-enlightenments/20180427-114416 reproduce: # apt-get install sparse make ARCH=x86_64 allmodconfig make C=1 CF=-D__CHECK_ENDIAN__ sparse warnings: (new ones prefixed by >>) >> arch/x86/hype

[PATCH 2/3] drm: shmobile: remove unused MERAM support

2018-04-27 Thread Bartlomiej Zolnierkiewicz
Since commit a521422ea4ae ("ARM: shmobile: mackerel: Remove Legacy C board code") MERAM functionality is unused. Remove it. Cc: Simon Horman Cc: Laurent Pinchart Cc: Geert Uytterhoeven Signed-off-by: Bartlomiej Zolnierkiewicz --- drivers/gpu/drm/shmobile/Kconfig | 1 - drivers/gpu

[PATCH 1/3] video: fbdev: sh_mobile_lcdcfb: remove unused MERAM support

2018-04-27 Thread Bartlomiej Zolnierkiewicz
Since commit a521422ea4ae ("ARM: shmobile: mackerel: Remove Legacy C board code") MERAM functionality is unused. Remove it. Cc: Simon Horman Cc: Laurent Pinchart Cc: Geert Uytterhoeven Signed-off-by: Bartlomiej Zolnierkiewicz --- drivers/video/fbdev/Kconfig| 1 - drivers/video/f

[PATCH 3/3] video: fbdev: remove unused sh_mobile_meram driver

2018-04-27 Thread Bartlomiej Zolnierkiewicz
Since commit a521422ea4ae ("ARM: shmobile: mackerel: Remove Legacy C board code") MERAM functionality is unused. Remove it. Cc: Simon Horman Cc: Laurent Pinchart Cc: Geert Uytterhoeven Signed-off-by: Bartlomiej Zolnierkiewicz --- drivers/video/fbdev/Kconfig | 12 - drivers/video/f

Re: [PATCH 2/2] sched/fair: Avoid calling sync_entity_load_avg() unnecessarily

2018-04-27 Thread Quentin Perret
Hi Dietmar, On Friday 27 Apr 2018 at 10:30:39 (+0200), Dietmar Eggemann wrote: > Hi Viresh, > > On 04/26/2018 12:30 PM, Viresh Kumar wrote: > > Call sync_entity_load_avg() directly from find_idlest_cpu() instead of > > select_task_rq_fair(), as that's where we need to use task's utilization > > v

Re: [PATCH] Documentation: driver-api: fix device_connection.rst kernel-doc error

2018-04-27 Thread Heikki Krogerus
On Thu, Apr 26, 2018 at 06:29:41PM -0700, Randy Dunlap wrote: > From: Randy Dunlap > > Using incorrect :functions: syntax (extra space) causes an odd kernel-doc > warning, so fix that. > > Documentation/driver-api/device_connection.rst:42: ERROR: Error in > "kernel-doc" directive: > > Signed-o

Re: [PATCH] inode: debugfs_create_dir uses mode permission from parent

2018-04-27 Thread Thomas-Mich Richter
On 04/27/2018 12:06 PM, Greg KH wrote: > On Fri, Apr 27, 2018 at 11:14:26AM +0200, Thomas-Mich Richter wrote: >> On 04/27/2018 10:27 AM, Greg KH wrote: >>> On Fri, Apr 27, 2018 at 10:07:12AM +0200, Thomas Richter wrote: Currently function debugfs_create_dir() creates a new directory in th

[PATCH] ASoC: dai playback and capture active may be greater than 1

2018-04-27 Thread Jerome Brunet
At the moment playback_active and capture_active are using only 1 bit so the maximum active count is 1. However, snd_soc_runtime_activate() may be called several time on the same dai. This happens when a dai is part of several dai_links. It is often the case for "snd-soc-dummy-dai". This is a pro

Re: [PATCH v1 2/4] mhi_bus: controller: MHI support for QCOM modems

2018-04-27 Thread Arnd Bergmann
On Fri, Apr 27, 2018 at 4:23 AM, Sujeev Dias wrote: > QCOM PCIe based modems uses MHI as the communication protocol. > MHI control driver is the bus master for such modems. As the bus > master driver, it oversees power management operations > such as suspend, resume, powering on and off the device

Re: ath6kl: fix ath6kl_data_tx()'s return type

2018-04-27 Thread Kalle Valo
Luc Van Oostenryck wrote: > The method ndo_start_xmit() is defined as returning an 'netdev_tx_t', > which is a typedef for an enum type, but the implementation in this > driver returns an 'int'. > > Fix this by returning 'netdev_tx_t' in this driver too. > > Signed-off-by: Luc Van Oostenryck >

Re: [PATCH v6] fs: dax: Adding new return type vm_fault_t

2018-04-27 Thread Matthew Wilcox
On Fri, Apr 27, 2018 at 10:54:53AM +0530, Souptick Joarder wrote: > > I noticed that we have the following status translation now in 4 places in 2 > > files: > > > > if (err == -ENOMEM) > > return VM_FAULT_OOM; > > if (err < 0 && err != -EBUSY) > > re

Re: [PATCH v1 4/4] mhi_bus: dev: uci: add user space interface driver

2018-04-27 Thread Arnd Bergmann
On Fri, Apr 27, 2018 at 4:23 AM, Sujeev Dias wrote: > This module allows user space clients to transfer data > between external modem and host using standard file > operations. > > Signed-off-by: Sujeev Dias > --- > drivers/bus/mhi/devices/Kconfig | 9 + > drivers/bus/mhi/devices/Makefile |

Re: [PATCH 0/3] fbdev/drm: sh_mobile: remove unused MERAM support

2018-04-27 Thread Laurent Pinchart
Hi Bartlomiej, On Friday, 27 April 2018 14:21:42 EEST Bartlomiej Zolnierkiewicz wrote: > Hi, > > This patchset removes unused MERAM support (last user was removed > 3 years ago) from shmobile fbdev & drm drivers and then removes > MERAM driver itself. > > If it is okay to merge this patches I wo

Re: [next] ath10k: fix spelling mistake: "servive" -> "service"

2018-04-27 Thread Kalle Valo
Colin Ian King wrote: > Trivial fix to spelling mistake in ath10k_warn warning message text > > Signed-off-by: Colin Ian King > Signed-off-by: Kalle Valo Patch applied to ath-next branch of ath.git, thanks. 785281342d0c ath10k: fix spelling mistake: "servive" -> "service" -- https://patchw

Re: [PATCH v2 2/2] x86/mm: implement free pmd/pte page interfaces

2018-04-27 Thread Michal Hocko
On Fri 27-04-18 09:37:20, j...@8bytes.org wrote: [...] > So until we make the generic ioremap code in lib/ioremap.c smarter about > unmapping/remapping ranges the best solution is making my fix work again > by reverting your patch. Could you reuse the same mmu_gather mechanism as we use in the zap

Re: ath10k: sdio: jump to correct label in error handling path

2018-04-27 Thread Kalle Valo
Niklas Cassel wrote: > Jump to the correct label in error handling path. > At this point of execution create_singlethread_workqueue() has succeeded, > so it should be properly destroyed. > > Jump label was renamed in commit ec2c64e20257 ("ath10k: sdio: fix memory > leak for probe allocations").

[PATCH 1/2] media: v4l: Add new 2X8 10-bit grayscale media bus code

2018-04-27 Thread Todor Tomov
The code will be called MEDIA_BUS_FMT_Y10_2X8_PADHI_LE. It is similar to MEDIA_BUS_FMT_SBGGR10_2X8_PADHI_LE but MEDIA_BUS_FMT_Y10_2X8_PADHI_LE describes grayscale data. Signed-off-by: Todor Tomov --- Documentation/media/uapi/v4l/subdev-formats.rst | 72 + include/uapi/lin

[PATCH 0/2] Add new grayscale formats

2018-04-27 Thread Todor Tomov
The following two patches add one new media bus code and one new pixel format. Both are for 10bit grayscale data. They will be used by the future version of the QComm CAMSS driver when receiving the frame data from the OV7251 grayscale camera sensor. Todor Tomov (2): media: v4l: Add new 2X8 10-b

[PATCH 2/2] media: v4l: Add new 10-bit packed grayscale format

2018-04-27 Thread Todor Tomov
The new format will be called V4L2_PIX_FMT_Y10P. It is similar to the V4L2_PIX_FMT_SBGGR10P family formats but V4L2_PIX_FMT_Y10P is a grayscale format. Signed-off-by: Todor Tomov --- Documentation/media/uapi/v4l/pixfmt-y10p.rst | 31 Documentation/media/uapi/v4l/yuv-

[PATCH 2/2] [media] sta2x11: Use gpio_is_valid() and remove unnecessary check

2018-04-27 Thread Arvind Yadav
Replace the manual validity checks for the GPIO with the gpio_is_valid(). In vip_gpio_reserve(), Error checking for gpio pin is not correct. If pwr_pin = -1, It will return 0. This should be return an error. In sta2x11_vip_init_one(), Error checking for gpio 'reset_pin' is unnecessary. Because vi

[PATCH 1/2] [media] platform: Use gpio_is_valid()

2018-04-27 Thread Arvind Yadav
Replace the manual validity checks for the GPIO with the gpio_is_valid(). Signed-off-by: Arvind Yadav --- drivers/media/platform/via-camera.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/via-camera.c b/drivers/media/platform/via-camera.c index e9a02

[PATCH 0/2] Use gpio_is_valid()

2018-04-27 Thread Arvind Yadav
Replace the manual validity checks for the GPIO with the gpio_is_valid(). Arvind Yadav (2): [PATCH 1/2] [media] platform: Use gpio_is_valid() [PATCH 2/2] [media] sta2x11: Use gpio_is_valid() and remove unnecessary check drivers/media/pci/sta2x11/sta2x11_vip.c | 31 +++

Re: [PATCH v2] memcg: writeback: use memcg->cgwb_list directly

2018-04-27 Thread Michal Hocko
On Sun 22-04-18 22:09:33, Wang Long wrote: > mem_cgroup_cgwb_list is a very simple wrapper and it will > never be used outside of code under CONFIG_CGROUP_WRITEBACK. > so use memcg->cgwb_list directly. Thanks for adding the changelog > Reviewed-by: Jan Kara > Signed-off-by: Wang Long Acked-by

Re: [PATCH v2 2/2] x86/mm: implement free pmd/pte page interfaces

2018-04-27 Thread j...@8bytes.org
On Fri, Apr 27, 2018 at 01:39:23PM +0200, Michal Hocko wrote: > On Fri 27-04-18 09:37:20, j...@8bytes.org wrote: > [...] > > So until we make the generic ioremap code in lib/ioremap.c smarter about > > unmapping/remapping ranges the best solution is making my fix work again > > by reverting your pa

Re: [PATCH] inode: debugfs_create_dir uses mode permission from parent

2018-04-27 Thread Greg KH
On Fri, Apr 27, 2018 at 01:30:53PM +0200, Thomas-Mich Richter wrote: > On 04/27/2018 12:06 PM, Greg KH wrote: > > On Fri, Apr 27, 2018 at 11:14:26AM +0200, Thomas-Mich Richter wrote: > >> On 04/27/2018 10:27 AM, Greg KH wrote: > >>> On Fri, Apr 27, 2018 at 10:07:12AM +0200, Thomas Richter wrote: >

[PATCH v5 01/14] mmc: sdhci-omap: Fix when capabilities are obtained from SDHCI_CAPABILITIES reg

2018-04-27 Thread Kishon Vijay Abraham I
sdhci_omap_config_iodelay_pinctrl_state() requires caps and caps2 to be initialized (speed mode capabilities like UHS/HS200) before it is invoked. While mmc_of_parse() initializes caps/caps2 if capabilities is populated in device tree, it will remain uninitialized for capabilities obtained from SDH

[PATCH v5 05/14] mmc: sdhci: Disable 1.8v modes (HS200/HS400/UHS) if controller can't support 1.8v

2018-04-27 Thread Kishon Vijay Abraham I
The SDHCI controller in a SoC might support HS200/HS400 (indicated using mmc-hs200-1_8v/mmc-hs400-1_8v dt property), but if the board is modeled such that the IO lines are not connected to 1.8v then HS200/HS400 cannot be supported. Disable HS200/HS400 if the board does not have 1.8v connected to th

[PATCH v5 13/14] dt-bindings: sdhci-omap: Add pinctrl bindings

2018-04-27 Thread Kishon Vijay Abraham I
Add pinctrl binding rquired to get the mux mode and IODelay values from devicetree. Signed-off-by: Kishon Vijay Abraham I --- Documentation/devicetree/bindings/mmc/sdhci-omap.txt | 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/mmc/sdhci-omap.txt b/Docu

[PATCH v5 14/14] mmc: sdhci-omap: Get IODelay values for 3.3v DDR mode

2018-04-27 Thread Kishon Vijay Abraham I
commit 8d20b2eae6c47b095523 ("mmc: sdhci_omap: Add support to set IODELAY values") stored IODelay values for all MM/SD modes in pinctrl_state structure member of sdhci_omap_host. However for DDR mode it gets IODelay values only for 1.8v DDR mode. Since some of the platforms which uses sdhci-omap ha

[PATCH v5 12/14] mmc: sdhci-omap: Add sdhci_omap specific ops for enable_sdio_irq

2018-04-27 Thread Kishon Vijay Abraham I
Add sdhci_omap_enable_sdio_irq to set CTPL and CLKEXTFREE bits in MMCHS_CON register required to detect asynchronous card interrupt on DAT[1]. Signed-off-by: Kishon Vijay Abraham I Acked-by: Adrian Hunter Acked-by: Tony Lindgren --- drivers/mmc/host/sdhci-omap.c | 19 +++ 1 fil

[PATCH v5 11/14] mmc: sdhci-omap: Add support for MMC/SD controller in k2g SoC

2018-04-27 Thread Kishon Vijay Abraham I
Add support for the new compatible added specifically to support k2g's MMC/SD controller. Signed-off-by: Kishon Vijay Abraham I Acked-by: Adrian Hunter Acked-by: Tony Lindgren --- drivers/mmc/host/sdhci-omap.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/mmc/host/sdhci-omap

[PATCH v5 09/14] mmc: sdhci-omap: Workaround for Errata i834

2018-04-27 Thread Kishon Vijay Abraham I
Errata i834 in AM572x Sitara Processors Silicon Revision 2.0, 1.1 (SPRZ429K July 2014–Revised March 2017 [1]) mentions the maximum obtainable timeout through MMC host controller is 700ms. And for commands taking longer than 700ms, hardware timeout should be disabled and software timeout should be u

[PATCH v5 10/14] dt-bindings: sdhci-omap: Add K2G specific binding

2018-04-27 Thread Kishon Vijay Abraham I
Add binding for the TI's sdhci-omap controller present in K2G. Signed-off-by: Kishon Vijay Abraham I Reviewed-by: Rob Herring Acked-by: Tony Lindgren --- Documentation/devicetree/bindings/mmc/sdhci-omap.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings

[PATCH v5 08/14] mmc: sdhci: Program a relatively accurate SW timeout value

2018-04-27 Thread Kishon Vijay Abraham I
sdhci has a 10 second timeout to catch devices that stop responding. In the case of quirk SDHCI_QUIRK2_DISABLE_HW_TIMEOUT, instead of programming 10 second arbitrary value, calculate the total time it would take for the entire transfer to happen and program the timeout value accordingly. Signed-of

[PATCH v5 07/14] mmc: sdhci: Factor out target_timeout calculation

2018-04-27 Thread Kishon Vijay Abraham I
From: Adrian Hunter Factor out the target_timeout calculation so it can be re-used. Signed-off-by: Adrian Hunter Signed-off-by: Kishon Vijay Abraham I --- drivers/mmc/host/sdhci.c | 48 +--- 1 file changed, 30 insertions(+), 18 deletions(-) diff --git a/dr

[PATCH v5 03/14] mmc: sdhci-omap: Workaround for Errata i843

2018-04-27 Thread Kishon Vijay Abraham I
Errata i843 in AM572x Sitara Processors Silicon Revision 2.0, 1.1 (SPRZ429K July 2014–Revised March 2017 [1]) mentions PG 1.0/1.1 silicon has limitations w.r.t frequencies at which MMC1/2/3 can operate. Use soc_device_match() to identify rev 1.0/1.1 silicon and override mmc->f_max according to the

[PATCH v5 06/14] mmc: sdhci: Add quirk to disable HW timeout

2018-04-27 Thread Kishon Vijay Abraham I
From: Adrian Hunter Add quirk to disable HW timeout if the requested timeout is more than the maximum obtainable timeout. Also, if the quirk is set and ->get_max_timeout_count() is not implemented, max_busy_timeout is set to zero. Based-on-patch-by: Kishon Vijay Abraham I Signed-off-by: Adrian

[PATCH v5 02/14] mmc: sdhci-omap: Remove setting ADMA capability in driver

2018-04-27 Thread Kishon Vijay Abraham I
sdhci can directly get ADMA capability from MMCHS_CAPA register. Remove explicitly setting ADMA here as some instances might not have ADMA enabled. (sdhci_read_caps() is also removed from here since sdhci_setup_host() invokes it). Signed-off-by: Kishon Vijay Abraham I Acked-by: Adrian Hunter Ack

Re: [PATCH 5/5] X86: Hyper-V: Consolidate the allocation of the hypercall input page

2018-04-27 Thread kbuild test robot
://github.com/0day-ci/linux/commits/kys-linuxonhyperv-com/X86-Hyper-V-APIC-enlightenments/20180427-114416 reproduce: # apt-get install sparse make ARCH=x86_64 allmodconfig make C=1 CF=-D__CHECK_ENDIAN__ sparse warnings: (new ones prefixed by >>) >> arch/x86/hyperv

[PATCH v5 00/14] mmc: sdhci-omap: Add UHS/HS200 mode support

2018-04-27 Thread Kishon Vijay Abraham I
Add UHS/HS200 mode support in sdhci-omap. The programming sequence for voltage switching, tuning is followed from AM572x TRM http://www.ti.com/lit/ug/spruhz6j/spruhz6j.pdf (Similar to all AM57x/DRA7x SoCs). The patch series also implements workaround for errata published in http://www.ti.com/lit/er

[PATCH v5 04/14] mmc: sdhci-omap: Invoke sdhci_get_of_property to read sdhci dt properties

2018-04-27 Thread Kishon Vijay Abraham I
Invoke sdhci_get_of_property defined in sdhci-pltfm.c to read sdhci specific properties from dt node. Signed-off-by: Kishon Vijay Abraham I Acked-by: Adrian Hunter Acked-by: Tony Lindgren --- drivers/mmc/host/sdhci-omap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mmc/host/sdh

Re: stable 4.16.5 hmm build error

2018-04-27 Thread Greg Kroah-Hartman
On Fri, Apr 27, 2018 at 10:44:58AM +0200, Arnd Bergmann wrote: > On Fri, Apr 27, 2018 at 10:30 AM, Greg Kroah-Hartman > wrote: > > On Fri, Apr 27, 2018 at 10:17:42AM +0200, Arnd Bergmann wrote: > >> On Fri, Apr 27, 2018 at 9:30 AM, Greg Kroah-Hartman > >> > >> which you backported as 25df8b83e867

Re: [PATCH v2 2/2] x86/mm: implement free pmd/pte page interfaces

2018-04-27 Thread Chintan Pandya
On 4/27/2018 1:07 PM, j...@8bytes.org wrote: On Thu, Apr 26, 2018 at 10:30:14PM +, Kani, Toshi wrote: Thanks for the clarification. After reading through SDM one more time, I agree that we need a TLB purge here. Here is my current understanding. - INVLPG purges both TLB and paging-struc

Re: [PATCH RFC PoC 0/2] platform: different approach to early platform drivers

2018-04-27 Thread Bartosz Golaszewski
2018-04-27 12:18 GMT+02:00 Arnd Bergmann : > On Fri, Apr 27, 2018 at 10:57 AM, Bartosz Golaszewski > wrote: >> 2018-04-27 9:52 GMT+02:00 Arnd Bergmann : >>> On Fri, Apr 27, 2018 at 4:28 AM, David Lechner wrote: On 04/26/2018 12:31 PM, Rich Felker wrote: >> >> We have platforms out there whic

Re: [PATCH v4 2/5] reset: qcom: AOSS (always on subsystem) reset controller

2018-04-27 Thread Philipp Zabel
Hi Sibi, On Fri, 2018-04-27 at 16:45 +0530, Sibi S wrote: [...] > > > + /* Wait 6 32kHz sleep cycles for reset */ > > > + usleep_range(200, 210); > > > > 6 32 kHz cycles are about 188 µs (184 µs for 32.768 kHz). > > Just out of curiosity, is the minimum increased to 200 µs on purpose, or > > to h

Re: [PATCH 2/5] X86: Hyper-V: Enable IPI enlightenments

2018-04-27 Thread kbuild test robot
://github.com/0day-ci/linux/commits/kys-linuxonhyperv-com/X86-Hyper-V-APIC-enlightenments/20180427-114416 config: i386-randconfig-s1-04271426 (attached as .config) compiler: gcc-6 (Debian 6.4.0-9) 6.4.0 20171026 reproduce: # save the attached .config to linux build tree make ARCH=i386 All

Re: [PATCH v2] x86/PCI: Make pci=earlydump output neat

2018-04-27 Thread Ingo Molnar
* Andy Shevchenko wrote: > Currently the early dump of PCI configuration space looks quite unhelpful, > e.g. > > [0.00] 60: > [0.00] 00 > [0.00] 00 > [0.00] 00 > [0.00] 00 > [0.00] 00 > [0.00] 00 > [0.00] 00 > [0.

[PATCH v8 3/9] PCI: endpoint: functions/pci-epf-test: Add second entry

2018-04-27 Thread Gustavo Pimentel
Add a seconds entry on the pci_epf_test_ids structure that disables the linkup_notifier parameter on driver for the DesignWare EP. Allow DesignWare EPs that doesn't have linkup notification signal to work with pcitest. Update the binding documentation accordingly. Signed-off-by: Gustavo Pimentel

[PATCH v8 1/9] bindings: PCI: designware: Example update

2018-04-27 Thread Gustavo Pimentel
Replace "ctrlreg" reg-name by "dbi" to be coherent with similar drivers, however it still be compatible with any previous DT that uses the old reg-name. Replace the PCIe base address example by a real PCIe base address in use. Signed-off-by: Gustavo Pimentel Reviewed-by: Rob Herring --- Changes

[PATCH v8 9/9] PCI: dwc: Replace magic number by defines

2018-04-27 Thread Gustavo Pimentel
Replace magic numbers by a self-explained define to ease human comprehension. Signed-off-by: Gustavo Pimentel Acked-by: Jingoo Han --- Change v1->v2: - Nothing changed, just to follow the patch set version. Change v2->v3: - Nothing changed, just to follow the patch set version. Changes v3->v4:

[PATCH v8 7/9] PCI: dwc: Replace lower into upper case characters

2018-04-27 Thread Gustavo Pimentel
Replace of all initial lowercase character in comments and debug messages to uppercase to maintain coherence. Fix messages coherence within the DesignWare driver. Fix code style on dw_pcie_irq_domain_free() function. Signed-off-by: Gustavo Pimentel Acked-by: Jingoo Han Acked-by: Joao Pinto --

[PATCH v8 0/9] DesignWare EP support and code clean up

2018-04-27 Thread Gustavo Pimentel
Add DesignWare EP support. Increase maximum number of interrupts allow for DesignWare IP controller. Does a code cleanup on DesignWare driver, which involves: - Replacement of magic numbers by a self-explained define to ease human comprehension. - Replacement a division by 2 operation for a rig

[PATCH v8 6/9] PCI: dwc: Define maximum number of vectors

2018-04-27 Thread Gustavo Pimentel
Add a callback to define the maximum number of vectors used by the RC. Since this is a parameter associated to each SoC IP setting, makes sense to be configurable and easily visible to future modifications. Set DesignWare driver vectors number maximum to 256. Signed-off-by: Gustavo Pimentel Ack

[PATCH v8 5/9] misc: pci_endpoint_test: Add DesignWare EP entry

2018-04-27 Thread Gustavo Pimentel
Add the DesignWare EP device ID entry to pci_endpoint_test driver table. Allow the device to be recognize and handle by the pci_endpoint_test driver. Signed-off-by: Gustavo Pimentel Acked-by: Kishon Vijay Abraham I --- Change v1->v2: - Changed device id following Kishon's suggestion. Change v2

[PATCH v8 8/9] PCI: dwc: Small computation improvement

2018-04-27 Thread Gustavo Pimentel
Replace a division by 2 operation for a right shift rotation of 1 bit. Probably any recent and decent compiler does this kind of substitution in order to improve code performance. Nevertheless it's a coding good practice whenever there is a division / multiplication by multiple of 2 to replace it

Re: [PATCH v1 4/4] iommu/tegra: gart: Optimize map/unmap

2018-04-27 Thread Dmitry Osipenko
On 27.04.2018 13:02, Thierry Reding wrote: > On Mon, Apr 09, 2018 at 11:07:22PM +0300, Dmitry Osipenko wrote: >> Currently GART writes one page entry at a time. More optimal would be to >> aggregate the writes and flush BUS buffer in the end, this gives map/unmap >> 10-40% (depending on size of map

[PATCH v8 2/9] PCI: dwc: Add support for EP mode

2018-04-27 Thread Gustavo Pimentel
The PCIe controller dual mode is capable of operating in RC mode as well as EP mode by configuration option. Till now only RC mode was supported, with this patch is add EP support to the DesignWare driver. Signed-off-by: Gustavo Pimentel Acked-by: Kishon Vijay Abraham I --- Change v1->v2: - Rem

[PATCH v8 4/9] bindings: PCI: designware: Add support for EP in DesignWare driver

2018-04-27 Thread Gustavo Pimentel
Add device tree binding documentation for the EP in PCIe DesignWare driver. Signed-off-by: Gustavo Pimentel Reviewed-by: Rob Herring --- Change v1->v2: - Add a missing log description. - Add "snps,dw-pcie" compatible string following Kishon's suggestion. Change v2->v3: - Reverted pcie_ep name

Re: [PATCH v9 00/27] ARM: davinci: convert to common clock framework​

2018-04-27 Thread Bartosz Golaszewski
2018-04-27 2:17 GMT+02:00 David Lechner : > This series converts mach-davinci to use the common clock framework. > > The series works like this, the first 3 patches fix some issues with the clock > drivers that have already been accepted into the mainline kernel. > > Then, starting with "ARM: davin

Re: [PATCH v2] mmc: mediatek: add 64G DRAM DMA support

2018-04-27 Thread Ulf Hansson
On 25 April 2018 at 09:19, Chaotian Jing wrote: > MT2712 MSDC supports 64G DRAM DMA access, it needs update > gpd/bd structure. > > Signed-off-by: Chaotian Jing Thanks, applied for next! Kind regards Uffe > --- > drivers/mmc/host/mtk-sd.c | 56 > +-

Re: [v2 1/1] i2c: dev: prevent ZERO_SIZE_PTR deref in i2cdev_ioctl_rdwr()

2018-04-27 Thread Wolfram Sang
On Thu, Apr 19, 2018 at 03:29:22PM +0300, Alexander Popov wrote: > i2cdev_ioctl_rdwr() allocates i2c_msg.buf using memdup_user(), which > returns ZERO_SIZE_PTR if i2c_msg.len is zero. > > Currently i2cdev_ioctl_rdwr() always dereferences the buf pointer in case > of I2C_M_RD | I2C_M_RECV_LEN trans

Re: [PATCH 0/3] fbdev/drm: sh_mobile: remove unused MERAM support

2018-04-27 Thread Daniel Vetter
On Fri, Apr 27, 2018 at 1:36 PM, Laurent Pinchart wrote: > Hi Bartlomiej, > > On Friday, 27 April 2018 14:21:42 EEST Bartlomiej Zolnierkiewicz wrote: >> Hi, >> >> This patchset removes unused MERAM support (last user was removed >> 3 years ago) from shmobile fbdev & drm drivers and then removes >>

[PATCH v4 01/14] ARM: dts: dra72-evm-common: Remove mmc specific pinmux

2018-04-27 Thread Kishon Vijay Abraham I
mmc specific pinmux is selected from dra72x-mmc-iodelay.dtsi, so remove it from dra72-evm-common.dtsi. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/dra72-evm-common.dtsi | 27 - 1 file changed, 27 deletions(-) diff --git a/arch/arm/boot/dts/dra72-evm-commo

[PATCH v4 06/14] ARM: dts: am574x-idk: Add pinmux configuration for MMC

2018-04-27 Thread Kishon Vijay Abraham I
From: Sekhar Nori Include dra76x-mmc-iodelay.dtsi which has pinmux and IODelay configuration values for the various MMC modes for am574x SoC and use it in the pinctrl properties of MMC devicetree nodes present in am574x-idk.dts. Signed-off-by: Sekhar Nori Signed-off-by: Kishon Vijay Abraham I

Re: recent patch "x86/acpi: Prevent X2APIC id 0xffffffff from being accounted"

2018-04-27 Thread Jan Beulich
>>> On 27.04.18 at 10:32, wrote: > At 04/27/2018 03:21 PM, Jan Beulich wrote: >> I've just stumbled across this commit, and I'm wondering if that's actually >> correct (I too have at least one system where such IDs are reported in >> MADT): For offline/absent CPUs, the firmware may not know the AP

[PATCH v4 13/14] ARM: dts: dra7: Add high speed modes capability to MMC1/MMC2 dt node

2018-04-27 Thread Kishon Vijay Abraham I
While the supported UHS mode can be obtained from CAPA2 register, SD Host Controller Standard Specification doesn't define bits for MMC's HS200 and DDR mode capability. Add properties to indicate MMC HS200 and DDR speed mode capability in dt node. Signed-off-by: Kishon Vijay Abraham I --- arch/a

[PATCH v4 11/14] ARM: dts: dra76-evm: Add wilink8 wlan support

2018-04-27 Thread Kishon Vijay Abraham I
From: Vishal Mahaveer Add support for WLAN using wilink8 module. On dra76-evm, MMC4 is used for connecting to wilink8 module. Signed-off-by: Vishal Mahaveer Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/dra76-evm.dts | 31 +++ 1 file changed, 31 inser

[PATCH v4 08/14] ARM: dts: dra72-evm-common: Add wilink8 wlan support

2018-04-27 Thread Kishon Vijay Abraham I
From: Hari Nagalla Wilink8 module is a combo wireless connectivity card based on Texas Instrument's wl18xx solution. Add support for the wlan capabilities of this module by muxing the relevant mmc lines, and setting the required device-tree data. Signed-off-by: Eyal Reizer Signed-off-by: Hari

[PATCH v4 12/14] ARM: dts: dra7: Use sdhci-omap programming model

2018-04-27 Thread Kishon Vijay Abraham I
Use sdhci-omap programming model based on the generic sdhci library for programming the eMMC/SD/SDIO controller. Signed-off-by: Kishon Vijay Abraham I --- .../boot/dts/am57xx-beagle-x15-common.dtsi| 4 +-- arch/arm/boot/dts/am57xx-beagle-x15.dts | 1 + arch/arm/boot/dts/am57xx-idk-co

[PATCH v4 14/14] Documentation: ARM: Add new MMC requirements for DRA7/K2G

2018-04-27 Thread Kishon Vijay Abraham I
>From 4.18 kernel, all the MMC controller instances in DRA7 are programmed using sdhci based driver (sdhci-omap.c). Document this new requirement here. Both omap2plus_defconfig and multi_v7_defconfig has CONFIG_MMC_SDHCI_OMAP enabled. Signed-off-by: Kishon Vijay Abraham I --- Documentation/arm/O

[PATCH v4 10/14] ARM: dts: dra7-evm: Add wilink8 wlan support

2018-04-27 Thread Kishon Vijay Abraham I
From: Hari Nagalla The wilink module is a combo wireless connectivity sdio card based on Texas Instrument's wl18xx solution. It is a 4-wire, 1.8V, embedded sdio wlan device with an external irq line and is power-controlled by a gpio-based fixed regulator. Add pinmux configuration and IODelay val

[PATCH v4 09/14] ARM: dts: dra7-evm: Model EVM_3V6 regulator

2018-04-27 Thread Kishon Vijay Abraham I
On TI's DRA74x EVM, EVM_3V6 is connected is connected to the VBAT line of the wilink card. Model it here so that it can be used while adding wilink8 WLAN support. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/dra7-evm.dts | 42 ++ 1 file changed, 42

[PATCH v4 07/14] ARM: dts: am57xx-beagle-x15/am57xx-idk: Fix pinctrl-names

2018-04-27 Thread Kishon Vijay Abraham I
The IO lines of MMC2 in am57xx-beagle-x15/am57xx-idk is connected to 3.3v. Use "ddr_3_3v" instead of "ddr_1_8v" to indicate DDR mode works in 3.3v on these boards. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/am571x-idk.dts| 2 +- arch/arm/boot/dts/am572x-idk.dts|

[PATCH v4 05/14] ARM: dts: dra71-evm: Use pinctrl group from dra7-mmc-iodelay.dtsi to select pulldown

2018-04-27 Thread Kishon Vijay Abraham I
commit 0e43884cca77218d2eccc331396e8 ("ARM: dts: dra71-evm: Select pull down for mmc1_clk line in default mode") modified mmc1_pins_default pinctrl group in dra71-evm.dts to change the CLK line to PIN_INPUT_PULLDOWN. However instead of changing the pinctrl group, use the new pinctrl group "mmc1_pin

[PATCH v4 04/14] ARM: dts: am57xx-idk: Use pinctrl group from dra7-mmc-iodelay.dtsi to select pulldown

2018-04-27 Thread Kishon Vijay Abraham I
commit 18aa0f4bca701cb078a6 ("ARM: dts: am57xx-idk: Select pull down for mmc1_clk line in default mode") modified mmc1_pins_default pinctrl group in am57xx-idk-common.dtsi in order to change the CLK line to PIN_INPUT_PULLDOWN. However instead of modifying the pinctrl group, use the new pinctrl grou

[PATCH v4 02/14] ARM: dts: dra71-evm: Add "vqmmc-supply" property for mmc2

2018-04-27 Thread Kishon Vijay Abraham I
Add "vqmmc-supply" property for mmc2 to indicate the supply connected to the IO lines. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/dra71-evm.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/dra71-evm.dts b/arch/arm/boot/dts/dra71-evm.dts index ebc4bbae981

Re: [tip:x86/cleanups] x86/bpf: Clean up non-standard comments, to make the code more readable

2018-04-27 Thread Daniel Borkmann
Hi Ingo, On 04/27/2018 01:00 PM, tip-bot for Ingo Molnar wrote: > Commit-ID: 5f26c50143f58f256535bee8d93a105f36d4d2da > Gitweb: > https://git.kernel.org/tip/5f26c50143f58f256535bee8d93a105f36d4d2da > Author: Ingo Molnar > AuthorDate: Fri, 27 Apr 2018 11:54:40 +0200 > Committer: Ingo Mo

[PATCH v4 00/14] dra7: mmc: Update mmc dt node to use sdhci-omap

2018-04-27 Thread Kishon Vijay Abraham I
Changes from v3: *) Added dra7-mmc-iodelay.dtsi to add a new pinctrl group for clk line without pullup to be used for dra71-evm and am57xx-idk. *) Rename wlcore node name to wifi This series should be merged only after [1]. [1] -> https://marc.info/?l=linux-omap&m=152482966225758&w=2 This seri

<    1   2   3   4   5   6   7   8   9   10   >