Re: [PATCH] rtc: s5m: fix to update ctrl register

2015-08-20 Thread Joonyoung Shim
On 08/21/2015 10:21 AM, Krzysztof Kozlowski wrote: > On 21.08.2015 10:00, Joonyoung Shim wrote: >> On 08/21/2015 09:44 AM, Krzysztof Kozlowski wrote: >>> On 21.08.2015 08:15, Alexandre Belloni wrote: Hi, On 13/08/2015 at 17:49:24 +0900, Joonyoung Shim wrote : > According to datas

Re: [PATCH v5 2/2] mm: hugetlb: proc: add HugetlbPages field to /proc/PID/status

2015-08-20 Thread Michal Hocko
On Thu 20-08-15 23:34:51, Naoya Horiguchi wrote: [...] > > Reading a single file is, of course, easier but is it really worth the > > additional code? I haven't really looked at the patch so I might be > > missing something but what would be an advantage over reading > > /proc//smaps and extracting

Kernel 4.1.5 not stable - crashes

2015-08-20 Thread Gerhard Wiesinger
Hello, I'm having big problems with Fedora FC22 kernel 4.1.5 (happened with all tried kernels 4.1.x from FC22) which is not stable at all. At the nightly backup jobs (database dumps, rsync via ssh, etc.) maschine crashes reproduceable at every night with the stack trace below. Message repeats

Re: [PATCH] x86, bitops, variable_test_bit should return 1 not -1 on a match

2015-08-20 Thread Ingo Molnar
* Prarit Bhargava wrote: > This issue was noticed while debugging a CPU hotplug issue. On x86 > with (NR_CPUS > 1) the cpu_online() define is cpumask_test_cpu(). > cpumask_test_cpu() should return 1 if the cpu is set in cpumask and > 0 otherwise. > > However, cpumask_test_cpu() returns -1 if t

Skrzynka Pocztowa Zostala Tymczasowo Zawieszona!!!

2015-08-20 Thread System Admin
Konto e-mail uzytkownika Drogi, Niedawno wykryto nietypowe dzialania z konta e-mail, wiec skrzynka pocztowa zostala tymczasowo zawieszona przez administratora systemu, nalezy odzyskac swoje konto, klikajac na ponizszy link lub skopiuj do przegladarki: http://pocztaadminhelpdeskunite.e

Re: [PATCH V2] perf: x86: Improve accuracy of perf/sched clock

2015-08-20 Thread Adrian Hunter
On 20/08/15 22:31, Thomas Gleixner wrote: > On Wed, 29 Jul 2015, Adrian Hunter wrote: >> @@ -239,6 +239,8 @@ static void set_cyc2ns_scale(unsigned long cpu_khz, int >> cpu) >> unsigned long long tsc_now, ns_now; >> struct cyc2ns_data *data; >> unsigned long flags; >> +u64 mult;

Re: [PATCH 3/8] jump_label: introduce DEFINE_STATIC_KEY_{TRUE,FALSE}_ARRAY macros

2015-08-20 Thread Kevin Hao
On Fri, Aug 21, 2015 at 08:40:59AM +0200, Ingo Molnar wrote: > Please also Cc: peterz and me to the next submission of the series - static > key > (and jump label) changes go through the locking tree normally, and there's a > number of changes pending already for v4.3: Sure. Thanks, Kevin pg

Re: [lkp] [rhashtable] 9d901bc0515: WARNING: CPU: 0 PID: 1 at arch/x86/mm/ioremap.c:63 __ioremap_check_ram+0x6a/0x99()

2015-08-20 Thread Herbert Xu
On Fri, Aug 21, 2015 at 02:05:19PM +0800, kernel test robot wrote: > FYI, we noticed the below changes on > > git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > commit 9d901bc05153bbf33b5da2cd6266865e531f0545 ("rhashtable: Free bucket > tables asynchronously after rehash")

Re: [PATCH 3/8] jump_label: introduce DEFINE_STATIC_KEY_{TRUE,FALSE}_ARRAY macros

