svn commit: r253041 - stable/9/sys/dev/ata/chipsets

2013-07-08 Thread Alexander Motin
Author: mav Date: Mon Jul 8 17:20:05 2013 New Revision: 253041 URL: http://svnweb.freebsd.org/changeset/base/253041 Log: MFC r252203: Add test for SATA registers writability and skip using them if it failed. There are some systems reported, where PCI BAR(5), used for SATA registers acc

svn commit: r253069 - head/sys/dev/ahci

2013-07-09 Thread Alexander Motin
Author: mav Date: Tue Jul 9 08:32:17 2013 New Revision: 253069 URL: http://svnweb.freebsd.org/changeset/base/253069 Log: Add one more ID of Marvell SATA controller. Submitted by: marck MFC after:3 days Modified: head/sys/dev/ahci/ahci.c Modified: head/sys/dev/ahci/ahci.c

svn commit: r253074 - head/sys/dev/ahci

2013-07-09 Thread Alexander Motin
Author: mav Date: Tue Jul 9 08:49:17 2013 New Revision: 253074 URL: http://svnweb.freebsd.org/changeset/base/253074 Log: Add ID for Marvell 88SE9215 AHCI SATA controller. MFC after:3 days Modified: head/sys/dev/ahci/ahci.c Modified: head/sys/dev/ahci/ahci.c

svn commit: r253193 - stable/9/sys/dev/sound/pci/hda

2013-07-11 Thread Alexander Motin
Author: mav Date: Thu Jul 11 07:14:51 2013 New Revision: 253193 URL: http://svnweb.freebsd.org/changeset/base/253193 Log: MFC r253036: Add quirk to configure headphones redirection on ASUS UX31A laptop. Modified: stable/9/sys/dev/sound/pci/hda/hdaa_patches.c stable/9/sys/dev/sound/pci/hda

svn commit: r253194 - stable/9/sys/dev/ahci

2013-07-11 Thread Alexander Motin
Author: mav Date: Thu Jul 11 07:17:03 2013 New Revision: 253194 URL: http://svnweb.freebsd.org/changeset/base/253194 Log: MFC r253069, r253074: Add one more ID of Marvell SATA controller. Add ID for Marvell 88SE9215 AHCI SATA controller. Modified: stable/9/sys/dev/ahci/ahci.c Directory Pr

svn commit: r253202 - in stable/9/etc: defaults periodic/daily

2013-07-11 Thread Alexander Motin
Author: mav Date: Thu Jul 11 09:27:56 2013 New Revision: 253202 URL: http://svnweb.freebsd.org/changeset/base/253202 Log: Partially MFC r249095: Add period script for graid(8) monitoring. Added: stable/9/etc/periodic/daily/401.status-graid - copied unchanged from r249095, head/etc/peri

svn commit: r253322 - in head/sys/cam: . scsi

2013-07-13 Thread Alexander Motin
Author: mav Date: Sat Jul 13 13:35:09 2013 New Revision: 253322 URL: http://svnweb.freebsd.org/changeset/base/253322 Log: Improve handling of 0x3F/0x0E "Reported LUNs data has changed" and 0x25/0x00 "Logical unit not supported" errors. First initiates specific target rescan, second -- destr

svn commit: r253323 - head/sys/cam/scsi

2013-07-13 Thread Alexander Motin
Author: mav Date: Sat Jul 13 15:34:37 2013 New Revision: 253323 URL: http://svnweb.freebsd.org/changeset/base/253323 Log: When printing opcode description, map T_NODEVICE to Direct Access Device to handle REPORT LUNS, etc. Modified: head/sys/cam/scsi/scsi_all.c Modified: head/sys/cam/scsi/

svn commit: r253359 - stable/9/sys/kern

2013-07-15 Thread Alexander Motin
Author: mav Date: Mon Jul 15 11:45:58 2013 New Revision: 253359 URL: http://svnweb.freebsd.org/changeset/base/253359 Log: MFC r235899: Hide warning behind bootverbose. Average user has nothing to do about it. Approved by: re (marius) Modified: stable/9/sys/kern/kern_conf.c Directory P

Re: svn commit: r253322 - in head/sys/cam: . scsi

2013-07-15 Thread Alexander Motin
On 15.07.2013 17:48, Ulrich Spörlein wrote: On Sat, 2013-07-13 at 13:35:10 +, Alexander Motin wrote: Author: mav Date: Sat Jul 13 13:35:09 2013 New Revision: 253322 URL: http://svnweb.freebsd.org/changeset/base/253322 Log: Improve handling of 0x3F/0x0E "Reported LUNs data has ch

svn commit: r253370 - in head/sys/cam: . scsi

2013-07-15 Thread Alexander Motin
Author: mav Date: Mon Jul 15 18:17:31 2013 New Revision: 253370 URL: http://svnweb.freebsd.org/changeset/base/253370 Log: Make some improvements to r253322 to really rescan target, not a bus. Add there and in two more places checks for NULL on xpt_alloc_ccb_nowait(). Modified: head/sys/cam/

svn commit: r253643 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys

2013-07-25 Thread Alexander Motin
Author: mav Date: Thu Jul 25 08:41:22 2013 New Revision: 253643 URL: http://svnweb.freebsd.org/changeset/base/253643 Log: Following r222950, revert unintentional change cls -> class in argument name in r245264. Aside from non-uniformity, that again confused C++ compilers. Modified: head/sy

svn commit: r253644 - head/sys/dev/ata/chipsets

