LineageOS 16.0 (v4.4.153) kernel with Halium 9 patches
Find a file
Narendra Muppalla 3a7cd576f7 Merge remote-tracking branch 'quic/dev/msm-4.4-drm_kms' into msm-4.4-01-29-tip
* quic/dev/msm-4.4-drm_kms:
  drm/msm/sde: allow mmus to be optional during kms init
  drm/msm/sde: check for null catalog in sde hw destroy
  drm/msm: treat data bus dtsi property as optional
  drm/msm/sde: add crtc clock & bandwidth capabilities
  drm/msm/sde: parse csc type dtsi entry to select valid csc
  drm/msm: fix copyright marking in "msm" drm driver
  drm/msm: remove smmu coherent hardware table walk attrib
  drm/msm/sde: add DMA2 and DMA3 pipe staging support
  drm/msm/sde: add event for underruns
  drm/msm/sde: fix check for frame event overflow
  ARM: dts: msm: add ping pong split definitions for msm8996
  ARM: dts: msm: add sde max bus bandwidth setting for msm8996
  drm/msm/sde: add dynamic clock and bandwidth commit support
  ARM: dts: msm: add sde bus scale settings for msm8996
  drm/msm/sde: add bus bandwidth control for crtc
  drm/msm/sde: add frame done callback event to crtc
  drm/msm/sde: bypass crtc atomic begin/flush if disabled
  drm/msm/sde: add debugfs entry for vbif
  drm/msm/sde: add debugfs entry for danger and safe status
  drm/msm/sde: enable ping pong split support
  ARM: dts: msm: enable imgswap on sharp nt35597 dual panel
  drm/msm/sde: remove catalog parsing limits
  drm/msm/sde: update pixel extension uapi
  drm/msm/sde: enable master physical encoder last
  drm/msm/sde: reset ctl mixer config at end of use case
  drm/msm: Support virtualization of color processing properties
  drm/msm/sde: Move DSPP/SSPP color process hw programming to common location
  drm/msm/sde: Add support for Memory Color in plane
  drm/msm/sde: Add PA global adjustment properties to plane
  drm/msm: implement smmu detach and guard freeing of client dev
  drm/msm/sde: reset kickoff count atomically before irq enable
  ARM: dts: msm: default sde clock rate to max for msm8996
  drm/msm/sde: base scaler phase on decimated dimensions
  drm/msm/sde: move sde hw init to hw_init callback
  drm/msm/sde: check for missed irqs in command encoder
  drm/msm: support probe deferral in msm_drv
  drm/msm/sde: fix iounmap usage and init callflow
  drm/msm/sde: fixup sde_kms shutdown sequence and naming
  drm/msm/sde: fix cmd mode vblank irq control
  drm/msm/sde: apply correct zpos range for sde clients
  drm: Increase max number of DRM object properties
  drm/msm/sde: add debug dump and panic facility
  drm/msm/sde: match xlog features in evtlog
  drm/msm/sde: add debugfs support for misr data
  drm/msm/sde: Add device tree subnode parsing capability
  drm/msm: create separate commit thread for each display
  drm/msm/sde: Add backlight class support for sde drm driver
  drm/msm/sde: add common sde debug folder
  drm/msm/sde: route evtlog to sde trace log
  drm/msm/sde: add systrace compatible trace macro
  drm/msm/sde: separate plane/encoder/crtc functions into headers
  drm/msm/sde: add default 10 bit csc matrix to source pipe
  drm/msm/sde: add 10 bit csc for sde
  drm/msm/sde: add qseedv3.x support for sde
  drm/msm/sde: add 10-bit formats support
  drm/msm/sde: print error only if catalog property is mandatory
  drm/msm/sde: remove redundant vblank request in crtc
  drm/msm/sde: add vblank reference counting to crtc
  drm/msm/sde: handle pingpong blocks from virtual encoder
  drm/msm/sde: add support for BGRX and XBGR formats in plane
  drm/msm/sde: add multi-client and ref counting for core irq
  drm/msm/sde: cache connector list in sde crtc
  drm/msm/sde: remove display manager
  drm/msm/sde: fix video encoder access in phy encoder
  drm/msm/sde: add debugfs node for vsync and underrun status
  drm/msm/sde: update vblank and underrun isr handling
  drm/msm/sde: fix color component order
  drm/msm/dsi-staging: fix issues related to deferral
  drm/msm/sde: remove static allocation of mdp_top hw block
  drm/msm: initialize local varibles in sde power module
  drm/msm/sde: dual pipe use case support
  drm/msm/sde: update crtc status debugfs node
  ARM: dts: msm: add vbif OT and plane QoS/LUT for msm8996
  drm/msm/sde: add clock control parsing to hardware catalog
  drm/msm/sde: correct read out of bit offset array
  drm/msm/sde: add plane QoS parsing to hardware catalog
  drm/msm/sde: add vbif parsing to hardware catalog
  drm/msm/sde: add writeback id parsing to hardware catalog
  drm/msm/sde: update mixer op mode config bit fields correctly
  drm/msm/sde: add sde error prefix for all errors
  drm/msm: add capability property for crtc
  drm/msm/sde: update ubwc and src split properties for sde
  drm/msm/sde: correct to use sync vblank request for commit
  drm/msm: execute pending vblank disable upon last close
  drm/msm/sde: update crtc to use sde debug macros
  drm/msm/sde: remove unused functions in sde crtc
  drm/msm/sde: move sde_crtc declarations into sde_crtc header
  drm/msm/sde: move sde_crtc away from legacy drm vblank apis
  drm/msm: add error logging in msm_atomic
  drm/msm/sde: move vbif functions to their own file
  defconfig: enable backlight class driver for msm defconfig.
  drm/msm/sde: additional event logging for fences
  drm/msm/sde: assign relative mixer stages based on zpos
  drm/msm/sde: remove redundant vblank request and notification
  drm/msm/sde: fixup header markings
  drm/msm: fix power handle APIs when clk are not present
  drm/msm/sde: don't convert ktime to ns when waiting for fences
  DOWNSTREAM: drm/msm/sde: enable sde client customizations
  drm/msm: rename kernel module to msm_drm
  drm/msm/sde: allow primary planes to be used with all crtcs
  drm/msm/sde: limit primary plane count to number of crtcs
  drm/msm: teardown all modes in lastclose handler
  drm/msm/sde: update proper error message for rm failure
  drm/sde: move hardware catalog to dtsi parser
  drm/msm/sde: enable proper support for split flush
  drm/msm/sde: add mode config mutex lock for connector search
  drm/msm/sde: bypass wait for commit done if crtc is not enabled
  drm/msm/sde: add proper mode config lock to plane QoS check
  drm/msm/sde: correct crtc to use new plane state for update
  drm/msm/sde: remove error message from optional settings
  drm/msm/sde: remove unused traffic shaper from hw drivers
  drm/msm: property read should return success for virtual crtc
  drm/msm/sde: avoid programming same plane source address
  drm/msm/sde: update plane dmesg logging to use sde macros
  drm/msm/sde: update scaler property definition and type
  drm/msm/sde: break out plane decimation to separate properties
  drm/msm/sde: update register writes to use SDE logging macros
  drm/msm/sde: update csc property definition and type
  drm/msm: Modularize property install function of color processing
  drm/msm: Add support for PA vLut feature
  drm/msm: Expose Assertive display capability
  drm/msm: Suspend/Resume support for color processing features
  drm/msm: Add support for PCC in Crtc
  drm/msm/sde: update catalog for post processing
  drm/msm/sde: don't duplicate input fence pointer with state
  drm/msm/sde: fix color component order for compressed formats
  drm/msm/sde: add writeback ROI support for msmskunk
  drm/msm/sde: add const alpha support for msmskunk
  ARM: dts: msm: add max clock property for sde to msm8996
  drm/msm/sde: add max clock property for sde
  drm/msm: add support for custom event notification
  drm/msm: Initial version post processing header
  drm/msm: remove msm clock driver header files
  drm/msm/dsi-staging: keep backlight api under LED config
  drm/msm/sde: enable sde clocks during debugfs register read
  drm/msm/sde: update pipes on dirty plane properties
  drm/msm/sde: fix compilation issues in sde driver
  drm/msm/sde: update encoder dmesg logging to use sde macros
  drm/msm/sde: remove unused header dependency
  drm/msm/sde: use const alpha for wb if pipe alpha not supported
  drm/msm/sde: remove unused sde functions
  drm/msm/sde: add mode change request to cdm resource update
  drm/msm/sde: cleanup alpha calc and plane stage in crtc
  ARM: dts: msm: send panel off command during pre off state
  drm/msm/sde: remove unused writeback function stubs
  drm/msm/sde: remove unused vblank control for writeback
  drm/msm/sde: remove unused encoder function
  drm/msm/sde: always clear topology name when removing rsvp
  drm/msm/sde: reorganize top level interrupt handling code
  drm/msm/sde: add OT support for source pipe and writeback
  drm/msm/sde: add danger/safe/QoS support for source pipe
  drm/msm/sde: improve debug log for blend setup
  DOWNSTREAM: drm/msm/sde: optionally delay output fence signal
  drm/msm/sde: determine output fence timing on create
  drm/sde: use power handle api to vote for core clock
  ARM: dts: msm: add clk rate and gdsc supply entry for msm8996
  drm/msm: add power handle driver for msm
  drm/msm/sde: add helper macro for performing ktime comparisons
  drm/msm/sde: assign ctls based on capability requirements
  drm/msm/sde: clean up crtc ctl tracking
  drm/msm/sde: improve resource manager hw block lookup time
  drm/msm: internal property updates should update cached value
  drm/msm/sde: fix plane stage setup in sde crtc
  ARM: dts: msm: add nt35597 panel definition for msm8996
  drm/sde: remove warn on from sde encoder
  drm/sde: allow base layer plane stagging
  drm/msm: update plane, crtc and connector caps blob prop
  drm/msm/sde: add api for determining current interface mode
  drm/msm/sde: fix uninitialized return code in rm
  drm/msm/sde: fix atomic check for crtc driver
  drm/msm: validate framebuffer before accessing it
  drm/msm: fix atomic mode check for sde plane
  drm/msm: use drm helper API for atomic check
  ARM: dts: msm: remove hdmi connector for msm8996
  drm/msm/sde: enable dynamic hardware resource assignment
  drm/msm/sde: dynamic hardware resource manager
  drm/msm/sde: move crtc towards multi-encoder support
  drm/msm/sde: list block interconnects as bitmasks
  drm/msm/sde: add topology management properties
  drivers/gpu/drm: disable drm fbdev emulation
  drm/msm/sde: use common structure for phys encoder init
  drm/msm/sde: list hardwired mixer connections
  drm/msm: enable/disable sde during driver open and close
  drm/dsi: turn off the wled backlight with panel power off
  drm/dsi: fix dsi control power supply turn off sequence
  drm/msm/sde: add support for dirty properties
  drm/msm: allow flags to be set in property helpers
  drm/msm/sde: trigger plane modeset on buffer pitch change
  ARM: dts: msm: add SDE writeback display for msm8996
  drm/msm/sde: enable writeback enumeration in display manager
  drm/msm/sde: add virtual writeback device and connector
  drm/msm/sde: add resource management for writeback and cdm
  drm/msm/sde: add hardware driver support for chroma down module
  drm/msm/sde: add hardware driver support for writeback interface
  drm/msm/sde: add smmu domain selection logic to connector
  drm/msm/sde: add function to return raw interrupt status
  ARM: dts: msm: add SDE smmu node to msm8996
  drm/msm/sde: Bypass unused interface during smmu init
  drm/msm: add non-realtime and secure smmu domains
  drm/msm: cache active displays within display manager
  drm/msm/sde: add connector api for querying display info
  drm/msm/sde: use msm_display_info for display information
  drm/msm/sde: explicitly enumerate supported plane formats
  drm/msm/sde: add retire fence support
  drm/msm/dsi-staging: use sde connector for dsi
  drm/msm/sde: add generic support for drm connectors
  drm/msm/sde: add utility functions for kms info
  drm/msm/sde: enable output_fence property
  drm/msm/sde: add output fence utility functions
  drm/msm/sde: support more formats including compression
  drm/msm: subdriver hook to validate modified formats
  drm/msm/sde: add drm fourcc modifier for qcom compressed format
  drm/msm/sde: command mode panel encoder support
  drm/msm/dsi-staging: turn gpio off if panel reset fails
  drm/msm/sde: single kickoff to flush hardware
  drm/msm/dsi-staging: add dsi cmd/vid mode to display info
  drm/msm: add subdriver callback for single kickoff
  drm/msm/sde: fix reading of the pingpong counters
  drm/dsi-staging: update configurations for display related GPIOs
  drm/msm/sde: add register name to logging
  drm/msm/sde: add logmask area for top registers
  drm/msm/sde: define sde specific macros for dmesg logging
  drm/msm/sde: enable explicit input fences
  drm/msm/sde: add support for crtc properties
  drm/dsi-staging: reset drm/dsi data before reconfiguring
  ARM: dts: msm: fix compilation errors for msm8996
  ARM: dts: msm: add configurations for 1080p panel on msm8996
  defconfig: enabled drm/kms driver in msm defconfig
  drm/msm/dsi: remove unused tag from dsi API
  drm/kms: remove compilation of hdcp_hdmi
  ARM: dts: msm: update settings for dsi panels
  drm/msm: disable mdp4 driver in drm kms
  drm/msm: switch to qti KGSL driver
  ARM: dts: msm: add configurations for 720p panel
  ARM: dts: msm: add device tree for sde dsi device on msm8996
  drm/dsi-staging: add support to get regulator data from device tree
  drm/msm/sde: use sde plane csc cfg struct for user settings
  drm/msm: add display manager to makefile
  drm/msm: rename MSM drm platform driver's name into msm_drm
  drm/msm/sde: avoid dereferencing scaler blob if null state
  drm/msm: handle null blob property array
  drm/msm: enable both dsi drivers together
  drm: mipi: change header format to work with msm hardware
  drm/dsi-staging: remove interrupt handling
  drm/msm: move display manager out from dsi-staging
  drm/msm/dsi-staging: fix dynamic fps and seamless updates
  drm/msm/dsi-staging: support dynamic frame-rate and validation
  drm/msm: defer drm driver probe if backlight isn't ready
  drm/msm: common display interface for mdp driver
  drm/msm/sde: init private kms pointer before modeset init
  drm/msm/dsi-staging: add dsi panel driver
  drm/msm/dsi-staging: add debugfs support for dsi driver
  drm/msm/dsi-staging: add support for command mode panels
  drm/msm/dsi-staging: dsi display tests
  drm/msm/dsi-staging: add dsi drm interface
  drm/msm/dsi-staging: add dsi display driver
  drm/msm/sde: replace plane property/state handling with msm_prop
  drm/msm: add generic property/state handling
  drm/msm: use sde specific color format throughout
  drm/msm: move dynamic fps and seamless updates
  drm/msm: update wrapper macros for event logging
  drm/msm/sde: init spinlock for lm_lock
  drm/msm/sde: clean up debug output
  drm/msm: add event log for profiling msm drm driver events
  drm/msm/sde: pageflip fixes
  drm/msm/sde: remove crtc full modeset based on plane changes
  drm/msm/sde: add z-order and plane id to prints
  drm/msm/sde: add wrappers for release fence API
  drm/msm/sde: update max up/down scale
  drm/msm/sde: add planes color fill/fence timeout
  drm/msm/sde: updates to planes atomic_check
  drm/msm/sde: add cache for released plane states
  drm/msm/sde: input fence support for planes
  drm/msm/sde: add debugfs for crtc
  drm/msm/sde: don't overflow mixer cfg fields
  drm/msm: enable seamless dynamic framerates
  drm/msm/sde: remove plane decimation properties
  drm/msm/sde: change csc matrix coeff in h/w driver to s15.16
  drm/msm/sde: enable blending across all planes
  drm/msm/sde: remove 'mdp' from sde file names
  defconfig: msm: enable SYNC Driver
  drm/msm/sde: add valid rotator writeback flag
  drm/msm/sde: add properties for planes
  msm: sde: sde plane properties user definitions
  drm/msm/sde: consolidate SDE error logging on DRM standard calls
  drm/msm/sde: set encoder role at display probe time
  drm/msm/sde: add preliminary debugfs support
  drm/msm/sde: add blending support for more use cases
  drm/msm/sde: enable NV12 modetest for planes
  drm/msm/sde: fixup mdp top split pipe control
  drm/msm/sde: add support for vblank callback
  drm/msm/dsi-staging: add dsi phy driver
  drm/msm/dsi-staging: add clock and power utilities
  drm/msm/dsi-staging: add dsi controller driver
  drm/msm/sde: add resource manager to enable dual dsi
  drm/msm/sde: adding implementation for mdp_top in hw driver
  drm/msm/sde: sde hw interrupt handling
  drm/msm/sde: simplify encoder display probe logic
  drm/msm/sde: move sde encoder to new display interface
  drm/msm/sde: programmable pre-fetch support for video encoders
  drm/msm/sde: sde encoder virtualization
  drm/msm/sde: add controller instance to INTF block in catalog
  drm/msm/sde: add basic sde object enumeration
  drm/msm: add smmu handler
  drm/msm/sde: add driver for sde support
  drm/msm/dsi-staging: add catalog for dsi driver
  drm/msm/dsi-staging: add hardware driver for dsi controller
  drm/msm/dsi-staging: add hardware driver for dsi phy
  drm/msm/dsi-staging: add dsi definitions for new dsi driver
  drm/msm: remove clock framework dependency