2015-08-20 Thread Ingo Molnar
* Kevin Hao wrote: > On Fri, Aug 21, 2015 at 08:28:26AM +0200, Ingo Molnar wrote: > > > > * Kevin Hao wrote: > > > > > These are used to define a static_key_{true,false} array. > > > > > > Signed-off-by: Kevin Hao > > > --- > > > include/linux/jump_label.h | 6 ++ > > > 1 file changed,

Re: [RFC] fbdev/riva:change to use generice function to implement reverse_order()

2015-08-20 Thread Tomi Valkeinen
On 20/08/15 14:30, yalin wang wrote: > >> On Aug 20, 2015, at 19:02, Tomi Valkeinen wrote: >> >> >> On 10/08/15 13:12, yalin wang wrote: >>> This change to use swab32(bitrev32()) to implement reverse_order() >>> function, have better performance on some platforms. >> >> Which platforms? Presumi

[PATCH v4 43/52] OF/PCI: Add IORESOURCE_MEM_64 for 64-bit resource

2015-08-20 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 v4 38/52] PCI: Only treat non-pref mmio64 as pref if host bridge has mmio64

2015-08-20 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 --- drivers/pci/setup-bus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/setup-bus.c b/drivers/pci/setup-bus.c index 9667cbf

[PATCH v4 27/52] PCI: Move ISA io port align out of calculate_iosize()

2015-08-20 Thread Yinghai Lu
We can 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 < 0x

Re: [PATCH 2/5] net: add Hisilicon Network Subsystem hnae framework support

2015-08-20 Thread Kenneth Lee
Thanks, Klimov, You are right. I will fix it in next patches. On Tue, Aug 18, 2015 at 03:12:02AM +0300, Alexey Klimov wrote: > Date: Tue, 18 Aug 2015 03:12:02 +0300 > From: Alexey Klimov > To: Kenneth Lee > CC: robh...@kernel.org, pawel.m...@arm.com, Mark Rutland > , ijc+devicet...@hellion.org

[PATCH v4 04/52] PCI: Optimize bus min_align/size calculation during sizing

2015-08-20 Thread Yinghai Lu
Current code try to get align as small as possible and use that to align final size. But it does not handle resource that size is bigger than align in optimal way, kernel only use max align for them. For example: when we have resources with align/size: 1M/2M, 512M/512M, bus resource min_align/

[PATCH v4 01/52] PCI: Cleanup res_to_dev_res() printout

2015-08-20 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(), and later we will reuse res_to_dev_res() in other functions. Signed-off-by: Yinghai Lu --- drivers/pci/setup-bus.c | 34 +

[PATCH v4 08/52] PCI: Remove duplicated code for resource sorting

2015-08-20 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, so choose to keep sort_resources(), and remove related code in pdev_sort_resources(). Signed-off-by: Yinghai Lu --- drivers/pci/setup-bus.c | 22 +++-

[PATCH v4 05/52] PCI: Optimize bus align/size calculation for optional during sizing

2015-08-20 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, we could use it for add_align calculation. Need to create separated list for required+optional align/size info. After that we can get smaller

Re: [RFC PATCH v6 1/9] mmc: dw_mmc: Add external dma interface support

2015-08-20 Thread Jaehoon Chung
On 08/21/2015 03:30 PM, Shawn Lin wrote: > On 2015/8/21 14:27, Jaehoon Chung wrote: >> Hi, Shawn. >> >> Is this based on Ulf's repository? > > > no, it's based on "https://github.com/jh80chung/dw-mmc.git > tags/dw-mmc-for-ulf-v4.2" :) Oh..I will rebase to Ulf's next branch on this weekend. Then

Re: [PATCH 3/8] jump_label: introduce DEFINE_STATIC_KEY_{TRUE,FALSE}_ARRAY macros

2015-08-20 Thread Kevin Hao
On Fri, Aug 21, 2015 at 08:28:26AM +0200, Ingo Molnar wrote: > > * Kevin Hao wrote: > > > These are used to define a static_key_{true,false} array. > > > > Signed-off-by: Kevin Hao > > --- > > include/linux/jump_label.h | 6 ++ > > 1 file changed, 6 insertions(+) > > > > diff --git a/inc