2013-07-25 Thread Alexander Motin
Author: mav Date: Thu Jul 25 09:12:46 2013 New Revision: 253644 URL: http://svnweb.freebsd.org/changeset/base/253644 Log: Add missing NULL check after malloc(M_NOWAIT). Submitted by: Dmitry Luhtionov Modified: head/sys/dev/ata/chipsets/ata-promise.c Modified: head/sys/dev/ata/chipsets/

svn commit: r253647 - head/sys/dev/ahci

2013-07-25 Thread Alexander Motin
Author: mav Date: Thu Jul 25 10:29:40 2013 New Revision: 253647 URL: http://svnweb.freebsd.org/changeset/base/253647 Log: Decode some bits defined in AHCI 1.3.1 Device Sleep Technical Proposal. For now this is only conmetics to report HBA capabilities (Haswell?). Submitted by: Dmitry Luht

Re: svn commit: r253644 - head/sys/dev/ata/chipsets

2013-07-25 Thread Alexander Motin
On 25.07.2013 19:14, John Baldwin wrote: On Thursday, July 25, 2013 5:12:46 am Alexander Motin wrote: Author: mav Date: Thu Jul 25 09:12:46 2013 New Revision: 253644 URL: http://svnweb.freebsd.org/changeset/base/253644 Log: Add missing NULL check after malloc(M_NOWAIT). Submitted by

svn commit: r248092 - head/sys/kern

2013-03-09 Thread Alexander Motin
Author: mav Date: Sat Mar 9 09:07:13 2013 New Revision: 248092 URL: http://svnweb.freebsd.org/changeset/base/248092 Log: Rework overflow checks of r247898 to not let too "intelligent" compiler to optimize it out. Submitted by: bde Modified: head/sys/kern/kern_event.c head/sys/kern/s

svn commit: r248130 - stable/9/share/man/man4

2013-03-10 Thread Alexander Motin
Author: mav Date: Sun Mar 10 13:52:19 2013 New Revision: 248130 URL: http://svnweb.freebsd.org/changeset/base/248130 Log: MFC r247725: Fix typos in hint names. Modified: stable/9/share/man/man4/mvs.4 Directory Properties: stable/9/share/man/man4/ (props changed) Modified: stable/9/shar

svn commit: r248148 - stable/9/sys/dev/sound/pci/hda

2013-03-11 Thread Alexander Motin
Author: mav Date: Mon Mar 11 07:53:51 2013 New Revision: 248148 URL: http://svnweb.freebsd.org/changeset/base/248148 Log: MFC r247815: Add quirk to enable headphones redirection on Lenovo X220. PR: kern/174876 Modified: stable/9/sys/dev/sound/pci/hda/hdaa_patches.c stable/9

svn commit: r248154 - head/sys/dev/acpica

2013-03-11 Thread Alexander Motin
Author: mav Date: Mon Mar 11 12:02:03 2013 New Revision: 248154 URL: http://svnweb.freebsd.org/changeset/base/248154 Log: Reduce HPET eventtimer priority on systems with 8 or more cores. Price of the lock congestion may be too high there (2.5% on 4x4 core AMD Opteron). Modified: head/sys/d

svn commit: r248170 - head/sys/dev/acpica

2013-03-11 Thread Alexander Motin
Author: mav Date: Mon Mar 11 17:29:09 2013 New Revision: 248170 URL: http://svnweb.freebsd.org/changeset/base/248170 Log: Add "else" missed at r248154. Modified: head/sys/dev/acpica/acpi_hpet.c Modified: head/sys/dev/acpica/acpi_hpet.c

svn commit: r248186 - head/sys/kern

2013-03-11 Thread Alexander Motin
Author: mav Date: Tue Mar 12 06:58:49 2013 New Revision: 248186 URL: http://svnweb.freebsd.org/changeset/base/248186 Log: Make kern_nanosleep() and pause_sbt() to use per-CPU sleep queues. This removes significant sleep queue lock congestion on multithreaded microbenchmarks, making them scal

svn commit: r248230 - head/sys/kern

2013-03-12 Thread Alexander Motin
Author: mav Date: Wed Mar 13 06:42:01 2013 New Revision: 248230 URL: http://svnweb.freebsd.org/changeset/base/248230 Log: Fix incorrect assertion that caused panic when periodic-only timers used. Modified: head/sys/kern/kern_et.c Modified: head/sys/kern/kern_et.c

svn commit: r248263 - stable/9/sys/geom/raid

2013-03-13 Thread Alexander Motin
Author: mav Date: Thu Mar 14 05:24:25 2013 New Revision: 248263 URL: http://svnweb.freebsd.org/changeset/base/248263 Log: MFC r247918: Fix panic when Secondary_Element_Count == 1 and Secondary_Element_Seq is not set (255). Modified: stable/9/sys/geom/raid/md_ddf.c Directory Properties:

svn commit: r248585 - head/sys/arm/broadcom/bcm2835

2013-03-21 Thread Alexander Motin
Author: mav Date: Thu Mar 21 15:42:41 2013 New Revision: 248585 URL: http://svnweb.freebsd.org/changeset/base/248585 Log: Minimal timer period of 100us introduced in r244758 is overkill. While original 2us are indeed not enough, 3us are working quite well on my tests. To be more safe set mi

svn commit: r248647 - head/usr.bin/systat

2013-03-23 Thread Alexander Motin
Author: mav Date: Sat Mar 23 13:11:54 2013 New Revision: 248647 URL: http://svnweb.freebsd.org/changeset/base/248647 Log: Make `systat -vmstat` to use suffixes to display big floating point numbers that are not fitting into the specified field width, same as done for ints. In particular that

