08 Oct, 2016

1 commit

  • Pull powerpc updates from Michael Ellerman:
    "Highlights:
    - Major rework of Book3S 64-bit exception vectors (Nicholas Piggin)
    - Use gas sections for arranging exception vectors et. al.
    - Large set of TM cleanups and selftests (Cyril Bur)
    - Enable transactional memory (TM) lazily for userspace (Cyril Bur)
    - Support for XZ compression in the zImage wrapper (Oliver
    O'Halloran)
    - Add support for bpf constant blinding (Naveen N. Rao)
    - Beginnings of upstream support for PA Semi Nemo motherboards
    (Darren Stevens)

    Fixes:
    - Ensure .mem(init|exit).text are within _stext/_etext (Michael
    Ellerman)
    - xmon: Don't use ld on 32-bit (Michael Ellerman)
    - vdso64: Use double word compare on pointers (Anton Blanchard)
    - powerpc/nvram: Fix an incorrect partition merge (Pan Xinhui)
    - powerpc: Fix usage of _PAGE_RO in hugepage (Christophe Leroy)
    - powerpc/mm: Update FORCE_MAX_ZONEORDER range to allow hugetlb w/4K
    (Aneesh Kumar K.V)
    - Fix memory leak in queue_hotplug_event() error path (Andrew
    Donnellan)
    - Replay hypervisor maintenance interrupt first (Nicholas Piggin)

    Various performance optimisations (Anton Blanchard):
    - Align hot loops of memset() and backwards_memcpy()
    - During context switch, check before setting mm_cpumask
    - Remove static branch prediction in atomic{, 64}_add_unless
    - Only disable HAVE_EFFICIENT_UNALIGNED_ACCESS on POWER7 little
    endian
    - Set default CPU type to POWER8 for little endian builds

    Cleanups & features:
    - Sparse fixes/cleanups (Daniel Axtens)
    - Preserve CFAR value on SLB miss caused by access to bogus address
    (Paul Mackerras)
    - Radix MMU fixups for POWER9 (Aneesh Kumar K.V)
    - Support for setting used_(vsr|vr|spe) in sigreturn path (for CRIU)
    (Simon Guo)
    - Optimise syscall entry for virtual, relocatable case (Nicholas
    Piggin)
    - Optimise MSR handling in exception handling (Nicholas Piggin)
    - Support for kexec with Radix MMU (Benjamin Herrenschmidt)
    - powernv EEH fixes (Russell Currey)
    - Suprise PCI hotplug support for powernv (Gavin Shan)
    - Endian/sparse fixes for powernv PCI (Gavin Shan)
    - Defconfig updates (Anton Blanchard)
    - KVM: PPC: Book3S HV: Migrate pinned pages out of CMA (Balbir Singh)
    - cxl: Flush PSL cache before resetting the adapter (Frederic Barrat)
    - cxl: replace loop with for_each_child_of_node(), remove unneeded
    of_node_put() (Andrew Donnellan)
    - Fix HV facility unavailable to use correct handler (Nicholas
    Piggin)
    - Remove unnecessary syscall trampoline (Nicholas Piggin)
    - fadump: Fix build break when CONFIG_PROC_VMCORE=n (Michael
    Ellerman)
    - Quieten EEH message when no adapters are found (Anton Blanchard)
    - powernv: Add PHB register dump debugfs handle (Russell Currey)
    - Use kprobe blacklist for exception handlers & asm functions
    (Nicholas Piggin)
    - Document the syscall ABI (Nicholas Piggin)
    - MAINTAINERS: Update cxl maintainers (Michael Neuling)
    - powerpc: Remove all usages of NO_IRQ (Michael Ellerman)

    Minor cleanups:
    - Andrew Donnellan, Christophe Leroy, Colin Ian King, Cyril Bur,
    Frederic Barrat, Pan Xinhui, PrasannaKumar Muralidharan, Rui Teng,
    Simon Guo"

    * tag 'powerpc-4.9-1' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux: (156 commits)
    powerpc/bpf: Add support for bpf constant blinding
    powerpc/bpf: Implement support for tail calls
    powerpc/bpf: Introduce accessors for using the tmp local stack space
    powerpc/fadump: Fix build break when CONFIG_PROC_VMCORE=n
    powerpc: tm: Enable transactional memory (TM) lazily for userspace
    powerpc/tm: Add TM Unavailable Exception
    powerpc: Remove do_load_up_transact_{fpu,altivec}
    powerpc: tm: Rename transct_(*) to ck(\1)_state
    powerpc: tm: Always use fp_state and vr_state to store live registers
    selftests/powerpc: Add checks for transactional VSXs in signal contexts
    selftests/powerpc: Add checks for transactional VMXs in signal contexts
    selftests/powerpc: Add checks for transactional FPUs in signal contexts
    selftests/powerpc: Add checks for transactional GPRs in signal contexts
    selftests/powerpc: Check that signals always get delivered
    selftests/powerpc: Add TM tcheck helpers in C
    selftests/powerpc: Allow tests to extend their kill timeout
    selftests/powerpc: Introduce GPR asm helper header file
    selftests/powerpc: Move VMX stack frame macros to header file
    selftests/powerpc: Rework FPU stack placement macros and move to header file
    selftests/powerpc: Check for VSX preservation across userspace preemption
    ...

    Linus Torvalds
     

01 Oct, 2016

1 commit


30 Sep, 2016

23 commits


29 Sep, 2016

4 commits


28 Sep, 2016

11 commits

  • Sparse reports a below warning.

    sound/soc/codecs/da7219.c:804:57: warning: dubious: x & !y

    The line includes a condition statement; '(a < b) & !c'. Practically, the
    evaluated value of this statement equals to the value of '(a < b) && !c'.
    Although, it's not an usual way to use bitwise operations as logical
    operations to several conditions.

    This commit fixes the bug.

    Signed-off-by: Takashi Sakamoto
    Acked-by: Adam Thomson
    Signed-off-by: Mark Brown

    Takashi Sakamoto
     
  • This hardware supports only 2-channel DAI, even mono ADC digital output
    has two channels with the same data.

    Having min_channels=1 results in broken playback of mono files in setups
    where CPU DAI supports mono.

    Signed-off-by: Nikita Yushchenko
    Signed-off-by: Mark Brown

    Nikita Yushchenko
     
  • As long as reading datasheet of STAC9766/9767, this driver includes wrong
    usage of DECLARE_TLV_DB_LINEAR().

    In "8.1.2. Master Volume Registers", attenuation of lineout volumes is
    represented in 5 bits by -1.5 dB/step from 0 to -46.5 dB. Thus,
    'master_tlv' should be dB step representation.

    In "8.1.14. Record Gain", gain of volumes is represented in 4 bits by
    1.5 dB/step from 0 to 22.5 dB. Thus, 'record_tlv' should be dB step
    representation.

    In "8.1.5. PC BEEP Volume", attenuation of volume is represented in 4 bits
    by -3 dB/step from 0 to 45 dB. Thus, 'beep_tlv' should be dB step
    representation.

    In "8.1.7. Stereo or Mic Volume" and so on, gain of volumes is represented
    in 5 bits by -1.5 dB from 12 to -34.5 dB. Thus, 'mix_tlv' should be dB
    step representation.

    Totally, current implementation includes misuse of TLV-related macro.

    This commit replaces usage of DECLARE_TLV_DB_LINEAR() with
    SNDRV_CTL_TLVD_DECLARE_DB_SCALE(), to give proper information to
    applications in user land.

    Signed-off-by: Takashi Sakamoto
    Signed-off-by: Mark Brown

    Takashi Sakamoto
     
  • This driver has some unused variables. They should be removed.

    Signed-off-by: Takashi Sakamoto
    Acked-by: Charles Keepax
    Signed-off-by: Mark Brown

    Takashi Sakamoto
     
  • As long as reading datasheet of WM8991, this driver includes wrong usage
    of DECLARE_TLV_DB_LINEAR().

    In "Table 6 Input PGA Volume Range", volume is represented in 5 bits by
    1.5 dB/step between -16.5/30.0 dB. Thus, 'in_pga_tlv' should be dB step
    representation.

    In "Table 34 LOMIX and ROMIX Volume Range", volume is represented in three
    bits by -3 dB/step from 0 to -21 dB. Thus, 'out_mix_tlv' should be dB step
    represenation.

    In "Table 36 LOPGA, ROPGA, LOUT, ROUT and SPKVOL Volume Range", volume is
    represented in 7 bits by 1 dB/step from -73 to 6 dB, including mute. Thus,
    'out_pga_tlv' should be dB step representation.

    In "Table 26 Digital Volume Range", volume is represented in 8 bits by
    3/8 dB/step from -71.625 to 0 dB. Thus, 'out_dac_tlv' should be dB step
    representation.

    In "Table 16 ADC Digital Volume Range", volume is represented in 8 bits by
    3/8 dB/step from -71.625 to 17.625 dB. Thus, 'in_adc_tlv' should be dB step
    representation.

    In "Table 23 Digital Sidetone Volume", volume is represented in 5 bits by
    3 dB/step from -36 to 0 dB. Thus, 'out_sidetone_tlv' should be dB step
    representation.

    In "Table 12 Left Input Mixer Volume Control", volume is represented in
    3 bits by 3 dB/step from -12 to 6 dB

    Totally, current implementation includes misuse of TLV-related macro.

    This commit replaces usage of DECLARE_TLV_DB_LINEAR() with proper macros,
    to give proper information to applications in user land.

    Signed-off-by: Takashi Sakamoto
    Acked-by: Charles Keepax
    Signed-off-by: Mark Brown

    Takashi Sakamoto
     
  • Sparse reports a below warning.

    tpa6130a2.c:193:33: warning: symbol 'tpa6130a2_component_driver' was not declared. Should it be static?

    The symbol is just used inner the file. Forthermore, it's constant. Thus,
    it's better to add static and const qualifier.

    This commit adds it.

    Fixes: cb7e62256e99 (ASoC: tpa6130a2: Register component)
    Signed-off-by: Takashi Sakamoto
    Signed-off-by: Mark Brown

    Takashi Sakamoto
     
  • Sparse reports below warnings.

    bxt_rt298.c:275:9: warning: obsolete array initializer, use C99 syntax
    bxt_rt298.c:290:9: warning: obsolete array initializer, use C99 syntax
    bxt_rt298.c:304:9: warning: obsolete array initializer, use C99 syntax
    bxt_rt298.c:317:9: warning: obsolete array initializer, use C99 syntax
    bxt_rt298.c:331:9: warning: obsolete array initializer, use C99 syntax
    bxt_rt298.c:344:9: warning: obsolete array initializer, use C99 syntax
    bxt_rt298.c:357:9: warning: obsolete array initializer, use C99 syntax

    There's no need to use obsoleted way. This commit fixes it.

    Fixes: 76016322ec56 (ASoC: Intel: Add Broxton-P machine driver)
    Signed-off-by: Takashi Sakamoto
    Acked-by: Vinod Koul
    Signed-off-by: Mark Brown

    Takashi Sakamoto
     
  • Sparse reports below warnings.

    bxt_da7219_max98357a.c:250:9: warning: obsolete array initializer, use C99 syntax
    bxt_da7219_max98357a.c:275:9: warning: obsolete array initializer, use C99 syntax
    bxt_da7219_max98357a.c:290:9: warning: obsolete array initializer, use C99 syntax
    bxt_da7219_max98357a.c:304:9: warning: obsolete array initializer, use C99 syntax
    bxt_da7219_max98357a.c:317:9: warning: obsolete array initializer, use C99 syntax

    There's no need to use obsoleted way. This commit fixes it.

    Fixes: 723bad3fef8b (ASoC: Intel: Add Broxton-P Dialog Maxim machine driver)
    Signed-off-by: Takashi Sakamoto
    Acked-by: Vinod Koul
    Signed-off-by: Mark Brown

    Takashi Sakamoto
     
  • Sparse reports below warnings.

    rt5616.c:1270:24: warning: symbol 'rt5616_aif_dai_ops' was not declared. Should it be static?
    rt5616.c:1277:27: warning: symbol 'rt5616_dai' was not declared. Should it be static?

    These two symbols are just used inner the file, thus it's better to add
    static qualifier.

    This commit adds it.

    Signed-off-by: Takashi Sakamoto
    Signed-off-by: Mark Brown

    Takashi Sakamoto
     
  • The later Arizona parts do run write sequences to power up and down the
    speaker path as such a delay needs to be inserted into the DAPM sequence
    to allow this to run. This patch adds appropriate delays into the
    existing coalesced delay scheme.

    Signed-off-by: Charles Keepax
    Signed-off-by: Mark Brown

    Charles Keepax
     
  • When debugging it is useful to check the total power up/down delay that
    is executed as part of the coalesced output delay. This patch adds some
    debug prints for this.

    Signed-off-by: Charles Keepax
    Signed-off-by: Mark Brown

    Charles Keepax