Re: About the try to remove cross-release feature entirely by Ingo

2018-01-01 Thread Byungchul Park
On 12/30/2017 3:16 PM, Matthew Wilcox wrote: On Fri, Dec 29, 2017 at 04:28:51PM +0900, Byungchul Park wrote: On Thu, Dec 28, 2017 at 10:51:46PM -0500, Theodore Ts'o wrote: On Fri, Dec 29, 2017 at 10:47:36AM +0900, Byungchul Park wrote: (1) The best way: To classify all waiters correctly.

[PATCH 2/3] nvme-pci: change the name of functions corresponding to setup adminq

2018-01-01 Thread Jianchao Wang
No functional change. Just change name of functions corresponding to setup adminq to make it more readable. nvme_pci_configure_admin_queue -> nvme_pci_setup_adminq nvme_alloc_admin_tags -> nvme_pci_start_adminq Signed-off-by: Jianchao Wang --- drivers/nvme/host/pci.c | 8 1 fil

[PATCH 1/3] nvme-pci: add nvme_pci_pre_init

2018-01-01 Thread Jianchao Wang
No fucntional change. Add nvme_pci_pre_init to package the nvme specified initialization work before configuring admin queue. Then nvme_pci_enable and nvme_pci_configure_admin_queue could be clearer. Signed-off-by: Jianchao Wang --- drivers/nvme/host/pci.c | 145 +

Re: [PATCH] x86/xen/time: fix section mismatch for xen_init_time_ops()

2018-01-01 Thread Juergen Gross
On 24/12/17 03:50, Nick Desaulniers wrote: > The header declares this function as __init but is defined in __ref > section. > > Signed-off-by: Nick Desaulniers Reviewed-by: Juergen Gross Juergen

[PATCH v4] crypto: AF_ALG - whitelist mask and type

2018-01-01 Thread Stephan Müller
Hi, sorry, I forgot the right tags. ---8<--- The user space interface allows specifying the type and mask field used to allocate the cipher. Only a subset of the possible flags are intended for user space. Therefore, white-list the allowed flags. In case the user space caller uses at least one

[PATCH v3] crypto: AF_ALG - whitelist mask and type

2018-01-01 Thread Stephan Müller
The user space interface allows specifying the type and mask field used to allocate the cipher. Only a subset of the possible flags are intended for user space. Therefore, white-list the allowed flags. In case the user space caller uses at least one non-allowed flag, EINVAL is returned. Signed-of

Re: [RFC PATCH 1/4] rtc: Introduce one interface to save the RTC hardware time range

2018-01-01 Thread Alexandre Belloni
Hi Baolin, Could you have a look at https://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux.git/commit/?h=rtc-ranges My approach has multiple advantages as it works for 64-bit counters and the range can be updated at runtime. On 02/01/2018 at 13:10:05 +0800, Baolin Wang wrote: > In order

Re: [PATCH -next] tee: shm: make local function __tee_shm_alloc() static

2018-01-01 Thread Jens Wiklander
On Tue, Jan 2, 2018 at 5:09 AM, Wei Yongjun wrote: > Fixes the following sparse warnings: > > drivers/tee/tee_shm.c:115:16: warning: > symbol '__tee_shm_alloc' was not declared. Should it be static? > > Signed-off-by: Wei Yongjun > --- > drivers/tee/tee_shm.c | 6 +++--- > 1 file changed, 3 ins

Re: thermal/drivers/hisi: Remove bogus const from function return type

2018-01-01 Thread Geert Uytterhoeven
Hi Eduardo, On Mon, Jan 1, 2018 at 7:21 PM, Eduardo Valentin wrote: > On Sun, Nov 19, 2017 at 12:04:27PM +0100, Geert Uytterhoeven wrote: >> With gcc-4.1.2: >> >> drivers/thermal/hisi_thermal.c: In function ‘hisi_thermal_probe’: >> drivers/thermal/hisi_thermal.c:530: warning: type qualifi

Re: [PATCH 3/3] md: bitmap: Support circular buffer list.

2018-01-01 Thread Sean Fu
On Tue, Jan 02, 2018 at 02:54:49PM +0800, Sean Fu wrote: > Modify write_page free_buffers and read_page to support circular buffer > list. > > Signed-off-by: Sean Fu > --- > drivers/md/md-bitmap.c | 36 +++- > 1 file changed, 19 insertions(+), 17 deletions(-) > >

Re: [PATCH V3 04/12] perf mmap: introduce perf_mmap__read_done

2018-01-01 Thread Namhyung Kim
Hello, On Thu, Dec 21, 2017 at 10:08:46AM -0800, kan.li...@intel.com wrote: > From: Kan Liang > > The direction of overwrite mode is backward. The last mmap__read_event > will set tail to map->prev. Need to correct the map->prev to head which > is the end of next read. Why do you update the map

[PATCH v2 2/2] clk: qcom: Configure the RCGs to a safe source as needed

2018-01-01 Thread Amit Nischal
For some root clock generators, there could be child branches which are controlled by an entity other than application processor subsystem. For such RCGs, as per application processor subsystem clock driver, all of its downstream clocks are disabled and RCG is in disabled state but in actual downst

[PATCH v2 1/2] clk: qcom: Clear hardware clock control bit of RCG

2018-01-01 Thread Amit Nischal
For upcoming targets like sdm845, POR value of the hardware clock control bit is set for most of root clocks which needs to be cleared for software to be able to control. For older targets like MSM8996, this bit is reserved bit and having POR value as 0 so this patch will work for the older targets

[PATCH v2 0/2] clk: qcom: MISC RCG changes for SDM845