svn commit: r248674 - head/sys/geom

2013-03-23 Thread Alexander Motin
Author: mav Date: Sun Mar 24 03:15:20 2013 New Revision: 248674 URL: http://svnweb.freebsd.org/changeset/base/248674 Log: Make g_wither_washer() to not loop by itself, but only when there was some more topology change done that may require its attention. Add few missing g_do_wither() calls

svn commit: r248679 - head/sys/geom

2013-03-24 Thread Alexander Motin
Author: mav Date: Sun Mar 24 10:14:25 2013 New Revision: 248679 URL: http://svnweb.freebsd.org/changeset/base/248679 Log: Fix long known deadlock between geom dev destruction and d_close() call. Use destroy_dev_sched_cb() to not wait for device destruction while holding GEOM topology lock (t

svn commit: r248687 - head/sys/dev/ahci

2013-03-24 Thread Alexander Motin
Author: mav Date: Sun Mar 24 16:51:21 2013 New Revision: 248687 URL: http://svnweb.freebsd.org/changeset/base/248687 Log: No need to erase all 64 bytes of CFIS area if we never use more then 16. Modified: head/sys/dev/ahci/ahci.c Modified: head/sys/dev/ahci/ahci.c ===

svn commit: r248694 - head/sys/geom

2013-03-24 Thread Alexander Motin
Author: mav Date: Mon Mar 25 05:45:24 2013 New Revision: 248694 URL: http://svnweb.freebsd.org/changeset/base/248694 Log: In GEOM DISK: - Replace single done mutex with per-disk ones. On system with several disks on several HBAs that removes small, but measurable lock congestion. - Modi

svn commit: r248695 - head/sys/cam/ata

2013-03-24 Thread Alexander Motin
Author: mav Date: Mon Mar 25 06:31:17 2013 New Revision: 248695 URL: http://svnweb.freebsd.org/changeset/base/248695 Log: Remove two bzero()s that are erasing only few more bytes then set later. Modified: head/sys/cam/ata/ata_all.c Modified: head/sys/cam/ata/ata_all.c ===

svn commit: r248696 - head/sys/geom/multipath

2013-03-25 Thread Alexander Motin
Author: mav Date: Mon Mar 25 07:24:58 2013 New Revision: 248696 URL: http://svnweb.freebsd.org/changeset/base/248696 Log: Make GEOM MULTIPATH to report unmapped bio support if underling path report it. GEOM MULTIPATH itself never touches the data and so transparent. Modified: head/sys/geom

svn commit: r248698 - head/sys/dev/ahci

2013-03-25 Thread Alexander Motin
Author: mav Date: Mon Mar 25 08:50:51 2013 New Revision: 248698 URL: http://svnweb.freebsd.org/changeset/base/248698 Log: Depending on combination of running commands (NCQ/non-NCQ) try to avoid extra read from PxCI/PxSACT registers. If only NCQ commands are running, we don't really need PxC

svn commit: r248704 - head/sys/dev/ahci

2013-03-25 Thread Alexander Motin
Author: mav Date: Mon Mar 25 13:58:17 2013 New Revision: 248704 URL: http://svnweb.freebsd.org/changeset/base/248704 Log: Read Asynchronous Notification statuses only if Port Multiplier or ATAPI device are connected. ATA disks are not using ANs, while the extra register read operation is qui

svn commit: r248720 - in head/sys/geom: gate nop raid

2013-03-25 Thread Alexander Motin
Author: mav Date: Tue Mar 26 05:42:12 2013 New Revision: 248720 URL: http://svnweb.freebsd.org/changeset/base/248720 Log: Remove extra bio_data and bio_length copying to child request after calling g_clone_bio(), that already copied them. Modified: head/sys/geom/gate/g_gate.c head/sys/geo

svn commit: r248721 - head/sys/geom/nop

2013-03-25 Thread Alexander Motin
Author: mav Date: Tue Mar 26 05:58:49 2013 New Revision: 248721 URL: http://svnweb.freebsd.org/changeset/base/248721 Log: GEOM NOP does not touch the data, so pass G_PF_ACCEPT_UNMAPPED flag through. Modified: head/sys/geom/nop/g_nop.c Modified: head/sys/geom/nop/g_nop.c =

svn commit: r248722 - head/sys/geom

2013-03-26 Thread Alexander Motin
Author: mav Date: Tue Mar 26 07:55:24 2013 New Revision: 248722 URL: http://svnweb.freebsd.org/changeset/base/248722 Log: geom_slice.c and its consumers like GEOM_LABEL are not touching the data unless hotspots are used. Pass G_PF_ACCEPT_UNMAPPED flag through except such rare cases (obsolet

svn commit: r248786 - head/sys/dev/sound/pci/hda

2013-03-27 Thread Alexander Motin
Author: mav Date: Wed Mar 27 07:30:08 2013 New Revision: 248786 URL: http://svnweb.freebsd.org/changeset/base/248786 Log: Add Subsystem ID field to the quirk table. Use it to identify Mac Pro 1,1, which requires OVREF to be set to get proper playback volume, but which has all zeroes in HDA

svn commit: r248796 - stable/9/sys/dev/acpica

2013-03-27 Thread Alexander Motin
Author: mav Date: Wed Mar 27 14:23:50 2013 New Revision: 248796 URL: http://svnweb.freebsd.org/changeset/base/248796 Log: MFC r245266: Remove not very useful printf, that can be too chatty. ASUS P8Z77-V board reports _AC2, _AC3 and _AC4 setpoints as 0C. With active cooling already auto

