mirror of
https://github.com/openwrt/openwrt.git
synced 2026-12-05 21:45:42 +04:00
kernel: bump 6.18 to 6.18.65
- New symbol RTC_HCTOSYS_TIME32_LIMIT disabled in generic config since userspace is time64 and enabling it would reject RTC dates past 2038. - mac80211: use the ns_common wiphy_namespace() on 6.18.65+, which backported the class namespace change to stable. - bcm27xx: 6.18.65 backported upstream b0a6b769cc17[1], which no longer configures DMA in vc4_drm_bind(). Move the fkms DMA setup into 950-0442 and keep 950-0962 skipping the HVS DMA config on BCM2712. Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.18.65 Added from rpi-6.18.y: linux/bcm27xx/patches-6.18/950-0979-arm64-dts-bcm2712-Drop-the-upstream-v3d-node.patch linux/bcm27xx/patches-6.18/950-0980-ARM-dts-bcm270x-Drop-the-brcm-vc4-v3d-compatible.patch Removed upstreamed: linux/generic/backport-6.18/500-v6.19-ksmbd-server-avoid-busy-polling-in-accept-loop.patch[2] linux/generic/backport-6.18/504-v7.3-ksmbd-fix-listener-task-lifetime-on-netdev-events.patch[3] linux/generic/backport-6.18/706-04-v7.3-netfilter-flowtable-use-the-vlan-id-not-the-full-tci.patch[4] linux/bcm27xx/patches-6.18/950-0915-ASoC-codecs-ES8389-Modify-volatile_register.patch[5] linux/generic/pending-6.18/880-leds-st1202-add-hardware-accelerated-blink-support.patch[6] linux/gemini/patches-6.18/0011-v7.4-ARM-dts-gemini-Use-a-level-high-interrupt-for-TVE200.patch[7] linux/mvebu/patches-6.18/303-mvebu-armada-38x-errata.patch[8] linux/rockchip/patches-6.18/104-phy-rockchip-naneng-combphy-Fix-TX-detect-RX.patch[9] Manually rebased: linux/generic/pending-6.18/710-bridge-add-knob-for-filtering-rx-tx-BPDU-pack.patch linux/bcm27xx/patches-6.18/950-0016-BCM2708-Add-core-Device-Tree-support.patch linux/bcm27xx/patches-6.18/950-0102-bcmgenet-Better-coalescing-parameter-defaults.patch linux/bcm27xx/patches-6.18/950-0286-dmaengine-dw-axi-dmac-Fixes-for-RP1.patch linux/bcm27xx/patches-6.18/950-0442-drm-vc4-fkms-Add-firmware-kms-mode.patch linux/bcm27xx/patches-6.18/950-0551-dmaengine-dw-axi-dmac-Per-channel-burst-limits.patch linux/bcm27xx/patches-6.18/950-0701-arm64-dts-Revert-to-upstream.patch linux/bcm27xx/patches-6.18/950-0702-Revert-arm64-dts-Revert-to-upstream.patch linux/bcm27xx/patches-6.18/950-0962-drm-vc4-fkms-Don-t-put-BCM2712-buffers-behind-the-HV.patch linux/rockchip/patches-6.18/400-2-arm64-dts-rockchip-Fix-regulators-gmac-and-naming-on.patch linux/starfive/patches-6.18/1021-riscv-dts-Add-full-JH7100-Starlight-and-VisionFive-s.patch All other patches automatically rebased via update_kernel.sh 1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.18.65&id=008dd935c79d6c772ce035dc4580b04792ed5ddb 2. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.18.65&id=efa5011add23319d6fbeeac2c03a3e3df35e99f3 3. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.18.65&id=45c9926412526c776d5f035cd40cc0b4138f1bbb 4. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.18.65&id=fef55e63c5a8d7945bfc59f5d5660c08428e0594 5. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.18.65&id=1bc3495c95dbd185137182f23b24bd42617bf0e7 6. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.18.65&id=66acd4be07827affa09eee1b51c5ba0aafa78157 7. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.18.65&id=3b699cc56250778e1d241a41e0148f5042639edc 8. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.18.65&id=fbc7a85dc3329f64b90ef23c9eaa03cd21c0e47b 9. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.18.65&id=259262ca07648c7cd9ce5266c6cb3bc94f969cc1 Build system: x86/64 Build-tested: x86/64-glibc Run-tested: x86/64-glibc Co-authored-by: Ivan Pavlov <AuthorReflex@gmail.com> Co-authored-by: Joshua Covington <joshuacov@gmail.com> Signed-off-by: John Audia <therealgraysky@proton.me> Link: https://github.com/openwrt/openwrt/pull/26893 Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
This commit is contained in:
1 parent
e2c87fb5e5
commit
1df0029977
138 files changed
+549
-1249
No files matched your search
@@ -4,7 +4,7 @@
|
||||
#define WIPHY_PM_OPS NULL
|
||||
#endif
|
||||
|
||||
+#if LINUX_VERSION_IS_GEQ(7,0,0)
|
||||
+#if LINUX_VERSION_IS_GEQ(6,18,65)
|
||||
static const struct ns_common *wiphy_namespace(const struct device *d)
|
||||
{
|
||||
struct wiphy *wiphy = container_of(d, struct wiphy, dev);
|
||||
|
||||
@@ -158,7 +158,7 @@
|
||||
depends on ARCH_BCM2835 || COMPILE_TEST
|
||||
--- a/drivers/tty/serial/8250/Makefile
|
||||
+++ b/drivers/tty/serial/8250/Makefile
|
||||
@@ -20,6 +20,7 @@ obj-$(CONFIG_SERIAL_8250_CONSOLE) += 825
|
||||
@@ -21,6 +21,7 @@ obj-$(CONFIG_SERIAL_8250_CONSOLE) += 825
|
||||
|
||||
obj-$(CONFIG_SERIAL_8250_ACCENT) += 8250_accent.o
|
||||
obj-$(CONFIG_SERIAL_8250_ACORN) += 8250_acorn.o
|
||||
|
||||
@@ -259,7 +259,7 @@ SVN-Revision: 35130
|
||||
#include <linux/uaccess.h>
|
||||
#include <linux/ipv6.h>
|
||||
#include <linux/icmpv6.h>
|
||||
@@ -918,10 +919,10 @@ static void tcp_v6_send_response(const s
|
||||
@@ -922,10 +923,10 @@ static void tcp_v6_send_response(const s
|
||||
topt = (__be32 *)(t1 + 1);
|
||||
|
||||
if (tsecr) {
|
||||
@@ -828,7 +828,7 @@ SVN-Revision: 35130
|
||||
*sum = csum_fold(csum_partial(diff, sizeof(diff),
|
||||
--- a/include/linux/etherdevice.h
|
||||
+++ b/include/linux/etherdevice.h
|
||||
@@ -560,7 +560,7 @@ static inline bool is_etherdev_addr(cons
|
||||
@@ -588,7 +588,7 @@ static inline bool is_etherdev_addr(cons
|
||||
* @b: Pointer to Ethernet header
|
||||
*
|
||||
* Compare two Ethernet headers, returns 0 if equal.
|
||||
@@ -837,7 +837,7 @@ SVN-Revision: 35130
|
||||
* aligned OR the platform can handle unaligned access. This is the
|
||||
* case for all packets coming into netif_receive_skb or similar
|
||||
* entry points.
|
||||
@@ -583,11 +583,12 @@ static inline unsigned long compare_ethe
|
||||
@@ -611,11 +611,12 @@ static inline unsigned long compare_ethe
|
||||
fold |= *(unsigned long *)(a + 6) ^ *(unsigned long *)(b + 6);
|
||||
return fold;
|
||||
#else
|
||||
|
||||
+69
-32
@@ -45931,7 +45931,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
||||
+};
|
||||
--- a/arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b-ovl-rp1.dts
|
||||
+++ /dev/null
|
||||
@@ -1,254 +0,0 @@
|
||||
@@ -1,290 +0,0 @@
|
||||
-// SPDX-License-Identifier: (GPL-2.0 OR MIT)
|
||||
-/dts-v1/;
|
||||
-
|
||||
@@ -45978,6 +45978,30 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
||||
- };
|
||||
- };
|
||||
-
|
||||
- firmware {
|
||||
- firmware: rpi-firmware {
|
||||
- compatible = "raspberrypi,bcm2835-firmware", "simple-mfd";
|
||||
-
|
||||
- mboxes = <&mailbox>;
|
||||
-
|
||||
- firmware_clocks: clocks {
|
||||
- compatible = "raspberrypi,firmware-clocks";
|
||||
- #clock-cells = <1>;
|
||||
- };
|
||||
-
|
||||
- reset: reset {
|
||||
- compatible = "raspberrypi,firmware-reset";
|
||||
- #reset-cells = <1>;
|
||||
- };
|
||||
-
|
||||
- power: power {
|
||||
- compatible = "raspberrypi,bcm2835-power";
|
||||
- firmware = <&firmware>;
|
||||
- #power-domain-cells = <1>;
|
||||
- };
|
||||
- };
|
||||
- };
|
||||
-
|
||||
- sd_io_1v8_reg: sd-io-1v8-reg {
|
||||
- compatible = "regulator-gpio";
|
||||
- regulator-name = "vdd-sd-io";
|
||||
@@ -46014,6 +46038,18 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
||||
- };
|
||||
-};
|
||||
-
|
||||
-&ddc0 {
|
||||
- status = "okay";
|
||||
-};
|
||||
-
|
||||
-&ddc1 {
|
||||
- status = "okay";
|
||||
-};
|
||||
-
|
||||
-&disp_intr {
|
||||
- status = "okay";
|
||||
-};
|
||||
-
|
||||
-&pinctrl {
|
||||
- bt_shutdown_default: bt-shutdown-default-state {
|
||||
- function = "gpio";
|
||||
@@ -46123,33 +46159,6 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
||||
- };
|
||||
-};
|
||||
-
|
||||
-&soc {
|
||||
- firmware: firmware {
|
||||
- compatible = "raspberrypi,bcm2835-firmware", "simple-mfd";
|
||||
- #address-cells = <1>;
|
||||
- #size-cells = <1>;
|
||||
-
|
||||
- mboxes = <&mailbox>;
|
||||
- dma-ranges;
|
||||
-
|
||||
- firmware_clocks: clocks {
|
||||
- compatible = "raspberrypi,firmware-clocks";
|
||||
- #clock-cells = <1>;
|
||||
- };
|
||||
-
|
||||
- reset: reset {
|
||||
- compatible = "raspberrypi,firmware-reset";
|
||||
- #reset-cells = <1>;
|
||||
- };
|
||||
- };
|
||||
-
|
||||
- power: power {
|
||||
- compatible = "raspberrypi,bcm2835-power";
|
||||
- firmware = <&firmware>;
|
||||
- #power-domain-cells = <1>;
|
||||
- };
|
||||
-};
|
||||
-
|
||||
-/* uarta communicates with the BT module */
|
||||
-&uarta {
|
||||
- uart-has-rtscts;
|
||||
@@ -46167,16 +46176,27 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
||||
-&hvs {
|
||||
- clocks = <&firmware_clocks 4>, <&firmware_clocks 16>;
|
||||
- clock-names = "core", "disp";
|
||||
- status = "okay";
|
||||
-};
|
||||
-
|
||||
-&hdmi0 {
|
||||
- clocks = <&firmware_clocks 13>, <&firmware_clocks 14>, <&dvp 0>, <&clk_27MHz>;
|
||||
- clock-names = "hdmi", "bvb", "audio", "cec";
|
||||
- status = "okay";
|
||||
-};
|
||||
-
|
||||
-&hdmi1 {
|
||||
- clocks = <&firmware_clocks 13>, <&firmware_clocks 14>, <&dvp 1>, <&clk_27MHz>;
|
||||
- clock-names = "hdmi", "bvb", "audio", "cec";
|
||||
- status = "okay";
|
||||
-};
|
||||
-
|
||||
-&mop {
|
||||
- status = "okay";
|
||||
-};
|
||||
-
|
||||
-&moplet {
|
||||
- status = "okay";
|
||||
-};
|
||||
-
|
||||
-&pcie1 {
|
||||
@@ -46186,6 +46206,22 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
||||
-&pcie2 {
|
||||
- status = "okay";
|
||||
-};
|
||||
-
|
||||
-&pixelvalve0 {
|
||||
- status = "okay";
|
||||
-};
|
||||
-
|
||||
-&pixelvalve1 {
|
||||
- status = "okay";
|
||||
-};
|
||||
-
|
||||
-&v3d {
|
||||
- clocks = <&firmware_clocks 5>;
|
||||
-};
|
||||
-
|
||||
-&vc4 {
|
||||
- status = "okay";
|
||||
-};
|
||||
--- a/arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b.dts
|
||||
+++ b/arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b.dts
|
||||
@@ -1,68 +1,771 @@
|
||||
@@ -48501,7 +48537,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
||||
+};
|
||||
--- a/arch/arm64/boot/dts/broadcom/bcm2712.dtsi
|
||||
+++ b/arch/arm64/boot/dts/broadcom/bcm2712.dtsi
|
||||
@@ -38,13 +38,6 @@
|
||||
@@ -39,13 +39,6 @@
|
||||
clock-frequency = <200000000>;
|
||||
clock-output-names = "emmc2-clock";
|
||||
};
|
||||
@@ -48515,7 +48551,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
||||
};
|
||||
|
||||
cpus: cpus {
|
||||
@@ -259,39 +252,6 @@
|
||||
@@ -260,39 +253,6 @@
|
||||
system-power-controller;
|
||||
};
|
||||
|
||||
@@ -48555,7 +48591,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
||||
interrupt-controller@7d517000 {
|
||||
compatible = "brcm,bcm7271-l2-intc";
|
||||
reg = <0x7d517000 0x10>;
|
||||
@@ -312,21 +272,6 @@
|
||||
@@ -313,21 +273,6 @@
|
||||
*/
|
||||
};
|
||||
|
||||
@@ -48577,7 +48613,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
||||
gicv2: interrupt-controller@7fff9000 {
|
||||
compatible = "arm,gic-400";
|
||||
reg = <0x7fff9000 0x1000>,
|
||||
@@ -670,9 +615,14 @@
|
||||
@@ -694,10 +639,15 @@
|
||||
|
||||
hvs: hvs@107c580000 {
|
||||
compatible = "brcm,bcm2712-hvs";
|
||||
@@ -48589,6 +48625,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
||||
interrupt-parent = <&disp_intr>;
|
||||
interrupts = <2>, <9>, <16>;
|
||||
interrupt-names = "ch0-eof", "ch1-eof", "ch2-eof";
|
||||
status = "disabled";
|
||||
+ iommus = <&iommu4>;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -127,8 +127,8 @@ board_bcm2835: Remove coherent dma pool increase - API has gone
|
||||
+ ret = devm_request_irq(dev, platform_get_irq(pdev, 0),
|
||||
bcm2835_mbox_irq, IRQF_NO_SUSPEND, dev_name(dev),
|
||||
mbox);
|
||||
if (ret) {
|
||||
@@ -193,7 +196,18 @@ static struct platform_driver bcm2835_mb
|
||||
if (ret)
|
||||
@@ -190,7 +193,18 @@ static struct platform_driver bcm2835_mb
|
||||
},
|
||||
.probe = bcm2835_mbox_probe,
|
||||
};
|
||||
|
||||
+24
-24
@@ -1941,7 +1941,7 @@ Signed-off-by: Giedrius Trainavičius <giedrius@blokas.io>
|
||||
+zyxel ZyXEL Communications Corp.
|
||||
--- a/Documentation/devicetree/bindings/vendor-prefixes.yaml
|
||||
+++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml
|
||||
@@ -235,6 +235,8 @@ patternProperties:
|
||||
@@ -237,6 +237,8 @@ patternProperties:
|
||||
description: Bitmain Technologies
|
||||
"^blaize,.*":
|
||||
description: Blaize, Inc.
|
||||
@@ -24285,7 +24285,7 @@ Signed-off-by: Giedrius Trainavičius <giedrius@blokas.io>
|
||||
depends on I2C
|
||||
select SND_SOC_AD193X
|
||||
|
||||
@@ -1309,6 +1313,13 @@ config SND_SOC_LOCHNAGAR_SC
|
||||
@@ -1314,6 +1318,13 @@ config SND_SOC_LOCHNAGAR_SC
|
||||
This driver support the sound card functionality of the Cirrus
|
||||
Logic Lochnagar audio development board.
|
||||
|
||||
@@ -24299,7 +24299,7 @@ Signed-off-by: Giedrius Trainavičius <giedrius@blokas.io>
|
||||
config SND_SOC_MADERA
|
||||
tristate
|
||||
default y if SND_SOC_CS47L15=y
|
||||
@@ -1744,6 +1755,10 @@ config SND_SOC_RT5616
|
||||
@@ -1749,6 +1760,10 @@ config SND_SOC_RT5616
|
||||
tristate "Realtek RT5616 CODEC"
|
||||
depends on I2C
|
||||
|
||||
@@ -24310,7 +24310,7 @@ Signed-off-by: Giedrius Trainavičius <giedrius@blokas.io>
|
||||
config SND_SOC_RT5631
|
||||
tristate "Realtek ALC5631/RT5631 CODEC"
|
||||
depends on I2C
|
||||
@@ -2156,6 +2171,9 @@ config SND_SOC_TFA9879
|
||||
@@ -2161,6 +2176,9 @@ config SND_SOC_TFA9879
|
||||
tristate "NXP Semiconductors TFA9879 amplifier"
|
||||
depends on I2C
|
||||
|
||||
@@ -24320,7 +24320,7 @@ Signed-off-by: Giedrius Trainavičius <giedrius@blokas.io>
|
||||
config SND_SOC_TFA989X
|
||||
tristate "NXP/Goodix TFA989X (TFA1) amplifiers"
|
||||
depends on I2C
|
||||
@@ -2788,4 +2806,8 @@ config SND_SOC_LPASS_TX_MACRO
|
||||
@@ -2793,4 +2811,8 @@ config SND_SOC_LPASS_TX_MACRO
|
||||
select SND_SOC_LPASS_MACRO_COMMON
|
||||
tristate "Qualcomm TX Macro in LPASS(Low Power Audio SubSystem)"
|
||||
|
||||
@@ -24331,7 +24331,7 @@ Signed-off-by: Giedrius Trainavičius <giedrius@blokas.io>
|
||||
endmenu
|
||||
--- a/sound/soc/codecs/Makefile
|
||||
+++ b/sound/soc/codecs/Makefile
|
||||
@@ -874,3 +874,12 @@ obj-$(CONFIG_SND_SOC_LPASS_TX_MACRO) +=
|
||||
@@ -876,3 +876,12 @@ obj-$(CONFIG_SND_SOC_LPASS_TX_MACRO) +=
|
||||
|
||||
# Mux
|
||||
obj-$(CONFIG_SND_SOC_SIMPLE_MUX) += snd-soc-simple-mux.o
|
||||
@@ -26992,7 +26992,7 @@ Signed-off-by: Giedrius Trainavičius <giedrius@blokas.io>
|
||||
+#endif /* _TAS5713_H */
|
||||
--- a/sound/soc/dwc/dwc-i2s.c
|
||||
+++ b/sound/soc/dwc/dwc-i2s.c
|
||||
@@ -209,12 +209,21 @@ static void i2s_start(struct dw_i2s_dev
|
||||
@@ -210,12 +210,21 @@ static void i2s_start(struct dw_i2s_dev
|
||||
static void i2s_stop(struct dw_i2s_dev *dev,
|
||||
struct snd_pcm_substream *substream)
|
||||
{
|
||||
@@ -27018,7 +27018,7 @@ Signed-off-by: Giedrius Trainavičius <giedrius@blokas.io>
|
||||
|
||||
if (!(dev->use_pio || dev->is_jh7110))
|
||||
i2s_disable_dma(dev, substream->stream);
|
||||
@@ -224,14 +233,39 @@ static void i2s_stop(struct dw_i2s_dev *
|
||||
@@ -225,14 +234,39 @@ static void i2s_stop(struct dw_i2s_dev *
|
||||
|
||||
if (!dev->active) {
|
||||
i2s_write_reg(dev->i2s_base, CER, 0);
|
||||
@@ -27059,7 +27059,7 @@ Signed-off-by: Giedrius Trainavičius <giedrius@blokas.io>
|
||||
|
||||
if (dev->is_jh7110) {
|
||||
struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream);
|
||||
@@ -243,22 +277,52 @@ static int dw_i2s_startup(struct snd_pcm
|
||||
@@ -244,22 +278,52 @@ static int dw_i2s_startup(struct snd_pcm
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -27114,7 +27114,7 @@ Signed-off-by: Giedrius Trainavičius <giedrius@blokas.io>
|
||||
} else {
|
||||
i2s_write_reg(dev->i2s_base, RCR(ch_reg),
|
||||
dev->xfer_resolution);
|
||||
@@ -266,9 +330,11 @@ static void dw_i2s_config(struct dw_i2s_
|
||||
@@ -267,9 +331,11 @@ static void dw_i2s_config(struct dw_i2s_
|
||||
dev->fifo_th - 1);
|
||||
i2s_write_reg(dev->i2s_base, RER(ch_reg), RER_RXCHEN |
|
||||
dev->tdm_mask << RER_RXSLOT_SHIFT);
|
||||
@@ -27127,7 +27127,7 @@ Signed-off-by: Giedrius Trainavičius <giedrius@blokas.io>
|
||||
}
|
||||
|
||||
static int dw_i2s_hw_params(struct snd_pcm_substream *substream,
|
||||
@@ -276,24 +342,32 @@ static int dw_i2s_hw_params(struct snd_p
|
||||
@@ -277,24 +343,32 @@ static int dw_i2s_hw_params(struct snd_p
|
||||
{
|
||||
struct dw_i2s_dev *dev = snd_soc_dai_get_drvdata(dai);
|
||||
struct i2s_clk_config_data *config = &dev->config;
|
||||
@@ -27163,7 +27163,7 @@ Signed-off-by: Giedrius Trainavičius <giedrius@blokas.io>
|
||||
dev->xfer_resolution = 0x05;
|
||||
break;
|
||||
|
||||
@@ -314,17 +388,37 @@ static int dw_i2s_hw_params(struct snd_p
|
||||
@@ -315,17 +389,37 @@ static int dw_i2s_hw_params(struct snd_p
|
||||
case TWO_CHANNEL_SUPPORT:
|
||||
break;
|
||||
default:
|
||||
@@ -27204,7 +27204,7 @@ Signed-off-by: Giedrius Trainavičius <giedrius@blokas.io>
|
||||
if (dev->i2s_clk_cfg) {
|
||||
ret = dev->i2s_clk_cfg(config);
|
||||
if (ret < 0) {
|
||||
@@ -332,8 +426,7 @@ static int dw_i2s_hw_params(struct snd_p
|
||||
@@ -333,8 +427,7 @@ static int dw_i2s_hw_params(struct snd_p
|
||||
return ret;
|
||||
}
|
||||
} else {
|
||||
@@ -27214,7 +27214,7 @@ Signed-off-by: Giedrius Trainavičius <giedrius@blokas.io>
|
||||
|
||||
ret = clk_set_rate(dev->clk, bitclk);
|
||||
if (ret) {
|
||||
@@ -342,6 +435,8 @@ static int dw_i2s_hw_params(struct snd_p
|
||||
@@ -343,6 +436,8 @@ static int dw_i2s_hw_params(struct snd_p
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
@@ -27223,7 +27223,7 @@ Signed-off-by: Giedrius Trainavičius <giedrius@blokas.io>
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@@ -373,9 +468,12 @@ static int dw_i2s_trigger(struct snd_pcm
|
||||
@@ -374,9 +469,12 @@ static int dw_i2s_trigger(struct snd_pcm
|
||||
i2s_start(dev, substream);
|
||||
break;
|
||||
|
||||
@@ -27237,7 +27237,7 @@ Signed-off-by: Giedrius Trainavičius <giedrius@blokas.io>
|
||||
dev->active--;
|
||||
i2s_stop(dev, substream);
|
||||
break;
|
||||
@@ -459,6 +557,18 @@ static int dw_i2s_set_tdm_slot(struct sn
|
||||
@@ -460,6 +558,18 @@ static int dw_i2s_set_tdm_slot(struct sn
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -27256,7 +27256,7 @@ Signed-off-by: Giedrius Trainavičius <giedrius@blokas.io>
|
||||
static int dw_i2s_dai_probe(struct snd_soc_dai *dai)
|
||||
{
|
||||
struct dw_i2s_dev *dev = snd_soc_dai_get_drvdata(dai);
|
||||
@@ -470,11 +580,13 @@ static int dw_i2s_dai_probe(struct snd_s
|
||||
@@ -471,11 +581,13 @@ static int dw_i2s_dai_probe(struct snd_s
|
||||
static const struct snd_soc_dai_ops dw_i2s_dai_ops = {
|
||||
.probe = dw_i2s_dai_probe,
|
||||
.startup = dw_i2s_startup,
|
||||
@@ -27270,7 +27270,7 @@ Signed-off-by: Giedrius Trainavičius <giedrius@blokas.io>
|
||||
};
|
||||
|
||||
static int dw_i2s_runtime_suspend(struct device *dev)
|
||||
@@ -605,7 +717,7 @@ static int dw_configure_dai(struct dw_i2
|
||||
@@ -606,7 +718,7 @@ static int dw_configure_dai(struct dw_i2
|
||||
idx = 1;
|
||||
dw_i2s_dai->playback.channels_min = MIN_CHANNEL_NUM;
|
||||
dw_i2s_dai->playback.channels_max =
|
||||
@@ -27279,7 +27279,7 @@ Signed-off-by: Giedrius Trainavičius <giedrius@blokas.io>
|
||||
dw_i2s_dai->playback.formats = formats[idx];
|
||||
dw_i2s_dai->playback.rates = rates;
|
||||
}
|
||||
@@ -619,7 +731,7 @@ static int dw_configure_dai(struct dw_i2
|
||||
@@ -620,7 +732,7 @@ static int dw_configure_dai(struct dw_i2
|
||||
idx = 1;
|
||||
dw_i2s_dai->capture.channels_min = MIN_CHANNEL_NUM;
|
||||
dw_i2s_dai->capture.channels_max =
|
||||
@@ -27288,7 +27288,7 @@ Signed-off-by: Giedrius Trainavičius <giedrius@blokas.io>
|
||||
dw_i2s_dai->capture.formats = formats[idx];
|
||||
dw_i2s_dai->capture.rates = rates;
|
||||
}
|
||||
@@ -680,8 +792,8 @@ static int dw_configure_dai_by_pd(struct
|
||||
@@ -681,8 +793,8 @@ static int dw_configure_dai_by_pd(struct
|
||||
dev->capture_dma_data.pd.data = pdata->capture_dma_data;
|
||||
dev->play_dma_data.pd.addr = res->start + I2S_TXDMA;
|
||||
dev->capture_dma_data.pd.addr = res->start + I2S_RXDMA;
|
||||
@@ -27299,7 +27299,7 @@ Signed-off-by: Giedrius Trainavičius <giedrius@blokas.io>
|
||||
dev->play_dma_data.pd.addr_width = bus_widths[idx];
|
||||
dev->capture_dma_data.pd.addr_width = bus_widths[idx];
|
||||
dev->play_dma_data.pd.filter = pdata->filter;
|
||||
@@ -701,7 +813,7 @@ static int dw_configure_dai_by_dt(struct
|
||||
@@ -702,7 +814,7 @@ static int dw_configure_dai_by_dt(struct
|
||||
u32 idx2;
|
||||
int ret;
|
||||
|
||||
@@ -27308,7 +27308,7 @@ Signed-off-by: Giedrius Trainavičius <giedrius@blokas.io>
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
@@ -712,7 +824,10 @@ static int dw_configure_dai_by_dt(struct
|
||||
@@ -713,7 +825,10 @@ static int dw_configure_dai_by_dt(struct
|
||||
dev->play_dma_data.dt.addr = res->start + I2S_TXDMA;
|
||||
dev->play_dma_data.dt.fifo_size = fifo_depth *
|
||||
(fifo_width[idx2]) >> 8;
|
||||
@@ -27320,7 +27320,7 @@ Signed-off-by: Giedrius Trainavičius <giedrius@blokas.io>
|
||||
}
|
||||
if (COMP1_RX_ENABLED(comp1)) {
|
||||
idx2 = COMP2_RX_WORDSIZE_0(comp2);
|
||||
@@ -721,9 +836,14 @@ static int dw_configure_dai_by_dt(struct
|
||||
@@ -722,9 +837,14 @@ static int dw_configure_dai_by_dt(struct
|
||||
dev->capture_dma_data.dt.addr = res->start + I2S_RXDMA;
|
||||
dev->capture_dma_data.dt.fifo_size = fifo_depth *
|
||||
(fifo_width[idx2] >> 8);
|
||||
@@ -27336,7 +27336,7 @@ Signed-off-by: Giedrius Trainavičius <giedrius@blokas.io>
|
||||
return 0;
|
||||
|
||||
}
|
||||
@@ -967,6 +1087,8 @@ static int dw_i2s_probe(struct platform_
|
||||
@@ -971,6 +1091,8 @@ static int dw_i2s_probe(struct platform_
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -37,7 +37,7 @@ Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
|
||||
static int lan78xx_read_reg(struct lan78xx_net *dev, u32 index, u32 *data)
|
||||
{
|
||||
u32 *buf;
|
||||
@@ -3794,8 +3803,14 @@ static int lan78xx_bind(struct lan78xx_n
|
||||
@@ -3806,8 +3815,14 @@ static int lan78xx_bind(struct lan78xx_n
|
||||
if (DEFAULT_RX_CSUM_ENABLE)
|
||||
dev->net->features |= NETIF_F_RXCSUM;
|
||||
|
||||
|
||||
+1
-1
@@ -28,7 +28,7 @@ See: https://github.com/raspberrypi/linux/issues/2447
|
||||
static int lan78xx_read_reg(struct lan78xx_net *dev, u32 index, u32 *data)
|
||||
{
|
||||
u32 *buf;
|
||||
@@ -4773,7 +4778,13 @@ static int lan78xx_probe(struct usb_inte
|
||||
@@ -4785,7 +4790,13 @@ static int lan78xx_probe(struct usb_inte
|
||||
if (ret < 0)
|
||||
goto out4;
|
||||
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ Subject: [PATCH] Patching lan78xx for SOF_TIMESTAMPING_TX_SOFTWARE support
|
||||
|
||||
--- a/drivers/net/usb/lan78xx.c
|
||||
+++ b/drivers/net/usb/lan78xx.c
|
||||
@@ -1953,6 +1953,7 @@ static const struct ethtool_ops lan78xx_
|
||||
@@ -1965,6 +1965,7 @@ static const struct ethtool_ops lan78xx_
|
||||
.set_link_ksettings = lan78xx_set_link_ksettings,
|
||||
.get_regs_len = lan78xx_get_regs_len,
|
||||
.get_regs = lan78xx_get_regs,
|
||||
|
||||
+5
-10
@@ -18,20 +18,15 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.org>
|
||||
|
||||
--- a/drivers/net/ethernet/broadcom/genet/bcmgenet.c
|
||||
+++ b/drivers/net/ethernet/broadcom/genet/bcmgenet.c
|
||||
@@ -2754,7 +2754,7 @@ static void bcmgenet_init_tx_ring(struct
|
||||
|
||||
bcmgenet_tdma_ring_writel(priv, index, 0, TDMA_PROD_INDEX);
|
||||
bcmgenet_tdma_ring_writel(priv, index, 0, TDMA_CONS_INDEX);
|
||||
- bcmgenet_tdma_ring_writel(priv, index, 1, DMA_MBUF_DONE_THRESH);
|
||||
+ bcmgenet_tdma_ring_writel(priv, index, 10, DMA_MBUF_DONE_THRESH);
|
||||
/* Disable rate control for now */
|
||||
bcmgenet_tdma_ring_writel(priv, index, flow_period_val,
|
||||
TDMA_FLOW_PERIOD);
|
||||
@@ -4170,6 +4170,7 @@ static int bcmgenet_probe(struct platfor
|
||||
@@ -4184,9 +4184,10 @@ static int bcmgenet_probe(struct platfor
|
||||
priv->rx_rings[i].priv = priv;
|
||||
priv->rx_rings[i].index = i;
|
||||
priv->rx_rings[i].rx_max_coalesced_frames = 1;
|
||||
+ priv->rx_rings[i].rx_coalesce_usecs = 50;
|
||||
}
|
||||
for (i = 0; i <= priv->hw_params->tx_queues; i++)
|
||||
- priv->tx_rings[i].tx_max_coalesced_frames = 1;
|
||||
+ priv->tx_rings[i].tx_max_coalesced_frames = 10;
|
||||
|
||||
/* Initialize u64 stats seq counter for 32bit machines */
|
||||
for (i = 0; i <= GENET_MAX_MQ_CNT; i++) {
|
||||
+2
-2
@@ -26,7 +26,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.org>
|
||||
/* Device and char device-related information */
|
||||
static DEFINE_IDA(gpio_ida);
|
||||
static dev_t gpio_devt;
|
||||
@@ -3026,8 +3028,8 @@ int gpiod_direction_output_nonotify(stru
|
||||
@@ -3028,8 +3030,8 @@ int gpiod_direction_output_nonotify(stru
|
||||
value = !!value;
|
||||
|
||||
/* GPIOs used for enabled IRQs shall not be set as output */
|
||||
@@ -37,7 +37,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.org>
|
||||
gpiod_err(desc,
|
||||
"%s: tried to set a GPIO tied to an IRQ as output\n",
|
||||
__func__);
|
||||
@@ -4067,8 +4069,8 @@ int gpiochip_lock_as_irq(struct gpio_chi
|
||||
@@ -4075,8 +4077,8 @@ int gpiochip_lock_as_irq(struct gpio_chi
|
||||
}
|
||||
|
||||
/* To be valid for IRQ the line needs to be input or open drain */
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
|
||||
|
||||
--- a/Documentation/devicetree/bindings/vendor-prefixes.yaml
|
||||
+++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml
|
||||
@@ -614,6 +614,8 @@ patternProperties:
|
||||
@@ -622,6 +622,8 @@ patternProperties:
|
||||
description: General Electric Company
|
||||
"^geekbuying,.*":
|
||||
description: GeekBuying
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ Signed-off-by: Lee Jackson <info@arducam.com>
|
||||
|
||||
--- a/Documentation/devicetree/bindings/vendor-prefixes.yaml
|
||||
+++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml
|
||||
@@ -160,6 +160,8 @@ patternProperties:
|
||||
@@ -162,6 +162,8 @@ patternProperties:
|
||||
description: Shanghai Novotech Co., Ltd. (Ariaboard)
|
||||
"^aries,.*":
|
||||
description: Aries Embedded GmbH
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
||||
|
||||
--- a/drivers/tty/serial/8250/8250.h
|
||||
+++ b/drivers/tty/serial/8250/8250.h
|
||||
@@ -92,6 +92,7 @@ struct serial8250_config {
|
||||
@@ -93,6 +93,7 @@ struct serial8250_config {
|
||||
#define UART_BUG_NOMSR BIT(2) /* UART has buggy MSR status bits (Au1x00) */
|
||||
#define UART_BUG_THRE BIT(3) /* UART has buggy THRE reassertion */
|
||||
#define UART_BUG_TXRACE BIT(5) /* UART Tx fails to set remote DR */
|
||||
|
||||
+2
-2
@@ -20,7 +20,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
||||
|
||||
--- a/net/bluetooth/hci_sync.c
|
||||
+++ b/net/bluetooth/hci_sync.c
|
||||
@@ -5140,6 +5140,7 @@ static const struct {
|
||||
@@ -5186,6 +5186,7 @@ static const struct {
|
||||
*/
|
||||
static int hci_dev_setup_sync(struct hci_dev *hdev)
|
||||
{
|
||||
@@ -28,7 +28,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
||||
int ret = 0;
|
||||
bool invalid_bdaddr;
|
||||
size_t i;
|
||||
@@ -5168,7 +5169,8 @@ static int hci_dev_setup_sync(struct hci
|
||||
@@ -5214,7 +5215,8 @@ static int hci_dev_setup_sync(struct hci
|
||||
hci_test_quirk(hdev, HCI_QUIRK_USE_BDADDR_PROPERTY);
|
||||
if (!ret) {
|
||||
if (hci_test_quirk(hdev, HCI_QUIRK_USE_BDADDR_PROPERTY) &&
|
||||
|
||||
+4
-13
@@ -298,16 +298,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
||||
/* Set end-of-link to the last link descriptor of list */
|
||||
set_desc_last(&desc->hw_desc[num - 1]);
|
||||
/* Managed transfer list */
|
||||
@@ -1054,7 +1139,7 @@ static void axi_chan_dump_lli(struct axi
|
||||
static void axi_chan_list_dump_lli(struct axi_dma_chan *chan,
|
||||
struct axi_dma_desc *desc_head)
|
||||
{
|
||||
- int count = atomic_read(&chan->descs_allocated);
|
||||
+ int count = desc_head->nr_hw_descs;
|
||||
int i;
|
||||
|
||||
for (i = 0; i < count; i++)
|
||||
@@ -1097,11 +1182,11 @@ out:
|
||||
@@ -1094,11 +1179,11 @@ out:
|
||||
|
||||
static void axi_chan_block_xfer_complete(struct axi_dma_chan *chan)
|
||||
{
|
||||
@@ -320,7 +311,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
||||
u64 llp;
|
||||
int i;
|
||||
|
||||
@@ -1123,6 +1208,7 @@ static void axi_chan_block_xfer_complete
|
||||
@@ -1120,6 +1205,7 @@ static void axi_chan_block_xfer_complete
|
||||
if (chan->cyclic) {
|
||||
desc = vd_to_axi_desc(vd);
|
||||
if (desc) {
|
||||
@@ -328,7 +319,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
||||
llp = lo_hi_readq(chan->chan_regs + CH_LLP);
|
||||
for (i = 0; i < count; i++) {
|
||||
hw_desc = &desc->hw_desc[i];
|
||||
@@ -1143,6 +1229,9 @@ static void axi_chan_block_xfer_complete
|
||||
@@ -1140,6 +1226,9 @@ static void axi_chan_block_xfer_complete
|
||||
/* Remove the completed descriptor from issued list before completing */
|
||||
list_del(&vd->node);
|
||||
vchan_cookie_complete(vd);
|
||||
@@ -338,7 +329,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
||||
}
|
||||
|
||||
out:
|
||||
@@ -1400,6 +1489,10 @@ static int parse_device_properties(struc
|
||||
@@ -1392,6 +1481,10 @@ static int parse_device_properties(struc
|
||||
|
||||
chip->dw->hdata->nr_masters = tmp;
|
||||
|
||||
|
||||
+1
-1
@@ -38,7 +38,7 @@ Signed-off-by: Jonathan Bell <jonathan@raspberrypi.com>
|
||||
|
||||
--- a/drivers/rtc/Kconfig
|
||||
+++ b/drivers/rtc/Kconfig
|
||||
@@ -233,6 +233,17 @@ config RTC_DRV_AC100
|
||||
@@ -254,6 +254,17 @@ config RTC_DRV_AC100
|
||||
This driver can also be built as a module. If so, the module
|
||||
will be called rtc-ac100.
|
||||
|
||||
|
||||
+2
-2
@@ -19,7 +19,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
||||
|
||||
--- a/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c
|
||||
+++ b/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c
|
||||
@@ -1566,6 +1566,7 @@ static int dw_probe(struct platform_devi
|
||||
@@ -1558,6 +1558,7 @@ static int dw_probe(struct platform_devi
|
||||
struct dw_axi_dma *dw;
|
||||
struct dw_axi_dma_hcfg *hdata;
|
||||
struct reset_control *resets;
|
||||
@@ -27,7 +27,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
||||
unsigned int flags;
|
||||
u32 i;
|
||||
int ret;
|
||||
@@ -1676,9 +1677,21 @@ static int dw_probe(struct platform_devi
|
||||
@@ -1666,9 +1667,21 @@ static int dw_probe(struct platform_devi
|
||||
* Synopsis DesignWare AxiDMA datasheet mentioned Maximum
|
||||
* supported blocks is 1024. Device register width is 4 bytes.
|
||||
* Therefore, set constraint to 1024 * 4.
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
||||
|
||||
--- a/net/bluetooth/hci_sync.c
|
||||
+++ b/net/bluetooth/hci_sync.c
|
||||
@@ -5140,7 +5140,8 @@ static const struct {
|
||||
@@ -5186,7 +5186,8 @@ static const struct {
|
||||
*/
|
||||
static int hci_dev_setup_sync(struct hci_dev *hdev)
|
||||
{
|
||||
|
||||
+12
-12
@@ -168,7 +168,7 @@ Signed-off-by: Maxime Ripard <maxime@cerno.tech>
|
||||
void vc4_hvs_atomic_enable(struct drm_crtc *crtc, struct drm_atomic_state *state);
|
||||
--- a/drivers/gpu/drm/vc4/vc4_hvs.c
|
||||
+++ b/drivers/gpu/drm/vc4/vc4_hvs.c
|
||||
@@ -470,6 +470,273 @@ static void vc4_hvs_update_gamma_lut(str
|
||||
@@ -471,6 +471,273 @@ static void vc4_hvs_update_gamma_lut(str
|
||||
vc4_hvs_lut_load(hvs, vc4_crtc);
|
||||
}
|
||||
|
||||
@@ -442,7 +442,7 @@ Signed-off-by: Maxime Ripard <maxime@cerno.tech>
|
||||
u8 vc4_hvs_get_fifo_frame_count(struct vc4_hvs *hvs, unsigned int fifo)
|
||||
{
|
||||
struct vc4_dev *vc4 = hvs->vc4;
|
||||
@@ -790,13 +1057,12 @@ int vc4_hvs_atomic_check(struct drm_crtc
|
||||
@@ -791,13 +1058,12 @@ int vc4_hvs_atomic_check(struct drm_crtc
|
||||
{
|
||||
struct drm_crtc_state *crtc_state = drm_atomic_get_new_crtc_state(state, crtc);
|
||||
struct vc4_crtc_state *vc4_state = to_vc4_crtc_state(crtc_state);
|
||||
@@ -457,7 +457,7 @@ Signed-off-by: Maxime Ripard <maxime@cerno.tech>
|
||||
|
||||
/* The pixelvalve can only feed one encoder (and encoders are
|
||||
* 1:1 with connectors.)
|
||||
@@ -819,14 +1085,11 @@ int vc4_hvs_atomic_check(struct drm_crtc
|
||||
@@ -820,14 +1086,11 @@ int vc4_hvs_atomic_check(struct drm_crtc
|
||||
|
||||
drm_dbg_driver(dev, "[CRTC:%d:%s] Allocating DLIST block with size: %u\n",
|
||||
crtc->base.id, crtc->name, dlist_count);
|
||||
@@ -477,7 +477,7 @@ Signed-off-by: Maxime Ripard <maxime@cerno.tech>
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -842,13 +1105,17 @@ static void vc4_hvs_install_dlist(struct
|
||||
@@ -843,13 +1106,17 @@ static void vc4_hvs_install_dlist(struct
|
||||
if (!drm_dev_enter(dev, &idx))
|
||||
return;
|
||||
|
||||
@@ -497,7 +497,7 @@ Signed-off-by: Maxime Ripard <maxime@cerno.tech>
|
||||
|
||||
drm_dev_exit(idx);
|
||||
}
|
||||
@@ -875,8 +1142,10 @@ static void vc4_hvs_update_dlist(struct
|
||||
@@ -876,8 +1143,10 @@ static void vc4_hvs_update_dlist(struct
|
||||
spin_unlock_irqrestore(&dev->event_lock, flags);
|
||||
}
|
||||
|
||||
@@ -509,7 +509,7 @@ Signed-off-by: Maxime Ripard <maxime@cerno.tech>
|
||||
spin_unlock_irqrestore(&vc4_crtc->irq_lock, flags);
|
||||
}
|
||||
|
||||
@@ -937,8 +1206,7 @@ void vc4_hvs_atomic_flush(struct drm_crt
|
||||
@@ -938,8 +1207,7 @@ void vc4_hvs_atomic_flush(struct drm_crt
|
||||
struct vc4_plane_state *vc4_plane_state;
|
||||
bool debug_dump_regs = false;
|
||||
bool enable_bg_fill = true;
|
||||
@@ -519,7 +519,7 @@ Signed-off-by: Maxime Ripard <maxime@cerno.tech>
|
||||
unsigned int zpos = 0;
|
||||
bool found = false;
|
||||
int idx;
|
||||
@@ -958,6 +1226,9 @@ void vc4_hvs_atomic_flush(struct drm_crt
|
||||
@@ -959,6 +1227,9 @@ void vc4_hvs_atomic_flush(struct drm_crt
|
||||
vc4_hvs_dump_state(hvs);
|
||||
}
|
||||
|
||||
@@ -529,7 +529,7 @@ Signed-off-by: Maxime Ripard <maxime@cerno.tech>
|
||||
/* Copy all the active planes' dlist contents to the hardware dlist. */
|
||||
do {
|
||||
found = false;
|
||||
@@ -991,7 +1262,8 @@ void vc4_hvs_atomic_flush(struct drm_crt
|
||||
@@ -992,7 +1263,8 @@ void vc4_hvs_atomic_flush(struct drm_crt
|
||||
writel(SCALER_CTL0_END, dlist_next);
|
||||
dlist_next++;
|
||||
|
||||
@@ -539,7 +539,7 @@ Signed-off-by: Maxime Ripard <maxime@cerno.tech>
|
||||
|
||||
if (vc4->gen >= VC4_GEN_6_C) {
|
||||
/* This sets a black background color fill, as is the case
|
||||
@@ -1147,6 +1419,11 @@ static irqreturn_t vc4_hvs_irq_handler(i
|
||||
@@ -1148,6 +1420,11 @@ static irqreturn_t vc4_hvs_irq_handler(i
|
||||
|
||||
irqret = IRQ_HANDLED;
|
||||
}
|
||||
@@ -551,7 +551,7 @@ Signed-off-by: Maxime Ripard <maxime@cerno.tech>
|
||||
}
|
||||
|
||||
/* Clear every per-channel interrupt flag. */
|
||||
@@ -1157,6 +1434,27 @@ static irqreturn_t vc4_hvs_irq_handler(i
|
||||
@@ -1158,6 +1435,27 @@ static irqreturn_t vc4_hvs_irq_handler(i
|
||||
return irqret;
|
||||
}
|
||||
|
||||
@@ -579,7 +579,7 @@ Signed-off-by: Maxime Ripard <maxime@cerno.tech>
|
||||
int vc4_hvs_debugfs_init(struct drm_minor *minor)
|
||||
{
|
||||
struct drm_device *drm = minor->dev;
|
||||
@@ -1248,6 +1546,18 @@ struct vc4_hvs *__vc4_hvs_alloc(struct v
|
||||
@@ -1249,6 +1547,18 @@ struct vc4_hvs *__vc4_hvs_alloc(struct v
|
||||
|
||||
hvs->dlist_mem_size = dlist_size;
|
||||
|
||||
@@ -598,7 +598,7 @@ Signed-off-by: Maxime Ripard <maxime@cerno.tech>
|
||||
/* Set up the HVS LBM memory manager. We could have some more
|
||||
* complicated data structure that allowed reuse of LBM areas
|
||||
* between planes when they don't overlap on the screen, but
|
||||
@@ -1743,6 +2053,33 @@ static int vc4_hvs_bind(struct device *d
|
||||
@@ -1753,6 +2063,33 @@ static int vc4_hvs_bind(struct device *d
|
||||
vc4_hvs_irq_handler, 0, "vc4 hvs", drm);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
+2
-2
@@ -13,7 +13,7 @@ Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
||||
|
||||
--- a/drivers/gpu/drm/vc4/vc4_hvs.c
|
||||
+++ b/drivers/gpu/drm/vc4/vc4_hvs.c
|
||||
@@ -349,6 +349,36 @@ static int vc6_hvs_debugfs_upm_allocs(st
|
||||
@@ -350,6 +350,36 @@ static int vc6_hvs_debugfs_upm_allocs(st
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
||||
/* The filter kernel is composed of dwords each containing 3 9-bit
|
||||
* signed integers packed next to each other.
|
||||
*/
|
||||
@@ -1478,6 +1508,8 @@ int vc4_hvs_debugfs_init(struct drm_mino
|
||||
@@ -1479,6 +1509,8 @@ int vc4_hvs_debugfs_init(struct drm_mino
|
||||
|
||||
drm_debugfs_add_file(drm, "hvs_underrun", vc4_hvs_debugfs_underrun, NULL);
|
||||
|
||||
|
||||
+5
-5
@@ -28,15 +28,15 @@ Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
||||
|
||||
--- a/drivers/gpu/drm/vc4/vc4_drv.c
|
||||
+++ b/drivers/gpu/drm/vc4/vc4_drv.c
|
||||
@@ -30,6 +30,7 @@
|
||||
#include <linux/of_device.h>
|
||||
@@ -28,6 +28,7 @@
|
||||
#include <linux/module.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/pm_runtime.h>
|
||||
+#include <linux/dma-direct.h>
|
||||
|
||||
#include <drm/clients/drm_client_setup.h>
|
||||
#include <drm/drm_atomic_helper.h>
|
||||
@@ -176,6 +177,19 @@ static void vc4_close(struct drm_device
|
||||
@@ -174,6 +175,19 @@ static void vc4_close(struct drm_device
|
||||
kfree(vc4file);
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
||||
DEFINE_DRM_GEM_FOPS(vc4_drm_fops);
|
||||
|
||||
static const struct drm_ioctl_desc vc4_drm_ioctls[] = {
|
||||
@@ -212,8 +226,9 @@ const struct drm_driver vc4_drm_driver =
|
||||
@@ -210,8 +224,9 @@ const struct drm_driver vc4_drm_driver =
|
||||
|
||||
.gem_create_object = vc4_create_object,
|
||||
|
||||
@@ -67,7 +67,7 @@ Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
||||
|
||||
.ioctls = vc4_drm_ioctls,
|
||||
.num_ioctls = ARRAY_SIZE(vc4_drm_ioctls),
|
||||
@@ -235,8 +250,9 @@ const struct drm_driver vc5_drm_driver =
|
||||
@@ -233,8 +248,9 @@ const struct drm_driver vc5_drm_driver =
|
||||
.debugfs_init = vc4_debugfs_init,
|
||||
#endif
|
||||
|
||||
|
||||
+3
-3
@@ -29,7 +29,7 @@ Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
||||
|
||||
--- a/drivers/gpu/drm/vc4/vc4_hvs.c
|
||||
+++ b/drivers/gpu/drm/vc4/vc4_hvs.c
|
||||
@@ -412,6 +412,9 @@ static int vc4_hvs_debugfs_dlist_allocs(
|
||||
@@ -413,6 +413,9 @@ static int vc4_hvs_debugfs_dlist_allocs(
|
||||
static const u32 mitchell_netravali_1_3_1_3_kernel[] =
|
||||
VC4_LINEAR_PHASE_KERNEL(0, -2, -6, -8, -10, -8, -3, 2, 18,
|
||||
50, 82, 119, 155, 187, 213, 227);
|
||||
@@ -39,7 +39,7 @@ Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
||||
|
||||
static int vc4_hvs_upload_linear_kernel(struct vc4_hvs *hvs,
|
||||
struct drm_mm_node *space,
|
||||
@@ -2067,14 +2070,19 @@ static int vc4_hvs_bind(struct device *d
|
||||
@@ -2077,14 +2080,19 @@ static int vc4_hvs_bind(struct device *d
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
@@ -61,7 +61,7 @@ Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
||||
|
||||
ret = vc4_hvs_cob_init(hvs);
|
||||
if (ret)
|
||||
@@ -2127,6 +2135,8 @@ static void vc4_hvs_unbind(struct device
|
||||
@@ -2137,6 +2145,8 @@ static void vc4_hvs_unbind(struct device
|
||||
|
||||
if (drm_mm_node_allocated(&vc4->hvs->mitchell_netravali_filter))
|
||||
drm_mm_remove_node(&vc4->hvs->mitchell_netravali_filter);
|
||||
|
||||
+2
-2
@@ -30,7 +30,7 @@ Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
||||
/* Memory manager for CRTCs to allocate space in the display
|
||||
--- a/drivers/gpu/drm/vc4/vc4_hvs.c
|
||||
+++ b/drivers/gpu/drm/vc4/vc4_hvs.c
|
||||
@@ -1302,14 +1302,7 @@ void vc4_hvs_atomic_flush(struct drm_crt
|
||||
@@ -1303,14 +1303,7 @@ void vc4_hvs_atomic_flush(struct drm_crt
|
||||
/* This sets a black background color fill, as is the case
|
||||
* with other DRM drivers.
|
||||
*/
|
||||
@@ -46,7 +46,7 @@ Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
||||
} else {
|
||||
/* we can actually run with a lower core clock when background
|
||||
* fill is enabled on VC4_GEN_5 so leave it enabled always.
|
||||
@@ -1481,6 +1474,15 @@ static irqreturn_t vc6_hvs_eof_irq_handl
|
||||
@@ -1482,6 +1475,15 @@ static irqreturn_t vc6_hvs_eof_irq_handl
|
||||
if (hvs->eof_irq[i].desc != irq)
|
||||
continue;
|
||||
|
||||
|
||||
+1
-1
@@ -50,7 +50,7 @@ Signed-off-by: Dom Cobley <popcornmix@gmail.com>
|
||||
return 0;
|
||||
--- a/drivers/gpu/drm/vc4/vc4_hvs.c
|
||||
+++ b/drivers/gpu/drm/vc4/vc4_hvs.c
|
||||
@@ -2149,7 +2149,10 @@ static void vc4_hvs_unbind(struct device
|
||||
@@ -2159,7 +2159,10 @@ static void vc4_hvs_unbind(struct device
|
||||
drm_mm_remove_node(node);
|
||||
drm_mm_takedown(&vc4->hvs->lbm_mm);
|
||||
|
||||
|
||||
+52
-6
@@ -171,10 +171,31 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
||||
drm_WARN_ON(drm, vc4_bo_debugfs_init(minor));
|
||||
--- a/drivers/gpu/drm/vc4/vc4_drv.c
|
||||
+++ b/drivers/gpu/drm/vc4/vc4_drv.c
|
||||
@@ -300,6 +300,18 @@ static const struct of_device_id vc4_dma
|
||||
{}
|
||||
};
|
||||
@@ -24,8 +24,10 @@
|
||||
#include <linux/clk.h>
|
||||
#include <linux/component.h>
|
||||
#include <linux/device.h>
|
||||
+#include <linux/dma-mapping.h>
|
||||
#include <linux/io.h>
|
||||
#include <linux/module.h>
|
||||
+#include <linux/of_device.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/pm_runtime.h>
|
||||
#include <linux/dma-direct.h>
|
||||
@@ -288,6 +290,28 @@ static void vc4_component_unbind_all(voi
|
||||
component_unbind_all(vc4->dev, &vc4->base);
|
||||
}
|
||||
|
||||
+static const struct of_device_id vc4_dma_range_matches[] = {
|
||||
+ { .compatible = "brcm,bcm2711-hvs" },
|
||||
+ { .compatible = "brcm,bcm2712-hvs" },
|
||||
+ { .compatible = "brcm,bcm2835-hvs" },
|
||||
+ { .compatible = "brcm,bcm2835-v3d" },
|
||||
+ { .compatible = "brcm,cygnus-v3d" },
|
||||
+ { .compatible = "brcm,vc4-v3d" },
|
||||
+ {}
|
||||
+};
|
||||
+
|
||||
+/*
|
||||
+ * we need this helper function for determining presence of fkms
|
||||
+ * before it's been bound
|
||||
@@ -190,7 +211,32 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
||||
static int vc4_drm_bind(struct device *dev)
|
||||
{
|
||||
struct platform_device *pdev = to_platform_device(dev);
|
||||
@@ -383,7 +395,7 @@ static int vc4_drm_bind(struct device *d
|
||||
@@ -307,6 +331,24 @@ static int vc4_drm_bind(struct device *d
|
||||
else
|
||||
driver = &vc4_drm_driver;
|
||||
|
||||
+ /*
|
||||
+ * Without HVS/V3D components to provide the DMA device, fkms keeps
|
||||
+ * borrowing their DT DMA configuration.
|
||||
+ */
|
||||
+ if (firmware_kms()) {
|
||||
+ dma_set_mask_and_coherent(dev, DMA_BIT_MASK(gen >= VC4_GEN_6_C ? 36 : 32));
|
||||
+
|
||||
+ node = of_find_matching_node_and_match(NULL, vc4_dma_range_matches,
|
||||
+ NULL);
|
||||
+ if (node) {
|
||||
+ ret = of_dma_configure(dev, node, true);
|
||||
+ of_node_put(node);
|
||||
+
|
||||
+ if (ret)
|
||||
+ return ret;
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
vc4 = devm_drm_dev_alloc(dev, driver, struct vc4_dev, base);
|
||||
if (IS_ERR(vc4))
|
||||
return PTR_ERR(vc4);
|
||||
@@ -354,7 +396,7 @@ static int vc4_drm_bind(struct device *d
|
||||
goto err;
|
||||
}
|
||||
|
||||
@@ -199,7 +245,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
||||
ret = rpi_firmware_property(firmware,
|
||||
RPI_FIRMWARE_NOTIFY_DISPLAY_DONE,
|
||||
NULL, 0);
|
||||
@@ -401,16 +413,20 @@ static int vc4_drm_bind(struct device *d
|
||||
@@ -372,16 +414,20 @@ static int vc4_drm_bind(struct device *d
|
||||
if (ret)
|
||||
goto err;
|
||||
|
||||
@@ -225,7 +271,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
||||
|
||||
ret = drm_dev_register(drm, 0);
|
||||
if (ret < 0)
|
||||
@@ -456,6 +472,7 @@ static struct platform_driver *const com
|
||||
@@ -427,6 +473,7 @@ static struct platform_driver *const com
|
||||
&vc4_dsi_driver,
|
||||
&vc4_txp_driver,
|
||||
&vc4_crtc_driver,
|
||||
|
||||
+3
-3
@@ -83,7 +83,7 @@ Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
||||
unsigned int upm_handle[DRM_FORMAT_MAX_PLANES];
|
||||
--- a/drivers/gpu/drm/vc4/vc4_hvs.c
|
||||
+++ b/drivers/gpu/drm/vc4/vc4_hvs.c
|
||||
@@ -379,6 +379,27 @@ static int vc4_hvs_debugfs_dlist_allocs(
|
||||
@@ -380,6 +380,27 @@ static int vc4_hvs_debugfs_dlist_allocs(
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -111,7 +111,7 @@ Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
||||
/* The filter kernel is composed of dwords each containing 3 9-bit
|
||||
* signed integers packed next to each other.
|
||||
*/
|
||||
@@ -1511,6 +1532,8 @@ int vc4_hvs_debugfs_init(struct drm_mino
|
||||
@@ -1512,6 +1533,8 @@ int vc4_hvs_debugfs_init(struct drm_mino
|
||||
drm_debugfs_add_file(drm, "hvs_dlists", vc4_hvs_debugfs_dlist, NULL);
|
||||
}
|
||||
|
||||
@@ -120,7 +120,7 @@ Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
||||
drm_debugfs_add_file(drm, "hvs_underrun", vc4_hvs_debugfs_underrun, NULL);
|
||||
|
||||
drm_debugfs_add_file(drm, "hvs_dlist_allocs", vc4_hvs_debugfs_dlist_allocs, NULL);
|
||||
@@ -1627,6 +1650,7 @@ struct vc4_hvs *__vc4_hvs_alloc(struct v
|
||||
@@ -1628,6 +1651,7 @@ struct vc4_hvs *__vc4_hvs_alloc(struct v
|
||||
}
|
||||
|
||||
drm_mm_init(&hvs->lbm_mm, 0, lbm_size);
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
||||
|
||||
--- a/drivers/gpu/drm/vc4/vc4_hvs.c
|
||||
+++ b/drivers/gpu/drm/vc4/vc4_hvs.c
|
||||
@@ -281,8 +281,8 @@ static int vc4_hvs_debugfs_dlist(struct
|
||||
@@ -282,8 +282,8 @@ static int vc4_hvs_debugfs_dlist(struct
|
||||
|
||||
static int vc6_hvs_debugfs_dlist(struct seq_file *m, void *data)
|
||||
{
|
||||
|
||||
+2
-2
@@ -15,7 +15,7 @@ Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
||||
|
||||
--- a/drivers/gpu/drm/vc4/vc4_hvs.c
|
||||
+++ b/drivers/gpu/drm/vc4/vc4_hvs.c
|
||||
@@ -1845,9 +1845,71 @@ static const struct vc6_csc_coeff_entry
|
||||
@@ -1846,9 +1846,71 @@ static const struct vc6_csc_coeff_entry
|
||||
}
|
||||
};
|
||||
|
||||
@@ -87,7 +87,7 @@ Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
||||
unsigned int i;
|
||||
|
||||
HVS_WRITE(SCALER6_CONTROL,
|
||||
@@ -1884,16 +1946,17 @@ static int vc6_hvs_hw_init(struct vc4_hv
|
||||
@@ -1885,16 +1947,17 @@ static int vc6_hvs_hw_init(struct vc4_hv
|
||||
HVS_WRITE(CFC1_N_NL_CSC_CTRL(i), BIT(15));
|
||||
}
|
||||
} else {
|
||||
|
||||
+1
-1
@@ -41,7 +41,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
||||
|
||||
--- a/drivers/tty/serial/Kconfig
|
||||
+++ b/drivers/tty/serial/Kconfig
|
||||
@@ -1619,6 +1619,17 @@ config SERIAL_ESP32_ACM
|
||||
@@ -1620,6 +1620,17 @@ config SERIAL_ESP32_ACM
|
||||
snippet may be used:
|
||||
earlycon=esp32s3acm,mmio32,0x60038000
|
||||
|
||||
|
||||
+3
-3
@@ -14,7 +14,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.org>
|
||||
|
||||
--- a/drivers/net/usb/lan78xx.c
|
||||
+++ b/drivers/net/usb/lan78xx.c
|
||||
@@ -3286,6 +3286,11 @@ static int lan78xx_reset(struct lan78xx_
|
||||
@@ -3298,6 +3298,11 @@ static int lan78xx_reset(struct lan78xx_
|
||||
unsigned long timeout;
|
||||
int ret;
|
||||
u32 buf;
|
||||
@@ -26,7 +26,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.org>
|
||||
|
||||
ret = lan78xx_read_reg(dev, HW_CFG, &buf);
|
||||
if (ret < 0)
|
||||
@@ -3356,6 +3361,10 @@ static int lan78xx_reset(struct lan78xx_
|
||||
@@ -3368,6 +3373,10 @@ static int lan78xx_reset(struct lan78xx_
|
||||
buf |= HW_CFG_CLK125_EN_;
|
||||
buf |= HW_CFG_REFCLK25_EN_;
|
||||
|
||||
@@ -37,7 +37,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.org>
|
||||
ret = lan78xx_write_reg(dev, HW_CFG, buf);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
@@ -3448,6 +3457,10 @@ static int lan78xx_reset(struct lan78xx_
|
||||
@@ -3460,6 +3469,10 @@ static int lan78xx_reset(struct lan78xx_
|
||||
if (dev->chipid == ID_REV_CHIP_ID_7801_)
|
||||
buf &= ~MAC_CR_GMII_EN_;
|
||||
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
||||
|
||||
--- a/drivers/net/usb/lan78xx.c
|
||||
+++ b/drivers/net/usb/lan78xx.c
|
||||
@@ -2931,6 +2931,29 @@ static int lan78xx_phy_init(struct lan78
|
||||
@@ -2943,6 +2943,29 @@ static int lan78xx_phy_init(struct lan78
|
||||
goto phylink_uninit;
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
||||
|
||||
--- a/drivers/net/usb/lan78xx.c
|
||||
+++ b/drivers/net/usb/lan78xx.c
|
||||
@@ -1839,15 +1839,34 @@ exit_pm_put:
|
||||
@@ -1851,15 +1851,34 @@ exit_pm_put:
|
||||
static int lan78xx_get_eee(struct net_device *net, struct ethtool_keee *edata)
|
||||
{
|
||||
struct lan78xx_net *dev = netdev_priv(net);
|
||||
|
||||
+7
-7
@@ -19,8 +19,8 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
||||
ctlhi = CH_CTL_H_LLI_VALID;
|
||||
|
||||
if (chan->chip->dw->hdata->restrict_axi_burst_len) {
|
||||
- burst_len = chan->chip->dw->hdata->axi_rw_burst_len;
|
||||
+ burst_len = chan->chip->dw->hdata->axi_rw_burst_len[chan->id];
|
||||
- burst_len = chan->chip->dw->hdata->axi_rw_burst_len - 1;
|
||||
+ burst_len = chan->chip->dw->hdata->axi_rw_burst_len[chan->id] - 1;
|
||||
ctlhi |= CH_CTL_H_ARLEN_EN | CH_CTL_H_AWLEN_EN |
|
||||
burst_len << CH_CTL_H_ARLEN_POS |
|
||||
burst_len << CH_CTL_H_AWLEN_POS;
|
||||
@@ -28,12 +28,12 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
||||
|
||||
reg = CH_CTL_H_LLI_VALID;
|
||||
if (chan->chip->dw->hdata->restrict_axi_burst_len) {
|
||||
- u32 burst_len = chan->chip->dw->hdata->axi_rw_burst_len;
|
||||
+ u32 burst_len = chan->chip->dw->hdata->axi_rw_burst_len[chan->id];
|
||||
- u32 burst_len = chan->chip->dw->hdata->axi_rw_burst_len - 1;
|
||||
+ u32 burst_len = chan->chip->dw->hdata->axi_rw_burst_len[chan->id] - 1;
|
||||
|
||||
reg |= (CH_CTL_H_ARLEN_EN |
|
||||
burst_len << CH_CTL_H_ARLEN_POS |
|
||||
@@ -1499,6 +1499,7 @@ static int parse_device_properties(struc
|
||||
@@ -1491,6 +1491,7 @@ static int parse_device_properties(struc
|
||||
{
|
||||
struct device *dev = chip->dev;
|
||||
u32 tmp, carr[DMAC_MAX_CHANNELS];
|
||||
@@ -41,7 +41,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
||||
int ret;
|
||||
|
||||
ret = device_property_read_u32(dev, "dma-channels", &tmp);
|
||||
@@ -1555,15 +1556,21 @@ static int parse_device_properties(struc
|
||||
@@ -1547,15 +1548,21 @@ static int parse_device_properties(struc
|
||||
}
|
||||
|
||||
/* axi-max-burst-len is optional property */
|
||||
@@ -71,7 +71,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
||||
}
|
||||
|
||||
return 0;
|
||||
@@ -1677,7 +1684,7 @@ static int dw_probe(struct platform_devi
|
||||
@@ -1667,7 +1674,7 @@ static int dw_probe(struct platform_devi
|
||||
dma_cap_set(DMA_CYCLIC, dw->dma.cap_mask);
|
||||
|
||||
/* DMA capabilities */
|
||||
|
||||
+2
-2
@@ -16,7 +16,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
||||
|
||||
--- a/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c
|
||||
+++ b/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c
|
||||
@@ -1479,19 +1479,75 @@ static int __maybe_unused axi_dma_runtim
|
||||
@@ -1471,19 +1471,75 @@ static int __maybe_unused axi_dma_runtim
|
||||
return axi_dma_resume(chip);
|
||||
}
|
||||
|
||||
@@ -96,7 +96,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
||||
return dchan;
|
||||
}
|
||||
|
||||
@@ -1573,6 +1629,15 @@ static int parse_device_properties(struc
|
||||
@@ -1565,6 +1621,15 @@ static int parse_device_properties(struc
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -23,7 +23,7 @@ Signed-off-by: Nicolai Buchwitz <nb@tipi-net.de>
|
||||
|
||||
--- a/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c
|
||||
+++ b/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c
|
||||
@@ -1479,6 +1479,16 @@ static int __maybe_unused axi_dma_runtim
|
||||
@@ -1471,6 +1471,16 @@ static int __maybe_unused axi_dma_runtim
|
||||
return axi_dma_resume(chip);
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@ Signed-off-by: Nicolai Buchwitz <nb@tipi-net.de>
|
||||
static bool dw_axi_dma_filter_fn(struct dma_chan *dchan, void *filter_param)
|
||||
{
|
||||
struct axi_dma_chan *chan = dchan_to_axi_dma_chan(dchan);
|
||||
@@ -1749,7 +1759,7 @@ static int dw_probe(struct platform_devi
|
||||
@@ -1739,7 +1749,7 @@ static int dw_probe(struct platform_devi
|
||||
dma_cap_set(DMA_CYCLIC, dw->dma.cap_mask);
|
||||
|
||||
/* DMA capabilities */
|
||||
|
||||
+1
-1
@@ -109,7 +109,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
||||
};
|
||||
--- a/arch/arm64/boot/dts/broadcom/bcm2712.dtsi
|
||||
+++ b/arch/arm64/boot/dts/broadcom/bcm2712.dtsi
|
||||
@@ -615,11 +615,7 @@
|
||||
@@ -639,11 +639,7 @@
|
||||
|
||||
hvs: hvs@107c580000 {
|
||||
compatible = "brcm,bcm2712-hvs";
|
||||
|
||||
+2
-2
@@ -37,7 +37,7 @@ Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
||||
if (vc4->gen == VC4_GEN_4) {
|
||||
--- a/drivers/gpu/drm/vc4/vc4_hvs.c
|
||||
+++ b/drivers/gpu/drm/vc4/vc4_hvs.c
|
||||
@@ -1256,6 +1256,7 @@ void vc4_hvs_atomic_flush(struct drm_crt
|
||||
@@ -1257,6 +1257,7 @@ void vc4_hvs_atomic_flush(struct drm_crt
|
||||
struct vc4_crtc *vc4_crtc = to_vc4_crtc(crtc);
|
||||
struct vc4_crtc_state *vc4_state = to_vc4_crtc_state(crtc->state);
|
||||
unsigned int channel = vc4_state->assigned_channel;
|
||||
@@ -45,7 +45,7 @@ Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
||||
struct drm_plane *plane;
|
||||
struct vc4_plane_state *vc4_plane_state;
|
||||
bool debug_dump_regs = false;
|
||||
@@ -1320,16 +1321,46 @@ void vc4_hvs_atomic_flush(struct drm_crt
|
||||
@@ -1321,16 +1322,46 @@ void vc4_hvs_atomic_flush(struct drm_crt
|
||||
WARN_ON_ONCE(dlist_next - dlist_start != vc4_state->mm->mm_node.size);
|
||||
|
||||
if (vc4->gen >= VC4_GEN_6_C) {
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ This reverts commit abe92ec1f594420e6b70e5f5e79c7c11d1206822.
|
||||
|
||||
--- a/drivers/net/usb/lan78xx.c
|
||||
+++ b/drivers/net/usb/lan78xx.c
|
||||
@@ -1981,7 +1981,6 @@ static const struct ethtool_ops lan78xx_
|
||||
@@ -1993,7 +1993,6 @@ static const struct ethtool_ops lan78xx_
|
||||
.set_link_ksettings = lan78xx_set_link_ksettings,
|
||||
.get_regs_len = lan78xx_get_regs_len,
|
||||
.get_regs = lan78xx_get_regs,
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ This reverts commit 9c78c6d07692d46d98ffd9b55092c5874d533e1a.
|
||||
|
||||
--- a/drivers/net/usb/lan78xx.c
|
||||
+++ b/drivers/net/usb/lan78xx.c
|
||||
@@ -1839,34 +1839,15 @@ exit_pm_put:
|
||||
@@ -1851,34 +1851,15 @@ exit_pm_put:
|
||||
static int lan78xx_get_eee(struct net_device *net, struct ethtool_keee *edata)
|
||||
{
|
||||
struct lan78xx_net *dev = netdev_priv(net);
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ This reverts commit 98fb76f556f399cf9e6bbabc2aae0110192a8a91.
|
||||
|
||||
--- a/drivers/net/usb/lan78xx.c
|
||||
+++ b/drivers/net/usb/lan78xx.c
|
||||
@@ -2930,29 +2930,6 @@ static int lan78xx_phy_init(struct lan78
|
||||
@@ -2942,29 +2942,6 @@ static int lan78xx_phy_init(struct lan78
|
||||
goto phylink_uninit;
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ Subject: [PATCH] arm64: dts: Revert to upstream
|
||||
|
||||
--- a/arch/arm64/boot/dts/broadcom/bcm2712.dtsi
|
||||
+++ b/arch/arm64/boot/dts/broadcom/bcm2712.dtsi
|
||||
@@ -38,6 +38,13 @@
|
||||
@@ -39,6 +39,13 @@
|
||||
clock-frequency = <200000000>;
|
||||
clock-output-names = "emmc2-clock";
|
||||
};
|
||||
@@ -23,7 +23,7 @@ Subject: [PATCH] arm64: dts: Revert to upstream
|
||||
};
|
||||
|
||||
cpus: cpus {
|
||||
@@ -252,6 +259,39 @@
|
||||
@@ -253,6 +260,39 @@
|
||||
system-power-controller;
|
||||
};
|
||||
|
||||
@@ -63,7 +63,7 @@ Subject: [PATCH] arm64: dts: Revert to upstream
|
||||
interrupt-controller@7d517000 {
|
||||
compatible = "brcm,bcm7271-l2-intc";
|
||||
reg = <0x7d517000 0x10>;
|
||||
@@ -272,6 +312,21 @@
|
||||
@@ -273,6 +313,21 @@
|
||||
*/
|
||||
};
|
||||
|
||||
@@ -85,10 +85,10 @@ Subject: [PATCH] arm64: dts: Revert to upstream
|
||||
gicv2: interrupt-controller@7fff9000 {
|
||||
compatible = "arm,gic-400";
|
||||
reg = <0x7fff9000 0x1000>,
|
||||
@@ -619,6 +674,5 @@
|
||||
interrupt-parent = <&disp_intr>;
|
||||
@@ -644,6 +699,5 @@
|
||||
interrupts = <2>, <9>, <16>;
|
||||
interrupt-names = "ch0-eof", "ch1-eof", "ch2-eof";
|
||||
status = "disabled";
|
||||
- iommus = <&iommu4>;
|
||||
};
|
||||
};
|
||||
+5
-5
@@ -10,7 +10,7 @@ This reverts commit 5c635c793591bb06bc51c4ac464bde529382ab43.
|
||||
|
||||
--- a/arch/arm64/boot/dts/broadcom/bcm2712.dtsi
|
||||
+++ b/arch/arm64/boot/dts/broadcom/bcm2712.dtsi
|
||||
@@ -38,13 +38,6 @@
|
||||
@@ -39,13 +39,6 @@
|
||||
clock-frequency = <200000000>;
|
||||
clock-output-names = "emmc2-clock";
|
||||
};
|
||||
@@ -24,7 +24,7 @@ This reverts commit 5c635c793591bb06bc51c4ac464bde529382ab43.
|
||||
};
|
||||
|
||||
cpus: cpus {
|
||||
@@ -250,48 +243,6 @@
|
||||
@@ -251,48 +244,6 @@
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
@@ -73,7 +73,7 @@ This reverts commit 5c635c793591bb06bc51c4ac464bde529382ab43.
|
||||
interrupt-controller@7d517000 {
|
||||
compatible = "brcm,bcm7271-l2-intc";
|
||||
reg = <0x7d517000 0x10>;
|
||||
@@ -312,21 +263,6 @@
|
||||
@@ -313,21 +264,6 @@
|
||||
*/
|
||||
};
|
||||
|
||||
@@ -95,10 +95,10 @@ This reverts commit 5c635c793591bb06bc51c4ac464bde529382ab43.
|
||||
gicv2: interrupt-controller@7fff9000 {
|
||||
compatible = "arm,gic-400";
|
||||
reg = <0x7fff9000 0x1000>,
|
||||
@@ -674,5 +610,6 @@
|
||||
interrupt-parent = <&disp_intr>;
|
||||
@@ -699,5 +635,6 @@
|
||||
interrupts = <2>, <9>, <16>;
|
||||
interrupt-names = "ch0-eof", "ch1-eof", "ch2-eof";
|
||||
status = "disabled";
|
||||
+ iommus = <&iommu4>;
|
||||
};
|
||||
};
|
||||
+1
-1
@@ -18,7 +18,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
||||
|
||||
--- a/drivers/tty/serial/Kconfig
|
||||
+++ b/drivers/tty/serial/Kconfig
|
||||
@@ -1630,6 +1630,19 @@ config SERIAL_RPI_FW
|
||||
@@ -1631,6 +1631,19 @@ config SERIAL_RPI_FW
|
||||
|
||||
If unsure, say N.
|
||||
|
||||
|
||||
+6
-6
@@ -58,7 +58,7 @@ Signed-off-by: Dom Cobley <popcornmix@gmail.com>
|
||||
|
||||
--- a/drivers/gpu/drm/vc4/vc4_hvs.c
|
||||
+++ b/drivers/gpu/drm/vc4/vc4_hvs.c
|
||||
@@ -945,6 +945,7 @@ static int vc4_hvs_init_channel(struct v
|
||||
@@ -946,6 +946,7 @@ static int vc4_hvs_init_channel(struct v
|
||||
struct vc4_crtc_state *vc4_crtc_state = to_vc4_crtc_state(crtc->state);
|
||||
unsigned int chan = vc4_crtc_state->assigned_channel;
|
||||
bool interlace = mode->flags & DRM_MODE_FLAG_INTERLACE;
|
||||
@@ -66,7 +66,7 @@ Signed-off-by: Dom Cobley <popcornmix@gmail.com>
|
||||
u32 dispbkgndx;
|
||||
u32 dispctrl;
|
||||
int idx;
|
||||
@@ -954,6 +955,9 @@ static int vc4_hvs_init_channel(struct v
|
||||
@@ -955,6 +956,9 @@ static int vc4_hvs_init_channel(struct v
|
||||
if (!drm_dev_enter(drm, &idx))
|
||||
return -ENODEV;
|
||||
|
||||
@@ -76,7 +76,7 @@ Signed-off-by: Dom Cobley <popcornmix@gmail.com>
|
||||
HVS_WRITE(SCALER_DISPCTRLX(chan), 0);
|
||||
HVS_WRITE(SCALER_DISPCTRLX(chan), SCALER_DISPCTRLX_RESET);
|
||||
HVS_WRITE(SCALER_DISPCTRLX(chan), 0);
|
||||
@@ -967,16 +971,16 @@ static int vc4_hvs_init_channel(struct v
|
||||
@@ -968,16 +972,16 @@ static int vc4_hvs_init_channel(struct v
|
||||
dispbkgndx = HVS_READ(SCALER_DISPBKGNDX(chan));
|
||||
|
||||
if (vc4->gen == VC4_GEN_4) {
|
||||
@@ -97,7 +97,7 @@ Signed-off-by: Dom Cobley <popcornmix@gmail.com>
|
||||
SCALER5_DISPCTRLX_HEIGHT) |
|
||||
(oneshot ? SCALER5_DISPCTRLX_ONESHOT : 0);
|
||||
dispbkgndx &= ~SCALER5_DISPBKGND_BCK2BCK;
|
||||
@@ -1009,6 +1013,7 @@ static int vc6_hvs_init_channel(struct v
|
||||
@@ -1010,6 +1014,7 @@ static int vc6_hvs_init_channel(struct v
|
||||
struct vc4_crtc_state *vc4_crtc_state = to_vc4_crtc_state(crtc->state);
|
||||
unsigned int chan = vc4_crtc_state->assigned_channel;
|
||||
bool interlace = mode->flags & DRM_MODE_FLAG_INTERLACE;
|
||||
@@ -105,7 +105,7 @@ Signed-off-by: Dom Cobley <popcornmix@gmail.com>
|
||||
u32 disp_ctrl1;
|
||||
int idx;
|
||||
|
||||
@@ -1017,6 +1022,9 @@ static int vc6_hvs_init_channel(struct v
|
||||
@@ -1018,6 +1023,9 @@ static int vc6_hvs_init_channel(struct v
|
||||
if (!drm_dev_enter(drm, &idx))
|
||||
return -ENODEV;
|
||||
|
||||
@@ -115,7 +115,7 @@ Signed-off-by: Dom Cobley <popcornmix@gmail.com>
|
||||
HVS_WRITE(SCALER6_DISPX_CTRL0(chan), SCALER6_DISPX_CTRL0_RESET);
|
||||
|
||||
disp_ctrl1 = HVS_READ(SCALER6_DISPX_CTRL1(chan));
|
||||
@@ -1026,10 +1034,10 @@ static int vc6_hvs_init_channel(struct v
|
||||
@@ -1027,10 +1035,10 @@ static int vc6_hvs_init_channel(struct v
|
||||
|
||||
HVS_WRITE(SCALER6_DISPX_CTRL0(chan),
|
||||
SCALER6_DISPX_CTRL0_ENB |
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
||||
|
||||
--- a/sound/soc/dwc/dwc-i2s.c
|
||||
+++ b/sound/soc/dwc/dwc-i2s.c
|
||||
@@ -813,7 +813,7 @@ static int dw_configure_dai_by_dt(struct
|
||||
@@ -814,7 +814,7 @@ static int dw_configure_dai_by_dt(struct
|
||||
u32 idx2;
|
||||
int ret;
|
||||
|
||||
|
||||
@@ -131,7 +131,7 @@ Signed-off-by: Hans Verkuil <hverkuil@kernel.org>
|
||||
|
||||
/* Managed transfer list */
|
||||
do {
|
||||
@@ -1208,18 +1227,14 @@ out:
|
||||
@@ -1205,18 +1224,14 @@ out:
|
||||
spin_unlock_irqrestore(&chan->vc.lock, flags);
|
||||
}
|
||||
|
||||
@@ -152,7 +152,7 @@ Signed-off-by: Hans Verkuil <hverkuil@kernel.org>
|
||||
dev_err(chan2dev(chan), "BUG: %s caught DWAXIDMAC_IRQ_DMA_TRF, but channel not idle!\n",
|
||||
axi_chan_name(chan));
|
||||
axi_chan_disable(chan);
|
||||
@@ -1236,22 +1251,52 @@ static void axi_chan_block_xfer_complete
|
||||
@@ -1233,22 +1248,52 @@ static void axi_chan_block_xfer_complete
|
||||
if (chan->cyclic) {
|
||||
desc = vd_to_axi_desc(vd);
|
||||
if (desc) {
|
||||
@@ -220,7 +220,7 @@ Signed-off-by: Hans Verkuil <hverkuil@kernel.org>
|
||||
}
|
||||
} else {
|
||||
/* Remove the completed descriptor from issued list before completing */
|
||||
@@ -1288,8 +1333,8 @@ static irqreturn_t dw_axi_dma_interrupt(
|
||||
@@ -1285,8 +1330,8 @@ static irqreturn_t dw_axi_dma_interrupt(
|
||||
|
||||
if (status & DWAXIDMAC_IRQ_ALL_ERR)
|
||||
axi_chan_handle_err(chan, status);
|
||||
@@ -233,7 +233,7 @@ Signed-off-by: Hans Verkuil <hverkuil@kernel.org>
|
||||
/* Re-enable interrupts */
|
||||
--- a/drivers/dma/dw-axi-dmac/dw-axi-dmac.h
|
||||
+++ b/drivers/dma/dw-axi-dmac/dw-axi-dmac.h
|
||||
@@ -252,6 +252,7 @@ enum {
|
||||
@@ -251,6 +251,7 @@ enum {
|
||||
DWAXIDMAC_ARWLEN_MAX = DWAXIDMAC_ARWLEN_256
|
||||
};
|
||||
|
||||
|
||||
+2
-2
@@ -53,7 +53,7 @@ Signed-off-by: Dom Cobley <popcornmix@gmail.com>
|
||||
|
||||
--- a/drivers/gpu/drm/vc4/vc4_hvs.c
|
||||
+++ b/drivers/gpu/drm/vc4/vc4_hvs.c
|
||||
@@ -409,30 +409,53 @@ static int vc4_hvs_debugfs_lbm_allocs(st
|
||||
@@ -410,30 +410,53 @@ static int vc4_hvs_debugfs_lbm_allocs(st
|
||||
(((c1) & 0x1ff) << 9) | \
|
||||
(((c2) & 0x1ff) << 18))
|
||||
|
||||
@@ -118,7 +118,7 @@ Signed-off-by: Dom Cobley <popcornmix@gmail.com>
|
||||
static const u32 nearest_neighbour_kernel[] =
|
||||
VC4_LINEAR_PHASE_KERNEL(0, 0, 0, 0, 0, 0, 0, 0,
|
||||
1, 1, 1, 1, 255, 255, 255, 255);
|
||||
@@ -458,14 +481,8 @@ static int vc4_hvs_upload_linear_kernel(
|
||||
@@ -459,14 +482,8 @@ static int vc4_hvs_upload_linear_kernel(
|
||||
|
||||
dst_kernel = hvs->dlist + space->start;
|
||||
|
||||
|
||||
+3
-3
@@ -51,7 +51,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
||||
static inline void axi_chan_enable(struct axi_dma_chan *chan)
|
||||
{
|
||||
u64 val;
|
||||
@@ -1356,9 +1382,21 @@ static int dma_chan_terminate_all(struct
|
||||
@@ -1353,9 +1379,21 @@ static int dma_chan_terminate_all(struct
|
||||
|
||||
ret = readl_poll_timeout_atomic(chan->chip->regs + DMAC_CHEN, val,
|
||||
!(val & chan_active), 1000, 50000);
|
||||
@@ -78,7 +78,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
||||
dw_axi_dma_set_hw_channel(chan, false);
|
||||
--- a/drivers/dma/dw-axi-dmac/dw-axi-dmac.h
|
||||
+++ b/drivers/dma/dw-axi-dmac/dw-axi-dmac.h
|
||||
@@ -221,6 +221,9 @@ static inline struct axi_dma_chan *dchan
|
||||
@@ -220,6 +220,9 @@ static inline struct axi_dma_chan *dchan
|
||||
#define DMAC_CHAN_SUSP_SHIFT 16
|
||||
#define DMAC_CHAN_SUSP_WE_SHIFT 24
|
||||
|
||||
@@ -88,7 +88,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
||||
/* DMAC_CHEN2 */
|
||||
#define DMAC_CHAN_EN2_WE_SHIFT 16
|
||||
|
||||
@@ -232,6 +235,10 @@ static inline struct axi_dma_chan *dchan
|
||||
@@ -231,6 +234,10 @@ static inline struct axi_dma_chan *dchan
|
||||
#define DMAC_CHAN_SUSP2_SHIFT 0
|
||||
#define DMAC_CHAN_SUSP2_WE_SHIFT 16
|
||||
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
||||
|
||||
--- a/sound/soc/dwc/dwc-i2s.c
|
||||
+++ b/sound/soc/dwc/dwc-i2s.c
|
||||
@@ -209,15 +209,23 @@ static void i2s_start(struct dw_i2s_dev
|
||||
@@ -210,15 +210,23 @@ static void i2s_start(struct dw_i2s_dev
|
||||
static void i2s_stop(struct dw_i2s_dev *dev,
|
||||
struct snd_pcm_substream *substream)
|
||||
{
|
||||
|
||||
+1
-1
@@ -42,7 +42,7 @@ Signed-off-by: Mark Brown <broonie@kernel.org>
|
||||
|
||||
--- a/sound/soc/codecs/es8389.c
|
||||
+++ b/sound/soc/codecs/es8389.c
|
||||
@@ -57,8 +57,8 @@ static const DECLARE_TLV_DB_SCALE(alc_ma
|
||||
@@ -76,8 +76,8 @@ static const DECLARE_TLV_DB_SCALE(alc_ma
|
||||
static int es8389_dmic_set(struct snd_kcontrol *kcontrol,
|
||||
struct snd_ctl_elem_value *ucontrol)
|
||||
{
|
||||
|
||||
+4
-4
@@ -47,7 +47,7 @@ Signed-off-by: Mark Brown <broonie@kernel.org>
|
||||
static bool es8389_volatile_register(struct device *dev,
|
||||
unsigned int reg)
|
||||
{
|
||||
@@ -818,7 +826,7 @@ static int es8389_resume(struct snd_soc_
|
||||
@@ -845,7 +853,7 @@ disable_bypass:
|
||||
|
||||
static int es8389_probe(struct snd_soc_component *component)
|
||||
{
|
||||
@@ -56,7 +56,7 @@ Signed-off-by: Mark Brown <broonie@kernel.org>
|
||||
struct es8389_private *es8389 = snd_soc_component_get_drvdata(component);
|
||||
|
||||
ret = device_property_read_u8(component->dev, "everest,mclk-src", &es8389->mclk_src);
|
||||
@@ -827,6 +835,14 @@ static int es8389_probe(struct snd_soc_c
|
||||
@@ -854,6 +862,14 @@ static int es8389_probe(struct snd_soc_c
|
||||
es8389->mclk_src = ES8389_MCLK_SOURCE;
|
||||
}
|
||||
|
||||
@@ -71,7 +71,7 @@ Signed-off-by: Mark Brown <broonie@kernel.org>
|
||||
es8389->mclk = devm_clk_get_optional(component->dev, "mclk");
|
||||
if (IS_ERR(es8389->mclk))
|
||||
return dev_err_probe(component->dev, PTR_ERR(es8389->mclk),
|
||||
@@ -841,6 +857,13 @@ static int es8389_probe(struct snd_soc_c
|
||||
@@ -868,6 +884,13 @@ static int es8389_probe(struct snd_soc_c
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -85,7 +85,7 @@ Signed-off-by: Mark Brown <broonie@kernel.org>
|
||||
es8389_init(component);
|
||||
es8389_set_bias_level(component, SND_SOC_BIAS_STANDBY);
|
||||
|
||||
@@ -907,6 +930,8 @@ static void es8389_i2c_shutdown(struct i
|
||||
@@ -934,6 +957,8 @@ static void es8389_i2c_shutdown(struct i
|
||||
regmap_write(es8389->regmap, ES8389_ANA_CTL1, 0x08);
|
||||
regmap_write(es8389->regmap, ES8389_ISO_CTL, 0xC1);
|
||||
regmap_write(es8389->regmap, ES8389_PULL_DOWN, 0x00);
|
||||
|
||||
+3
-3
@@ -16,7 +16,7 @@ Signed-off-by: Mark Brown <broonie@kernel.org>
|
||||
|
||||
--- a/sound/soc/codecs/es8389.c
|
||||
+++ b/sound/soc/codecs/es8389.c
|
||||
@@ -629,10 +629,6 @@ static int es8389_set_bias_level(struct
|
||||
@@ -648,10 +648,6 @@ static int es8389_set_bias_level(struct
|
||||
regmap_write(es8389->regmap, ES8389_CSM_JUMP, 0xE4);
|
||||
regmap_write(es8389->regmap, ES8389_RESET, 0x01);
|
||||
regmap_write(es8389->regmap, ES8389_CLK_OFF1, 0xC3);
|
||||
@@ -27,7 +27,7 @@ Signed-off-by: Mark Brown <broonie@kernel.org>
|
||||
break;
|
||||
case SND_SOC_BIAS_PREPARE:
|
||||
break;
|
||||
@@ -663,6 +659,7 @@ static int es8389_mute(struct snd_soc_da
|
||||
@@ -682,6 +678,7 @@ static int es8389_mute(struct snd_soc_da
|
||||
{
|
||||
struct snd_soc_component *component = dai->component;
|
||||
struct es8389_private *es8389 = snd_soc_component_get_drvdata(component);
|
||||
@@ -35,7 +35,7 @@ Signed-off-by: Mark Brown <broonie@kernel.org>
|
||||
|
||||
if (mute) {
|
||||
if (direction == SNDRV_PCM_STREAM_PLAYBACK) {
|
||||
@@ -673,10 +670,22 @@ static int es8389_mute(struct snd_soc_da
|
||||
@@ -692,10 +689,22 @@ static int es8389_mute(struct snd_soc_da
|
||||
0x03, 0x03);
|
||||
}
|
||||
} else {
|
||||
|
||||
+2
-2
@@ -25,7 +25,7 @@ Signed-off-by: Mark Brown <broonie@kernel.org>
|
||||
enum snd_soc_bias_level bias_level;
|
||||
};
|
||||
|
||||
@@ -681,6 +682,10 @@ static int es8389_mute(struct snd_soc_da
|
||||
@@ -700,6 +701,10 @@ static int es8389_mute(struct snd_soc_da
|
||||
}
|
||||
|
||||
if (direction == SNDRV_PCM_STREAM_PLAYBACK) {
|
||||
@@ -36,7 +36,7 @@ Signed-off-by: Mark Brown <broonie@kernel.org>
|
||||
regmap_update_bits(es8389->regmap, ES8389_DAC_FORMAT_MUTE,
|
||||
0x03, 0x00);
|
||||
} else {
|
||||
@@ -730,7 +735,10 @@ static struct snd_soc_dai_driver es8389_
|
||||
@@ -749,7 +754,10 @@ static struct snd_soc_dai_driver es8389_
|
||||
static void es8389_init(struct snd_soc_component *component)
|
||||
{
|
||||
struct es8389_private *es8389 = snd_soc_component_get_drvdata(component);
|
||||
|
||||
+3
-3
@@ -17,7 +17,7 @@ Signed-off-by: Mark Brown <broonie@kernel.org>
|
||||
|
||||
--- a/sound/soc/codecs/es8389.c
|
||||
+++ b/sound/soc/codecs/es8389.c
|
||||
@@ -376,95 +376,110 @@ struct _coeff_div {
|
||||
@@ -395,95 +395,110 @@ struct _coeff_div {
|
||||
u8 Reg0x16;
|
||||
u8 Reg0x18;
|
||||
u8 Reg0x19;
|
||||
@@ -206,7 +206,7 @@ Signed-off-by: Mark Brown <broonie@kernel.org>
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
@@ -546,8 +561,9 @@ static int es8389_pcm_hw_params(struct s
|
||||
@@ -565,8 +580,9 @@ static int es8389_pcm_hw_params(struct s
|
||||
{
|
||||
struct snd_soc_component *component = dai->component;
|
||||
struct es8389_private *es8389 = snd_soc_component_get_drvdata(component);
|
||||
@@ -218,7 +218,7 @@ Signed-off-by: Mark Brown <broonie@kernel.org>
|
||||
|
||||
switch (params_format(params)) {
|
||||
case SNDRV_PCM_FORMAT_S16_LE:
|
||||
@@ -578,7 +594,23 @@ static int es8389_pcm_hw_params(struct s
|
||||
@@ -597,7 +613,23 @@ static int es8389_pcm_hw_params(struct s
|
||||
es8389->sysclk = params_channels(params) * params_width(params) * params_rate(params);
|
||||
}
|
||||
|
||||
|
||||
+26
-26
@@ -441,7 +441,7 @@ Signed-off-by: Mark Brown <broonie@kernel.org>
|
||||
MODULE_DEVICE_TABLE(i2c, ak4619_i2c_id);
|
||||
--- a/sound/soc/codecs/ak4642.c
|
||||
+++ b/sound/soc/codecs/ak4642.c
|
||||
@@ -672,10 +672,10 @@ static const struct of_device_id ak4642_
|
||||
@@ -671,10 +671,10 @@ static const struct of_device_id ak4642_
|
||||
MODULE_DEVICE_TABLE(of, ak4642_of_match);
|
||||
|
||||
static const struct i2c_device_id ak4642_i2c_id[] = {
|
||||
@@ -523,7 +523,7 @@ Signed-off-by: Mark Brown <broonie@kernel.org>
|
||||
MODULE_DEVICE_TABLE(i2c, aw88081_i2c_id);
|
||||
--- a/sound/soc/codecs/aw88166.c
|
||||
+++ b/sound/soc/codecs/aw88166.c
|
||||
@@ -1910,7 +1910,7 @@ static int aw88166_i2c_probe(struct i2c_
|
||||
@@ -1797,7 +1797,7 @@ static int aw88166_i2c_probe(struct i2c_
|
||||
}
|
||||
|
||||
static const struct i2c_device_id aw88166_i2c_id[] = {
|
||||
@@ -556,7 +556,7 @@ Signed-off-by: Mark Brown <broonie@kernel.org>
|
||||
MODULE_DEVICE_TABLE(i2c, aw88395_i2c_id);
|
||||
--- a/sound/soc/codecs/aw88399.c
|
||||
+++ b/sound/soc/codecs/aw88399.c
|
||||
@@ -2323,7 +2323,7 @@ static int aw88399_i2c_probe(struct i2c_
|
||||
@@ -797,7 +797,7 @@ static int aw88399_i2c_probe(struct i2c_
|
||||
}
|
||||
|
||||
static const struct i2c_device_id aw88399_i2c_id[] = {
|
||||
@@ -749,7 +749,7 @@ Signed-off-by: Mark Brown <broonie@kernel.org>
|
||||
MODULE_DEVICE_TABLE(i2c, cs42l52_id);
|
||||
--- a/sound/soc/codecs/cs42l56.c
|
||||
+++ b/sound/soc/codecs/cs42l56.c
|
||||
@@ -1352,7 +1352,7 @@ MODULE_DEVICE_TABLE(of, cs42l56_of_match
|
||||
@@ -1351,7 +1351,7 @@ MODULE_DEVICE_TABLE(of, cs42l56_of_match
|
||||
|
||||
|
||||
static const struct i2c_device_id cs42l56_id[] = {
|
||||
@@ -966,7 +966,7 @@ Signed-off-by: Mark Brown <broonie@kernel.org>
|
||||
MODULE_DEVICE_TABLE(i2c, es8311_id);
|
||||
--- a/sound/soc/codecs/es8316.c
|
||||
+++ b/sound/soc/codecs/es8316.c
|
||||
@@ -895,8 +895,8 @@ static int es8316_i2c_probe(struct i2c_c
|
||||
@@ -893,8 +893,8 @@ static int es8316_i2c_probe(struct i2c_c
|
||||
}
|
||||
|
||||
static const struct i2c_device_id es8316_i2c_id[] = {
|
||||
@@ -979,7 +979,7 @@ Signed-off-by: Mark Brown <broonie@kernel.org>
|
||||
|
||||
--- a/sound/soc/codecs/es8323.c
|
||||
+++ b/sound/soc/codecs/es8323.c
|
||||
@@ -757,7 +757,7 @@ static int es8323_i2c_probe(struct i2c_c
|
||||
@@ -755,7 +755,7 @@ static int es8323_i2c_probe(struct i2c_c
|
||||
}
|
||||
|
||||
static const struct i2c_device_id es8323_i2c_id[] = {
|
||||
@@ -990,7 +990,7 @@ Signed-off-by: Mark Brown <broonie@kernel.org>
|
||||
MODULE_DEVICE_TABLE(i2c, es8323_i2c_id);
|
||||
--- a/sound/soc/codecs/es8326.c
|
||||
+++ b/sound/soc/codecs/es8326.c
|
||||
@@ -1335,8 +1335,8 @@ static void es8326_i2c_remove(struct i2c
|
||||
@@ -1345,8 +1345,8 @@ static void es8326_i2c_remove(struct i2c
|
||||
}
|
||||
|
||||
static const struct i2c_device_id es8326_i2c_id[] = {
|
||||
@@ -1016,7 +1016,7 @@ Signed-off-by: Mark Brown <broonie@kernel.org>
|
||||
MODULE_DEVICE_TABLE(i2c, es8328_id);
|
||||
--- a/sound/soc/codecs/es8375.c
|
||||
+++ b/sound/soc/codecs/es8375.c
|
||||
@@ -754,7 +754,7 @@ static void es8375_i2c_shutdown(struct i
|
||||
@@ -758,7 +758,7 @@ static void es8375_i2c_shutdown(struct i
|
||||
}
|
||||
|
||||
static const struct i2c_device_id es8375_id[] = {
|
||||
@@ -1027,7 +1027,7 @@ Signed-off-by: Mark Brown <broonie@kernel.org>
|
||||
MODULE_DEVICE_TABLE(i2c, es8375_id);
|
||||
--- a/sound/soc/codecs/es8389.c
|
||||
+++ b/sound/soc/codecs/es8389.c
|
||||
@@ -1015,7 +1015,7 @@ MODULE_DEVICE_TABLE(of, es8389_if_dt_ids
|
||||
@@ -1042,7 +1042,7 @@ MODULE_DEVICE_TABLE(of, es8389_if_dt_ids
|
||||
#endif
|
||||
|
||||
static const struct i2c_device_id es8389_i2c_id[] = {
|
||||
@@ -1038,7 +1038,7 @@ Signed-off-by: Mark Brown <broonie@kernel.org>
|
||||
MODULE_DEVICE_TABLE(i2c, es8389_i2c_id);
|
||||
--- a/sound/soc/codecs/fs210x.c
|
||||
+++ b/sound/soc/codecs/fs210x.c
|
||||
@@ -1557,9 +1557,9 @@ static void fs210x_i2c_remove(struct i2c
|
||||
@@ -1558,9 +1558,9 @@ static void fs210x_i2c_remove(struct i2c
|
||||
}
|
||||
|
||||
static const struct i2c_device_id fs210x_i2c_id[] = {
|
||||
@@ -1337,7 +1337,7 @@ Signed-off-by: Mark Brown <broonie@kernel.org>
|
||||
MODULE_DEVICE_TABLE(i2c, nau8325_i2c_ids);
|
||||
--- a/sound/soc/codecs/nau8540.c
|
||||
+++ b/sound/soc/codecs/nau8540.c
|
||||
@@ -965,7 +965,7 @@ static int nau8540_i2c_probe(struct i2c_
|
||||
@@ -963,7 +963,7 @@ static int nau8540_i2c_probe(struct i2c_
|
||||
}
|
||||
|
||||
static const struct i2c_device_id nau8540_i2c_ids[] = {
|
||||
@@ -1374,7 +1374,7 @@ Signed-off-by: Mark Brown <broonie@kernel.org>
|
||||
MODULE_DEVICE_TABLE(i2c, nau8821_i2c_ids);
|
||||
--- a/sound/soc/codecs/nau8822.c
|
||||
+++ b/sound/soc/codecs/nau8822.c
|
||||
@@ -1193,7 +1193,7 @@ static int nau8822_i2c_probe(struct i2c_
|
||||
@@ -1243,7 +1243,7 @@ static void nau8822_i2c_remove(struct i2
|
||||
}
|
||||
|
||||
static const struct i2c_device_id nau8822_i2c_id[] = {
|
||||
@@ -1572,7 +1572,7 @@ Signed-off-by: Mark Brown <broonie@kernel.org>
|
||||
|
||||
--- a/sound/soc/codecs/rt1011.c
|
||||
+++ b/sound/soc/codecs/rt1011.c
|
||||
@@ -2206,7 +2206,7 @@ MODULE_DEVICE_TABLE(acpi, rt1011_acpi_ma
|
||||
@@ -2204,7 +2204,7 @@ MODULE_DEVICE_TABLE(acpi, rt1011_acpi_ma
|
||||
#endif
|
||||
|
||||
static const struct i2c_device_id rt1011_i2c_id[] = {
|
||||
@@ -1583,7 +1583,7 @@ Signed-off-by: Mark Brown <broonie@kernel.org>
|
||||
MODULE_DEVICE_TABLE(i2c, rt1011_i2c_id);
|
||||
--- a/sound/soc/codecs/rt1015.c
|
||||
+++ b/sound/soc/codecs/rt1015.c
|
||||
@@ -1097,7 +1097,7 @@ static const struct regmap_config rt1015
|
||||
@@ -1147,7 +1147,7 @@ static const struct regmap_config rt1015
|
||||
};
|
||||
|
||||
static const struct i2c_device_id rt1015_i2c_id[] = {
|
||||
@@ -1594,7 +1594,7 @@ Signed-off-by: Mark Brown <broonie@kernel.org>
|
||||
MODULE_DEVICE_TABLE(i2c, rt1015_i2c_id);
|
||||
--- a/sound/soc/codecs/rt1016.c
|
||||
+++ b/sound/soc/codecs/rt1016.c
|
||||
@@ -608,7 +608,7 @@ static const struct regmap_config rt1016
|
||||
@@ -606,7 +606,7 @@ static const struct regmap_config rt1016
|
||||
};
|
||||
|
||||
static const struct i2c_device_id rt1016_i2c_id[] = {
|
||||
@@ -1616,7 +1616,7 @@ Signed-off-by: Mark Brown <broonie@kernel.org>
|
||||
MODULE_DEVICE_TABLE(i2c, rt1019_i2c_id);
|
||||
--- a/sound/soc/codecs/rt1305.c
|
||||
+++ b/sound/soc/codecs/rt1305.c
|
||||
@@ -981,8 +981,8 @@ MODULE_DEVICE_TABLE(acpi, rt1305_acpi_ma
|
||||
@@ -979,8 +979,8 @@ MODULE_DEVICE_TABLE(acpi, rt1305_acpi_ma
|
||||
#endif
|
||||
|
||||
static const struct i2c_device_id rt1305_i2c_id[] = {
|
||||
@@ -1629,7 +1629,7 @@ Signed-off-by: Mark Brown <broonie@kernel.org>
|
||||
MODULE_DEVICE_TABLE(i2c, rt1305_i2c_id);
|
||||
--- a/sound/soc/codecs/rt1308.c
|
||||
+++ b/sound/soc/codecs/rt1308.c
|
||||
@@ -795,7 +795,7 @@ MODULE_DEVICE_TABLE(acpi, rt1308_acpi_ma
|
||||
@@ -793,7 +793,7 @@ MODULE_DEVICE_TABLE(acpi, rt1308_acpi_ma
|
||||
#endif
|
||||
|
||||
static const struct i2c_device_id rt1308_i2c_id[] = {
|
||||
@@ -1640,7 +1640,7 @@ Signed-off-by: Mark Brown <broonie@kernel.org>
|
||||
MODULE_DEVICE_TABLE(i2c, rt1308_i2c_id);
|
||||
--- a/sound/soc/codecs/rt1318.c
|
||||
+++ b/sound/soc/codecs/rt1318.c
|
||||
@@ -1140,7 +1140,7 @@ static const struct regmap_config rt1318
|
||||
@@ -1139,7 +1139,7 @@ static const struct regmap_config rt1318
|
||||
};
|
||||
|
||||
static const struct i2c_device_id rt1318_i2c_id[] = {
|
||||
@@ -1703,7 +1703,7 @@ Signed-off-by: Mark Brown <broonie@kernel.org>
|
||||
MODULE_DEVICE_TABLE(i2c, rt5514_i2c_id);
|
||||
--- a/sound/soc/codecs/rt5616.c
|
||||
+++ b/sound/soc/codecs/rt5616.c
|
||||
@@ -1320,7 +1320,7 @@ static const struct regmap_config rt5616
|
||||
@@ -1319,7 +1319,7 @@ static const struct regmap_config rt5616
|
||||
};
|
||||
|
||||
static const struct i2c_device_id rt5616_i2c_id[] = {
|
||||
@@ -1742,7 +1742,7 @@ Signed-off-by: Mark Brown <broonie@kernel.org>
|
||||
MODULE_DEVICE_TABLE(i2c, rt5640_i2c_id);
|
||||
--- a/sound/soc/codecs/rt5645.c
|
||||
+++ b/sound/soc/codecs/rt5645.c
|
||||
@@ -3649,8 +3649,8 @@ static const struct regmap_config temp_r
|
||||
@@ -3650,8 +3650,8 @@ static const struct regmap_config temp_r
|
||||
};
|
||||
|
||||
static const struct i2c_device_id rt5645_i2c_id[] = {
|
||||
@@ -1766,7 +1766,7 @@ Signed-off-by: Mark Brown <broonie@kernel.org>
|
||||
MODULE_DEVICE_TABLE(i2c, rt5651_i2c_id);
|
||||
--- a/sound/soc/codecs/rt5659.c
|
||||
+++ b/sound/soc/codecs/rt5659.c
|
||||
@@ -3815,8 +3815,8 @@ static const struct regmap_config rt5659
|
||||
@@ -3813,8 +3813,8 @@ static const struct regmap_config rt5659
|
||||
};
|
||||
|
||||
static const struct i2c_device_id rt5659_i2c_id[] = {
|
||||
@@ -1779,7 +1779,7 @@ Signed-off-by: Mark Brown <broonie@kernel.org>
|
||||
MODULE_DEVICE_TABLE(i2c, rt5659_i2c_id);
|
||||
--- a/sound/soc/codecs/rt5660.c
|
||||
+++ b/sound/soc/codecs/rt5660.c
|
||||
@@ -1224,7 +1224,7 @@ static const struct regmap_config rt5660
|
||||
@@ -1222,7 +1222,7 @@ static const struct regmap_config rt5660
|
||||
};
|
||||
|
||||
static const struct i2c_device_id rt5660_i2c_id[] = {
|
||||
@@ -1803,7 +1803,7 @@ Signed-off-by: Mark Brown <broonie@kernel.org>
|
||||
|
||||
--- a/sound/soc/codecs/rt5665.c
|
||||
+++ b/sound/soc/codecs/rt5665.c
|
||||
@@ -4534,8 +4534,8 @@ static const struct regmap_config rt5665
|
||||
@@ -4532,8 +4532,8 @@ static const struct regmap_config rt5665
|
||||
};
|
||||
|
||||
static const struct i2c_device_id rt5665_i2c_id[] = {
|
||||
@@ -1896,7 +1896,7 @@ Signed-off-by: Mark Brown <broonie@kernel.org>
|
||||
|
||||
--- a/sound/soc/codecs/sma1307.c
|
||||
+++ b/sound/soc/codecs/sma1307.c
|
||||
@@ -2036,8 +2036,8 @@ static void sma1307_i2c_remove(struct i2
|
||||
@@ -2046,8 +2046,8 @@ static void sma1307_i2c_remove(struct i2
|
||||
}
|
||||
|
||||
static const struct i2c_device_id sma1307_i2c_id[] = {
|
||||
@@ -1957,7 +1957,7 @@ Signed-off-by: Mark Brown <broonie@kernel.org>
|
||||
MODULE_DEVICE_TABLE(i2c, ssm4567_i2c_ids);
|
||||
--- a/sound/soc/codecs/sta32x.c
|
||||
+++ b/sound/soc/codecs/sta32x.c
|
||||
@@ -1152,9 +1152,9 @@ static int sta32x_i2c_probe(struct i2c_c
|
||||
@@ -1207,9 +1207,9 @@ static int sta32x_i2c_probe(struct i2c_c
|
||||
}
|
||||
|
||||
static const struct i2c_device_id sta32x_i2c_id[] = {
|
||||
@@ -2251,7 +2251,7 @@ Signed-off-by: Mark Brown <broonie@kernel.org>
|
||||
MODULE_DEVICE_TABLE(i2c, aic31xx_i2c_id);
|
||||
--- a/sound/soc/codecs/tlv320aic32x4-i2c.c
|
||||
+++ b/sound/soc/codecs/tlv320aic32x4-i2c.c
|
||||
@@ -38,9 +38,9 @@ static void aic32x4_i2c_remove(struct i2
|
||||
@@ -43,9 +43,9 @@ static void aic32x4_i2c_remove(struct i2
|
||||
}
|
||||
|
||||
static const struct i2c_device_id aic32x4_i2c_id[] = {
|
||||
|
||||
-67
@@ -1,67 +0,0 @@
|
||||
From b19bf2cea82a3d650685d6592ff5bba0fa978631 Mon Sep 17 00:00:00 2001
|
||||
From: Zhang Yi <zhangyi@everest-semi.com>
|
||||
Date: Tue, 30 Jun 2026 15:23:06 +0800
|
||||
Subject: [PATCH] ASoC: codecs: ES8389: Modify volatile_register
|
||||
|
||||
commit 882e55031187791a2b87810d4a93f866a2da6d47 upstream.
|
||||
|
||||
Mark some registers that are not volatile as false
|
||||
And modified the logic for `cache_bypass` during `8389_resume`.
|
||||
|
||||
Signed-off-by: Zhang Yi <zhangyi@everest-semi.com>
|
||||
Link: https://patch.msgid.link/20260630072311.8427-2-zhangyi@everest-semi.com
|
||||
Signed-off-by: Mark Brown <broonie@kernel.org>
|
||||
---
|
||||
sound/soc/codecs/es8389.c | 27 +++++++++++++++++++++++----
|
||||
1 file changed, 23 insertions(+), 4 deletions(-)
|
||||
|
||||
--- a/sound/soc/codecs/es8389.c
|
||||
+++ b/sound/soc/codecs/es8389.c
|
||||
@@ -50,10 +50,29 @@ static const char * const es8389_core_su
|
||||
static bool es8389_volatile_register(struct device *dev,
|
||||
unsigned int reg)
|
||||
{
|
||||
- if ((reg <= 0xff))
|
||||
- return true;
|
||||
- else
|
||||
+ switch (reg) {
|
||||
+ case ES8389_ADCL_VOL:
|
||||
+ case ES8389_ADCR_VOL:
|
||||
+ case ES8389_MIC1_GAIN:
|
||||
+ case ES8389_MIC2_GAIN:
|
||||
+ case ES8389_DACL_VOL:
|
||||
+ case ES8389_DACR_VOL:
|
||||
+ case ES8389_ALC_ON:
|
||||
+ case ES8389_ALC_CTL:
|
||||
+ case ES8389_ALC_TARGET:
|
||||
+ case ES8389_ALC_GAIN:
|
||||
+ case ES8389_ADC_MUTE:
|
||||
+ case ES8389_OSR_VOL:
|
||||
+ case ES8389_DAC_INV:
|
||||
+ case ES8389_MIX_VOL:
|
||||
+ case ES8389_DAC_MIX:
|
||||
+ case ES8389_ADC_RESET:
|
||||
+ case ES8389_ADC_MODE:
|
||||
+ case ES8389_DMIC_EN:
|
||||
return false;
|
||||
+ default:
|
||||
+ return true;
|
||||
+ }
|
||||
}
|
||||
|
||||
static const DECLARE_TLV_DB_SCALE(dac_vol_tlv, -9550, 50, 0);
|
||||
@@ -861,13 +880,13 @@ static int es8389_resume(struct snd_soc_
|
||||
regcache_cache_only(es8389->regmap, false);
|
||||
regcache_cache_bypass(es8389->regmap, true);
|
||||
regmap_read(es8389->regmap, ES8389_RESET, ®v);
|
||||
- regcache_cache_bypass(es8389->regmap, false);
|
||||
|
||||
if (regv == 0xff)
|
||||
es8389_init(component);
|
||||
else
|
||||
es8389_set_bias_level(component, SND_SOC_BIAS_ON);
|
||||
|
||||
+ regcache_cache_bypass(es8389->regmap, false);
|
||||
regcache_sync(es8389->regmap);
|
||||
|
||||
return 0;
|
||||
+1
-1
@@ -188,7 +188,7 @@ Signed-off-by: Mark Brown <broonie@kernel.org>
|
||||
.set_fmt = es8389_set_dai_fmt,
|
||||
.set_sysclk = es8389_set_dai_sysclk,
|
||||
.set_tdm_slot = es8389_set_tdm_slot,
|
||||
@@ -934,6 +1051,7 @@ static int es8389_probe(struct snd_soc_c
|
||||
@@ -942,6 +1059,7 @@ static int es8389_probe(struct snd_soc_c
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -72,7 +72,7 @@ Signed-off-by: Mark Brown <broonie@kernel.org>
|
||||
regcache_cache_only(es8389->regmap, true);
|
||||
regcache_mark_dirty(es8389->regmap);
|
||||
|
||||
@@ -1084,7 +1090,7 @@ static int es8389_probe(struct snd_soc_c
|
||||
@@ -1092,7 +1098,7 @@ static int es8389_probe(struct snd_soc_c
|
||||
|
||||
es8389->hpf_freq = ES8389_HPF_DEFAULT;
|
||||
es8389_init(component);
|
||||
|
||||
+26
-28
@@ -1,4 +1,4 @@
|
||||
From 12d52e251a3fdfaeaf68f22c767a1defe4c14e7b Mon Sep 17 00:00:00 2001
|
||||
From cb439717989f8a07d6db97cd47c2a956775081a2 Mon Sep 17 00:00:00 2001
|
||||
From: Dom Cobley <popcornmix@gmail.com>
|
||||
Date: Tue, 17 Nov 2026 17:19:38 +0000
|
||||
Subject: [PATCH] drm/vc4: fkms: Don't put BCM2712 buffers behind the HVS IOMMU
|
||||
@@ -15,8 +15,8 @@ firmware_kms() so the firmware display driver isn't told to stop.
|
||||
|
||||
Signed-off-by: Dom Cobley <popcornmix@gmail.com>
|
||||
---
|
||||
drivers/gpu/drm/vc4/vc4_drv.c | 18 ++++++++++++++----
|
||||
1 file changed, 14 insertions(+), 4 deletions(-)
|
||||
drivers/gpu/drm/vc4/vc4_drv.c | 19 ++++++++++++++-----
|
||||
1 file changed, 14 insertions(+), 5 deletions(-)
|
||||
|
||||
--- a/drivers/gpu/drm/vc4/vc4_drv.c
|
||||
+++ b/drivers/gpu/drm/vc4/vc4_drv.c
|
||||
@@ -38,33 +38,31 @@ Signed-off-by: Dom Cobley <popcornmix@gmail.com>
|
||||
+ bool fkms;
|
||||
int ret = 0;
|
||||
|
||||
dev->coherent_dma_mask = DMA_BIT_MASK(32);
|
||||
@@ -333,7 +336,9 @@ static int vc4_drm_bind(struct device *d
|
||||
else
|
||||
driver = &vc4_drm_driver;
|
||||
|
||||
- if (gen >= VC4_GEN_6_C)
|
||||
gen = (enum vc4_gen)of_device_get_match_data(dev);
|
||||
@@ -335,13 +338,19 @@ static int vc4_drm_bind(struct device *d
|
||||
* Without HVS/V3D components to provide the DMA device, fkms keeps
|
||||
* borrowing their DT DMA configuration.
|
||||
*/
|
||||
- if (firmware_kms()) {
|
||||
- dma_set_mask_and_coherent(dev, DMA_BIT_MASK(gen >= VC4_GEN_6_C ? 36 : 32));
|
||||
+ fkms = firmware_kms();
|
||||
+
|
||||
+ if (gen >= VC4_GEN_6_C && !fkms)
|
||||
dma_set_mask_and_coherent(dev, DMA_BIT_MASK(36));
|
||||
else
|
||||
dma_set_mask_and_coherent(dev, DMA_BIT_MASK(32));
|
||||
@@ -341,7 +346,12 @@ static int vc4_drm_bind(struct device *d
|
||||
node = of_find_matching_node_and_match(NULL, vc4_dma_range_matches,
|
||||
NULL);
|
||||
if (node) {
|
||||
- ret = of_dma_configure(dev, node, true);
|
||||
+ /*
|
||||
+ * The firmware scans out without the BCM2712 HVS IOMMU, so
|
||||
+ * don't inherit the HVS DMA setup there.
|
||||
+ */
|
||||
+ if (!(fkms && gen >= VC4_GEN_6_C))
|
||||
+ ret = of_dma_configure(dev, node, true);
|
||||
of_node_put(node);
|
||||
+ if (fkms) {
|
||||
+ dma_set_mask_and_coherent(dev, DMA_BIT_MASK(32));
|
||||
|
||||
if (ret)
|
||||
@@ -395,7 +405,7 @@ static int vc4_drm_bind(struct device *d
|
||||
node = of_find_matching_node_and_match(NULL, vc4_dma_range_matches,
|
||||
NULL);
|
||||
if (node) {
|
||||
- ret = of_dma_configure(dev, node, true);
|
||||
+ /*
|
||||
+ * The firmware scans out without the BCM2712 HVS IOMMU, so
|
||||
+ * don't inherit the HVS DMA setup there.
|
||||
+ */
|
||||
+ if (gen < VC4_GEN_6_C)
|
||||
+ ret = of_dma_configure(dev, node, true);
|
||||
of_node_put(node);
|
||||
|
||||
if (ret)
|
||||
@@ -396,7 +405,7 @@ static int vc4_drm_bind(struct device *d
|
||||
goto err;
|
||||
}
|
||||
|
||||
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
From 0e728fcf0c1e569acaae0242b44687a762280f67 Mon Sep 17 00:00:00 2001
|
||||
From: Dom Cobley <popcornmix@gmail.com>
|
||||
Date: Mon, 23 Nov 2026 11:47:47 +0000
|
||||
Subject: [PATCH] arm64: dts: bcm2712: Drop the upstream v3d node
|
||||
|
||||
Stable added a v3d node to bcm2712.dtsi, but bcm2712-ds.dtsi already
|
||||
defines the v3d label, giving a duplicate label. Remove the upstream
|
||||
node, as the other downstream branches do.
|
||||
---
|
||||
arch/arm64/boot/dts/broadcom/bcm2712.dtsi | 14 --------------
|
||||
1 file changed, 14 deletions(-)
|
||||
|
||||
--- a/arch/arm64/boot/dts/broadcom/bcm2712.dtsi
|
||||
+++ b/arch/arm64/boot/dts/broadcom/bcm2712.dtsi
|
||||
@@ -1,6 +1,5 @@
|
||||
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
|
||||
#include <dt-bindings/interrupt-controller/arm-gic.h>
|
||||
-#include <dt-bindings/soc/bcm2835-pm.h>
|
||||
|
||||
/ {
|
||||
compatible = "brcm,bcm2712";
|
||||
@@ -582,19 +581,6 @@
|
||||
msi-ranges = <&gicv2 GIC_SPI 247 IRQ_TYPE_EDGE_RISING 8>;
|
||||
brcm,msi-offset = <8>;
|
||||
};
|
||||
-
|
||||
- v3d: gpu@1002000000 {
|
||||
- compatible = "brcm,2712-v3d";
|
||||
- reg = <0x10 0x02000000 0x00 0x4000>,
|
||||
- <0x10 0x02008000 0x00 0x6000>,
|
||||
- <0x10 0x02030800 0x00 0x0700>;
|
||||
- reg-names = "hub", "core0", "sms";
|
||||
-
|
||||
- power-domains = <&pm BCM2835_POWER_DOMAIN_GRAFX_V3D>;
|
||||
- resets = <&pm BCM2835_RESET_V3D>;
|
||||
- interrupts = <GIC_SPI 250 IRQ_TYPE_LEVEL_HIGH>,
|
||||
- <GIC_SPI 249 IRQ_TYPE_LEVEL_HIGH>;
|
||||
- };
|
||||
};
|
||||
|
||||
vc4: gpu {
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
From 41c8a7b85698ab353d4b3e50e680f29201d37030 Mon Sep 17 00:00:00 2001
|
||||
From: Dom Cobley <popcornmix@gmail.com>
|
||||
Date: Mon, 23 Nov 2026 13:02:19 +0000
|
||||
Subject: [PATCH] ARM: dts: bcm270x: Drop the brcm,vc4-v3d compatible
|
||||
|
||||
"drm/vc4: Drop the undocumented brcm,vc4-v3d compatible" removed it from
|
||||
the V3D driver, so the Pi 0-3 V3D node no longer bound. Drop the
|
||||
override so the node keeps brcm,bcm2835-v3d from bcm2835-common.dtsi.
|
||||
---
|
||||
arch/arm/boot/dts/broadcom/bcm270x.dtsi | 1 -
|
||||
1 file changed, 1 deletion(-)
|
||||
|
||||
--- a/arch/arm/boot/dts/broadcom/bcm270x.dtsi
|
||||
+++ b/arch/arm/boot/dts/broadcom/bcm270x.dtsi
|
||||
@@ -108,7 +108,6 @@
|
||||
|
||||
#ifndef BCM2711
|
||||
v3d@7ec00000 { /* vd3 */
|
||||
- compatible = "brcm,vc4-v3d";
|
||||
power-domains = <&power RPI_POWER_DOMAIN_V3D>;
|
||||
status = "disabled";
|
||||
};
|
||||
@@ -207,9 +207,9 @@ Signed-off-by: Ahmed Naseef <naseefkm@gmail.com>
|
||||
|
||||
clk = of_clk_get(np, 0);
|
||||
if (IS_ERR(clk)) {
|
||||
@@ -182,11 +260,12 @@ static int __init timer_init(struct devi
|
||||
|
||||
@@ -183,11 +261,12 @@ static int __init timer_init(struct devi
|
||||
econet_timer.freq_hz = clk_get_rate(clk);
|
||||
clk_put(clk);
|
||||
|
||||
- for (int i = 0; i < num_blocks; i++) {
|
||||
+ for (i = 0; i < num_blocks; i++) {
|
||||
@@ -222,7 +222,7 @@ Signed-off-by: Ahmed Naseef <naseefkm@gmail.com>
|
||||
}
|
||||
}
|
||||
|
||||
@@ -196,21 +275,34 @@ static int __init timer_init(struct devi
|
||||
@@ -197,21 +276,34 @@ static int __init timer_init(struct devi
|
||||
clocksource_mmio_readl_up);
|
||||
if (ret) {
|
||||
pr_err("%pOFn: clocksource_mmio_init failed: %d", np, ret);
|
||||
|
||||
@@ -155,7 +155,7 @@
|
||||
depends on ARCH_BCM2835 || COMPILE_TEST
|
||||
--- a/drivers/tty/serial/8250/Makefile
|
||||
+++ b/drivers/tty/serial/8250/Makefile
|
||||
@@ -20,6 +20,7 @@ obj-$(CONFIG_SERIAL_8250_CONSOLE) += 825
|
||||
@@ -21,6 +21,7 @@ obj-$(CONFIG_SERIAL_8250_CONSOLE) += 825
|
||||
|
||||
obj-$(CONFIG_SERIAL_8250_ACCENT) += 8250_accent.o
|
||||
obj-$(CONFIG_SERIAL_8250_ACORN) += 8250_acorn.o
|
||||
|
||||
-33
@@ -1,33 +0,0 @@
|
||||
From 5bf1bb010712bba28eda926ed453db3cab91381a Mon Sep 17 00:00:00 2001
|
||||
From: Linus Walleij <linusw@kernel.org>
|
||||
Date: Mon, 21 Sep 2026 11:15:55 +0200
|
||||
Subject: [PATCH] ARM: dts: gemini: Use a level-high interrupt for TVE200
|
||||
|
||||
TVE200's interrupt is configured as rising-edge. On the D-Link DIR-685,
|
||||
this can stop interrupt delivery after the first vertical interrupt,
|
||||
causing vblank and page-flip timeouts and delaying framebuffer console
|
||||
startup.
|
||||
|
||||
The vertical interrupt can remain pending after acknowledgment. Use
|
||||
level-high triggering so the pending condition is delivered again
|
||||
without requiring another edge.
|
||||
|
||||
Fixes: d2b85241a9f5 ("ARM: dts: Add TVE200 to the Gemini SoC DTSI")
|
||||
Assisted-by: LLM
|
||||
Signed-off-by: Linus Walleij <linusw@kernel.org>
|
||||
Message-ID: <20260921-gemini-tve200-fix-v1-2-8be03ac2a8f7@kernel.org>
|
||||
---
|
||||
arch/arm/boot/dts/gemini/gemini.dtsi | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
--- a/arch/arm/boot/dts/gemini/gemini.dtsi
|
||||
+++ b/arch/arm/boot/dts/gemini/gemini.dtsi
|
||||
@@ -428,7 +428,7 @@
|
||||
display-controller@6a000000 {
|
||||
compatible = "cortina,gemini-tvc", "faraday,tve200";
|
||||
reg = <0x6a000000 0x1000>;
|
||||
- interrupts = <13 IRQ_TYPE_EDGE_RISING>;
|
||||
+ interrupts = <13 IRQ_TYPE_LEVEL_HIGH>;
|
||||
resets = <&syscon GEMINI_RESET_TVC>;
|
||||
clocks = <&syscon GEMINI_CLK_GATE_TVC>,
|
||||
<&syscon GEMINI_CLK_TVC>;
|
||||
-128
@@ -1,128 +0,0 @@
|
||||
From 3316a8fc840d82fad5efcf76ad0ea3f76fdca209 Mon Sep 17 00:00:00 2001
|
||||
From: Qingfang Deng <dqfext@gmail.com>
|
||||
Date: Mon, 17 Nov 2025 16:59:00 +0800
|
||||
Subject: [PATCH] ksmbd: server: avoid busy polling in accept loop
|
||||
|
||||
The ksmbd listener thread was using busy waiting on a listening socket by
|
||||
calling kernel_accept() with SOCK_NONBLOCK and retrying every 100ms on
|
||||
-EAGAIN. Since this thread is dedicated to accepting new connections,
|
||||
there is no need for non-blocking mode.
|
||||
|
||||
Switch to a blocking accept() call instead, allowing the thread to sleep
|
||||
until a new connection arrives. This avoids unnecessary wakeups and CPU
|
||||
usage. During teardown, call shutdown() on the listening socket so that
|
||||
accept() returns -EINVAL and the thread exits cleanly.
|
||||
|
||||
The socket release mutex is redundant because kthread_stop() blocks until
|
||||
the listener thread returns, guaranteeing safe teardown ordering.
|
||||
|
||||
Also remove sk_rcvtimeo and sk_sndtimeo assignments, which only caused
|
||||
accept() to return -EAGAIN prematurely.
|
||||
|
||||
Signed-off-by: Qingfang Deng <dqfext@gmail.com>
|
||||
Reviewed-by: Stefan Metzmacher <metze@samba.org>
|
||||
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
|
||||
Signed-off-by: Steve French <stfrench@microsoft.com>
|
||||
---
|
||||
fs/smb/server/transport_tcp.c | 41 +++++------------------------------
|
||||
1 file changed, 6 insertions(+), 35 deletions(-)
|
||||
|
||||
--- a/fs/smb/server/transport_tcp.c
|
||||
+++ b/fs/smb/server/transport_tcp.c
|
||||
@@ -22,7 +22,6 @@ struct interface {
|
||||
struct socket *ksmbd_socket;
|
||||
struct list_head entry;
|
||||
char *name;
|
||||
- struct mutex sock_release_lock;
|
||||
int state;
|
||||
};
|
||||
|
||||
@@ -57,19 +56,6 @@ static inline void ksmbd_tcp_reuseaddr(s
|
||||
sock_set_reuseaddr(sock->sk);
|
||||
}
|
||||
|
||||
-static inline void ksmbd_tcp_rcv_timeout(struct socket *sock, s64 secs)
|
||||
-{
|
||||
- if (secs && secs < MAX_SCHEDULE_TIMEOUT / HZ - 1)
|
||||
- WRITE_ONCE(sock->sk->sk_rcvtimeo, secs * HZ);
|
||||
- else
|
||||
- WRITE_ONCE(sock->sk->sk_rcvtimeo, MAX_SCHEDULE_TIMEOUT);
|
||||
-}
|
||||
-
|
||||
-static inline void ksmbd_tcp_snd_timeout(struct socket *sock, s64 secs)
|
||||
-{
|
||||
- sock_set_sndtimeo(sock->sk, secs);
|
||||
-}
|
||||
-
|
||||
static struct tcp_transport *alloc_transport(struct socket *client_sk)
|
||||
{
|
||||
struct tcp_transport *t;
|
||||
@@ -239,20 +225,14 @@ static int ksmbd_kthread_fn(void *p)
|
||||
unsigned int max_ip_conns;
|
||||
|
||||
while (!kthread_should_stop()) {
|
||||
- mutex_lock(&iface->sock_release_lock);
|
||||
if (!iface->ksmbd_socket) {
|
||||
- mutex_unlock(&iface->sock_release_lock);
|
||||
break;
|
||||
}
|
||||
- ret = kernel_accept(iface->ksmbd_socket, &client_sk,
|
||||
- SOCK_NONBLOCK);
|
||||
- mutex_unlock(&iface->sock_release_lock);
|
||||
- if (ret) {
|
||||
- if (ret == -EAGAIN)
|
||||
- /* check for new connections every 100 msecs */
|
||||
- schedule_timeout_interruptible(HZ / 10);
|
||||
+ ret = kernel_accept(iface->ksmbd_socket, &client_sk, 0);
|
||||
+ if (ret == -EINVAL)
|
||||
+ break;
|
||||
+ if (ret)
|
||||
continue;
|
||||
- }
|
||||
|
||||
if (!server_conf.max_ip_connections)
|
||||
goto skip_max_ip_conns_limit;
|
||||
@@ -472,10 +452,6 @@ static void tcp_destroy_socket(struct so
|
||||
if (!ksmbd_socket)
|
||||
return;
|
||||
|
||||
- /* set zero to timeout */
|
||||
- ksmbd_tcp_rcv_timeout(ksmbd_socket, 0);
|
||||
- ksmbd_tcp_snd_timeout(ksmbd_socket, 0);
|
||||
-
|
||||
ret = kernel_sock_shutdown(ksmbd_socket, SHUT_RDWR);
|
||||
if (ret)
|
||||
pr_err("Failed to shutdown socket: %d\n", ret);
|
||||
@@ -546,9 +522,6 @@ static int create_socket(struct interfac
|
||||
goto out_error;
|
||||
}
|
||||
|
||||
- ksmbd_socket->sk->sk_rcvtimeo = KSMBD_TCP_RECV_TIMEOUT;
|
||||
- ksmbd_socket->sk->sk_sndtimeo = KSMBD_TCP_SEND_TIMEOUT;
|
||||
-
|
||||
ret = kernel_listen(ksmbd_socket, KSMBD_SOCKET_BACKLOG);
|
||||
if (ret) {
|
||||
pr_err("Port listen() error: %d\n", ret);
|
||||
@@ -627,12 +600,11 @@ static int ksmbd_netdev_event(struct not
|
||||
if (iface && iface->state == IFACE_STATE_CONFIGURED) {
|
||||
ksmbd_debug(CONN, "netdev-down event: netdev(%s) is going down\n",
|
||||
iface->name);
|
||||
+ kernel_sock_shutdown(iface->ksmbd_socket, SHUT_RDWR);
|
||||
tcp_stop_kthread(iface->ksmbd_kthread);
|
||||
iface->ksmbd_kthread = NULL;
|
||||
- mutex_lock(&iface->sock_release_lock);
|
||||
- tcp_destroy_socket(iface->ksmbd_socket);
|
||||
+ sock_release(iface->ksmbd_socket);
|
||||
iface->ksmbd_socket = NULL;
|
||||
- mutex_unlock(&iface->sock_release_lock);
|
||||
|
||||
iface->state = IFACE_STATE_DOWN;
|
||||
break;
|
||||
@@ -695,7 +667,6 @@ static struct interface *alloc_iface(cha
|
||||
iface->name = ifname;
|
||||
iface->state = IFACE_STATE_DOWN;
|
||||
list_add(&iface->entry, &iface_list);
|
||||
- mutex_init(&iface->sock_release_lock);
|
||||
return iface;
|
||||
}
|
||||
|
||||
+4
-4
@@ -25,7 +25,7 @@ Signed-off-by: Steve French <stfrench@microsoft.com>
|
||||
|
||||
--- a/fs/smb/server/smb2pdu.c
|
||||
+++ b/fs/smb/server/smb2pdu.c
|
||||
@@ -9262,6 +9262,39 @@ int smb2_check_sign_req(struct ksmbd_wor
|
||||
@@ -9346,6 +9346,39 @@ int smb2_check_sign_req(struct ksmbd_wor
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -65,7 +65,7 @@ Signed-off-by: Steve French <stfrench@microsoft.com>
|
||||
* smb2_set_sign_rsp() - handler for rsp packet sign processing
|
||||
* @work: smb work containing notify command buffer
|
||||
*
|
||||
@@ -9271,18 +9304,13 @@ void smb2_set_sign_rsp(struct ksmbd_work
|
||||
@@ -9355,18 +9388,13 @@ void smb2_set_sign_rsp(struct ksmbd_work
|
||||
struct smb2_hdr *hdr;
|
||||
char signature[SMB2_HMACSHA256_SIZE];
|
||||
struct kvec *iov;
|
||||
@@ -86,7 +86,7 @@ Signed-off-by: Steve French <stfrench@microsoft.com>
|
||||
|
||||
ksmbd_sign_smb2_pdu(work->conn, work->sess->sess_key, iov, n_vec,
|
||||
signature);
|
||||
@@ -9361,7 +9389,7 @@ void smb3_set_sign_rsp(struct ksmbd_work
|
||||
@@ -9445,7 +9473,7 @@ void smb3_set_sign_rsp(struct ksmbd_work
|
||||
struct channel *chann;
|
||||
char signature[SMB2_CMACAES_SIZE];
|
||||
struct kvec *iov;
|
||||
@@ -95,7 +95,7 @@ Signed-off-by: Steve French <stfrench@microsoft.com>
|
||||
char *signing_key;
|
||||
|
||||
hdr = ksmbd_resp_buf_curr(work);
|
||||
@@ -9383,12 +9411,7 @@ void smb3_set_sign_rsp(struct ksmbd_work
|
||||
@@ -9467,12 +9495,7 @@ void smb3_set_sign_rsp(struct ksmbd_work
|
||||
hdr->Flags |= SMB2_FLAGS_SIGNED;
|
||||
memset(hdr->Signature, 0, SMB2_SIGNATURE_SIZE);
|
||||
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@ Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
|
||||
|
||||
--- a/fs/smb/server/transport_tcp.c
|
||||
+++ b/fs/smb/server/transport_tcp.c
|
||||
@@ -522,6 +522,12 @@ static int create_socket(struct interfac
|
||||
@@ -530,6 +530,12 @@ static int create_socket(struct interfac
|
||||
goto out_error;
|
||||
}
|
||||
|
||||
|
||||
-102
@@ -1,102 +0,0 @@
|
||||
From a506290f59e1c6ce9ac0a13158640bb8fee93471 Mon Sep 17 00:00:00 2001
|
||||
From: Namjae Jeon <linkinjeon@kernel.org>
|
||||
Date: Fri, 28 Aug 2026 09:24:49 +0900
|
||||
Subject: [PATCH] ksmbd: fix listener task lifetime on netdev events
|
||||
|
||||
The listener thread exits when its listening socket is shutdown. The
|
||||
netdevice notifier shuts down the socket before calling kthread_stop(), so
|
||||
the task_struct can be freed before kthread_stop() gets its reference.
|
||||
|
||||
Create the listener in a stopped state and hold an extra task_struct
|
||||
reference until kthread_stop_put() completes. Also stop and release
|
||||
listeners before freeing their interface records during TCP teardown.
|
||||
|
||||
Fixes: 3316a8fc840d ("ksmbd: server: avoid busy polling in accept loop")
|
||||
Reported-by: Farhad Alemi <farhad.alemi@berkeley.edu>
|
||||
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
|
||||
---
|
||||
fs/smb/server/transport_tcp.c | 36 ++++++++++++++++++++++++++---------
|
||||
1 file changed, 27 insertions(+), 9 deletions(-)
|
||||
|
||||
--- a/fs/smb/server/transport_tcp.c
|
||||
+++ b/fs/smb/server/transport_tcp.c
|
||||
@@ -39,6 +39,7 @@ struct tcp_transport {
|
||||
static const struct ksmbd_transport_ops ksmbd_tcp_transport_ops;
|
||||
|
||||
static void tcp_stop_kthread(struct task_struct *kthread);
|
||||
+static void ksmbd_tcp_stop_listener(struct interface *iface);
|
||||
static struct interface *alloc_iface(char *ifname);
|
||||
static void ksmbd_tcp_disconnect(struct ksmbd_transport *t);
|
||||
|
||||
@@ -321,13 +322,20 @@ static int ksmbd_tcp_run_kthread(struct
|
||||
int rc;
|
||||
struct task_struct *kthread;
|
||||
|
||||
- kthread = kthread_run(ksmbd_kthread_fn, (void *)iface, "ksmbd-%s",
|
||||
- iface->name);
|
||||
+ kthread = kthread_create(ksmbd_kthread_fn, (void *)iface, "ksmbd-%s",
|
||||
+ iface->name);
|
||||
if (IS_ERR(kthread)) {
|
||||
rc = PTR_ERR(kthread);
|
||||
return rc;
|
||||
}
|
||||
+
|
||||
+ /*
|
||||
+ * The listener can exit after its socket is shutdown, so keep the
|
||||
+ * task_struct alive until the caller has stopped it.
|
||||
+ */
|
||||
+ get_task_struct(kthread);
|
||||
iface->ksmbd_kthread = kthread;
|
||||
+ wake_up_process(kthread);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -606,12 +614,7 @@ static int ksmbd_netdev_event(struct not
|
||||
if (iface && iface->state == IFACE_STATE_CONFIGURED) {
|
||||
ksmbd_debug(CONN, "netdev-down event: netdev(%s) is going down\n",
|
||||
iface->name);
|
||||
- kernel_sock_shutdown(iface->ksmbd_socket, SHUT_RDWR);
|
||||
- tcp_stop_kthread(iface->ksmbd_kthread);
|
||||
- iface->ksmbd_kthread = NULL;
|
||||
- sock_release(iface->ksmbd_socket);
|
||||
- iface->ksmbd_socket = NULL;
|
||||
-
|
||||
+ ksmbd_tcp_stop_listener(iface);
|
||||
iface->state = IFACE_STATE_DOWN;
|
||||
break;
|
||||
}
|
||||
@@ -639,11 +642,25 @@ static void tcp_stop_kthread(struct task
|
||||
if (!kthread)
|
||||
return;
|
||||
|
||||
- ret = kthread_stop(kthread);
|
||||
+ ret = kthread_stop_put(kthread);
|
||||
if (ret)
|
||||
pr_err("failed to stop forker thread\n");
|
||||
}
|
||||
|
||||
+static void ksmbd_tcp_stop_listener(struct interface *iface)
|
||||
+{
|
||||
+ if (iface->ksmbd_socket)
|
||||
+ kernel_sock_shutdown(iface->ksmbd_socket, SHUT_RDWR);
|
||||
+
|
||||
+ tcp_stop_kthread(iface->ksmbd_kthread);
|
||||
+ iface->ksmbd_kthread = NULL;
|
||||
+
|
||||
+ if (iface->ksmbd_socket) {
|
||||
+ sock_release(iface->ksmbd_socket);
|
||||
+ iface->ksmbd_socket = NULL;
|
||||
+ }
|
||||
+}
|
||||
+
|
||||
void ksmbd_tcp_destroy(void)
|
||||
{
|
||||
struct interface *iface, *tmp;
|
||||
@@ -651,6 +668,7 @@ void ksmbd_tcp_destroy(void)
|
||||
unregister_netdevice_notifier(&ksmbd_netdev_notifier);
|
||||
|
||||
list_for_each_entry_safe(iface, tmp, &iface_list, entry) {
|
||||
+ ksmbd_tcp_stop_listener(iface);
|
||||
list_del(&iface->entry);
|
||||
kfree(iface->name);
|
||||
kfree(iface);
|
||||
@@ -15,7 +15,7 @@ Signed-off-by: Jakub Kicinski <kuba@kernel.org>
|
||||
|
||||
--- a/include/linux/netdevice.h
|
||||
+++ b/include/linux/netdevice.h
|
||||
@@ -2755,6 +2755,17 @@ static inline void *netdev_priv(const st
|
||||
@@ -2775,6 +2775,17 @@ static inline void *netdev_priv(const st
|
||||
return (void *)dev->priv;
|
||||
}
|
||||
|
||||
|
||||
+3
-3
@@ -41,7 +41,7 @@ Signed-off-by: Paolo Abeni <pabeni@redhat.com>
|
||||
goto drop;
|
||||
|
||||
ph = pppoe_hdr(skb);
|
||||
@@ -1177,6 +1178,160 @@ static struct pernet_operations pppoe_ne
|
||||
@@ -1185,6 +1186,160 @@ static struct pernet_operations pppoe_ne
|
||||
.size = sizeof(struct pppoe_net),
|
||||
};
|
||||
|
||||
@@ -202,7 +202,7 @@ Signed-off-by: Paolo Abeni <pabeni@redhat.com>
|
||||
static int __init pppoe_init(void)
|
||||
{
|
||||
int err;
|
||||
@@ -1193,6 +1348,8 @@ static int __init pppoe_init(void)
|
||||
@@ -1201,6 +1356,8 @@ static int __init pppoe_init(void)
|
||||
if (err)
|
||||
goto out_unregister_pppoe_proto;
|
||||
|
||||
@@ -211,7 +211,7 @@ Signed-off-by: Paolo Abeni <pabeni@redhat.com>
|
||||
dev_add_pack(&pppoes_ptype);
|
||||
dev_add_pack(&pppoed_ptype);
|
||||
register_netdevice_notifier(&pppoe_notifier);
|
||||
@@ -1212,6 +1369,8 @@ static void __exit pppoe_exit(void)
|
||||
@@ -1220,6 +1377,8 @@ static void __exit pppoe_exit(void)
|
||||
unregister_netdevice_notifier(&pppoe_notifier);
|
||||
dev_remove_pack(&pppoed_ptype);
|
||||
dev_remove_pack(&pppoes_ptype);
|
||||
|
||||
+1
-1
@@ -78,7 +78,7 @@ Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
|
||||
return err;
|
||||
--- a/include/linux/netdevice.h
|
||||
+++ b/include/linux/netdevice.h
|
||||
@@ -3360,7 +3360,7 @@ void dev_remove_offload(struct packet_of
|
||||
@@ -3380,7 +3380,7 @@ void dev_remove_offload(struct packet_of
|
||||
|
||||
int dev_get_iflink(const struct net_device *dev);
|
||||
int dev_fill_metadata_dst(struct net_device *dev, struct sk_buff *skb);
|
||||
|
||||
+2
-2
@@ -34,7 +34,7 @@ Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
|
||||
|
||||
--- a/include/linux/netdevice.h
|
||||
+++ b/include/linux/netdevice.h
|
||||
@@ -878,6 +878,7 @@ enum net_device_path_type {
|
||||
@@ -880,6 +880,7 @@ enum net_device_path_type {
|
||||
DEV_PATH_PPPOE,
|
||||
DEV_PATH_DSA,
|
||||
DEV_PATH_MTK_WDMA,
|
||||
@@ -42,7 +42,7 @@ Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
|
||||
};
|
||||
|
||||
struct net_device_path {
|
||||
@@ -930,6 +931,8 @@ struct net_device_path_ctx {
|
||||
@@ -932,6 +933,8 @@ struct net_device_path_ctx {
|
||||
u16 id;
|
||||
__be16 proto;
|
||||
} vlan[NET_DEVICE_PATH_VLAN_MAX];
|
||||
|
||||
-56
@@ -1,56 +0,0 @@
|
||||
From c203ecf905745d979de5df28fa657121f2e9342d Mon Sep 17 00:00:00 2001
|
||||
From: Shuangfeng He <huangya90@gmail.com>
|
||||
Date: Fri, 2 Oct 2026 16:42:53 +0800
|
||||
Subject: [PATCH] netfilter: flowtable: use the vlan id, not the full tci, in
|
||||
the tuple key
|
||||
|
||||
nf_flow_tuple_encap() stores the skb vlan tag in the encap tuple id
|
||||
using skb_vlan_tag_get(), which returns the unmasked TCI including
|
||||
the 3 PCP priority bits. The flowtable entry, however, is programmed
|
||||
by nf_dev_path_info() with vlan_dev_vlan_id(), a plain 12-bit VID.
|
||||
|
||||
When a NIC delivers RX vlan offload skbs with a non-zero priority
|
||||
(an RTL9617C EPON ONU was observed handing over vid 818 skbs with
|
||||
tci 0x6332, PCP 3), the runtime lookup key never matches the
|
||||
programmed entry, so every packet misses the flow table and
|
||||
software flow offload is silently defeated.
|
||||
|
||||
Mask both parse sites to the 12-bit VID so the lookup key matches
|
||||
for any priority. The in-header variant has the same problem for
|
||||
frames received with PCP != 0 on a non-offload path.
|
||||
|
||||
The egress side is unaffected: nf_flow_encap_push() restores tags
|
||||
from the programmed tuple id, which never carried priority bits.
|
||||
|
||||
Measured on an RTL9617C ONU (PPPoE over VLAN 818 WAN, NATed 6-flow
|
||||
download over a 1G EPON line), before -> after:
|
||||
|
||||
download throughput 377 Mbps -> 936 Mbps
|
||||
CPU0 %soft at that rate 91.5% -> 70.9%
|
||||
|
||||
Fixes: 4cd91f7c290f ("netfilter: flowtable: add vlan support")
|
||||
Signed-off-by: Shuangfeng He <huangya90@gmail.com>
|
||||
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
|
||||
---
|
||||
net/netfilter/nf_flow_table_ip.c | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
--- a/net/netfilter/nf_flow_table_ip.c
|
||||
+++ b/net/netfilter/nf_flow_table_ip.c
|
||||
@@ -150,14 +150,14 @@ static void nf_flow_tuple_encap(struct s
|
||||
int i = 0;
|
||||
|
||||
if (skb_vlan_tag_present(skb)) {
|
||||
- tuple->encap[i].id = skb_vlan_tag_get(skb);
|
||||
+ tuple->encap[i].id = skb_vlan_tag_get_id(skb);
|
||||
tuple->encap[i].proto = skb->vlan_proto;
|
||||
i++;
|
||||
}
|
||||
switch (skb->protocol) {
|
||||
case htons(ETH_P_8021Q):
|
||||
veth = (struct vlan_ethhdr *)skb_mac_header(skb);
|
||||
- tuple->encap[i].id = ntohs(veth->h_vlan_TCI);
|
||||
+ tuple->encap[i].id = ntohs(veth->h_vlan_TCI) & VLAN_VID_MASK;
|
||||
tuple->encap[i].proto = skb->protocol;
|
||||
break;
|
||||
case htons(ETH_P_PPP_SES):
|
||||
+1
-1
@@ -30,7 +30,7 @@ Signed-off-by: Jakub Kicinski <kuba@kernel.org>
|
||||
|
||||
--- a/drivers/net/usb/lan78xx.c
|
||||
+++ b/drivers/net/usb/lan78xx.c
|
||||
@@ -2897,6 +2897,7 @@ static int lan78xx_phy_init(struct lan78
|
||||
@@ -2909,6 +2909,7 @@ static int lan78xx_phy_init(struct lan78
|
||||
phydev->irq = dev->domain_data.phyirq;
|
||||
else
|
||||
phydev->irq = PHY_POLL;
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
|
||||
|
||||
--- a/crypto/tcrypt.c
|
||||
+++ b/crypto/tcrypt.c
|
||||
@@ -2820,6 +2820,11 @@ static int __init tcrypt_mod_init(void)
|
||||
@@ -2840,6 +2840,11 @@ static int __init tcrypt_mod_init(void)
|
||||
goto err_free_tv;
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
|
||||
|
||||
--- a/crypto/tcrypt.c
|
||||
+++ b/crypto/tcrypt.c
|
||||
@@ -911,8 +911,14 @@ static void test_ahash_speed_common(cons
|
||||
@@ -929,8 +929,14 @@ static void test_ahash_speed_common(cons
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -5735,6 +5735,7 @@ CONFIG_RTC_DRV_CMOS=y
|
||||
# CONFIG_RTC_DRV_ZYNQMP is not set
|
||||
CONFIG_RTC_HCTOSYS=y
|
||||
CONFIG_RTC_HCTOSYS_DEVICE="rtc0"
|
||||
# CONFIG_RTC_HCTOSYS_TIME32_LIMIT is not set
|
||||
CONFIG_RTC_INTF_DEV=y
|
||||
# CONFIG_RTC_INTF_DEV_UIE_EMUL is not set
|
||||
CONFIG_RTC_INTF_PROC=y
|
||||
|
||||
@@ -27,7 +27,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
||||
# sysroots and flags or to avoid the GCC call in pure Clang builds.
|
||||
--- a/tools/include/linux/types.h
|
||||
+++ b/tools/include/linux/types.h
|
||||
@@ -58,6 +58,7 @@ typedef unsigned long long ullong;
|
||||
@@ -63,6 +63,7 @@ typedef unsigned long long ullong;
|
||||
#define __user
|
||||
#endif
|
||||
#define __must_check
|
||||
|
||||
+2
-2
@@ -19,7 +19,7 @@ Signed-off-by: David Bauer <mail@david-bauer.net>
|
||||
|
||||
--- a/scripts/kconfig/conf.c
|
||||
+++ b/scripts/kconfig/conf.c
|
||||
@@ -310,6 +310,9 @@ static int conf_askvalue(struct symbol *
|
||||
@@ -324,6 +324,9 @@ static int conf_askvalue(struct symbol *
|
||||
}
|
||||
/* fall through */
|
||||
default:
|
||||
@@ -29,7 +29,7 @@ Signed-off-by: David Bauer <mail@david-bauer.net>
|
||||
fflush(stdout);
|
||||
xfgets(line, sizeof(line), stdin);
|
||||
break;
|
||||
@@ -485,6 +488,9 @@ static void conf_choice(struct menu *men
|
||||
@@ -502,6 +505,9 @@ static void conf_choice(struct menu *men
|
||||
}
|
||||
/* fall through */
|
||||
case oldaskconfig:
|
||||
|
||||
+2
-2
@@ -25,7 +25,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
|
||||
|
||||
--- a/drivers/mtd/mtd_blkdevs.c
|
||||
+++ b/drivers/mtd/mtd_blkdevs.c
|
||||
@@ -379,19 +379,8 @@ int add_mtd_blktrans_dev(struct mtd_blkt
|
||||
@@ -384,19 +384,8 @@ int add_mtd_blktrans_dev(struct mtd_blkt
|
||||
if (new->readonly)
|
||||
set_disk_ro(gd, 1);
|
||||
|
||||
@@ -45,7 +45,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
|
||||
out_free_tag_set:
|
||||
blk_mq_free_tag_set(new->tag_set);
|
||||
out_kfree_tag_set:
|
||||
@@ -401,6 +390,35 @@ out_list_del:
|
||||
@@ -406,6 +395,35 @@ out_list_del:
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@ Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
|
||||
|
||||
--- a/net/netfilter/nf_conntrack_core.c
|
||||
+++ b/net/netfilter/nf_conntrack_core.c
|
||||
@@ -2633,7 +2633,7 @@ int nf_conntrack_init_start(void)
|
||||
@@ -2638,7 +2638,7 @@ int nf_conntrack_init_start(void)
|
||||
|
||||
if (!nf_conntrack_htable_size) {
|
||||
nf_conntrack_htable_size
|
||||
|
||||
@@ -19,7 +19,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
||||
|
||||
--- a/include/linux/netdevice.h
|
||||
+++ b/include/linux/netdevice.h
|
||||
@@ -1750,6 +1750,7 @@ enum netdev_priv_flags {
|
||||
@@ -1766,6 +1766,7 @@ enum netdev_priv_flags {
|
||||
IFF_L3MDEV_RX_HANDLER = 1<<29,
|
||||
IFF_NO_ADDRCONF = BIT_ULL(30),
|
||||
IFF_TX_SKB_NO_LINEAR = BIT_ULL(31),
|
||||
@@ -27,7 +27,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
||||
};
|
||||
|
||||
/* Specifies the type of the struct net_device::ml_priv pointer */
|
||||
@@ -2252,6 +2253,11 @@ struct net_device {
|
||||
@@ -2270,6 +2271,11 @@ struct net_device {
|
||||
const struct tlsdev_ops *tlsdev_ops;
|
||||
#endif
|
||||
|
||||
@@ -39,7 +39,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
||||
unsigned int operstate;
|
||||
unsigned char link_mode;
|
||||
|
||||
@@ -2328,6 +2334,10 @@ struct net_device {
|
||||
@@ -2348,6 +2354,10 @@ struct net_device {
|
||||
struct psp_dev __rcu *psp_dev;
|
||||
#endif
|
||||
|
||||
@@ -97,7 +97,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
||||
help
|
||||
--- a/net/core/dev.c
|
||||
+++ b/net/core/dev.c
|
||||
@@ -3889,6 +3889,11 @@ static int xmit_one(struct sk_buff *skb,
|
||||
@@ -3897,6 +3897,11 @@ static int xmit_one(struct sk_buff *skb,
|
||||
if (dev_nit_active_rcu(dev))
|
||||
dev_queue_xmit_nit(skb, dev);
|
||||
|
||||
|
||||
@@ -83,7 +83,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
||||
INDIRECT_CALLABLE_DECLARE(struct dst_entry *ip6_dst_check(struct dst_entry *,
|
||||
u32));
|
||||
INDIRECT_CALLABLE_DECLARE(struct dst_entry *ipv4_dst_check(struct dst_entry *,
|
||||
@@ -2403,9 +2420,11 @@ static void __sk_free(struct sock *sk)
|
||||
@@ -2404,9 +2421,11 @@ static void __sk_free(struct sock *sk)
|
||||
if (likely(sk->sk_net_refcnt))
|
||||
sock_inuse_add(sock_net(sk), -1);
|
||||
|
||||
|
||||
@@ -331,7 +331,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
||||
|
||||
--- a/net/core/sock.c
|
||||
+++ b/net/core/sock.c
|
||||
@@ -4362,6 +4362,8 @@ static __net_initdata struct pernet_oper
|
||||
@@ -4363,6 +4363,8 @@ static __net_initdata struct pernet_oper
|
||||
|
||||
static int __init proto_init(void)
|
||||
{
|
||||
|
||||
@@ -67,7 +67,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
||||
+MODULE_LICENSE("GPL");
|
||||
--- a/kernel/sched/core.c
|
||||
+++ b/kernel/sched/core.c
|
||||
@@ -4445,6 +4445,7 @@ int wake_up_state(struct task_struct *p,
|
||||
@@ -4423,6 +4423,7 @@ int wake_up_state(struct task_struct *p,
|
||||
{
|
||||
return try_to_wake_up(p, state, 0);
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
||||
#endif /* _KOBJECT_H_ */
|
||||
--- a/lib/kobject_uevent.c
|
||||
+++ b/lib/kobject_uevent.c
|
||||
@@ -699,6 +699,43 @@ int add_uevent_var(struct kobj_uevent_en
|
||||
@@ -702,6 +702,43 @@ int add_uevent_var(struct kobj_uevent_en
|
||||
EXPORT_SYMBOL_GPL(add_uevent_var);
|
||||
|
||||
#if defined(CONFIG_NET)
|
||||
|
||||
+2
-2
@@ -18,8 +18,8 @@ Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
|
||||
|
||||
--- a/scripts/Makefile.vmlinux
|
||||
+++ b/scripts/Makefile.vmlinux
|
||||
@@ -119,7 +119,7 @@ quiet_cmd_modules_builtin_modinfo = GEN
|
||||
OBJCOPYFLAGS_modules.builtin.modinfo := -j .modinfo -O binary
|
||||
@@ -103,7 +103,7 @@ quiet_cmd_modules_builtin_modinfo = GEN
|
||||
cmd_modules_builtin_modinfo = $(OBJCOPY) -O binary -j .modinfo --dump-section .modinfo=$@ $< /dev/null
|
||||
|
||||
targets += modules.builtin.modinfo
|
||||
-modules.builtin.modinfo: vmlinux.unstripped FORCE
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
LINUX_VERSION-6.18 = .64
|
||||
LINUX_KERNEL_HASH-6.18.64 = 020d45510c539972e6f14c5c71566878d3b7ef56fb082b3e09134f2ebaade562
|
||||
LINUX_VERSION-6.18 = .65
|
||||
LINUX_KERNEL_HASH-6.18.65 = c92606f956f09dc50b5a0e2af9e86763fce27ada1647de97f8d1ac8cfc95801d
|
||||
@@ -149,7 +149,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
|
||||
+device_initcall(blk_notifications_init);
|
||||
--- a/include/linux/blkdev.h
|
||||
+++ b/include/linux/blkdev.h
|
||||
@@ -1871,4 +1871,12 @@ static inline int bio_split_rw_at(struct
|
||||
@@ -1876,4 +1876,12 @@ static inline int bio_split_rw_at(struct
|
||||
|
||||
#define DEFINE_IO_COMP_BATCH(name) struct io_comp_batch name = { }
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
|
||||
|
||||
--- a/include/linux/blkdev.h
|
||||
+++ b/include/linux/blkdev.h
|
||||
@@ -82,11 +82,13 @@ struct partition_meta_info {
|
||||
@@ -83,11 +83,13 @@ struct partition_meta_info {
|
||||
* ``GENHD_FL_NO_PART``: partition support is disabled. The kernel will not
|
||||
* scan for partitions from add_disk, and users can't add partitions manually.
|
||||
*
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
||||
|
||||
--- a/net/bridge/br_switchdev.c
|
||||
+++ b/net/bridge/br_switchdev.c
|
||||
@@ -575,10 +575,18 @@ static void br_switchdev_host_mdb(struct
|
||||
@@ -590,10 +590,18 @@ static void br_switchdev_host_mdb(struct
|
||||
struct net_bridge_mdb_entry *mp, int type)
|
||||
{
|
||||
struct net_device *lower_dev;
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ Signed-off-by: Julius Bairaktaris <julius@bairaktaris.de>
|
||||
---
|
||||
--- a/include/linux/if_bridge.h
|
||||
+++ b/include/linux/if_bridge.h
|
||||
@@ -172,6 +172,19 @@ static inline int br_mst_get_state(const
|
||||
@@ -201,6 +201,19 @@ static inline int br_mst_get_state(const
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
+9
-9
@@ -157,7 +157,7 @@ Signed-off-by: Jonas Gorski <jogo@openwrt.org>
|
||||
case RTN_THROW:
|
||||
case RTN_UNREACHABLE:
|
||||
default:
|
||||
@@ -4672,6 +4691,17 @@ static int ip6_pkt_prohibit_out(struct n
|
||||
@@ -4681,6 +4700,17 @@ static int ip6_pkt_prohibit_out(struct n
|
||||
return ip6_pkt_drop(skb, ICMPV6_ADM_PROHIBITED, IPSTATS_MIB_OUTNOROUTES);
|
||||
}
|
||||
|
||||
@@ -175,7 +175,7 @@ Signed-off-by: Jonas Gorski <jogo@openwrt.org>
|
||||
/*
|
||||
* Allocate a dst for local (unicast / anycast) address.
|
||||
*/
|
||||
@@ -5227,7 +5257,8 @@ static int rtm_to_fib6_config(struct sk_
|
||||
@@ -5236,7 +5266,8 @@ static int rtm_to_fib6_config(struct sk_
|
||||
if (rtm->rtm_type == RTN_UNREACHABLE ||
|
||||
rtm->rtm_type == RTN_BLACKHOLE ||
|
||||
rtm->rtm_type == RTN_PROHIBIT ||
|
||||
@@ -185,7 +185,7 @@ Signed-off-by: Jonas Gorski <jogo@openwrt.org>
|
||||
cfg->fc_flags |= RTF_REJECT;
|
||||
|
||||
if (rtm->rtm_type == RTN_LOCAL)
|
||||
@@ -6496,6 +6527,8 @@ static int ip6_route_dev_notify(struct n
|
||||
@@ -6510,6 +6541,8 @@ static int ip6_route_dev_notify(struct n
|
||||
#ifdef CONFIG_IPV6_MULTIPLE_TABLES
|
||||
net->ipv6.ip6_prohibit_entry->dst.dev = dev;
|
||||
net->ipv6.ip6_prohibit_entry->rt6i_idev = in6_dev_get(dev);
|
||||
@@ -194,7 +194,7 @@ Signed-off-by: Jonas Gorski <jogo@openwrt.org>
|
||||
net->ipv6.ip6_blk_hole_entry->dst.dev = dev;
|
||||
net->ipv6.ip6_blk_hole_entry->rt6i_idev = in6_dev_get(dev);
|
||||
#endif
|
||||
@@ -6507,6 +6540,7 @@ static int ip6_route_dev_notify(struct n
|
||||
@@ -6521,6 +6554,7 @@ static int ip6_route_dev_notify(struct n
|
||||
in6_dev_put_clear(&net->ipv6.ip6_null_entry->rt6i_idev);
|
||||
#ifdef CONFIG_IPV6_MULTIPLE_TABLES
|
||||
in6_dev_put_clear(&net->ipv6.ip6_prohibit_entry->rt6i_idev);
|
||||
@@ -202,7 +202,7 @@ Signed-off-by: Jonas Gorski <jogo@openwrt.org>
|
||||
in6_dev_put_clear(&net->ipv6.ip6_blk_hole_entry->rt6i_idev);
|
||||
#endif
|
||||
}
|
||||
@@ -6702,6 +6736,8 @@ static int __net_init ip6_route_net_init
|
||||
@@ -6716,6 +6750,8 @@ static int __net_init ip6_route_net_init
|
||||
|
||||
#ifdef CONFIG_IPV6_MULTIPLE_TABLES
|
||||
net->ipv6.fib6_has_custom_rules = false;
|
||||
@@ -211,7 +211,7 @@ Signed-off-by: Jonas Gorski <jogo@openwrt.org>
|
||||
net->ipv6.ip6_prohibit_entry = kmemdup(&ip6_prohibit_entry_template,
|
||||
sizeof(*net->ipv6.ip6_prohibit_entry),
|
||||
GFP_KERNEL);
|
||||
@@ -6712,11 +6748,21 @@ static int __net_init ip6_route_net_init
|
||||
@@ -6726,11 +6762,21 @@ static int __net_init ip6_route_net_init
|
||||
ip6_template_metrics, true);
|
||||
INIT_LIST_HEAD(&net->ipv6.ip6_prohibit_entry->dst.rt_uncached);
|
||||
|
||||
@@ -234,7 +234,7 @@ Signed-off-by: Jonas Gorski <jogo@openwrt.org>
|
||||
net->ipv6.ip6_blk_hole_entry->dst.ops = &net->ipv6.ip6_dst_ops;
|
||||
dst_init_metrics(&net->ipv6.ip6_blk_hole_entry->dst,
|
||||
ip6_template_metrics, true);
|
||||
@@ -6743,6 +6789,8 @@ out:
|
||||
@@ -6757,6 +6803,8 @@ out:
|
||||
return ret;
|
||||
|
||||
#ifdef CONFIG_IPV6_MULTIPLE_TABLES
|
||||
@@ -243,7 +243,7 @@ Signed-off-by: Jonas Gorski <jogo@openwrt.org>
|
||||
out_ip6_prohibit_entry:
|
||||
kfree(net->ipv6.ip6_prohibit_entry);
|
||||
out_ip6_null_entry:
|
||||
@@ -6762,6 +6810,7 @@ static void __net_exit ip6_route_net_exi
|
||||
@@ -6776,6 +6824,7 @@ static void __net_exit ip6_route_net_exi
|
||||
kfree(net->ipv6.ip6_null_entry);
|
||||
#ifdef CONFIG_IPV6_MULTIPLE_TABLES
|
||||
kfree(net->ipv6.ip6_prohibit_entry);
|
||||
@@ -251,7 +251,7 @@ Signed-off-by: Jonas Gorski <jogo@openwrt.org>
|
||||
kfree(net->ipv6.ip6_blk_hole_entry);
|
||||
#endif
|
||||
dst_entries_destroy(&net->ipv6.ip6_dst_ops);
|
||||
@@ -6845,6 +6894,9 @@ void __init ip6_route_init_special_entri
|
||||
@@ -6859,6 +6908,9 @@ void __init ip6_route_init_special_entri
|
||||
init_net.ipv6.ip6_prohibit_entry->rt6i_idev = in6_dev_get(init_net.loopback_dev);
|
||||
init_net.ipv6.ip6_blk_hole_entry->dst.dev = init_net.loopback_dev;
|
||||
init_net.ipv6.ip6_blk_hole_entry->rt6i_idev = in6_dev_get(init_net.loopback_dev);
|
||||
|
||||
+3
-3
@@ -24,7 +24,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
||||
dev->hw_features |= dev->features;
|
||||
--- a/drivers/net/loopback.c
|
||||
+++ b/drivers/net/loopback.c
|
||||
@@ -175,7 +175,7 @@ static void gen_lo_setup(struct net_devi
|
||||
@@ -181,7 +181,7 @@ static void gen_lo_setup(struct net_devi
|
||||
dev->lltx = true;
|
||||
dev->netns_immutable = true;
|
||||
netif_keep_dst(dev);
|
||||
@@ -96,7 +96,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
||||
}
|
||||
--- a/net/core/sock.c
|
||||
+++ b/net/core/sock.c
|
||||
@@ -2623,7 +2623,7 @@ void sk_setup_caps(struct sock *sk, stru
|
||||
@@ -2624,7 +2624,7 @@ void sk_setup_caps(struct sock *sk, stru
|
||||
icsk->icsk_ack.dst_quick_ack = dst_metric(dst, RTAX_QUICKACK);
|
||||
}
|
||||
if (sk->sk_route_caps & NETIF_F_GSO)
|
||||
@@ -107,7 +107,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
||||
if (sk_can_gso(sk)) {
|
||||
--- a/net/mac80211/ieee80211_i.h
|
||||
+++ b/net/mac80211/ieee80211_i.h
|
||||
@@ -2094,7 +2094,7 @@ void ieee80211_color_collision_detection
|
||||
@@ -2095,7 +2095,7 @@ void ieee80211_color_collision_detection
|
||||
/* interface handling */
|
||||
#define MAC80211_SUPPORTED_FEATURES_TX (NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM | \
|
||||
NETIF_F_HW_CSUM | NETIF_F_SG | \
|
||||
|
||||
+2
-2
@@ -158,7 +158,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
|
||||
+}
|
||||
--- a/net/bridge/br_private.h
|
||||
+++ b/net/bridge/br_private.h
|
||||
@@ -1995,6 +1995,19 @@ struct nf_br_ops {
|
||||
@@ -1998,6 +1998,19 @@ struct nf_br_ops {
|
||||
};
|
||||
extern const struct nf_br_ops __rcu *nf_br_ops;
|
||||
|
||||
@@ -180,7 +180,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
|
||||
int br_nf_core_init(void);
|
||||
--- a/net/netfilter/core.c
|
||||
+++ b/net/netfilter/core.c
|
||||
@@ -802,6 +802,9 @@ static struct pernet_operations netfilte
|
||||
@@ -818,6 +818,9 @@ static struct pernet_operations netfilte
|
||||
.exit = netfilter_net_exit,
|
||||
};
|
||||
|
||||
|
||||
+14
-6
@@ -14,11 +14,19 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
||||
|
||||
--- a/include/linux/if_bridge.h
|
||||
+++ b/include/linux/if_bridge.h
|
||||
@@ -61,6 +61,7 @@ struct br_ip_list {
|
||||
#define BR_PORT_LOCKED BIT(21)
|
||||
#define BR_PORT_MAB BIT(22)
|
||||
#define BR_NEIGH_VLAN_SUPPRESS BIT(23)
|
||||
+#define BR_BPDU_FILTER BIT(24)
|
||||
@@ -62,6 +62,7 @@ enum bridge_flags_bit {
|
||||
BR_PORT_MAB_BIT,
|
||||
BR_NEIGH_VLAN_SUPPRESS_BIT,
|
||||
BR_NEIGH_FORWARD_GRAT_BIT,
|
||||
+ BR_BPDU_FILTER_BIT,
|
||||
};
|
||||
|
||||
#define BR_HAIRPIN_MODE BIT(BR_HAIRPIN_MODE_BIT)
|
||||
@@ -90,6 +91,7 @@ enum bridge_flags_bit {
|
||||
#define BR_PORT_MAB BIT(BR_PORT_MAB_BIT)
|
||||
#define BR_NEIGH_VLAN_SUPPRESS BIT(BR_NEIGH_VLAN_SUPPRESS_BIT)
|
||||
#define BR_NEIGH_FORWARD_GRAT BIT(BR_NEIGH_FORWARD_GRAT_BIT)
|
||||
+#define BR_BPDU_FILTER BIT(BR_BPDU_FILTER_BIT)
|
||||
|
||||
#define BR_DEFAULT_AGEING_TIME (300 * HZ)
|
||||
|
||||
@@ -161,7 +169,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
||||
|
||||
struct rtnl_link {
|
||||
rtnl_doit_func doit;
|
||||
@@ -5349,7 +5349,9 @@ int ndo_dflt_bridge_getlink(struct sk_bu
|
||||
@@ -5350,7 +5350,9 @@ int ndo_dflt_bridge_getlink(struct sk_bu
|
||||
brport_nla_put_flag(skb, flags, mask,
|
||||
IFLA_BRPORT_MCAST_FLOOD, BR_MCAST_FLOOD) ||
|
||||
brport_nla_put_flag(skb, flags, mask,
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
|
||||
|
||||
--- a/include/linux/netdevice.h
|
||||
+++ b/include/linux/netdevice.h
|
||||
@@ -2312,7 +2312,7 @@ struct net_device {
|
||||
@@ -2332,7 +2332,7 @@ struct net_device {
|
||||
#if IS_ENABLED(CONFIG_AX25)
|
||||
struct ax25_dev __rcu *ax25_ptr;
|
||||
#endif
|
||||
|
||||
@@ -37,7 +37,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
||||
|
||||
#define pio_enabled(dev) io_type_enabled(dev, PCI_COMMAND_IO)
|
||||
|
||||
@@ -1304,3 +1310,4 @@ static void quirk_usb_early_handoff(stru
|
||||
@@ -1305,3 +1311,4 @@ static void quirk_usb_early_handoff(stru
|
||||
}
|
||||
DECLARE_PCI_FIXUP_CLASS_FINAL(PCI_ANY_ID, PCI_ANY_ID,
|
||||
PCI_CLASS_SERIAL_USB, 8, quirk_usb_early_handoff);
|
||||
|
||||
@@ -45,7 +45,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
|
||||
depends on ACPI
|
||||
--- a/drivers/ata/libata-core.c
|
||||
+++ b/drivers/ata/libata-core.c
|
||||
@@ -703,6 +703,17 @@ static inline void ata_set_tf_cdl(struct
|
||||
@@ -716,6 +716,17 @@ static inline void ata_set_tf_cdl(struct
|
||||
qc->flags |= ATA_QCFLAG_HAS_CDL | ATA_QCFLAG_RESULT_TF;
|
||||
}
|
||||
|
||||
@@ -63,7 +63,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
|
||||
/**
|
||||
* ata_build_rw_tf - Build ATA taskfile for given read/write request
|
||||
* @qc: Metadata associated with the taskfile to build
|
||||
@@ -4917,6 +4928,9 @@ void __ata_qc_complete(struct ata_queued
|
||||
@@ -4996,6 +5007,9 @@ void __ata_qc_complete(struct ata_queued
|
||||
link->active_tag = ATA_TAG_POISON;
|
||||
ap->nr_active_links--;
|
||||
}
|
||||
@@ -73,7 +73,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
|
||||
|
||||
/* clear exclusive status */
|
||||
if (unlikely(qc->flags & ATA_QCFLAG_CLEAR_EXCL &&
|
||||
@@ -5646,6 +5660,9 @@ struct ata_port *ata_port_alloc(struct a
|
||||
@@ -5725,6 +5739,9 @@ struct ata_port *ata_port_alloc(struct a
|
||||
ap->stats.unhandled_irq = 1;
|
||||
ap->stats.idle_irq = 1;
|
||||
#endif
|
||||
@@ -83,7 +83,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
|
||||
ata_sff_port_init(ap);
|
||||
|
||||
ata_force_pflags(ap);
|
||||
@@ -5662,6 +5679,12 @@ void ata_port_free(struct ata_port *ap)
|
||||
@@ -5741,6 +5758,12 @@ void ata_port_free(struct ata_port *ap)
|
||||
kfree(ap->pmp_link);
|
||||
kfree(ap->slave_link);
|
||||
ida_free(&ata_ida, ap->print_id);
|
||||
@@ -96,7 +96,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
|
||||
kfree(ap);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(ata_port_free);
|
||||
@@ -6112,7 +6135,23 @@ int ata_host_register(struct ata_host *h
|
||||
@@ -6191,7 +6214,23 @@ int ata_host_register(struct ata_host *h
|
||||
WARN_ON(1);
|
||||
return -EINVAL;
|
||||
}
|
||||
@@ -132,7 +132,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
|
||||
|
||||
/*
|
||||
* Define if arch has non-standard setup. This is a _PCI_ standard
|
||||
@@ -940,6 +943,10 @@ struct ata_port {
|
||||
@@ -944,6 +947,10 @@ struct ata_port {
|
||||
#ifdef CONFIG_ATA_ACPI
|
||||
struct ata_acpi_gtm __acpi_init_gtm; /* use ata_acpi_init_gtm() */
|
||||
#endif
|
||||
|
||||
Loaded 100 of 138 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user