Linux 3.7.4
Greg KH
maintainerI'm announcing the release of the 3.7.4 kernel.
All users of the 3.7 kernel series must upgrade.
The updated 3.7.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.7.y
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Makefile | 2 arch/arm64/include/asm/pgtable.h | 16 +++-- arch/s390/include/asm/timex.h | 28 +++++++++ arch/s390/kernel/time.c | 2 arch/s390/kvm/interrupt.c | 2 arch/sh/include/asm/elf.h | 4 - arch/x86/kernel/entry_32.S | 1 arch/x86/kernel/setup.c | 78 +++++++++++++++++++++++++++ drivers/base/firmware_class.c | 2 drivers/gpu/drm/radeon/r600_cs.c | 6 +- drivers/gpu/drm/radeon/radeon_cs.c | 5 + drivers/iommu/intel-iommu.c | 31 ++++++++++ drivers/net/ethernet/intel/igb/igb_main.c | 22 +++++-- drivers/staging/vt6656/bssdb.h | 1 drivers/staging/vt6656/int.h | 1 drivers/staging/vt6656/iocmd.h | 33 +++++------ drivers/staging/vt6656/iowpa.h | 8 +- drivers/staging/wlan-ng/prism2mgmt.c | 2 drivers/target/target_core_device.c | 1 drivers/target/target_core_fabric_configfs.c | 12 ++++ drivers/target/target_core_tpg.c | 1 drivers/target/target_core_transport.c | 11 ++- drivers/target/tcm_fc/tfc_sess.c | 12 +++- drivers/tty/pty.c | 2 drivers/tty/serial/8250/8250.c | 11 +++ drivers/tty/serial/8250/8250.h | 1 drivers/tty/serial/8250/8250_dw.c | 2 drivers/tty/serial/8250/8250_pci.c | 38 +++++++++++++ drivers/tty/serial/ifx6x60.c | 1 drivers/tty/serial/mxs-auart.c | 4 + drivers/tty/serial/vt8500_serial.c | 2 drivers/usb/chipidea/host.c | 3 + drivers/usb/serial/io_ti.c | 3 + drivers/usb/serial/option.c | 9 ++- drivers/xen/grant-table.c | 48 ++++++++++------ fs/ext4/inode.c | 2 include/target/target_core_base.h | 4 + include/uapi/linux/serial_core.h | 4 + sound/pci/hda/patch_hdmi.c | 2 sound/usb/quirks.c | 8 +- 40 files changed, 341 insertions(+), 84 deletions(-)
Ben Hutchings (1):
staging: vt6656: Fix inconsistent structure packing
Bjørn Mork (2):
USB: option: add TP-LINK HSUPA Modem MA180
USB: option: blacklist network interface on ONDA MT8205 4G LTE
David Henningsson (1):
ALSA: usb - fix race in creation of M-Audio Fast track pro driver
Eric Sandeen (1):
ext4: init pagevec in ext4_da_block_invalidatepages
Fabio Estevam (1):
usb: chipidea: Allow disabling streaming not only in udc mode
Frediano Ziglio (1):
xen: Fix stack corruption in xen_failsafe_callback for 32bit PVOPS guests.
Greg Kroah-Hartman (1):
Linux 3.7.4
Hannes Reinecke (1):
target: use correct sense code for LUN communication failure
Heiko Carstens (1):
s390/time: fix sched_clock() overflow
Ilija Hadzic (2):
drm/radeon: fix NULL pointer dereference in UMS mode drm/radeon: fix a bogus kfree
Jesse Barnes (1):
x86/Sandy Bridge: reserve pages when integrated graphics is present
Jiri Slaby (1):
pty: return EINVAL for TIOCGPTN for BSD ptys
Luciano Coelho (1):
firmware: make sure the fw file size is not 0
Mark Rustad (2):
tcm_fc: Do not indicate retry capability to initiators
tcm_fc: Do not report target role when target is not defined
Matt Wilson (1):
xen/grant-table: correctly initialize grant table version 1
Maxime Ripard (1):
tty: 8250_dw: Fix inverted arguments to serial_out in IRQ handler
Nicholas Bellinger (1):
target: Add link_magic for fabric allow_link destination target_items
Roland Dreier (3):
target: Fix missing CMD_T_ACTIVE bit regression for pending WRITEs
target: Fix use-after-free in LUN RESET handling
target: Release se_cmd when LUN lookup fails for TMR
Stefan Assmann (1):
igb: release already assigned MSI-X interrupts if setup fails
Steffen Trumtrar (1):
mxs: uart: fix setting RTS from software
Stephen Hurd (1):
8250/16?50: Add support for Broadcom TruManage redirected serial port
Takashi Iwai (1):
ALSA: hda/hdmi - Work around "alsactl restore" errors
Thomas Schwinge (1):
sh: Fix FDPIC binary loader
Tom Mingarelli (1):
intel-iommu: Prevent devices with RMRRs from being placed into SI Domain
Tormod Volden (1):
staging: wlan-ng: Fix clamping of returned SSID length
Wei Yongjun (1):
tty: serial: vt8500: fix return value check in vt8500_serial_probe()
Will Deacon (1):
arm64: mm: only wrprotect clean ptes if they are present
Wolfgang Frisch (1):
USB: io_ti: Fix NULL dereference in chase_port()
chao bi (1):
serial:ifx6x60:Delete SPI timer when shut down port
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 7 -SUBLEVEL = 3 +SUBLEVEL = 4 EXTRAVERSION = NAME = Terrified Chipmunk
arch/arm64/include/asm/pgtable.h +9 -7
@@ -132,9 +132,8 @@ extern struct page *empty_zero_page;#define pte_write (pte) (!(pte_val(pte) & PTE_RDONLY))#define pte_exec (pte) (!(pte_val(pte) & PTE_UXN)) -#define pte_present_exec_user (pte) \ - ((pte_val(pte) & (PTE_VALID | PTE_USER | PTE_UXN)) == \ - (PTE_VALID | PTE_USER)) +#define pte_present_user (pte) \ + ((pte_val(pte) & (PTE_VALID | PTE_USER)) == (PTE_VALID | PTE_USER))#define PTE_BIT_FUNC (fn,op) \ static inline pte_t pte_##fn(pte_t pte) { pte_val(pte) op; return pte; }
@@ -157,10 +156,13 @@ extern void __sync_icache_dcache(pte_t pteval, unsigned long addr);static inline void set_pte_at (struct mm_struct *mm,unsigned long addr,pte_t *ptep,pte_t pte) { -if (pte_present_exec_user (pte)) -__sync_icache_dcache (pte, addr); -if (!pte_dirty (pte)) - pte =pte_wrprotect (pte); +if (pte_present_user (pte)) { +if (pte_exec (pte)) +__sync_icache_dcache (pte, addr); +if (!pte_dirty (pte)) + pte =pte_wrprotect (pte); + } +set_pte (ptep, pte); }
arch/s390/include/asm/timex.h +28 -0
@@ -128,4 +128,32 @@ static inline unsigned long long get_clock_monotonic(void) return get_clock_xt() - sched_clock_base_cc; } +/** +* tod_to_ns - convert a TOD format value to nanoseconds +* @todval: to be converted TOD format value +* Returns: number of nanoseconds that correspond to the TOD format value +* +* Converting a 64 Bit TOD format value to nanoseconds means that the value +* must be divided by 4.096. In order to achieve that we multiply with 125 +* and divide by 512: +* +* ns = (todval * 125) >> 9; +* +* In order to avoid an overflow with the multiplication we can rewrite this. +* With a split todval == 2^32 * th + tl (th upper 32 bits, tl lower 32 bits) +* we end up with +* +* ns = ((2^32 * th + tl) * 125 ) >> 9; +* -> ns = (2^23 * th * 125) + ((tl * 125) >> 9); +* +*/ +static inline unsigned long long tod_to_ns (unsigned long long todval) +{ +unsigned long long ns; + + ns = ((todval >>32 ) <<23 ) *125 ; + ns += ((todval &0xffffffff ) *125 ) >>9 ; +return ns; +} +#endif
arch/s390/kernel/time.c +1 -1
@@ -63,7 +63,7 @@ static DEFINE_PER_CPU(struct clock_event_device, comparators);*/ unsigned long long notrace __kprobes sched_clock (void ) { -return (get_clock_monotonic () *125 ) >>9 ; +return tod_to_ns (get_clock_monotonic ()); }/*
arch/s390/kvm/interrupt.c +1 -1
@@ -408,7 +408,7 @@ int kvm_s390_handle_wait(struct kvm_vcpu *vcpu)return 0 ; } - sltime = ((vcpu->arch.sie_block->ckc - now)*125 )>>9 ; + sltime =tod_to_ns (vcpu->arch.sie_block->ckc - now);hrtimer_start (&vcpu->arch.ckc_timer,ktime_set (0 , sltime) ,HRTIMER_MODE_REL );VCPU_EVENT (vcpu,5 ,"enabled wait via clock comparator: %llx ns" , sltime);
arch/sh/include/asm/elf.h +2 -2
@@ -203,9 +203,9 @@ extern void __kernel_vsyscall;if (vdso_enabled) \NEW_AUX_ENT (AT_SYSINFO_EHDR ,VDSO_BASE ); \else \ -NEW_AUX_ENT (AT_IGNORE ,0 ); + NEW_AUX_ENT(AT_IGNORE, 0)#else -#define VSYSCALL_AUX_ENT +#define VSYSCALL_AUX_ENT NEW_AUX_ENT(AT_IGNORE, 0)#endif /* CONFIG_VSYSCALL */ #ifdef CONFIG_SH_FPU
arch/x86/kernel/entry_32.S +0 -1
@@ -1084,7 +1084,6 @@ ENTRY(xen_failsafe_callback) lea 16(%esp),%esp CFI_ADJUST_CFA_OFFSET -16 jz 5f - addl $16,%esp jmp iret_exc 5: pushl_cfi $-1 /* orig_ax = -1 => not a system call */ SAVE_ALL
arch/x86/kernel/setup.c +78 -0
96 lines not on this page · raw message
drivers/base/firmware_class.c +1 -1
@@ -295,7 +295,7 @@ static bool fw_read_file_contents(struct file *file, struct firmware_buf *fw_bufchar *buf; size =fw_file_size (file); -if (size <0 ) +if (size <=0 )return false; buf =vmalloc (size);if (!buf)
drivers/gpu/drm/radeon/r600_cs.c +4 -2
@@ -2429,8 +2429,10 @@ static void r600_cs_parser_fini(struct radeon_cs_parser *parser, int error)kfree (parser->relocs);for (i =0 ; i < parser->nchunks; i++) {kfree (parser->chunks[i].kdata); -kfree (parser->chunks[i].kpage[0 ]); -kfree (parser->chunks[i].kpage[1 ]); +if (parser->rdev && (parser->rdev->flags &RADEON_IS_AGP )) { +kfree (parser->chunks[i].kpage[0 ]); +kfree (parser->chunks[i].kpage[1 ]); + } }kfree (parser->chunks);kfree (parser->chunks_array);
drivers/gpu/drm/radeon/radeon_cs.c +3 -2
@@ -266,7 +266,7 @@ int radeon_cs_parser_init(struct radeon_cs_parser *p, void *data) p->chunks[p->chunk_ib_idx].length_dw);return -EINVAL ; } -if ((p->rdev->flags &RADEON_IS_AGP )) { +if (p->rdev && (p->rdev->flags &RADEON_IS_AGP )) { p->chunks[p->chunk_ib_idx].kpage[0 ] =kmalloc (PAGE_SIZE ,GFP_KERNEL ); p->chunks[p->chunk_ib_idx].kpage[1 ] =kmalloc (PAGE_SIZE ,GFP_KERNEL ); if (p->chunks[p->chunk_ib_idx].kpage[0] == NULL ||
@@ -570,7 +570,8 @@ static int radeon_cs_update_pages(struct radeon_cs_parser *p, int pg_idx)struct radeon_cs_chunk *ibc = &p->chunks[p->chunk_ib_idx];int i;int size =PAGE_SIZE ; -bool copy1 = (p->rdev->flags &RADEON_IS_AGP ) ? false : true; +bool copy1 = (p->rdev && (p->rdev->flags &RADEON_IS_AGP )) ? + false : true;for (i = ibc->last_copied_page +1 ; i < pg_idx; i++) { if (DRM_COPY_FROM_USER(p->ib.ptr + (i * (PAGE_SIZE/4)),
drivers/iommu/intel-iommu.c +31 -0
@@ -2327,8 +2327,39 @@ static int domain_add_dev_info(struct dmar_domain *domain,return 0 ; } +static bool device_has_rmrr (struct pci_dev *dev) +{ +struct dmar_rmrr_unit *rmrr; +int i; + +for_each_rmrr_units (rmrr) { +for (i =0 ; i < rmrr->devices_cnt; i++) { +/* +* Return TRUE if this RMRR contains the device that +* is passed in. +*/ +if (rmrr->devices[i] == dev) +return true; + } + } +return false; +} +static int iommu_should_identity_map (struct pci_dev *pdev,int startup) { + +/* +* We want to prevent any device associated with an RMRR from +* getting placed into the SI Domain. This is done because +* problems exist when devices are moved in and out of domains +* and their respective RMRR info is lost. We exempt USB devices +* from this process due to their usage of RMRRs that are known +* to not be needed after BIOS hand-off to OS. +*/ +if (device_has_rmrr (pdev) && + (pdev->class >>8 ) !=PCI_CLASS_SERIAL_USB ) +return 0 ; +if ((iommu_identity_mapping &IDENTMAP_AZALIA ) &&IS_AZALIA (pdev))return 1 ;
drivers/net/ethernet/intel/igb/igb_main.c +16 -6
@@ -909,17 +909,18 @@ static int igb_request_msix(struct igb_adapter *adapter) {struct net_device *netdev = adapter->netdev;struct e1000_hw *hw = &adapter->hw; -int i, err =0 , vector =0 ; +int i, err =0 , vector =0 , free_vector =0 ; err =request_irq (adapter->msix_entries[vector].vector, igb_msix_other,0 , netdev->name, adapter);if (err) - goto out; - vector++; + goto err_out;for (i =0 ; i < adapter->num_q_vectors; i++) {struct igb_q_vector *q_vector = adapter->q_vector[i]; + vector++; + q_vector->itr_register = hw->hw_addr +E1000_EITR (vector);if (q_vector->rx.ring && q_vector->tx.ring)
@@ -938,13 +939,22 @@ static int igb_request_msix(struct igb_adapter *adapter) igb_msix_ring,0 , q_vector->name, q_vector);if (err) - goto out; - vector++; + goto err_free; }igb_configure_msix (adapter);return 0 ; -out: + +err_free: +/* free already assigned IRQs */ +free_irq (adapter->msix_entries[free_vector++].vector, adapter); + + vector--; +for (i =0 ; i < vector; i++) { +free_irq (adapter->msix_entries[free_vector++].vector, + adapter->q_vector[i]); + } +err_out:return err; }
drivers/staging/vt6656/bssdb.h +0 -1
@@ -90,7 +90,6 @@ typedef struct tagSRSNCapObject { } SRSNCapObject, *PSRSNCapObject;// BSS info(AP) -#pragma pack(1) typedef struct tagKnownBSS { // BSS info BOOL bActive;
drivers/staging/vt6656/int.h +0 -1
@@ -34,7 +34,6 @@#include "device.h" /*--------------------- Export Definitions -------------------------*/ -#pragma pack(1) typedef struct tagSINTData { BYTE byTSR0; BYTE byPkt0;
drivers/staging/vt6656/iocmd.h +16 -17
@@ -95,13 +95,12 @@ typedef enum tagWZONETYPE {// Ioctl interface structure // Command structure // -#pragma pack(1)typedef struct tagSCmdRequest {u8 name[16 ];void *data;u16 wResult;u16 wCmdCode; -}SCmdRequest , *PSCmdRequest ; +} __packed SCmdRequest, *PSCmdRequest;// // Scan
@@ -111,7 +110,7 @@ typedef struct tagSCmdScan {u8 ssid[SSID_MAXLEN +2 ]; -} SCmdScan, *PSCmdScan; +}__packed SCmdScan, *PSCmdScan;// // BSS Join
@@ -126,7 +125,7 @@ typedef struct tagSCmdBSSJoin {BOOL bPSEnable;BOOL bShareKeyAuth; -} SCmdBSSJoin, *PSCmdBSSJoin; +}__packed SCmdBSSJoin, *PSCmdBSSJoin;// // Zonetype Setting
@@ -137,7 +136,7 @@ typedef struct tagSCmdZoneTypeSet {BOOL bWrite;WZONETYPE ZoneType; -} SCmdZoneTypeSet, *PSCmdZoneTypeSet; +}__packed SCmdZoneTypeSet, *PSCmdZoneTypeSet; typedef struct tagSWPAResult { char ifname[100];
@@ -145,7 +144,7 @@ typedef struct tagSWPAResult {u8 key_mgmt;u8 eap_type;BOOL authenticated; -} SWPAResult, *PSWPAResult; +}__packed SWPAResult, *PSWPAResult; typedef struct tagSCmdStartAP {
@@ -157,7 +156,7 @@ typedef struct tagSCmdStartAP {BOOL bShareKeyAuth;u8 byBasicRate; -} SCmdStartAP, *PSCmdStartAP; +}__packed SCmdStartAP, *PSCmdStartAP; typedef struct tagSCmdSetWEP {
@@ -167,7 +166,7 @@ typedef struct tagSCmdSetWEP {BOOL bWepKeyAvailable[WEP_NKEYS ];u32 auWepKeyLength[WEP_NKEYS ]; -} SCmdSetWEP, *PSCmdSetWEP; +}__packed SCmdSetWEP, *PSCmdSetWEP; typedef struct tagSBSSIDItem {
@@ -180,14 +179,14 @@ typedef struct tagSBSSIDItem {BOOL bWEPOn;u32 uRSSI; -} SBSSIDItem; +}__packed SBSSIDItem;typedef struct tagSBSSIDList {u32 uItem;SBSSIDItem sBSSIDList[0 ]; -}SBSSIDList , *PSBSSIDList ; +} __packed SBSSIDList, *PSBSSIDList; typedef struct tagSNodeItem {
@@ -208,7 +207,7 @@ typedef struct tagSNodeItem {u32 uTxAttempts;u16 wFailureRatio; -} SNodeItem; +}__packed SNodeItem; typedef struct tagSNodeList {
@@ -216,7 +215,7 @@ typedef struct tagSNodeList {u32 uItem;SNodeItem sNodeList[0 ]; -} SNodeList, *PSNodeList; +}__packed SNodeList, *PSNodeList; typedef struct tagSCmdLinkStatus {
@@ -229,7 +228,7 @@ typedef struct tagSCmdLinkStatus {u32 uChannel;u32 uLinkRate; -} SCmdLinkStatus, *PSCmdLinkStatus; +}__packed SCmdLinkStatus, *PSCmdLinkStatus;// // 802.11 counter
@@ -247,7 +246,7 @@ typedef struct tagSDot11MIBCount {u32 ReceivedFragmentCount;u32 MulticastReceivedFrameCount;u32 FCSErrorCount; -} SDot11MIBCount, *PSDot11MIBCount; +}__packed SDot11MIBCount, *PSDot11MIBCount;
@@ -355,13 +354,13 @@ typedef struct tagSStatMIBCount {u32 ullTxBroadcastBytes[2 ];u32 ullTxMulticastBytes[2 ];u32 ullTxDirectedBytes[2 ]; -} SStatMIBCount, *PSStatMIBCount; +}__packed SStatMIBCount, *PSStatMIBCount;typedef struct tagSCmdValue {u32 dwValue; -}SCmdValue , *PSCmdValue ; +} __packed SCmdValue, *PSCmdValue;// // hostapd & viawget ioctl related
@@ -431,7 +430,7 @@ struct viawget_hostapd_param {u8 ssid[32 ]; } scan_req; } u; -}; +} __packed;/*--------------------- Export Classes ----------------------------*/
drivers/staging/vt6656/iowpa.h +3 -5
@@ -67,12 +67,11 @@ enum { -#pragma pack(1)typedef struct viawget_wpa_header {u8 type;u16 req_ie_len;u16 resp_ie_len; -}viawget_wpa_header ; +} __packed viawget_wpa_header;struct viawget_wpa_param {u32 cmd;
@@ -113,9 +112,8 @@ struct viawget_wpa_param {u8 *buf; } scan_results; } u; -}; +} __packed; -#pragma pack(1)struct viawget_scan_result {u8 bssid[6 ];u8 ssid[32 ];
@@ -130,7 +128,7 @@ struct viawget_scan_result {int noise;int level;int maxrate; -}; +} __packed;/*--------------------- Export Classes ----------------------------*/
drivers/staging/wlan-ng/prism2mgmt.c +1 -1
@@ -406,7 +406,7 @@ int prism2mgmt_scan_results(wlandevice_t *wlandev, void *msgp)/* SSID */ req->ssid.status = P80211ENUM_msgitem_status_data_ok; req->ssid.data.len =le16_to_cpu (item->ssid.len); - req->ssid.data.len =min_t (u16, req->ssid.data.len,WLAN_BSSID_LEN ); + req->ssid.data.len =min_t (u16, req->ssid.data.len,WLAN_SSID_MAXLEN );memcpy (req->ssid.data.data, item->ssid.data, req->ssid.data.len);/* supported rates */
drivers/target/target_core_device.c +1 -0
@@ -1624,6 +1624,7 @@ int core_dev_setup_virtual_lun0(void) ret =PTR_ERR (dev); goto out; } + dev->dev_link_magic =SE_DEV_LINK_MAGIC ; se_dev->se_dev_ptr = dev; g_lun0_dev = dev;
drivers/target/target_core_fabric_configfs.c +12 -0
@@ -71,6 +71,12 @@ static int target_fabric_mappedlun_link(struct se_portal_group *se_tpg;struct config_item *nacl_ci, *tpg_ci, *tpg_ci_s, *wwn_ci, *wwn_ci_s;int ret =0 , lun_access; + +if (lun->lun_link_magic !=SE_LUN_LINK_MAGIC ) { +pr_err ("Bad lun->lun_link_magic, not a valid lun_ci pointer:" +" %p to struct lun: %p\n" , lun_ci, lun); +return -EFAULT ; + }/* * Ensure that the source port exists */
@@ -745,6 +751,12 @@ static int target_fabric_port_link(struct target_fabric_configfs *tf;int ret; +if (dev->dev_link_magic !=SE_DEV_LINK_MAGIC ) { +pr_err ("Bad dev->dev_link_magic, not a valid se_dev_ci pointer:" +" %p to struct se_device: %p\n" , se_dev_ci, dev); +return -EFAULT ; + } + tpg_ci = &lun_ci->ci_parent->ci_group->cg_item; se_tpg =container_of (to_config_group (tpg_ci), struct se_portal_group, tpg_group);
drivers/target/target_core_tpg.c +1 -0
@@ -672,6 +672,7 @@ int core_tpg_register(for (i =0 ; i <TRANSPORT_MAX_LUNS_PER_TPG ; i++) { lun = se_tpg->tpg_lun_list[i]; lun->unpacked_lun = i; + lun->lun_link_magic =SE_LUN_LINK_MAGIC ; lun->lun_status =TRANSPORT_LUN_STATUS_FREE ;atomic_set (&lun->lun_acl_count,0 );init_completion (&lun->lun_shutdown_comp);
drivers/target/target_core_transport.c +7 -4
@@ -545,9 +545,6 @@ static void transport_lun_remove_cmd(struct se_cmd *cmd)void transport_cmd_finish_abort (struct se_cmd *cmd,int remove) { -if (!(cmd->se_cmd_flags &SCF_SCSI_TMR_CDB )) -transport_lun_remove_cmd (cmd); -if (transport_cmd_check_stop_to_fabric (cmd))return ;if (remove)
@@ -1074,6 +1071,7 @@ struct se_device *transport_add_device_to_core_hba( dev->se_hba = hba; dev->se_sub_dev = se_dev; dev->transport = transport; + dev->dev_link_magic =SE_DEV_LINK_MAGIC ;INIT_LIST_HEAD (&dev->dev_list);INIT_LIST_HEAD (&dev->dev_sep_list);INIT_LIST_HEAD (&dev->dev_tmr_list);
@@ -1616,6 +1614,8 @@ static void target_complete_tmr_failure(struct work_struct *work) se_cmd->se_tmr_req->response =TMR_LUN_DOES_NOT_EXIST ; se_cmd->se_tfo->queue_tm_rsp (se_cmd); + +transport_cmd_check_stop_to_fabric (se_cmd); }/**
@@ -1853,6 +1853,7 @@ void target_execute_cmd(struct se_cmd *cmd) } cmd->t_state =TRANSPORT_PROCESSING ; + cmd->transport_state |=CMD_T_ACTIVE ;spin_unlock_irq (&cmd->t_state_lock);if (dev->dev_task_attr_type !=SAM_TASK_ATTR_EMULATED )
@@ -3024,7 +3025,7 @@ int transport_send_check_condition_and_sense(/* ILLEGAL REQUEST */ buffer[SPC_SENSE_KEY_OFFSET ] =ILLEGAL_REQUEST ;/* LOGICAL UNIT COMMUNICATION FAILURE */ - buffer[SPC_ASC_KEY_OFFSET ] =0x80 ; + buffer[SPC_ASC_KEY_OFFSET ] =0x08 ;break ; }/*
@@ -3089,6 +3090,8 @@ void transport_send_task_abort(struct se_cmd *cmd) } cmd->scsi_status =SAM_STAT_TASK_ABORTED ; +transport_lun_remove_cmd (cmd); +pr_debug ("Setting SAM_STAT_TASK_ABORTED status for CDB: 0x%02x," " ITT: 0x%08x\n" , cmd->t_task_cdb[0 ], cmd->se_tfo->get_task_tag (cmd));
drivers/target/tcm_fc/tfc_sess.c +9 -3
@@ -355,11 +355,11 @@ static int ft_prli_locked(struct fc_rport_priv *rdata, u32 spp_len, tport =ft_tport_create (rdata->local_port);if (!tport) -return 0 ;/* not a target for this local port */ + goto not_target;/* not a target for this local port */ acl =ft_acl_get (tport->tpg, rdata);if (!acl) -return 0 ; + goto not_target;/* no target for this remote */ if (!rspp) goto fill;
@@ -396,12 +396,18 @@ static int ft_prli_locked(struct fc_rport_priv *rdata, u32 spp_len,/* * OR in our service parameters with other provider (initiator), if any. -* TBD XXX - indicate RETRY capability? */ fill: fcp_parm =ntohl (spp->spp_params); + fcp_parm &= ~FCP_SPPF_RETRY ; spp->spp_params =htonl (fcp_parm |FCP_SPPF_TARG_FCN );return FC_SPP_RESP_ACK ; + +not_target: + fcp_parm =ntohl (spp->spp_params); + fcp_parm &= ~FCP_SPPF_TARG_FCN ; + spp->spp_params =htonl (fcp_parm); +return 0 ; }/**
drivers/tty/pty.c +2 -0
@@ -395,6 +395,8 @@ static int pty_bsd_ioctl(struct tty_struct *tty,return pty_set_lock (tty, (int __user *) arg);case TIOCSIG :/* Send signal to other side of pty */ return pty_signal (tty, (int ) arg); +case TIOCGPTN :/* TTY returns ENOTTY, but glibc expects EINVAL here */ +return -EINVAL ; }return -ENOIOCTLCMD ; }
drivers/tty/serial/8250/8250.c +11 -0
@@ -290,6 +290,12 @@ static const struct serial8250_config uart_config[] = { UART_FCR_R_TRIG_00 | UART_FCR_T_TRIG_00, .flags = UART_CAP_FIFO, }, + [PORT_BRCM_TRUMANAGE] = { + .name = "TruManage", + .fifo_size = 1, + .tx_loadsz = 1024, + .flags = UART_CAP_HFIFO, + }, [PORT_8250_CIR] = { .name = "CIR port" }
@@ -1441,6 +1447,11 @@ void serial8250_tx_chars(struct uart_8250_port *up) port->icount.tx++;if (uart_circ_empty (xmit))break ; +if (up->capabilities &UART_CAP_HFIFO ) { +if ((serial_port_in (port,UART_LSR ) &BOTH_EMPTY ) != +BOTH_EMPTY ) +break ; + } }while (--count >0 );if (uart_circ_chars_pending (xmit) <WAKEUP_CHARS )
drivers/tty/serial/8250/8250.h +1 -0
@@ -40,6 +40,7 @@ struct serial8250_config {#define UART_CAP_AFE (1 << 11)/* MCR-based hw flow control */ #define UART_CAP_UUE (1 << 12)/* UART needs IER bit 6 set (Xscale) */ #define UART_CAP_RTOIE (1 << 13)/* UART needs IER bit 4 set (Xscale, Tegra) */ +#define UART_CAP_HFIFO (1 << 14)/* UART has a "hidden" FIFO */ #define UART_BUG_QUOT (1 << 0)/* UART has buggy quot LSB */ #define UART_BUG_TXEN (1 << 1)/* UART has buggy TX IIR status */
drivers/tty/serial/8250/8250_dw.c +1 -1
@@ -79,7 +79,7 @@ static int dw8250_handle_irq(struct uart_port *p) }else if ((iir &UART_IIR_BUSY ) ==UART_IIR_BUSY ) {/* Clear the USR and write the LCR again. */ (void )p->serial_in (p,UART_USR ); - p->serial_out (p, d->last_lcr,UART_LCR ); + p->serial_out (p,UART_LCR , d->last_lcr);return 1 ; }
drivers/tty/serial/8250/8250_pci.c +38 -0
@@ -1085,6 +1085,18 @@ pci_omegapci_setup(struct serial_private *priv,return setup_port (priv, port,2 , idx *8 ,0 ); } +static int +pci_brcm_trumanage_setup (struct serial_private *priv, +const struct pciserial_board *board, +struct uart_8250_port *port,int idx) +{ +int ret =pci_default_setup (priv, board, port, idx); + + port->port.type =PORT_BRCM_TRUMANAGE ; + port->port.flags = (port->port.flags |UPF_FIXED_PORT |UPF_FIXED_TYPE ); +return ret; +} +static int skip_tx_en_setup (struct serial_private *priv,const struct pciserial_board *board,struct uart_8250_port *port,int idx)
@@ -1213,6 +1225,7 @@ pci_wch_ch353_setup(struct serial_private *priv,#define PCI_VENDOR_ID_AGESTAR 0x5372#define PCI_DEVICE_ID_AGESTAR_9375 0x6872#define PCI_VENDOR_ID_ASIX 0x9710 +#define PCI_DEVICE_ID_BROADCOM_TRUMANAGE 0x160a/* Unknown vendors/cards - this should not be in linux/pci_ids.h */ #define PCI_SUBDEVICE_ID_UNKNOWN_0x1584 0x1584
@@ -1788,6 +1801,17 @@ static struct pci_serial_quirk pci_serial_quirks[] __refdata = { .setup = pci_asix_setup, },/* +* Broadcom TruManage (NetXtreme) +*/ + { + .vendor = PCI_VENDOR_ID_BROADCOM, + .device = PCI_DEVICE_ID_BROADCOM_TRUMANAGE, + .subvendor = PCI_ANY_ID, + .subdevice = PCI_ANY_ID, + .setup = pci_brcm_trumanage_setup, + }, + +/* * Default "match everything" terminator entry */ {
@@ -1975,6 +1999,7 @@ enum pci_board_num_t { pbn_ce4100_1_115200, pbn_omegapci, pbn_NETMOS9900_2s_115200, + pbn_brcm_trumanage, };/*
@@ -2674,6 +2699,12 @@ static struct pciserial_board pci_boards[] __devinitdata = { .num_ports = 2, .base_baud = 115200, }, + [pbn_brcm_trumanage] = { + .flags = FL_BASE0, + .num_ports = 1, + .reg_shift = 2, + .base_baud = 115200, + }, }; static const struct pci_device_id blacklist[] = {
@@ -4238,6 +4269,13 @@ static struct pci_device_id serial_pci_tbl[] = { pbn_omegapci },/* +* Broadcom TruManage +*/ + {PCI_VENDOR_ID_BROADCOM ,PCI_DEVICE_ID_BROADCOM_TRUMANAGE , +PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 , + pbn_brcm_trumanage }, + +/* * AgeStar as-prs2-009 */ { PCI_VENDOR_ID_AGESTAR, PCI_DEVICE_ID_AGESTAR_9375,
drivers/tty/serial/ifx6x60.c +1 -0
@@ -552,6 +552,7 @@ static void ifx_port_shutdown(struct tty_port *port) container_of(port, struct ifx_spi_device, tty_port);mrdy_set_low (ifx_dev); +del_timer (&ifx_dev->spi_timer);clear_bit (IFX_SPI_STATE_TIMER_PENDING , &ifx_dev->flags);tasklet_kill (&ifx_dev->io_work_tasklet); }
drivers/tty/serial/mxs-auart.c +3 -1
@@ -260,10 +260,12 @@ static void mxs_auart_set_mctrl(struct uart_port *u, unsigned mctrl)u32 ctrl =readl (u->membase +AUART_CTRL2 ); - ctrl &= ~AUART_CTRL2_RTSEN ; + ctrl &= ~(AUART_CTRL2_RTSEN |AUART_CTRL2_RTS );if (mctrl &TIOCM_RTS ) {if (tty_port_cts_enabled (&u->state->port)) ctrl |=AUART_CTRL2_RTSEN ; +else + ctrl |=AUART_CTRL2_RTS ; } s->ctrl = mctrl;
drivers/tty/serial/vt8500_serial.c +1 -1
@@ -604,7 +604,7 @@ static int __devinit vt8500_serial_probe(struct platform_device *pdev) vt8500_port->uart.flags =UPF_IOREMAP |UPF_BOOT_AUTOCONF ; vt8500_port->clk =of_clk_get (pdev->dev.of_node,0 ); -if (vt8500_port->clk) { +if (!IS_ERR (vt8500_port->clk)) { vt8500_port->uart.uartclk =clk_get_rate (vt8500_port->clk); }else {/* use the default of 24Mhz if not specified and warn */
drivers/usb/chipidea/host.c +3 -0
@@ -129,6 +129,9 @@ static int host_start(struct ci13xxx *ci)else ci->hcd = hcd; +if (ci->platdata->flags &CI13XXX_DISABLE_STREAMING ) +hw_write (ci,OP_USBMODE ,USBMODE_CI_SDIS ,USBMODE_CI_SDIS ); +return ret; }
drivers/usb/serial/io_ti.c +3 -0
@@ -534,6 +534,9 @@ static void chase_port(struct edgeport_port *port, unsigned long timeout,wait_queue_t wait;unsigned long flags; +if (!tty) +return ; +if (!timeout) timeout = (HZ *EDGE_CLOSING_WAIT )/100 ;
drivers/usb/serial/option.c +8 -1
@@ -450,6 +450,10 @@ static void option_instat_callback(struct urb *urb);#define PETATEL_VENDOR_ID 0x1ff4#define PETATEL_PRODUCT_NP10T 0x600e +/* TP-LINK Incorporated products */ +#define TPLINK_VENDOR_ID 0x2357 +#define TPLINK_PRODUCT_MA180 0x0201 +/* some devices interfaces need special handling due to a number of reasons */ enum option_blacklist_reason {OPTION_BLACKLIST_NONE =0 ,
@@ -931,7 +935,8 @@ static const struct usb_device_id option_ids[] = { { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0254, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0257, 0xff, 0xff, 0xff), /* ZTE MF821 */ .driver_info = (kernel_ulong_t)&net_intf3_blacklist }, - { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0265, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0265, 0xff, 0xff, 0xff), /* ONDA MT8205 */ + .driver_info = (kernel_ulong_t)&net_intf4_blacklist }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0284, 0xff, 0xff, 0xff), /* ZTE MF880 */ .driver_info = (kernel_ulong_t)&net_intf4_blacklist }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0317, 0xff, 0xff, 0xff) },
@@ -1312,6 +1317,8 @@ static const struct usb_device_id option_ids[] = { { USB_DEVICE_AND_INTERFACE_INFO(MEDIATEK_VENDOR_ID, MEDIATEK_PRODUCT_DC_4COM2, 0xff, 0x00, 0x00) }, { USB_DEVICE(CELLIENT_VENDOR_ID, CELLIENT_PRODUCT_MEN200) }, { USB_DEVICE(PETATEL_VENDOR_ID, PETATEL_PRODUCT_NP10T) }, + { USB_DEVICE(TPLINK_VENDOR_ID, TPLINK_PRODUCT_MA180), + .driver_info = (kernel_ulong_t)&net_intf4_blacklist }, { } /* Terminating entry */ };MODULE_DEVICE_TABLE (usb, option_ids);
drivers/xen/grant-table.c +29 -19
147 lines not on this page · raw message
fs/ext4/inode.c +2 -0
@@ -1503,6 +1503,8 @@ static void ext4_da_block_invalidatepages(struct mpage_da_data *mpd) index = mpd->first_page; end = mpd->next_page -1 ; + +pagevec_init (&pvec,0 );while (index <= end) { nr_pages =pagevec_lookup (&pvec, mapping, index,PAGEVEC_SIZE );if (nr_pages ==0 )
include/target/target_core_base.h +4 -0
@@ -734,6 +734,8 @@ struct se_subsystem_dev { };struct se_device { +#define SE_DEV_LINK_MAGIC 0xfeeddeef +u32 dev_link_magic;/* RELATIVE TARGET PORT IDENTIFER Counter */ u16 dev_rpti_counter;/* Used for SAM Task Attribute ordering */
@@ -820,6 +822,8 @@ struct se_port_stat_grps { };struct se_lun { +#define SE_LUN_LINK_MAGIC 0xffff7771 +u32 lun_link_magic;/* See transport_lun_status_table */ enum transport_lun_status_table lun_status;u32 lun_access;
include/uapi/linux/serial_core.h +3 -1
@@ -49,7 +49,9 @@#define PORT_XR17D15X 21/* Exar XR17D15x UART */ #define PORT_LPC3220 22/* NXP LPC32xx SoC "Standard" UART */ #define PORT_8250_CIR 23/* CIR infrared port, has its own driver */ -#define PORT_MAX_8250 23/* max port ID */ +#define PORT_XR17V35X 24/* Exar XR17V35x UARTs */ +#define PORT_BRCM_TRUMANAGE 24 +#define PORT_MAX_8250 25/* max port ID */ /* * ARM specific type numbers. These are not currently guaranteed
sound/pci/hda/patch_hdmi.c +1 -1
@@ -1499,7 +1499,7 @@ static int hdmi_chmap_ctl_put(struct snd_kcontrol *kcontrol, ctl_idx =snd_ctl_get_ioffidx (kcontrol, &ucontrol->id); substream =snd_pcm_chmap_substream (info, ctl_idx);if (!substream || !substream->runtime) -return -EBADFD ; +return 0 ;/* just for avoiding error from alsactl restore */ switch (substream->runtime->status->state) {case SNDRV_PCM_STATE_OPEN :case SNDRV_PCM_STATE_SETUP :
sound/usb/quirks.c +5 -3
@@ -387,11 +387,13 @@ static int snd_usb_fasttrackpro_boot_quirk(struct usb_device *dev)* rules */ err =usb_driver_set_configuration (dev,2 ); -if (err <0 ) { +if (err <0 )snd_printdd ("error usb_driver_set_configuration: %d\n" , err); -return -ENODEV ; - } +/* Always return an error, so that we stop creating a device +that will just be destroyed and recreated with a new +configuration */ +return -ENODEV ; }else snd_printk (KERN_INFO "usb-audio: Fast Track Pro config OK\n" );
A message that is not in the archive (sent off-list or not yet received): [email protected]
Greg KH
maintainerQuoted 14 lines · Sven Köhler
Hi,
I had to revert this, because it resulted in
LD
init/built-in.oarch/x86/built-in.o: In function `setup_arch':
(.init.text+0x359e): undefined reference toearly_pci_allowed' arch/x86/built-in.o: In functionsetup_arch':
(.init.text+0x35b2): undefined reference toread_pci_config_16' arch/x86/built-in.o: In functionsetup_arch':
(.init.text+0x35cb): undefined reference to `read_pci_config_16' make[1]: *** [vmlinux] Fehler 1
make: *** [sub-make] Fehler 2
Quoted 2 lines
I'm building a Xen domU kernel without modules (one big binary of everything).
You had to revert _what_?
confused,
greg k-h
Am 24.01.2013 03:24, schrieb Greg KH:
Quoted 15 lines · Sven K�hler
Quoted 14 lines
Hi,
I had to revert this, because it resulted in
LD
init/built-in.oarch/x86/built-in.o: In function `setup_arch':
(.init.text+0x359e): undefined reference toearly_pci_allowed' arch/x86/built-in.o: In functionsetup_arch':
(.init.text+0x35b2): undefined reference toread_pci_config_16' arch/x86/built-in.o: In functionsetup_arch':
(.init.text+0x35cb): undefined reference to `read_pci_config_16' make[1]: *** [vmlinux] Fehler 1
make: *** [sub-make] Fehler 2
Quoted 5 lines
Quoted 2 lines
I'm building a Xen domU kernel without modules (one big binary of everything).
You had to revert _what_?
The patch from 3.7.3 to 3.7.4.
Sorry for the confusion.
The problem seems to be caused by this:
Greg KH
maintainerQuoted 20 lines · Sven K�hler
Am 24.01.2013 03:24, schrieb Greg KH:
Quoted 19 lines · Sven K�hler
Quoted 16 lines
Hi,
I had to revert this, because it resulted in
LD
init/built-in.oarch/x86/built-in.o: In function `setup_arch':
(.init.text+0x359e): undefined reference toearly_pci_allowed' arch/x86/built-in.o: In functionsetup_arch':
(.init.text+0x35b2): undefined reference toread_pci_config_16' arch/x86/built-in.o: In functionsetup_arch':
(.init.text+0x35cb): undefined reference to `read_pci_config_16' make[1]: *** [vmlinux] Fehler 1
make: *** [sub-make] Fehler 2I'm building a Xen domU kernel without modules (one big binary of everything).
Quoted 7 lines
Quoted 1 line
You had to revert _what_?
The patch from 3.7.3 to 3.7.4.
Sorry for the confusion.The problem seems to be caused by this:
The whole patch?
Any chance you can use 'git bisect' on the 3.7.4 tree, marking 3.7.3 good, so we can find the patch that caused the problem and revert it?
thanks,
greg k-h