Re: [PATCHv3 1/3] mm: Introduce vma_init()

2018-07-25 Thread Linus Torvalds
On Wed, Jul 25, 2018 at 5:39 AM Kirill A. Shutemov wrote: > > There are few more: > > arch/arm64/include/asm/tlb.h: struct vm_area_struct vma = { .vm_mm = > tlb->mm, }; > arch/arm64/mm/hugetlbpage.c:struct vm_area_struct vma = { .vm_mm = mm }; > arch/arm64/mm/hugetlbpage.c:struct

Re: [PATCHv3 1/3] mm: Introduce vma_init()

2018-07-25 Thread Linus Torvalds
On Wed, Jul 25, 2018 at 5:39 AM Kirill A. Shutemov wrote: > > There are few more: > > arch/arm64/include/asm/tlb.h: struct vm_area_struct vma = { .vm_mm = > tlb->mm, }; > arch/arm64/mm/hugetlbpage.c:struct vm_area_struct vma = { .vm_mm = mm }; > arch/arm64/mm/hugetlbpage.c:struct

Applied "ASoC: AMD: Add a fix voltage regulator for DA7219 and ADAU7002" to the asoc tree

2018-07-25 Thread Mark Brown
The patch ASoC: AMD: Add a fix voltage regulator for DA7219 and ADAU7002 has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24

Re: [PATCH v2] RFC: clear 1G pages with streaming stores on x86

2018-07-25 Thread Cannon Matthews
Thanks for the feedback! On Tue, Jul 24, 2018 at 10:02 PM Elliott, Robert (Persistent Memory) wrote: > > > > > -Original Message- > > From: linux-kernel-ow...@vger.kernel.org > ow...@vger.kernel.org> On Behalf Of Cannon Matthews > > Sent: Tuesday, July 24, 2018 9:37 PM > > Subject: Re:

Applied "ASoC: AMD: Add a fix voltage regulator for DA7219 and ADAU7002" to the asoc tree

2018-07-25 Thread Mark Brown
The patch ASoC: AMD: Add a fix voltage regulator for DA7219 and ADAU7002 has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24

Re: [PATCH v2] RFC: clear 1G pages with streaming stores on x86

2018-07-25 Thread Cannon Matthews
Thanks for the feedback! On Tue, Jul 24, 2018 at 10:02 PM Elliott, Robert (Persistent Memory) wrote: > > > > > -Original Message- > > From: linux-kernel-ow...@vger.kernel.org > ow...@vger.kernel.org> On Behalf Of Cannon Matthews > > Sent: Tuesday, July 24, 2018 9:37 PM > > Subject: Re:

Re: [PATCH v2] pinctrl: tegra: fix spelling in devicetree binding document

2018-07-25 Thread Rob Herring
On Fri, Jul 20, 2018 at 10:22:57AM +0200, Marcel Ziswiler wrote: > From: Marcel Ziswiler > > This fixes a spelling mistake. > > Signed-off-by: Marcel Ziswiler > > --- > > Changes in v2: > - Also fix up the one in nvidia,tegra210-pinmux.txt as suggested by Jon. > >

Re: [PATCH v2] pinctrl: tegra: fix spelling in devicetree binding document

2018-07-25 Thread Rob Herring
On Fri, Jul 20, 2018 at 10:22:57AM +0200, Marcel Ziswiler wrote: > From: Marcel Ziswiler > > This fixes a spelling mistake. > > Signed-off-by: Marcel Ziswiler > > --- > > Changes in v2: > - Also fix up the one in nvidia,tegra210-pinmux.txt as suggested by Jon. > >

Re: [PATCH] x86/bugs: protect against userspace-userspace spectreRSB

2018-07-25 Thread Linus Torvalds
On Tue, Jul 24, 2018 at 12:53 PM Jiri Kosina wrote: > > Mitigate userspace-userspace attacks by always unconditionally filling RSB on > context switch when generic spectrev2 mitigation has been enabled. Shouldn't this also do something like x86_spec_ctrl_base |= x86_spec_ctrl_mask &

Re: [PATCH] x86/bugs: protect against userspace-userspace spectreRSB

2018-07-25 Thread Linus Torvalds
On Tue, Jul 24, 2018 at 12:53 PM Jiri Kosina wrote: > > Mitigate userspace-userspace attacks by always unconditionally filling RSB on > context switch when generic spectrev2 mitigation has been enabled. Shouldn't this also do something like x86_spec_ctrl_base |= x86_spec_ctrl_mask &

[PATCH v11 2/4] rtc: ds1307: support m41t11 variant

2018-07-25 Thread Giulio Benetti
The m41t11 variant is very similar to the already supported m41t00 and m41t0, but it has also 56 bytes of NVRAM. Add it to driver taking into account NVRAM section. Signed-off-by: Giulio Benetti Reviewed-by: Rob Herring Signed-off-by: Alexandre Belloni ---

[PATCH v11 2/4] rtc: ds1307: support m41t11 variant

2018-07-25 Thread Giulio Benetti
The m41t11 variant is very similar to the already supported m41t00 and m41t0, but it has also 56 bytes of NVRAM. Add it to driver taking into account NVRAM section. Signed-off-by: Giulio Benetti Reviewed-by: Rob Herring Signed-off-by: Alexandre Belloni ---