Change-Id: I20ec5183e730d1033f824f3b33f52d5b1578f740
Signed-off-by: Narendra Muppalla <NarendraM@codeaurora.org>
2017-01-30 11:53:27 -08:00
android/configs
arch Merge remote-tracking branch 'quic/dev/msm-4.4-drm_kms' into msm-4.4-01-29-tip 2017-01-30 11:53:27 -08:00
block
certs
crypto
Documentation Merge remote-tracking branch 'quic/dev/msm-4.4-drm_kms' into msm-4.4-01-29-tip 2017-01-30 11:53:27 -08:00
drivers Merge remote-tracking branch 'quic/dev/msm-4.4-drm_kms' into msm-4.4-01-29-tip 2017-01-30 11:53:27 -08:00
firmware
fs fs: fuse: Add replacment for CMA pages into the LRU cache 2017-01-18 16:20:27 -08:00
include Merge remote-tracking branch 'quic/dev/msm-4.4-drm_kms' into msm-4.4-01-29-tip 2017-01-30 11:53:27 -08:00
init
ipc
kernel genirq: Add IRQ_AFFINITY_MANAGED flag 2017-01-23 16:01:01 -08:00
lib
mm
net Merge "cfg80211: Add support for randomizing TA of Public Action frames" 2017-01-28 00:46:58 -08:00
samples
scripts
security Merge "ufs: fixed bugs in ice related to key syncronization" 2017-01-22 01:16:27 -08:00
sound Merge "ASoC: msm8998: Fix misordering of Tavil codec SLIMBUS TX channels" 2017-01-28 08:41:52 -08:00
tools
usr
virt
.get_maintainer.ignore
.gitignore
.mailmap
AndroidKernel.mk
backported-features
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
README
REPORTING-BUGS

        Linux kernel release 4.x <http://kernel.org/>