[PATCH v4 09/52] PCI: Rename pdev_sort_resources() to pdev_assign_resources_prepare()

2015-08-20 Thread Yinghai Lu
pdev_sort_resources() etc was used to check devices resources and put resources that need to assign to one list in sorted order. We don't do sorting in those functions anymore, so change to __assign_resources_prepare() instead. Signed-off-by: Yinghai Lu --- drivers/pci/setup-bus.c | 12 ++--

[PATCH v4 20/52] PCI: Skip required+optional if there is no optional

2015-08-20 Thread Yinghai Lu
If the bridge does not support hotplug and 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 v4 23/52] PCI: Add support for more than two alt_size under same bridge

2015-08-20 Thread Yinghai Lu
When we have two bridges under same 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. Exa

[PATCH v4 00/52] PCI: Resource allocation cleanup for v4.3

2015-08-20 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 get more problems. One is realloc fail with two graphics cards above 4G. One is from sparc t

[PATCH v4 19/52] PCI: Separate required+optional assigning to another function

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

Re: [PATCH v5 1/2] mm: hugetlb: proc: add HugetlbPages field to /proc/PID/smaps

2015-08-20 Thread Michal Hocko
On Thu 20-08-15 23:20:12, Naoya Horiguchi wrote: [...] > From: Naoya Horiguchi > Date: Fri, 21 Aug 2015 08:13:31 +0900 > Subject: [PATCH] Documentation/filesystems/proc.txt: give additional comment > about hugetlb usage > > --- > Documentation/filesystems/proc.txt | 3 ++- > 1 file changed, 2 i

[PATCH v4 16/52] PCI: Check if resource is allocated before trying to assign one

2015-08-20 Thread Yinghai Lu
In following alt_size support, we will call pci_assign_resource() on one resource list several times, 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 v4 32/52] PCI: Kill macro checking for bus io port sizing

2015-08-20 Thread Yinghai Lu
We can use new generic version skip_isa_ioresource_align() instead the old marcro, so kill the marco. Signed-off-by: Yinghai Lu --- drivers/pci/setup-bus.c | 17 +++-- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/drivers/pci/setup-bus.c b/drivers/pci/setup-bus.c ind

Re: [RFC PATCH v6 1/9] mmc: dw_mmc: Add external dma interface support

2015-08-20 Thread Shawn Lin
On 2015/8/21 14:27, Jaehoon Chung wrote: Hi, Shawn. Is this based on Ulf's repository? no, it's based on "https://github.com/jh80chung/dw-mmc.git tags/dw-mmc-for-ulf-v4.2" :) On 08/20/2015 05:43 PM, Shawn Lin wrote: DesignWare MMC Controller can supports two types of DMA mode: external

[PATCH v4 36/52] PCI: Only treat non-pref mmio64 as pref if all bridges have MEM_64

2015-08-20 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

Re: [PATCH v5 2/2] mm: hugetlb: proc: add HugetlbPages field to /proc/PID/status

2015-08-20 Thread Michal Hocko
On Thu 20-08-15 12:49:59, David Rientjes wrote: > On Thu, 20 Aug 2015, Michal Hocko wrote: > > > On Thu 20-08-15 08:26:27, Naoya Horiguchi wrote: > > > Currently there's no easy way to get per-process usage of hugetlb pages, > > > > Is this really the case after your previous patch? You have both

[PATCH v4 15/52] PCI: Cache window alignment value during bus sizing

2015-08-20 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 v4 21/52] PCI: Move saved required resource list out of required+optional assigning

2015-08-20 Thread Yinghai Lu
We will need to share saved required list for alt_size support, so move it out of 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/driv

[PATCH v4 18/52] PCI: Move comment to pci_need_to_release()

2015-08-20 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 v4 25/52] PCI: Fix size calculation with old_size on rescan path

2015-08-20 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 smaller size/align with optional than required only. 04:00.0 has four child bridges: 05:01.0, 05:02.0, 05:03.0, 05:04.0 pref layout after booting path like followings: pci :04:00.0: B