svn commit: r248800 - head/sys/cam

2013-03-27 Thread Alexander Motin
Author: mav Date: Wed Mar 27 18:55:01 2013 New Revision: 248800 URL: http://svnweb.freebsd.org/changeset/base/248800 Log: On SIM destruction free associated CCBs, preallocated inside xpt_get_ccb(). Before this change they were just leaked. Fortunately USB sticks now use only one CCB, and so

svn commit: r248825 - head/sys/dev/mps

2013-03-28 Thread Alexander Motin
Author: mav Date: Thu Mar 28 11:24:30 2013 New Revision: 248825 URL: http://svnweb.freebsd.org/changeset/base/248825 Log: Except one case mps(4) driver does not touch the data and works well with unmapped I/O. That one exception is access to INQUIRY VPD request result. Those requests are ne

svn commit: r248868 - in head/sys/cam: . ata scsi

2013-03-29 Thread Alexander Motin
Author: mav Date: Fri Mar 29 07:50:47 2013 New Revision: 248868 URL: http://svnweb.freebsd.org/changeset/base/248868 Log: Implement CAM_PERIPH_FOREACH() macro, safely iterating over the list of driver's periphs, acquiring and releaseing periph references while doing it. Use it to iterate

svn commit: r248872 - in head/sys/cam: ata scsi

2013-03-29 Thread Alexander Motin
Author: mav Date: Fri Mar 29 08:33:18 2013 New Revision: 248872 URL: http://svnweb.freebsd.org/changeset/base/248872 Log: Make pre-shutdown flush and spindown routines to not use xpt_polled_action(), but execute the commands in regular way. There is no any reason to cook CPU while the syste

Re: svn commit: r236750 - in stable/8: share/man/man4 sys/conf sys/dev/sound/pci/hda sys/modules/sound/driver/hda

2013-04-01 Thread Alexander Motin
On 01.04.2013 11:50, Alexey Dokuchaev wrote: On Thu, Mar 21, 2013 at 04:25:21PM +, Alexey Dokuchaev wrote: On Fri, Jun 08, 2012 at 12:35:44PM +, Alexander Motin wrote: New Revision: 236750 URL: http://svn.freebsd.org/changeset/base/236750 Log: MFC r230130: Major snd_hda driver

svn commit: r248973 - head/sys/dev/tws

2013-04-01 Thread Alexander Motin
Author: mav Date: Mon Apr 1 13:18:34 2013 New Revision: 248973 URL: http://svnweb.freebsd.org/changeset/base/248973 Log: Slightly tune locking to not call xpt_alloc_ccb() that is allowed to sleep while holding the SIM mutex. Modified: head/sys/dev/tws/tws_cam.c head/sys/dev/tws/tws_user.

svn commit: r249048 - in head/sys/cam: ata scsi

2013-04-03 Thread Alexander Motin
Author: mav Date: Wed Apr 3 11:30:18 2013 New Revision: 249048 URL: http://svnweb.freebsd.org/changeset/base/249048 Log: Add xpt_release_ccb()'s missed at r248872. That made `shutdown -p` stuck on controller with small number of queue slots and several disks connected. Modified: head/sys/

svn commit: r249052 - head/sys/dev/ata

2013-04-03 Thread Alexander Motin
Author: mav Date: Wed Apr 3 14:10:37 2013 New Revision: 249052 URL: http://svnweb.freebsd.org/changeset/base/249052 Log: Add some more ATA_CAM ifdefs. Submitted by: marius (partially) MFC after:1 week Modified: head/sys/dev/ata/ata-all.c head/sys/dev/ata/ata-all.h Modified: hea

svn commit: r249062 - in head/sys/dev/ata: . chipsets

2013-04-03 Thread Alexander Motin
Author: mav Date: Wed Apr 3 18:30:09 2013 New Revision: 249062 URL: http://svnweb.freebsd.org/changeset/base/249062 Log: Since ATA_CAM mode has no implemented support for serializing access to the different ATA channels, required for acard and pc98 ATA controllers, block access to second ch

svn commit: r249083 - in head: rescue/rescue sbin sbin/atacontrol share/man/man4 sys/amd64/conf sys/arm/conf sys/cam/ata sys/conf sys/dev/ata sys/dev/ata/chipsets sys/i386/conf sys/ia64/conf sys/mi...

2013-04-04 Thread Alexander Motin
Author: mav Date: Thu Apr 4 07:12:24 2013 New Revision: 249083 URL: http://svnweb.freebsd.org/changeset/base/249083 Log: Remove all legacy ATA code parts, not used since options ATA_CAM enabled in most kernels before FreeBSD 9.0. Remove such modules and respective kernel options: atadisk,

svn commit: r249084 - head

2013-04-04 Thread Alexander Motin
Author: mav Date: Thu Apr 4 07:57:32 2013 New Revision: 249084 URL: http://svnweb.freebsd.org/changeset/base/249084 Log: Remove obsolete files of the legacy ATA stack. Modified: head/ObsoleteFiles.inc Modified: head/ObsoleteFiles.inc =

svn commit: r249089 - head/sys/dev/ahci

2013-04-04 Thread Alexander Motin
Author: mav Date: Thu Apr 4 09:15:19 2013 New Revision: 249089 URL: http://svnweb.freebsd.org/changeset/base/249089 Log: Check status of ahci_em_reset() on attach and abort if reset failed. For now it is just a hypothetical case. Submitted by: Dmitry Luhtionov Modified: head/sys/dev/

