Linux 3.0.98
Greg KH
maintainerI'm announcing the release of the 3.0.98 kernel.
All users of the 3.0 kernel series must upgrade.
The updated 3.0.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.0.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 - drivers/gpu/drm/radeon/evergreen.c | 25 +++++++++++-- drivers/gpu/drm/radeon/evergreend.h | 4 ++ drivers/gpu/drm/radeon/radeon_atombios.c | 13 ++++-- drivers/gpu/drm/radeon/rs400.c | 9 +++- drivers/hid/hid-core.c | 58 +++++++++++++++++++++++++++++++ drivers/hid/hid-zpff.c | 18 ++------- drivers/net/sfc/rx.c | 3 + drivers/net/usb/cdc_ether.c | 5 ++ drivers/net/wireless/rt2x00/rt2800lib.c | 7 +++ drivers/scsi/scsi_transport_iscsi.c | 2 - fs/notify/fanotify/fanotify.c | 6 +++ include/linux/hid.h | 4 ++ include/linux/perf_event.h | 2 - kernel/cgroup.c | 11 +++++ kernel/events/core.c | 21 ++++++----- net/sctp/sm_sideeffect.c | 3 - scripts/kernel-doc | 3 + tools/perf/util/map.c | 1 19 files changed, 158 insertions(+), 39 deletions(-)
Alex Deucher (4):
drm/radeon: fix LCD record parsing
drm/radeon: update line buffer allocation for dce4.1/5 drm/radeon: fix resume on some rs4xx boards (v2) drm/radeon: fix handling of variable sized arrays for router objects
Andi Kleen (1):
perf tools: Handle JITed code in shared memory
Ben Hutchings (1):
sfc: Fix efx_rx_buf_offset() for recycled pages
Daniel Santos (1):
kernel-doc: bugfix - multi-line macros
Fabio Porcedda (1):
net: usb: cdc_ether: Use wwan interface for Telit modules
Greg Kroah-Hartman (2):
Revert "sctp: fix call to SCTP_CMD_PROCESS_SACK in sctp_cmd_interpreter()" Linux 3.0.98
Kees Cook (2):
HID: provide a helper for validating hid reports
HID: zeroplus: validate output report details
Li Zefan (1):
cgroup: fail if monitored file and event_control are in different cgroup
Lino Sanfilippo (1):
fanotify: dont merge permission events
Peter Zijlstra (2):
perf: Clarify perf_cpu_context::active_pmu usage by renaming it to ::unique_pmu
perf: Fix perf_cgroup_switch for sw-events
Sasha Levin (1):
SCSI: iscsi: don't hang in endless loop if no targets present
Stanislaw Gruszka (1):
rt2800: fix wrong TX power compensation
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 0 -SUBLEVEL = 97 +SUBLEVEL = 98 EXTRAVERSION = NAME = Sneaky Weasel
drivers/gpu/drm/radeon/evergreen.c +21 -4
@@ -419,7 +419,8 @@ static u32 evergreen_line_buffer_adjust(struct radeon_device *rdev,struct drm_display_mode *mode, struct drm_display_mode *other_mode) { - u32 tmp; + u32 tmp, buffer_alloc, i; +u32 pipe_offset = radeon_crtc->crtc_id *0x20 ;/* * Line Buffer Setup * There are 3 line buffers, each one shared by 2 display controllers.
@@ -442,18 +443,34 @@ static u32 evergreen_line_buffer_adjust(struct radeon_device *rdev,* non-linked crtcs for maximum line buffer allocation. */ if (radeon_crtc->base.enabled && mode) { -if (other_mode) +if (other_mode) { tmp =0 ;/* 1/2 */ -else + buffer_alloc =1 ; + }else { tmp =2 ;/* whole */ - }else + buffer_alloc =2 ; + } + }else { tmp =0 ; + buffer_alloc =0 ; + }/* second controller of the pair uses second half of the lb */ if (radeon_crtc->crtc_id %2 ) tmp +=4 ;WREG32 (DC_LB_MEMORY_SPLIT + radeon_crtc->crtc_offset, tmp); +if (ASIC_IS_DCE41 (rdev) ||ASIC_IS_DCE5 (rdev)) { +WREG32 (PIPE0_DMIF_BUFFER_CONTROL + pipe_offset, +DMIF_BUFFERS_ALLOCATED (buffer_alloc)); +for (i =0 ; i < rdev->usec_timeout; i++) { +if (RREG32 (PIPE0_DMIF_BUFFER_CONTROL + pipe_offset) & +DMIF_BUFFERS_ALLOCATED_COMPLETED ) +break ; +udelay (1 ); + } + } +if (radeon_crtc->base.enabled && mode) {switch (tmp) {case 0 :
drivers/gpu/drm/radeon/evergreend.h +4 -0
@@ -450,6 +450,10 @@# define LATENCY_LOW_WATERMARK (x) ((x) << 0)# define LATENCY_HIGH_WATERMARK (x) ((x) << 16) +#define PIPE0_DMIF_BUFFER_CONTROL 0x0ca0 +# define DMIF_BUFFERS_ALLOCATED (x) ((x) << 0) +# define DMIF_BUFFERS_ALLOCATED_COMPLETED (1 << 4) +#define IH_RB_CNTL 0x3e00# define IH_RB_ENABLE (1 << 0)# define IH_IB_SIZE (x) ((x) << 1)/* log2 */
drivers/gpu/drm/radeon/radeon_atombios.c +9 -4
@@ -751,13 +751,16 @@ bool radeon_get_atom_connector_info_from_object_table(struct drm_device *dev) (ATOM_SRC_DST_TABLE_FOR_ONE_OBJECT *) (ctx->bios + data_offset +le16_to_cpu (router_obj->asObjects[k].usSrcDstTableOffset)); +u8 *num_dst_objs = (u8 *) + ((u8 *)router_src_dst_table +1 + + (router_src_dst_table->ucNumberOfSrc *2 )); +u16 *dst_objs = (u16 *)(num_dst_objs +1 );int enum_id; router.router_id = router_obj_id; -for (enum_id =0 ; enum_id < router_src_dst_table->ucNumberOfDst; - enum_id++) { +for (enum_id =0 ; enum_id < (*num_dst_objs); enum_id++) {if (le16_to_cpu (path->usConnObjectId) == -le16_to_cpu (router_src_dst_table->usDstObjectID[enum_id])) +le16_to_cpu (dst_objs[enum_id]))break ; }
@@ -1658,7 +1661,9 @@ struct radeon_encoder_atom_dig *radeon_atombios_get_lvds_info(structkfree (edid); } } - record +=sizeof (ATOM_FAKE_EDID_PATCH_RECORD ); + record += fake_edid_record->ucFakeEDIDLength ? + fake_edid_record->ucFakeEDIDLength +2 : +sizeof (ATOM_FAKE_EDID_PATCH_RECORD );break ;case LCD_PANEL_RESOLUTION_RECORD_TYPE : panel_res_record = (ATOM_PANEL_RESOLUTION_PATCH_RECORD *)record;
drivers/gpu/drm/radeon/rs400.c +6 -3
@@ -174,10 +174,13 @@ int rs400_gart_enable(struct radeon_device *rdev)/* FIXME: according to doc we should set HIDE_MMCFG_BAR=0, * AGPMODE30=0 & AGP30ENHANCED=0 in NB_CNTL */ if ((rdev->family ==CHIP_RS690 ) || (rdev->family ==CHIP_RS740 )) { -WREG32_MC (RS480_MC_MISC_CNTL , - (RS480_GART_INDEX_REG_EN |RS690_BLOCK_GFX_D3_EN )); + tmp =RREG32_MC (RS480_MC_MISC_CNTL ); + tmp |=RS480_GART_INDEX_REG_EN |RS690_BLOCK_GFX_D3_EN ; +WREG32_MC (RS480_MC_MISC_CNTL , tmp); }else { -WREG32_MC (RS480_MC_MISC_CNTL ,RS480_GART_INDEX_REG_EN ); + tmp =RREG32_MC (RS480_MC_MISC_CNTL ); + tmp |=RS480_GART_INDEX_REG_EN ; +WREG32_MC (RS480_MC_MISC_CNTL , tmp); }/* Enable gart */ WREG32_MC (RS480_AGP_ADDRESS_SPACE_SIZE , (RS480_GART_EN | size_reg));
drivers/hid/hid-core.c +58 -0
64 lines not on this page · raw message
drivers/hid/hid-zpff.c +5 -13
@@ -69,21 +69,13 @@ static int zpff_init(struct hid_device *hid)struct hid_report *report;struct hid_input *hidinput =list_entry (hid->inputs.next, struct hid_input, list); -struct list_head *report_list = - &hid->report_enum[HID_OUTPUT_REPORT ].report_list;struct input_dev *dev = hidinput->input; -int error; +int i, error; -if (list_empty (report_list)) { -hid_err (hid,"no output report found\n" ); -return -ENODEV ; - } - - report = list_entry(report_list->next, struct hid_report, list); - -if (report->maxfield <4 ) { -hid_err (hid,"not enough fields in report\n" ); -return -ENODEV ; +for (i =0 ; i <4 ; i++) { + report =hid_validate_values (hid,HID_OUTPUT_REPORT ,0 , i,1 ); +if (!report) +return -ENODEV ; } zpff =kzalloc (sizeof (struct zpff_device ),GFP_KERNEL );
drivers/net/sfc/rx.c +2 -1
@@ -311,8 +311,9 @@ static void efx_resurrect_rx_buffer(struct efx_rx_queue *rx_queue, index = rx_queue->added_count & rx_queue->ptr_mask; new_buf =efx_rx_buffer (rx_queue, index); - new_buf->dma_addr = rx_buf->dma_addr ^ (PAGE_SIZE >>1 ); new_buf->u.page = rx_buf->u.page; + new_buf->page_offset = rx_buf->page_offset ^ (PAGE_SIZE >>1 ); + new_buf->dma_addr = state->dma_addr + new_buf->page_offset; new_buf->len = rx_buf->len; new_buf->is_page = true; ++rx_queue->added_count;
drivers/net/usb/cdc_ether.c +5 -0
@@ -615,6 +615,11 @@ static const struct usb_device_id products [] = { .bInterfaceProtocol = USB_CDC_PROTO_NONE, .driver_info = (unsigned long)&wwan_info, }, { +/* Telit modules */ +USB_VENDOR_AND_INTERFACE_INFO (0x1bc7 ,USB_CLASS_COMM , + USB_CDC_SUBCLASS_ETHERNET, USB_CDC_PROTO_NONE), + .driver_info = (kernel_ulong_t) &wwan_info, +}, {USB_INTERFACE_INFO (USB_CLASS_COMM ,USB_CDC_SUBCLASS_ETHERNET ,USB_CDC_PROTO_NONE ), .driver_info = (unsigned long) &cdc_info,
drivers/net/wireless/rt2x00/rt2800lib.c +7 -0
@@ -1861,6 +1861,13 @@ static int rt2800_get_gain_calibration_delta(struct rt2x00_dev *rt2x00dev)int i;/* +* First check if temperature compensation is supported. +*/ +rt2x00_eeprom_read (rt2x00dev,EEPROM_NIC_CONF1 , &eeprom); +if (!rt2x00_get_field16 (eeprom,EEPROM_NIC_CONF1_EXTERNAL_TX_ALC )) +return 0 ; + +/* * Read TSSI boundaries for temperature compensation from * the EEPROM. *
drivers/scsi/scsi_transport_iscsi.c +1 -1
@@ -1747,7 +1747,7 @@ iscsi_if_rx(struct sk_buff *skb)break ; err =iscsi_if_send_reply (group, nlh->nlmsg_seq, nlh->nlmsg_type,0 ,0 , ev,sizeof (*ev)); - }while (err <0 && err != -ECONNREFUSED ); + }while (err <0 && err != -ECONNREFUSED && err != -ESRCH );skb_pull (skb, rlen); }mutex_unlock (&rx_queue_mutex);
fs/notify/fanotify/fanotify.c +6 -0
@@ -18,6 +18,12 @@ static bool should_merge(struct fsnotify_event *old, struct fsnotify_event *new) old->tgid == new->tgid) {switch (old->data_type) {case (FSNOTIFY_EVENT_PATH ): +#ifdef CONFIG_FANOTIFY_ACCESS_PERMISSIONS +/* dont merge two permission events */ +if ((old->mask &FAN_ALL_PERM_EVENTS ) && + (new->mask &FAN_ALL_PERM_EVENTS )) +return false; +#endif if ((old->path.mnt == new->path.mnt) && (old->path.dentry == new->path.dentry))return true;
include/linux/hid.h +4 -0
@@ -713,6 +713,10 @@ void hid_output_report(struct hid_report *report, __u8 *data);struct hid_device *hid_allocate_device (void );struct hid_report *hid_register_report (struct hid_device *device,unsigned type,unsigned id);int hid_parse_report (struct hid_device *hid,__u8 *start,unsigned size); +struct hid_report *hid_validate_values (struct hid_device *hid, +unsigned int type,unsigned int id, +unsigned int field_index, +unsigned int report_counts);int hid_check_keys_pressed (struct hid_device *hid);int hid_connect (struct hid_device *hid,unsigned int connect_mask);void hid_disconnect (struct hid_device *hid);
include/linux/perf_event.h +1 -1
@@ -939,7 +939,7 @@ struct perf_cpu_context {int exclusive;struct list_head rotation_list;int jiffies_interval; -struct pmu *active_pmu; +struct pmu *unique_pmu;struct perf_cgroup *cgrp; };
kernel/cgroup.c +11 -0
@@ -3498,6 +3498,7 @@ static int cgroup_write_event_control(struct cgroup *cgrp, struct cftype *cft, const char *buffer) {struct cgroup_event *event =NULL ; +struct cgroup *cgrp_cfile;unsigned int efd, cfd;struct file *efile =NULL ;struct file *cfile =NULL ;
@@ -3552,6 +3553,16 @@ static int cgroup_write_event_control(struct cgroup *cgrp, struct cftype *cft, goto fail; } +/* +* The file to be monitored must be in the same cgroup as +* cgroup.event_control is. +*/ + cgrp_cfile =__d_cgrp (cfile->f_dentry->d_parent); +if (cgrp_cfile != cgrp) { + ret = -EINVAL ; + goto fail; + } +if (!event->cft->register_event || !event->cft->unregister_event) { ret = -EINVAL ; goto fail;
kernel/events/core.c +12 -9
@@ -342,6 +342,8 @@ void perf_cgroup_switch(struct task_struct *task, int mode)list_for_each_entry_rcu (pmu, &pmus, entry) { cpuctx =this_cpu_ptr (pmu->pmu_cpu_context); +if (cpuctx->unique_pmu != pmu) +continue ;/* ensure we process each cpuctx once */ perf_pmu_disable (cpuctx->ctx.pmu);
@@ -365,9 +367,10 @@ void perf_cgroup_switch(struct task_struct *task, int mode)if (mode &PERF_CGROUP_SWIN ) {WARN_ON_ONCE (cpuctx->cgrp); -/* set cgrp before ctxsw in to -* allow event_filter_match() to not -* have to pass task around +/* +* set cgrp before ctxsw in to allow +* event_filter_match() to not have to pass +* task around */ cpuctx->cgrp =perf_cgroup_from_task (task);cpu_ctx_sched_in (cpuctx,EVENT_ALL , task);
@@ -4579,7 +4582,7 @@ static void perf_event_task_event(struct perf_task_event *task_event)rcu_read_lock ();list_for_each_entry_rcu (pmu, &pmus, entry) { cpuctx =get_cpu_ptr (pmu->pmu_cpu_context); -if (cpuctx->active_pmu != pmu) +if (cpuctx->unique_pmu != pmu) goto next;perf_event_task_ctx (&cpuctx->ctx, task_event);
@@ -4725,7 +4728,7 @@ static void perf_event_comm_event(struct perf_comm_event *comm_event)rcu_read_lock ();list_for_each_entry_rcu (pmu, &pmus, entry) { cpuctx =get_cpu_ptr (pmu->pmu_cpu_context); -if (cpuctx->active_pmu != pmu) +if (cpuctx->unique_pmu != pmu) goto next;perf_event_comm_ctx (&cpuctx->ctx, comm_event);
@@ -4921,7 +4924,7 @@ got_name:rcu_read_lock ();list_for_each_entry_rcu (pmu, &pmus, entry) { cpuctx =get_cpu_ptr (pmu->pmu_cpu_context); -if (cpuctx->active_pmu != pmu) +if (cpuctx->unique_pmu != pmu) goto next;perf_event_mmap_ctx (&cpuctx->ctx, mmap_event, vma->vm_flags &VM_EXEC );
@@ -5947,8 +5950,8 @@ static void update_pmu_context(struct pmu *pmu, struct pmu *old_pmu) cpuctx =per_cpu_ptr (pmu->pmu_cpu_context, cpu); -if (cpuctx->active_pmu == old_pmu) - cpuctx->active_pmu = pmu; +if (cpuctx->unique_pmu == old_pmu) + cpuctx->unique_pmu = pmu; } }
@@ -6080,7 +6083,7 @@ skip_type: cpuctx->ctx.pmu = pmu; cpuctx->jiffies_interval =1 ;INIT_LIST_HEAD (&cpuctx->rotation_list); - cpuctx->active_pmu = pmu; + cpuctx->unique_pmu = pmu; } got_cpu_context:
net/sctp/sm_sideeffect.c +1 -2
@@ -1604,9 +1604,8 @@ static int sctp_cmd_interpreter(sctp_event_t event_type, asoc->outqueue.outstanding_bytes; sackh.num_gap_ack_blocks =0 ; sackh.num_dup_tsns =0 ; - chunk->subh.sack_hdr = &sackh;sctp_add_cmd_sf (commands,SCTP_CMD_PROCESS_SACK , -SCTP_CHUNK (chunk)); +SCTP_SACKH (&sackh));break ;case SCTP_CMD_DISCARD_PACKET :
scripts/kernel-doc +3 -0
@@ -2044,6 +2044,9 @@ sub process_file($) { $section_counter = 0; while (<IN>) { + while (s/\\\s*$//) { + $_ .= <IN>; + } if ($state == 0) { if (/$doc_start/o) { $state = 1; # next line is always the function name
tools/perf/util/map.c +1 -0
@@ -16,6 +16,7 @@ const char *map_type__name[MAP__NR_TYPES] = {static inline int is_anon_memory (const char *filename) {return !strcmp (filename,"//anon" ) || + !strcmp (filename,"/dev/zero (deleted)" ) || !strcmp (filename,"/anon_hugepage (deleted)" ); }