These are the release notes for Linux version 4.  Read them carefully,
as they tell you what this is all about, explain how to install the
kernel, and what to do if something goes wrong. 

WHAT IS LINUX?

  Linux is a clone of the operating system Unix, written from scratch by
  Linus Torvalds with assistance from a loosely-knit team of hackers across
  the Net. It aims towards POSIX and Single UNIX Specification compliance.

  It has all the features you would expect in a modern fully-fledged Unix,
  including true multitasking, virtual memory, shared libraries, demand
  loading, shared copy-on-write executables, proper memory management,
  and multistack networking including IPv4 and IPv6.

  It is distributed under the GNU General Public License - see the
  accompanying COPYING file for more details. 

ON WHAT HARDWARE DOES IT RUN?

  Although originally developed first for 32-bit x86-based PCs (386 or higher),
  today Linux also runs on (at least) the Compaq Alpha AXP, Sun SPARC and
  UltraSPARC, Motorola 68000, PowerPC, PowerPC64, ARM, Hitachi SuperH, Cell,
  IBM S/390, MIPS, HP PA-RISC, Intel IA-64, DEC VAX, AMD x86-64, AXIS CRIS,
  Xtensa, Tilera TILE, AVR32, ARC and Renesas M32R architectures.

  Linux is easily portable to most general-purpose 32- or 64-bit architectures
  as long as they have a paged memory management unit (PMMU) and a port of the
  GNU C compiler (gcc) (part of The GNU Compiler Collection, GCC). Linux has
  also been ported to a number of architectures without a PMMU, although
  functionality is then obviously somewhat limited.
  Linux has also been ported to itself. You can now run the kernel as a
  userspace application - this is called UserMode Linux (UML).

