05 May, 2017

1 commit

  • The interrupt request call in Intel SoC DTS driver may fail if
    there is no underlying BIOS support. However, the user space
    thermal daemon can still use the thermal zones created by the
    SoC DTS driver in polling mode, therefore, instead of bailing
    out on interrupt request failures, it is better just to log
    a warning message and continue the init process.

    Signed-off-by: Brian Bian
    Signed-off-by: Zhang Rui

    Brian Bian
     

08 Jun, 2016

1 commit

  • The X86_FAMILY_ANY in here is bogus. "BYT" and model 0x37 are
    family-6 only.

    Signed-off-by: Dave Hansen
    Cc: Andy Lutomirski
    Cc: Borislav Petkov
    Cc: Brian Gerst
    Cc: Dave Hansen
    Cc: Denys Vlasenko
    Cc: Eduardo Valentin
    Cc: H. Peter Anvin
    Cc: Linus Torvalds
    Cc: Peter Zijlstra
    Cc: Thomas Gleixner
    Cc: Zhang Rui
    Cc: jacob.jun.pan@intel.com
    Cc: linux-pm@vger.kernel.org
    Link: http://lkml.kernel.org/r/20160603001952.9B6E114D@viggo.jf.intel.com
    Signed-off-by: Ingo Molnar

    Dave Hansen
     

01 May, 2015

1 commit

  • There is no change in functionality but using the common IOSF core APIs.
    This driver is now just responsible for enumeration and call relevant
    API to create thermal zone and register critical trip.
    Also cpuid 0x4c is now handled in the int340x processor thermal driver
    with the same functionality.

    Signed-off-by: Srinivas Pandruvada

    Srinivas Pandruvada
     

29 Jan, 2015

1 commit


09 Dec, 2014

1 commit

  • The driver calls spin_lock_irqsave during DTS interrupt. The interrupt
    handle then calls thermal_zone_device_update which implicitly calls
    a sleep function and produce the following bug:

    BUG: sleeping function called from invalid context at kernel/locking/mutex.c:97
    in_atomic(): 1, irqs_disabled(): 1, pid: 920, name: irq/86-soc_dts
    CPU: 0 PID: 920 Comm: irq/86-soc_dts Tainted: G E 3.17.0-rc2+ #1
    Hardware name: Intel Corp. VALLEYVIEW B3 PLATFORM/NOTEBOOK, BIOS BYTICRB1.86C.0092.R31.1408290850 08/29/2014
    00000000 00000000 c25dbe74 c1818cfd f3cc488c c25dbe9c c1059305 c1b4063b
    00000001 00000001 00000398 f3cc488c f6817644 f6817644 f3ecc6c0 c25dbea8
    c18208f2 f6817400 c25dbebc c159b0bb c25dbedc f6817400 f32a2300 c25dbee8
    Call Trace:
    [] dump_stack+0x48/0x60
    [] __might_sleep+0xec/0xf4
    [] mutex_lock+0x1c/0x34
    [] thermal_zone_get_temp+0x34/0x59
    [] thermal_zone_device_update+0x2d/0xcb
    [] ? iosf_mbi_write+0x6c/0x74 [iosf_mbi]
    [] soc_irq_thread_fn+0x10c/0x163 [intel_soc_dts_thermal]
    [] irq_thread_fn+0x18/0x2a
    [] irq_thread+0x81/0x11f
    [] ? irq_finalize_oneshot+0x7c/0x7c
    [] ? irq_thread+0x11f/0x11f
    [] ? wake_threads_waitq+0x31/0x31
    [] kthread+0x87/0x8c
    [] ret_from_kernel_thread+0x21/0x30
    [] ? __kthread_parkme+0x55/0x55

    Signed-off-by: Maurice Petallo
    Acked-by: Srinivas Pandruvada
    Acked-by: Eduardo Valentin
    CC: Kweh, Hock Leong
    Signed-off-by: Zhang Rui

    Maurice Petallo
     

15 May, 2014

1 commit

  • In the Intel SoCs like Bay Trail, there are 2 additional digital temperature
    sensors(DTS), in addition to the standard DTSs in the core. Also they support
    4 programmable thresholds, out of which two can be used by OSPM. These
    thresholds can be used by OSPM thermal control. Out of these two thresholds,
    one is used by driver and one user mode can change via thermal sysfs to get
    notifications on threshold violations.

    The driver defines one critical trip points, which is set to TJ MAX - offset.
    The offset can be changed via module parameter (default 5C). Also it uses
    one of the thresholds to get notification for this temperature violation.
    This is very important for orderly shutdown as the many of these devices don't
    have ACPI thermal zone, and expects that there is some other thermal control
    mechanism present in OSPM. When a Linux distro is used without additional
    specialized thermal control program, BIOS can do force shutdown when thermals
    are not under control. When temperature reaches critical, the Linux thermal
    core will initiate an orderly shutdown.

    Signed-off-by: Srinivas Pandruvada
    Signed-off-by: Zhang Rui

    Srinivas Pandruvada