2018-01-01 Thread Amit Nischal
Changes in v2: * Changed usage of clk_hw_is_prepared() to __clk_is_enabled() in clk_rcg2_shared_ops to fix build test error. Changes in v1: This patch series does the miscellaneous changes for RCGs used in SDM845. 1. Clear hardware clock control bit of RCGs where HW clock control bit is set

Re: [PATCH v2 0/4] arm64: defconfig: enable additional led triggers

2018-01-01 Thread Amit Kucheria
On Thu, Dec 21, 2017 at 8:46 PM, Arnd Bergmann wrote: > On Wed, Dec 6, 2017 at 9:57 AM, Amit Kucheria > wrote: >> (Adding Arnd) >> >> Now that the merge window rush has abated, can you please apply this >> trivial series? >> >> On Mon, Nov 6, 2017 at 12:38 PM, Amit Kucheria >> wrote: >>> This

linux-next: Tree for Jan 2

2018-01-01 Thread Stephen Rothwell
Hi all, Changes since 20171222: New tree: iversion The clk tree gained a build failure so I used the version from next-20171222. The vfs tree gained a conflict against Linus' tree The v4l-dvb tree gained conflicts against the vfs tree. The drm tree gained a build failure due to a bad automati

Re: [PATCH v7 3/5] clk: aspeed: Add platform driver and register PLLs

2018-01-01 Thread Benjamin Herrenschmidt
On Fri, 2017-12-22 at 13:15 +1030, Joel Stanley wrote: > This registers a platform driver to set up all of the non-core clocks. > > The clocks that have configurable rates are now registered. > > Reviewed-by: Andrew Jeffery > Signed-off-by: Joel Stanley Reviewed-by: Benjamin Herrenschmidt > -

linux-next: build warning after merge of the akpm-current tree

2018-01-01 Thread Stephen Rothwell
Hi Andrew, After merging the akpm-current tree, today's linux-next build (arm multi_v7_defconfig) produced this warning: WARNING: vmlinux: 'abort' exported twice. Previous export was in vmlinux WARNING: vmlinux: 'abort' exported twice. Previous export was in vmlinux Introduced by commit 3ff67

[PATCH 3/3] md: bitmap: Support circular buffer list.

2018-01-01 Thread Sean Fu
Modify write_page free_buffers and read_page to support circular buffer list. Signed-off-by: Sean Fu --- drivers/md/md-bitmap.c | 36 +++- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/drivers/md/md-bitmap.c b/drivers/md/md-bitmap.c index 239c7bb

[PATCH 0/3] Create circular buffer list for every page instead of linear list.

2018-01-01 Thread Sean Fu
1.Create circular buffer list in alloc_page_buffers. Remove unnecessary traversal in link_dev_buffers to create circular buffer list. Make nobh_write_begin and nobh_write_end to support circular buffer list. 2.fs/ntfs: Make ntfs to support circular buffer list. 3.md: bitmap: Support circular buff

[PATCH 2/3] fs/ntfs: Make ntfs to support circular buffer list.

2018-01-01 Thread Sean Fu
Modify mark_ntfs_record_dirty to support circular buffer list. alloc_page_buffers created circular buffer list. So the circular list linking in ntfs_sync_mft_mirror is unnecessary. Signed-off-by: Sean Fu --- fs/ntfs/aops.c | 6 ++ fs/ntfs/mft.c | 4 2 files changed, 2 insertions(+), 8

[PATCH 1/3] fs: buffer: Create circular buffer list for pages.

2018-01-01 Thread Sean Fu
Make alloc_page_buffers to create circular buffer list instead linear list. Remove unnecessary traversal in link_dev_buffers to create circular buffer list. Make nobh_write_begin and nobh_write_end to support circular buffer list traversal. Signed-off-by: Sean Fu --- fs/buffer.c | 48 +++

Re: [PATCH] Input: misc: Kconfig: fixed a spelling mistake

2018-01-01 Thread Dmitry Torokhov
On Thu, Dec 28, 2017 at 04:30:50PM +0800, Zhuohua Li wrote: > fixed a spelling mistake: buttong -> button > > Signed-off-by: Zhuohua Li Applied, thank you. > --- > drivers/input/misc/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/input/misc/Kconfig b/

[PATCH v6 3/3] fs: fat: add ioctl method in fat filesystem driver

2018-01-01 Thread ChenGuanqiao
Signed-off-by: ChenGuanqiao --- fs/fat/file.c | 150 ++ 1 file changed, 150 insertions(+) diff --git a/fs/fat/file.c b/fs/fat/file.c index 4724cc9ad650..829c91ef1ea0 100644 --- a/fs/fat/file.c +++ b/fs/fat/file.c @@ -15,11 +15,36 @@ #inclu

[PATCH v6 2/3] fs: fat: Add volume label entry method function

2018-01-01 Thread ChenGuanqiao
Signed-off-by: ChenGuanqiao --- fs/fat/dir.c | 62 1 file changed, 62 insertions(+) diff --git a/fs/fat/dir.c b/fs/fat/dir.c index 81cecbe6d7cf..63aab656c08e 100644 --- a/fs/fat/dir.c +++ b/fs/fat/dir.c @@ -881,6 +881,68 @@ static int

Re: [PATCH] f2fs: check segment type before recover data

2018-01-01 Thread Chao Yu
On 2017/12/30 15:42, Yunlong Song wrote: > In some case, the node blocks has wrong blkaddr whose segment type is You mean *data block* has wrong blkaddr whose segment type is NODE? > NODE, e.g., recover inode has missing xattr flag and the blkaddr is in > the xattr range. Since fsck.f2fs does not

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