svn commit: r249090 - in head: . usr.sbin usr.sbin/burncd

2013-04-04 Thread Alexander Motin
Author: mav Date: Thu Apr 4 09:21:24 2013 New Revision: 249090 URL: http://svnweb.freebsd.org/changeset/base/249090 Log: Remove usr.sbin/burncd, useless after legacy ATA stack removal. Deleted: head/usr.sbin/burncd/ Modified: head/ObsoleteFiles.inc head/usr.sbin/Makefile Modified: head/

svn commit: r249091 - head/sys/cam

2013-04-04 Thread Alexander Motin
Author: mav Date: Thu Apr 4 10:19:05 2013 New Revision: 249091 URL: http://svnweb.freebsd.org/changeset/base/249091 Log: Use xpt_lock_buses() instead of equivalent mtx_lock(&xsoftc.xpt_topo_lock) to unify the code. Modified: head/sys/cam/cam_xpt.c Modified: head/sys/cam/cam_xpt.c

svn commit: r249094 - in head/usr.sbin: bsdconfig/share pc-sysinstall/backend-query

2013-04-04 Thread Alexander Motin
Author: mav Date: Thu Apr 4 12:03:30 2013 New Revision: 249094 URL: http://svnweb.freebsd.org/changeset/base/249094 Log: Remove some more references to legacy ATA. Submitted by: Dmitry Luhtionov Modified: head/usr.sbin/bsdconfig/share/device.subr head/usr.sbin/pc-sysinstall/backend-q

svn commit: r249095 - in head/etc: defaults periodic/daily

2013-04-04 Thread Alexander Motin
Author: mav Date: Thu Apr 4 15:03:12 2013 New Revision: 249095 URL: http://svnweb.freebsd.org/changeset/base/249095 Log: Remove periodic script for ataraid(4) and add instead script for graid(8). Added: head/etc/periodic/daily/401.status-graid (contents, props changed) Deleted: head/etc/

svn commit: r249099 - head/sys/cam

2013-04-04 Thread Alexander Motin
Author: mav Date: Thu Apr 4 17:08:49 2013 New Revision: 249099 URL: http://svnweb.freebsd.org/changeset/base/249099 Log: Remove xpt_sim_opened(), the only consumer of which was atapicam, which is now gone. Modified: head/sys/cam/cam_xpt.c head/sys/cam/cam_xpt_sim.h Modified: head/sys/ca

svn commit: r249104 - head/sys/cam

2013-04-04 Thread Alexander Motin
Author: mav Date: Thu Apr 4 18:59:29 2013 New Revision: 249104 URL: http://svnweb.freebsd.org/changeset/base/249104 Log: MFprojects/camlock r248928: Move CAM_DEBUG_CDB messages from the point of queuing to the point of sending to SIM. That allows to inspect real requests execution order,

svn commit: r249105 - in head/sys/cam: ata scsi

2013-04-04 Thread Alexander Motin
Author: mav Date: Thu Apr 4 19:04:15 2013 New Revision: 249105 URL: http://svnweb.freebsd.org/changeset/base/249105 Log: MFprojects/camlock r248930: Remove extra NULL checks. d_drv1 can never be NULL during periph life cycle. MFC after:2 weeks Modified: head/sys/cam/ata/ata_da.c

svn commit: r249106 - in head/sys/cam: ata scsi

2013-04-04 Thread Alexander Motin
Author: mav Date: Thu Apr 4 19:07:37 2013 New Revision: 249106 URL: http://svnweb.freebsd.org/changeset/base/249106 Log: MFprojects/camlock r248931: Replace some direct mutex operations with wrappers. MFC after:2 weeks Modified: head/sys/cam/ata/ata_da.c head/sys/cam/scsi/scsi_c

svn commit: r249108 - in head/sys/cam: . ata scsi

2013-04-04 Thread Alexander Motin
Author: mav Date: Thu Apr 4 20:31:40 2013 New Revision: 249108 URL: http://svnweb.freebsd.org/changeset/base/249108 Log: MFprojects/camlock: r249017: Some cosmetic things: - Unify device to target insertion inside xpt_alloc_device() instead of duplicating it three times. - Remove ex

Re: svn commit: r249105 - in head/sys/cam: ata scsi

2013-04-04 Thread Alexander Motin
On 04.04.2013 23:53, Adrian Chadd wrote: Hi, Isn't this a prime candidate to replace with KASSERT()? It could be, but NULL dereference attempt will crash system no less reliably then KASSERT. On 4 April 2013 12:04, Alexander Motin wrote: Author: mav Date: Thu Apr 4 19:04:15 201

Re: svn commit: r249129 - head/sys/powerpc/aim

2013-04-05 Thread Alexander Motin
7;t touched it. But it was not removed. -- Alexander Motin ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

svn commit: r249133 - stable/9/sys/cam/scsi

2013-04-05 Thread Alexander Motin
Author: mav Date: Fri Apr 5 08:46:20 2013 New Revision: 249133 URL: http://svnweb.freebsd.org/changeset/base/249133 Log: MFC r234177, r234374 (by trasz): Refactor da(4) to remove one of two code paths used to query capacity data. Modified: stable/9/sys/cam/scsi/scsi_da.c Directory Proper

svn commit: r249134 - in stable/9/sys/cam: . scsi