[PATCH v4 39/52] PCI: Restore pref MMIO allocation logic for host bridge without mmio64

2015-08-20 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 v4 10/52] PCI: Treat ROM resource as optional during realloc

2015-08-20 Thread Yinghai Lu
Treat ROM resources as optional resources. will try to allocate them together with required ones, if can not assign them, could go with other required resources only, and just skip ROM resources. Signed-off-by: Yinghai Lu --- drivers/pci/setup-bus.c | 37 - 1

[PATCH v4 47/52] PCI: Don't release fixed resource for realloc

2015-08-20 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 v4 03/52] PCI: Use correct align for optional only resources during sorting

2015-08-20 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, so they are

Re: [PATCH 3/8] jump_label: introduce DEFINE_STATIC_KEY_{TRUE,FALSE}_ARRAY macros

2015-08-20 Thread Ingo Molnar
* Kevin Hao wrote: > These are used to define a static_key_{true,false} array. > > Signed-off-by: Kevin Hao > --- > include/linux/jump_label.h | 6 ++ > 1 file changed, 6 insertions(+) > > diff --git a/include/linux/jump_label.h b/include/linux/jump_label.h > index 7f653e8f6690..5c1d6a49

Re: [RFC PATCH v6 1/9] mmc: dw_mmc: Add external dma interface support

2015-08-20 Thread Jaehoon Chung
Hi, Shawn. Is this based on Ulf's repository? On 08/20/2015 05:43 PM, Shawn Lin wrote: > DesignWare MMC Controller can supports two types of DMA > mode: external dma and internal dma. We get a RK312x platform > integrated dw_mmc and ARM pl330 dma controller. This patch add > edmac ops to support

[PATCH v4 07/52] PCI: Reorder resources list for required/optional resources

2015-08-20 Thread Yinghai Lu
After we update size and alignment for required+optional resource, we reorder them with new alignment, but this is only for STARTALIGN. For SIZEALIGN type resource, after add back add_size, the alignment get changed, so need to do sorting like STARTALIGN type resources. Also we need to reorder th

[PATCH v4 06/52] PCI: Don't add too much optional size for hotplug bridge MMIO

2015-08-20 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 v4 45/52] PCI: Get new realloc size for bridge for last try

2015-08-20 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 v4 24/52] PCI: Better support for two alt_size

2015-08-20 Thread Yinghai Lu
Need to put aligned with max align before not aligned, to get smaller alt_size. For example: alt align/size: 8M/9M, 4M/8M before this patch we have 8M/20M. After this patch we will have 8M/17M. Signed-off-by: Yinghai Lu --- drivers/pci/setup-bus.c | 80 ++

[PATCH v4 28/52] PCI: Don't add too much io port for hotplug bridge with old size

2015-08-20 Thread Yinghai Lu
Now we add too much for hotplug bridge. 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 are usin

[PATCH v4 49/52] PCI: Set resource to FIXED for LSI devices

2015-08-20 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 v4 46/52] PCI: Don't release sibling bridge resources during hotplug

2015-08-20 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 v4 26/52] PCI: Don't add too much optional size for hotplug bridge io

2015-08-20 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 v4 14/52] PCI: Add __add_to_list()

2015-08-20 Thread Yinghai Lu
Add new __add_to_list() to to take alt_size, alt_align for alt_size support. and simplify add_to_list() not to take add/alt input. Signed-off-by: Yinghai Lu --- drivers/pci/setup-bus.c | 51 ++--- 1 file changed, 31 insertions(+), 20 deletions(-) dif

[PATCH v4 40/52] sparc/PCI: Add mem64 resource parsing for root bus

2015-08-20 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

[PATCH v4 11/52] PCI: Add debug printout during releasing partial assigned resources

2015-08-20 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 than any optional. When that happens

[PATCH v4 50/52] PCI, x86: Add pci=assign_pref_bars to reallocate pref BARs

2015-08-20 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 v4 33/52] resources: Split out __allocate_resource()