[PATCH v11 4/4] rtc: ds1307: add frequency_test_enable sysfs attribute to check tick on m41txx

2018-07-25 Thread Giulio Benetti
On m41txx you can enable open-drain OUT pin to check if offset is ok. Enabling OUT pin with frequency_test_enable attribute, OUT pin will tick 512 times faster than 1s tick base. Enable or Disable FT bit on CONTROL register if freq_test is 1 or 0. Signed-off-by: Giulio Benetti --- V10 => V11: *

Re: 4.17.x won't boot due to "x86/boot/compressed/64: Handle 5-level paging boot if kernel is above 4G"

2018-07-25 Thread Dmitry Malkin
there may be some other reasons which may cause undefined behavior (reboot for example): in arch/x86/boot/compressed/pgtable_64.c in function paging_prepare(): 1. structure "paging_config" allocated on stack without setting default value for flag "l5_required": >>struct paging_config

[PATCH v11 4/4] rtc: ds1307: add frequency_test_enable sysfs attribute to check tick on m41txx

2018-07-25 Thread Giulio Benetti
On m41txx you can enable open-drain OUT pin to check if offset is ok. Enabling OUT pin with frequency_test_enable attribute, OUT pin will tick 512 times faster than 1s tick base. Enable or Disable FT bit on CONTROL register if freq_test is 1 or 0. Signed-off-by: Giulio Benetti --- V10 => V11: *

Re: 4.17.x won't boot due to "x86/boot/compressed/64: Handle 5-level paging boot if kernel is above 4G"

2018-07-25 Thread Dmitry Malkin
there may be some other reasons which may cause undefined behavior (reboot for example): in arch/x86/boot/compressed/pgtable_64.c in function paging_prepare(): 1. structure "paging_config" allocated on stack without setting default value for flag "l5_required": >>struct paging_config

[PATCH v11 3/4] rtc: ds1307: add offset sysfs for mt41txx chips.

2018-07-25 Thread Giulio Benetti
m41txx chips can hold a calibration value to get correct clock bias. Add offset handling (ranging between -63ppm and 126ppm) via sysfs. Signed-off-by: Giulio Benetti --- drivers/rtc/rtc-ds1307.c | 77 1 file changed, 77 insertions(+) diff --git

[PATCH v11 1/4] rtc: ds1307: fix data pointer to m41t0

2018-07-25 Thread Giulio Benetti
data field points to m41t00, instead it should point to m41t0. Driver works correctly because on both cases(m41t0 and m41t00) chip_desc are equal. Point to right enum m41t0 instead of m41t00. Signed-off-by: Giulio Benetti Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-ds1307.c | 2 +- 1

[PATCH v11 3/4] rtc: ds1307: add offset sysfs for mt41txx chips.

2018-07-25 Thread Giulio Benetti
m41txx chips can hold a calibration value to get correct clock bias. Add offset handling (ranging between -63ppm and 126ppm) via sysfs. Signed-off-by: Giulio Benetti --- drivers/rtc/rtc-ds1307.c | 77 1 file changed, 77 insertions(+) diff --git

[PATCH v11 1/4] rtc: ds1307: fix data pointer to m41t0

2018-07-25 Thread Giulio Benetti
data field points to m41t00, instead it should point to m41t0. Driver works correctly because on both cases(m41t0 and m41t00) chip_desc are equal. Point to right enum m41t0 instead of m41t00. Signed-off-by: Giulio Benetti Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-ds1307.c | 2 +- 1

Re: [PATCH v2 09/10] coresight: Cleanup coresight DT bindings

2018-07-25 Thread Rob Herring
On Wed, Jul 25, 2018 at 10:13 AM Suzuki K Poulose wrote: > > On 07/25/2018 05:09 PM, Rob Herring wrote: > > On Thu, Jul 19, 2018 at 11:55:13AM +0100, Suzuki K Poulose wrote: > >> The coresight drivers relied on default bindings for graph > >> in DT, while reusing the "reg" field of the "ports" to

Re: [PATCH v2 09/10] coresight: Cleanup coresight DT bindings

2018-07-25 Thread Rob Herring
On Wed, Jul 25, 2018 at 10:13 AM Suzuki K Poulose wrote: > > On 07/25/2018 05:09 PM, Rob Herring wrote: > > On Thu, Jul 19, 2018 at 11:55:13AM +0100, Suzuki K Poulose wrote: > >> The coresight drivers relied on default bindings for graph > >> in DT, while reusing the "reg" field of the "ports" to

[Question] bpf: about a new 'tools/bpf/bpf_dwarf2btf'

2018-07-25 Thread Taeung Song
Hi, Building bpf programs with .BTF section, I thought it'd be better to convert dwarf info to .BTF by a new tool such as 'tools/bpf/bpf_dwarf2btf' instead of pahole in the future. Currently for bpf binary that have .BTF section, we need to use pahole from

[Question] bpf: about a new 'tools/bpf/bpf_dwarf2btf'

