[Bug 99575] New: Bug/Regression On The kernel starting with 4.5-rc1 to 4.10-rc5 causing Slowness .

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Jan 28 09:37:45 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=99575

            Bug ID: 99575
           Summary: Bug/Regression On The kernel starting with 4.5-rc1 to
                    4.10-rc5 causing Slowness .
           Product: DRI
           Version: unspecified
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: DRM/Intel
          Assignee: intel-gfx-bugs at lists.freedesktop.org
          Reporter: ozmage809 at gmail.com
        QA Contact: intel-gfx-bugs at lists.freedesktop.org
                CC: intel-gfx-bugs at lists.freedesktop.org

Hello Im Filling this bug here Because i Did a Git Bisect between the kernel
4.4 which is fine and faster and the kernel 4.5-rc1 which introduced the
slowness all the way up to 4.10-rc5 and this is what i get :

By Slowness Im Talking About Slow Compile Time And 3d Games Slow as hell.

On The kernel 4.1.37 and 4.4.44 i can compile the kernel Sources in 13 Minutes.
And With The kernel 4.9.6 which is the last stable in almost 30 Minutes.
Both's kernels with the governor Performance set .

And Slow 3d Games For Example the games on ppsspp emulator are too Slow. 
Tested With Kernels 4.5-rc1 to 4.10-rc5 all of them are slow.
With the kernels 4.1 lts and 4.4 lts the games are normal .



Bisecting: 5556 revisions left to test after this (roughly 13 steps)
#GOOD# [1289ace5b4f70f1e68ce785735b82c7e483de863] Merge tag 'scsi-misc' of
git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
Bisecting: 2483 revisions left to test after this (roughly 12 steps)
#BAD# [984065055e6e39f8dd812529e11922374bd39352] Merge branch 'drm-next' of
git://people.freedesktop.org/~airlied/linux
Bisecting: 1192 revisions left to test after this (roughly 11 steps)
#BAD# [a016af2e70bfca23f2f5de7d8708157b86ea374d] Merge tag 'sound-4.5-rc1' of
git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound
Bisecting: 966 revisions left to test after this (roughly 10 steps)
#GOOD# [d45187aaf0e256d23da2f7694a7826524499aa31] Merge branch 'dmi-for-linus'
of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging
Bisecting: 522 revisions left to test after this (roughly 9 steps)
#GOOD# [d0021d3bdfe9d551859bca1f58da0e6be8e26043] Merge remote-tracking branch
'asoc/topic/wm8960' into asoc-next
Bisecting: 273 revisions left to test after this (roughly 8 steps)
#BAD# [0bdf5a05647a66dcc6394986e061daeac9b1cf96] drm/i915: Add reverse mapping
between port and intel_encoder
Bisecting: 124 revisions left to test after this (roughly 7 steps)
#GOOD# [6a6582bfff39f099d0867e8b97b409efd1d84b9a] drm/i915/gen9: extract
parse_csr_fw
Bisecting: 62 revisions left to test after this (roughly 6 steps)
#GOOD# [ab75bb5d852cf9a877a973c2174e7791d92554c5] drm/i915: Turn vgpu pdps into
an array
Bisecting: 31 revisions left to test after this (roughly 5 steps)
#GOOD# [1494276000db789c6d2acd85747be4707051c801] drm/atomic-helper: Implement
subsystem-level suspend/resume
Bisecting: 15 revisions left to test after this (roughly 4 steps)
#BAD# [ce7f172856396d92e82cb0eae420f4ce41c92851] drm/i915: Fix
i915_ggtt_view_equal to handle rotation correctly
Bisecting: 7 revisions left to test after this (roughly 3 steps)
#BAD# [81e4e0c95d37d020e18268bdd58f208bb5259713] drm/i915: Send TP1 TP2/3 even
when panel claims no NO_TRAIN_ON_EXIT.
Bisecting: 3 revisions left to test after this (roughly 2 steps)
#BAD# [f0f59a00a1c9be11038bef5aa735ed7dd985f9cf] drm/i915: Type safe register
read/write
Bisecting: 1 revision left to test after this (roughly 1 step)
#GOOD# [0670c5a688122c66ecfb0bd8cbd8067cc971a4e8] drm/i915: Add 'offset' to
uncore funcs
Bisecting: 0 revisions left to test after this (roughly 0 steps)
#GOOD# [9bca5d0ca76c0ce029e2b43cf081863e7e8f6768] drm/i915: Add missing ')' to
SKL_PS_ECC_STAT define

f0f59a00a1c9be11038bef5aa735ed7dd985f9cf is the first bad commit
commit f0f59a00a1c9be11038bef5aa735ed7dd985f9cf
Author: Ville Syrjälä <ville.syrjala at linux.intel.com>
Date:   Wed Nov 18 15:33:26 2015 +0200

    drm/i915: Type safe register read/write

    Make I915_READ and I915_WRITE more type safe by wrapping the register
    offset in a struct. This should eliminate most of the fumbles we've had
    with misplaced parens.

    This only takes care of normal mmio registers. We could extend the idea
    to other register types and define each with its own struct. That way
    you wouldn't be able to accidentally pass the wrong thing to a specific
    register access function.

    The gpio_reg setup is probably the ugliest thing left. But I figure I'd
    just leave it for now, and wait for some divine inspiration to strike
    before making it nice.

    As for the generated code, it's actually a bit better sometimes. Eg.
    looking at i915_irq_handler(), we can see the following change:
      lea    0x70024(%rdx,%rax,1),%r9d
      mov    $0x1,%edx
    - movslq %r9d,%r9
    - mov    %r9,%rsi
    - mov    %r9,-0x58(%rbp)
    - callq  *0xd8(%rbx)
    + mov    %r9d,%esi
    + mov    %r9d,-0x48(%rbp)
     callq  *0xd8(%rbx)

    So previously gcc thought the register offset might be signed and
    decided to sign extend it, just in case. The rest appears to be
    mostly just minor shuffling of instructions.

    v2: i915_mmio_reg_{offset,equal,valid}() helpers added
        s/_REG/_MMIO/ in the register defines
        mo more switch statements left to worry about
        ring_emit stuff got sorted in a prep patch
        cmd parser, lrc context and w/a batch buildup also in prep patch
        vgpu stuff cleaned up and moved to a prep patch
        all other unrelated changes split out
    v3: Rebased due to BXT DSI/BLC, MOCS, etc.
    v4: Rebased due to churn, s/i915_mmio_reg_t/i915_reg_t/

    Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
    Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>
    Link:
