-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Bump sm8250 #9180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
CodeChenL
wants to merge
3
commits into
armbian:main
Choose a base branch
from
CodeChenL:bump_sm8250
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Bump sm8250 #9180
Changes from 2 commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
patch/kernel/archive/sm8250-6.18/0000.patching_config.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| config: # This is file 'patch/kernel/archive/sm8250-6.7/0000.patching_config.yaml' | ||
|
|
||
| # Just some info stuff; not used by the patching scripts | ||
| name: sm8250-6.12 | ||
| kind: kernel | ||
| type: mainline # or: vendor | ||
| branch: linux-6.12.y | ||
| last-known-good-tag: v6.12.5 | ||
| maintainers: | ||
| - { github: rpardini, name: Ricardo Pardini, email: ricardo@pardini.net, armbian-forum: rpardini } | ||
|
|
||
| # .dts files in these directories will be copied as-is to the build tree; later ones overwrite earlier ones. | ||
| # This is meant to provide a way to "add a board DTS" without having to null-patch them in. | ||
| dts-directories: | ||
| - { source: "dt", target: "arch/arm64/boot/dts/qcom" } | ||
|
|
||
| # the Makefile in each of these directories will be magically patched to include the dts files copied | ||
| # or patched-in; overlay subdir will be included "-y" if it exists. | ||
| # No more Makefile patching needed, yay! | ||
| auto-patch-dt-makefile: | ||
| - { directory: "arch/arm64/boot/dts/qcom", config-var: "CONFIG_ARCH_QCOM" } | ||
|
|
||
| # configuration for when applying patches to git / auto-rewriting patches (development cycle helpers) | ||
| patches-to-git: | ||
| do-not-commit-files: | ||
| - "MAINTAINERS" # constant churn, drop them. sorry. | ||
| do-not-commit-regexes: # Python-style regexes | ||
| - "^arch/([a-zA-Z0-9]+)/boot/dts/([a-zA-Z0-9]+)/Makefile$" # ignore DT Makefile patches, we've an auto-patcher now | ||
|
|
||
135 changes: 135 additions & 0 deletions
135
patch/kernel/archive/sm8250-6.18/0001-drm-Add-drm-notifier-support.patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,135 @@ | ||
| From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
| From: Jianhua Lu <lujianhua000@gmail.com> | ||
| Date: Thu, 4 Aug 2022 13:26:53 +0800 | ||
| Subject: drm: Add drm notifier support | ||
|
|
||
| --- | ||
| drivers/gpu/drm/Makefile | 3 +- | ||
| drivers/gpu/drm/drm_notifier.c | 58 ++++++++++ | ||
| include/drm/drm_notifier.h | 37 ++++++ | ||
| 3 files changed, 97 insertions(+), 1 deletion(-) | ||
|
|
||
| diff --git a/drivers/gpu/drm/Makefile b/drivers/gpu/drm/Makefile | ||
| index 111111111111..222222222222 100644 | ||
| --- a/drivers/gpu/drm/Makefile | ||
| +++ b/drivers/gpu/drm/Makefile | ||
| @@ -74,7 +74,8 @@ drm-y := \ | ||
| drm_vblank.o \ | ||
| drm_vblank_work.o \ | ||
| drm_vma_manager.o \ | ||
| - drm_writeback.o | ||
| + drm_writeback.o \ | ||
| + drm_notifier.o | ||
| drm-$(CONFIG_DRM_CLIENT) += \ | ||
| drm_client.o \ | ||
| drm_client_event.o \ | ||
| diff --git a/drivers/gpu/drm/drm_notifier.c b/drivers/gpu/drm/drm_notifier.c | ||
| new file mode 100644 | ||
| index 000000000000..111111111111 | ||
| --- /dev/null | ||
| +++ b/drivers/gpu/drm/drm_notifier.c | ||
| @@ -0,0 +1,58 @@ | ||
| +/* | ||
| + * Copyright (c) 2019, The Linux Foundation. All rights reserved. | ||
| + * Copyright (C) 2021 XiaoMi, Inc. | ||
| + * | ||
| + * This program is free software; you can redistribute it and/or modify | ||
| + * it under the terms of the GNU General Public License version 2 and | ||
| + * only version 2 as published by the Free Software Foundation. | ||
| + * | ||
| + * This program is distributed in the hope that it will be useful, | ||
| + * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| + * GNU General Public License for more details. | ||
| + * | ||
| + */ | ||
| + | ||
| +#include <linux/notifier.h> | ||
| +#include <drm/drm_notifier.h> | ||
| + | ||
| +static BLOCKING_NOTIFIER_HEAD(mi_drm_notifier_list); | ||
| + | ||
| +/** | ||
| + * mi_drm_register_client - register a client notifier | ||
| + * @nb: notifier block to callback on events | ||
| + * | ||
| + * This function registers a notifier callback function | ||
| + * to msm_drm_notifier_list, which would be called when | ||
| + * received unblank/power down event. | ||
| + */ | ||
| +int mi_drm_register_client(struct notifier_block *nb) | ||
| +{ | ||
| + return blocking_notifier_chain_register(&mi_drm_notifier_list, nb); | ||
| +} | ||
| +EXPORT_SYMBOL(mi_drm_register_client); | ||
| + | ||
| +/** | ||
| + * mi_drm_unregister_client - unregister a client notifier | ||
| + * @nb: notifier block to callback on events | ||
| + * | ||
| + * This function unregisters the callback function from | ||
| + * msm_drm_notifier_list. | ||
| + */ | ||
| +int mi_drm_unregister_client(struct notifier_block *nb) | ||
| +{ | ||
| + return blocking_notifier_chain_unregister(&mi_drm_notifier_list, nb); | ||
| +} | ||
| +EXPORT_SYMBOL(mi_drm_unregister_client); | ||
| + | ||
| +/** | ||
| + * mi_drm_notifier_call_chain - notify clients of drm_events | ||
| + * @val: event MSM_DRM_EARLY_EVENT_BLANK or MSM_DRM_EVENT_BLANK | ||
| + * @v: notifier data, inculde display id and display blank | ||
| + * event(unblank or power down). | ||
| + */ | ||
| +int mi_drm_notifier_call_chain(unsigned long val, void *v) | ||
| +{ | ||
| + return blocking_notifier_call_chain(&mi_drm_notifier_list, val, v); | ||
| +} | ||
| +EXPORT_SYMBOL(mi_drm_notifier_call_chain); | ||
| diff --git a/include/drm/drm_notifier.h b/include/drm/drm_notifier.h | ||
| new file mode 100644 | ||
| index 000000000000..111111111111 | ||
| --- /dev/null | ||
| +++ b/include/drm/drm_notifier.h | ||
| @@ -0,0 +1,37 @@ | ||
| +/* | ||
| + * Copyright (c) 2019, The Linux Foundation. All rights reserved. | ||
| + * Copyright (C) 2021 XiaoMi, Inc. | ||
| + * | ||
| + * This program is free software; you can redistribute it and/or modify | ||
| + * it under the terms of the GNU General Public License version 2 and | ||
| + * only version 2 as published by the Free Software Foundation. | ||
| + * | ||
| + * This program is distributed in the hope that it will be useful, | ||
| + * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| + * GNU General Public License for more details. | ||
| + * | ||
| + */ | ||
| + | ||
| +#ifndef _DRM_NOTIFIER_H_ | ||
| +#define _DRM_NOTIFIER_H_ | ||
| + | ||
| +#include <linux/notifier.h> | ||
| + | ||
| +/* A hardware display blank change occurred */ | ||
| +#define MI_DRM_EVENT_BLANK 0x01 | ||
| +/* A hardware display blank early change occurred */ | ||
| +#define MI_DRM_EARLY_EVENT_BLANK 0x02 | ||
| + | ||
| +enum drm_notifier_data { | ||
| + /* panel: power on */ | ||
| + MI_DRM_BLANK_UNBLANK, | ||
| + /* panel: power down */ | ||
| + MI_DRM_BLANK_POWERDOWN, | ||
| +}; | ||
| + | ||
| +int mi_drm_register_client(struct notifier_block *nb); | ||
| +int mi_drm_unregister_client(struct notifier_block *nb); | ||
| +int mi_drm_notifier_call_chain(unsigned long val, void *v); | ||
| + | ||
| +#endif /* _DRM_NOTIFIER_H */ | ||
| -- | ||
| Armbian | ||
|
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.