Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

index.html #1107

Closed
wants to merge 72 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
c43ec96
dmaengine: at_xdmac: avoid null_prt_deref in at_xdmac_prep_dma_memset
Oct 29, 2024
f0e870a
dmaengine: dw: Select only supported masters for ACPI devices
andy-shev Nov 4, 2024
4b65d53
dmaengine: loongson2-apb: Change GENMASK to GENMASK_ULL
Oct 28, 2024
790fb99
linux/dmaengine.h: fix a few kernel-doc warnings
rddunlap Dec 2, 2024
8d55e8a
dmaengine: apple-admac: Avoid accessing registers in probe
WhatAmISupposedToPutHere Nov 24, 2024
dcbef07
dmaengine: amd: qdma: Remove using the private get and set dma_ops APIs
houlz0507 Sep 18, 2024
0a92ea8
phy: usb: Toggle the PHY power during init
Ryceancurry Oct 24, 2024
fbcbffb
phy: rockchip: naneng-combphy: fix phy reset
aiamadeus Nov 22, 2024
8886fb3
phy: qcom-qmp: Fix register name in RX Lane config of SC8280XP
Nov 12, 2024
2de679e
phy: stm32: work around constant-value overflow assertion
arndb Nov 11, 2024
d8e4771
mtd: rawnand: fix double free in atmel_pmecc_create_user()
Oct 23, 2024
9b458e8
mtd: diskonchip: Cast an operand to prevent potential overflow
Gax-c Oct 23, 2024
b086a46
mtd: rawnand: arasan: Fix double assertion of chip-select
mandrzejewski-iceye Dec 2, 2024
11e6831
mtd: rawnand: arasan: Fix missing de-registration of NAND
mandrzejewski-iceye Dec 2, 2024
140054a
mtd: rawnand: omap2: Fix build warnings with W=1
rogerq Dec 3, 2024
9d23e48
phy: rockchip: samsung-hdptx: Set drvdata before enabling runtime PM
cristicc Oct 23, 2024
afc6e39
power: supply: gpio-charger: Fix set charge current limits
Dec 9, 2024
e5f84d1
power: supply: cros_charge-control: add mutex for driver data
t-8ch Dec 8, 2024
e65a1b7
power: supply: cros_charge-control: allow start_threshold == end_thre…
t-8ch Dec 8, 2024
c28dc9f
power: supply: cros_charge-control: hide start threshold on v2 cmd
t-8ch Dec 8, 2024
8843844
ASoC: amd: ps: Fix for enabling DMIC on acp63 platform via _DSD entry
Venkata-Prasad-Potturu Dec 13, 2024
7c449ef
ASoC: Intel: sof_sdw: Fix DMI match for Lenovo 21Q6 and 21Q7
rfvirgil Dec 16, 2024
ba7d47a
ASoC: Intel: sof_sdw: Fix DMI match for Lenovo 21QA and 21QB
rfvirgil Dec 16, 2024
6f4a0fd
ASoC: dt-bindings: realtek,rt5645: Fix CPVDD voltage comment
wens Dec 11, 2024
001a3d5
ASoC: Intel: sof_sdw: Update DMI matches for Lenovo
broonie Dec 16, 2024
e8d0ba1
ASoC: SOF: Intel: hda-dai: Do not release the link DMA on STOP
ujfalusi Dec 17, 2024
69d803c
nfsd: Revert "nfsd: release svc_expkey/svc_export with rcu_work"
Dec 16, 2024
9048cf0
NFSD: fix management of pending async copies
Dec 17, 2024
05aa156
powerpc/pseries/vas: Add close() callback in vas_vm_ops struct
hmyneni Dec 14, 2024
c9e3ebd
ASoC: rt722: add delay time to wait for the calibration procedure
shumingfan Dec 18, 2024
b3ded60
power: supply: bq24190: Fix BQ24296 Vbus regulator support
jwrdegoede Nov 16, 2024
32c9c06
ASoC: mediatek: disable buffer pre-allocation
wens Dec 19, 2024
1ae40d5
ALSA: compress_offload: import DMA_BUF namespace
arndb Dec 16, 2024
6018f2f
ALSA: compress_offload: avoid 64-bit get_user()
arndb Dec 16, 2024
f25a51b
ALSA: compress_offload: use safe list iteration in snd_compr_task_seq()
perexg Dec 17, 2024
3d3f43f
ALSA: compress_offload: improve file descriptors installation for dma…
perexg Dec 17, 2024
fa03081
ALSA: memalloc: prefer dma_mapping_error() over explicit address chec…
Dec 19, 2024
55853cb
selftests/alsa: Fix circular dependency involving global-timer
zhijianli88 Dec 18, 2024
66a0a2b
ALSA: sh: Fix wrong argument order for copy_from_iter()
tiwai Dec 20, 2024
8cbd01b
Merge tag 'asoc-fix-v6.13-rc3' of https://git.kernel.org/pub/scm/linu…
tiwai Dec 20, 2024
7917f01
nfsd: restore callback functionality for NFSv4.0
neilbrown Dec 20, 2024
724c6ce
stddef: make __struct_group() UAPI C++-friendly
alobakin Dec 19, 2024
0b7a66a
preempt: Move PREEMPT_RT before PREEMPT in vermagic.
Dec 5, 2024
d685d55
tracing/kprobe: Make trace_kprobe's module callback called after jump…
mhiramat Dec 11, 2024
f07044d
Merge tag 'nfsd-6.13-1' of git://git.kernel.org/pub/scm/linux/kernel/…
torvalds Dec 23, 2024
ef49c46
Merge tag 'modules-6.13-rc5' of git://git.kernel.org/pub/scm/linux/ke…
torvalds Dec 23, 2024
452f4b3
tracing: Constify string literal data member in struct trace_event_call
cgzones Nov 25, 2024
98feccb
tracing: Prevent bad count for tracing_cpumask_write
Dec 16, 2024
ccfa313
dmaengine: fsl-edma: implement the cleanup path of fsl_edma3_attach_pd()
joehattori Dec 21, 2024
362f1bf
dmaengine: mv_xor: fix child node refcount handling in early exit
javiercarrascocruz Oct 11, 2024
ebc0086
dmaengine: tegra: Return correct DMA status when paused
Dec 12, 2024
fe4bfa9
phy: core: Fix that API devm_phy_put() fails to release the phy
zijun-hu Dec 13, 2024
c0b82ab
phy: core: Fix that API devm_of_phy_provider_unregister() fails to un…
zijun-hu Dec 13, 2024
4dc48c8
phy: core: Fix that API devm_phy_destroy() fails to destroy the phy
zijun-hu Dec 13, 2024
5ebdc6b
phy: core: Fix an OF node refcount leakage in _of_phy_get()
zijun-hu Dec 13, 2024
a2d633c
phy: core: Fix an OF node refcount leakage in of_phy_provider_lookup()
zijun-hu Dec 13, 2024
739214d
phy: freescale: fsl-samsung-hdmi: Fix 64-by-32 division cocci warnings
aford173 Dec 15, 2024
17194c2
phy: mediatek: phy-mtk-hdmi: add regulator dependency
arndb Dec 13, 2024
9b2ffa6
Merge tag 'mtd/fixes-for-6.13-rc5' of git://git.kernel.org/pub/scm/li…
torvalds Dec 24, 2024
dcd59d0
platform/chrome: cros_ec_lpc: fix product identity for early Framewor…
DHowett Dec 24, 2024
ab8beb2
Merge tag 'chrome-platform-for-6.13-rc5' of git://git.kernel.org/pub/…
torvalds Dec 26, 2024
6fcb22e
Merge tag 'phy-fixes-6.13' of git://git.kernel.org/pub/scm/linux/kern…
torvalds Dec 26, 2024
23db0ed
Merge tag 'dmaengine-fix-6.13' of git://git.kernel.org/pub/scm/linux/…
torvalds Dec 26, 2024
d6ef8b4
Merge tag 'sound-6.13-rc5' of git://git.kernel.org/pub/scm/linux/kern…
torvalds Dec 26, 2024
6cc45f8
rtla/timerlat: Fix histogram ALL for zero samples
lenticularis39 Nov 27, 2024
2c2b3d9
Merge tag 'trace-v6.13-rc4' of git://git.kernel.org/pub/scm/linux/ker…
torvalds Dec 27, 2024
f0bc704
Merge tag 'hardening-v6.13-rc5' of git://git.kernel.org/pub/scm/linux…
torvalds Dec 27, 2024
411a678
Merge tag 'probes-fixes-v6.13-rc4' of git://git.kernel.org/pub/scm/li…
torvalds Dec 27, 2024
eff4f67
Merge tag 'powerpc-6.13-3' of git://git.kernel.org/pub/scm/linux/kern…
torvalds Dec 27, 2024
8379578
Merge tag 'for-v6.13-rc' of git://git.kernel.org/pub/scm/linux/kernel…
torvalds Dec 27, 2024
fd0584d
Merge tag 'trace-tools-v6.13-rc4' of git://git.kernel.org/pub/scm/lin…
torvalds Dec 27, 2024
b49e3c6
Create codeql.yml
Martyvole Dec 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
94 changes: 94 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL Advanced"

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
schedule:
- cron: '20 12 * * 2'