2018-01-01 Thread Stephen Rothwell
Hi Andrew, Today's linux-next merge of the akpm tree got a conflict in: ipc/mqueue.c between commits: 3ec41d6c2257 ("tidy do_mq_open() up a bit") 946086abeddf ("mqueue: switch to on-demand creation of internal mount") from the vfs tree and patch: "ipc, mqueue: lazy call kern_mount_dat

Re: [PATCH v5 2/3] input: evdev: Replace timeval with timespec64

2018-01-01 Thread Dmitry Torokhov
Hi Deepa, On Sun, Dec 17, 2017 at 09:18:43PM -0800, Deepa Dinamani wrote: > struct timeval is not y2038 safe. > > All references to timeval in the kernel will be replaced > by y2038 safe structures. > Replace all references to timeval with y2038 safe > struct timespec64 here. > > struct input_ev

Re: [PATCH v5 1/3] uinput: Use monotonic times for uinput timestamps.

2018-01-01 Thread Dmitry Torokhov
On Sun, Dec 17, 2017 at 09:18:42PM -0800, Deepa Dinamani wrote: > struct timeval which is part of struct input_event to > maintain the event times is not y2038 safe. > > Real time timestamps are also not ideal for input_event > as this time can go backwards as noted in the patch > a80b83b7b8 by Jo

Re: [PATCH] ACPI / sysfs: fix shift-overflow in GPE flooding quirk mechanism

2018-01-01 Thread Du, Changbin
Hi Wysocki and Brown, May I know wether you have checked this? Thanks! On Fri, Dec 22, 2017 at 11:11:10PM +0800, changbin...@intel.com wrote: > From: Changbin Du > > The ACPI_MASKABLE_GPE_MAX is larger than the number of bits that u64 can > represent. This result in shift-overflow. So actually w

[PATCH v6 0/3] fs: fat: add ioctl to modify fat filesystem partion volume label

2018-01-01 Thread ChenGuanqiao
The FAT filesystem partition volume label can be read with FAT_IOCTL_GET_VOLUME_LABEL and written with FAT_IOCTL_SET_VOLUME_LABEL. FAT volume label (volume name) is exactly same stored in boot sector and root directory. Thus, the boot sector just needs to be upgrade when the label writing. v6: 1.

[PATCH v6 1/3] fs: fat: Add fat filesystem partition volume label in local structure

2018-01-01 Thread ChenGuanqiao
Signed-off-by: ChenGuanqiao --- fs/fat/fat.h | 6 ++ fs/fat/inode.c| 15 --- include/uapi/linux/msdos_fs.h | 2 ++ 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/fs/fat/fat.h b/fs/fat/fat.h index 051dac1ce3be..0b7b635742fc 100644

Re: [PATCH V8 3/3] OPP: Allow "opp-hz" and "opp-microvolt" to contain magic values

2018-01-01 Thread Viresh Kumar
On 02-01-18, 11:35, Rajendra Nayak wrote: > I would want to reiterate what I have been saying for a while, that for these > patches > to be usable on any qualcomm platform completely we need support to associate > multiple power-domains to a single device which is missing today. Sure, but I had t

Re: [f2fs-dev v2] [PATCH 1/2] f2fs: stop checkpoint only from fault injection

2018-01-01 Thread Chao Yu
On 2018/1/1 9:31, Jaegeuk Kim wrote: > We can give another chance to write user data, which can resolve > generic/441. > > Signed-off-by: Jaegeuk Kim Reviewed-by: Chao Yu Thanks,

[PATCH] nvme-pci: fix the timeout case when reset is ongoing

2018-01-01 Thread Jianchao Wang
NVME_CTRL_RESETTING used to indicate the range of nvme initializing strictly in fd634f41(nvme: merge probe_work and reset_work), but it is not now. The NVME_CTRL_RESETTING is set before queue the reset_work, there could be a big gap before the reset work handles the outstanding requests. So when th

Re: [f2fs-dev] [PATCH v3] f2fs: add reserved blocks for root user

2018-01-01 Thread Chao Yu
On 2018/1/1 9:29, Jaegeuk Kim wrote: > This patch allows root to reserve some blocks via mount option. > > "-o reserve_root=N" means N x 4KB-sized blocks for root only. > > Signed-off-by: Jaegeuk Kim > --- > > Change log from v2: > - wrong submission. :P > > fs/f2fs/f2fs.h | 26

[PATCH -next] dm raid: make local symbol raid_sets static

2018-01-01 Thread Wei Yongjun
Fixes the following sparse warning: drivers/md/dm-raid.c:33:1: warning: symbol 'raid_sets' was not declared. Should it be static? Signed-off-by: Wei Yongjun --- drivers/md/dm-raid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/md/dm-raid.c b/drivers/md/dm-raid.c

Re: [PATCH V8 3/3] OPP: Allow "opp-hz" and "opp-microvolt" to contain magic values

2018-01-01 Thread Rajendra Nayak
On 12/28/2017 10:07 AM, Viresh Kumar wrote: > On 27-12-17, 15:54, Rob Herring wrote: >> On Wed, Dec 27, 2017 at 2:56 AM, Viresh Kumar >> wrote: >>> On 26-12-17, 14:29, Rob Herring wrote: On Mon, Dec 18, 2017 at 03:51:30PM +0530, Viresh Kumar wrote: >>> > +On some platforms the exact fr

Re: [alsa-devel] [PATCH 15/27] ALSA: hda - Use timecounter_initialize interface

2018-01-01 Thread Sagar Arun Kamble
On 12/28/2017 10:19 PM, Richard Cochran wrote: On Tue, Dec 26, 2017 at 01:07:35PM +0530, Sagar Arun Kamble wrote: Or can we provide simpler versions for covering some defaults? At least reducing the number of arguments would make things easier. Thought about specifying 1. cyclecounter read f

