Merge branch 'android-4.9-q' of https://android.googlesource.com/kernel/common into lineage-20
----- Merge list:f9b8314c64UPSTREAM: ipv6: raw: Deduct extension header length in rawv6_push_pending_frames1b1e3a2a7bUPSTREAM: netfilter: ipset: Fix overflow before widen in the bitmap_ip_create() function.7e6dfb2786Merge 4.9.337 into android-4.9-q87a72e8176Linux 4.9.33756836c32a4ext4: initialize quota before expanding inode in setproject ioctl9c4ef4429fext4: avoid BUG_ON when creating xattrs0735746664ext4: fix error code return to user-space in ext4_get_branch()67f6d5a404ext4: init quota for 'old.inode' in 'ext4_rename'e76ede9d2cext4: fix bug_on in __es_tree_search caused by bad boot loader inodedd5639d36aext4: fix undefined behavior in bit shift for ext4_check_flag_values08cd26a911ext4: add inode table check in __ext4_get_inode_loc to aovid possible infinite loopee8d31836cdrm/vmwgfx: Validate the box size for the snooped cursor080569aa3cdrm/connector: send hotplug uevent on connector cleanup73adc289cddevice_cgroup: Roll back to original exceptions after copy failurec6db0c32f3parisc: led: Fix potential null-ptr-deref in start_task()fbac2c5be9iommu/amd: Fix ivrs_acpihid cmdline parsing codebe61cadc7ccrypto: n2 - add missing hash statesize5e411983bbPCI/sysfs: Fix double free in error path0f4dfff7dccifs: fix confusing debug message0588b12c41media: dvb-core: Fix double free in dvb_register_device()7854d3b926ARM: 9256/1: NWFPE: avoid compiler-generated __aeabi_uldivmod61d589b402tracing: Fix infinite loop in tracing_read_pipe on overflowed print_trace_line67a4e294c4dm cache: set needs_check flag after aborting metadata034cbc8d3bdm cache: Fix UAF in destroy()7ee059d06adm thin: Fix UAF in run_timer_softirq()b35a22760adm thin: Use last transaction's pmd->root when commit failed6e237cacdadm cache: Fix ABBA deadlock between shrink_slab and dm_cache_metadata_abort4be6501204ARM: ux500: do not directly dereference __iomem2d308bd0baktest.pl minconfig: Unset configs instead of just removing themfca7a1c33cmedia: stv0288: use explicitly signed char32d5af247dmmc: vub300: fix warning - do not call blocking ops when !TASK_RUNNING732cd66ec1md: fix a crash in mempool_freecad0d17fb2pnode: terminate at peers of sourceb026af92b2ALSA: line6: fix stack overflow in line6_midi_transmit0407e79278ALSA: line6: correct midi status byte when receiving data from podxtff939afec5hfsplus: fix bug causing custom uid and gid being unable to be assigned with mounte28690c030HID: plantronics: Additional PIDs for double volume key presses quirkf413135b33powerpc/rtas: avoid scheduling in rtas_os_term()48e2ba6887gcov: add support for checksum fieldc8b577fe8diio: adc: ad_sigma_delta: do not use internal iio_dev lock0cf939d003reiserfs: Add missing calls to reiserfs_security_free()f21b8ddd23HID: wacom: Ensure bootloader PID is usable in hidraw mode525f1c8adaASoC: rt5670: Remove unbalanced pm_runtime_put()593f0c94dcASoC: rockchip: spdif: Add missing clk_disable_unprepare() in rk_spdif_runtime_resume()b606ae0e81ASoC: wm8994: Fix potential deadlock5f6d57871bASoC: mediatek: mt8173-rt5650-rt5514: fix refcount leak in mt8173_rt5650_rt5514_dev_probe()44d3eac26aorangefs: Fix kmemleak in orangefs_prepare_debugfs_help_string()b2c92b2a38drm/sti: Fix return type of sti_{dvo,hda,hdmi}_connector_mode_valid()1cca6ac0a7drm/fsl-dcu: Fix return type of fsl_dcu_drm_connector_mode_valid()081538ae58clk: st: Fix memory leak in st_of_quadfs_setup()146bd005ebmedia: si470x: Fix use-after-free in si470x_int_in_callback()623cdf261fmmc: f-sdh30: Add quirks for broken timeout clock capability654870789cblk-mq: fix possible memleak when register 'hctx' failed733bc9e226media: dvb-usb: fix memory leak in dvb_usb_adapter_init()afccb6ac63media: dvb-frontends: fix leak of memory fwe387a25552ppp: associate skb with a device at tx98f53e5919mrp: introduce active flags to prevent UAF when applicant uninitd684ceb773md/raid1: stop mdx_raid1 thread when raid1 array run faileda7c2d8c067drm/sti: Use drm_mode_copy()7b4da3fcd5s390/lcs: Fix return type of lcs_start_xmit()f13d870fces390/netiucv: Fix return type of netiucv_tx()636a7013b8s390/ctcm: Fix return type of ctc{mp,}m_tx()64ca196959igb: Do not free q_vector unless new one was allocated1db036d13ewifi: brcmfmac: Fix potential shift-out-of-bounds in brcmf_fw_alloc_request()d467bbca62hamradio: baycom_epp: Fix return type of baycom_send_packet()a447479ea2net: ethernet: ti: Fix return type of netcp_ndo_start_xmit()3fa7cbdbe3ipmi: fix memleak when unload ipmi driverc9ba3fbf6awifi: ar5523: Fix use-after-free on ar5523_cmd() timed out932f0a5e82wifi: ath9k: verify the expected usb_endpoints are present8c40f2dbaehfs: fix OOB Read in __hfs_brec_finde93f995a59acct: fix potential integer overflow in encode_comp_t()6b0ea3df56nilfs2: fix shift-out-of-bounds/overflow in nilfs_sb2_bad_offset()38e251d356ACPICA: Fix error code path in acpi_ds_call_control_method()f8d4d0bac6fs: jfs: fix shift-out-of-bounds in dbDiscardAG78eba2778audf: Avoid double brelse() in udf_rename()d3b486946afs: jfs: fix shift-out-of-bounds in dbAllocAG0f1a48994bbinfmt_misc: fix shift-out-of-bounds in check_special_flagsc8c1eec578net: stream: purge sk_error_queue in sk_stream_kill_queues()a4da73a1d2myri10ge: Fix an error handling path in myri10ge_probe()4d5d13eac3net_sched: reject TCF_EM_SIMPLE case for complex ematch moduleff3743d00fskbuff: Account for tail adjustment during pull operations4f592e712eopenvswitch: Fix flow lookup to use unmasked keya04707f459r6040: Fix kmemleak in probe and remove9da4a0411fnfc: pn533: Clear nfc_target before being used7f1cda9c19mISDN: hfcmulti: don't call dev_kfree_skb/kfree_skb() under spin_lock_irqsave()fc24113bc3mISDN: hfcpci: don't call dev_kfree_skb/kfree_skb() under spin_lock_irqsave()291b787995mISDN: hfcsusb: don't call dev_kfree_skb/kfree_skb() under spin_lock_irqsave()707bcca961nfsd: under NFSv4.1, fix double svc_xprt_put on rpc_create failure4761ab97d4rtc: st-lpc: Add missing clk_disable_unprepare in st_rtc_probe()81a61f3396selftests/powerpc: Fix resource leaks1bd37681ebpowerpc/hv-gpci: Fix hv_gpci event list225c852340powerpc/83xx/mpc832x_rdb: call platform_device_put() in error case in of_fsl_spi_probe()4a62ab0985powerpc/perf: callchain validate kernel stack pointer boundsbe9caf2c93powerpc/52xx: Fix a resource leak in an error handling pathaaf59a444bmacintosh/macio-adb: check the return value of ioremap()3a866ff6fcmacintosh: fix possible memory leak in macio_add_one_device()c939832305iommu/fsl_pamu: Fix resource leak in fsl_pamu_probe()4be1a8d894rtc: snvs: Allow a time difference on clock register read4e0b6364d0include/uapi/linux/swab: Fix potentially missing __always_inline7f43b9a984HSI: omap_ssi_core: Fix error handling in ssi_init()29a5727780power: supply: fix residue sysfs file in error handle route of __power_supply_register()107eb675d3HSI: omap_ssi_core: fix possible memory leak in ssi_probe()8a502dfab2HSI: omap_ssi_core: fix unbalanced pm_runtime_disable()8a62bc1c9afbdev: uvesafb: Fixes an error handling path in uvesafb_probe()4383832879fbdev: vermilion: decrease reference count in error path5bf10c3be0fbdev: via: Fix error in via_core_init()0a71d0472cfbdev: pm2fb: fix missing pci_disable_device()c0cdb87177fbdev: ssd1307fb: Drop optional dependency0b8a070a7cusb: storage: Add check for kcalloc4a7bb1d93ai2c: ismt: Fix an out-of-bounds bug in ismt_access()e831fdd60evme: Fix error not catched in fake_init()cf7d89e809staging: rtl8192e: Fix potential use-after-free in rtllib_rx_Monitor()9c03db0ec8staging: rtl8192u: Fix use after free in ieee80211_rx()9e6fe3e856i2c: pxa-pci: fix missing pci_disable_device() on error in ce4100_i2c_probe5d2146889fchardev: fix error handling in cdev_device_add()891f606ae0mcb: mcb-parse: fix error handing in chameleon_parse_gdd()531ac7b911drivers: mcb: fix resource leak in mcb_probe()82e6843266cxl: fix possible null-ptr-deref in cxl_pci_init_afu|adapter()96fba6fb95cxl: fix possible null-ptr-deref in cxl_guest_init_afu|adapter()f99d5f1bd8misc: sgi-gru: fix use-after-free error in gru_set_context_option, gru_fault and gru_handle_user_call_os2bbb222a54misc: tifm: fix possible memory leak in tifm_7xx1_switch_media()5ea80d3dc0serial: sunsab: Fix error handling in sunsab_init()90ff030ca1serial: pch: Fix PCI device refcount leak in pch_request_dma()1c5f0d3f48serial: amba-pl011: avoid SBSA UART accessing DMACR register5cc4eea715staging: vme_user: Fix possible UAF in tsi148_dma_list_add92a0e9094busb: fotg210-udc: Fix ages old endianness issues35a27f38b4uio: uio_dmem_genirq: Fix deadlock between irq config and handling9977cb7af5uio: uio_dmem_genirq: Fix missing unlock in irq configurationa896a0145cvfio: platform: Do not pass return buffer to ACPI _RST methodaffe3cea6bdrivers: dio: fix possible memory leak in dio_init()2aecfec735IB/IPoIB: Fix queue count inconsistency for PKEY child interfaces88f4ea623fhwrng: geode - Fix PCI device refcount leakf1c97f72ffhwrng: amd - Fix PCI device refcount leak84e4794a77crypto: img-hash - Fix variable dereferenced before check 'hdev->req'36ffa81608orangefs: Fix sysfs not cleanup when dev init failedf9d8b8ba0fscsi: snic: Fix possible UAF in snic_tgt_create()d581303d6fscsi: fcoe: Fix transport not deattached when fcoe_if_init() fails020b660237scsi: ipr: Fix WARNING in ipr_init()16b2077382scsi: fcoe: Fix possible name leak when device_register() fails07e97ce1a2scsi: hpsa: Fix possible memory leak in hpsa_add_sas_device()e744faa744scsi: hpsa: Fix error handling in hpsa_add_sas_host()27353e2faestmmac: fix potential division by 054c7317bdeBluetooth: hci_core: don't call kfree_skb() under spin_lock_irqsave()0913307bb5Bluetooth: hci_bcsp: don't call kfree_skb() under spin_lock_irqsave()5c366b96b1Bluetooth: hci_h5: don't call kfree_skb() under spin_lock_irqsave()f9c7eb2991Bluetooth: hci_qca: don't call kfree_skb() under spin_lock_irqsave()c7276ee693Bluetooth: btusb: don't call kfree_skb() under spin_lock_irqsave()d4460c8217ntb_netdev: Use dev_kfree_skb_any() in interrupt contextd90f63e5f5net: amd: lance: don't call dev_kfree_skb() under spin_lock_irqsave()84af17d56fhamradio: don't call dev_kfree_skb() under spin_lock_irqsave()82b04c27e5net: ethernet: dnet: don't call dev_kfree_skb() under spin_lock_irqsave()cce993d043net: emaclite: don't call dev_kfree_skb() under spin_lock_irqsave()6537d363e4net: apple: bmac: don't call dev_kfree_skb() under spin_lock_irqsave()460577583anet: apple: mace: don't call dev_kfree_skb() under spin_lock_irqsave()e8316584b0net/tunnel: wait until all sk_user_data reader finish before releasing the sock41798a063fnet: farsync: Fix kmemleak when rmmods farsync0d30b9f10fethernet: s2io: don't call dev_kfree_skb() under spin_lock_irqsave()15770edc01drivers: net: qlcnic: Fix potential memory leak in qlcnic_sriov_init()cdf10b514fnet: defxx: Fix missing err handling in dfx_init()1afe89a96dnet: vmw_vsock: vmci: Check memcpy_from_msg()fe70ceaf38blktrace: Fix output non-blktrace event when blk_classic option enabled56758e923dwifi: brcmfmac: Fix error return code in brcmf_sdio_download_firmware()5a55f0336cwifi: rtl8xxxu: Add __packed to struct rtl8723bu_c2hd308c4a035media: coda: Add check for kmalloc5688d33aa2media: coda: Add check for dcoda_iram_alloc52a736cc71media: c8sectpfe: Add of_node_put() when breaking out of loopb839998387mmc: mmci: fix return value check of mmc_add_host()fc85606bdfmmc: wbsd: fix return value check of mmc_add_host()076bcd2c93mmc: via-sdmmc: fix return value check of mmc_add_host()41ed46bdbdmmc: vub300: fix return value check of mmc_add_host()34ae492f8dmmc: toshsd: fix return value check of mmc_add_host()d7ad7278bemmc: rtsx_usb_sdmmc: fix return value check of mmc_add_host()5f35c038c9mmc: mxcmmc: fix return value check of mmc_add_host()a4c765f5d8mmc: moxart: fix return value check of mmc_add_host()b149509862SUNRPC: Fix missing release socket in rpc_sockname()06ec592389ALSA: mts64: fix possible null-ptr-defer in snd_mts64_interrupt6204de885dmedia: saa7164: fix missing pci_disable_device()68c4ab962dregulator: core: fix module refcount leak in set_supply()3b5357f363bonding: uninitialized variable in bond_miimon_inspect()485029c835ASoC: pcm512x: Fix PM disable depth imbalance in pcm512x_probe6611feef35drm/amdgpu: Fix PCI device refcount leak in amdgpu_atrm_get_bios()6f28c7f67adrm/radeon: Fix PCI device refcount leak in radeon_atrm_get_bios()c0e07daf2dALSA: asihpi: fix missing pci_disable_device()5cc6b7acf5NFSv4: Fix a deadlock between nfs4_open_recover_helper() and delegreturn6f384464b9NFSv4.2: Fix a memory stomp in decode_attr_security_label2b6a8a1a32media: dvb-usb: az6027: fix null-ptr-deref in az6027_i2c_xfer()7fb8cc3eb6pinctrl: pinconf-generic: add missing of_node_put()075e24fd1dmedia: imon: fix a race condition in send_packet()cb3f35f448mtd: maps: pxa2xx-flash: fix memory leak in probe20201c3a0aclk: rockchip: Fix memory leak in rockchip_clk_register_pll()30f79752f5ALSA: seq: fix undefined behavior in bit shift for SNDRV_SEQ_FILTER_USE_EVENTb2eb9ec56eHID: hid-sensor-custom: set fixed size for custom attributes93e707953dmedia: platform: exynos4-is: Fix error handling in fimc_md_init()83d4b1ae98media: solo6x10: fix possible memory leak in solo_sysfs_init()6590d09b54Input: elants_i2c - properly handle the reset GPIO when power is off4d10bd7416mtd: lpddr2_nvm: Fix possible null-ptr-derefa4505bb429wifi: ath10k: Fix return value in ath10k_pci_init()eaba2df235ima: Fix misuse of dereference of pointer in template_desc_init_fields()0e88505ac0regulator: core: fix unbalanced of node refcount in regulator_dev_lookup()3ec75e0ea9ASoC: pxa: fix null-pointer dereference in filter()a75f45afa9mtd: Fix device name leak when register device failed in add_mtd_device()8c0ee15d9amedia: vivid: fix compose size exceed boundarydc8da40430media: i2c: ad5820: Fix error path5e8751a977wifi: ath9k: hif_usb: Fix use-after-free in ath9k_hif_usb_reg_in_cb()134ae5eba4wifi: ath9k: hif_usb: fix memory leak of urbs in ath9k_hif_usb_dealloc_tx_urbs()6e4540e097rapidio: devices: fix missing put_device in mport_cdev_open8399318b13hfs: Fix OOB Write in hfs_asc2macc25ad86eabeventfd: change int to __u64 in eventfd_signal() ifndef CONFIG_EVENTFD2a6c75adf8rapidio: fix possible UAF when kfifo_alloc() fails9498f673e9fs: sysv: Fix sysv_nblocks() returns wrong value1fa95583dcMIPS: BCM63xx: Add check for NULL for clk in clk_enable9278bdbb56x86/xen: Fix memory leak in xen_init_lock_cpu()7df153f905uprobes/x86: Allow to probe a NOP instruction with 0x66 prefix133462d35dACPICA: Fix use-after-free in acpi_ut_copy_ipackage_to_ipackage()0a71344f99rapidio: rio: fix possible name leak in rio_register_mport()3b4676f274rapidio: fix possible name leaks when rio_add_device() failsbf0c25cb3dlib/notifier-error-inject: fix error when writing -errno to debugfs file111e540304libfs: add DEFINE_SIMPLE_ATTRIBUTE_SIGNED for signed value690a864cf0irqchip: gic-pm: Use pm_runtime_resume_and_get() in gic_probe()ea77b4b761PNP: fix name memory leak in pnp_alloc_dev()c5b088a6bbMIPS: vpe-cmp: fix possible memory leak while module exiting170e9913c2MIPS: vpe-mt: fix possible memory leak while module exiting0000281f01ocfs2: fix memory leak in ocfs2_stack_glue_init()b1c63d8af4timerqueue: Use rb_entry_safe() in timerqueue_getnext()d3715b025bperf: Fix possible memleak in pmu_dev_alloc()f8c501139afs: don't audit the capability check in simple_xattr_list()a34346994fPM: hibernate: Fix mistake in kerneldoc comment0e395fe385alpha: fix syscall entry in !AUDUT_SYSCALL caseeea8631ca7cpuidle: dt: Return the correct numbers of parsed idle states1579bed161pstore: Avoid kcore oops by vmap()ing with VM_IOREMAP3fd56ad4dcARM: mmp: fix timer_read delay6b130bdbccARM: dts: armada-39x: Fix assigned-addresses for every PCIe Root Port0dcbcfd917ARM: dts: armada-38x: Fix assigned-addresses for every PCIe Root Port24a645ab64ARM: dts: armada-375: Fix assigned-addresses for every PCIe Root Port97309af736ARM: dts: armada-xp: Fix assigned-addresses for every PCIe Root Portf095946a94ARM: dts: armada-370: Fix assigned-addresses for every PCIe Root Portd90167d023ARM: dts: dove: Fix assigned-addresses for every PCIe Root Port23d41ad9e7soc: ti: smartreflex: Fix PM disable depth imbalance in omap_sr_probe0a0130024earm: dts: spear600: Fix clcd interrupta1e186b798drivers: soc: ti: knav_qmss_queue: Mark knav_acc_firmwares as static5fc7f7176anet: loopback: use NET_NAME_PREDICTABLE for name_assign_type49d5867819Bluetooth: L2CAP: Fix u8 overflowd4e43b24ceUSB: serial: cp210x: add Kamstrup RF sniffer PIDs4972e3528busb: gadget: uvc: Prevent buffer overflow in setup handler9391da5e02udf: Fix extending file within last block1f9eae3175udf: Do not bother looking for prealloc extents if i_lenExtents matches i_sizec8b6fa4511udf: Fix preallocation discarding at indirect extent boundarya58ae14b9audf: Drop unused arguments of udf_delete_aext()4a1c33851cudf: Discard preallocation before extending file with a hole041030f25aASoC: ops: Correct bounds check for second channel on SX controls0d3ee591dccan: sja1000: fix size of OCR_MODE_MASK define5628898784ASoC: ops: Check bounds for second channel in snd_soc_put_volsw_sx()4726b66b88block: unhash blkdev part inode when the part is deleted275c626c13mm/khugepaged: invoke MMU notifiers in shmem/file collapse paths588be4a04bmm/khugepaged: fix GUP-fast interaction by sending IPI ----- Change-Id: Ibc615b850bbc96ce90f434376a485506eaa3894c Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
This commit is contained in:
commit
6fe87b7dca
263 changed files with 1302 additions and 561 deletions
2
Makefile
2
Makefile
|
|
@ -1,6 +1,6 @@
|
|||
VERSION = 4
|
||||
PATCHLEVEL = 9
|
||||
SUBLEVEL = 336
|
||||
SUBLEVEL = 337
|
||||
EXTRAVERSION =
|
||||
NAME = Roaring Lionus
|
||||
|
||||
|
|
|
|||
|
|
@ -468,8 +468,10 @@ entSys:
|
|||
#ifdef CONFIG_AUDITSYSCALL
|
||||
lda $6, _TIF_SYSCALL_TRACE | _TIF_SYSCALL_AUDIT
|
||||
and $3, $6, $3
|
||||
#endif
|
||||
bne $3, strace
|
||||
#else
|
||||
blbs $3, strace /* check for SYSCALL_TRACE in disguise */
|
||||
#endif
|
||||
beq $4, 1f
|
||||
ldq $27, 0($5)
|
||||
1: jsr $26, ($27), alpha_ni_syscall
|
||||
|
|
|
|||
|
|
@ -108,7 +108,7 @@
|
|||
|
||||
pcie@2,0 {
|
||||
device_type = "pci";
|
||||
assigned-addresses = <0x82002800 0 0x80000 0 0x2000>;
|
||||
assigned-addresses = <0x82001000 0 0x80000 0 0x2000>;
|
||||
reg = <0x1000 0 0 0 0>;
|
||||
#address-cells = <3>;
|
||||
#size-cells = <2>;
|
||||
|
|
|
|||
|
|
@ -618,7 +618,7 @@
|
|||
|
||||
pcie@2,0 {
|
||||
device_type = "pci";
|
||||
assigned-addresses = <0x82000800 0 0x44000 0 0x2000>;
|
||||
assigned-addresses = <0x82001000 0 0x44000 0 0x2000>;
|
||||
reg = <0x1000 0 0 0 0>;
|
||||
#address-cells = <3>;
|
||||
#size-cells = <2>;
|
||||
|
|
|
|||
|
|
@ -115,7 +115,7 @@
|
|||
/* x1 port */
|
||||
pcie@2,0 {
|
||||
device_type = "pci";
|
||||
assigned-addresses = <0x82000800 0 0x40000 0 0x2000>;
|
||||
assigned-addresses = <0x82001000 0 0x40000 0 0x2000>;
|
||||
reg = <0x1000 0 0 0 0>;
|
||||
#address-cells = <3>;
|
||||
#size-cells = <2>;
|
||||
|
|
@ -133,7 +133,7 @@
|
|||
/* x1 port */
|
||||
pcie@3,0 {
|
||||
device_type = "pci";
|
||||
assigned-addresses = <0x82000800 0 0x44000 0 0x2000>;
|
||||
assigned-addresses = <0x82001800 0 0x44000 0 0x2000>;
|
||||
reg = <0x1800 0 0 0 0>;
|
||||
#address-cells = <3>;
|
||||
#size-cells = <2>;
|
||||
|
|
|
|||
|
|
@ -126,7 +126,7 @@
|
|||
/* x1 port */
|
||||
pcie@2,0 {
|
||||
device_type = "pci";
|
||||
assigned-addresses = <0x82000800 0 0x40000 0 0x2000>;
|
||||
assigned-addresses = <0x82001000 0 0x40000 0 0x2000>;
|
||||
reg = <0x1000 0 0 0 0>;
|
||||
#address-cells = <3>;
|
||||
#size-cells = <2>;
|
||||
|
|
@ -144,7 +144,7 @@
|
|||
/* x1 port */
|
||||
pcie@3,0 {
|
||||
device_type = "pci";
|
||||
assigned-addresses = <0x82000800 0 0x44000 0 0x2000>;
|
||||
assigned-addresses = <0x82001800 0 0x44000 0 0x2000>;
|
||||
reg = <0x1800 0 0 0 0>;
|
||||
#address-cells = <3>;
|
||||
#size-cells = <2>;
|
||||
|
|
@ -165,7 +165,7 @@
|
|||
*/
|
||||
pcie@4,0 {
|
||||
device_type = "pci";
|
||||
assigned-addresses = <0x82000800 0 0x48000 0 0x2000>;
|
||||
assigned-addresses = <0x82002000 0 0x48000 0 0x2000>;
|
||||
reg = <0x2000 0 0 0 0>;
|
||||
#address-cells = <3>;
|
||||
#size-cells = <2>;
|
||||
|
|
|
|||
|
|
@ -492,7 +492,7 @@
|
|||
/* x1 port */
|
||||
pcie@2,0 {
|
||||
device_type = "pci";
|
||||
assigned-addresses = <0x82000800 0 0x40000 0 0x2000>;
|
||||
assigned-addresses = <0x82001000 0 0x40000 0 0x2000>;
|
||||
reg = <0x1000 0 0 0 0>;
|
||||
#address-cells = <3>;
|
||||
#size-cells = <2>;
|
||||
|
|
@ -510,7 +510,7 @@
|
|||
/* x1 port */
|
||||
pcie@3,0 {
|
||||
device_type = "pci";
|
||||
assigned-addresses = <0x82000800 0 0x44000 0 0x2000>;
|
||||
assigned-addresses = <0x82001800 0 0x44000 0 0x2000>;
|
||||
reg = <0x1800 0 0 0 0>;
|
||||
#address-cells = <3>;
|
||||
#size-cells = <2>;
|
||||
|
|
@ -531,7 +531,7 @@
|
|||
*/
|
||||
pcie@4,0 {
|
||||
device_type = "pci";
|
||||
assigned-addresses = <0x82000800 0 0x48000 0 0x2000>;
|
||||
assigned-addresses = <0x82002000 0 0x48000 0 0x2000>;
|
||||
reg = <0x2000 0 0 0 0>;
|
||||
#address-cells = <3>;
|
||||
#size-cells = <2>;
|
||||
|
|
|
|||
|
|
@ -133,7 +133,7 @@
|
|||
|
||||
pcie@2,0 {
|
||||
device_type = "pci";
|
||||
assigned-addresses = <0x82000800 0 0x44000 0 0x2000>;
|
||||
assigned-addresses = <0x82001000 0 0x44000 0 0x2000>;
|
||||
reg = <0x1000 0 0 0 0>;
|
||||
#address-cells = <3>;
|
||||
#size-cells = <2>;
|
||||
|
|
@ -150,7 +150,7 @@
|
|||
|
||||
pcie@3,0 {
|
||||
device_type = "pci";
|
||||
assigned-addresses = <0x82000800 0 0x48000 0 0x2000>;
|
||||
assigned-addresses = <0x82001800 0 0x48000 0 0x2000>;
|
||||
reg = <0x1800 0 0 0 0>;
|
||||
#address-cells = <3>;
|
||||
#size-cells = <2>;
|
||||
|
|
@ -167,7 +167,7 @@
|
|||
|
||||
pcie@4,0 {
|
||||
device_type = "pci";
|
||||
assigned-addresses = <0x82000800 0 0x4c000 0 0x2000>;
|
||||
assigned-addresses = <0x82002000 0 0x4c000 0 0x2000>;
|
||||
reg = <0x2000 0 0 0 0>;
|
||||
#address-cells = <3>;
|
||||
#size-cells = <2>;
|
||||
|
|
@ -184,7 +184,7 @@
|
|||
|
||||
pcie@5,0 {
|
||||
device_type = "pci";
|
||||
assigned-addresses = <0x82000800 0 0x80000 0 0x2000>;
|
||||
assigned-addresses = <0x82002800 0 0x80000 0 0x2000>;
|
||||
reg = <0x2800 0 0 0 0>;
|
||||
#address-cells = <3>;
|
||||
#size-cells = <2>;
|
||||
|
|
|
|||
|
|
@ -148,7 +148,7 @@
|
|||
|
||||
pcie@2,0 {
|
||||
device_type = "pci";
|
||||
assigned-addresses = <0x82000800 0 0x44000 0 0x2000>;
|
||||
assigned-addresses = <0x82001000 0 0x44000 0 0x2000>;
|
||||
reg = <0x1000 0 0 0 0>;
|
||||
#address-cells = <3>;
|
||||
#size-cells = <2>;
|
||||
|
|
@ -165,7 +165,7 @@
|
|||
|
||||
pcie@3,0 {
|
||||
device_type = "pci";
|
||||
assigned-addresses = <0x82000800 0 0x48000 0 0x2000>;
|
||||
assigned-addresses = <0x82001800 0 0x48000 0 0x2000>;
|
||||
reg = <0x1800 0 0 0 0>;
|
||||
#address-cells = <3>;
|
||||
#size-cells = <2>;
|
||||
|
|
@ -182,7 +182,7 @@
|
|||
|
||||
pcie@4,0 {
|
||||
device_type = "pci";
|
||||
assigned-addresses = <0x82000800 0 0x4c000 0 0x2000>;
|
||||
assigned-addresses = <0x82002000 0 0x4c000 0 0x2000>;
|
||||
reg = <0x2000 0 0 0 0>;
|
||||
#address-cells = <3>;
|
||||
#size-cells = <2>;
|
||||
|
|
@ -199,7 +199,7 @@
|
|||
|
||||
pcie@5,0 {
|
||||
device_type = "pci";
|
||||
assigned-addresses = <0x82000800 0 0x80000 0 0x2000>;
|
||||
assigned-addresses = <0x82002800 0 0x80000 0 0x2000>;
|
||||
reg = <0x2800 0 0 0 0>;
|
||||
#address-cells = <3>;
|
||||
#size-cells = <2>;
|
||||
|
|
@ -216,7 +216,7 @@
|
|||
|
||||
pcie@6,0 {
|
||||
device_type = "pci";
|
||||
assigned-addresses = <0x82000800 0 0x84000 0 0x2000>;
|
||||
assigned-addresses = <0x82003000 0 0x84000 0 0x2000>;
|
||||
reg = <0x3000 0 0 0 0>;
|
||||
#address-cells = <3>;
|
||||
#size-cells = <2>;
|
||||
|
|
@ -233,7 +233,7 @@
|
|||
|
||||
pcie@7,0 {
|
||||
device_type = "pci";
|
||||
assigned-addresses = <0x82000800 0 0x88000 0 0x2000>;
|
||||
assigned-addresses = <0x82003800 0 0x88000 0 0x2000>;
|
||||
reg = <0x3800 0 0 0 0>;
|
||||
#address-cells = <3>;
|
||||
#size-cells = <2>;
|
||||
|
|
@ -250,7 +250,7 @@
|
|||
|
||||
pcie@8,0 {
|
||||
device_type = "pci";
|
||||
assigned-addresses = <0x82000800 0 0x8c000 0 0x2000>;
|
||||
assigned-addresses = <0x82004000 0 0x8c000 0 0x2000>;
|
||||
reg = <0x4000 0 0 0 0>;
|
||||
#address-cells = <3>;
|
||||
#size-cells = <2>;
|
||||
|
|
@ -267,7 +267,7 @@
|
|||
|
||||
pcie@9,0 {
|
||||
device_type = "pci";
|
||||
assigned-addresses = <0x82000800 0 0x42000 0 0x2000>;
|
||||
assigned-addresses = <0x82004800 0 0x42000 0 0x2000>;
|
||||
reg = <0x4800 0 0 0 0>;
|
||||
#address-cells = <3>;
|
||||
#size-cells = <2>;
|
||||
|
|
|
|||
|
|
@ -127,7 +127,7 @@
|
|||
pcie1: pcie-port@1 {
|
||||
device_type = "pci";
|
||||
status = "disabled";
|
||||
assigned-addresses = <0x82002800 0 0x80000 0 0x2000>;
|
||||
assigned-addresses = <0x82001000 0 0x80000 0 0x2000>;
|
||||
reg = <0x1000 0 0 0 0>;
|
||||
clocks = <&gate_clk 5>;
|
||||
marvell,pcie-port = <1>;
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@
|
|||
compatible = "arm,pl110", "arm,primecell";
|
||||
reg = <0xfc200000 0x1000>;
|
||||
interrupt-parent = <&vic1>;
|
||||
interrupts = <12>;
|
||||
interrupts = <13>;
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -52,18 +52,21 @@
|
|||
static void __iomem *mmp_timer_base = TIMERS_VIRT_BASE;
|
||||
|
||||
/*
|
||||
* FIXME: the timer needs some delay to stablize the counter capture
|
||||
* Read the timer through the CVWR register. Delay is required after requesting
|
||||
* a read. The CR register cannot be directly read due to metastability issues
|
||||
* documented in the PXA168 software manual.
|
||||
*/
|
||||
static inline uint32_t timer_read(void)
|
||||
{
|
||||
int delay = 100;
|
||||
uint32_t val;
|
||||
int delay = 3;
|
||||
|
||||
__raw_writel(1, mmp_timer_base + TMR_CVWR(1));
|
||||
|
||||
while (delay--)
|
||||
cpu_relax();
|
||||
val = __raw_readl(mmp_timer_base + TMR_CVWR(1));
|
||||
|
||||
return __raw_readl(mmp_timer_base + TMR_CVWR(1));
|
||||
return val;
|
||||
}
|
||||
|
||||
static u64 notrace mmp_read_sched_clock(void)
|
||||
|
|
|
|||
|
|
@ -10,3 +10,9 @@ nwfpe-y += fpa11.o fpa11_cpdo.o fpa11_cpdt.o \
|
|||
entry.o
|
||||
|
||||
nwfpe-$(CONFIG_FPE_NWFPE_XP) += extended_cpdo.o
|
||||
|
||||
# Try really hard to avoid generating calls to __aeabi_uldivmod() from
|
||||
# float64_rem() due to loop elision.
|
||||
ifdef CONFIG_CC_IS_CLANG
|
||||
CFLAGS_softfloat.o += -mllvm -replexitval=never
|
||||
endif
|
||||
|
|
|
|||
|
|
@ -316,6 +316,8 @@ static struct clk clk_periph = {
|
|||
*/
|
||||
int clk_enable(struct clk *clk)
|
||||
{
|
||||
if (!clk)
|
||||
return 0;
|
||||
mutex_lock(&clocks_mutex);
|
||||
clk_enable_unlocked(clk);
|
||||
mutex_unlock(&clocks_mutex);
|
||||
|
|
|
|||
|
|
@ -75,7 +75,6 @@ ATTRIBUTE_GROUPS(vpe);
|
|||
|
||||
static void vpe_device_release(struct device *cd)
|
||||
{
|
||||
kfree(cd);
|
||||
}
|
||||
|
||||
static struct class vpe_class = {
|
||||
|
|
@ -157,6 +156,7 @@ out_dev:
|
|||
device_del(&vpe_device);
|
||||
|
||||
out_class:
|
||||
put_device(&vpe_device);
|
||||
class_unregister(&vpe_class);
|
||||
|
||||
out_chrdev:
|
||||
|
|
@ -169,7 +169,7 @@ void __exit vpe_module_exit(void)
|
|||
{
|
||||
struct vpe *v, *n;
|
||||
|
||||
device_del(&vpe_device);
|
||||
device_unregister(&vpe_device);
|
||||
class_unregister(&vpe_class);
|
||||
unregister_chrdev(major, VPE_MODULE_NAME);
|
||||
|
||||
|
|
|
|||
|
|
@ -313,7 +313,6 @@ ATTRIBUTE_GROUPS(vpe);
|
|||
|
||||
static void vpe_device_release(struct device *cd)
|
||||
{
|
||||
kfree(cd);
|
||||
}
|
||||
|
||||
static struct class vpe_class = {
|
||||
|
|
@ -497,6 +496,7 @@ out_dev:
|
|||
device_del(&vpe_device);
|
||||
|
||||
out_class:
|
||||
put_device(&vpe_device);
|
||||
class_unregister(&vpe_class);
|
||||
|
||||
out_chrdev:
|
||||
|
|
@ -509,7 +509,7 @@ void __exit vpe_module_exit(void)
|
|||
{
|
||||
struct vpe *v, *n;
|
||||
|
||||
device_del(&vpe_device);
|
||||
device_unregister(&vpe_device);
|
||||
class_unregister(&vpe_class);
|
||||
unregister_chrdev(major, VPE_MODULE_NAME);
|
||||
|
||||
|
|
|
|||
|
|
@ -733,10 +733,15 @@ void rtas_os_term(char *str)
|
|||
|
||||
snprintf(rtas_os_term_buf, 2048, "OS panic: %s", str);
|
||||
|
||||
/*
|
||||
* Keep calling as long as RTAS returns a "try again" status,
|
||||
* but don't use rtas_busy_delay(), which potentially
|
||||
* schedules.
|
||||
*/
|
||||
do {
|
||||
status = rtas_call(rtas_token("ibm,os-term"), 1, 1, NULL,
|
||||
__pa(rtas_os_term_buf));
|
||||
} while (rtas_busy_delay(status));
|
||||
} while (rtas_busy_delay_time(status));
|
||||
|
||||
if (status != 0)
|
||||
printk(KERN_EMERG "ibm,os-term call failed %d\n", status);
|
||||
|
|
|
|||
|
|
@ -67,6 +67,7 @@ perf_callchain_kernel(struct perf_callchain_entry_ctx *entry, struct pt_regs *re
|
|||
next_sp = fp[0];
|
||||
|
||||
if (next_sp == sp + STACK_INT_FRAME_SIZE &&
|
||||
validate_sp(sp, current, STACK_INT_FRAME_SIZE) &&
|
||||
fp[STACK_FRAME_MARKER] == STACK_FRAME_REGS_MARKER) {
|
||||
/*
|
||||
* This looks like an interrupt frame for an
|
||||
|
|
|
|||
|
|
@ -78,6 +78,7 @@ REQUEST(__field(0, 8, partition_id)
|
|||
)
|
||||
#include I(REQUEST_END)
|
||||
|
||||
#ifdef ENABLE_EVENTS_COUNTERINFO_V6
|
||||
/*
|
||||
* Not available for counter_info_version >= 0x8, use
|
||||
* run_instruction_cycles_by_partition(0x100) instead.
|
||||
|
|
@ -91,6 +92,7 @@ REQUEST(__field(0, 8, partition_id)
|
|||
__count(0x10, 8, cycles)
|
||||
)
|
||||
#include I(REQUEST_END)
|
||||
#endif
|
||||
|
||||
#define REQUEST_NAME system_performance_capabilities
|
||||
#define REQUEST_NUM 0x40
|
||||
|
|
@ -102,6 +104,7 @@ REQUEST(__field(0, 1, perf_collect_privileged)
|
|||
)
|
||||
#include I(REQUEST_END)
|
||||
|
||||
#ifdef ENABLE_EVENTS_COUNTERINFO_V6
|
||||
#define REQUEST_NAME processor_bus_utilization_abc_links
|
||||
#define REQUEST_NUM 0x50
|
||||
#define REQUEST_IDX_KIND "hw_chip_id=?"
|
||||
|
|
@ -193,6 +196,7 @@ REQUEST(__field(0, 4, phys_processor_idx)
|
|||
__count(0x28, 8, instructions_completed)
|
||||
)
|
||||
#include I(REQUEST_END)
|
||||
#endif
|
||||
|
||||
/* Processor_core_power_mode (0x95) skipped, no counters */
|
||||
/* Affinity_domain_information_by_virtual_processor (0xA0) skipped,
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ static struct attribute_group format_group = {
|
|||
|
||||
static struct attribute_group event_group = {
|
||||
.name = "events",
|
||||
.attrs = hv_gpci_event_attrs,
|
||||
/* .attrs is set in init */
|
||||
};
|
||||
|
||||
#define HV_CAPS_ATTR(_name, _format) \
|
||||
|
|
@ -292,6 +292,7 @@ static int hv_gpci_init(void)
|
|||
int r;
|
||||
unsigned long hret;
|
||||
struct hv_perf_caps caps;
|
||||
struct hv_gpci_request_buffer *arg;
|
||||
|
||||
hv_gpci_assert_offsets_correct();
|
||||
|
||||
|
|
@ -310,6 +311,36 @@ static int hv_gpci_init(void)
|
|||
/* sampling not supported */
|
||||
h_gpci_pmu.capabilities |= PERF_PMU_CAP_NO_INTERRUPT;
|
||||
|
||||
arg = (void *)get_cpu_var(hv_gpci_reqb);
|
||||
memset(arg, 0, HGPCI_REQ_BUFFER_SIZE);
|
||||
|
||||
/*
|
||||
* hcall H_GET_PERF_COUNTER_INFO populates the output
|
||||
* counter_info_version value based on the system hypervisor.
|
||||
* Pass the counter request 0x10 corresponds to request type
|
||||
* 'Dispatch_timebase_by_processor', to get the supported
|
||||
* counter_info_version.
|
||||
*/
|
||||
arg->params.counter_request = cpu_to_be32(0x10);
|
||||
|
||||
r = plpar_hcall_norets(H_GET_PERF_COUNTER_INFO,
|
||||
virt_to_phys(arg), HGPCI_REQ_BUFFER_SIZE);
|
||||
if (r) {
|
||||
pr_devel("hcall failed, can't get supported counter_info_version: 0x%x\n", r);
|
||||
arg->params.counter_info_version_out = 0x8;
|
||||
}
|
||||
|
||||
/*
|
||||
* Use counter_info_version_out value to assign
|
||||
* required hv-gpci event list.
|
||||
*/
|
||||
if (arg->params.counter_info_version_out >= 0x8)
|
||||
event_group.attrs = hv_gpci_event_attrs;
|
||||
else
|
||||
event_group.attrs = hv_gpci_event_attrs_v6;
|
||||
|
||||
put_cpu_var(hv_gpci_reqb);
|
||||
|
||||
r = perf_pmu_register(&h_gpci_pmu, h_gpci_pmu.name, -1);
|
||||
if (r)
|
||||
return r;
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue