YueHaibing
f703fd374e
x86/cpu: Drop pointless static qualifier in punit_dev_state_show()
...
There is no need to have the 'struct dentry *dev_state' variable static
since new value always be assigned before use it.
Signed-off-by: YueHaibing <[email protected] >
Cc: Andy Shevchenko <[email protected] >
Cc: Borislav Petkov <[email protected] >
Cc: Linus Torvalds <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Cc: Thomas Gleixner <[email protected] >
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected] >
2018-10-12 12:48:44 +02:00
Peter Zijlstra
f2c4db1bd8
x86/cpu: Sanitize FAM6_ATOM naming
...
Going primarily by:
https://en.wikipedia.org/wiki/List_of_Intel_Atom_microprocessors
with additional information gleaned from other related pages; notably:
- Bonnell shrink was called Saltwell
- Moorefield is the Merriefield refresh which makes it Airmont
The general naming scheme is: FAM6_ATOM_UARCH_SOCTYPE
for i in `git grep -l FAM6_ATOM` ; do
sed -i -e 's/ATOM_PINEVIEW/ATOM_BONNELL/g' \
-e 's/ATOM_LINCROFT/ATOM_BONNELL_MID/' \
-e 's/ATOM_PENWELL/ATOM_SALTWELL_MID/g' \
-e 's/ATOM_CLOVERVIEW/ATOM_SALTWELL_TABLET/g' \
-e 's/ATOM_CEDARVIEW/ATOM_SALTWELL/g' \
-e 's/ATOM_SILVERMONT1/ATOM_SILVERMONT/g' \
-e 's/ATOM_SILVERMONT2/ATOM_SILVERMONT_X/g' \
-e 's/ATOM_MERRIFIELD/ATOM_SILVERMONT_MID/g' \
-e 's/ATOM_MOOREFIELD/ATOM_AIRMONT_MID/g' \
-e 's/ATOM_DENVERTON/ATOM_GOLDMONT_X/g' \
-e 's/ATOM_GEMINI_LAKE/ATOM_GOLDMONT_PLUS/g' ${i}
done
Signed-off-by: Peter Zijlstra (Intel) <[email protected] >
Cc: Alexander Shishkin <[email protected] >
Cc: Arnaldo Carvalho de Melo <[email protected] >
Cc: Jiri Olsa <[email protected] >
Cc: Linus Torvalds <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Cc: Stephane Eranian <[email protected] >
Cc: Thomas Gleixner <[email protected] >
Cc: Vince Weaver <[email protected] >
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Ingo Molnar <[email protected] >
2018-10-02 10:14:32 +02:00
Andy Shevchenko
3130451e27
x86/platform/atom: Re-use DEFINE_SHOW_ATTRIBUTE() macro
...
...instead of open coding file operations followed by custom ->open()
callbacks per each attribute.
While here, replace permissions by explicit octal value.
Signed-off-by: Andy Shevchenko <[email protected] >
Cc: Linus Torvalds <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Cc: Thomas Gleixner <[email protected] >
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected] >
2018-02-16 10:10:14 +01:00
Andy Shevchenko
f5fbf84830
x86/cpu: Rename Merrifield2 to Moorefield
...
Merrifield2 is actually Moorefield.
Rename it accordingly and drop tail digit from Merrifield1.
Signed-off-by: Andy Shevchenko <[email protected] >
Cc: Dave Hansen <[email protected] >
Cc: Linus Torvalds <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Cc: Thomas Gleixner <[email protected] >
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected] >
2016-09-08 08:13:08 +02:00
Andy Shevchenko
9485f8b6a7
x86/platform/atom/punit: Enable support for Merrifield
...
Intel Merrifield platform has Punit generation that somehow compatible to what
is already supported by punit_atom_debug driver.
Add necessary bits to enable that support.
Signed-off-by: Andy Shevchenko <[email protected] >
Acked-by: Thomas Gleixner <[email protected] >
Cc: Bjorn Helgaas <[email protected] >
Cc: Linus Torvalds <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Link: http://lkml.kernel.org/r/1465842481-136852-2-git-send-email-andriy.shevchenko@linux.intel.com
Signed-off-by: Ingo Molnar <[email protected] >
2016-06-14 12:44:51 +02:00
Dave Hansen
d5e0c89a8c
x86/platform: Use new Intel model number macros
...
Remove the open-coded model numbers.
Signed-off-by: Dave Hansen <[email protected] >
Cc: Andy Lutomirski <[email protected] >
Cc: Borislav Petkov <[email protected] >
Cc: Brian Gerst <[email protected] >
Cc: Dave Hansen <[email protected] >
Cc: Denys Vlasenko <[email protected] >
Cc: H. Peter Anvin <[email protected] >
Cc: Jacob Pan <[email protected] >
Cc: Linus Torvalds <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Cc: Rafael J. Wysocki <[email protected] >
Cc: Srinivas Pandruvada <[email protected] >
Cc: Thomas Gleixner <[email protected] >
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected] >
2016-06-08 13:03:25 +02:00
Andy Shevchenko
4077a387b7
x86/platform/iosf_mbi: Remove duplicate definitions
...
The read and write opcodes are global for all units on SoC and even across
Intel SoCs. Remove duplication of corresponding constants. At the same time
convert all current users.
No functional change.
Acked-by: Thomas Gleixner <[email protected] >
Acked-by: Boon Leong Ong <[email protected] >
Acked-by: Jacob Pan <[email protected] >
Signed-off-by: Andy Shevchenko <[email protected] >
Signed-off-by: Rafael J. Wysocki <[email protected] >
2015-12-09 01:18:34 +01:00
Srinivas Pandruvada
956079e081
x86/platform/atom/punit: Add Punit device state debug driver
...
The patch adds a debug driver, which dumps the power states
of all the North complex (NC) devices. This debug interface is
useful to figure out the devices, which blocks the S0ix
transitions on the platform. This is extremely useful during
enabling PM on customer platforms and derivatives.
This submission is based on the submission from Mahesh Kumar P:
https://lkml.org/lkml/2014/11/5/367
Signed-off-by: Srinivas Pandruvada <[email protected] >
Cc: Borislav Petkov <[email protected] >
Cc: H. Peter Anvin <[email protected] >
Cc: Mahesh Kumar P <[email protected] >
Cc: Thomas Gleixner <[email protected] >
Cc: [email protected]
Link: http://lkml.kernel.org/r/1430939754-6900-2-git-send-email-srinivas.pandruvada@linux.intel.com
Signed-off-by: Ingo Molnar <[email protected] >
2015-05-07 11:18:27 +02:00