2018-07-25 Thread Taeung Song
Hi, Building bpf programs with .BTF section, I thought it'd be better to convert dwarf info to .BTF by a new tool such as 'tools/bpf/bpf_dwarf2btf' instead of pahole in the future. Currently for bpf binary that have .BTF section, we need to use pahole from

Re: [PATCH v2 0/6] kaddr and pfn can be NULL to ->direct_access()

2018-07-25 Thread Ross Zwisler
On Thu, Jul 26, 2018 at 12:28:43AM +0800, Huaisheng Ye wrote: > From: Huaisheng Ye > > Changes since v1 [1]: > * Involve the previous patches for pfn can be NULL. > * Reword the patch descriptions according to Christian's comment. > * According to Ross's suggestion, replace local pointer

Re: [PATCH v2 0/6] kaddr and pfn can be NULL to ->direct_access()

2018-07-25 Thread Ross Zwisler
On Thu, Jul 26, 2018 at 12:28:43AM +0800, Huaisheng Ye wrote: > From: Huaisheng Ye > > Changes since v1 [1]: > * Involve the previous patches for pfn can be NULL. > * Reword the patch descriptions according to Christian's comment. > * According to Ross's suggestion, replace local pointer

[PATCH v2] tracefs: Annotate tracefs_ops with __ro_after_init

2018-07-25 Thread Zubin Mithra
tracefs_ops is initialized inside tracefs_create_instance_dir and not modified after. tracefs_create_instance_dir allows for initialization only once, and is called from create_trace_instances(marked __init), which is called from tracer_init_tracefs(marked __init). Also, mark

[PATCH v2] tracefs: Annotate tracefs_ops with __ro_after_init

2018-07-25 Thread Zubin Mithra
tracefs_ops is initialized inside tracefs_create_instance_dir and not modified after. tracefs_create_instance_dir allows for initialization only once, and is called from create_trace_instances(marked __init), which is called from tracer_init_tracefs(marked __init). Also, mark

Re: [PATCH] x86/bugs: protect against userspace-userspace spectreRSB

2018-07-25 Thread Josh Poimboeuf
On Wed, Jul 25, 2018 at 03:50:44PM +0200, Jiri Kosina wrote: > On Wed, 25 Jul 2018, Josh Poimboeuf wrote: > > > > The article "Spectre Returns! Speculation Attacks using the Return Stack > > > Buffer" [1] describes two new (sub-)variants of spectrev2-like attack, > > > making use solely of the

Re: [PATCH] x86/bugs: protect against userspace-userspace spectreRSB

2018-07-25 Thread Josh Poimboeuf
On Wed, Jul 25, 2018 at 03:50:44PM +0200, Jiri Kosina wrote: > On Wed, 25 Jul 2018, Josh Poimboeuf wrote: > > > > The article "Spectre Returns! Speculation Attacks using the Return Stack > > > Buffer" [1] describes two new (sub-)variants of spectrev2-like attack, > > > making use solely of the

[GIT PULL] clk fixes for v4.18-rc6

