Skip to contentSkip to conversation

Bump linux kernel and u-boot versions

PATCH RESEND New Eugeniy Paltsev 3 participants 3 messages Jun 10, 2016

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 Bump linux kernel and u-boot versions

Update kernel version to the most recent stable as of today 4.6.2 with back-ported ARC PGU support from 4.7-rc2.

Bump u-boot to 2016.05 release.
Add 1 u-boot patch to disable IOC.

---
Resending due to previously sent one was discarded by mailing list.

 ...drm_connector_unplug_all-to-drm_connector.patch | 118 +++
 ...troduce-drm_connector_register_all-helper.patch | 108 +++
 ...Add-support-of-ARC-PGU-display-controller.patch | 939 +++++++++++++++++++++
 ...bindings-documentation-for-ARC-PGU-displa.patch |  65 ++
 ...-Add-maintainer-for-ARC-PGU-display-contr.patch |  35 +
 .../0006-arc-axs10x-add-support-of-ARC-PGU.patch   | 119 +++
 ...use-dedicated-memory-area-for-frame-buffe.patch |  50 ++
 ...-Specify-reserved-memory-for-frame-buffer.patch | 122 +++
 ...xs10x-really-enable-ARC-PGU-in-defconfigs.patch |  83 ++
 .../u-boot/U-Boot-arc-cache-Disable-IOC.patch      |  58 ++
 configs/snps_axs101_defconfig                      |   8 +-
 configs/snps_axs103_defconfig                      |   8 +-
 12 files changed, 1707 insertions(+), 6 deletions(-)
 create mode 100644 board/synopsys/axs10x/patches/linux/0001-drm-Rename-drm_connector_unplug_all-to-drm_connector.patch
 create mode 100644 board/synopsys/axs10x/patches/linux/0002-drm-Introduce-drm_connector_register_all-helper.patch
 create mode 100644 board/synopsys/axs10x/patches/linux/0003-drm-Add-support-of-ARC-PGU-display-controller.patch
 create mode 100644 board/synopsys/axs10x/patches/linux/0004-drm-Add-DT-bindings-documentation-for-ARC-PGU-displa.patch
 create mode 100644 board/synopsys/axs10x/patches/linux/0005-MAINTAINERS-Add-maintainer-for-ARC-PGU-display-contr.patch
 create mode 100644 board/synopsys/axs10x/patches/linux/0006-arc-axs10x-add-support-of-ARC-PGU.patch
 create mode 100644 board/synopsys/axs10x/patches/linux/0007-drm-arcpgu-use-dedicated-memory-area-for-frame-buffe.patch
 create mode 100644 board/synopsys/axs10x/patches/linux/0008-ARC-axs10x-Specify-reserved-memory-for-frame-buffer.patch
 create mode 100644 board/synopsys/axs10x/patches/linux/0009-arc-axs10x-really-enable-ARC-PGU-in-defconfigs.patch
 create mode 100644 board/synopsys/axs10x/patches/u-boot/U-Boot-arc-cache-Disable-IOC.patch