Re: [PATCH v7 4/5] clk: aspeed: Register gated clocks

2018-01-01 Thread Benjamin Herrenschmidt
On Fri, 2017-12-22 at 13:15 +1030, Joel Stanley wrote: > The majority of the clocks in the system are gates paired with a reset > controller that holds the IP in reset. > > This borrows from clk_hw_register_gate, but registers two 'gates', one > to control the clock enable register and the other t

Re: [PATCH v7 5/5] clk: aspeed: Add reset controller

2018-01-01 Thread Benjamin Herrenschmidt
On Fri, 2017-12-22 at 13:15 +1030, Joel Stanley wrote: > There are some resets that are not associated with gates. These are > represented by a reset controller. > > Reviewed-by: Andrew Jeffery > Signed-off-by: Joel Stanley Reviewed-by: Benjamin Herrenschmidt > --- > v7: > - Rebase on dt-b

Re: [PATCH v7 2/5] clk: aspeed: Register core clocks

2018-01-01 Thread Benjamin Herrenschmidt
On Fri, 2017-12-22 at 13:15 +1030, Joel Stanley wrote: > This registers the core clocks; those which are required to calculate > the rate of the timer peripheral so the system can load a clocksource > driver. > > Reviewed-by: Andrew Jeffery > Signed-off-by: Joel Stanley Reviewed-by: Benjamin He

Re: [PATCH v7 1/5] clk: Add clock driver for ASPEED BMC SoCs

2018-01-01 Thread Benjamin Herrenschmidt
On Fri, 2017-12-22 at 13:15 +1030, Joel Stanley wrote: > This adds the stub of a driver for the ASPEED SoCs. The clocks are > defined and the static registration is set up. > > Reviewed-by: Andrew Jeffery > Signed-off-by: Joel Stanley Reviewed-by: Benjamin Herrenschmidt > --- > v7: > - Rebase

Re: [RESEND PATCH v2 07/15] ASoC: qcom: q6asm: Add support to memory map and unmap

2018-01-01 Thread Bjorn Andersson
On Thu 14 Dec 09:33 PST 2017, srinivas.kandaga...@linaro.org wrote: > From: Srinivas Kandagatla > > This patch adds support to memory map and unmap regions commands in > q6asm module. > > Signed-off-by: Srinivas Kandagatla > --- > sound/soc/qcom/qdsp6/q6asm.c | 343 >

Re: [PATCH v6 4/5] clk: aspeed: Register gated clocks

2018-01-01 Thread Benjamin Herrenschmidt
On Sat, 2017-12-30 at 09:03 +1100, Benjamin Herrenschmidt wrote: > On Tue, 2017-12-26 at 17:32 -0800, Stephen Boyd wrote: > > > I noticed we do have a few i2c based clock drivers... how are they ever > > > supposed to work ? i2c bus controllers are allowed to sleep and the i2c > > > core takes mute

Re: [PATCH v3 14/16] phy: Add notify_speed callback

2018-01-01 Thread Manu Gautam
Hi, On 12/29/2017 11:58 AM, Kishon Vijay Abraham I wrote: > Hi, > > On Friday 29 December 2017 09:54 AM, Manu Gautam wrote: >> Hi, [snip] > > suggest using switch in such case.. and not all PHY drivers do specific > configurations for specific speeds. >> This looks clumsy. >> Where as if bits to

RE: [PATCH 8/9] scsi: bfa: Use zeroing allocator rather than allocator/memset

2018-01-01 Thread Gurumurthy, Anil
-Original Message- From: Himanshu Jha [mailto:himanshujha199...@gmail.com] Sent: 30 December 2017 20:59 To: j...@linux.vnet.ibm.com; martin.peter...@oracle.com; aacr...@adaptec.com Cc: Gurumurthy, Anil ; Kalluru, Sudarsana ; Dept-Eng QLogic Storage Upstream ; satis...@cisco.com; sebad.

RE: [PATCH v8 1/2] tpm_tis: Move ilb_base_addr to tpm_tis_data

2018-01-01 Thread Shaikh, Azhar
>-Original Message- >From: linux-integrity-ow...@vger.kernel.org [mailto:linux-integrity- >ow...@vger.kernel.org] On Behalf Of Shaikh, Azhar >Sent: Monday, January 1, 2018 9:02 PM >To: Jason Gunthorpe >Cc: jarkko.sakki...@linux.intel.com; peterhu...@gmx.de; linux-security- >mod...@vger.k

[PATCH] cpu_cooling: Remove static-power related documentation

2018-01-01 Thread Viresh Kumar
commit 84fe2cab4859 ("cpu_cooling: Drop static-power related stuff") removed support for static-power in kernel, but it missed reflecting the same in documentation. Remove the static power related documentation bits as well. Reported-by: Javi Merino Signed-off-by: Viresh Kumar --- Documentation

[RFC PATCH 3/4] rtc: Add one offset seconds to expand RTC range

2018-01-01 Thread Baolin Wang
>From our investigation for all RTC drivers, 1 driver will be expired before year 2017, 7 drivers will be expired before year 2038, 23 drivers will be expired before year 2069, 72 drivers will be expired before 2100 and 104 drivers will be expired before 2106. Especially for these early expired dri

[RFC PATCH 2/4] rtc: sysfs: Export the valid range supported by RTC hardware

2018-01-01 Thread Baolin Wang
We have introduced one interface to get the RTC range, so this patch exports the valid range supported by RTC hardware to userspace. Signed-off-by: Baolin Wang --- Documentation/rtc.txt |2 ++ drivers/rtc/rtc-sysfs.c | 30 ++ 2 files changed, 32 insertions(+)

[RFC PATCH 1/4] rtc: Introduce one interface to save the RTC hardware time range