2018-07-25 Thread sboyd
From: Stephen Boyd The following changes since commit 9cc63791fad6d2624878c93f3415da77780e68a7: Merge branch 'clk-fix-imx6ul-defs' into clk-fixes (2018-06-29 11:40:29 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git

[GIT PULL] clk fixes for v4.18-rc6

2018-07-25 Thread sboyd
From: Stephen Boyd The following changes since commit 9cc63791fad6d2624878c93f3415da77780e68a7: Merge branch 'clk-fix-imx6ul-defs' into clk-fixes (2018-06-29 11:40:29 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git

Re: [PATCH v10 4/7] Bluetooth: hci_qca: Add wrapper functions for setting UART speed

2018-07-25 Thread Matthias Kaehlcke
On Tue, Jul 24, 2018 at 12:32:36PM +0530, Balakrishna Godavarthi wrote: > Hi Matthias, > > On 2018-07-23 23:26, Matthias Kaehlcke wrote: > > On Fri, Jul 20, 2018 at 07:02:40PM +0530, Balakrishna Godavarthi wrote: > > > In function qca_setup, we set initial and operating speeds for > > > Qualcomm

Re: [PATCH v10 4/7] Bluetooth: hci_qca: Add wrapper functions for setting UART speed

2018-07-25 Thread Matthias Kaehlcke
On Tue, Jul 24, 2018 at 12:32:36PM +0530, Balakrishna Godavarthi wrote: > Hi Matthias, > > On 2018-07-23 23:26, Matthias Kaehlcke wrote: > > On Fri, Jul 20, 2018 at 07:02:40PM +0530, Balakrishna Godavarthi wrote: > > > In function qca_setup, we set initial and operating speeds for > > > Qualcomm

Re: [Letux-kernel] [PATCH 09/32] ARM: dts: omap3-gta04: make NAND partitions compatible with recent U-Boot

2018-07-25 Thread Andreas Kemnade
On Wed, 25 Jul 2018 10:33:05 +0200 Ladislav Michl wrote: > On Wed, Jul 25, 2018 at 10:18:28AM +0200, H. Nikolaus Schaller wrote: > > > > > Am 25.07.2018 um 10:07 schrieb Ladislav Michl : > > > > > > On Wed, Jul 25, 2018 at 08:58:41AM +0200, H. Nikolaus Schaller wrote: > > >> Vendor defined

Re: [Letux-kernel] [PATCH 09/32] ARM: dts: omap3-gta04: make NAND partitions compatible with recent U-Boot

2018-07-25 Thread Andreas Kemnade
On Wed, 25 Jul 2018 10:33:05 +0200 Ladislav Michl wrote: > On Wed, Jul 25, 2018 at 10:18:28AM +0200, H. Nikolaus Schaller wrote: > > > > > Am 25.07.2018 um 10:07 schrieb Ladislav Michl : > > > > > > On Wed, Jul 25, 2018 at 08:58:41AM +0200, H. Nikolaus Schaller wrote: > > >> Vendor defined

Re: [PATCH 00/20] PIDTYPE_TGID removal of fork restarts

2018-07-25 Thread Eric W. Biederman
Oleg Nesterov writes: > On 07/23, Eric W. Biederman wrote: >> >> signal: Add calculate_sigpending() >> fork: Have new threads join on-going signal group stops >> signal: Don't restart fork when signals come in. > > Oh, I need to re-read these patches tomorrow. I have some

Re: [PATCH 00/20] PIDTYPE_TGID removal of fork restarts

2018-07-25 Thread Eric W. Biederman
Oleg Nesterov writes: > On 07/23, Eric W. Biederman wrote: >> >> signal: Add calculate_sigpending() >> fork: Have new threads join on-going signal group stops >> signal: Don't restart fork when signals come in. > > Oh, I need to re-read these patches tomorrow. I have some

Re: [PATCH] bpf, x32: Fix regression caused by commit 24dea04767e6

2018-07-25 Thread Daniel Borkmann
On 07/25/2018 06:46 PM, Wang YanQing wrote: > Commit 24dea04767e6 ("bpf, x32: remove ld_abs/ld_ind") > removed the 4 /* Extra space for skb_copy_bits buffer */ > from _STACK_SIZE, but it didn't fix the concerned code > in emit_prologue and emit_epilogue, and this error will > bring very strange

Re: [PATCH] bpf, x32: Fix regression caused by commit 24dea04767e6

2018-07-25 Thread Daniel Borkmann
On 07/25/2018 06:46 PM, Wang YanQing wrote: > Commit 24dea04767e6 ("bpf, x32: remove ld_abs/ld_ind") > removed the 4 /* Extra space for skb_copy_bits buffer */ > from _STACK_SIZE, but it didn't fix the concerned code > in emit_prologue and emit_epilogue, and this error will > bring very strange

Re: Why inode number is zero in writeback?

2018-07-25 Thread Andreas Dilger
On Jul 25, 2018, at 6:01 AM, Ilya Plenne wrote: > > I'm researching linux kernel. Right now only for v3.10.61, it's just > proof of concept. > > I need to pass-through some hints to hardware about what kind of data > in particular WRITE\READ operation. E.g. read inodes bitmap or write > journal

Re: Why inode number is zero in writeback?

2018-07-25 Thread Andreas Dilger
On Jul 25, 2018, at 6:01 AM, Ilya Plenne wrote: > > I'm researching linux kernel. Right now only for v3.10.61, it's just > proof of concept. > > I need to pass-through some hints to hardware about what kind of data > in particular WRITE\READ operation. E.g. read inodes bitmap or write > journal

Re: [PATCH 1/3] i3c: master: Add driver for Synopsys DesignWare IP

2018-07-25 Thread Andy Shevchenko
On Wed, Jul 25, 2018 at 11:43 AM, Vitor Soares wrote: > On Fri, Jul 20, 2018 at 11:57 PM, Vitor soares > wrote: > Thanks for answers, my comments below. > This patch add driver for Synopsys DesignWare IP on top of > I3C subsystem patchset proposal V6 ... > +#include > Reset API. > > All of

Re: [PATCH 1/3] i3c: master: Add driver for Synopsys DesignWare IP

2018-07-25 Thread Andy Shevchenko
On Wed, Jul 25, 2018 at 11:43 AM, Vitor Soares wrote: > On Fri, Jul 20, 2018 at 11:57 PM, Vitor soares > wrote: > Thanks for answers, my comments below. > This patch add driver for Synopsys DesignWare IP on top of > I3C subsystem patchset proposal V6 ... > +#include > Reset API. > > All of

Re: [PATCH] rds: send: Fix dead code in rds_sendmsg

2018-07-25 Thread Santosh Shilimkar
On 7/25/2018 8:22 AM, Gustavo A. R. Silva wrote: Currently, code at label *out* is unreachable. Fix this by updating variable *ret* with -EINVAL, so the jump to *out* can be properly executed instead of directly returning from function. Addresses-Coverity-ID: 1472059 ("Structurally dead code")

Re: [PATCH] rds: send: Fix dead code in rds_sendmsg

2018-07-25 Thread Santosh Shilimkar
On 7/25/2018 8:22 AM, Gustavo A. R. Silva wrote: Currently, code at label *out* is unreachable. Fix this by updating variable *ret* with -EINVAL, so the jump to *out* can be properly executed instead of directly returning from function. Addresses-Coverity-ID: 1472059 ("Structurally dead code")

Re: [PATCH 2/6] module: add support for symbol namespaces.

2018-07-25 Thread Lucas De Marchi
On Wed, Jul 25, 2018 at 8:55 AM Jessica Yu wrote: > > +++ Martijn Coenen [24/07/18 09:56 +0200]: > >I did find an issue with my approach: > > > >On Mon, Jul 16, 2018 at 2:21 PM, Martijn Coenen wrote: > >> The ELF symbols are renamed to include the namespace with an asm label; > >> for example,

Re: [PATCH 2/6] module: add support for symbol namespaces.

2018-07-25 Thread Lucas De Marchi
On Wed, Jul 25, 2018 at 8:55 AM Jessica Yu wrote: > > +++ Martijn Coenen [24/07/18 09:56 +0200]: > >I did find an issue with my approach: > > > >On Mon, Jul 16, 2018 at 2:21 PM, Martijn Coenen wrote: > >> The ELF symbols are renamed to include the namespace with an asm label; > >> for example,

Re: [PATCH V2 1/2] clk: imx: add ocram_s clock for i.mx6sx

2018-07-25 Thread Stephen Boyd
Quoting Anson Huang (2018-07-10 17:58:58) > i.MX6SX has a 16KB always-on ocram bank called > ocram_s, and its clock gate in CCM CCGR1 CG14 > needs to be enabled before access, add it to > clock tree. > > Signed-off-by: Anson Huang > --- Applied to clk-next

Re: [PATCH V2 1/2] clk: imx: add ocram_s clock for i.mx6sx

2018-07-25 Thread Stephen Boyd
Quoting Anson Huang (2018-07-10 17:58:58) > i.MX6SX has a 16KB always-on ocram bank called > ocram_s, and its clock gate in CCM CCGR1 CG14 > needs to be enabled before access, add it to > clock tree. > > Signed-off-by: Anson Huang > --- Applied to clk-next

[PATCH] bpf, x32: Fix regression caused by commit 24dea04767e6

2018-07-25 Thread Wang YanQing
Commit 24dea04767e6 ("bpf, x32: remove ld_abs/ld_ind") removed the 4 /* Extra space for skb_copy_bits buffer */ from _STACK_SIZE, but it didn't fix the concerned code in emit_prologue and emit_epilogue, and this error will bring very strange kernel runtime errors. This patch fix it. Fixes:

[PATCH] bpf, x32: Fix regression caused by commit 24dea04767e6

2018-07-25 Thread Wang YanQing
Commit 24dea04767e6 ("bpf, x32: remove ld_abs/ld_ind") removed the 4 /* Extra space for skb_copy_bits buffer */ from _STACK_SIZE, but it didn't fix the concerned code in emit_prologue and emit_epilogue, and this error will bring very strange kernel runtime errors. This patch fix it. Fixes:

Re: [PATCH] clk: mvebu: armada-37xx-periph: Fix wrong return value in get_parent

2018-07-25 Thread Stephen Boyd
Quoting Gregory CLEMENT (2018-07-13 03:27:26) > The return value of the get_parent operation is a u8, whereas a -EINVAL > was returned. This wrong value was return if the value was bigger that > the number of parent but this case was already handled by the core. > > So we can just remove this

Re: [PATCH] clk: mvebu: armada-37xx-periph: Fix wrong return value in get_parent

2018-07-25 Thread Stephen Boyd
Quoting Gregory CLEMENT (2018-07-13 03:27:26) > The return value of the get_parent operation is a u8, whereas a -EINVAL > was returned. This wrong value was return if the value was bigger that > the number of parent but this case was already handled by the core. > > So we can just remove this

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

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

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

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

[PATCH v4 03/34] media: v4l: Add new 10-bit packed grayscale format

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

[PATCH v4 03/34] media: v4l: Add new 10-bit packed grayscale format

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

[PATCH v4 09/34] media: camss: Unify the clock names

2018-07-25 Thread Todor Tomov
Use more logical clock names - similar to the names in documentation. This will allow better handling of the clocks in the driver when support for more hardware versions is added - equivalent clocks on different hardware versions will have the same name. Signed-off-by: Todor Tomov ---

[PATCH v4 09/34] media: camss: Unify the clock names

2018-07-25 Thread Todor Tomov
Use more logical clock names - similar to the names in documentation. This will allow better handling of the clocks in the driver when support for more hardware versions is added - equivalent clocks on different hardware versions will have the same name. Signed-off-by: Todor Tomov ---

[PATCH v4 10/34] media: camss: csiphy: Update settle count calculation

2018-07-25 Thread Todor Tomov
Update settle count calculation as per specification. Signed-off-by: Todor Tomov --- drivers/media/platform/qcom/camss/camss-csiphy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/qcom/camss/camss-csiphy.c

[PATCH v4 10/34] media: camss: csiphy: Update settle count calculation

2018-07-25 Thread Todor Tomov
Update settle count calculation as per specification. Signed-off-by: Todor Tomov --- drivers/media/platform/qcom/camss/camss-csiphy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/qcom/camss/camss-csiphy.c

[PATCH v4 04/34] media: Rename CAMSS driver path

2018-07-25 Thread Todor Tomov
Support for camera subsystem on QComm MSM8996/APQ8096 is to be added so remove hardware version from CAMSS driver's path. Signed-off-by: Todor Tomov --- MAINTAINERS | 2 +- drivers/media/platform/Kconfig | 2

[PATCH v4 04/34] media: Rename CAMSS driver path

2018-07-25 Thread Todor Tomov
Support for camera subsystem on QComm MSM8996/APQ8096 is to be added so remove hardware version from CAMSS driver's path. Signed-off-by: Todor Tomov --- MAINTAINERS | 2 +- drivers/media/platform/Kconfig | 2

[PATCH v4 06/34] media: camss: Fix OF node usage

2018-07-25 Thread Todor Tomov
of_graph_get_next_endpoint increases the refcount of the returned node and decreases the refcount of the passed node. Take this into account and use of_node_put properly. Signed-off-by: Todor Tomov --- drivers/media/platform/qcom/camss/camss.c | 5 +++-- 1 file changed, 3 insertions(+), 2

[PATCH v4 06/34] media: camss: Fix OF node usage

2018-07-25 Thread Todor Tomov
of_graph_get_next_endpoint increases the refcount of the returned node and decreases the refcount of the passed node. Take this into account and use of_node_put properly. Signed-off-by: Todor Tomov --- drivers/media/platform/qcom/camss/camss.c | 5 +++-- 1 file changed, 3 insertions(+), 2

[PATCH v4 05/34] media: camss: Use SPDX license headers

2018-07-25 Thread Todor Tomov
Use SPDX license headers for all files of the Qualcomm CAMSS driver. Signed-off-by: Todor Tomov --- drivers/media/platform/qcom/camss/camss-csid.c | 10 +- drivers/media/platform/qcom/camss/camss-csid.h | 10 +- drivers/media/platform/qcom/camss/camss-csiphy.c | 10

[PATCH v4 07/34] media: camss: csiphy: Ensure clock mux config is done before the rest

2018-07-25 Thread Todor Tomov
Add a write memory barier after clock mux config and before the rest of the csiphy config. Signed-off-by: Todor Tomov --- drivers/media/platform/qcom/camss/camss-csiphy.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/platform/qcom/camss/camss-csiphy.c

[PATCH v4 05/34] media: camss: Use SPDX license headers

2018-07-25 Thread Todor Tomov
Use SPDX license headers for all files of the Qualcomm CAMSS driver. Signed-off-by: Todor Tomov --- drivers/media/platform/qcom/camss/camss-csid.c | 10 +- drivers/media/platform/qcom/camss/camss-csid.h | 10 +- drivers/media/platform/qcom/camss/camss-csiphy.c | 10

[PATCH v4 07/34] media: camss: csiphy: Ensure clock mux config is done before the rest

2018-07-25 Thread Todor Tomov
Add a write memory barier after clock mux config and before the rest of the csiphy config. Signed-off-by: Todor Tomov --- drivers/media/platform/qcom/camss/camss-csiphy.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/platform/qcom/camss/camss-csiphy.c

[PATCH v4 08/34] media: dt-bindings: media: qcom,camss: Unify the clock names

2018-07-25 Thread Todor Tomov
Use more logical clock names - similar to the names in documentation. This will allow better handling of the clocks in the driver when support for more hardware versions is added - equivalent clocks on different hardware versions will have the same name. CC: Rob Herring CC: Mark Rutland CC:

[PATCH v4 14/34] media: camss: vfe: Do not disable CAMIF when clearing its status

2018-07-25 Thread Todor Tomov
Use "no change" value when clearing CAMIF status and make sure this is done before configuring the new command. Signed-off-by: Todor Tomov --- drivers/media/platform/qcom/camss/camss-vfe.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git

[PATCH v4 08/34] media: dt-bindings: media: qcom,camss: Unify the clock names

2018-07-25 Thread Todor Tomov
Use more logical clock names - similar to the names in documentation. This will allow better handling of the clocks in the driver when support for more hardware versions is added - equivalent clocks on different hardware versions will have the same name. CC: Rob Herring CC: Mark Rutland CC:

[PATCH v4 14/34] media: camss: vfe: Do not disable CAMIF when clearing its status

2018-07-25 Thread Todor Tomov
Use "no change" value when clearing CAMIF status and make sure this is done before configuring the new command. Signed-off-by: Todor Tomov --- drivers/media/platform/qcom/camss/camss-vfe.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git

[PATCH v4 16/34] media: dt-bindings: media: qcom,camss: Add 8996 bindings

2018-07-25 Thread Todor Tomov
Update binding document for MSM8996. CC: Rob Herring CC: Mark Rutland CC: devicet...@vger.kernel.org Signed-off-by: Todor Tomov Reviewed-by: Rob Herring --- .../devicetree/bindings/media/qcom,camss.txt | 44 +++--- 1 file changed, 38 insertions(+), 6 deletions(-) diff

[PATCH v4 16/34] media: dt-bindings: media: qcom,camss: Add 8996 bindings

2018-07-25 Thread Todor Tomov
Update binding document for MSM8996. CC: Rob Herring CC: Mark Rutland CC: devicet...@vger.kernel.org Signed-off-by: Todor Tomov Reviewed-by: Rob Herring --- .../devicetree/bindings/media/qcom,camss.txt | 44 +++--- 1 file changed, 38 insertions(+), 6 deletions(-) diff

[PATCH v4 11/34] media: camss: csid: Configure data type and decode format properly

2018-07-25 Thread Todor Tomov
The CSID decodes the input data stream. When the input comes from the Test Generator the format of the stream is set on the source media pad. When the input comes from the CSIPHY the format is the one on the sink media pad. Use the proper format for each case. Signed-off-by: Todor Tomov ---

[PATCH v4 20/34] media: camss: csiphy: Unify lane handling

2018-07-25 Thread Todor Tomov
Restructure lane configuration so it is simpler and will allow similar (although not the same) handling for different hardware versions. Signed-off-by: Todor Tomov --- .../platform/qcom/camss/camss-csiphy-2ph-1-0.c | 48 --

[PATCH v4 11/34] media: camss: csid: Configure data type and decode format properly

2018-07-25 Thread Todor Tomov
The CSID decodes the input data stream. When the input comes from the Test Generator the format of the stream is set on the source media pad. When the input comes from the CSIPHY the format is the one on the sink media pad. Use the proper format for each case. Signed-off-by: Todor Tomov ---

[PATCH v4 20/34] media: camss: csiphy: Unify lane handling

2018-07-25 Thread Todor Tomov
Restructure lane configuration so it is simpler and will allow similar (although not the same) handling for different hardware versions. Signed-off-by: Todor Tomov --- .../platform/qcom/camss/camss-csiphy-2ph-1-0.c | 48 --

[PATCH v4 23/34] media: camss: ispif: Add support for 8x96

2018-07-25 Thread Todor Tomov
ISPIF hardware modules on 8x16 and 8x96 are similar. However on 8x96 the ISPIF routes data to two VFE hardware modules. Add separate interrupt handler for 8x96 to handle the additional interrupts. Signed-off-by: Todor Tomov --- drivers/media/platform/qcom/camss/camss-ispif.c | 76

[PATCH v4 00/34] Qualcomm Camera Subsystem driver - 8x96 support

2018-07-25 Thread Todor Tomov
Changelog v4: - patch 17: use unsigned int for line_num; - patch 18: fix error handling on s_power; - patch 19, 21, 24, 25: fix extern usage (extern moved to header files); - patch 34: add acked tag; - patch 35: merge into patch 01.

[PATCH v4 23/34] media: camss: ispif: Add support for 8x96

2018-07-25 Thread Todor Tomov
ISPIF hardware modules on 8x16 and 8x96 are similar. However on 8x96 the ISPIF routes data to two VFE hardware modules. Add separate interrupt handler for 8x96 to handle the additional interrupts. Signed-off-by: Todor Tomov --- drivers/media/platform/qcom/camss/camss-ispif.c | 76

[PATCH v4 00/34] Qualcomm Camera Subsystem driver - 8x96 support

2018-07-25 Thread Todor Tomov
Changelog v4: - patch 17: use unsigned int for line_num; - patch 18: fix error handling on s_power; - patch 19, 21, 24, 25: fix extern usage (extern moved to header files); - patch 34: add acked tag; - patch 35: merge into patch 01.

[PATCH v4 12/34] media: camss: vfe: Fix to_vfe() macro member name

2018-07-25 Thread Todor Tomov
Use the member name which is "line" instead of the pointer argument. Signed-off-by: Todor Tomov --- drivers/media/platform/qcom/camss/camss-vfe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/qcom/camss/camss-vfe.c

[PATCH v4 12/34] media: camss: vfe: Fix to_vfe() macro member name

2018-07-25 Thread Todor Tomov
Use the member name which is "line" instead of the pointer argument. Signed-off-by: Todor Tomov --- drivers/media/platform/qcom/camss/camss-vfe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/qcom/camss/camss-vfe.c

[PATCH v4 19/34] media: camss: csiphy: Split to hardware dependent and independent parts

2018-07-25 Thread Todor Tomov
This will allow to add support for different hardware. Signed-off-by: Todor Tomov --- drivers/media/platform/qcom/camss/Makefile | 1 + .../platform/qcom/camss/camss-csiphy-2ph-1-0.c | 173 + drivers/media/platform/qcom/camss/camss-csiphy.c | 171

[PATCH v4 30/34] media: camss: csid: MIPI10 to Plain16 format conversion

2018-07-25 Thread Todor Tomov
Use the PRDI mode on 8x96 to allow to configure RAW MIPI10 to Plain16 format conversion. Signed-off-by: Todor Tomov --- drivers/media/platform/qcom/camss/camss-csid.c | 33 - drivers/media/platform/qcom/camss/camss-ispif.c | 64 +

Re: [PATCH] clk: clk-fixed-factor: Clear OF_POPULATED flag in case of failure

2018-07-25 Thread Stephen Boyd
Quoting Rajan Vaja (2018-07-17 06:17:00) > Fixed factor clock has two initializations at of_clk_init() time > and during platform driver probe. Before of_clk_init() call, > node is marked as populated and so its probe never gets called. > > During of_clk_init() fixed factor clock registration may

[PATCH v4 22/34] media: camss: csid: Add support for 8x96

2018-07-25 Thread Todor Tomov
CSID hardware modules on 8x16 and 8x96 are similar. There is no need to duplicate the code by adding separate versions. Just update the register macros to return the correct register addresses. Signed-off-by: Todor Tomov --- drivers/media/platform/qcom/camss/camss-csid.c | 60

[PATCH v4 19/34] media: camss: csiphy: Split to hardware dependent and independent parts

2018-07-25 Thread Todor Tomov
This will allow to add support for different hardware. Signed-off-by: Todor Tomov --- drivers/media/platform/qcom/camss/Makefile | 1 + .../platform/qcom/camss/camss-csiphy-2ph-1-0.c | 173 + drivers/media/platform/qcom/camss/camss-csiphy.c | 171

[PATCH v4 30/34] media: camss: csid: MIPI10 to Plain16 format conversion

2018-07-25 Thread Todor Tomov
Use the PRDI mode on 8x96 to allow to configure RAW MIPI10 to Plain16 format conversion. Signed-off-by: Todor Tomov --- drivers/media/platform/qcom/camss/camss-csid.c | 33 - drivers/media/platform/qcom/camss/camss-ispif.c | 64 +

Re: [PATCH] clk: clk-fixed-factor: Clear OF_POPULATED flag in case of failure

2018-07-25 Thread Stephen Boyd
Quoting Rajan Vaja (2018-07-17 06:17:00) > Fixed factor clock has two initializations at of_clk_init() time > and during platform driver probe. Before of_clk_init() call, > node is marked as populated and so its probe never gets called. > > During of_clk_init() fixed factor clock registration may

[PATCH v4 22/34] media: camss: csid: Add support for 8x96

2018-07-25 Thread Todor Tomov
CSID hardware modules on 8x16 and 8x96 are similar. There is no need to duplicate the code by adding separate versions. Just update the register macros to return the correct register addresses. Signed-off-by: Todor Tomov --- drivers/media/platform/qcom/camss/camss-csid.c | 60

[PATCH v4 15/34] media: dt-bindings: media: qcom,camss: Fix whitespaces

2018-07-25 Thread Todor Tomov
Use tabs. CC: Rob Herring CC: Mark Rutland CC: devicet...@vger.kernel.org Signed-off-by: Todor Tomov Reviewed-by: Rob Herring --- .../devicetree/bindings/media/qcom,camss.txt | 92 +++--- 1 file changed, 46 insertions(+), 46 deletions(-) diff --git

[PATCH v4 15/34] media: dt-bindings: media: qcom,camss: Fix whitespaces

2018-07-25 Thread Todor Tomov
Use tabs. CC: Rob Herring CC: Mark Rutland CC: devicet...@vger.kernel.org Signed-off-by: Todor Tomov Reviewed-by: Rob Herring --- .../devicetree/bindings/media/qcom,camss.txt | 92 +++--- 1 file changed, 46 insertions(+), 46 deletions(-) diff --git

[PATCH v4 27/34] media: camss: vfe: Different format support on source pad

2018-07-25 Thread Todor Tomov
Rework the format selection on the source pad. Make the format on the source pad selectable amongst a list of formats. This list can be different for each sink pad format. Signed-off-by: Todor Tomov --- drivers/media/platform/qcom/camss/camss-vfe.c | 172 -- 1 file

[PATCH v4 27/34] media: camss: vfe: Different format support on source pad

2018-07-25 Thread Todor Tomov
Rework the format selection on the source pad. Make the format on the source pad selectable amongst a list of formats. This list can be different for each sink pad format. Signed-off-by: Todor Tomov --- drivers/media/platform/qcom/camss/camss-vfe.c | 172 -- 1 file

[PATCH v4 32/34] media: camss: Add support for 10-bit grayscale formats

2018-07-25 Thread Todor Tomov
Add support for 10-bit packed V4L2_PIX_FMT_Y10P (on 8x16 and 8x96) and unpacked V4L2_PIX_FMT_Y10 (on 8x96 only) pixel formats. Signed-off-by: Todor Tomov --- drivers/media/platform/qcom/camss/camss-csid.c | 50 +++- drivers/media/platform/qcom/camss/camss-csiphy.c | 2 +

[PATCH v4 32/34] media: camss: Add support for 10-bit grayscale formats

2018-07-25 Thread Todor Tomov
Add support for 10-bit packed V4L2_PIX_FMT_Y10P (on 8x16 and 8x96) and unpacked V4L2_PIX_FMT_Y10 (on 8x96 only) pixel formats. Signed-off-by: Todor Tomov --- drivers/media/platform/qcom/camss/camss-csid.c | 50 +++- drivers/media/platform/qcom/camss/camss-csiphy.c | 2 +

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