board/synopsys/axs10x/patches/linux/0001-drm-Rename-drm_connector_unplug_all-to-drm_connector.patch new file +118 -0
new file mode 100644
index 0000000..01c81b5
@@ -0,0 +1,118 @@
+From d9183a76556a3cce031c829a3360bc91fa144115 Mon Sep 17 00:00:00 2001
+From: Alexey Brodkin <[email protected]>
+Date: Wed, 23 Mar 2016 11:42:54 +0300
+Subject: [PATCH 1/9] drm: Rename drm_connector_unplug_all() to
+ drm_connector_unregister_all()
+
+Current name is a bit misleading because what that helper function
+really does it calls drm_connector_unregister() for all connectors.
+
+This all has nothing to do with hotplugging so let's name things
+properly.
+
+And while at it remove potentially dangerous locking around
+drm_connector_unregister() in rcar_du_remove() as mentioned
+in kerneldoc for drm_connector_unregister_all().
+
+Signed-off-by: Alexey Brodkin <[email protected]>
+Cc: Daniel Vetter <[email protected]>
+Cc: David Airlie <[email protected]>
+Cc: Boris Brezillon <[email protected]>
+Cc: linux-renesas-soc at vger.kernel.org
+Acked-by: Laurent Pinchart <[email protected]>
+Acked-by: Boris Brezillon <[email protected]>
+Signed-off-by: Daniel Vetter <[email protected]>
+Link: http://patchwork.freedesktop.org/patch/msgid/1458722577-20283-2-git-send-email-abrodkin at synopsys.com
+---
+ drivers/gpu/drm/drm_crtc.c            | 18 +++++++++---------
+ drivers/gpu/drm/rcar-du/rcar_du_drv.c |  5 +----
+ drivers/gpu/drm/udl/udl_drv.c         |  2 +-
+ include/drm/drm_crtc.h                |  4 ++--
+ 4 files changed, 13 insertions(+), 16 deletions(-)
+
+diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c
+index e08f962..55ffde5 100644
+--- a/drivers/gpu/drm/drm_crtc.c
++++ b/drivers/gpu/drm/drm_crtc.c
+@@ -1067,25 +1067,25 @@ void drm_connector_unregister(struct drm_connector *connector)
+ }
+ EXPORT_SYMBOL(drm_connector_unregister);
+ 
+-
+ /**
+- * drm_connector_unplug_all - unregister connector userspace interfaces
++ * drm_connector_unregister_all - unregister connector userspace interfaces
+  * @dev: drm device
+  *
+- * This function unregisters all connector userspace interfaces in sysfs. Should
+- * be call when the device is disconnected, e.g. from an usb driver's
+- * ->disconnect callback.
++ * This functions unregisters all connectors from sysfs and other places so
++ * that userspace can no longer access them. Drivers should call this as the
++ * first step tearing down the device instace, or when the underlying
++ * physical device disappeared (e.g. USB unplug), right before calling
++ * drm_dev_unregister().
+  */
+-void drm_connector_unplug_all(struct drm_device *dev)
++void drm_connector_unregister_all(struct drm_device *dev)
+ {
+ 	struct drm_connector *connector;
+ 
+ 	/* FIXME: taking the mode config mutex ends up in a clash with sysfs */
+-	list_for_each_entry(connector, &dev->mode_config.connector_list, head)
++	drm_for_each_connector(connector, dev)
+ 		drm_connector_unregister(connector);
+-
+ }
+-EXPORT_SYMBOL(drm_connector_unplug_all);
++EXPORT_SYMBOL(drm_connector_unregister_all);
+ 
+ /**
+  * drm_encoder_init - Init a preallocated encoder
+diff --git a/drivers/gpu/drm/rcar-du/rcar_du_drv.c b/drivers/gpu/drm/rcar-du/rcar_du_drv.c
+index ed6006b..644db36 100644
+--- a/drivers/gpu/drm/rcar-du/rcar_du_drv.c
++++ b/drivers/gpu/drm/rcar-du/rcar_du_drv.c
+@@ -278,10 +278,7 @@ static int rcar_du_remove(struct platform_device *pdev)
+ 	struct rcar_du_device *rcdu = platform_get_drvdata(pdev);
+ 	struct drm_device *ddev = rcdu->ddev;
+ 
+-	mutex_lock(&ddev->mode_config.mutex);
+-	drm_connector_unplug_all(ddev);
+-	mutex_unlock(&ddev->mode_config.mutex);
+-
++	drm_connector_unregister_all(ddev);
+ 	drm_dev_unregister(ddev);
+ 
+ 	if (rcdu->fbdev)
+diff --git a/drivers/gpu/drm/udl/udl_drv.c b/drivers/gpu/drm/udl/udl_drv.c
+index 772ec9e..c204089 100644
+--- a/drivers/gpu/drm/udl/udl_drv.c
++++ b/drivers/gpu/drm/udl/udl_drv.c
+@@ -94,7 +94,7 @@ static void udl_usb_disconnect(struct usb_interface *interface)
+ 	struct drm_device *dev = usb_get_intfdata(interface);
+ 
+ 	drm_kms_helper_poll_disable(dev);
+-	drm_connector_unplug_all(dev);
++	drm_connector_unregister_all(dev);
+ 	udl_fbdev_unplug(dev);
+ 	udl_drop_usb(dev);
+ 	drm_unplug_dev(dev);
+diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h
+index e0170bf..bc7fbb57 100644
+--- a/include/drm/drm_crtc.h
++++ b/include/drm/drm_crtc.h
+@@ -2259,8 +2259,8 @@ static inline unsigned drm_connector_index(struct drm_connector *connector)
+ 	return connector->connector_id;
+ }
+ 
+-/* helper to unplug all connectors from sysfs for device */
+-extern void drm_connector_unplug_all(struct drm_device *dev);
++/* helper to unregister all connectors from sysfs for device */
++extern void drm_connector_unregister_all(struct drm_device *dev);
+ 
+ extern int drm_bridge_add(struct drm_bridge *bridge);
+ extern void drm_bridge_remove(struct drm_bridge *bridge);
+-- 
+2.5.5
+
board/synopsys/axs10x/patches/linux/0002-drm-Introduce-drm_connector_register_all-helper.patch new file +108 -0