2015-08-20 Thread Yinghai Lu
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 *wrong*. Signed-off-by: Yinghai Lu Acked-by: Linus Torvalds --- kernel/resource.c | 70 +++

[PATCH v4 37/52] PCI: Add has_mem64 for struct host_bridge

2015-08-20 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 v4 30/52] PCI: Allow bridge optional only io port resource required size to be 0

2015-08-20 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 v4 31/52] PCI: Unify skip_ioresource_align()

2015-08-20 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

[PATCH v4 35/52] PCI: Check pref compatible bit for mem64 resource of PCIe device

2015-08-20 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 v4 51/52] PCI: Introduce resource_disabled()

2015-08-20 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 v4 52/52] PCI: Don't set flags to 0 when assign resource fail

2015-08-20 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 +++

Re: [PATCH] x86/traps: Weaken context tracking entry assertions

2015-08-20 Thread Ingo Molnar
* Andy Lutomirski wrote: > We were asserting that we were all the way in CONTEXT_KERNEL when exception > handlers were called. While having this be true is, I think, a nice goal (or > maybe a variant in which we assert that we're in CONTEXT_KERNEL or some new > IRQ > context), we're not qui

[PATCH v4 41/52] sparc/PCI: Add IORESOURCE_MEM_64 for 64-bit resource in OF parsing

2015-08-20 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 v4 48/52] PCI: Claim fixed resource during remove/rescan path

2015-08-20 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

[PATCH v4 42/52] powerpc/PCI: Add IORESOURCE_MEM_64 for 64-bit resource in OF parsing

2015-08-20 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 v4 34/52] resources: Make allocate_resource() return best fit resource

2015-08-20 Thread Yinghai Lu
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 kernel. For examples: we have window [0xc000, 0xd0

[PATCH v4 17/52] PCI: Separate out save_resources()/restore_resources()

2015-08-20 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 v4 12/52] PCI: Simplify res reference using in __assign_resources_sorted()

2015-08-20 Thread Yinghai Lu
Use res instead of dev_res->res. 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/drivers/pci/setup-bus.c index a3d48ef..9d7adab 100644 --- a/drivers/pci/setup-bu

[PATCH v4 13/52] PCI, acpiphp: Add missing realloc list checking after resource allocation

2015-08-20 Thread Yinghai Lu
We check the realloc list, as list must be empty after allocation. Add missing one acpiphp driver. Signed-off-by: Yinghai Lu Cc: "Rafael J. Wysocki" Cc: Len Brown Cc: linux-a...@vger.kernel.org --- drivers/pci/hotplug/acpiphp_glue.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/

[PATCH v4 02/52] PCI: Reuse res_to_dev_res() in reassign_resources_sorted()

2015-08-20 Thread Yinghai Lu
Now res_to_dev_res() does not print out debug message anymore, so reuse it in reassign_resource_sorted(). 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.c b/drivers/pci/setup-bus.c index

[PATCH 6/6] fix android/sw_sync.c some coding style CHECK issues

2015-08-20 Thread Peng Sun
Signed-off-by: Peng Sun --- drivers/staging/android/sw_sync.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/android/sw_sync.c b/drivers/staging/android/sw_sync.c index c90838d..29b5c35 100644 --- a/drivers/staging/android/sw_sync.c +++ b/drivers/stagin

[PATCH 3/6] fix android/sync.c some coding style issues

2015-08-20 Thread Peng Sun
Signed-off-by: Peng Sun --- drivers/staging/android/sync.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/staging/android/sync.c b/drivers/staging/android/sync.c index f83e00c..e0c1acb 100644 --- a/drivers/staging/android/sync.c +++ b/drivers/

[PATCH 5/6] fix android/timed_gpio.c some coding style CHECK issues

2015-08-20 Thread Peng Sun
Signed-off-by: Peng Sun --- drivers/staging/android/timed_gpio.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/drivers/staging/android/timed_gpio.c b/drivers/staging/android/timed_gpio.c index ce11726..33acbbe 100644 --- a/drivers/staging/android/timed_gpio.

[PATCH 4/6] fix android/sync.h some coding style CHECK issues