jobs:
analyze:
name: Analyze (${{ matrix.language }})
# Runner size impacts CodeQL analysis time. To learn more, please see:
# - https://gh.io/recommended-hardware-resources-for-running-codeql
# - https://gh.io/supported-runners-and-hardware-resources
# - https://gh.io/using-larger-runners (GitHub.com only)
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
permissions:
# required for all workflows
security-events: write

# required to fetch internal or private CodeQL packs
packages: read

# only required for workflows in private repositories
actions: read
contents: read

strategy:
fail-fast: false
matrix:
include:
- language: c-cpp
build-mode: autobuild
- language: python
build-mode: none
# CodeQL supports the following values keywords for 'language': 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift'
# Use `c-cpp` to analyze code written in C, C++ or both
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
# Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
# To learn more about changing the languages that are analyzed or customizing the build mode for your analysis,
# see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning.
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
steps:
- name: Checkout repository
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality

# If the analyze step fails for one of the languages you are analyzing with
# "We were unable to automatically build your code", modify the matrix above
# to set the build mode to "manual" for that language. Then modify this step
# to build your code.
# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
- if: matrix.build-mode == 'manual'
shell: bash
run: |
echo 'If you are using a "manual" build mode for one or more of the' \
'languages you are analyzing, replace this with the commands to build' \
'your code, for example:'
echo ' make bootstrap'
echo ' make release'
exit 1

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ properties:
description: Power supply for AVDD, providing 1.8V.