108 lines not on this page · raw message

board/synopsys/axs10x/patches/linux/0003-drm-Add-support-of-ARC-PGU-display-controller.patch new file +939 -0

939 lines not on this page · raw message

board/synopsys/axs10x/patches/linux/0004-drm-Add-DT-bindings-documentation-for-ARC-PGU-displa.patch new file +65 -0

65 lines not on this page · raw message

board/synopsys/axs10x/patches/linux/0005-MAINTAINERS-Add-maintainer-for-ARC-PGU-display-contr.patch new file +35 -0
new file mode 100644
index 0000000..38094a7
@@ -0,0 +1,35 @@
+From a9560ce58248df0452e6122a8ed5e131eed0bd78 Mon Sep 17 00:00:00 2001
+From: Alexey Brodkin <[email protected]>
+Date: Fri, 19 Feb 2016 15:34:30 +0300
+Subject: [PATCH 5/9] MAINTAINERS: Add maintainer for ARC PGU display
+ controller
+
+This updates MAINTEINERS file with information about maintainer of
+ARC PGU display controller driver.
+
+Signed-off-by: Alexey Brodkin <[email protected]>
+Cc: linux-snps-arc at lists.infradead.org
+---
+ MAINTAINERS | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+diff --git a/MAINTAINERS b/MAINTAINERS
+index 9c567a4..8a3efa4 100644
+--- a/MAINTAINERS
++++ b/MAINTAINERS
+@@ -847,6 +847,12 @@ S:	Maintained
+ F:	drivers/net/arcnet/
+ F:	include/uapi/linux/if_arcnet.h
+ 
++ARC PGU DRM DRIVER
++M:	Alexey Brodkin <[email protected]>
++S:	Supported
++F:	drivers/gpu/drm/arc/
++F:	Documentation/devicetree/bindings/display/snps,arcpgu.txt
++
+ ARM HDLCD DRM DRIVER
+ M:	Liviu Dudau <[email protected]>
+ S:	Supported
+-- 
+2.5.5
+
board/synopsys/axs10x/patches/linux/0006-arc-axs10x-add-support-of-ARC-PGU.patch new file +119 -0

119 lines not on this page · raw message

board/synopsys/axs10x/patches/linux/0007-drm-arcpgu-use-dedicated-memory-area-for-frame-buffe.patch new file +50 -0

50 lines not on this page · raw message

board/synopsys/axs10x/patches/linux/0008-ARC-axs10x-Specify-reserved-memory-for-frame-buffer.patch new file +122 -0

