aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-11-14KBuild: Allow scripts/* to be cross compiledlinaro-ubuntu-sauce-3.7John Rigby
Cross compiling the binaries in scripts/* is not possible because various makefiles assume that $(obj)/whatever is executable on the build host. This patch introduces a new variable called KBUILD_SCRIPTROOT that points to script/binaries to use while cross compiling. Usage: Build scripts for the build host: make O=path/to/buildhost/buildscripts \ silentoldconfig prepare scripts Then cross build script for target: make O=path/to/target/buildscripts \ HOSTCC=$CROSS_COMPILE \ KBUILD_SCRIPTROOT=path/to/buildhost/buildscripts silentoldconfig prepare scripts This patch does not use KBUILD_SCRIPTROOT for all script invocations it only redefines the following if KBUILD_SCRIPTROOT is defined. scripts/Makefile.build scripts/basic/fixdep --> $(KBUILD_SCRIPTROOT)/scripts/basic/fixdep scripts/kconfig/Makefile $(obj)/conf --> $(KBUILD_SCRIPTROOT)/scripts/kconfig/conf scripts/mod/Makefile $(obj)mk_elfconfig --> $(KBUILD_SCRIPTROOT)/scripts/mod/mk_elfconfig Signed-off-by: John Rigby <john.rigby@linaro.org>
2012-11-14UBUNTU: SAUCE: MODSIGN: Emit error for incorrectly signed moduleTim Gardner
Emit an error when module.sig_enforce==true and a module is incorrectly signed. It is not always obvious why a module failed to load. This makes it explicit if it is a signing error. Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
2012-11-14UBUNTU: SAUCE: efivarfs: Implement exclusive access for {get, set}_variableJeremy Kerr
BugLink: http://bugs.launchpad.net/bugs/1063061 Currently, efivarfs does not enforce exclusion over the get_variable and set_variable operations. Section 7.1 of UEFI requires us to only allow a single processor to enter {get,set}_variable services at once. This change acquires the efivars->lock over calls to these operations from the efivarfs paths. Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com> Signed-off-by: Matt Fleming <matt.fleming@intel.com> Signed-off-by: Andy Whitcroft <apw@canonical.com> Acked-by: Colin King <colin.king@canonical.com> Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
2012-11-14UBUNTU: SAUCE: efivarfs: efivarfs_fill_super() ensure we clean up correctly ↵Andy Whitcroft
on error BugLink: http://bugs.launchpad.net/bugs/1063061 Ensure we free both the name and inode on error when building the individual variables. Acked-by: Matthew Garrett <mjg@redhat.com> Signed-off-by: Andy Whitcroft <apw@canonical.com> Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
2012-11-14UBUNTU: SAUCE: efivarfs: efivarfs_fill_super() ensure we free our temporary nameAndy Whitcroft
BugLink: http://bugs.launchpad.net/bugs/1063061 d_alloc_name() copies the passed name to new storage, once complete we no longer need our name. Acked-by: Matthew Garrett <mjg@redhat.com> Signed-off-by: Andy Whitcroft <apw@canonical.com> Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
2012-11-14UBUNTU: SAUCE: efivarfs: efivarfs_fill_super() fix inode reference countsAndy Whitcroft
BugLink: http://bugs.launchpad.net/bugs/1063061 When d_make_root() fails it will automatically drop the reference on the root inode. We should not be doing so as well. Acked-by: Matthew Garrett <mjg@redhat.com> Signed-off-by: Andy Whitcroft <apw@canonical.com> Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
2012-11-14UBUNTU: SAUCE: efivars: efivarfs_create() ensure we drop our reference on ↵Andy Whitcroft
inode on error BugLink: http://bugs.launchpad.net/bugs/1063061 Acked-by: Matthew Garrett <mjg@redhat.com> Signed-off-by: Andy Whitcroft <apw@canonical.com> Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
2012-11-14UBUNTU: SAUCE: efivarfs: efivarfs_file_read ensure we free data in error pathsAndy Whitcroft
BugLink: http://bugs.launchpad.net/bugs/1063061 Acked-by: Matthew Garrett <mjg@redhat.com> Signed-off-by: Andy Whitcroft <apw@canonical.com> Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
2012-11-14UBUNTU: SAUCE: efivarfs: Add documentation for the EFI variable filesystemMatt Fleming
BugLink: http://bugs.launchpad.net/bugs/1063061 Signed-off-by: Matt Fleming <matt.fleming@intel.com> (cherry-picked from commit 91a8a3052685c61d6061c0b11376edfee9d74f61 git://git.kernel.org/pub/scm/linux/kernel/git/mfleming/efi.git) Signed-off-by: Andy Whitcroft <apw@canonical.com> Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
2012-11-14UBUNTU: SAUCE: efi: add efivars kobject to efi sysfs folderLee, Chun-Yi
BugLink: http://bugs.launchpad.net/bugs/1063061 UEFI variable filesystem need a new mount point, so this patch add efivars kobject to efi_kobj for create a /sys/firmware/efi/efivars folder. Cc: Matthew Garrett <mjg@redhat.com> Cc: H. Peter Anvin <hpa@zytor.com> Signed-off-by: Lee, Chun-Yi <jlee@suse.com> Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com> Signed-off-by: Matt Fleming <matt.fleming@intel.com> (cherry-picked from commit 7b218e8e5d433fc8b531ce911926e06de3e6f1f6 git://git.kernel.org/pub/scm/linux/kernel/git/mfleming/efi.git) Signed-off-by: Andy Whitcroft <apw@canonical.com> Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
2012-11-14UBUNTU: SAUCE: efi: Handle deletions and size changes in efivarfs_write_fileJeremy Kerr
BugLink: http://bugs.launchpad.net/bugs/1063061 A write to an efivarfs file will not always result in a variable of 'count' size after the EFI SetVariable() call. We may have appended to the existing data (ie, with the EFI_VARIABLE_APPEND_WRITE attribute), or even have deleted the variable (with an authenticated variable update, with a zero datasize). This change re-reads the updated variable from firmware, to check for size changes and deletions. In the latter case, we need to drop the dentry. Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com> Signed-off-by: Matt Fleming <matt.fleming@intel.com> (cherry-picked from commit bd5967e2702f3e918c23b3fb1590312699645608 git://git.kernel.org/pub/scm/linux/kernel/git/mfleming/efi.git) Signed-off-by: Andy Whitcroft <apw@canonical.com> Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
2012-11-14UBUNTU: SAUCE: efi: Add support for a UEFI variable filesystemMatthew Garrett
BugLink: http://bugs.launchpad.net/bugs/1063061 The existing EFI variables code only supports variables of up to 1024 bytes. This limitation existed in version 0.99 of the EFI specification, but was removed before any full releases. Since variables can now be larger than a single page, sysfs isn't the best interface for this. So, instead, let's add a filesystem. Variables can be read, written and created, with the first 4 bytes of each variable representing its UEFI attributes. The create() method doesn't actually commit to flash since zero-length variables can't exist per-spec. Updates from Jeremy Kerr <jeremy.kerr@canonical.com>. Signed-off-by: Matthew Garrett <mjg@redhat.com> Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com> Signed-off-by: Matt Fleming <matt.fleming@intel.com> (backported from commit 1ec7ee99e122cf72340598377633414f9b07f37e git://git.kernel.org/pub/scm/linux/kernel/git/mfleming/efi.git) Backported to old mount interfaces. Signed-off-by: Andy Whitcroft <apw@canonical.com> Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
2012-11-14UBUNTU: SAUCE: omap3 clocks .dev_id = NULLPaolo Pisati
BugLink: http://bugs.launchpad.net/bugs/1061599 Signed-off-by: Joe Woodward <jw@terrafix.co.uk> Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com> Acked-by: Andy Whitcroft <andy.whitcroft@canonical.com> Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
2012-11-14UBUNTU: SAUCE: input: fix weird issue of synaptics psmouse sync lost after ↵James M Leddy
resume BugLink: http://bugs.launchpad.net/bugs/717970 From: Eric Miao <eric.miao@canonical.com> This patch has already been sent upstream by Eric. Unfortunately, after a little back and forth between Eric and Dmitry Torokhov, the patch did get included, and there is still an open question to Dmitry. However, this is a known issue on at least 4 systems, and it causes them to lose their mouse device on suspend. So I was hoping we could get it in to quantal. Original email follows: So in summary, the symptom is intermittent key events lost after resume on some machines with synaptics touchpad (seems this is synaptics _only_), and key events loss is due to serio port reconnect after psmouse sync lost. Removing psmouse and inserting it back during the suspend/resume process is able to work around the issue, so the difference between psmouse_connect() and psmouse_reconnect() is the key to the root cause of this problem. After comparing the two different paths, synaptics driver has its own implementation of synaptics_reconnect(), and the missing psmouse_probe() seems significant, the patch below added psmouse_probe() to the reconnect process, and has been verified many times that the issue could not be reliably reproduced. There are two PS/2 commands in psmouse_probe(): 1. PSMOUSE_CMD_GETID 2. PSMOUSE_CMD_RESET_DIS The weird thing is, the PSMOUSE_CMD_GETID seems to be significant, and the PSMOUSE_CMD_RESET_DIS is irrelevant to this issue after trying several times. Now it's rather difficult to form a sane theory. So this patch is really for RFC. Note it does fix a real problem though. http://thread.gmane.org/gmane.linux.kernel.input/25599 Signed-off-by: James M Leddy <james.leddy@canonical.com> Acked-by: Seth Forshee <seth.forshee@canonical.com> Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
2012-11-14Revert "UBUNTU: SAUCE: acpi battery -- move first lookup asynchronous"Tim Gardner
This reverts commit f69453aedeafac6a9d9a8e2878ef1182344f84df. Breaks the boot process. Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
2012-11-14Revert "UBUNTU: [Config] Disable vt6656"Tim Gardner
This reverts commit 42b5cd1ada6b91df1f7452819504820779e02d08. BugLink: http://bugs.launchpad.net/bugs/162671 Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
2012-11-14UBUNTU: SAUCE: fix highbank include pathTim Gardner
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
2012-11-14UBUNTU: SAUCE: export read_current_timer for armelTim Gardner
Fixes FTBS Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
2012-11-14UBUNTU: overlayfs: disable until FTBS is fixedTim Gardner
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
2012-11-14UBUNTU: SAUCE: Allow HID_BATTERY_STRENGTH to be modularTim Gardner
BugLink: http://bugs.launchpad.net/bugs/1003090 Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
2012-11-14UBUNTU: ubuntu: AUFSAndy Whitcroft
Signed-off-by: Andy Whitcroft <apw@canonical.com> Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>
2012-11-14UBUNTU: SAUCE: Add 'used' to the video_cards structure attributesTim Gardner
BugLink: http://bugs.launchpad.net/bugs/1049650 Without the 'used' attribute, some versions of the compiler will optimize the video_cards section to 0. Leave some build debug in debian/rules.d/2-binary-arch.mk to print the video_cards section details. Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
2012-11-14Revert "UBUNTU: SAUCE: Make populate_rootfs asynchronous"Tim Gardner
This reverts commit 56e68a641786719fbc90584b988f75c659e3d15b.
2012-11-14Revert "UBUNTU: SAUCE: async_populate_rootfs: move rootfs init earlier"Tim Gardner
This reverts commit b00d4612b420ddb287ec15ea08d889e446789592.
2012-11-14Revert "UBUNTU: SAUCE: ensure root is ready before running usermodehelpers ↵Tim Gardner
in it" This reverts commit ea52e7ed17f85326b36138a949221caa625c9a5d.
2012-11-14Revert "UBUNTU: SAUCE: async_populate_rootfs: fix build warnings"Tim Gardner
This reverts commit 0a90b6744d02f80da605874534eacaed58195173.
2012-11-14Revert "UBUNTU: SAUCE: input: add a key driver for highbank"Rob Herring
BugLink: http://launchpad.net/bugs/1059432 This reverts commit 89d449c58bc84b6a0696cc79389eb1731e904e6e. Signed-off-by: Ike Panhc <ike.pan@canonical.com> Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
2012-11-14Revert "UBUNTU: SAUCE: force DMA buffers to non-bufferable on highbank"Rob Herring
BugLink: http://launchpad.net/bugs/1059432 This reverts commit d6e18e05087dd49cf9f5ca9d7b05a93814bc30fd. Signed-off-by: Ike Panhc <ike.pan@canonical.com> Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
2012-11-14UBUNTU: SAUCE: ARM: highbank: retry wfi on reset requestRob Herring
BugLink: http://launchpad.net/bugs/1059432 In some cases, an interrupt can occur and prevent cause failure to enter wfi. This causes reset to hang. Retrying the wfi should be enough to prevent reset from hanging. Signed-off-by: Rob Herring <rob.herring@calxeda.com> Signed-off-by: Ike Panhc <ike.pan@canonical.com> Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
2012-11-14UBUNTU: SAUCE: net: calxedaxgmac: rework transmit ring handlingRob Herring
BugLink: http://launchpad.net/bugs/1059432 Only generate tx interrupts on every ring size / 4 descriptors. Move the netif_stop_queue call to the end of the xmit function rather than checking at the beginning. Signed-off-by: Rob Herring <rob.herring@calxeda.com> Signed-off-by: Ike Panhc <ike.pan@canonical.com> Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
2012-11-14UBUNTU: SAUCE: net: calxedaxgmac: drop some unnecessary register writesRob Herring
BugLink: http://launchpad.net/bugs/1059432 The interrupts have already been cleared, so we don't need to clear them again. Also, we could miss interrupts if they are cleared, but we don't process the packet. Signed-off-by: Rob Herring <rob.herring@calxeda.com> Signed-off-by: Ike Panhc <ike.pan@canonical.com> Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
2012-11-14UBUNTU: SAUCE: net: calxedaxgmac: use relaxed i/o accessors in rx and tx pathsRob Herring
BugLink: http://launchpad.net/bugs/1059432 The standard readl/writel accessors involve a spinlock and cache sync operation on ARM platforms with an outer cache. Only DMA triggering accesses need this, so use the relaxed variants instead. Signed-off-by: Rob Herring <rob.herring@calxeda.com> Signed-off-by: Ike Panhc <ike.pan@canonical.com> Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
2012-11-14UBUNTU: SAUCE: net: calxedaxgmac: remove explicit rx dma buffer pollingRob Herring
BugLink: http://launchpad.net/bugs/1059432 New received frames will trigger the rx DMA to poll the DMA descriptors, so there is no need to tell the h/w to poll. We also want to enable dropping frames from the fifo when there is no buffer. Signed-off-by: Rob Herring <rob.herring@calxeda.com> Signed-off-by: Ike Panhc <ike.pan@canonical.com> Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
2012-11-14UBUNTU: SAUCE: net: calxedaxgmac: enable operate on 2nd frame modeRob Herring
BugLink: http://launchpad.net/bugs/1059432 Enable the tx dma to start reading the next frame while sending the current frame. Signed-off-by: Rob Herring <rob.herring@calxeda.com> Signed-off-by: Ike Panhc <ike.pan@canonical.com> Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
2012-11-14UBUNTU: SAUCE: ata_piix: add a disable_driver optionAndy Whitcroft
We need to be able to fully disable the ata_piix driver from the kernel command line. Add a generic disable_driver to the module init to completely short circuit the initialisation. BugLink: http://bugs.launchpad.net/bugs/994870 Signed-off-by: Andy Whitcroft <apw@canonical.com> Acked-by: Luis Henriques <luis.henriques@canonical.com> Acked-by: Herton Krzesinski <herton.krzesinski@canonical.com> Acked-by: Brad Figg <brad.figg@canonical.com> Signed-off-by: Tim Gardner <tim.gardner@canonical.com> Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>
2012-11-14UBUNTU: SAUCE: input: Cypress PS/2 Trackpad move PSMOUSE_CYPRESS enumKamal Mostafa
Move PSMOUSE_CYPRESS to the end of the enum, since awful src/eventcomm.c in x-x-i-s actually depends on hardcoded values of the model numbers (including MODEL_ALPS). *sigh* BugLink: http://launchpad.net/bugs/1041594 Signed-off-by: Kamal Mostafa <kamal@canonical.com> Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
2012-11-14UBUNTU: SAUCE: vxge: Declare MODULE_FIRMWARE usageTim Gardner
(Sent upstream) Cc: Jon Mason <jdmason@kudzu.us> Cc: "David S. Miller" <davem@davemloft.net> Cc: Joe Perches <joe@perches.com> Cc: Jiri Pirko <jpirko@redhat.com> Cc: Stephen Hemminger <shemminger@vyatta.com> Cc: Paul Gortmaker <paul.gortmaker@windriver.com> Cc: netdev@vger.kernel.org Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
2012-11-14UBUNTU: SAUCE: rds_ib_send() -- prevent local pings triggering BUG_ON()Andy Whitcroft
Pining localhost on an infiniband connection can trigger a BUG_ON() and cause a denial of service. Fix identified by comparison of the RHEL source rpms. CVE-2012-2372 BugLink: http://bugs.launchpad.net/bugs/1016299 Signed-off-by: Andy Whitcroft <apw@canonical.com> Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
2012-11-14UBUNTU: SAUCE: firmware: Upgrade bnx2 to current versionsTim Gardner
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
2012-11-14UBUNTU: SAUCE: firmware: Remove obsolete Myricom firmwareTim Gardner
(Sent upstream) The Myricom GB driver firmware is no longer in use. Furthermore, CONFIG_MYRI_SBUS is no longer defined. Cc: Paul Gortmaker <paul.gortmaker@windriver.com> Cc: Ben Hutchings <ben@decadent.org.uk> Cc: James Bottomley <JBottomley@Parallels.com> Cc: Dan Williams <dan.j.williams@intel.com> Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
2012-11-14UBUNTU: SAUCE: firmware: Remove korg files duplicated in linux-firmwareTim Gardner
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
2012-11-14UBUNTU: SAUCE: firmware: Remove cpia2 files duplicated in linux-firmwareTim Gardner
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
2012-11-14UBUNTU: SAUCE: firmware: Remove av7110 files duplicated in linux-firmwareTim Gardner
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
2012-11-14UBUNTU: SAUCE: firmware: Remove ambassador files duplicated in linux-firmwareTim Gardner
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
2012-11-14UBUNTU: SAUCE: firmware: Remove advansys files duplicated in linux-firmwareTim Gardner
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
2012-11-14UBUNTU: SAUCE: firmware: Remove adaptec files duplicated in linux-firmwareTim Gardner
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
2012-11-14UBUNTU: SAUCE: firmware: Remove ti_usb_3410_5052 duplicated in linux-firmwareTim Gardner
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
2012-11-14UBUNTU: SAUCE: firmware: Remove edgeport files duplicated in linux-firmwareTim Gardner
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
2012-11-14UBUNTU: SAUCE: firmware: Remove kaweth files duplicated in linux-firmwareTim Gardner
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
2012-11-14UBUNTU: SAUCE: firmware: Remove ess files duplicated in linux-firmwareTim Gardner
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>