2013-04-05 Thread Alexander Motin
Author: mav Date: Fri Apr 5 08:51:05 2013 New Revision: 249134 URL: http://svnweb.freebsd.org/changeset/base/249134 Log: MFC r237478: Add scsi_extract_sense_ccb() -- wrapper around scsi_extract_sense_len(). It allows to remove number of duplicate checks from several places. Modified: sta

svn commit: r249135 - stable/9/sys/cam/scsi

2013-04-05 Thread Alexander Motin
Author: mav Date: Fri Apr 5 09:02:04 2013 New Revision: 249135 URL: http://svnweb.freebsd.org/changeset/base/249135 Log: MFC r237689 (by imp): Add a sysctl to set the cdrom timeout. Data recovery operations from a CD or DVD drive with a damaged disc often benefit from a shorter timeout.

Re: svn commit: r249095 - in head/etc: defaults periodic/daily

2013-04-05 Thread Alexander Motin
On 05.04.2013 12:02, N.J. Mann wrote: In message <201304041503.r34f3c5l094...@svn.freebsd.org>, Alexander Motin (m...@freebsd.org) wrote: Author: mav Date: Thu Apr 4 15:03:12 2013 New Revision: 249095 URL: http://svnweb.freebsd.org/changeset/base/249095 Log: Remove periodic

svn commit: r249142 - stable/9/sys/geom

2013-04-05 Thread Alexander Motin
Author: mav Date: Fri Apr 5 10:10:39 2013 New Revision: 249142 URL: http://svnweb.freebsd.org/changeset/base/249142 Log: MFC r226735 (by pjd): Simplify disk_alloc(). Modified: stable/9/sys/geom/geom_disk.c Directory Properties: stable/9/sys/ (props changed) Modified: stable/9/sys/geom

svn commit: r249143 - stable/9/sys/geom

2013-04-05 Thread Alexander Motin
Author: mav Date: Fri Apr 5 10:13:44 2013 New Revision: 249143 URL: http://svnweb.freebsd.org/changeset/base/249143 Log: MFC r226736: Improve style a bit. Modified: stable/9/sys/geom/geom_disk.c Directory Properties: stable/9/sys/ (props changed) Modified: stable/9/sys/geom/geom_disk.

svn commit: r249144 - stable/9/sys/geom

2013-04-05 Thread Alexander Motin
Author: mav Date: Fri Apr 5 10:22:22 2013 New Revision: 249144 URL: http://svnweb.freebsd.org/changeset/base/249144 Log: MFC r226737 (by pjd): Allow upper layers to discover than BIO_DELETE and/or BIO_FLUSH is not supported by returning EOPNOTSUPP instead of 0 or ENODEV. Modified: stable

svn commit: r249145 - in stable/9/sys/geom: concat stripe

2013-04-05 Thread Alexander Motin
Author: mav Date: Fri Apr 5 10:27:05 2013 New Revision: 249145 URL: http://svnweb.freebsd.org/changeset/base/249145 Log: MFC r226998, r227004: Refactor disk disconnection and geom destruction handling sequences. Do not close/destroy opened consumer directly in case of disconnect. Instead

svn commit: r249146 - stable/9/sys/geom

2013-04-05 Thread Alexander Motin
Author: mav Date: Fri Apr 5 10:29:14 2013 New Revision: 249146 URL: http://svnweb.freebsd.org/changeset/base/249146 Log: MFC r227015: Add mutex and two flags to make orphan() call properly asynchronous: - delay consumer closing and detaching on orphan() until all I/Os complete; - preven

svn commit: r249147 - stable/9/sys/geom

2013-04-05 Thread Alexander Motin
Author: mav Date: Fri Apr 5 10:30:37 2013 New Revision: 249147 URL: http://svnweb.freebsd.org/changeset/base/249147 Log: MFC r228204: Close race between geom destruction on g_vfs_close() when softc destroyed and g_vfs_orphan() call that tries to access softc, intruced at r227015. Modified:

svn commit: r249148 - in stable/9/sys/geom: . bde uncompress uzip

2013-04-05 Thread Alexander Motin
Author: mav Date: Fri Apr 5 10:35:36 2013 New Revision: 249148 URL: http://svnweb.freebsd.org/changeset/base/249148 Log: MFC r238198 (by trasz): Fix orphan() methods of several GEOM classes to not assume that there is an error set on the provider. With GEOM resizing, class can become orp

svn commit: r249149 - stable/9/sys/geom

2013-04-05 Thread Alexander Motin
Author: mav Date: Fri Apr 5 10:50:32 2013 New Revision: 249149 URL: http://svnweb.freebsd.org/changeset/base/249149 Log: MFC r240822, r241022 (by pjd): Use the topology lock to protect list of providers while withering them. It is possible that provider is destroyed while we are iterating o

svn commit: r249150 - stable/9/sys/geom

2013-04-05 Thread Alexander Motin
Author: mav Date: Fri Apr 5 10:57:02 2013 New Revision: 249150 URL: http://svnweb.freebsd.org/changeset/base/249150 Log: MFC r244716 (by pjd): Reset provider-specific fields when resending I/O request in low memory conditions. This fixes assertion which checks those fields when kernel is

svn commit: r249152 - in stable/9/sys: cam cam/ata cam/scsi geom geom/part

2013-04-05 Thread Alexander Motin
Author: mav Date: Fri Apr 5 11:41:56 2013 New Revision: 249152 URL: http://svnweb.freebsd.org/changeset/base/249152 Log: MFC r238886, r238892: Implement media change notification for DA and CD removable media devices. It includes three parts: 1) Modifications to CAM to detect media media

svn commit: r249154 - stable/9/sys/cam/scsi