122 lines not on this page · raw message

board/synopsys/axs10x/patches/linux/0009-arc-axs10x-really-enable-ARC-PGU-in-defconfigs.patch new file +83 -0

83 lines not on this page · raw message

board/synopsys/axs10x/patches/u-boot/U-Boot-arc-cache-Disable-IOC.patch new file +58 -0

58 lines not on this page · raw message

configs/snps_axs101_defconfig +5 -3
index 08def3e..7d11fc4 100644
@@ -9,17 +9,19 @@ BR2_SYSTEM_DHCP="eth0"
 BR2_ROOTFS_OVERLAY="board/synopsys/axs10x/fs-overlay"
 
 # Linux headers same as kernel, a 4.2 series
-BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_2=y
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_6=y
 
 # Kernel
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_VERSION=y
-BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.2.4"
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.6.2"
 BR2_LINUX_KERNEL_DEFCONFIG="axs101"
+BR2_LINUX_KERNEL_PATCH="board/synopsys/axs10x/patches/linux/"
 
 # Bootloader
 BR2_TARGET_UBOOT=y
 BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
 BR2_TARGET_UBOOT_CUSTOM_VERSION=y
-BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2015.07"
+BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2016.05"
 BR2_TARGET_UBOOT_BOARD_DEFCONFIG="axs101"
+BR2_TARGET_UBOOT_PATCH="board/synopsys/axs10x/patches/u-boot/"
configs/snps_axs103_defconfig +5 -3
index d997508..6d43ec1 100644
@@ -10,17 +10,19 @@ BR2_SYSTEM_DHCP="eth0"
 BR2_ROOTFS_OVERLAY="board/synopsys/axs10x/fs-overlay"
 
 # Linux headers same as kernel, a 4.2 series
-BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_2=y
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_6=y
 
 # Kernel
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_VERSION=y
-BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.2.4"
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.6.2"
 BR2_LINUX_KERNEL_DEFCONFIG="axs103_smp"
+BR2_LINUX_KERNEL_PATCH="board/synopsys/axs10x/patches/linux/"
 
 # Bootloader
 BR2_TARGET_UBOOT=y
 BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
 BR2_TARGET_UBOOT_CUSTOM_VERSION=y
-BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2015.07"
+BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2016.05"
 BR2_TARGET_UBOOT_BOARD_DEFCONFIG="axs103"
+BR2_TARGET_UBOOT_PATCH="board/synopsys/axs10x/patches/u-boot/"
Signature · 1 line
2.5.5
#1 lore raw

PATCH RESEND 1/1 Bump linux kernel and u-boot versions

Hello,

Quoted 7 lines · Eugeniy Paltsev

Update kernel version to the most recent stable as of today 4.6.2 with back-ported ARC PGU support from 4.7-rc2.

Bump u-boot to 2016.05 release.
Add 1 u-boot patch to disable IOC.

This version does not use 4.7-rc2, and still have zillions have patches due to this. And the commit log therefore doesn't match what the patch is doing.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#2 lore raw

PATCH RESEND 1/1 Bump linux kernel and u-boot versions

Hi Thomas,

Quoted 7 lines · Thomas Petazzoni

Hello,

Quoted 4 lines · Eugeniy Paltsev

Update kernel version to the most recent stable as of today 4.6.2 with back-ported ARC PGU support from 4.7-rc2.

Quoted 8 lines
Quoted 4 lines

Bump u-boot to 2016.05 release.
Add 1 u-boot patch to disable IOC.

This version does not use 4.7-rc2, and still have zillions have patches due to this. And the commit log therefore doesn't match what the patch is doing.

Looks like you misunderstood that patch.
It was tagged with "RESEND" because its first version was discarded by mailman since Eugeniy was not subscribed. So he really just re-sent exactly the same patch so it will show up in the mailing list.

That said respin with real kernel 4.7-rc3 (which I think will be cut early next week) we'll be sending next week.

Anyways sorry for the noise.

-Alexey