2018-01-01 Thread Baolin Wang
In order to the setting time values are not beyond the limitation supported by RTC hardware, we introduce one interface to tell the hardware range to the RTC core, which are used to valid if the setting time values are in the RTC hardware range. Moreover we also need the RTC hardware range to expa

[RFC PATCH 4/4] rtc: sc27xx: Add the get_range interface

2018-01-01 Thread Baolin Wang
Add the get_range interface for sc27xx RTC driver to tell the RTC core what is the valid range for RTC hardware device. Signed-off-by: Baolin Wang --- drivers/rtc/rtc-sc27xx.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/rtc/rtc-sc27xx.c b/drivers/rtc/rtc-sc27xx.c in

RE: [PATCH v8 1/2] tpm_tis: Move ilb_base_addr to tpm_tis_data

2018-01-01 Thread Shaikh, Azhar
>-Original Message- >From: Jason Gunthorpe [mailto:j...@ziepe.ca] >Sent: Monday, January 1, 2018 8:41 PM >To: Shaikh, Azhar >Cc: jarkko.sakki...@linux.intel.com; peterhu...@gmx.de; linux-security- >mod...@vger.kernel.org; linux-integr...@vger.kernel.org; linux- >ker...@vger.kernel.org >S

Re: [RESEND PATCH v2 06/15] ASoC: qcom: qdsp6: Add support to Q6ASM

2018-01-01 Thread Bjorn Andersson
On Thu 14 Dec 09:33 PST 2017, srinivas.kandaga...@linaro.org wrote: > From: Srinivas Kandagatla > > This patch adds basic support to Q6 ASM (Audio Stream Manager) module on > Q6DSP. ASM supports up to 8 concurrent streams. each stream can be setup > as playback/capture. "...streams, each one se

Re: [PATCH 9/9] scsi: bnx2i: Use zeroing allocator rather than allocator/memset

2018-01-01 Thread Rangankar, Manish
On 30/12/17 8:58 PM, "Himanshu Jha" wrote: >Use dma_zalloc_coherent instead of dma_alloc_coherent followed by >memset 0. > >Generated-by: scripts/coccinelle/api/alloc/kzalloc-simple.cocci > >Suggested-by: Luis R. Rodriguez >Signed-off-by: Himanshu Jha >--- > drivers/scsi/bnx2i/bnx2i_hwi.c | 1

Re: [PATCH v8 1/2] tpm_tis: Move ilb_base_addr to tpm_tis_data