cpvdd-supply:
description: Power supply for CPVDD, providing 3.5V.
description: Power supply for CPVDD, providing 1.8V.

hp-detect-gpios:
description:
Expand Down
36 changes: 36 additions & 0 deletions arch/powerpc/platforms/book3s/vas-api.c
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,43 @@ static vm_fault_t vas_mmap_fault(struct vm_fault *vmf)
return VM_FAULT_SIGBUS;
}

/*
* During mmap() paste address, mapping VMA is saved in VAS window
* struct which is used to unmap during migration if the window is
* still open. But the user space can remove this mapping with
* munmap() before closing the window and the VMA address will
* be invalid. Set VAS window VMA to NULL in this function which
* is called before VMA free.
*/
static void vas_mmap_close(struct vm_area_struct *vma)
{
struct file *fp = vma->vm_file;
struct coproc_instance *cp_inst = fp->private_data;
struct vas_window *txwin;

/* Should not happen */
if (!cp_inst || !cp_inst->txwin) {
pr_err("No attached VAS window for the paste address mmap\n");
return;
}

txwin = cp_inst->txwin;
/*
* task_ref.vma is set in coproc_mmap() during mmap paste
* address. So it has to be the same VMA that is getting freed.
*/
if (WARN_ON(txwin->task_ref.vma != vma)) {
pr_err("Invalid paste address mmaping\n");
return;
}

mutex_lock(&txwin->task_ref.mmap_mutex);
txwin->task_ref.vma = NULL;
mutex_unlock(&txwin->task_ref.mmap_mutex);
}

static const struct vm_operations_struct vas_vm_ops = {
.close = vas_mmap_close,
.fault = vas_mmap_fault,
};