http://patchwork.freedesktop.org/patch/msgid/1447853606-2751-1-git-send-email-ville.syrjala@linux.intel.com

:040000 040000 c0e5d868baa9f128af701fa0642d9c1551ee415c
1fbd83167b2645ee34dfd626b8c38f15114d45d6 M      drivers




This is My machine :

inxi -F
System:    Host: darkmaza Kernel: 4.1.37 x86_64 (64 bit) Desktop: MATE 1.16.1
           Distro: Gentoo Base System release 2.3
Machine:   Device: laptop System: TOSHIBA product: PORTEGE R700 v:
PT310U-0K002Y01 serial: 3B053928H
           Mobo: TOSHIBA model: Portable PC v: Version A0 serial: 0000000000
           BIOS: TOSHIBA v: Version 2.20 date: 12/22/2011
CPU:       Dual core Intel Core i3 M 380 (-HT-MCP-) cache: 3072 KB 
           clock speeds: max: 2533 MHz 1: 933 MHz 2: 933 MHz 3: 1333 MHz 4:
1866 MHz
Graphics:  Card: Intel Core Processor Integrated Graphics Controller
           Display Server: X.org 1.19.1 driver: intel tty size: 135x30 Advanced
Data: N/A for root
Audio:     Card Intel 5 Series/3400 Series High Definition Audio driver:
snd_hda_intel Sound: ALSA v: k4.1.37-ck
Network:   Card: Intel Wireless 7260 driver: iwlwifi
           IF: wlp2s0 state: up mac: f0:42:1c:c7:07:59
Drives:    HDD Total Size: 320.1GB (1.6% used)
           ID-1: /dev/sda model: WDC_WD3200BEKT size: 320.1GB
Partition: ID-1: / size: 88G used: 55G (63%) fs: zfs dev: N/A
           ID-2: swap-1 size: 4.55GB used: 0.00GB (0%) fs: swap dev: /dev/sda2
           ID-3: swap-2 size: 0.19GB used: 0.00GB (0%) fs: swap dev: /dev/zram0
           ID-4: swap-3 size: 0.19GB used: 0.00GB (0%) fs: swap dev: /dev/zram1
           ID-5: swap-4 size: 0.19GB used: 0.00GB (0%) fs: swap dev: /dev/zram2
           ID-6: swap-5 size: 0.19GB used: 0.00GB (0%) fs: swap dev: /dev/zram3
Sensors:   System Temperatures: cpu: 56.0C mobo: N/A
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 242 Uptime: 59 min Memory: 2036.8/3681.4MB Client: Shell
(fish) inxi: 2.3.4 




LSPCI :

00:00.0 Host bridge: Intel Corporation Core Processor DRAM Controller (rev 02)
00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated
Graphics Controller (rev 02)
00:16.0 Communication controller: Intel Corporation 5 Series/3400 Series
Chipset HECI Controller (rev 06)
00:1a.0 USB controller: Intel Corporation 5 Series/3400 Series Chipset USB2
Enhanced Host Controller (rev 06)
00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High
Definition Audio (rev 06)
00:1c.0 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express
Root Port 1 (rev 06)
00:1c.1 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express
Root Port 2 (rev 06)
00:1c.2 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express
Root Port 3 (rev 06)
00:1c.3 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express
Root Port 4 (rev 06)
00:1d.0 USB controller: Intel Corporation 5 Series/3400 Series Chipset USB2
Enhanced Host Controller (rev 06)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev a6)
00:1f.0 ISA bridge: Intel Corporation HM55 Chipset LPC Interface Controller
(rev 06)
00:1f.2 SATA controller: Intel Corporation 5 Series/3400 Series Chipset 4 port
SATA AHCI Controller (rev 06)
00:1f.6 Signal processing controller: Intel Corporation 5 Series/3400 Series
Chipset Thermal Subsystem (rev 06)
01:00.0 SD Host controller: Ricoh Co Ltd MMC/SD Host Controller (rev 01)
02:00.0 Network controller: Intel Corporation Wireless 7260 (rev bb)
ff:00.0 Host bridge: Intel Corporation Core Processor QuickPath Architecture
Generic Non-core Registers (rev 02)
ff:00.1 Host bridge: Intel Corporation Core Processor QuickPath Architecture
System Address Decoder (rev 02)
ff:02.0 Host bridge: Intel Corporation Core Processor QPI Link 0 (rev 02)
ff:02.1 Host bridge: Intel Corporation 1st Generation Core i3/5/7 Processor QPI
Physical 0 (rev 02)
ff:02.2 Host bridge: Intel Corporation 1st Generation Core i3/5/7 Processor
Reserved (rev 02)
ff:02.3 Host bridge: Intel Corporation 1st Generation Core i3/5/7 Processor
Reserved (rev 02)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-gfx-bugs/attachments/20170128/80237796/attachment.html>


More information about the intel-gfx-bugs mailing list