koala
    注意这个变量,events_check_enabled,如果它不为真,pm_wakeup_pending接口直接返回false,意味着如果不利用wakeup count功能,suspend过程中不会做任何wakeup events检查,也就不会进行任何的同步。 ------如果events_check_enabled不为真的话,应该不会跑到pm_wakeup_pending的吧。会发生wakeup_count_store回写错误,用户空间进程被终止。所以"也就不会进行任何的同步"不会存在这种情况的吧。
    Linux电源管理(8)_Wakeup count功能  发表时间:2015-06-30 20:13
    Daniel Shieh
    @Daniel Shieh:从log信息看到,只有在第一次中断中内核打印了warning信息,接下来我只贴了两三个中断中的数据打印,不过我触发过上百次,3ms每次的频率,连续回环触发中断,都没有再出现warning,数据也没什么问题。不知道这是什么原因造成的内核warning?是和软中断的开启关闭有关系吗?我总感觉问题在这里,但是又无从下手。运行环境是X86平台,centos6.5,内核版本是2.6.32.望大牛hint me。
    linux kernel的中断子系统之(八):softirq  发表时间:2015-06-30 18:52
    Daniel Shieh
    楼主研究过netlink吗?在硬件中断中,执行netlink的发送会产生内核的一个warning,但是可以继续执行,而且只是在中断中第一次执行netlink的发送netlink_unicast函数时,通过dmesg能看到一次内核warning,接下来的所有中断都不会再产生这个内核warning,而且所有的中断处理过程都是ok的,只是这个内核warning应该怎么处理呢?是不是必须要处理掉? 内核产生的warning信息如下: We have entered irq handle programme! GNS_ICR is 0x1 netlink:send message '76005010'. ------------[ cut here ]------------ WARNING: at kernel/softirq.c:159 local_bh_enable+0x7d/0xb0() (Not tainted) Hardware name: Modules linked in: gns_pcie_ep(U) vfat fat usb_storage fuse autofs4 8021q garp stp llc cpufreq_ondemand acpi_cpufreq freq_table mperf ipt_REJECT nf_conntrack_ipv4 nf_defrag_ipv4 iptable_filter ip_tables ip6t_REJECT nf_conntrack_ipv6 nf_defrag_ipv6 xt_state nf_conntrack ip6table_filter ip6_tables ipv6 uinput iTCO_wdt iTCO_vendor_support microcode i2c_i801 sg e1000e ptp pps_core shpchp lpc_ich mfd_core ext4 jbd2 mbcache sd_mod crc_t10dif pata_acpi ata_generic ata_piix xhci_hcd i915 drm_kms_helper drm i2c_algo_bit i2c_core video output dm_mirror dm_region_hash dm_log dm_mod [last unloaded: scsi_wait_scan] Pid: 0, comm: swapper Not tainted 2.6.32-431.el6.x86_64 #1 Call Trace: <IRQ> [<ffffffff81071e27>] ? warn_slowpath_common+0x87/0xc0 [<ffffffff81071e7a>] ? warn_slowpath_null+0x1a/0x20 [<ffffffff8107b5bd>] ? local_bh_enable+0x7d/0xb0 [<ffffffff8146f59d>] ? sk_filter+0x9d/0xd0 [<ffffffff814866e5>] ? netlink_unicast+0x195/0x320 [<ffffffffa03cabb1>] ? sendnlmsg+0x131/0x160 [gns_pcie_ep] [<ffffffff810ec944>] ? __rcu_process_callbacks+0x54/0x350 [<ffffffffa03cac4f>] ? gns_pci_irq+0x6f/0x280 [gns_pcie_ep] [<ffffffff810e6ec0>] ? handle_IRQ_event+0x60/0x170 [<ffffffff810a266d>] ? sched_clock_cpu+0xcd/0x110 [<ffffffff810e981e>] ? handle_edge_irq+0xde/0x180 [<ffffffff8100faf9>] ? handle_irq+0x49/0xa0 [<ffffffff81530fdc>] ? do_IRQ+0x6c/0xf0 [<ffffffff8100b9d3>] ? ret_from_intr+0x0/0x11 <EOI> [<ffffffff812e09be>] ? intel_idle+0xde/0x170 [<ffffffff812e09a1>] ? intel_idle+0xc1/0x170 [<ffffffff814266f7>] ? cpuidle_idle_call+0xa7/0x140 [<ffffffff81009fc6>] ? cpu_idle+0xb6/0x110 [<ffffffff8150cbea>] ? rest_init+0x7a/0x80 [<ffffffff81c26f8f>] ? start_kernel+0x424/0x430 [<ffffffff81c2633a>] ? x86_64_start_reservations+0x125/0x129 [<ffffffff81c26453>] ? x86_64_start_kernel+0x115/0x124 ---[ end trace 907b965b69105137 ]--- data0 01 is 0x4291 data0 02 is 0x2 data0 03 is 0x12345678 data0 04 is 0xedcba987 data0 05 is 0x0 data0 06 is 0x0 data0 07 is 0x0 We have entered irq handle programme! GNS_ICR is 0x2 netlink:send message '1ffb6210'. data0 11 is 0x4291 data0 12 is 0x2 data0 13 is 0x12345678 data0 14 is 0xedcba987 data0 15 is 0x0 data0 16 is 0x0 data0 17 is 0x0
    linux kernel的中断子系统之(八):softirq  发表时间:2015-06-30 18:47
    Daniel Shieh
    @printk:文章发出来了吗?链接或者文章标题是?
    关于蜗窝  发表时间:2015-06-30 18:18
    Daniel Shieh
    @wowo:蜗窝科技有没有自己的产品呢?感觉楼主终究会做自己的产品吧。
    关于蜗窝  发表时间:2015-06-30 18:14
    Daniel Shieh
    in_interrupt()就是判断是否在中断上下文,是吧?在do_softirq函数中总会有下面这句 if (in_interrupt()) return; 那这样的话,会不会马上返回? 软中断或者tasklet的执行过程中应该一直满足这个情况,那还能继续向下执行吗?就直接返回了吧?具体的中断上下文理解应该如何理解呢?定义到底是什么呢?望大牛讲解下,谢谢。
    linux kernel的中断子系统之(八):softirq  发表时间:2015-06-30 17:57
    printk
    @wowo:我看您的攻略都是一边看代码一边理解,哈哈
    Linux电源管理(4)_Power Management Interface  发表时间:2015-06-30 17:20
    wowo
    @printk:谢谢提醒,这里有笔误,马上改正~~~~
    Linux电源管理(4)_Power Management Interface  发表时间:2015-06-30 17:17
    wowo
    @koala:抱歉,这篇文章是先于“http://www.wowotech.net/pm_subsystem/wakeup_count.html”写的,这里表述有误。 实际上,不会做任何多余的动作,只会记录write wkaeup_count成功时的event快照,后面继续suspend动作时,会检查是否和快照相符,如果不符,会终止suspend。 我会修改这一段表述。多谢提醒~~~
    Linux电源管理(5)_Hibernate和Sleep功能介绍  发表时间:2015-06-30 17:17
    printk
    pm_domain 结构体包含的应该是 struct dev_pm_ops ops; 而不是 dev_pm_info 吧。。。 我3.10.17 内核是这个样子滴。。
    Linux电源管理(4)_Power Management Interface  发表时间:2015-06-30 16:19

共7862条607/787上一页 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 下一页
Copyright @ 2013-2015 蜗窝科技 All rights reserved. Powered by emlog