2013-04-05 Thread Alexander Motin
Author: mav Date: Fri Apr 5 11:45:52 2013 New Revision: 249154 URL: http://svnweb.freebsd.org/changeset/base/249154 Log: MFC r245251 (by smh): Removes essentially unused variables from scsi_da probe setups PR: kern/169835 Modified: stable/9/sys/cam/scsi/scsi_da.c Directory P

svn commit: r249155 - stable/9/sys/cam/scsi

2013-04-05 Thread Alexander Motin
Author: mav Date: Fri Apr 5 11:48:35 2013 New Revision: 249155 URL: http://svnweb.freebsd.org/changeset/base/249155 Log: MFC r245252 (by smh): Updates delete_method sysctl changes to always maintain disk d_flags DISKFLAG_CANDELETE. While this change makes this layer consistent other layer

svn commit: r249156 - stable/9/sys/cam/scsi

2013-04-05 Thread Alexander Motin
Author: mav Date: Fri Apr 5 11:50:05 2013 New Revision: 249156 URL: http://svnweb.freebsd.org/changeset/base/249156 Log: MFC r245253 (by smh): Changed scsi_da device requests to use the sysctl tunable value for retry_count and da_default_timeout where their current hardcoded values matched

svn commit: r249157 - stable/9/sys/cam/scsi

2013-04-05 Thread Alexander Motin
Author: mav Date: Fri Apr 5 11:52:33 2013 New Revision: 249157 URL: http://svnweb.freebsd.org/changeset/base/249157 Log: MFC r245306: Do not schedule periph for payload/TUR requests if reprobe is in progress to avoid sending extra READ CAPACITY requests by dastart(). Schedule periph agai

svn commit: r249158 - stable/9/sys/cam/scsi

2013-04-05 Thread Alexander Motin
Author: mav Date: Fri Apr 5 11:53:53 2013 New Revision: 249158 URL: http://svnweb.freebsd.org/changeset/base/249158 Log: MFC r245310: - Add missig xpt_schedule() call for cases when requested immediate CCB priority is lower then payload/TUR one. - Reduce TUR priority and avoid sending

svn commit: r249159 - stable/9/sys/cam/scsi

2013-04-05 Thread Alexander Motin
Author: mav Date: Fri Apr 5 11:55:52 2013 New Revision: 249159 URL: http://svnweb.freebsd.org/changeset/base/249159 Log: MFC r247154: Add DA_Q_NO_PREVENT quirk for Kingston DataTraveler G3 1.00 USB flash. PREVENT ALLOW MEDIUM REMOVAL commands return errors on these devices without retu

svn commit: r249160 - stable/9/sys/cam/ata

2013-04-05 Thread Alexander Motin
Author: mav Date: Fri Apr 5 11:57:41 2013 New Revision: 249160 URL: http://svnweb.freebsd.org/changeset/base/249160 Log: MFC r247161: Hide SEMB port of the SiI3826 Port Multiplier by default to avoid extra errors while it tries to talk via I2C to usually missing external SEP. There is tun

svn commit: r249161 - head/sys/geom

2013-04-05 Thread Alexander Motin
Author: mav Date: Fri Apr 5 13:11:28 2013 New Revision: 249161 URL: http://svnweb.freebsd.org/changeset/base/249161 Log: Following r241022, replace iteration over the provider list on media events by taking first one and asserting that there is no others. MFC after:1 week Modified:

svn commit: r249201 - head

2013-04-06 Thread Alexander Motin
Author: mav Date: Sat Apr 6 13:47:44 2013 New Revision: 249201 URL: http://svnweb.freebsd.org/changeset/base/249201 Log: Document legacy ATA stack removal. Modified: head/UPDATING Modified: head/UPDATING == --- head

svn commit: r249205 - head/sys/cam/ata

2013-04-06 Thread Alexander Motin
Author: mav Date: Sat Apr 6 17:14:56 2013 New Revision: 249205 URL: http://svnweb.freebsd.org/changeset/base/249205 Log: Replicate r245306 from SCSI to ATA. The problem didn't appear so far, covered by multilevel freeze mechanism, but it is better to be safe. Modified: head/sys/cam/ata/at

svn commit: r249224 - head/sys/cam

2013-04-06 Thread Alexander Motin
Author: mav Date: Sun Apr 7 06:47:44 2013 New Revision: 249224 URL: http://svnweb.freebsd.org/changeset/base/249224 Log: Remove extra semicolons from CAM_SIM_[UN]LOCK() macros. Modified: head/sys/cam/cam_sim.h Modified: head/sys/cam/cam_sim.h

svn commit: r249336 - head/sys/dev/usb/controller

2013-04-10 Thread Alexander Motin
Author: mav Date: Wed Apr 10 17:43:20 2013 New Revision: 249336 URL: http://svnweb.freebsd.org/changeset/base/249336 Log: Add ID for ASMedia ASM1042 USB 3.0 controller. MFC after:1 week Modified: head/sys/dev/usb/controller/xhci_pci.c Modified: head/sys/dev/usb/controller/xhci_pci.c

svn commit: r249337 - stable/9/sys/cam

2013-04-10 Thread Alexander Motin
Author: mav Date: Wed Apr 10 17:49:25 2013 New Revision: 249337 URL: http://svnweb.freebsd.org/changeset/base/249337 Log: MFC r248800: On SIM destruction free associated CCBs, preallocated inside xpt_get_ccb(). Before this change they were just leaked. Fortunately USB sticks now use only