DOCUMENTATION:

 - There is a lot of documentation available both in electronic form on
   the Internet and in books, both Linux-specific and pertaining to
   general UNIX questions.  I'd recommend looking into the documentation
   subdirectories on any Linux FTP site for the LDP (Linux Documentation
   Project) books.  This README is not meant to be documentation on the
   system: there are much better sources available.

 - There are various README files in the Documentation/ subdirectory:
   these typically contain kernel-specific installation notes for some 
   drivers for example. See Documentation/00-INDEX for a list of what
   is contained in each file.  Please read the Changes file, as it
   contains information about the problems, which may result by upgrading
   your kernel.

 - The Documentation/DocBook/ subdirectory contains several guides for
   kernel developers and users.  These guides can be rendered in a
   number of formats:  PostScript (.ps), PDF, HTML, & man-pages, among others.
   After installation, "make psdocs", "make pdfdocs", "make htmldocs",
   or "make mandocs" will render the documentation in the requested format.

INSTALLING the kernel source:

 - If you install the full sources, put the kernel tarball in a
   directory where you have permissions (eg. your home directory) and
   unpack it:

     xz -cd linux-4.X.tar.xz | tar xvf -

   Replace "X" with the version number of the latest kernel.

   Do NOT use the /usr/src/linux area! This area has a (usually
   incomplete) set of kernel headers that are used by the library header
   files.  They should match the library, and not get messed up by
   whatever the kernel-du-jour happens to be.

 - You can also upgrade between 4.x releases by patching.  Patches are
   distributed in the xz format.  To install by patching, get all the
   newer patch files, enter the top level directory of the kernel source
   (linux-4.X) and execute:

     xz -cd ../patch-4.x.xz | patch -p1

   Replace "x" for all versions bigger than the version "X" of your current
   source tree, _in_order_, and you should be ok.  You may want to remove
   the backup files (some-file-name~ or some-file-name.orig), and make sure
   that there are no failed patches (some-file-name# or some-file-name.rej).
   If there are, either you or I have made a mistake.

   Unlike patches for the 4.x kernels, patches for the 4.x.y kernels
   (also known as the -stable kernels) are not incremental but instead apply
   directly to the base 4.x kernel.  For example, if your base kernel is 4.0
   and you want to apply the 4.0.3 patch, you must not first apply the 4.0.1
   and 4.0.2 patches. Similarly, if you are running kernel version 4.0.2 and
   want to jump to 4.0.3, you must first reverse the 4.0.2 patch (that is,
   patch -R) _before_ applying the 4.0.3 patch. You can read more on this in
   Documentation/applying-patches.txt

   Alternatively, the script patch-kernel can be used to automate this
   process.  It determines the current kernel version and applies any
   patches found.

     linux/scripts/patch-kernel linux

   The first argument in the command above is the location of the
   kernel source.  Patches are applied from the current directory, but
   an alternative directory can be specified as the second argument.

 - Make sure you have no stale .o files and dependencies lying around:

     cd linux
     make mrproper

   You should now have the sources correctly installed.

SOFTWARE REQUIREMENTS

   Compiling and running the 4.x kernels requires up-to-date
   versions of various software packages.  Consult
   Documentation/Changes for the minimum version numbers required
   and how to get updates for these packages.  Beware that using
   excessively old versions of these packages can cause indirect
   errors that are very difficult to track down, so don't assume that
   you can just update packages when obvious problems arise during
   build or operation.

BUILD directory for the kernel:

   When compiling the kernel, all output files will per default be
   stored together with the kernel source code.
   Using the option "make O=output/dir" allow you to specify an alternate
   place for the output files (including .config).
   Example:

     kernel source code: /usr/src/linux-4.X
     build directory:    /home/name/build/kernel

   To configure and build the kernel, use:

     cd /usr/src/linux-4.X
     make O=/home/name/build/kernel menuconfig
     make O=/home/name/build/kernel
     sudo make O=/home/name/build/kernel modules_install install

   Please note: If the 'O=output/dir' option is used, then it must be
   used for all invocations of make.

CONFIGURING the kernel:

   Do not skip this step even if you are only upgrading one minor
   version.  New configuration options are added in each release, and
   odd problems will turn up if the configuration files are not set up
   as expected.  If you want to carry your existing configuration to a
   new version with minimal work, use "make oldconfig", which will
   only ask you for the answers to new questions.

 - Alternative configuration commands are:

     "make config"      Plain text interface.

     "make menuconfig"  Text based color menus, radiolists & dialogs.

     "make nconfig"     Enhanced text based color menus.

     "make xconfig"     X windows (Qt) based configuration tool.

     "make gconfig"     X windows (GTK+) based configuration tool.

     "make oldconfig"   Default all questions based on the contents of
                        your existing ./.config file and asking about
                        new config symbols.

     "make silentoldconfig"
                        Like above, but avoids cluttering the screen
                        with questions already answered.
                        Additionally updates the dependencies.

     "make olddefconfig"
                        Like above, but sets new symbols to their default
                        values without prompting.

     "make defconfig"   Create a ./.config file by using the default
                        symbol values from either arch/$ARCH/defconfig
                        or arch/$ARCH/configs/${PLATFORM}_defconfig,
                        depending on the architecture.

     "make ${PLATFORM}_defconfig"
                        Create a ./.config file by using the default
                        symbol values from
                        arch/$ARCH/configs/${PLATFORM}_defconfig.
                        Use "make help" to get a list of all available
                        platforms of your architecture.

     "make allyesconfig"
                        Create a ./.config file by setting symbol
                        values to 'y' as much as possible.

     "make allmodconfig"
                        Create a ./.config file by setting symbol
                        values to 'm' as much as possible.

     "make allnoconfig" Create a ./.config file by setting symbol
                        values to 'n' as much as possible.

     "make randconfig"  Create a ./.config file by setting symbol
                        values to random values.

     "make localmodconfig" Create a config based on current config and
                           loaded modules (lsmod). Disables any module
                           option that is not needed for the loaded modules.

                           To create a localmodconfig for another machine,
                           store the lsmod of that machine into a file
                           and pass it in as a LSMOD parameter.

                   target$ lsmod > /tmp/mylsmod
                   target$ scp /tmp/mylsmod host:/tmp

                   host$ make LSMOD=/tmp/mylsmod localmodconfig

                           The above also works when cross compiling.

     "make localyesconfig" Similar to localmodconfig, except it will convert
                           all module options to built in (=y) options.

   You can find more information on using the Linux kernel config tools
   in Documentation/kbuild/kconfig.txt.

 - NOTES on "make config":

    - Having unnecessary drivers will make the kernel bigger, and can
      under some circumstances lead to problems: probing for a
      nonexistent controller card may confuse your other controllers

    - Compiling the kernel with "Processor type" set higher than 386
      will result in a kernel that does NOT work on a 386.  The
      kernel will detect this on bootup, and give up.

    - A kernel with math-emulation compiled in will still use the
      coprocessor if one is present: the math emulation will just
      never get used in that case.  The kernel will be slightly larger,
      but will work on different machines regardless of whether they
      have a math coprocessor or not.

    - The "kernel hacking" configuration details usually result in a
      bigger or slower kernel (or both), and can even make the kernel
      less stable by configuring some routines to actively try to
      break bad code to find kernel problems (kmalloc()).  Thus you
      should probably answer 'n' to the questions for "development",
      "experimental", or "debugging" features.

COMPILING the kernel:

 - Make sure you have at least gcc 3.2 available.
   For more information, refer to Documentation/Changes.

   Please note that you can still run a.out user programs with this kernel.

 - Do a "make" to create a compressed kernel image. It is also
   possible to do "make install" if you have lilo installed to suit the
   kernel makefiles, but you may want to check your particular lilo setup first.

   To do the actual install, you have to be root, but none of the normal
   build should require that. Don't take the name of root in vain.

 - If you configured any of the parts of the kernel as `modules', you
   will also have to do "make modules_install".

 - Verbose kernel compile/build output:

   Normally, the kernel build system runs in a fairly quiet mode (but not
   totally silent).  However, sometimes you or other kernel developers need
   to see compile, link, or other commands exactly as they are executed.
   For this, use "verbose" build mode.  This is done by inserting
   "V=1" in the "make" command.  E.g.:

     make V=1 all

   To have the build system also tell the reason for the rebuild of each
   target, use "V=2".  The default is "V=0".

 - Keep a backup kernel handy in case something goes wrong.  This is 
   especially true for the development releases, since each new release
   contains new code which has not been debugged.  Make sure you keep a
   backup of the modules corresponding to that kernel, as well.  If you
   are installing a new kernel with the same version number as your
   working kernel, make a backup of your modules directory before you
   do a "make modules_install".

   Alternatively, before compiling, use the kernel config option
   "LOCALVERSION" to append a unique suffix to the regular kernel version.
   LOCALVERSION can be set in the "General Setup" menu.

 - In order to boot your new kernel, you'll need to copy the kernel
   image (e.g. .../linux/arch/i386/boot/bzImage after compilation)
   to the place where your regular bootable kernel is found. 

 - Booting a kernel directly from a floppy without the assistance of a
   bootloader such as LILO, is no longer supported.

   If you boot Linux from the hard drive, chances are you use LILO, which
   uses the kernel image as specified in the file /etc/lilo.conf.  The
   kernel image file is usually /vmlinuz, /boot/vmlinuz, /bzImage or
   /boot/bzImage.  To use the new kernel, save a copy of the old image
   and copy the new image over the old one.  Then, you MUST RERUN LILO
   to update the loading map!! If you don't, you won't be able to boot
   the new kernel image.

   Reinstalling LILO is usually a matter of running /sbin/lilo. 
   You may wish to edit /etc/lilo.conf to specify an entry for your
   old kernel image (say, /vmlinux.old) in case the new one does not
   work.  See the LILO docs for more information. 

   After reinstalling LILO, you should be all set.  Shutdown the system,
   reboot, and enjoy!

   If you ever need to change the default root device, video mode,
   ramdisk size, etc.  in the kernel image, use the 'rdev' program (or
   alternatively the LILO boot options when appropriate).  No need to
   recompile the kernel to change these parameters. 

 - Reboot with the new kernel and enjoy. 

IF SOMETHING GOES WRONG:

 - If you have problems that seem to be due to kernel bugs, please check
   the file MAINTAINERS to see if there is a particular person associated
   with the part of the kernel that you are having trouble with. If there
   isn't anyone listed there, then the second best thing is to mail
   them to me (torvalds@linux-foundation.org), and possibly to any other
   relevant mailing-list or to the newsgroup.

 - In all bug-reports, *please* tell what kernel you are talking about,
   how to duplicate the problem, and what your setup is (use your common
   sense).  If the problem is new, tell me so, and if the problem is
   old, please try to tell me when you first noticed it.

 - If the bug results in a message like

     unable to handle kernel paging request at address C0000010
     Oops: 0002
     EIP:   0010:XXXXXXXX
     eax: xxxxxxxx   ebx: xxxxxxxx   ecx: xxxxxxxx   edx: xxxxxxxx
     esi: xxxxxxxx   edi: xxxxxxxx   ebp: xxxxxxxx
     ds: xxxx  es: xxxx  fs: xxxx  gs: xxxx
     Pid: xx, process nr: xx
     xx xx xx xx xx xx xx xx xx xx

   or similar kernel debugging information on your screen or in your
   system log, please duplicate it *exactly*.  The dump may look
   incomprehensible to you, but it does contain information that may
   help debugging the problem.  The text above the dump is also
   important: it tells something about why the kernel dumped code (in
   the above example, it's due to a bad kernel pointer). More information
   on making sense of the dump is in Documentation/oops-tracing.txt

 - If you compiled the kernel with CONFIG_KALLSYMS you can send the dump
   as is, otherwise you will have to use the "ksymoops" program to make
   sense of the dump (but compiling with CONFIG_KALLSYMS is usually preferred).
   This utility can be downloaded from
   ftp://ftp.<country>.kernel.org/pub/linux/utils/kernel/ksymoops/ .
   Alternatively, you can do the dump lookup by hand:

 - In debugging dumps like the above, it helps enormously if you can
   look up what the EIP value means.  The hex value as such doesn't help
   me or anybody else very much: it will depend on your particular
   kernel setup.  What you should do is take the hex value from the EIP
   line (ignore the "0010:"), and look it up in the kernel namelist to
   see which kernel function contains the offending address.

   To find out the kernel function name, you'll need to find the system
   binary associated with the kernel that exhibited the symptom.  This is
   the file 'linux/vmlinux'.  To extract the namelist and match it against
   the EIP from the kernel crash, do:

     nm vmlinux | sort | less

   This will give you a list of kernel addresses sorted in ascending
   order, from which it is simple to find the function that contains the
   offending address.  Note that the address given by the kernel
   debugging messages will not necessarily match exactly with the
   function addresses (in fact, that is very unlikely), so you can't
   just 'grep' the list: the list will, however, give you the starting
   point of each kernel function, so by looking for the function that
   has a starting address lower than the one you are searching for but
   is followed by a function with a higher address you will find the one
   you want.  In fact, it may be a good idea to include a bit of
   "context" in your problem report, giving a few lines around the
   interesting one. 

   If you for some reason cannot do the above (you have a pre-compiled
   kernel image or similar), telling me as much about your setup as
   possible will help.  Please read the REPORTING-BUGS document for details.

 - Alternatively, you can use gdb on a running kernel. (read-only; i.e. you
   cannot change values or set break points.) To do this, first compile the
   kernel with -g; edit arch/i386/Makefile appropriately, then do a "make
   clean". You'll also need to enable CONFIG_PROC_FS (via "make config").

   After you've rebooted with the new kernel, do "gdb vmlinux /proc/kcore".
   You can now use all the usual gdb commands. The command to look up the
   point where your system crashed is "l *0xXXXXXXXX". (Replace the XXXes
   with the EIP value.)

   gdb'ing a non-running kernel currently fails because gdb (wrongly)
   disregards the starting offset for which the kernel is compiled.