Expand Down
28 changes: 12 additions & 16 deletions drivers/dma/amd/qdma/qdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
#include <linux/bitfield.h>
#include <linux/bitops.h>
#include <linux/dmaengine.h>
#include <linux/dma-mapping.h>
#include <linux/module.h>
#include <linux/mod_devicetable.h>
#include <linux/dma-map-ops.h>
#include <linux/platform_device.h>
#include <linux/platform_data/amd_qdma.h>
#include <linux/regmap.h>
Expand Down Expand Up @@ -492,18 +492,9 @@ static int qdma_device_verify(struct qdma_device *qdev)

static int qdma_device_setup(struct qdma_device *qdev)
{
struct device *dev = &qdev->pdev->dev;
u32 ring_sz = QDMA_DEFAULT_RING_SIZE;
int ret = 0;

while (dev && get_dma_ops(dev))
dev = dev->parent;
if (!dev) {
qdma_err(qdev, "dma device not found");
return -EINVAL;
}
set_dma_ops(&qdev->pdev->dev, get_dma_ops(dev));

ret = qdma_setup_fmap_context(qdev);
if (ret) {
qdma_err(qdev, "Failed setup fmap context");
Expand Down Expand Up @@ -548,11 +539,12 @@ static void qdma_free_queue_resources(struct dma_chan *chan)
{
struct qdma_queue *queue = to_qdma_queue(chan);
struct qdma_device *qdev = queue->qdev;
struct device *dev = qdev->dma_dev.dev;
struct qdma_platdata *pdata;

qdma_clear_queue_context(queue);
vchan_free_chan_resources(&queue->vchan);
dma_free_coherent(dev, queue->ring_size * QDMA_MM_DESC_SIZE,
pdata = dev_get_platdata(&qdev->pdev->dev);
dma_free_coherent(pdata->dma_dev, queue->ring_size * QDMA_MM_DESC_SIZE,
queue->desc_base, queue->dma_desc_base);
}

Expand All @@ -565,15 +557,17 @@ static int qdma_alloc_queue_resources(struct dma_chan *chan)
struct qdma_queue *queue = to_qdma_queue(chan);
struct qdma_device *qdev = queue->qdev;
struct qdma_ctxt_sw_desc desc;
struct qdma_platdata *pdata;
size_t size;
int ret;

ret = qdma_clear_queue_context(queue);
if (ret)
return ret;

pdata = dev_get_platdata(&qdev->pdev->dev);
size = queue->ring_size * QDMA_MM_DESC_SIZE;
queue->desc_base = dma_alloc_coherent(qdev->dma_dev.dev, size,
queue->desc_base = dma_alloc_coherent(pdata->dma_dev, size,
&queue->dma_desc_base,
GFP_KERNEL);
if (!queue->desc_base) {
Expand All @@ -588,7 +582,7 @@ static int qdma_alloc_queue_resources(struct dma_chan *chan)
if (ret) {
qdma_err(qdev, "Failed to setup SW desc ctxt for %s",
chan->name);
dma_free_coherent(qdev->dma_dev.dev, size, queue->desc_base,
dma_free_coherent(pdata->dma_dev, size, queue->desc_base,
queue->dma_desc_base);
return ret;
}
Expand Down Expand Up @@ -948,8 +942,9 @@ static int qdma_init_error_irq(struct qdma_device *qdev)

static int qdmam_alloc_qintr_rings(struct qdma_device *qdev)
{
u32 ctxt[QDMA_CTXT_REGMAP_LEN];
struct qdma_platdata *pdata = dev_get_platdata(&qdev->pdev->dev);
struct device *dev = &qdev->pdev->dev;
u32 ctxt[QDMA_CTXT_REGMAP_LEN];
struct qdma_intr_ring *ring;
struct qdma_ctxt_intr intr_ctxt;
u32 vector;
Expand All @@ -969,7 +964,8 @@ static int qdmam_alloc_qintr_rings(struct qdma_device *qdev)
ring->msix_id = qdev->err_irq_idx + i + 1;
ring->ridx = i;
ring->color = 1;
ring->base = dmam_alloc_coherent(dev, QDMA_INTR_RING_SIZE,
ring->base = dmam_alloc_coherent(pdata->dma_dev,
QDMA_INTR_RING_SIZE,
&ring->dev_base, GFP_KERNEL);
if (!ring->base) {
qdma_err(qdev, "Failed to alloc intr ring %d", i);
Expand Down
7 changes: 2 additions & 5 deletions drivers/dma/apple-admac.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ static int admac_alloc_sram_carveout(struct admac_data *ad,
{
struct admac_sram *sram;
int i, ret = 0, nblocks;
ad->txcache.size = readl_relaxed(ad->base + REG_TX_SRAM_SIZE);
ad->rxcache.size = readl_relaxed(ad->base + REG_RX_SRAM_SIZE);

if (dir == DMA_MEM_TO_DEV)
sram = &ad->txcache;
Expand Down Expand Up @@ -912,12 +914,7 @@ static int admac_probe(struct platform_device *pdev)
goto free_irq;
}

ad->txcache.size = readl_relaxed(ad->base + REG_TX_SRAM_SIZE);
ad->rxcache.size = readl_relaxed(ad->base + REG_RX_SRAM_SIZE);

dev_info(&pdev->dev, "Audio DMA Controller\n");
dev_info(&pdev->dev, "imprint %x TX cache %u RX cache %u\n",
readl_relaxed(ad->base + REG_IMPRINT), ad->txcache.size, ad->rxcache.size);

return 0;

Expand Down
2 changes: 2 additions & 0 deletions drivers/dma/at_xdmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -1363,6 +1363,8 @@ at_xdmac_prep_dma_memset(struct dma_chan *chan, dma_addr_t dest, int value,
return NULL;

desc = at_xdmac_memset_create_desc(chan, atchan, dest, len, value);
if (!desc)
return NULL;
list_add_tail(&desc->desc_node, &desc->descs_list);

desc->tx_dma_desc.cookie = -EBUSY;
Expand Down
6 changes: 4 additions & 2 deletions drivers/dma/dw/acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@

static bool dw_dma_acpi_filter(struct dma_chan *chan, void *param)
{
struct dw_dma *dw = to_dw_dma(chan->device);
struct dw_dma_chip_pdata *data = dev_get_drvdata(dw->dma.dev);
struct acpi_dma_spec *dma_spec = param;
struct dw_dma_slave slave = {
.dma_dev = dma_spec->dev,
.src_id = dma_spec->slave_id,
.dst_id = dma_spec->slave_id,
.m_master = 0,
.p_master = 1,
.m_master = data->m_master,
.p_master = data->p_master,
};

return dw_dma_filter(chan, &slave);
Expand Down
8 changes: 8 additions & 0 deletions drivers/dma/dw/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,15 @@ struct dw_dma_chip_pdata {
int (*probe)(struct dw_dma_chip *chip);
int (*remove)(struct dw_dma_chip *chip);
struct dw_dma_chip *chip;
u8 m_master;
u8 p_master;
};

static __maybe_unused const struct dw_dma_chip_pdata dw_dma_chip_pdata = {
.probe = dw_dma_probe,
.remove = dw_dma_remove,
.m_master = 0,
.p_master = 1,
};

static const struct dw_dma_platform_data idma32_pdata = {
Expand All @@ -72,6 +76,8 @@ static __maybe_unused const struct dw_dma_chip_pdata idma32_chip_pdata = {
.pdata = &idma32_pdata,
.probe = idma32_dma_probe,
.remove = idma32_dma_remove,
.m_master = 0,
.p_master = 0,
};

static const struct dw_dma_platform_data xbar_pdata = {
Expand All @@ -88,6 +94,8 @@ static __maybe_unused const struct dw_dma_chip_pdata xbar_chip_pdata = {
.pdata = &xbar_pdata,
.probe = idma32_dma_probe,
.remove = idma32_dma_remove,
.m_master = 0,
.p_master = 0,
};

#endif /* _DMA_DW_INTERNAL_H */
4 changes: 2 additions & 2 deletions drivers/dma/dw/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ static int dw_pci_probe(struct pci_dev *pdev, const struct pci_device_id *pid)
if (ret)
return ret;

dw_dma_acpi_controller_register(chip->dw);

pci_set_drvdata(pdev, data);

dw_dma_acpi_controller_register(chip->dw);

return 0;
}

Expand Down
1 change: 1 addition & 0 deletions drivers/dma/fsl-edma-common.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ struct fsl_edma_chan {
struct work_struct issue_worker;
struct platform_device *pdev;
struct device *pd_dev;
struct device_link *pd_dev_link;
u32 srcid;
struct clk *clk;
int priority;
Expand Down
Loading