Jason Yan
1137a96f9b
kgdb: Return true in kgdb_nmi_poll_knock()
...
Fix the following coccicheck warning:
include/linux/kgdb.h:301:54-55: WARNING: return of 0/1 in function
'kgdb_nmi_poll_knock' with return type bool
Signed-off-by: Jason Yan <yanaijie@huawei.com >
Link: https://lore.kernel.org/r/20200507110649.37426-1-yanaijie@huawei.com
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org >
2020-05-07 15:20:55 +01:00
Andy Shevchenko
a135020736
kgdb: Drop malformed kernel doc comment
...
Kernel doc does not understand POD variables to be referred to.
.../debug_core.c:73: warning: cannot understand function prototype:
'int kgdb_connected; '
Convert kernel doc to pure comment.
Fixes: dc7d552705 ("kgdb: core")
Cc: Jason Wessel <jason.wessel@windriver.com >
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com >
Reviewed-by: Douglas Anderson <dianders@chromium.org >
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org >
2020-05-07 15:16:19 +01:00
Daniel Thompson
3fec4aecb3
kgdb: Fix spurious true from in_dbg_master()
...
Currently there is a small window where a badly timed migration could
cause in_dbg_master() to spuriously return true. Specifically if we
migrate to a new core after reading the processor id and the previous
core takes a breakpoint then we will evaluate true if we read
kgdb_active before we get the IPI to bring us to halt.
Fix this by checking irqs_disabled() first. Interrupts are always
disabled when we are executing the kgdb trap so this is an acceptable
prerequisite. This also allows us to replace raw_smp_processor_id()
with smp_processor_id() since the short circuit logic will prevent
warnings from PREEMPT_DEBUG.
Fixes: dcc7871128 ("kgdb: core changes to support kdb")
Suggested-by: Will Deacon <will@kernel.org >
Link: https://lore.kernel.org/r/20200506164223.2875760-1-daniel.thompson@linaro.org
Reviewed-by: Douglas Anderson <dianders@chromium.org >
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org >
2020-05-07 15:12:27 +01:00
Kyung Min Park
cec5f268cd
x86/delay: Introduce TPAUSE delay
...
TPAUSE instructs the processor to enter an implementation-dependent
optimized state. The instruction execution wakes up when the time-stamp
counter reaches or exceeds the implicit EDX:EAX 64-bit input value.
The instruction execution also wakes up due to the expiration of
the operating system time-limit or by an external interrupt
or exceptions such as a debug exception or a machine check exception.
TPAUSE offers a choice of two lower power states:
1. Light-weight power/performance optimized state C0.1
2. Improved power/performance optimized state C0.2
This way, it can save power with low wake-up latency in comparison to
spinloop based delay. The selection between the two is governed by the
input register.
TPAUSE is available on processors with X86_FEATURE_WAITPKG.
Co-developed-by: Fenghua Yu <fenghua.yu@intel.com >
Signed-off-by: Fenghua Yu <fenghua.yu@intel.com >
Signed-off-by: Kyung Min Park <kyung.min.park@intel.com >
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
Reviewed-by: Tony Luck <tony.luck@intel.com >
Link: https://lkml.kernel.org/r/1587757076-30337-4-git-send-email-kyung.min.park@intel.com
2020-05-07 16:06:20 +02:00
Kyung Min Park
46f90c7aad
x86/delay: Refactor delay_mwaitx() for TPAUSE support
...
Refactor code to make it easier to add a new model specific function to
delay for a number of cycles.
No functional change.
Co-developed-by: Fenghua Yu <fenghua.yu@intel.com >
Signed-off-by: Fenghua Yu <fenghua.yu@intel.com >
Signed-off-by: Kyung Min Park <kyung.min.park@intel.com >
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
Reviewed-by: Tony Luck <tony.luck@intel.com >
Link: https://lkml.kernel.org/r/1587757076-30337-3-git-send-email-kyung.min.park@intel.com
2020-05-07 16:06:19 +02:00
Thomas Gleixner
e882489024
x86/delay: Preparatory code cleanup
...
The naming conventions in the delay code are confusing at best.
All delay variants use a loops argument and or variable which originates
from the original delay_loop() implementation. But all variants except
delay_loop() are based on TSC cycles.
Rename the argument to cycles and make it type u64 to avoid these weird
expansions to u64 in the functions.
Rename MWAITX_MAX_LOOPS to MWAITX_MAX_WAIT_CYCLES for the same reason
and fixup the comment of delay_mwaitx() as well.
Mark the delay_fn function pointer __ro_after_init and fixup the comment
for it.
No functional change and preparation for the upcoming TPAUSE based delay
variant.
[ Kyung Min Park: Added __init to use_tsc_delay() ]
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
Signed-off-by: Kyung Min Park <kyung.min.park@intel.com >
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
Link: https://lkml.kernel.org/r/1587757076-30337-2-git-send-email-kyung.min.park@intel.com
2020-05-07 16:06:19 +02:00
Vincenzo Frascino
7e9f5e6629
arm64: vdso: Add --eh-frame-hdr to ldflags
...
LLVM's unwinder depends on the .eh_frame_hdr being present for
unwinding. However, when compiling Linux with GCC, the section
is not present in the vdso library object and when compiling
with Clang, it is present, but it has zero length.
With GCC the problem was not spotted because libgcc unwinder does
not require the .eh_frame_hdr section to be present.
Add --eh-frame-hdr to ldflags to correctly generate and populate
the section for both GCC and LLVM.
Fixes: 28b1a824a4 ("arm64: vdso: Substitute gettimeofday() with C implementation")
Reported-by: Tamas Zsoldos <tamas.zsoldos@arm.com >
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com >
Tested-by: Tamas Zsoldos <tamas.zsoldos@arm.com >
Cc: Will Deacon <will@kernel.org >
Cc: Catalin Marinas <catalin.marinas@arm.com >
Link: https://lore.kernel.org/r/20200507104049.47834-1-vincenzo.frascino@arm.com
Signed-off-by: Will Deacon <will@kernel.org >
2020-05-07 14:40:12 +01:00
Christoph Hellwig
2981cf8361
x86/platform/uv: Remove the unused _uv_cpu_blade_processor_id() macro
...
No users anywhere in the kernel tree.
Signed-off-by: Christoph Hellwig <hch@lst.de >
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
Not-acked-by: Dimitri Sivanich <sivanich@hpe.com >
Cc: Russ Anderson <rja@hpe.com >
Link: https://lkml.kernel.org/r/20200504171527.2845224-12-hch@lst.de
2020-05-07 15:32:23 +02:00
Christoph Hellwig
479d6d9045
x86/platform/uv: Unexport uv_apicid_hibits
...
This variable is not used by modular code.
Signed-off-by: Christoph Hellwig <hch@lst.de >
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
Link: https://lkml.kernel.org/r/20200504171527.2845224-11-hch@lst.de
2020-05-07 15:32:23 +02:00
Christoph Hellwig
fbe1d37866
x86/platform/uv: Remove _uv_hub_info_check()
...
Neither this functions nor the helpers used to implement it are used
anywhere in the kernel tree.
Signed-off-by: Christoph Hellwig <hch@lst.de >
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
Not-acked-by: Dimitri Sivanich <sivanich@hpe.com >
Cc: Russ Anderson <rja@hpe.com >
Link: https://lkml.kernel.org/r/20200504171527.2845224-10-hch@lst.de
2020-05-07 15:32:23 +02:00
Christoph Hellwig
8e77554580
x86/platform/uv: Simplify uv_send_IPI_one()
...
Merge two helpers only used by uv_send_IPI_one() into the main function.
Signed-off-by: Christoph Hellwig <hch@lst.de >
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
Not-acked-by: Dimitri Sivanich <sivanich@hpe.com >
Cc: Russ Anderson <rja@hpe.com >
Link: https://lkml.kernel.org/r/20200504171527.2845224-9-hch@lst.de
2020-05-07 15:32:22 +02:00
Christoph Hellwig
8263b05937
x86/platform/uv: Mark uv_min_hub_revision_id static
...
This variable is only used inside x2apic_uv_x and not even declared
in a header.
Signed-off-by: Christoph Hellwig <hch@lst.de >
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
Not-acked-by: Dimitri Sivanich <sivanich@hpe.com >
Cc: Russ Anderson <rja@hpe.com >
Link: https://lkml.kernel.org/r/20200504171527.2845224-8-hch@lst.de
2020-05-07 15:32:22 +02:00
Christoph Hellwig
e4dd8b8351
x86/platform/uv: Mark is_uv_hubless() static
...
is_uv_hubless() is only used in x2apic_uv_x.c.
Signed-off-by: Christoph Hellwig <hch@lst.de >
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
Not-acked-by: Dimitri Sivanich <sivanich@hpe.com >
Cc: Russ Anderson <rja@hpe.com >
Link: https://lkml.kernel.org/r/20200504171527.2845224-7-hch@lst.de
2020-05-07 15:32:21 +02:00
Christoph Hellwig
cc19910587
x86/platform/uv: Remove the UV*_HUB_IS_SUPPORTED macros
...
All of the macros are always defined to one. Remove them and the dead
code keyed off them.
Signed-off-by: Christoph Hellwig <hch@lst.de >
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
Not-acked-by: Dimitri Sivanich <sivanich@hpe.com >
Cc: Russ Anderson <rja@hpe.com >
Link: https://lkml.kernel.org/r/20200504171527.2845224-6-hch@lst.de
2020-05-07 15:32:21 +02:00
Christoph Hellwig
2bd04b6fe4
x86/platform/uv: Unexport symbols only used by x2apic_uv_x.c
...
uv_bios_set_legacy_vga_target, uv_bios_freq_base, uv_bios_get_sn_info,
uv_type, system_serial_number and sn_region_size are only used in
x2apic_uv_x.c, which can't be modular.
Signed-off-by: Christoph Hellwig <hch@lst.de >
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
Not-acked-by: Dimitri Sivanich <sivanich@hpe.com >
Cc: Russ Anderson <rja@hpe.com >
Link: https://lkml.kernel.org/r/20200504171527.2845224-5-hch@lst.de
2020-05-07 15:32:20 +02:00
Christoph Hellwig
23e1a65f3c
x86/platform/uv: Unexport sn_coherency_id
...
sn_coherency_id is only used by x2apic_uv_x.c, and uv_sysfs.c, both
of which can't be modular.
Signed-off-by: Christoph Hellwig <hch@lst.de >
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
Not-acked-by: Dimitri Sivanich <sivanich@hpe.com >
Cc: Russ Anderson <rja@hpe.com >
Link: https://lkml.kernel.org/r/20200504171527.2845224-4-hch@lst.de
2020-05-07 15:32:20 +02:00
Christoph Hellwig
32988cfd57
x86/platform/uv: Remove the uv_partition_coherence_id() macro
...
uv_partition_coherence_id() is only used once. Just open code it in the
only user.
Signed-off-by: Christoph Hellwig <hch@lst.de >
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
Not-acked-by: Dimitri Sivanich <sivanich@hpe.com >
Cc: Russ Anderson <rja@hpe.com >
Link: https://lkml.kernel.org/r/20200504171527.2845224-3-hch@lst.de
2020-05-07 15:32:19 +02:00
Christoph Hellwig
30ad8db3a2
x86/platform/uv: Mark uv_bios_call() and uv_bios_call_irqsave() static
...
Both functions are only used inside of bios_uv.c.
Signed-off-by: Christoph Hellwig <hch@lst.de >
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
Not-acked-by: Dimitri Sivanich <sivanich@hpe.com >
Cc: Russ Anderson <rja@hpe.com >
Link: https://lkml.kernel.org/r/20200504171527.2845224-2-hch@lst.de
2020-05-07 15:32:19 +02:00
Andre Przywara
bd0d696023
dt-bindings: arm-smmu: Allow mmu-400, smmu-v1 compatible
...
The Arm SMMUv1 DT binding only allows combining arm,mmu-401 with
arm,smmu-v1, even though the MMU-400 is compatible as well.
Allow this combination as well to let the Arm Juno board pass the test.
Signed-off-by: Andre Przywara <andre.przywara@arm.com >
Acked-by: Robin Murphy <robin.murphy@arm.com >
Link: https://lore.kernel.org/r/20200507112430.183940-2-andre.przywara@arm.com
Signed-off-by: Will Deacon <will@kernel.org >
2020-05-07 14:24:37 +01:00
Sibi Sankar
68aee4af5f
arm64: dts: qcom: sdm845-cheza: Add iommus property
...
Add iommus property to remoteproc modem node.
Following SMMU global faults are seen without it.
arm-smmu 15000000.iommu: Unexpected global fault, this could be serious
arm-smmu 15000000.iommu: GFSR 0x80000002, GFSYNR0 0x00000000,
GFSYNR1 0x00000781, GFSYNR2 0x00000000
arm-smmu 15000000.iommu: Unexpected global fault, this could be serious
arm-smmu 15000000.iommu: GFSR 0x80000002, GFSYNR0 0x00000000,
GFSYNR1 0x00000461, GFSYNR2 0x00000000
Signed-off-by: Sibi Sankar <sibis@codeaurora.org >
Signed-off-by: Sai Prakash Ranjan <saiprakash.ranjan@codeaurora.org >
Link: https://lore.kernel.org/r/38c607841e81664a2db69a27260cd7dfbd653458.1587407458.git.saiprakash.ranjan@codeaurora.org
Signed-off-by: Will Deacon <will@kernel.org >
2020-05-07 14:21:42 +01:00
Sibi Sankar
23cf515c60
dt-bindings: remoteproc: qcom: Add iommus property
...
Add iommus property to allow Q6 modem to boot on platforms which do
not have trustZone.
Signed-off-by: Sibi Sankar <sibis@codeaurora.org >
Signed-off-by: Sai Prakash Ranjan <saiprakash.ranjan@codeaurora.org >
Acked-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/561e9b42b8665fc9712fdb40a525ab8871fcbdac.1587407458.git.saiprakash.ranjan@codeaurora.org
Signed-off-by: Will Deacon <will@kernel.org >
2020-05-07 14:21:42 +01:00
Jordan Crouse
0e764a0101
iommu/arm-smmu: Allow client devices to select direct mapping
...
Some client devices want to directly map the IOMMU themselves instead
of using the DMA domain. Allow those devices to opt in to direct
mapping by way of a list of compatible strings.
Co-developed-by: Sai Prakash Ranjan <saiprakash.ranjan@codeaurora.org >
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org >
Signed-off-by: Sai Prakash Ranjan <saiprakash.ranjan@codeaurora.org >
Reviewed-by: Robin Murphy <robin.murphy@arm.com >
Link: https://lore.kernel.org/r/7cf1f64167b5545b7f42275395be1f1e2ea3a6ac.1587407458.git.saiprakash.ranjan@codeaurora.org
Signed-off-by: Will Deacon <will@kernel.org >
2020-05-07 14:21:42 +01:00
Sai Prakash Ranjan
232c5ae8a3
iommu/arm-smmu: Implement iommu_ops->def_domain_type call-back
...
Implement the new def_domain_type call-back for the ARM
SMMU driver. We need this to support requesting the domain
type by the client devices.
Signed-off-by: Sai Prakash Ranjan <saiprakash.ranjan@codeaurora.org >
Reviewed-by: Robin Murphy <robin.murphy@arm.com >
Link: https://lore.kernel.org/r/28c5d101cc4ac29aff3553ecec7cf256d0907ed7.1587407458.git.saiprakash.ranjan@codeaurora.org
Signed-off-by: Will Deacon <will@kernel.org >
2020-05-07 14:21:42 +01:00
Sai Prakash Ranjan
64510ede36
iommu: arm-smmu-impl: Convert to a generic reset implementation
...
Currently the QCOM specific smmu reset implementation is very
specific to SDM845 SoC and has a wait-for-safe logic which
may not be required for other SoCs. So move the SDM845 specific
logic to its specific reset function. Also add SC7180 SMMU
compatible for calling into QCOM specific implementation.
Signed-off-by: Sai Prakash Ranjan <saiprakash.ranjan@codeaurora.org >
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org >
Reviewed-by: Stephen Boyd <swboyd@chromium.org >
Reviewed-by: Robin Murphy <robin.murphy@arm.com >
Link: https://lore.kernel.org/r/d24a0278021bc0b2732636c5728efe55e7318a8b.1587407458.git.saiprakash.ranjan@codeaurora.org
Signed-off-by: Will Deacon <will@kernel.org >
2020-05-07 14:21:42 +01:00
Sai Prakash Ranjan
02782f3d60
iommu/arm-smmu: Make remove callback message more informative
...
Currently on reboot/shutdown, the following messages are
displayed on the console as error messages before the
system reboots/shutdown as part of remove callback.
On SC7180:
arm-smmu 15000000.iommu: removing device with active domains!
arm-smmu 5040000.iommu: removing device with active domains!
Make this error message more informative and less scary.
Reported-by: Douglas Anderson <dianders@chromium.org >
Suggested-by: Robin Murphy <robin.murphy@arm.com >
Signed-off-by: Sai Prakash Ranjan <saiprakash.ranjan@codeaurora.org >
Reviewed-by: Douglas Anderson <dianders@chromium.org >
Link: https://lore.kernel.org/r/20200423095531.9868-1-saiprakash.ranjan@codeaurora.org
[will: use dev_notice() as per Robin]
Signed-off-by: Will Deacon <will@kernel.org >
2020-05-07 14:20:29 +01:00
Qais Yousef
fb7fb84a0c
cpu/hotplug: Remove __freeze_secondary_cpus()
...
The refactored function is no longer required as the codepaths that call
freeze_secondary_cpus() are all suspend/resume related now.
Signed-off-by: Qais Yousef <qais.yousef@arm.com >
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net >
Link: https://lkml.kernel.org/r/20200430114004.17477-2-qais.yousef@arm.com
2020-05-07 15:18:41 +02:00
Qais Yousef
5655585589
cpu/hotplug: Remove disable_nonboot_cpus()
...
The single user could have called freeze_secondary_cpus() directly.
Since this function was a source of confusion, remove it as it's
just a pointless wrapper.
While at it, rename enable_nonboot_cpus() to thaw_secondary_cpus() to
preserve the naming symmetry.
Done automatically via:
git grep -l enable_nonboot_cpus | xargs sed -i 's/enable_nonboot_cpus/thaw_secondary_cpus/g'
Signed-off-by: Qais Yousef <qais.yousef@arm.com >
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net >
Link: https://lkml.kernel.org/r/20200430114004.17477-1-qais.yousef@arm.com
2020-05-07 15:18:40 +02:00
Ben Chuang
b56ff195c3
mmc: sdhci-pci-gli: Fix can not access GL9750 after reboot from Windows 10
...
Need to clear some bits in a vendor-defined register after reboot from
Windows 10.
Fixes: e51df6ce66 ("mmc: host: sdhci-pci: Add Genesys Logic GL975x support")
Reported-by: Grzegorz Kowal <custos.mentis@gmail.com >
Signed-off-by: Ben Chuang <ben.chuang@genesyslogic.com.tw >
Acked-by: Adrian Hunter <adrian.hunter@intel.com >
Tested-by: Grzegorz Kowal <custos.mentis@gmail.com >
Link: https://lore.kernel.org/r/20200504063957.6638-1-benchuanggli@gmail.com
Cc: stable@vger.kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org >
2020-05-07 15:10:25 +02:00
Christophe JAILLET
7c277dd2b0
mmc: alcor: Fix a resource leak in the error path for ->probe()
...
If devm_request_threaded_irq() fails, the allocated struct mmc_host needs
to be freed via calling mmc_free_host(), so let's do that.
Fixes: c5413ad815 ("mmc: add new Alcor Micro Cardreader SD/MMC driver")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr >
Link: https://lore.kernel.org/r/20200426202355.43055-1-christophe.jaillet@wanadoo.fr
Cc: stable@vger.kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org >
2020-05-07 15:10:25 +02:00
Ben Chuang
282ede76e4
mmc: sdhci-pci-gli: Fix no irq handler from suspend
...
The kernel prints a message similar to
"[ 28.881959] do_IRQ: 5.36 No irq handler for vector"
when GL975x resumes from suspend. Implement a resume callback to fix this.
Fixes: 31e43f3189 ("mmc: sdhci-pci-gli: Enable MSI interrupt for GL975x")
Co-developed-by: Renius Chen <renius.chen@genesyslogic.com.tw >
Signed-off-by: Renius Chen <renius.chen@genesyslogic.com.tw >
Tested-by: Dave Flogeras <dflogeras2@gmail.com >
Signed-off-by: Ben Chuang <ben.chuang@genesyslogic.com.tw >
Tested-by: Vineeth Pillai <vineethrp@gmail.com >
Acked-by: Adrian Hunter <adrian.hunter@intel.com >
Link: https://lore.kernel.org/r/20200427103048.20785-1-benchuanggli@gmail.com
Cc: stable@vger.kernel.org
Signed-off-by: Samuel Zou <zou_wei@huawei.com >
[Samuel Zou: Make sdhci_pci_gli_resume() static]
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org >
2020-05-07 15:08:59 +02:00
Cédric Le Goater
b1f9be9392
powerpc/xive: Enforce load-after-store ordering when StoreEOI is active
...
When an interrupt has been handled, the OS notifies the interrupt
controller with a EOI sequence. On a POWER9 system using the XIVE
interrupt controller, this can be done with a load or a store
operation on the ESB interrupt management page of the interrupt. The
StoreEOI operation has less latency and improves interrupt handling
performance but it was deactivated during the POWER9 DD2.0 timeframe
because of ordering issues. We use the LoadEOI today but we plan to
reactivate StoreEOI in future architectures.
There is usually no need to enforce ordering between ESB load and
store operations as they should lead to the same result. E.g. a store
trigger and a load EOI can be executed in any order. Assuming the
interrupt state is PQ=10, a store trigger followed by a load EOI will
return a Q bit. In the reverse order, it will create a new interrupt
trigger from HW. In both cases, the handler processing interrupts is
notified.
In some cases, the XIVE_ESB_SET_PQ_10 load operation is used to
disable temporarily the interrupt source (mask/unmask). When the
source is reenabled, the OS can detect if interrupts were received
while the source was disabled and reinject them. This process needs
special care when StoreEOI is activated. The ESB load and store
operations should be correctly ordered because a XIVE_ESB_STORE_EOI
operation could leave the source enabled if it has not completed
before the loads.
For those cases, we enforce Load-after-Store ordering with a special
load operation offset. To avoid performance impact, this ordering is
only enforced when really needed, that is when interrupt sources are
temporarily disabled with the XIVE_ESB_SET_PQ_10 load. It should not
be needed for other loads.
Signed-off-by: Cédric Le Goater <clg@kaod.org >
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au >
Link: https://lore.kernel.org/r/20200220081506.31209-1-clg@kaod.org
2020-05-07 22:58:31 +10:00
Marek Vasut
f572f48589
ARM: dts: stm32: Add bindings for SPI2 on AV96
...
Add SPI2 bindings to AV96 DT, the SPI2 IOs are present on
low-speed expansion connector X6. This is disabled by default
and can be enabled if something is connected there.
Signed-off-by: Marek Vasut <marex@denx.de >
Cc: Alexandre Torgue <alexandre.torgue@st.com >
Cc: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org >
Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com >
Cc: Patrice Chotard <patrice.chotard@st.com >
Cc: Patrick Delaunay <patrick.delaunay@st.com >
Cc: linux-stm32@st-md-mailman.stormreply.com
To: linux-arm-kernel@lists.infradead.org
Signed-off-by: Alexandre Torgue <alexandre.torgue@st.com >
2020-05-07 14:48:06 +02:00
Marek Vasut
5afb13616b
ARM: dts: stm32: Add alternate pinmux for SPI2 pins
...
Add another mux option for SPI2 pins, this is used on AV96 board.
Signed-off-by: Marek Vasut <marex@denx.de >
Cc: Alexandre Torgue <alexandre.torgue@st.com >
Cc: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org >
Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com >
Cc: Patrice Chotard <patrice.chotard@st.com >
Cc: Patrick Delaunay <patrick.delaunay@st.com >
Cc: linux-stm32@st-md-mailman.stormreply.com
To: linux-arm-kernel@lists.infradead.org
Signed-off-by: Alexandre Torgue <alexandre.torgue@st.com >
2020-05-07 14:48:06 +02:00
Marek Vasut
8f92c75653
ARM: dts: stm32: Add bindings for ADC on AV96
...
Add ADC bindings to AV96 DT, the ADC inputs are present on
low-speed expansion connector X6.
Signed-off-by: Marek Vasut <marex@denx.de >
Cc: Alexandre Torgue <alexandre.torgue@st.com >
Cc: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org >
Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com >
Cc: Patrice Chotard <patrice.chotard@st.com >
Cc: Patrick Delaunay <patrick.delaunay@st.com >
Cc: linux-stm32@st-md-mailman.stormreply.com
To: linux-arm-kernel@lists.infradead.org
Signed-off-by: Alexandre Torgue <alexandre.torgue@st.com >
2020-05-07 14:48:06 +02:00
Marek Vasut
d56eb118c3
ARM: dts: stm32: Add alternate pinmux for ADC pins
...
Add another mux option for ADC pins, this is used on AV96 board.
Signed-off-by: Marek Vasut <marex@denx.de >
Cc: Alexandre Torgue <alexandre.torgue@st.com >
Cc: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org >
Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com >
Cc: Patrice Chotard <patrice.chotard@st.com >
Cc: Patrick Delaunay <patrick.delaunay@st.com >
Cc: linux-stm32@st-md-mailman.stormreply.com
To: linux-arm-kernel@lists.infradead.org
Signed-off-by: Alexandre Torgue <alexandre.torgue@st.com >
2020-05-07 14:48:06 +02:00
Marek Vasut
c80b9dacdc
ARM: dts: stm32: Add bindings for FDCAN2 on AV96
...
Add FDCAN2 bindings to AV96 DT, the FDCAN2 is present on low-speed
expansion connector X6. This is disabled by default to match the
96boards specification though.
Signed-off-by: Marek Vasut <marex@denx.de >
Cc: Alexandre Torgue <alexandre.torgue@st.com >
Cc: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org >
Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com >
Cc: Patrice Chotard <patrice.chotard@st.com >
Cc: Patrick Delaunay <patrick.delaunay@st.com >
Cc: linux-stm32@st-md-mailman.stormreply.com
To: linux-arm-kernel@lists.infradead.org
Signed-off-by: Alexandre Torgue <alexandre.torgue@st.com >
2020-05-07 14:48:06 +02:00
Marek Vasut
0993184459
ARM: dts: stm32: Add alternate pinmux for FDCAN2 pins
...
Add another mux option for FDCAN2 pins, this is used on AV96 board.
Signed-off-by: Marek Vasut <marex@denx.de >
Cc: Alexandre Torgue <alexandre.torgue@st.com >
Cc: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org >
Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com >
Cc: Patrice Chotard <patrice.chotard@st.com >
Cc: Patrick Delaunay <patrick.delaunay@st.com >
Cc: linux-stm32@st-md-mailman.stormreply.com
To: linux-arm-kernel@lists.infradead.org
Signed-off-by: Alexandre Torgue <alexandre.torgue@st.com >
2020-05-07 14:48:06 +02:00
Marek Vasut
b0b3a8b7be
ARM: dts: stm32: Add bindings for FDCAN1 on AV96
...
Add FDCAN1 bindings to AV96 DT, the FDCAN1 is present on low-speed
expansion connector X6. This is disabled by default to match the
96boards specification though.
Signed-off-by: Marek Vasut <marex@denx.de >
Cc: Alexandre Torgue <alexandre.torgue@st.com >
Cc: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org >
Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com >
Cc: Patrice Chotard <patrice.chotard@st.com >
Cc: Patrick Delaunay <patrick.delaunay@st.com >
Cc: linux-stm32@st-md-mailman.stormreply.com
To: linux-arm-kernel@lists.infradead.org
Signed-off-by: Alexandre Torgue <alexandre.torgue@st.com >
2020-05-07 14:48:06 +02:00
Marek Vasut
39be968cb5
ARM: dts: stm32: Add alternate pinmux for FDCAN1 pins
...
Add another mux option for FDCAN1 pins, this is used on AV96 board.
Signed-off-by: Marek Vasut <marex@denx.de >
Cc: Alexandre Torgue <alexandre.torgue@st.com >
Cc: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org >
Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com >
Cc: Patrice Chotard <patrice.chotard@st.com >
Cc: Patrick Delaunay <patrick.delaunay@st.com >
Cc: linux-stm32@st-md-mailman.stormreply.com
To: linux-arm-kernel@lists.infradead.org
Signed-off-by: Alexandre Torgue <alexandre.torgue@st.com >
2020-05-07 14:48:06 +02:00
Marek Vasut
b1c1fe1d43
ARM: dts: stm32: Repair I2C2 operation on AV96
...
The I2C2 uses different pinmux on AV96, use correct pinmux and
also add comments about the I2C being present on the "low-speed"
expansion connector X6.
Signed-off-by: Marek Vasut <marex@denx.de >
Cc: Alexandre Torgue <alexandre.torgue@st.com >
Cc: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org >
Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com >
Cc: Patrice Chotard <patrice.chotard@st.com >
Cc: Patrick Delaunay <patrick.delaunay@st.com >
Cc: linux-stm32@st-md-mailman.stormreply.com
To: linux-arm-kernel@lists.infradead.org
Signed-off-by: Alexandre Torgue <alexandre.torgue@st.com >
2020-05-07 14:48:06 +02:00
Marek Vasut
11b08c4633
ARM: dts: stm32: Add alternate pinmux for I2C2 pins
...
Add another mux option for I2C2 pins, this is used on AV96 board.
Signed-off-by: Marek Vasut <marex@denx.de >
Cc: Alexandre Torgue <alexandre.torgue@st.com >
Cc: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org >
Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com >
Cc: Patrice Chotard <patrice.chotard@st.com >
Cc: Patrick Delaunay <patrick.delaunay@st.com >
Cc: linux-stm32@st-md-mailman.stormreply.com
To: linux-arm-kernel@lists.infradead.org
Signed-off-by: Alexandre Torgue <alexandre.torgue@st.com >
2020-05-07 14:47:57 +02:00
Andy Shevchenko
a041e672cb
spi: dw: Get rid of dma_inited flag
...
This flag is superfluous in all cases where it's being used, i.e.
* ->can_dma() won't be called without dma_inited == 1
* DMA ->exit() callback can rely on txchan and rxchan variables
So, get rid of dma_inited flag.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com >
Link: https://lore.kernel.org/r/20200507115449.8093-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org >
2020-05-07 13:43:00 +01:00
Andy Shevchenko
140e45e1e6
spi: dw: Avoid useless assignments in generic DMA setup
...
Generic DMA setup doesn't rely on certain type of DMA controller and thus
shouldn't use Intel Medfield settings, although it's harmless in this case.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com >
Link: https://lore.kernel.org/r/20200507115449.8093-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org >
2020-05-07 13:42:59 +01:00
ChenTao
c16e923dd6
soc: fsl_asrc: Make some functions static
...
Fix the following warning:
sound/soc/fsl/fsl_asrc.c:157:5: warning:
symbol 'fsl_asrc_request_pair' was not declared. Should it be static?
sound/soc/fsl/fsl_asrc.c:200:6: warning:
symbol 'fsl_asrc_release_pair' was not declared. Should it be static?
Reported-by: Hulk Robot <hulkci@huawei.com >
Signed-off-by: ChenTao <chentao107@huawei.com >
Link: https://lore.kernel.org/r/20200507022959.183739-1-chentao107@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org >
2020-05-07 13:18:06 +01:00
Oder Chiou
7ae07308e4
ASoC: rt1016: Add the devicetree file for the rt1016
...
The patch adds the devicetree file for the rt1016.
Signed-off-by: Oder Chiou <oder_chiou@realtek.com >
Link: https://lore.kernel.org/r/20200507021539.7133-2-oder_chiou@realtek.com
Signed-off-by: Mark Brown <broonie@kernel.org >
2020-05-07 13:18:05 +01:00
Oder Chiou
79a4b670b4
ASoC: rt1016: Add the rt1016 support
...
The patch adds the rt1016 support.
Signed-off-by: Oder Chiou <oder_chiou@realtek.com >
Link: https://lore.kernel.org/r/20200507021539.7133-1-oder_chiou@realtek.com
Signed-off-by: Mark Brown <broonie@kernel.org >
2020-05-07 13:18:04 +01:00
Wei Yongjun
9558ad2155
ASoC: rt5677: Use devm_snd_soc_register_component()
...
Using devm_snd_soc_register_component() can make the code
shorter and cleaner.
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com >
Link: https://lore.kernel.org/r/20200507094335.14302-1-weiyongjun1@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org >
2020-05-07 13:18:03 +01:00
Tzung-Bi Shih
fe94462519
ASoC: mediatek: mt8183: fix error handling of platform_get_irq()
...
platform_get_irq() returns negative value on error instead of 0.
Signed-off-by: Tzung-Bi Shih <tzungbi@google.com >
Link: https://lore.kernel.org/r/20200507015442.191336-1-tzungbi@google.com
Signed-off-by: Mark Brown <broonie@kernel.org >
2020-05-07 12:51:30 +01:00
Borislav Petkov
66abf23883
x86/apic: Convert the TSC deadline timer matching to steppings macro
...
... and get rid of the function pointers which would spit out the
microcode revision based on the CPU stepping.
Signed-off-by: Borislav Petkov <bp@suse.de >
Reviewed-by: Mark Gross <mgross.linux.intel.com>
Cc: Peter Zijlstra (Intel) <peterz@infradead.org >
Link: https://lkml.kernel.org/r/20200506071516.25445-4-bp@alien8.de
2020-05-07 13:50:32 +02:00
Borislav Petkov
d8422f6bb0
x86/cpu: Add a X86_MATCH_INTEL_FAM6_MODEL_STEPPINGS() macro
...
... to match Intel family 6 CPUs with steppings.
Signed-off-by: Borislav Petkov <bp@suse.de >
Reviewed-by: Mark Gross <mgross@linux.intel.com >
Link: https://lkml.kernel.org/r/20200506071516.25445-3-bp@alien8.de
2020-05-07 13:48:05 +02:00