2015-08-20 Thread Peng Sun
Signed-off-by: Peng Sun --- drivers/staging/android/sync.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/staging/android/sync.h b/drivers/staging/android/sync.h index 61f8a3a..71fb800 100644 --- a/drivers/staging/android/sync.h +++ b/drivers/staging/android/sync

[PATCH 2/6] fix android/lowmemorykiller.c several coding style

2015-08-20 Thread Peng Sun
Signed-off-by: Peng Sun --- drivers/staging/android/lowmemorykiller.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/staging/android/lowmemorykiller.c b/drivers/staging/android/lowmemorykiller.c index 872bd60..3f1311f 100644 --- a/drivers/staging/android/low

[PATCH 0/6] fix drivers/staging/android some coding style issues

2015-08-20 Thread Peng Sun
patches based on commit f0359ead9129821e4b3b5486e7837d3001a95574 linux-next next-20150820 -- 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-info.html P

[PATCH 1/6] fix android/ashmem.c several coding style

2015-08-20 Thread Peng Sun
Signed-off-by: Peng Sun --- drivers/staging/android/ashmem.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/drivers/staging/android/ashmem.c b/drivers/staging/android/ashmem.c index 60200a3..d786ec1 100644 --- a/drivers/staging/android/ashmem.c +++ b/drivers/s

Re: [RFC 0/2] drm/dsi: DSI for devices with different control bus

2015-08-20 Thread Archit Taneja
On 08/20/2015 05:18 PM, Thierry Reding wrote: On Thu, Aug 20, 2015 at 09:46:14AM +0530, Archit Taneja wrote: Hi Thierry, Lucas, On 08/19/2015 08:32 PM, Thierry Reding wrote: On Wed, Aug 19, 2015 at 04:52:24PM +0200, Lucas Stach wrote: Am Mittwoch, den 19.08.2015, 16:34 +0200 schrieb Thierr

[RFC V2] fbdev/riva:change to use generice function to implement reverse_order()

2015-08-20 Thread yalin wang
This change to use swab32(bitrev32()) to implement reverse_order() function, have better performance on some platforms. Signed-off-by: yalin wang --- drivers/video/fbdev/riva/fbdev.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/video/fbdev/riva/fbdev.c b/dri

Re: [PATCH RESEND] video: fbdev: s3c-fb: Constify platform_device_id

2015-08-20 Thread Tomi Valkeinen
On 21/08/15 04:46, Krzysztof Kozlowski wrote: > On 20.08.2015 18:16, Tomi Valkeinen wrote: >> >> >> On 24/07/15 09:12, Krzysztof Kozlowski wrote: >>> 2015-07-08 13:34 GMT+09:00 Jingoo Han : On 2015. 7. 7., at PM 10:00, Krzysztof Kozlowski wrote: > > The platform_device_id

CONFIG_OF vs DMA_OF

2015-08-20 Thread Kuninori Morimoto
Hi Vinod ${LINUX}/drivers/dma/of-dma.c will be compiled if .config has DMA_OF obj-$(CONFIG_DMA_OF) += of-dma.o But, ${LINUX}/include/linux/of_dma.h is based on CONFIG_OF #ifdef CONFIG_OF extern int of_dma_controller_register(struct device_node *np, ... #

[PATCH v4 5/5] power: wm831x_power: Support USB charger current limit management

2015-08-20 Thread Baolin Wang
Integrate with the newly added USB charger interface to limit the current we draw from the USB input based on the input device configuration identified by the USB stack, allowing us to charge more quickly from high current inputs without drawing more current than specified from others. Signed-off-

[PATCH v4 3/5] gadget: Support for the usb charger framework

2015-08-20 Thread Baolin Wang
For supporting the usb charger, it adds the usb_charger_init() and usb_charger_exit() functions for usb charger initialization and exit. Introduce a callback 'get_charger_type' which will implemented by user for usb gadget operations to get the usb charger type. Signed-off-by: Baolin Wang --- d

[PATCH v4 4/5] gadget: Integrate with the usb gadget supporting for usb charger