svn commit: r249338 - stable/8/sys/cam

2013-04-10 Thread Alexander Motin
Author: mav Date: Wed Apr 10 17:51:15 2013 New Revision: 249338 URL: http://svnweb.freebsd.org/changeset/base/249338 Log: MFC r248800: On SIM destruction free associated CCBs, preallocated inside xpt_get_ccb(). Before this change they were just leaked. Fortunately USB sticks now use only

svn commit: r249340 - stable/9/sys/dev/ata

2013-04-10 Thread Alexander Motin
Author: mav Date: Wed Apr 10 18:07:25 2013 New Revision: 249340 URL: http://svnweb.freebsd.org/changeset/base/249340 Log: MFC r249052: Add some more ATA_CAM ifdefs. Modified: stable/9/sys/dev/ata/ata-all.c stable/9/sys/dev/ata/ata-all.h Directory Properties: stable/9/sys/ (props chang

svn commit: r249341 - in stable/9/sys/dev/ata: . chipsets

2013-04-10 Thread Alexander Motin
Author: mav Date: Wed Apr 10 18:13:33 2013 New Revision: 249341 URL: http://svnweb.freebsd.org/changeset/base/249341 Log: MFC r249062: Since ATA_CAM mode has no implemented support for serializing access to the different ATA channels, required for acard and pc98 ATA controllers, block acce

svn commit: r249346 - head/sys/dev/ahci

2013-04-10 Thread Alexander Motin
Author: mav Date: Wed Apr 10 20:38:15 2013 New Revision: 249346 URL: http://svnweb.freebsd.org/changeset/base/249346 Log: Create controller-level DMA tag, handling range of supported addresses. That simplifies logic for channels and gives the bus information about what device actually alloca

svn commit: r249352 - head/sys/cam/scsi

2013-04-10 Thread Alexander Motin
Author: mav Date: Thu Apr 11 06:34:41 2013 New Revision: 249352 URL: http://svnweb.freebsd.org/changeset/base/249352 Log: Do not sent 120 TEST UNIT READY requests on generic NOT READY statuses. Some failing disks tend to return vendor-specific ASC/ASCQ codes with NOT READY sense key. It

svn commit: r249414 - stable/9/sys/geom

2013-04-12 Thread Alexander Motin
Author: mav Date: Fri Apr 12 17:15:47 2013 New Revision: 249414 URL: http://svnweb.freebsd.org/changeset/base/249414 Log: MFC r249161: Following r241022, replace iteration over the provider list on media events by taking first one and asserting that there is no others. Modified: stable/9/

svn commit: r249438 - head/sys/cam/ata

2013-04-13 Thread Alexander Motin
Author: mav Date: Sat Apr 13 14:03:44 2013 New Revision: 249438 URL: http://svnweb.freebsd.org/changeset/base/249438 Log: MFprojects/camlock r248894: Use full freeze while PMP does hard reset. This is only cosmetical change. Modified: head/sys/cam/ata/ata_pmp.c Modified: head/sys/cam/ata/a

svn commit: r249466 - in head/sys/cam: . ata ctl scsi

2013-04-14 Thread Alexander Motin
Author: mav Date: Sun Apr 14 09:28:14 2013 New Revision: 249466 URL: http://svnweb.freebsd.org/changeset/base/249466 Log: MFprojects/camlock r248890, r248897, r248898, r248900, r248903, r248905, r248917, r248918, r248978, r249001, r249014, r249030: Remove multilevel freezing mechanism, im

svn commit: r249468 - in head/sys: cam cam/ata cam/ctl cam/scsi dev/aac dev/arcmsr dev/ciss dev/firewire dev/hpt27xx dev/hptiop dev/hptrr dev/isci dev/iscsi/initiator dev/isp dev/mfi dev/mly dev/mp...

2013-04-14 Thread Alexander Motin
Author: mav Date: Sun Apr 14 09:55:48 2013 New Revision: 249468 URL: http://svnweb.freebsd.org/changeset/base/249468 Log: MFprojects/camlock r248982: Stop abusing xpt_periph in random plases that really have no periph related to CCB, for example, bus scanning. NULL value is fine in such cas

svn commit: r249470 - head/sys/cam

2013-04-14 Thread Alexander Motin
Author: mav Date: Sun Apr 14 10:14:26 2013 New Revision: 249470 URL: http://svnweb.freebsd.org/changeset/base/249470 Log: Remove owner field from struct cam_ed, unused at least since FreeBSD 7. Modified: head/sys/cam/cam_xpt.c head/sys/cam/cam_xpt_internal.h Modified: head/sys/cam/cam_xpt.

svn commit: r249481 - head/sys/cam

2013-04-14 Thread Alexander Motin
Author: mav Date: Sun Apr 14 18:09:08 2013 New Revision: 249481 URL: http://svnweb.freebsd.org/changeset/base/249481 Log: Remove some more pieces of multilevel freeze mechanism, missed in r249466. Modified: head/sys/cam/cam_queue.h Modified: head/sys/cam/cam_queue.h =

svn commit: r249609 - stable/9/sys/cam/ata

2013-04-18 Thread Alexander Motin
Author: mav Date: Thu Apr 18 09:03:06 2013 New Revision: 249609 URL: http://svnweb.freebsd.org/changeset/base/249609 Log: MFC r248695: Remove two bzero()s that are erasing only few more bytes then set later. Modified: stable/9/sys/cam/ata/ata_all.c Directory Properties: stable/9/sys/ (p

<    3   4   5   6   7   8   9   10   11   12   >