Re: [PATCH 1/2] devicetree: watchdog: add binding for Sigma Designs SMP8642 watchdog

2015-10-27 Thread Rob Herring
On Tue, Oct 27, 2015 at 1:34 PM, Mans Rullgard wrote: > This adds a binding for the watchdog in Sigma Designs SMP8642 and > similar devices. > > Signed-off-by: Mans Rullgard Acked-by: Rob Herring > --- > .../devicetree/bindings/watchdog/sigma,8642-wdt.txt| 14 > ++ > 1 fi

Re: [PATCH v2] perf/core: fix RCU issues with cgroup monitoring mode

2015-10-27 Thread Eric Dumazet
On Tue, 2015-10-27 at 20:25 +0100, Stephane Eranian wrote: > This patch eliminates all known RCU violations detected > by the RCU checker (PROVE_RCU). The impact code paths > were all related to cgroup mode monitoring and involved > access a task's cgrp. > > V2 is updated to include suggestions f

Re: [PATCH] namei: permit linking with CAP_FOWNER in userns

2015-10-27 Thread Serge Hallyn
Quoting Dirk Steinmetz (pub...@rsjtdrjgfuzkfg.com): > On Tue, 27 Oct 2015 09:33:44 -0500, Seth Forshee wrote: > > On Tue, Oct 20, 2015 at 04:09:19PM +0200, Dirk Steinmetz wrote: > > > Attempting to hardlink to an unsafe file (e.g. a setuid binary) from > > > within an unprivileged user namespace fa

Re: [PATCH v2 8/9] ARM: dts: Add leds support to STM32F429 Discovery board