2015-08-20 Thread Baolin Wang
When the usb gadget supporting for usb charger is ready, the usb charger should get the type by the 'get_charger_type' callback which is implemented by the usb gadget operations, and get the usb charger pointer from struct 'usb_gadget'. Signed-off-by: Baolin Wang --- drivers/usb/gadget/charger.c

[ANNOUNCE] bcachefs - a general purpose COW filesystem

2015-08-20 Thread Kent Overstreet
For those who haven't kept up with bcache, the bcache codebase has been evolving/metastasizing into a full blown, general purpose posix filesystem - a modern COW filesystem with checksumming, compression, multiple devices, caching, and eventually snapshots and all kinds of other nifty features. "Y

Re: [PATCH v3 02/11] lsm: /proc/$PID/attr/label_map file and getprocattr_seq hook

2015-08-20 Thread Paul Moore
On Fri, Jul 24, 2015 at 6:04 AM, Lukasz Pawelczyk wrote: > This commit adds a new proc attribute, label_map that is required by an > upcoming Smack namespace. In general it can be used to hold a map of > labels, e.g. to be used in namespaces. > > Due to the nature of this file, the standard getpro

Re: [PATCH v3] pinctrl: mediatek: Fix multiple registration issue.

2015-08-20 Thread Axel Lin
2015-08-21 12:46 GMT+08:00 Hongzhou Yang : > Since our common driver need support main chip and PMU > at the same time, that means it will register two > pinctrl device, and the pinctrl_desc structure should > be used two times. > > But pinctrl_desc use global static definition, then > the latest r

Re: [PATCH 2/3] thermal: Add Mediatek thermal controller support

2015-08-20 Thread Sascha Hauer
On Thu, Aug 20, 2015 at 03:20:52PM -0700, Eduardo Valentin wrote: > On Thu, Aug 20, 2015 at 10:06:01AM +0200, Sascha Hauer wrote: > > + > > + /* > > +* These calibration values should finally be provided by the > > +* firmware or fuses. For now use default values. > > +*/ > > + mt->

Re: [PATCH v3 01/11] user_ns: 3 new LSM hooks for user namespace operations

2015-08-20 Thread Paul Moore
On Mon, Aug 3, 2015 at 9:38 PM, Kees Cook wrote: > On Mon, Aug 3, 2015 at 4:34 AM, Lukasz Pawelczyk > wrote: >> On pią, 2015-07-31 at 22:48 -0500, Serge E. Hallyn wrote: >>> On Fri, Jul 31, 2015 at 11:28:56AM +0200, Lukasz Pawelczyk wrote: >>> > On czw, 2015-07-30 at 16:30 -0500, Serge E. Hallyn

[PATCH] x86/traps: Weaken context tracking entry assertions

