Sign in
Sign up
Explore
Enterprise
Education
Search
Help
Terms of use
About Us
Explore
Enterprise
Education
Gitee Premium
Gitee AI
AI teammates
Sign in
Sign up
Fetch the repository succeeded.
description of repo status
Open Source
>
Other
>
Operation System
&&
Donate
Please sign in before you donate.
Cancel
Sign in
Scan WeChat QR to Pay
Cancel
Complete
Prompt
Switch to Alipay.
OK
Cancel
Watch
Unwatch
Watching
Releases Only
Ignoring
458
Star
1.7K
Fork
1.9K
GVP
openEuler
/
kernel
Closed
Code
Issues
1271
Pull Requests
991
Wiki
Insights
Pipelines
Service
Quality Analysis
Jenkins for Gitee
Tencent CloudBase
Tencent Cloud Serverless
悬镜安全
Aliyun SAE
Codeblitz
SBOM
DevLens
Don’t show this again
Update failed. Please try again later!
Remove this flag
Content Risk Flag
This task is identified by
as the content contains sensitive information such as code security bugs, privacy leaks, etc., so it is only accessible to contributors of this repository.
SAS driver fails to be loaded when start with maxcpus=1
Done
#I8GYPY
Task
YangYunYi
Opened this issue
2023-11-16 14:16
<!-- #请根据issue的类型在标题左侧下拉框中选择对应的选项(需求、缺陷或CVE等)--> <!-- #请根据issue相关的版本在里程碑中选择对应的节点,若是与版本无关,请选择“不关联里程碑”--> SAS driver fails to be loaded when start with maxcpus=1 1. genirq/msi: Shutdown managed interrupts with unsatifiable affinities 当使用```maxcpus=<small number> ```启动时,由于某些硬件资源不可用,中断控制器可能无法满足一些中断的亲和性。 因此如果没有在线CPU能够处理,而将其置为shutdown状态。当有能力处理的CPU出现时,再激活。 2. genirq: Always limit the affinity to online CPUs 当使用```maxcpus=<small number>``` 启动时, 下发的affinity设置中既包含在线CPU和离线CPU。irqchip不能直接使用传递下来的这个设置,需要所有驱动程序来确认并缩小cpumask范围。因此,在修改将cpumask限制为在线CPU集合。 3. irqchip/gic-v3: Always trust the managed affinity provided by the core code 由于核心代码修复了总是下发在线CPU的affinity cpu mask, 因此irqchip/gic-v3这里不再与cpu_online_mask,直接使用下发的cpu_mask. 4. genirq: Take the proposed affinity at face value if force==true 如果是从CPUHP notifier下发通知,要将亲和性设置到不在线的CPU上,这种情况下允许设置。 **Patch information:** | 补丁名称 | 补丁信息 | 冲突情况 | | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | | genirq/msi: Shutdown managed interrupts with unsatifiable affinities | 如果没有在线CPU就激活中断。而是将其置于关机状态。当有处理能力的CPU出现,再把它激活。 | 处理函数的位置在msi_domain_alloc_irqs中,使用的是info->flags与MSI_FLAG_ACTIVATE_EARLY作为判断条件。注释过长的部分做了缩进。 | | genirq: Always limit the affinity to online CPUs | 始终将传递给irqchip驱动程序的cpumask限制为在线CPU集合。 | if (irqd_affinity_is_managed(data) && housekeeping_enabled(HK_FLAG_MANAGED_IRQ)) 情况下的逻辑不存在,因此不作处理。只添加对cpumask与oneline CPU mask的限制计算| | irqchip/gic-v3: Always trust the managed affinity provided by the core code | core代码修改为总是传递包含在线CPU的affinitymask,所以在计算目标CPU时直接使用这个亲和性。 | 无冲突 | | genirq: Take the proposed affinity at face value if force==true | 如果force==true,则取建议的亲和性 | 无冲突 |
<!-- #请根据issue的类型在标题左侧下拉框中选择对应的选项(需求、缺陷或CVE等)--> <!-- #请根据issue相关的版本在里程碑中选择对应的节点,若是与版本无关,请选择“不关联里程碑”--> SAS driver fails to be loaded when start with maxcpus=1 1. genirq/msi: Shutdown managed interrupts with unsatifiable affinities 当使用```maxcpus=<small number> ```启动时,由于某些硬件资源不可用,中断控制器可能无法满足一些中断的亲和性。 因此如果没有在线CPU能够处理,而将其置为shutdown状态。当有能力处理的CPU出现时,再激活。 2. genirq: Always limit the affinity to online CPUs 当使用```maxcpus=<small number>``` 启动时, 下发的affinity设置中既包含在线CPU和离线CPU。irqchip不能直接使用传递下来的这个设置,需要所有驱动程序来确认并缩小cpumask范围。因此,在修改将cpumask限制为在线CPU集合。 3. irqchip/gic-v3: Always trust the managed affinity provided by the core code 由于核心代码修复了总是下发在线CPU的affinity cpu mask, 因此irqchip/gic-v3这里不再与cpu_online_mask,直接使用下发的cpu_mask. 4. genirq: Take the proposed affinity at face value if force==true 如果是从CPUHP notifier下发通知,要将亲和性设置到不在线的CPU上,这种情况下允许设置。 **Patch information:** | 补丁名称 | 补丁信息 | 冲突情况 | | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | | genirq/msi: Shutdown managed interrupts with unsatifiable affinities | 如果没有在线CPU就激活中断。而是将其置于关机状态。当有处理能力的CPU出现,再把它激活。 | 处理函数的位置在msi_domain_alloc_irqs中,使用的是info->flags与MSI_FLAG_ACTIVATE_EARLY作为判断条件。注释过长的部分做了缩进。 | | genirq: Always limit the affinity to online CPUs | 始终将传递给irqchip驱动程序的cpumask限制为在线CPU集合。 | if (irqd_affinity_is_managed(data) && housekeeping_enabled(HK_FLAG_MANAGED_IRQ)) 情况下的逻辑不存在,因此不作处理。只添加对cpumask与oneline CPU mask的限制计算| | irqchip/gic-v3: Always trust the managed affinity provided by the core code | core代码修改为总是传递包含在线CPU的affinitymask,所以在计算目标CPU时直接使用这个亲和性。 | 无冲突 | | genirq: Take the proposed affinity at face value if force==true | 如果force==true,则取建议的亲和性 | 无冲突 |
Comments (
1
)
Sign in
to comment
Status
Done
Backlog
Doing
Done
Declined
Assignees
Not set
Labels
sig/Kernel
Not set
Projects
Unprojected
Unprojected
Pull Requests
None yet
None yet
Successfully merging a pull request will close this issue.
Branches
No related branch
Branches (
-
)
Tags (
-
)
Planed to start   -   Planed to end
-
Top level
Not Top
Top Level: High
Top Level: Medium
Top Level: Low
Priority
Not specified
Serious
Main
Secondary
Unimportant
Duration
(hours)
参与者(2)
C
1
https://gitee.com/openeuler/kernel.git
git@gitee.com:openeuler/kernel.git
openeuler
kernel
kernel
Going to Help Center
Search
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
Comment
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register