2018-01-01 Thread Jason Gunthorpe
On Mon, Jan 01, 2018 at 08:05:43PM -0800, Azhar Shaikh wrote: > - return tpm_chip_register(chip); > + rc = tpm_chip_register(chip); > + if (rc && is_bsw()) > + iounmap(priv->ilb_base_addr); > + > + return rc; > out_err: > tpm_tis_remove(chip); > + if (is_bsw(

Re: [PATCH 3/9] scsi: qedi: Use zeroing allocator instead of allocator/memset

2018-01-01 Thread Rangankar, Manish
On 30/12/17 8:58 PM, "Himanshu Jha" wrote: >Use dma_zalloc_coherent instead of dma_alloc_coherent followed by memset >0. > >Generated-by: scripts/coccinelle/api/alloc/kzalloc-simple.cocci > >Suggested-by: Luis R. Rodriguez >Signed-off-by: Himanshu Jha >--- > drivers/scsi/qedi/qedi_main.c | 42

Re: [PATCH 1/9] scsi: qla4xxx: Use zeroing allocator rather than allocator/memset

2018-01-01 Thread Rangankar, Manish
On 30/12/17 8:58 PM, "Himanshu Jha" wrote: >Use dma_zalloc_coherent instead of dma_alloc_coherent followed by memset >0. > >Generated-by: scripts/coccinelle/api/alloc/kzalloc-simple.cocci > >Suggested-by: Luis R. Rodriguez >Signed-off-by: Himanshu Jha >--- > drivers/scsi/qla4xxx/ql4_init.c |

[PATCH v8 2/2] tpm: Keep CLKRUN enabled throughout the duration of transmit_cmd()

2018-01-01 Thread Azhar Shaikh
Commit 5e572cab92f0bb5 ("tpm: Enable CLKRUN protocol for Braswell systems") disabled CLKRUN protocol during TPM transactions and re-enabled once the transaction is completed. But there were still some corner cases observed where, reading of TPM header failed for savestate command while going to sus

[PATCH v8 0/2] Fix corner cases with disabling CLKRUN in tpm_tis

2018-01-01 Thread Azhar Shaikh
Changes from v1: - Patch 1: "tpm: Keep CLKRUN enabled throughout the duration of transmit_cmd()" - Add NULL checks before calling clk_toggle callback - Use IS_ENABLED instead of ifdef in tpm_tis_clkrun_toggle() - Do not call tpm_platform_begin_xfer() and tpm_platform_end_xfer() from tpm_t

RE: linux-next: build warning after merge of the tpmdd tree

2018-01-01 Thread Shaikh, Azhar
Hi Stephen, Thanks for reporting this. I have uploaded new patchset to tpmdd mailing list. Regards, Azhar Shaikh >-Original Message- >From: Stephen Rothwell [mailto:s...@canb.auug.org.au] >Sent: Monday, January 1, 2018 6:51 PM >To: Jarkko Sakkinen >Cc: Linux-Next Mailing List ; Linux K

[PATCH v8 1/2] tpm_tis: Move ilb_base_addr to tpm_tis_data

2018-01-01 Thread Azhar Shaikh
Move static variable ilb_base_addr to tpm_tis_data. Signed-off-by: Azhar Shaikh Reviewed-by: Jarkko Sakkinen Tested-by: Jarkko Sakkinen Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm_tis.c | 75 +++-- drivers/char/tpm/tpm_tis_core.c | 16 ++

[PATCH -next] tee: shm: make local function __tee_shm_alloc() static

2018-01-01 Thread Wei Yongjun
Fixes the following sparse warnings: drivers/tee/tee_shm.c:115:16: warning: symbol '__tee_shm_alloc' was not declared. Should it be static? Signed-off-by: Wei Yongjun --- drivers/tee/tee_shm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/tee/tee_shm.c b/dri

[PATCH -next] soundwire: Fix typo in return value check of sdw_read()

2018-01-01 Thread Wei Yongjun
Fix the typo, 'status' should be instead of 'status2'. Fixes: b0a9c37b0178 ("soundwire: Add slave status handling") Signed-off-by: Wei Yongjun --- drivers/soundwire/bus.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/soundwire/bus.c b/drivers/soundwire/bu

Re: [PATCH net-next 2/2] tuntap: XDP transmission

2018-01-01 Thread Jason Wang
-tuntap/20180101-105946 config: i386-randconfig-x072-201800 (attached as .config) compiler: gcc-7 (Debian 7.2.0-12) 7.2.1 20171025 reproduce: # save the attached .config to linux build tree make ARCH=i386 All warnings (new ones prefixed by >>): drivers//net/tun.c: In fu

Re: [PATCH v2] f2fs: add an ioctl to disable GC for specific file

2018-01-01 Thread Chao Yu
On 2018/1/1 9:07, Jaegeuk Kim wrote: > On 12/29, Chao Yu wrote: >> On 2017/12/28 11:40, Jaegeuk Kim wrote: >>> This patch gives a flag to disable GC on given file, which would be useful, >>> when >>> user wants to keep its block map. It also conducts in-place-update for >>> dontmove >>> file. >>

Re: [PATCH net-next 2/2] tun: allow to attach ebpf socket filter

2018-01-01 Thread Jason Wang
On 2017年12月31日 18:14, Willem de Bruijn wrote: On Fri, Dec 29, 2017 at 3:44 AM, Jason Wang wrote: This patch allows userspace to attach eBPF filter to tun. This will allow to implement VM dataplane filtering in a more efficient way compared to cBPF filter. Is the idea to allow the trusted hyp

Re: [PATCH V1 3/4] usb: serial: f81534: add output pin control

2018-01-01 Thread Ji-Ze Hong (Peter Hong)
Hi Johan, In this code, I'm only read/write 3 registers of 0x2ae8, 0x2a90, 0x2a80, but some register will read/write more than once. Should I change the code from port_probe() to attach() and re-write it as: 1: read the 3 register 2: change them will 12 pin desire value 3

RE: [PATCH] drm/ttm: optimize errors checking and free _manager when finishing

2018-01-01 Thread He, Roger
-Original Message- From: Xiongwei Song [mailto:sxwj...@gmail.com] Sent: Sunday, December 31, 2017 7:40 PM To: Koenig, Christian ; He, Roger ; airl...@linux.ie Cc: dri-de...@lists.freedesktop.org; linux-kernel@vger.kernel.org Subject: [PATCH] drm/ttm: optimize errors checking and free _m

Re: [PATCH net-next 2/2] tuntap: XDP transmission

2018-01-01 Thread Jason Wang
On 2017年12月29日 20:32, Jesper Dangaard Brouer wrote: On Fri, 29 Dec 2017 18:00:04 +0800 Jason Wang wrote: This patch implements XDP transmission for TAP. Since we can't create new queues for TAP during XDP set, exist ptr_ring was reused for queuing XDP buffers. To differ xdp_buff from sk_buff

Re: ACPI issues on cold power on [bisected]

2018-01-01 Thread Joonsoo Kim
On Fri, Dec 29, 2017 at 04:36:59PM +, Jonathan McDowell wrote: > On Fri, Dec 22, 2017 at 09:21:09AM +0900, Joonsoo Kim wrote: > > On Fri, Dec 08, 2017 at 03:11:59PM +, Jonathan McDowell wrote: > > > I've been sitting on this for a while and should have spent time to > > > investigate sooner

linux-next: build warning after merge of the tpmdd tree

2018-01-01 Thread Stephen Rothwell
Hi Jarkko, After merging the tpmdd tree, today's linux-next build (x86_64 allmodconfig) produced this warning: drivers/char/tpm/tpm_tis.c: In function 'tpm_tis_pnp_remove': drivers/char/tpm/tpm_tis.c:274:23: warning: unused variable 'priv' [-Wunused-variable] struct tpm_tis_data *priv = dev_ge

linux-next: manual merge of the integrity tree with the iversion tree

2018-01-01 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the integrity tree got a conflict in: security/integrity/ima/ima_main.c between commits: ac0bf025d2c0 ("ima: Use i_version only when filesystem supports it") 57fe39d33423 ("IMA: switch IMA over to new i_version API") from the iversion tree and commit:

[PATCH] Bluetooth: btusb: Add support for 0cf3:e010

2018-01-01 Thread AceLan Kao
Device 0cf3:e010 is one of the QCA ROME family. T: Bus=01 Lev=01 Prnt=01 Port=13 Cnt=03 Dev#= 4 Spd=12 MxCh= 0 D: Ver= 2.01 Cls=e0(wlcon) Sub=01 Prot=01 MxPS=64 #Cfgs= 1 P: Vendor=0cf3 ProdID=e010 Rev=00.01 C: #Ifs= 2 Cfg#= 1 Atr=e0 MxPwr=100mA I: If#= 0 Alt= 0 #EPs= 3 Cls=e0(wlcon) Sub=01

Re: [patch V5 01/11] Documentation: Add license-rules.rst to describe how to properly identify file licenses

2018-01-01 Thread Andreas Dilger
On Dec 29, 2017, at 9:15 PM, Theodore Ts'o wrote: > > On Fri, Dec 29, 2017 at 11:17:54PM +0100, Philippe Ombredanne wrote: >>> As far as I know, none of the licenses explicitly say >>> copyright license must be on each file. Just that the distribution of >>> source must include the copyright and

Re: [PATCHv2 1/8] MIPS: Loongson64: cleanup all cs5536 files to use SPDX Identifier

2018-01-01 Thread Huacai Chen
Zhangjin Wu (wuzhang...@gmail.com) is the original author, I hope he can give a signed-off. I can only give an ack. Huacai On Sun, Dec 31, 2017 at 9:54 PM, Philippe Ombredanne wrote: > On Sun, Dec 31, 2017 at 2:14 PM, Jiaxun Yang wrote: >> On 2017-12-31 Sun 12:17 +0100,Philippe Ombredanne wrote

[PATCH 2/2] phy: rockchip-emmc: use regmap_read_poll_timeout to poll dllrdy

2018-01-01 Thread Shawn Lin
Just use the API instead of open-coding it, no functional change intended. Signed-off-by: Shawn Lin --- drivers/phy/rockchip/phy-rockchip-emmc.c | 21 +++-- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/drivers/phy/rockchip/phy-rockchip-emmc.c b/drivers/phy/roc

Re: [PATCH v5 7/9] arm64: Topology, rename cluster_id

2018-01-01 Thread Xiongfeng Wang
Hi, On 2017/12/18 20:42, Morten Rasmussen wrote: > On Fri, Dec 15, 2017 at 10:36:35AM -0600, Jeremy Linton wrote: >> Hi, >> >> On 12/13/2017 12:02 PM, Lorenzo Pieralisi wrote: >>> [+Morten, Dietmar] >>> >>> $SUBJECT should be: >>> >>> arm64: topology: rename cluster_id >> [cut] >> >> I was hoping

[PATCH 1/2] phy: rockchip-emmc: retry calpad busy trimming

2018-01-01 Thread Shawn Lin
It turns out that 5us isn't enough for all cases, so let's retry some more times to wait for caldone. Signed-off-by: Shawn Lin --- drivers/phy/rockchip/phy-rockchip-emmc.c | 21 + 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/drivers/phy/rockchip/phy-rockchi

[PATCH] nvme: check ctrl.tagset before start ns scan

2018-01-01 Thread Jianchao Wang
ctrl.tagset maybe NULL due to failure of io queue setup or blk-mq tagset allocation in nvme_reset_work. Then panic would come up. To fix this, just add ctrl.tagset check in nvme_scan_work. Signed-off-by: Jianchao Wang --- drivers/nvme/host/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletio

Re: [PATCH] ARM: sunxi_defconfig: Enable SUNXI_CCU

2018-01-01 Thread Chen-Yu Tsai
On Tue, Jan 2, 2018 at 3:22 AM, Corentin Labbe wrote: > While looking for missing symbol by diffing sunxi_defconfig and my > .config, I just found that no CLK symbol are present in sunxi_defconfig. This does not take into account default values in Kconfig. Use `make savedefconfg` then compare the

Re: [RFC PATCH] memory-hotplug: add sysfs immovable_mem attribute

2018-01-01 Thread Chao Fan
On Fri, Dec 29, 2017 at 01:23:05PM +0100, Michal Hocko wrote: Hi Michal, >Always make sure to CC linux-api mailing list when proposing user >visible API patches. Sorry for that, since scripts/get_maintainer.pl didn't show that, so I don't know should Cc that. > >On Wed 27-12-17 20:30:12, Chao F

Re: [RESEND PATCH v2 05/15] ASoC: qcom: qdsp6: Add support to Q6ADM

2018-01-01 Thread Bjorn Andersson
On Thu 14 Dec 09:33 PST 2017, srinivas.kandaga...@linaro.org wrote: > From: Srinivas Kandagatla > > This patch adds support to q6 ADM (Audio Device Manager) module in > q6dsp. ADM performs routing between audio streams and AFE ports. > It does Rate matching for streams going to devices driven by

linux-next: build failure after merge of the drm tree

2018-01-01 Thread Stephen Rothwell
Hi all, After merging the drm tree, today's linux-next build (x86_64 allmodconfig) failed like this: drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_mst_types.c:219:6: error: redefinition of 'dm_dp_mst_dc_sink_create' void dm_dp_mst_dc_sink_create(struct drm_connector *connector)

[PATCH -next] slimbus: qcom: Make some local functions static

2018-01-01 Thread Wei Yongjun
Fixes the following sparse warnings: drivers/slimbus/qcom-ctrl.c:151:6: warning: symbol 'slim_ack_txn' was not declared. Should it be static? drivers/slimbus/qcom-ctrl.c:304:6: warning: symbol 'slim_alloc_txbuf' was not declared. Should it be static? Signed-off-by: Wei Yongjun --- drivers/sli

Re: [PATCH 1/3] phy: phy-mtk-tphy: use auto instead of force to bypass utmi signals

2018-01-01 Thread Chunfeng Yun
On Thu, 2017-12-28 at 16:44 +0530, Kishon Vijay Abraham I wrote: > > On Thursday 07 December 2017 05:23 PM, Chunfeng Yun wrote: > > When system is running, if usb2 phy is forced to bypass utmi signals, > > all PLL will be turned off, and it can't detect device connection > > anymore, so replace fo

[PATCH -next] slimbus: Use GFP_ATOMIC under spin lock

2018-01-01 Thread Wei Yongjun
A spin lock is taken here so we should use GFP_ATOMIC. Fixes: afbdcc7c384b ("slimbus: Add messaging APIs to slimbus framework") Signed-off-by: Wei Yongjun --- drivers/slimbus/messaging.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/slimbus/messaging.c b/drivers/sli

[PATCH -next] slimbus: qcom: Fix return value check in qcom_slim_probe()

2018-01-01 Thread Wei Yongjun
In case of error, the function devm_ioremap_resource() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Fixes: ad7fcbc308b0 ("slimbus: qcom: Add Qualcomm Slimbus controller driver") Signed-off-by: Wei Yongjun --- drivers/slimbus/

Re: [RFC] does ioremap() cause memory leak?

2018-01-01 Thread Hanjun Guo
On 2017/12/23 13:32, Xishi Qiu wrote: > On 2017/12/21 16:55, Xishi Qiu wrote: > >> When we use iounmap() to free the mapping, it calls unmap_vmap_area() to >> clear page table, >> but do not free the memory of page table, right? >> >> So when use ioremap() to mapping another area(incluce the area

[PATCH -next] slimbus: Fix missing unlock on error in slim_msg_response()

2018-01-01 Thread Wei Yongjun
Add the missing unlock before return from function slim_msg_response() in the error handling case. Fixes: afbdcc7c384b ("slimbus: Add messaging APIs to slimbus framework") Signed-off-by: Wei Yongjun --- drivers/slimbus/messaging.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/slimb

Re: [PATCH v5] x86/microcode/intel: Blacklist the specific BDW-EP for late loading

2018-01-01 Thread Jia Zhang
Thanks for your comments. Happy new year! Jia 在 2018/1/2 上午6:10, Borislav Petkov 写道: > On Mon, Jan 01, 2018 at 10:04:47AM +0800, Jia Zhang wrote: >> Instead of blacklisting all types of Broadwell processor when running >> a late loading, only BDW-EP (signature 0x406f1, aka family 6, model 79, >>

linux-next: build warning after merge of the netfilter-next tree

2018-01-01 Thread Stephen Rothwell
Hi all, After merging the netfilter-next tree, today's linux-next build (arm multi_v7_defconfig) produced this warning: In file included from net/ipv6/af_inet6.c:45:0: include/linux/netfilter_ipv6.h:38:51: warning: 'struct nf_queue_entry' declared inside parameter list int (*reroute)(struct sk

Re: [PATCH 0/4] KVM: nVMX: prepare_vmcs02 optimizations

2018-01-01 Thread Wanpeng Li
2018-01-02 7:01 GMT+08:00 Paolo Bonzini : > On 01/01/2018 10:36, Paolo Bonzini wrote: >> On 28/12/2017 09:39, Wanpeng Li wrote: >>> 2017-12-27 22:28 GMT+08:00 Paolo Bonzini : On 25/12/2017 11:08, Wanpeng Li wrote: >> I observe L1(latest kvm/queue) panic and L0(latest kvm/queue) >> call

[PATCH] PM / runtime: Rework pm_runtime_force_suspend/resume()

2018-01-01 Thread Rafael J. Wysocki
From: Rafael J. Wysocki One of the limitations of pm_runtime_force_suspend/resume() is that if a parent driver wants to use these functions, all of its child drivers have to do that too because of the parent usage counter manipulations necessary to get the correct state of the parent during syste

Re: [PATCH 3/4] extcon: axp288: Redo charger type dection a couple of seconds after probe()

2018-01-01 Thread Chanwoo Choi
Hi Hans, s/dection/detection on patch title. On 2017년 12월 22일 21:36, Hans de Goede wrote: > The axp288 extcon code depends on other drivers to do things like mux the > data lines, enable/disable vbus based on the id-pin, etc. > > Sometimes the BIOS has not set these things up correctly resulting

Re: [PATCH 4/4] extcon: axp288: Handle reserved charger-type values better

2018-01-01 Thread Chanwoo Choi
Hi Hans, On 2017년 12월 22일 21:36, Hans de Goede wrote: > According to the data sheets all the values not handled in the > switch-case are "reserved". Update the dev_warn message to reflect > this and set the cable-type to EXTCON_CHG_USB_SDP (so max 500mA > current draw) as safe default. > > Signed

Re: [RESEND PATCH v2 04/15] ASoC: qcom: qdsp6: Add support to Q6AFE

2018-01-01 Thread Bjorn Andersson
On Thu 14 Dec 09:33 PST 2017, srinivas.kandaga...@linaro.org wrote: [..] > + > +config SND_SOC_QDSP6_AFE > + tristate > + default n Do you see a particular benefit of having one kernel module per function? Why not just compile them all into the same q6dsp.ko? > + > +config SND_SOC_QDSP6

Re: [PATCH] KVM: nVMX: remove unnecessary vmwrite from L2->L1 vmexit

2018-01-01 Thread Jim Mattson
Reviewed-by: Jim Mattson On Mon, Jan 1, 2018 at 2:58 PM, Paolo Bonzini wrote: > The POSTED_INTR_NV field is constant (though it differs between the vmcs01 and > vmcs02), there is no need to reload it on vmexit to L1. > > Signed-off-by: Paolo Bonzini > --- > arch/x86/kvm/vmx.c | 3 --- > 1 file

[PATCH] PM / wakeup: Drop redundant check from device_init_wakeup()

2018-01-01 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Since device_wakeup_disable() checks the device's power.can_wakeup flag, device_init_wakeup() doesn't need to do that before calling it, so drop that redundant check from device_init_wakeup(). No intentional changes in functionality. Signed-off-by: Rafael J. Wysocki --

  1   2   3   4   5   6   7   >