2015-08-20 Thread Andy Lutomirski
We were asserting that we were all the way in CONTEXT_KERNEL when exception handlers were called. While having this be true is, I think, a nice goal (or maybe a variant in which we assert that we're in CONTEXT_KERNEL or some new IRQ context), we're not quite there. In particular, if an IRQ interr

Re: [PATCH] ARM: Set proper TEXT_OFFSET for IPQ806x

2015-08-20 Thread Varadarajan Narayanan
On Thu, Aug 20, 2015 at 08:54:55PM +0100, Russell King - ARM Linux wrote: > On Thu, Aug 20, 2015 at 12:20:10PM -0500, Andy Gross wrote: > > On Thu, Aug 20, 2015 at 02:00:06PM +0100, Russell King - ARM Linux wrote: > > > On Thu, Aug 20, 2015 at 05:45:41PM +0530, Varadarajan Narayanan wrote: > > > >

[PATCH 3/9] KVM: x86: add pcommit support

2015-08-20 Thread Xiao Guangrong
Pass PCOMMIT CPU feature to guest to enable PCOMMIT instruction Currently we do not catch pcommit instruction for L1 guest and allow L1 to catch this instruction for L2 The specification locates at: https://software.intel.com/sites/default/files/managed/0d/53/319433-022.pdf Signed-off-by: Xiao G

[PATCH 5/9] KVM: VMX: simplify rdtscp handling in vmx_cpuid_update()

2015-08-20 Thread Xiao Guangrong
if vmx_rdtscp_supported() is true SECONDARY_EXEC_RDTSCP must have already been set in current vmcs by vmx_secondary_exec_control() Signed-off-by: Xiao Guangrong --- arch/x86/kvm/vmx.c | 17 - 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/arch/x86/kvm/vmx.c b/arch/

[PATCH 4/9] KVM: VMX: drop rdtscp_enabled check in prepare_vmcs02()

2015-08-20 Thread Xiao Guangrong
SECONDARY_EXEC_RDTSCP set for L2 guest comes from vmcs12 Signed-off-by: Xiao Guangrong --- arch/x86/kvm/vmx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index b526c61..f7a721e 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vm

[PATCH 6/9] KVM: VMX: simplify invpcid handling in vmx_cpuid_update()

2015-08-20 Thread Xiao Guangrong
If vmx_invpcid_supported() is true, second execution control filed must be supported and SECONDARY_EXEC_ENABLE_INVPCID must have already been set in current vmcs by vmx_secondary_exec_control() If vmx_invpcid_supported() is false, no need to clear SECONDARY_EXEC_ENABLE_INVPCID Signed-off-by: Xiao

[PATCH 8/9] KVM: VMX: introduce set_clear_2nd_exec_ctrl()

2015-08-20 Thread Xiao Guangrong
It's used to clean up the code Signed-off-by: Xiao Guangrong --- arch/x86/kvm/vmx.c | 42 +++--- 1 file changed, 19 insertions(+), 23 deletions(-) diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 4f238b7..58f7b89 100644 --- a/arch/x86/kvm/vmx.c +++

[PATCH 7/9] KVM: VMX: unify SECONDARY_VM_EXEC_CONTROL update

2015-08-20 Thread Xiao Guangrong
Unify the update in vmx_cpuid_update() Signed-off-by: Xiao Guangrong --- arch/x86/kvm/vmx.c | 21 +++-- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 0d68140..4f238b7 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kv

[PATCH 9/9] KVM: VMX: drop rdtscp_enabled field

2015-08-20 Thread Xiao Guangrong
Check cpuid bit instead of it Signed-off-by: Xiao Guangrong --- arch/x86/kvm/cpuid.h | 8 arch/x86/kvm/vmx.c | 19 ++- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/arch/x86/kvm/cpuid.h b/arch/x86/kvm/cpuid.h index aed7bfe..d434ee9 100644 --- a/arch

[PATCH 0/9] KVM: x86: enable cflushopt/clwb/pcommit and simplify code

2015-08-20 Thread Xiao Guangrong
This pachset enables clfushopt, clwb and pcommit instructions for guest which are used by NVDIMM. The specification locates at: https://software.intel.com/sites/default/files/managed/0d/53/319433-022.pdf Patch 1 fixes a uninitialized value used in KVM MMU code, patch 2 and patch 3 enable these th

[PATCH 1/9] KVM: MMU: fix use uninitialized value

2015-08-20 Thread Xiao Guangrong
GCC (gcc version 5.1.1 20150618 (Red Hat 5.1.1-4) (GCC)) complains of this warning: arch/x86/kvm//mmu.c:3332:9: warning: ‘leaf’ may be used uninitialized in this function [-Wmaybe-uninitialized] while (root >= leaf) { ^ arch/x86/kvm//mmu.c:3304:12: note: ‘leaf’ was declared here int

[PATCH 2/9] KVM: x86: allow guest to use cflushopt anc clwb

2015-08-20 Thread Xiao Guangrong
Pass its CPU feature to guest to enable them in guest These are needed by nvdimm drivers The specification locates at: https://software.intel.com/sites/default/files/managed/0d/53/319433-022.pdf Signed-off-by: Xiao Guangrong --- arch/x86/kvm/cpuid.c | 2 +- 1 file changed, 1 insertion(+), 1 de

  1   2   3   4   5   6   7   8   >