2015-10-27 Thread Maxime Coquelin
2015-10-26 14:41 GMT+01:00 Linus Walleij : > On Sat, Oct 17, 2015 at 7:23 PM, Maxime Coquelin > wrote: > >> Signed-off-by: Maxime Coquelin > (...) >> + leds { >> + compatible = "gpio-leds"; >> + red { >> + gpios = <&gpiog 14 0>; >> +

Re: [PATCH v1 3/3] ARM64: dts: rk3368: Add mailbox device nodes

2015-10-27 Thread kbuild test robot
Hi Caesar, [auto build test ERROR on rockchip/for-next -- if it's inappropriate base, please suggest rules for selecting the more suitable base] url: https://github.com/0day-ci/linux/commits/Caesar-Wang/mailbox-rockchip-Add-mailbox-driver-for-Rockchip-platform/20151027-153608 config:

[PATCH] Input: tsc2005 - Add support for tsc2004

2015-10-27 Thread Michael Welling
Adds support for the i2c based tsc2004. Support was added to the tsc2005 driver due to the similarity of the devices. Signed-off-by: Michael Welling --- .../bindings/input/touchscreen/tsc2004.txt | 38 drivers/input/touchscreen/Kconfig | 5 +- drivers/input/touch

Re: ?

2015-10-27 Thread Amall
- Original Message - From: Sent: Tue, 27 Oct 2015 16:25:44 -0400 (EDT) Subject: i need your support -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-

Re: [PATCH v4 0/2] powerpc/512x: add LocalPlus Bus FIFO device driver

2015-10-27 Thread Alexander Popov
On 27.10.2015 05:22, Vinod Koul wrote: > On Thu, Oct 22, 2015 at 01:15:03AM +0300, Alexander Popov wrote: >> On 12.10.2015 00:08, Alexander Popov wrote: >>> This driver for Freescale MPC512x LocalPlus Bus FIFO (called SCLPC >>> in the Reference Manual) allows Direct Memory Access transfers >>> betw

Re: [PATCH v12 2/5] gennvm: Generic NVM manager

2015-10-27 Thread kbuild test robot
Hi Matias, [auto build test ERROR on next-20151022 -- if it's inappropriate base, please suggest rules for selecting the more suitable base] url: https://github.com/0day-ci/linux/commits/Matias-Bj-rling/Support-for-Open-Channel-SSDs/20151027-230440 config: microblaze-allmodconfig (att

[PATCHv7] EDAC, altera: Add Altera L2 Cache and OCRAM EDAC Support

2015-10-27 Thread dinguyen
From: Thor Thayer Adding L2 Cache and On-Chip RAM EDAC support for the Altera SoCs using the EDAC device model. The SDRAM controller is using the Memory Controller model. Each type of ECC is individually configurable. The SDRAM ECC is a separate Kconfig option because: 1) the SDRAM preparation

Re: [PATCH 01/70] cpufreq: interactive: New 'interactive' governor

2015-10-27 Thread kbuild test robot
Hi Mike, [auto build test ERROR on pm/linux-next -- if it's inappropriate base, please suggest rules for selecting the more suitable base] url: https://github.com/0day-ci/linux/commits/B-lint-Czobor/cpufreq-interactive-New-interactive-governor/20151028-020715 config: sparc64-allyesconfig (at

Re: [v3, 3/3] MIPS: VDSO: Add implementations of gettimeofday() and clock_gettime()

2015-10-27 Thread Leonid Yegoshin
On 10/27/2015 07:47 AM, Ralf Baechle wrote: On Thu, Oct 22, 2015 at 06:41:30PM -0700, Leonid Yegoshin wrote: You can not use R4K CP0_count in SMP (multicore) without core-specific adjustment. After first power-saving with core clock off or core down the values in CP0_count in different cores ar

Re: [PATCH] of/fdt: fix error checking for earlycon address

2015-10-27 Thread Rob Herring
On Fri, Oct 23, 2015 at 8:15 AM, Peter Hurley wrote: > Hi Masahiro, > > On 10/23/2015 07:47 AM, Masahiro Yamada wrote: >> fdt_translate_address() returns OF_BAD_ADDR on error. It is defined as >> a u64 value, so the variable "addr" should be defined as u64 as well. > > Good catch. > > I would pre

[PATCH] lkdtm: fix ACCESS_USERSPACE test

2015-10-27 Thread Stephen Smalley
Add a copy_to_user() call to the ACCESS_USERSPACE test prior to attempting direct dereferencing of the user address to ensure the page is present. Otherwise, a fault occurs on arm kernels even prior to the introduction of CONFIG_CPU_SW_DOMAIN_PAN, and there is no difference in behavior for CONFIG_

Re: [PATCH] Input: tsc2005 - Add support for tsc2004

2015-10-27 Thread Michael Welling
On Tue, Oct 27, 2015 at 03:36:43PM -0500, Michael Welling wrote: > Adds support for the i2c based tsc2004. Support was added to the tsc2005 > driver > due to the similarity of the devices. > It should be noted that the new TSC2004 I2C support was tested but I do not have a device with the TSC2005

[PATCH 0/5] Various of SR-IOV fixes and cleanup

2015-10-27 Thread Alexander Duyck
This patch set is meant to address several issues found in recent patches currently in the pci/virtualization branch. The first two patches address possible issues in initialization. Specifically the fact that offset and stride cannot be read while numvfs is 0, and that the BARs need to be reset i

[PATCH 1/5] iov: Update virtfn_max_buses to validate offset and stride

2015-10-27 Thread Alexander Duyck
This patch pulls the validation of offset and stride into virtfn_max_buses. The general idea is to validate offset and stride for each possible value of numvfs in addition to still determining the maximum bus value for the VFs. I also reversed the loop as the most likely maximum will be when numvf

[PATCH 4/5] iov: Variable and loop cleanup for sriov_disable and sriov_enable

2015-10-27 Thread Alexander Duyck
This patch is just a minor cleanup to go through and group all of the variables into one declaration instead of a long string of single declarations for each int. It also changes the direction for a couple loops as we are able to loop with less code this way as testing against 0 can be done as a p

[PATCH 5/5] iov: Update sriov_enable to correctly handle offset and stride

2015-10-27 Thread Alexander Duyck
As per the SR-IOV spec the values for offset and stride are undefined until ARI and numVFs have been set. As such we should not be reading them until the values have been assigned to the hardware. In addition if numVFs is 0 the values for offset and stride are defined as unused. This change corr

[PATCH 2/5] iov: Reset resources to 0 if totalVFs increases after enabling ARI

2015-10-27 Thread Alexander Duyck
This patch forces us to reallocate VF BARs if the totalVFs value has increased after enabling ARI. This normally shouldn't occur, however I have seen some non-spec devices that shift between 7 and some value greater than 7 based on the ARI value and we want to avoid triggering any issues with such

[PATCH 3/5] iov: Fix sriov_enable exception handling path

2015-10-27 Thread Alexander Duyck
>From what I can tell there were several errors in the sriov_enable exception handling path. Below is a brief list of what I believe I am fixing: 1. If pcibios_enable_sriov failed, we returned without disabling SR-IOV on the device. 2. If virtfn_add failed we didn't call pcibios_disable_sri

RE: [PATCH v3 7/7] PCI: hv: New paravirtual PCI front-end for Hyper-V VMs

2015-10-27 Thread Jake Oshins
> -Original Message- > From: Jiang Liu [mailto:jiang@linux.intel.com] > Sent: Tuesday, October 27, 2015 12:11 AM > To: Jake Oshins ; gre...@linuxfoundation.org; KY > Srinivasan ; linux-kernel@vger.kernel.org; > de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; > vkuzn...

Re: [PATCH] clocksource/drivers/tegra: allow timer irq affinity change

2015-10-27 Thread Daniel Lezcano
On 10/27/2015 09:22 PM, Lucas Stach wrote: Am Dienstag, den 27.10.2015, 11:14 +0100 schrieb Daniel Lezcano: On 10/25/2015 04:40 PM, Lucas Stach wrote: Allow the timer core to change the smp affinity of the broadcast timer irq by setting CLOCK_EVT_FEAT_DYNIRQ flag. This reduces interrupt pressu

[GIT PULL] Single blkcg fix for 4.3

2015-10-27 Thread Jens Axboe
Hi Linus, One final fix that should go into 4.3. It's a simple 2x1 liner, fixing a blkcg accounting issue. It was using the wrong bio member to look at the sync and write bits... Please pull! git://git.kernel.dk/linux-block.git for-linus -

[PATCH v8 02/61] PCI: Add pci_find_root_bus_resource()

2015-10-27 Thread Yinghai Lu
Add pci_find_root_bus_resource() to return root bus res for resource. For sparc mem64 support, We need that host bridge window res, 1. we need direct parent for request_resource_conflict() calling in pci_register_legacy_regions(). 2. check if return is NULL to decide if region is valid o

[PATCH v8 14/61] PCI: Add has_mem64 for struct host_bridge

2015-10-27 Thread Yinghai Lu
Add has_mem64 for struct host_bridge, on root bus that does not support mmio64 above 4g, will not set that. We will use that info next two following patches: 1. Don't treat non-pref mmio64 as pref mmio, so will not put it under bridge's pref range when rescan the devices 2. will keep pref mmio6

[PATCH v8 45/61] PCI: Add support for more than two alt_size entries under same bridge

2015-10-27 Thread Yinghai Lu
When we have two bridges under parent bridge, and each child bridge has alt_size, we need to increase parent alt_size to make sure it could fit all alt entries. In the patch, we first select one big size, and then keep reducing the size and retrying to get the minimum value for alt_size. For exam

[PATCH v8 38/61] PCI: Check if resource is allocated before trying to assign one

2015-10-27 Thread Yinghai Lu
In following alt_size support, we will call pci_assign_resource() several times on one resource list, and some resources could have been assigned already. Skip allocated resource in the list, as pci_assign_resource() only can handle not assigned resource. Signed-off-by: Yinghai Lu --- drivers/p

[PATCH v8 28/61] PCI: Optimize bus align/size calculation for optional during sizing

2015-10-27 Thread Yinghai Lu
Current add_align always use max align, that make required+optional to get allocated more than needed in some cases. Now we have new calculate_mem_align(), so we could use it for add_align calculation. Need to create separated list for required+optional align/size info. After that we can get sma

[PATCH v8 25/61] PCI: Reuse res_to_dev_res() in reassign_resources_sorted()

2015-10-27 Thread Yinghai Lu
Now res_to_dev_res() does not print out debug message anymore, so we can reuse it in reassign_resource_sorted() without confusing printout. Signed-off-by: Yinghai Lu --- drivers/pci/setup-bus.c | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/drivers/pci/setup-bus.

[PATCH v8 22/61] PCI: Get new realloc size for bridge for last try

2015-10-27 Thread Yinghai Lu
Current realloc path would not shrink bridge resource through pbus_size_mem() checking with the old size. That cause problem: when "required+optional" resource allocation fails, the cached bridge resource size will prevent "required" resource to get allocated smaller resource. Clear the old resou

[PATCH v8 59/61] PCI: Introduce resource_disabled()

2015-10-27 Thread Yinghai Lu
Current is using !flags, and we are going to use IORESOURCE_DISABLED instead of clearing resource flags. Let's convert all !flags to helper function resource_disabled(). resource_disabled will check !flags and IORESOURCE_DISABLED both. Cc: linux-al...@vger.kernel.org Cc: linux-i...@vger.kernel.or

[PATCH v8 10/61] powerpc/PCI: Add IORESOURCE_MEM_64 for 64-bit resource in OF parsing

2015-10-27 Thread Yinghai Lu
For device resource PREF bit setting under bridge 64-bit pref resource, we need to make sure only set PREF for 64bit resource, so set IORESOUCE_MEM_64 for 64bit resource during of device resource flags parsing. Link: https://bugzilla.kernel.org/show_bug.cgi?id=96261 Link: https://bugzilla.kernel.o

Re: [PATCH 17/70] cpufreq: interactive: take idle notifications only when active

2015-10-27 Thread kbuild test robot
Hi Sam, [auto build test ERROR on pm/linux-next -- if it's inappropriate base, please suggest rules for selecting the more suitable base] url: https://github.com/0day-ci/linux/commits/B-lint-Czobor/cpufreq-interactive-New-interactive-governor/20151028-020715 config: sparc64-allyesconfig (att

[PATCH v8 60/61] PCI: Don't set flags to 0 when assign resource fail

2015-10-27 Thread Yinghai Lu
We want to keep resource flags instead of clearing it after resource allocation fails. Make flags take IORESOURCE_UNSET | IORESOURCE_DISABLED instead. Suggested-by: Bjorn Helgaas Signed-off-by: Yinghai Lu --- drivers/pci/bus.c | 2 +- drivers/pci/setup-bus.c | 45 +++

[PATCH v8 61/61] PCI: Only try to assign io port only for root bus that support it

2015-10-27 Thread Yinghai Lu
The PCI subsystem always assumes that I/O is supported on root bus and tries to assign an I/O window to each child bus even if that is not the case. The use cases is on Intel 8 socket system that have 8 root buses, last two root buses would not have io port resources from _CRS. Check if root bus

[PATCH v8 54/61] resources: Split out __allocate_resource()

2015-10-27 Thread Yinghai Lu
This one is separated from next patch for best fit allocation. Split out __allocate_resource(), and it will not hold lock, so we could use it in other functions that hold the resource lock already. -v2: according to Linus, using "bool lock" as parameter aka "conditionally take lock" is *wron

[PATCH v8 12/61] PCI: Check pref compatible bit for mem64 resource of PCIe device

2015-10-27 Thread Yinghai Lu
We still get "no compatible bridge window" warning on sparc T5-8 after we add support for 64bit resource parsing for root bus. PCI: scan_bus[/pci@300/pci@1/pci@0/pci@6] bus no 8 PCI: Claiming :00:01.0: Resource 15: 8001..8004afff [220c] PCI: Claiming :01:00.0: Resou

[PATCH v8 16/61] PCI: Restore pref MMIO allocation logic for host bridge without mmio64

2015-10-27 Thread Yinghai Lu
>From 5b2854155 (PCI: Restrict 64-bit prefetchable bridge windows to 64-bit resources), we change the logic for pref mmio allocation: When bridge pref support mmio64, we will only put children pref that support mmio64 into it, and will put children pref mmio32 into bridge's non-pref mmio32. That c

[PATCH v8 09/61] powerpc/PCI: Keep resource idx order with bridge register number

2015-10-27 Thread Yinghai Lu
Same as sparc version. Make resource with consistent sequence like other arch or directly from pci_read_bridge_bases(), even non-pref mmio is missing, or out of ordering in firmware reporting. So hold i = 1 for non pref mmio, and i = 2 for pref mmio. Signed-off-by: Yinghai Lu --- arch/powerpc/

[PATCH v2] ASoC: sun4i-codec: use consistent names for PA controls

2015-10-27 Thread Adam Sampson
The power amplifier for the headphone output is called "the PA" and "the headphone amplifier" in Allwinner's documentation for the A10 and A20. sun4i-codec calls it "PA" in some places and "Pre-Amplifier" (which isn't really accurate) in others, leading to user-visible controls with different names

[PATCH v8 40/61] PCI: Move comment to pci_need_to_release()

2015-10-27 Thread Yinghai Lu
Move comment from caller to pci_need_to_release(), as we will have one new caller for alt_size support. Signed-off-by: Yinghai Lu --- drivers/pci/setup-bus.c | 27 +++ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/drivers/pci/setup-bus.c b/drivers/pci/se

[PATCH v8 52/61] PCI: Unify skip_ioresource_align()

2015-10-27 Thread Yinghai Lu
There are powerpc generic version and x86 local version for skip_ioresource_align(). Move the powerpc version to setup-bus.c, and kill x86 local version. Also kill dummy version in microblaze. Cc: Michal Simek Cc: Paul Mackerras Cc: Michael Ellerman Cc: Arnd Bergmann Cc: linuxppc-...@lists.o

Re: [PATCH v2 2/3] lib/string_helpers.c: don't lose precision in string_get_size()

2015-10-27 Thread Rasmus Villemoes
On Tue, Oct 27 2015, Vitaly Kuznetsov wrote: > string_get_size() loses precision when there is a remainder for > blk_size / divisor[units] and size is big enough. E.g > string_get_size(8192, 4096, STRING_UNITS_10, ...) returns "32.7 MB" > while it is supposed to return "33.5 MB". For some artific

[PATCH v8 41/61] PCI: Separate required+optional assigning to another function

2015-10-27 Thread Yinghai Lu
__assign_resources_sorted() is getting too big if we put alt_size support into it. Split out required+optional assigning code to another function. Signed-off-by: Yinghai Lu --- drivers/pci/setup-bus.c | 47 +++ 1 file changed, 27 insertions(+), 20 del

[PATCH v8 56/61] PCI, x86: Allocate from high in available window for MMIO

2015-10-27 Thread Yinghai Lu
Current code just use aligned start from avialable window, that could waste big alignment from start. We can align to the end from avialable window, so will save start with big align to others: like second try for pref mmio after first try already have non-pref assigned. pci tree: -[:00]-+-00

[PATCH v8 19/61] PCI: Set resource to FIXED for LSI devices

2015-10-27 Thread Yinghai Lu
LSI HBA firmware stop responding pci read from host if pci core ever change pci device BAR values. Set their resources to FIXED, so will allow realloc to skip them. Reported-by: Paul Johnson Suggested-by: Bjorn Helgaas Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=92351 Signed-off-by: Y

[PATCH v8 13/61] PCI: Only treat non-pref mmio64 as pref if all bridges have MEM_64

2015-10-27 Thread Yinghai Lu
If any bridge up to root only have 32bit pref mmio, We don't need to treat device non-pref mmio64 as as pref mmio64. We need to move pci_bridge_check_ranges calling early. for parent bridges pref mmio BAR may not allocated by BIOS, res flags is still 0, we need to have it correct set before we che

[PATCH v8 36/61] PCI: Add __add_to_list()

2015-10-27 Thread Yinghai Lu
For alt_size support, we will add more entries to realloc list. Add new __add_to_list() to take alt_size, alt_align. And simplify add_to_list() not to take add/alt input. Signed-off-by: Yinghai Lu --- drivers/pci/setup-bus.c | 51 ++--- 1 file change

Re: [v3, 3/3] MIPS: VDSO: Add implementations of gettimeofday() and clock_gettime()

2015-10-27 Thread David Daney
On 10/27/2015 01:46 PM, Leonid Yegoshin wrote: [...] And finally. clock scaling - what we would do if there are two CPUs with different clock ratios in system? It seems like common kernel timing subsystem can handle that. The code that executes in userspace must have access to a consistent c

[PATCH v8 58/61] PCI, x86: Add pci=assign_pref_bars to reallocate pref BARs

2015-10-27 Thread Yinghai Lu
Now some BIOS tend to allocate pref MMIO under non-pref MMIO, or allocate 64bit pref MMIO under 4G. Add pci=assign_pref_bars to clear and allocate resource to pref BARS. So could reallocate pref mmio64 above 4G and pref under bridges pref BARs. Signed-off-by: Yinghai Lu --- arch/x86/include/asm

[PATCH v8 46/61] PCI: Fix size calculation with old_size on rescan path

2015-10-27 Thread Yinghai Lu
On booting path, we don't pass realloc at first, and treat all optional just as required, in some case we can have smaller size/align with optional than required only. 04:00.0 has children bridges: 05:03.0, 05:04.0 pref layout after booting path like followings: pci :04:00.0: BAR 9: assigne

[PATCH v8 51/61] PCI: Allow bridge optional only io port resource required size to be 0

2015-10-27 Thread Yinghai Lu
When there is no child device under the non hotplug bridge, We can use 0 for required size, and do not use old size as required size. That will save some io port range for other bridges, as BIOS could do some partial assign, and we want to use those not used io port range. When there is child dev

[PATCH v8 47/61] PCI: Don't add too much optional size for hotplug bridge io

2015-10-27 Thread Yinghai Lu
Same as patch for MMIO (PCI: Don't add too much optional size for hotplug bridge MMIO), and this one is for io port. It will compare required+optional with min_sum_size to get smaller optional size. Signed-off-by: Yinghai Lu --- drivers/pci/setup-bus.c | 26 -- 1 file ch

[PATCH v8 49/61] PCI: Don't add too much io port for hotplug bridge with old size

2015-10-27 Thread Yinghai Lu
Now we add too much for hotplug bridge io port. For example, when hotplug bridge has two children bridges, every child bridge will need 0x1000, so size1 will be 0x2000 and size is 0. The min_size for the hotplug bridge is 0x100. with old version calculate_iosize, we get 0x3000 for final size as we

[PATCH v8 55/61] resources: Make allocate_resource() return best fit resource

2015-10-27 Thread Yinghai Lu
Current code just allocate from first avail window. We can find all suitable empty slots and pick one with smallest size, so we could save the big slot for needed ones later when we have several pci bridges under parent bridge and some bridges get assigned from bios and we need to assign others in

Re: [PATCH v7 06/17] Documentation: drm/bridge: add document for analogix_dp

2015-10-27 Thread Heiko Stuebner
Hi Yakir, Am Samstag, 24. Oktober 2015, 11:06:00 schrieb Yakir Yang: > Analogix dp driver is split from exynos dp driver, so we just > make an copy of exynos_dp.txt, and then simplify exynos_dp.txt > > Beside update some exynos dtsi file with the latest change > according to the devicetree bindin

[PATCH v8 57/61] PCI: Add debug print out for min_align and alt_size

2015-10-27 Thread Yinghai Lu
Put all print out for all children align/size and result align/size together. We can print out device name at same time with min_align/alt_size calculation. So we can shut off debug print out from get_res_add_size() and get_res_add_align(). Signed-off-by: Yinghai Lu --- drivers/pci/setup-bus.c

[PATCH v8 42/61] PCI: Skip required+optional if there is no optional

2015-10-27 Thread Yinghai Lu
If the bridge does not support hotplug and has no child with sriov support, We will not have optional resources. We could get out early and don't try required+optional allocation. Also in the loop that update res with optional add info, skip resource that add_size is 0. Signed-off-by: Yinghai Lu

[PATCH v8 48/61] PCI: Move ISA io port align out of calculate_iosize()

2015-10-27 Thread Yinghai Lu
We need to move ISA io port align out of calculate_iosize(), so we could unify calculate_iosize and calculate_memsize later. That extra aligning or offset is to work around ISA devices: When one bridge have several children devices, and every device has several io port resources and resource size

[PATCH v8 35/61] PCI: Simplify res reference using in __assign_resources_sorted()

2015-10-27 Thread Yinghai Lu
There are couples of dev_res->res reference, to make code more readable use res instead of dev_res->res directly. Signed-off-by: Yinghai Lu --- drivers/pci/setup-bus.c | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/drivers/pci/setup-bus.c b

[PATCH v8 24/61] PCI: Cleanup res_to_dev_res() printout

2015-10-27 Thread Yinghai Lu
Now get_res_add_size() and get_res_add_align() all have same printout from res_to_dev_res(), and it is confusing. Move out debug messages printout from res_to_dev_res(), so later we will reuse res_to_dev_res() in other functions. -v2: does not print out when add_size or min_align is 0 -v3: change

[PATCH v8 34/61] PCI: Add debug printout during releasing partial assigned resources

2015-10-27 Thread Yinghai Lu
We try to assign required+optional at first, and we only accept the result if all resources get allocated. Otherwise will release assigned in the list, and try to assign required and expand to optional. We have to do that to make sure any required has priority over any optional. When that happens

[PATCH v8 39/61] PCI: Separate out save_resources()/restore_resources()

2015-10-27 Thread Yinghai Lu
We need to save/restore resources several times for alt_size support, separate the save_resources()/resources() to save some lines later. Signed-off-by: Yinghai Lu --- drivers/pci/setup-bus.c | 49 ++--- 1 file changed, 30 insertions(+), 19 deletions(-

[PATCH v8 31/61] PCI: Remove duplicated code for resource sorting

2015-10-27 Thread Yinghai Lu
Now sort_resources() and pdev_sort_resources() all have sorting code. As we are going to call sort_resources() several places later for alt_size support, so choose to remove related code in pdev_sort_resources(). Signed-off-by: Yinghai Lu --- drivers/pci/setup-bus.c | 22 +++---

[PATCH v8 44/61] PCI: Add alt_size ressource allocation support

2015-10-27 Thread Yinghai Lu
On system with several pcie switches, BIOS allocate very tight resources to the bridge bar, and it is not aligned to min_align as kernel allocation code. For example: 02:03.0---0c:00.0---0d:04.0---18:00.0 18:00.0 need 0x1000, and 0x0001. BIOS only allocate 0x1010 to 0d:04.0 and ab

[PATCH v8 37/61] PCI: Cache window alignment value during bus sizing

2015-10-27 Thread Yinghai Lu
There are several calling to window_alignment(), and we will have more for alt_size support, cache the value instead of keeping on getting it. Signed-off-by: Yinghai Lu --- drivers/pci/setup-bus.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/pci/setup-bus.

[PATCH v8 20/61] PCI: Separate realloc list checking after allocation

2015-10-27 Thread Yinghai Lu
We check the realloc list, as list must be empty after allocation. Separate the realloc list checking to another function. Add checking that is missed in acpiphp driver. -v2: change to WARN_ON according to Rafael. Signed-off-by: Yinghai Lu Cc: "Rafael J. Wysocki" Cc: Len Brown Cc: linux-a...

Re: [PATCH 1/2] efi: use correct type for struct efi_memory_map::phys_map

2015-10-27 Thread Matt Fleming
On Fri, 23 Oct, at 11:48:16AM, Ard Biesheuvel wrote: > We have been getting away with using a void* for the physical > address of the UEFI memory map, since, even on 32-bit platforms > with 64-bit physical addresses, no truncation takes place if the > memory map has been allocated by the firmware (

Re: [PATCH v2] efi: Fix warning of int-to-pointer-cast on x86 32-bit builds

2015-10-27 Thread Matt Fleming
On Tue, 27 Oct, at 11:33:55AM, Ard Biesheuvel wrote: > > Does UEFI even allow that? Even if it can describe memory over 4 GB, > it uses a flat mapping so allocations done by the stub (which > retrieves the memory map) should never reside at addresses over 4 GB. Right, exactly. We're good with phy

[PATCH v8 33/61] PCI: Treat ROM resource as optional during realloc

2015-10-27 Thread Yinghai Lu
Current on realloc path, we just ignore ROM resource if we can not assign them in first try. Treat ROM resources as optional resources,so try to allocate them together with required ones, if can not assign them, could go with other required resources only, and try to allocate them second time in e

[PATCH v8 43/61] PCI: Move saved required resource list out of required+optional assigning

2015-10-27 Thread Yinghai Lu
We will need to share saved required list for alt_size support, so move it out from required+optional assigning. Signed-off-by: Yinghai Lu --- drivers/pci/setup-bus.c | 30 -- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/drivers/pci/setup-bus.c b/dr

[PATCH v8 23/61] PCI: Don't release sibling bridge resources during hotplug

2015-10-27 Thread Yinghai Lu
On hotplug path, we can not touch sibling bridges that is outside of the slot. That could happen when BIOS does not assign some bridge BARs and later kernel can not assign resource to them in first try. Check if fail dev is the parent bridge, then just use subordinate bus instead use parent bus.

[PATCH v8 29/61] PCI: Don't add too much optional size for hotplug bridge MMIO

2015-10-27 Thread Yinghai Lu
Current code will always add 2M for hotplug bridge MMIO even there is child device under it already. For example: 40:03.0 --- 43:00.0 --- 44:02.0 -+- 45:00.0 \- 45:00.1 44:02.0 will need 1M as must for 45:00.0 and 45:00.1 When we calculate add_size

[PATCH v8 26/61] PCI: Use correct align for optional only resources during sorting

2015-10-27 Thread Yinghai Lu
During sorting before assign, we only put resource with non-zero align in the sorted list, so for optional resources that required size is 0 and only have optional parts, we need to have correct align. While treating SRIOV as optional resources, we always read alignment for SRIOV bars every time,

Re: [PATCH 2/2] efi: Fix warning of int-to-pointer-cast on x86 32-bit builds

2015-10-27 Thread Matt Fleming
On Fri, 23 Oct, at 11:48:17AM, Ard Biesheuvel wrote: > From: Taku Izumi > > Commit 0f96a99dab36 ("efi: Add "efi_fake_mem" boot option") > introduces the following warning message: > > drivers/firmware/efi/fake_mem.c:186:20: warning: cast to pointer > from integer of different size [-Wint-to-

[PATCH v8 30/61] PCI: Reorder resources list for required/optional resources

2015-10-27 Thread Yinghai Lu
We try to allocate required+optional before allocate required only and expand with optional. At first we update size and alignment for required+optional resource. And after that we reorder them with new alignment, but current we only do that STARTALIGN ones. For SIZEALIGN type resource, after add

Re: [PATCH v12 2/8] ARM/PCI: remove align_resource in pci_sys_data

2015-10-27 Thread Bjorn Helgaas
[+cc Russell] On Mon, Oct 26, 2015 at 07:35:44PM +0800, Zhou Wang wrote: > From: gabriele paoloni > > This patch is needed in order to unify the PCIe designware framework for ARM > and > ARM64 architectures. In the PCIe designware unification process we are calling > pci_create_root_bus() passi

[PATCH v8 27/61] PCI: Optimize bus min_align/size calculation during sizing

2015-10-27 Thread Yinghai Lu
During bus mmio resource sizing stage, current code try to get alignment as small as possible and use that to align size to get final size. But it does not handle resource that size is bigger than alignment in optimal way, kernel only use max alignment for them. For example: When we have resource

[PATCH v8 18/61] PCI: Claim fixed resource during remove/rescan path

2015-10-27 Thread Yinghai Lu
During driver loading kernel will check if resources get reserved. so we need to make sure resources get reserved before pci_bus_add(). On remove/rescan path, we will leave those fixed resource not reserved. In that path, We don't call pcibios_resource_survery() before pci_assign_unassigned_bus_re

Re: [PATCH 2/2] efi: Fix warning of int-to-pointer-cast on x86 32-bit builds

2015-10-27 Thread Matt Fleming
On Fri, 23 Oct, at 12:33:29PM, Ingo Molnar wrote: > > Matt, do you want to take these fixes, or should I apply them directly? Could you please apply them directly with my Reviewed-by tag? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord

[PATCH v8 17/61] PCI: Don't release fixed resource for realloc

2015-10-27 Thread Yinghai Lu
We should not release bridge resource if there is fixed resources under it, otherwise the children firmware would stop working. Reported-by: Paul Johnson Suggested-by: Bjorn Helgaas Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=92351 Signed-off-by: Yinghai Lu Cc: sta...@vger.kernel.org

[PATCH v8 15/61] PCI: Only treat non-pref mmio64 as pref if host bridge has mmio64

2015-10-27 Thread Yinghai Lu
If host bridge does not have mmio64 above 4G, We don't need to treat device non-pref mmio64 as as pref mmio64. Signed-off-by: Yinghai Lu Tested-by: Khalid Aziz --- drivers/pci/setup-bus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/setup-bus.c b/drivers/pci/s

[PATCH v8 00/61] PCI: Resource allocation cleanup for v4.4

2015-10-27 Thread Yinghai Lu
Hi, After 5b28541552ef (PCI: Restrict 64-bit prefetchable bridge windows to 64-bit resources), we have several reports on resource allocation failure, and we try to fix the problem with resource clip, and find more problems. One is realloc fail with two graphics cards above 4G. One is from sparc

Re: [PATCH v7 09/17] Documentation: drm/bridge: add document for analogix_dp

2015-10-27 Thread Heiko Stuebner
Patch subject should probably be something like: dt-bindings: add document for rockchip variant of analogix_dp or similar, but definitly should mention that it's the Rockchip variant. Am Samstag, 24. Oktober 2015, 11:06:03 schrieb Yakir Yang: > Rockchip DP driver is a helper driver of analogix_

Re: [v3, 3/3] MIPS: VDSO: Add implementations of gettimeofday() and clock_gettime()

2015-10-27 Thread Leonid Yegoshin
On 10/27/2015 02:02 PM, David Daney wrote: On 10/27/2015 01:46 PM, Leonid Yegoshin wrote: [...] And finally. clock scaling - what we would do if there are two CPUs with different clock ratios in system? It seems like common kernel timing subsystem can handle that. The code that executes in u

[PATCH v8 21/61] PCI: Treat optional as required in first try for bridge rescan

2015-10-27 Thread Yinghai Lu
For rescan bridge/bus that children are removed before, we should treat optional as required just like root bus the boot time in 19aa7ee432ce (PCI: make re-allocation try harder by reassigning ranges higher in the heirarchy). The reason: allocate required and expand to optional path do not put fai

[PATCH v8 07/61] PCI: Kill wrong quirk about M7101

2015-10-27 Thread Yinghai Lu
Meelis reported that qla2000 driver does not get loaded on one sparc system. schizo f00732d0: PCI host bridge to bus 0001:00 pci_bus 0001:00: root bus resource [io 0x7fe0100-0x7fe01ff] (bus address [0x-0xff]) pci 0001:00:06.0: quirk: [io 0x7fe01000800-0x7fe0100083f] claimed by a

Re: [PATCH] namei: permit linking with CAP_FOWNER in userns

2015-10-27 Thread Eric W. Biederman
Seth Forshee writes: > On Tue, Oct 20, 2015 at 04:09:19PM +0200, Dirk Steinmetz wrote: >> Attempting to hardlink to an unsafe file (e.g. a setuid binary) from >> within an unprivileged user namespace fails, even if CAP_FOWNER is held >> within the namespace. This may cause various failures, such

Re: [PATCH 4/4] Mark files generated by confdata.c

2015-10-27 Thread Michal Marek
Dne 27.10.2015 v 16:30 Nicholas Mc Guire napsal(a): > scripts/kconfig/confdata.c generates a number of files - indicate the > location of the generator in the file heading to ease reading the sources. > > Signed-off-by: Nicholas Mc Guire > --- > This is no actual code change - compile-testing sh

[PATCH v8 04/61] sparc/PCI: Reserve legacy mmio after PCI mmio

2015-10-27 Thread Yinghai Lu
On one system found bunch of claim resource fail from pci device. pci_sun4v f02b894c: PCI host bridge to bus :00 pci_bus :00: root bus resource [io 0x2007e-0x2007e0fff] (bus address [0x-0xfff]) pci_bus :00: root bus resource [mem 0x2-0x27eff] (b

[PATCH v8 11/61] OF/PCI: Add IORESOURCE_MEM_64 for 64-bit resource

2015-10-27 Thread Yinghai Lu
For device resource PREF bit setting under bridge 64-bit pref resource, we need to make sure only set PREF for 64bit resource, so set IORESOUCE_MEM_64 for 64bit resource during OF device resource flags parsing. Link: https://bugzilla.kernel.org/show_bug.cgi?id=96261 Link: https://bugzilla.kernel.o

[PATCH v8 08/61] PCI: Ignore BAR for ALi M1533 PCI-ISA bridge

2015-10-27 Thread Yinghai Lu
Meelis reported strange conflicts on sparc v210: pci 0001:00:07.0: can't claim BAR 2 [mem 0x7ff-0x7ff000f]: address conflict with 0001:00:07.0 [mem 0x7ff-0x7ff000f] pci 0001:00:06.0: can't claim BAR 0 [io 0x7fe0100-0x7fe010f]: address conflict with 0001:00:07.0 [io

[PATCH v8 05/61] sparc/PCI: Add IORESOURCE_MEM_64 for 64-bit resource in OF parsing

2015-10-27 Thread Yinghai Lu
For device resource PREF bit setting under bridge 64-bit pref resource, we need to make sure only set PREF for 64bit resource, so set IORESOUCE_MEM_64 for 64bit resource during of device resource flags parsing. Link: https://bugzilla.kernel.org/show_bug.cgi?id=96261 Link: https://bugzilla.kernel.o

[PATCH v8 06/61] sparc/PCI: Keep resource idx order with bridge register number

2015-10-27 Thread Yinghai Lu
On one system found strang "no compatible bridge window" warning PCI: Claiming :00:01.0: Resource 14: 00020001..000200010fff [10220c] PCI: Claiming :01:00.0: Resource 1: 00020001..00020001 [100214] pci :01:00.0: can't claim BAR 1 [mem 0x20001-0x200

[PATCH v8 03/61] sparc/PCI: Use correct bus address to resource offset

2015-10-27 Thread Yinghai Lu
After we add 64bit mmio parsing, we got some "no compatible bridge window" warning on anther new model that support 64bit resource. It turns out that we can not use mem_space.start as 64bit mem space offset, aka mem_space.start != offset. Use child_phys_addr to calculate exact offset and recorde

[PATCH v8 01/61] sparc/PCI: Add mem64 resource parsing for root bus

2015-10-27 Thread Yinghai Lu
Found "no compatible bridge window" warning in boot log from T5-8. pci :00:01.0: can't claim BAR 15 [mem 0x1-0x4afff pref]: no compatible bridge window That resource is above 4G, but does not get offset correctly as root bus only report io and mem32. pci_sun4v f02dbcfc: PCI host

Re: [PATCH v12 2/5] gennvm: Generic NVM manager

2015-10-27 Thread kbuild test robot
Hi Matias, [auto build test ERROR on next-20151022 -- if it's inappropriate base, please suggest rules for selecting the more suitable base] url: https://github.com/0day-ci/linux/commits/Matias-Bj-rling/Support-for-Open-Channel-SSDs/20151027-230440 config: i386-allyesconfig (attach

Re: [PATCH 6/6] net: phy: Stop 'phy-state-machine' and 'phy_change' work on remove

2015-10-27 Thread Andrew Lunn
On Tue, Oct 27, 2015 at 08:57:58AM -0700, Florian Fainelli wrote: > (don't top post please) > > On 27/10/15 08:53, Frode Isaksen wrote: > > What will you need in the oops ? I presume you don' want everything or ? > > > > The PHY state machine is not stopped with a PHY disconnect. > > It is stopp

Re: [PATCHv2] Documentation: add new description of path-name lookup.

2015-10-27 Thread J. Bruce Fields
On Mon, Oct 26, 2015 at 03:35:54PM +0900, Neil Brown wrote: > From c38784b876a181eda9a5687e618749157dc96a0e Mon Sep 17 00:00:00 2001 > From: NeilBrown > Date: Sat, 25 Jul 2015 10:24:41 +1000 > Subject: [PATCH] Documentation: add new description of path-name lookup. > > This document is based on t

<    3   4   5   6   7   8   9   10   11   12   >