All of lore.kernel.org
 help / color / mirror / Atom feed
* SCSI regression in 4.11
@ 2017-02-27 23:30 Stephen Hemminger
  2017-02-28  1:19 ` Stephen Hemminger
  0 siblings, 1 reply; 49+ messages in thread
From: Stephen Hemminger @ 2017-02-27 23:30 UTC (permalink / raw)
  To: Christoph Hellwig, Linus Torvalds, James E.J. Bottomley,
	Martin K. Petersen, K. Y. Srinivasan, Dexuan Cui, Jens Axboe,
	Long Li, Josh Poulson, v-adsuho
  Cc: linux-scsi

[-- Attachment #1: Type: text/plain, Size: 30922 bytes --]

Something in SCSI in 4.11 broke booting on Hyper-V Generation 2 VM with 8 VCPU and 4G of memory.
Both Linus's current tree (4.11 pre-rc1) and linux-next fail in a similar manner. It looks like some error
in SCSI device detection because there is only a single device.

The offending commit causing the regression is:

$ git bisect bad
e9c787e65c0c36529745be47d490d998b4b6e589 is the first bad commit
commit e9c787e65c0c36529745be47d490d998b4b6e589
Author: Christoph Hellwig <hch@lst.de>
Date:   Mon Jan 2 21:55:26 2017 +0300

    scsi: allocate scsi_cmnd structures as part of struct request
    
    Rely on the new block layer functionality to allocate additional driver
    specific data behind struct request instead of implementing it in SCSI
    itѕelf.
    
    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Acked-by: Martin K. Petersen <martin.petersen@oracle.com>
    Reviewed-by: Hannes Reinecke <hare@suse.com>
    Signed-off-by: Jens Axboe <axboe@fb.com>

:040000 040000 6ff016fcdae227efeb19c1c301b17ccd7ea35da6 70d79f99d9b79ecf4dccbe067fc697219f5c78da M	drivers
:040000 040000 a672ff52df8b2c211b3f98cae4a88d8a96ccde0b 1aaaed7de0994f597c7f8290c722a0b4a7789429 M	include

I checked and tree is current and up to date and includes 
commit ee5242360424b9b967454e9183767323d10cf985
Author: Christoph Hellwig <hch@lst.de>
Date:   Tue Feb 21 10:04:55 2017 +0100

    scsi: zero per-cmd driver data before each I/O

Kernel config is attached. It started with Ubuntu config, but then did localmodconfig and pruned
out unnecessary stuff.

The kernel log before hang is:

[    0.000000] Linux version 4.10.0+ (shemminger@ubuntu-vm) (gcc version 6.2.0 20161005 (Ubuntu 6.2.0-5ubuntu12) ) #34 SMP Mon Feb 27 15:19:23 PST 2017
[    0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-4.10.0+ root=UUID=75c9872d-47e9-4a8d-b416-1f52faed205b ro console=tty0 console=ttyS0,115200n8
[    0.000000] KERNEL supported cpus:
[    0.000000]   Intel GenuineIntel
[    0.000000]   AMD AuthenticAMD
[    0.000000]   Centaur CentaurHauls
[    0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[    0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[    0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[    0.000000] x86/fpu: xstate_offset[2]:  576, xstate_sizes[2]:  256
[    0.000000] x86/fpu: Enabled xstate features 0x7, context size is 832 bytes, using 'standard' format.
[    0.000000] e820: BIOS-provided physical RAM map:
[    0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009ffff] usable
[    0.000000] BIOS-e820: [mem 0x0000000000100000-0x00000000f6ee5fff] usable
[    0.000000] BIOS-e820: [mem 0x00000000f6ee6000-0x00000000f6ee6fff] ACPI data
[    0.000000] BIOS-e820: [mem 0x00000000f6ee7000-0x00000000f6eedfff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000f6eee000-0x00000000f6ef1fff] ACPI data
[    0.000000] BIOS-e820: [mem 0x00000000f6ef2000-0x00000000f6f1afff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000f6f1b000-0x00000000f7f9afff] usable
[    0.000000] BIOS-e820: [mem 0x00000000f7f9b000-0x00000000f7fb6fff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000f7fb7000-0x00000000f7fb8fff] type 20
[    0.000000] BIOS-e820: [mem 0x00000000f7fb9000-0x00000000f7fbafff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000f7fbb000-0x00000000f7fbbfff] type 20
[    0.000000] BIOS-e820: [mem 0x00000000f7fbc000-0x00000000f7fbdfff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000f7fbe000-0x00000000f7fbefff] type 20
[    0.000000] BIOS-e820: [mem 0x00000000f7fbf000-0x00000000f7fc0fff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000f7fc1000-0x00000000f7fc1fff] type 20
[    0.000000] BIOS-e820: [mem 0x00000000f7fc2000-0x00000000f7fc3fff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000f7fc4000-0x00000000f7fc5fff] type 20
[    0.000000] BIOS-e820: [mem 0x00000000f7fc6000-0x00000000f7fc7fff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000f7fc8000-0x00000000f7fc8fff] type 20
[    0.000000] BIOS-e820: [mem 0x00000000f7fc9000-0x00000000f7ff2fff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000f7ff3000-0x00000000f7ffafff] ACPI data
[    0.000000] BIOS-e820: [mem 0x00000000f7ffb000-0x00000000f7ffefff] ACPI NVS
[    0.000000] BIOS-e820: [mem 0x00000000f7fff000-0x00000000f7ffffff] usable
[    0.000000] BIOS-e820: [mem 0x0000000100000000-0x0000000207ffffff] usable
[    0.000000] NX (Execute Disable) protection: active
[    0.000000] efi: EFI v2.31 by EDK II
[    0.000000] efi:  ACPI=0xf7ffa000  ACPI 2.0=0xf7ffa014  SMBIOS=0xf7ff2000  PROP=0x7fb93d8  MEMATTR=0xf72add18 
[    0.000000] SMBIOS 2.4 present.
[    0.000000] DMI: Microsoft Corporation Virtual Machine/Virtual Machine, BIOS Hyper-V UEFI Release v1.0 11/26/2012
[    0.000000] Hypervisor detected: Microsoft HyperV
[    0.000000] HyperV: features 0x2e7f, hints 0x2c2c
[    0.000000] Hyper-V Host Build:14393-10.0-0-0.576
[    0.000000] HyperV: LAPIC Timer Frequency: 0xc3500
[    0.000000] tsc: Marking TSC unstable due to running on Hyper-V
[    0.000000] e820: last_pfn = 0x208000 max_arch_pfn = 0x400000000
[    0.000000] x86/PAT: Configuration [0-7]: WB  WC  UC- UC  WB  WC  UC- WT  
[    0.000000] e820: last_pfn = 0xf8000 max_arch_pfn = 0x400000000
[    0.000000] Scanning 1 areas for low memory corruption
[    0.000000] Using GB pages for direct mapping
[    0.000000] Secure boot could not be determined
[    0.000000] RAMDISK: [mem 0x34cea000-0x3666cfff]
[    0.000000] ACPI: Early table checksum verification disabled
[    0.000000] ACPI: RSDP 0x00000000F7FFA014 000024 (v02 VRTUAL)
[    0.000000] ACPI: XSDT 0x00000000F7FF90E8 000064 (v01 VRTUAL MICROSFT 00000001 MSFT 00000001)
[    0.000000] ACPI: FACP 0x00000000F7FF7000 0000F4 (v04 VRTUAL MICROSFT 00000001 MSFT 00000001)
[    0.000000] ACPI: DSDT 0x00000000F6EEF000 00256F (v02 MSFTVM DSDT01   00000001 MSFT 04000000)
[    0.000000] ACPI: FACS 0x00000000F7FFE000 000040
[    0.000000] ACPI: APIC 0x00000000F7FF8000 0007D2 (v02 VRTUAL MICROSFT 00000001 MSFT 00000001)
[    0.000000] ACPI: OEM0 0x00000000F7FF6000 000064 (v01 VRTUAL MICROSFT 00000001 MSFT 00000001)
[    0.000000] ACPI: WAET 0x00000000F7FF5000 000028 (v01 VRTUAL MICROSFT 00000001 MSFT 00000001)
[    0.000000] ACPI: OEM1 0x00000000F7FF4000 00009E (v02 MSFTVM UARTS    00000001 MSFT 04000000)
[    0.000000] ACPI: OEM2 0x00000000F7FF3000 0002E2 (v02 MSFTVM VTPM2    00000001 MSFT 04000000)
[    0.000000] ACPI: SRAT 0x00000000F6EEE000 0001D0 (v02 VRTUAL MICROSFT 00000001 MSFT 00000001)
[    0.000000] ACPI: BGRT 0x00000000F6EE6000 000038 (v01 VRTUAL MICROSFT 00000001 MSFT 00000001)
[    0.000000] SRAT: PXM 0 -> APIC 0x00 -> Node 0
[    0.000000] SRAT: PXM 0 -> APIC 0x01 -> Node 0
[    0.000000] SRAT: PXM 0 -> APIC 0x02 -> Node 0
[    0.000000] SRAT: PXM 0 -> APIC 0x03 -> Node 0
[    0.000000] SRAT: PXM 0 -> APIC 0x04 -> Node 0
[    0.000000] SRAT: PXM 0 -> APIC 0x05 -> Node 0
[    0.000000] ACPI: SRAT: Node 0 PXM 0 [mem 0x00000000-0xf7ffffff] hotplug
[    0.000000] ACPI: SRAT: Node 0 PXM 0 [mem 0x100000000-0x207ffffff] hotplug
[    0.000000] ACPI: SRAT: Node 0 PXM 0 [mem 0x208200000-0xfdfffffff] hotplug
[    0.000000] ACPI: SRAT: Node 0 PXM 0 [mem 0x1000000000-0xffffffffff] hotplug
[    0.000000] ACPI: SRAT: Node 0 PXM 0 [mem 0x10000200000-0x1ffffffffff] hotplug
[    0.000000] ACPI: SRAT: Node 0 PXM 0 [mem 0x20000200000-0x3ffffffffff] hotplug
[    0.000000] ACPI: SRAT: Node 0 PXM 0 [mem 0x40000200000-0x7ffffffffff] hotplug
[    0.000000] ACPI: SRAT: Node 0 PXM 0 [mem 0x80000200000-0xfffffffffff] hotplug
[    0.000000] NUMA: Node 0 [mem 0x00000000-0xf7ffffff] + [mem 0x100000000-0x207ffffff] -> [mem 0x00000000-0x207ffffff]
[    0.000000] NODE_DATA(0) allocated [mem 0x207ffb000-0x207ffffff]
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000001000-0x0000000000ffffff]
[    0.000000]   DMA32    [mem 0x0000000001000000-0x00000000ffffffff]
[    0.000000]   Normal   [mem 0x0000000100000000-0x0000000207ffffff]
[    0.000000]   Device   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000001000-0x000000000009ffff]
[    0.000000]   node   0: [mem 0x0000000000100000-0x00000000f6ee5fff]
[    0.000000]   node   0: [mem 0x00000000f6f1b000-0x00000000f7f9afff]
[    0.000000]   node   0: [mem 0x00000000f7fff000-0x00000000f7ffffff]
[    0.000000]   node   0: [mem 0x0000000100000000-0x0000000207ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000001000-0x0000000207ffffff]
[    0.000000] ACPI: PM-Timer IO Port: 0x408
[    0.000000] ACPI: LAPIC_NMI (acpi_id[0xff] dfl dfl lint[0x1])
[    0.000000] IOAPIC[0]: apic_id 6, version 17, address 0xfec00000, GSI 0-23
[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
[    0.000000] Using ACPI (MADT) for SMP configuration information
[    0.000000] efi: requested map not found.
[    0.000000] efi: Failed to lookup EFI memory descriptor for 0x00000000f6ee7000
[    0.000000] smpboot: Allowing 240 CPUs, 234 hotplug CPUs
[    0.000000] PM: Registered nosave memory: [mem 0x00000000-0x00000fff]
[    0.000000] PM: Registered nosave memory: [mem 0x000a0000-0x000fffff]
[    0.000000] PM: Registered nosave memory: [mem 0xf6ee6000-0xf6ee6fff]
[    0.000000] PM: Registered nosave memory: [mem 0xf6ee7000-0xf6eedfff]
[    0.000000] PM: Registered nosave memory: [mem 0xf6eee000-0xf6ef1fff]
[    0.000000] PM: Registered nosave memory: [mem 0xf6ef2000-0xf6f1afff]
[    0.000000] PM: Registered nosave memory: [mem 0xf7f9b000-0xf7fb6fff]
[    0.000000] PM: Registered nosave memory: [mem 0xf7fb7000-0xf7fb8fff]
[    0.000000] PM: Registered nosave memory: [mem 0xf7fb9000-0xf7fbafff]
[    0.000000] PM: Registered nosave memory: [mem 0xf7fbb000-0xf7fbbfff]
[    0.000000] PM: Registered nosave memory: [mem 0xf7fbc000-0xf7fbdfff]
[    0.000000] PM: Registered nosave memory: [mem 0xf7fbe000-0xf7fbefff]
[    0.000000] PM: Registered nosave memory: [mem 0xf7fbf000-0xf7fc0fff]
[    0.000000] PM: Registered nosave memory: [mem 0xf7fc1000-0xf7fc1fff]
[    0.000000] PM: Registered nosave memory: [mem 0xf7fc2000-0xf7fc3fff]
[    0.000000] PM: Registered nosave memory: [mem 0xf7fc4000-0xf7fc5fff]
[    0.000000] PM: Registered nosave memory: [mem 0xf7fc6000-0xf7fc7fff]
[    0.000000] PM: Registered nosave memory: [mem 0xf7fc8000-0xf7fc8fff]
[    0.000000] PM: Registered nosave memory: [mem 0xf7fc9000-0xf7ff2fff]
[    0.000000] PM: Registered nosave memory: [mem 0xf7ff3000-0xf7ffafff]
[    0.000000] PM: Registered nosave memory: [mem 0xf7ffb000-0xf7ffefff]
[    0.000000] PM: Registered nosave memory: [mem 0xf8000000-0xffffffff]
[    0.000000] e820: [mem 0xf8000000-0xffffffff] available for PCI devices
[    0.000000] Booting paravirtualized kernel on bare hardware
[    0.000000] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 30582079743023 ns
[    0.000000] setup_percpu: NR_CPUS:512 nr_cpumask_bits:512 nr_cpu_ids:240 nr_node_ids:1
[    0.000000] percpu: Embedded 37 pages/cpu @ffff945a7ba00000 s111192 r8192 d32168 u262144
[    0.000000] Built 1 zonelists in Node order, mobility grouping on.  Total pages: 2063566
[    0.000000] Policy zone: Normal
[    0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.10.0+ root=UUID=75c9872d-47e9-4a8d-b416-1f52faed205b ro console=tty0 console=ttyS0,115200n8
[    0.000000] log_buf_len individual max cpu contribution: 4096 bytes
[    0.000000] log_buf_len total cpu_extra contributions: 978944 bytes
[    0.000000] log_buf_len min size: 262144 bytes
[    0.000000] log_buf_len: 2097152 bytes
[    0.000000] early log buf free: 248064(94%)
[    0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[    0.000000] Memory: 8039676K/8387608K available (8411K kernel code, 1407K rwdata, 3428K rodata, 1516K init, 1132K bss, 347932K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=240, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] 	Build-time adjustment of leaf fanout to 64.
[    0.000000] 	RCU restricting CPUs from NR_CPUS=512 to nr_cpu_ids=240.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=64, nr_cpu_ids=240
[    0.000000] Using NULL legacy PIC
[    0.000000] NR_IRQS:33024 nr_irqs:2344 0
[    0.000000] Console: colour dummy device 80x25
[    0.000000] console [tty0] enabled
[    0.000000] console [ttyS0] enabled
[    0.000000] tsc: Fast TSC calibration failed
[    0.000000] tsc: Unable to calibrate against PIT
[    0.000000] tsc: using PMTIMER reference calibration
[    0.000000] tsc: Detected 3205.648 MHz processor
[    0.000035] Calibrating delay loop (skipped), value calculated using timer frequency.. 6411.29 BogoMIPS (lpj=12822592)
[    0.004000] pid_max: default: 245760 minimum: 1920
[    0.004000] ACPI: Core revision 20170119
[    0.004000] ACPI: 1 ACPI AML tables successfully acquired and loaded
[    0.004000] Security Framework initialized
[    0.004000] Yama: becoming mindful.
[    0.004000] AppArmor: AppArmor initialized
[    0.004000] Dentry cache hash table entries: 1048576 (order: 11, 8388608 bytes)
[    0.004000] Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes)
[    0.004000] Mount-cache hash table entries: 16384 (order: 5, 131072 bytes)
[    0.004000] Mountpoint-cache hash table entries: 16384 (order: 5, 131072 bytes)
[    0.004000] CPU: Physical Processor ID: 0
[    0.004000] CPU: Processor Core ID: 0
[    0.004000] mce: CPU supports 1 MCE banks
[    0.004000] Last level iTLB entries: 4KB 64, 2MB 8, 4MB 8
[    0.004000] Last level dTLB entries: 4KB 64, 2MB 0, 4MB 0, 1GB 4
[    0.004000] Freeing SMP alternatives memory: 32K
[    0.004000] ftrace: allocating 31694 entries in 124 pages
[    0.004000] smpboot: Max logical packages: 30
[    0.004000] Switched APIC routing to physical flat.
[    0.004000] clocksource: hyperv_clocksource_tsc_page: mask: 0xffffffffffffffff max_cycles: 0x24e6a1710, max_idle_ns: 440795202120 ns
[    0.004000] smpboot: CPU0: Intel(R) Xeon(R) CPU E5-1620 v4 @ 3.50GHz (family: 0x6, model: 0x4f, stepping: 0x1)
[    0.004000] Performance Events: unsupported p6 CPU model 79 no PMU driver, software events only.
[    0.005449] NMI watchdog: disabled (cpu0): hardware events not enabled
[    0.008002] NMI watchdog: Shutting down hard lockup detector on all cpus
[    0.010421] smp: Bringing up secondary CPUs ...
[    0.012102] x86: Booting SMP configuration:
[    0.013804] .... node  #0, CPUs:          #1   #2   #3   #4   #5
[    0.412070] smp: Brought up 1 node, 6 CPUs
[    0.415212] smpboot: Total of 6 processors activated (41344.07 BogoMIPS)
[    0.416726] devtmpfs: initialized
[    0.417753] x86/mm: Memory block size: 128MB
[    0.421417] evm: security.selinux
[    0.424002] evm: security.SMACK64
[    0.425643] evm: security.SMACK64EXEC
[    0.427439] evm: security.SMACK64TRANSMUTE
[    0.428002] evm: security.SMACK64MMAP
[    0.429243] evm: security.ima
[    0.430256] evm: security.capability
[    0.432042] PM: Registering ACPI NVS region [mem 0xf7ffb000-0xf7ffefff] (16384 bytes)
[    0.434674] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.436121] futex hash table entries: 65536 (order: 10, 4194304 bytes)
[    0.440552] pinctrl core: initialized pinctrl subsystem
[    0.442559] RTC time: 23:49:14, date: 02/27/17
[    0.444000] NET: Registered protocol family 16
[    0.444160] cpuidle: using governor ladder
[    0.445391] cpuidle: using governor menu
[    0.446674] PCCT header not found.
[    0.448028] ACPI: bus type PCI registered
[    0.449286] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
[    0.452087] PCI: Fatal: No config space access function found
[    0.454272] HugeTLB registered 1 GB page size, pre-allocated 0 pages
[    0.456002] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[    0.460253] ACPI: Added _OSI(Module Device)
[    0.461629] ACPI: Added _OSI(Processor Device)
[    0.463075] ACPI: Added _OSI(3.0 _SCP Extensions)
[    0.464002] ACPI: Added _OSI(Processor Aggregator Device)
[    0.468066] ACPI: Executed 1 blocks of module-level executable AML code
[    0.469174] ACPI: Dynamic OEM Table Load:
[    0.470593] ACPI: Interpreter enabled
[    0.471108] ACPI: (supports S0 S5)
[    0.471561] ACPI: Using IOAPIC for interrupt routing
[    0.472000] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
[    0.479952] ACPI: Enabled 1 GPEs in block 00 to 0F
[    0.488195] vgaarb: loaded
[    0.489040] SCSI subsystem initialized
[    0.490387] ACPI: bus type USB registered
[    0.490387] usbcore: registered new interface driver usbfs
[    0.492009] usbcore: registered new interface driver hub
[    0.493851] usbcore: registered new device driver usb
[    0.495544] Registered efivars operations
[    0.503255] PCI: Using ACPI for IRQ routing
[    0.504002] PCI: System does not support PCI
[    0.505929] NetLabel: Initializing
[    0.507288] NetLabel:  domain hash size = 128
[    0.508001] NetLabel:  protocols = UNLABELED CIPSOv4 CALIPSO
[    0.510000] NetLabel:  unlabeled traffic allowed by default
[    0.512096] clocksource: Switched to clocksource hyperv_clocksource_tsc_page
[    0.522476] VFS: Disk quotas dquot_6.6.0
[    0.523891] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.525814] AppArmor: AppArmor Filesystem Enabled
[    0.527431] pnp: PnP ACPI init
[    0.528622] pnp: PnP ACPI: found 3 devices
[    0.536176] clocksource: acpi_pm: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 2085701024 ns
[    0.539588] NET: Registered protocol family 2
[    0.540786] TCP established hash table entries: 65536 (order: 7, 524288 bytes)
[    0.543264] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
[    0.545165] TCP: Hash tables configured (established 65536 bind 65536)
[    0.547597] UDP hash table entries: 4096 (order: 5, 131072 bytes)
[    0.549243] UDP-Lite hash table entries: 4096 (order: 5, 131072 bytes)
[    0.551704] NET: Registered protocol family 1
[    0.552890] Trying to unpack rootfs image as initramfs...
[    0.814298] Freeing initrd memory: 26124K
[    0.815681] PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
[    0.817264] software IO TLB [mem 0xf2ee6000-0xf6ee6000] (64MB) mapped at [ffff945972ee6000-ffff945976ee5fff]
[    0.820280] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x2e35216b7da, max_idle_ns: 440795326598 ns
[    0.823447] Scanning for low memory corruption every 60 seconds
[    0.828376] audit: initializing netlink subsys (disabled)
[    0.830157] audit: type=2000 audit(1488239353.828:1): state=initialized audit_enabled=0 res=1
[    0.830195] Initialise system trusted keyrings
[    0.830437] workingset: timestamp_bits=40 max_order=21 bucket_order=0
[    0.831592] zbud: loaded
[    0.832215] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.839021] fuse init (API version 7.26)
[    0.840241] Allocating IMA blacklist keyring.
[    0.844551] Key type asymmetric registered
[    0.845970] Asymmetric key parser 'x509' registered
[    0.847640] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.850400] io scheduler noop registered
[    0.851751] io scheduler deadline registered (default)
[    0.853291] io scheduler cfq registered
[    0.854618] io scheduler mq-deadline registered
[    0.856374] efifb: probing for efifb
[    0.858423] efifb: framebuffer at 0xf8000000, using 3072k, total 3072k
[    0.860777] efifb: mode is 1024x768x32, linelength=4096, pages=1
[    0.862830] efifb: scrolling: redraw
[    0.864068] efifb: Truecolor: size=8:8:8:8, shift=24:16:8:0
[    0.868498] Console: switching to colour frame buffer device 128x48
[    0.871853] fb0: EFI VGA frame buffer device
[    0.873242] GHES: HEST is not enabled!
[    0.874304] Serial: 8250/16550 driver, 32 ports, IRQ sharing enabled
[    0.898019] 00:01: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[    0.924361] 00:02: ttyS1 at I/O 0x2f8 (irq = 3, base_baud = 115200) is a 16550A
[    0.929056] Linux agpgart interface v0.103
[    0.935497] brd: module loaded
[    0.939892] loop: module loaded
[    0.941058] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.943249] ehci-pci: EHCI PCI platform driver
[    0.944485] ehci-platform: EHCI generic platform driver
[    0.946399] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.948198] ohci-pci: OHCI PCI platform driver
[    0.953339] ohci-platform: OHCI generic platform driver
[    0.956794] uhci_hcd: USB Universal Host Controller Interface driver
[    0.958963] i8042: PNP: No PS/2 controller found.
[    0.960371] mousedev: PS/2 mouse device common for all mice
[    0.962502] rtc_cmos 00:00: RTC can wake from S4
[    0.985511] rtc_cmos 00:00: rtc core: registered rtc_cmos as rtc0
[    0.988447] rtc_cmos 00:00: alarms up to one month, 114 bytes nvram
[    0.990591] i2c /dev entries driver
[    0.992283] ledtrig-cpu: registered to indicate activity on CPUs
[    0.994406] EFI Variables Facility v0.08 2004-May-17
[    0.998565] NET: Registered protocol family 10
[    1.000852] Segment Routing with IPv6
[    1.002997] NET: Registered protocol family 17
[    1.004701] Key type dns_resolver registered
[    1.006961] registered taskstats version 1
[    1.008674] Loading compiled-in X.509 certificates
[    1.012835] Loaded X.509 cert 'Build time autogenerated kernel key: ca70123d72bed0e2904a70aa2b0b6f4fa0fb1804'
[    1.022308] zswap: loaded using pool lzo/zbud
[    1.038107] Key type big_key registered
[    1.040925] Key type trusted registered
[    1.056253] Key type encrypted registered
[    1.066265] AppArmor: AppArmor sha1 policy hashing enabled
[    1.068467] ima: No TPM chip found, activating TPM-bypass! (rc=-19)
[    1.071147] evm: HMAC attrs: 0x1
[    1.072499]   Magic number: 5:234:859
[    1.074618] rtc_cmos 00:00: setting system clock to 2017-02-27 23:49:14 UTC (1488239354)
[    1.077524] BIOS EDD facility v0.16 2004-Jun-25, 0 devices found
[    1.080019] EDD information not available.
[    1.083694] Freeing unused kernel memory: 1516K
[    1.085304] Write protecting the kernel read-only data: 14336k
[    1.088127] Freeing unused kernel memory: 1816K
[    1.093583] Freeing unused kernel memory: 668K
[    1.106198] x86/mm: Checked W+X mappings: passed, no W+X pages found.
Loading, please wait...
starting version 231
[    1.136892] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    1.137232] random: udevadm: uninitialized urandom read (16 bytes read)
[    1.137252] random: udevadm: uninitialized urandom read (16 bytes read)
[    1.145695] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    1.149047] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    1.153773] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    1.162354] random: udevadm: uninitialized urandom read (16 bytes read)
[    1.164571] random: udevadm: uninitialized urandom read (16 bytes read)
[    1.167146] random: udevadm: uninitialized urandom read (16 bytes read)
[    1.189044] random: udevadm: uninitialized urandom read (16 bytes read)
[    1.210046] hv_vmbus: Vmbus version:4.0
[    1.260006] AVX2 version of gcm_enc/dec engaged.
[    1.262401] AES CTR mode by8 optimization enabled
[    1.288013] hv_vmbus: registering driver hyperv_keyboard
[    1.291502] hidraw: raw HID events driver (C) Jiri Kosina
[    1.294661] hv_utils: Registering HyperV Utility Driver
[    1.297256] hv_vmbus: registering driver hv_util
[    1.300005] hv_vmbus: registering driver hid_hyperv
[    1.303162] hv_vmbus: registering driver hv_netvsc
[    1.306422] input: AT Translated Set 2 keyboard as /devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0004:00/VMBUS:00/d34b2567-b9b6-42b9-8778-0a4ec0b955bf/serio0/input/input0
[    1.332832] hv_utils: Heartbeat IC version 3.0
[    1.335742] hv_vmbus: registering driver hv_storvsc
[    1.337313] input: Microsoft Vmbus HID-compliant Mouse as /devices/0006:045E:0621.0001/input/input1
[    1.337371] hid 0006:045E:0621.0001: input: <UNKNOWN> HID v0.01 Mouse [Microsoft Vmbus HID-compliant Mouse] on 
[    1.364065] hv_utils: cannot register PTP clock: 0
[    1.366580] hv_utils: Shutdown IC version 3.0
[    1.368982] hv_utils: TimeSync IC version 4.0
[    1.391920] scsi host0: storvsc_host_t
[    1.394415] scsi 0:0:0:0: Direct-Access     Msft     Virtual Disk     1.0  PQ: 0 ANSI: 5
[    1.394919] hv_utils: VSS IC version 5.0
[    1.400551] scsi host1: storvsc_host_t
[    1.402610] scsi 1:0:0:0: CD-ROM            Msft     Virtual DVD-ROM  1.0  PQ: 0 ANSI: 0
[    1.405530] scsi host1: scsi scan: INQUIRY result too short (5), using 36
[    1.408075] scsi 1:0:0:1: Direct-Access                                    PQ: 0 ANSI: 0
[    1.410796] scsi 1:0:0:2: Direct-Access                                    PQ: 0 ANSI: 0
[    1.412298] random: fast init done
[    1.415157] scsi 1:0:0:3: Direct-Access                                    PQ: 0 ANSI: 0
[    1.417001] scsi 1:0:0:4: Direct-Access                                    PQ: 0 ANSI: 0
[    1.438707] scsi 1:0:0:5: Direct-Access                                    PQ: 0 ANSI: 0
[    1.441769] scsi 1:0:0:6: Direct-Access                                    PQ: 0 ANSI: 0
[    1.445824] scsi 1:0:0:7: Direct-Access                                    PQ: 0 ANSI: 0
[    1.458154] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    1.458276] sd 0:0:0:0: [sda] 266338304 512-byte logical blocks: (136 GB/127 GiB)
[    1.458277] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    1.458303] sd 0:0:0:0: [sda] Write Protect is off
[    1.458369] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    1.462186]  sda: sda1 sda2 sda3
[    1.463198] sd 0:0:0:0: [sda] Attached SCSI disk
[    1.493752] sr 1:0:0:0: [sr0] scsi3-mmc drive: 0x/0x caddy
[    1.495937] cdrom: Uniform CD-ROM driver Revision: 3.20
[    1.498676] sr 1:0:0:0: Attached scsi generic sg1 type 5
[    1.501253] sd 1:0:0:1: Attached scsi generic sg2 type 0
[    1.501275] sd 1:0:0:1: [sdb] Sector size 0 reported, assuming 512.
[    1.501277] sd 1:0:0:1: [sdb] 1 512-byte logical blocks: (512 B/512 B)
[    1.501278] sd 1:0:0:1: [sdb] 0-byte physical blocks
[    1.501318] sd 1:0:0:1: [sdb] Write Protect is off
[    1.508021] sd 1:0:0:1: [sdb] Asking for cache data failed
[    1.508022] sd 1:0:0:1: [sdb] Assuming drive cache: write through
[    1.508194] sd 1:0:0:1: [sdb] Sector size 0 reported, assuming 512.
[    1.537525] sd 1:0:0:2: Attached scsi generic sg3 type 0
[    1.537552] sd 1:0:0:2: [sdc] Sector size 0 reported, assuming 512.
[    1.537553] sd 1:0:0:2: [sdc] 1 512-byte logical blocks: (512 B/512 B)
[    1.537554] sd 1:0:0:2: [sdc] 0-byte physical blocks
[    1.537592] sd 1:0:0:2: [sdc] Write Protect is off
[    1.537641] sd 1:0:0:2: [sdc] Asking for cache data failed
[    1.537641] sd 1:0:0:2: [sdc] Assuming drive cache: write through
[    1.537807] sd 1:0:0:2: [sdc] Sector size 0 reported, assuming 512.
[    1.548397] sd 1:0:0:3: Attached scsi generic sg4 type 0
[    1.548457] sd 1:0:0:3: [sdd] Sector size 0 reported, assuming 512.
[    1.548460] sd 1:0:0:3: [sdd] 1 512-byte logical blocks: (512 B/512 B)
[    1.548461] sd 1:0:0:3: [sdd] 0-byte physical blocks
[    1.548527] sd 1:0:0:3: [sdd] Write Protect is off
[    1.548559] sd 1:0:0:3: [sdd] Asking for cache data failed
[    1.548559] sd 1:0:0:3: [sdd] Assuming drive cache: write through
[    1.548746] sd 1:0:0:3: [sdd] Sector size 0 reported, assuming 512.
[    1.581400] sd 1:0:0:4: Attached scsi generic sg5 type 0
[    1.581636] sd 1:0:0:4: [sde] Sector size 0 reported, assuming 512.
[    1.581636] sd 1:0:0:4: [sde] 1 512-byte logical blocks: (512 B/512 B)
[    1.581636] sd 1:0:0:4: [sde] 0-byte physical blocks
[    1.581660] sd 1:0:0:4: [sde] Write Protect is off
[    1.581688] sd 1:0:0:4: [sde] Asking for cache data failed
[    1.581688] sd 1:0:0:4: [sde] Assuming drive cache: write through
[    1.581874] sd 1:0:0:4: [sde] Sector size 0 reported, assuming 512.
[    1.596144] sd 1:0:0:5: Attached scsi generic sg6 type 0
[    1.596287] sd 1:0:0:5: [sdf] Sector size 0 reported, assuming 512.
[    1.596290] sd 1:0:0:5: [sdf] 1 512-byte logical blocks: (512 B/512 B)
[    1.596290] sd 1:0:0:5: [sdf] 0-byte physical blocks
[    1.596353] sd 1:0:0:5: [sdf] Write Protect is off
[    1.596398] sd 1:0:0:5: [sdf] Asking for cache data failed
[    1.596398] sd 1:0:0:5: [sdf] Assuming drive cache: write through
[    1.596608] sd 1:0:0:5: [sdf] Sector size 0 reported, assuming 512.
[    1.636418] sd 1:0:0:6: Attached scsi generic sg7 type 0
[    1.636514] sd 1:0:0:6: [sdg] Sector size 0 reported, assuming 512.
[    1.636517] sd 1:0:0:6: [sdg] 1 512-byte logical blocks: (512 B/512 B)
[    1.636518] sd 1:0:0:6: [sdg] 0-byte physical blocks
[    1.636577] sd 1:0:0:6: [sdg] Write Protect is off
[    1.636628] sd 1:0:0:6: [sdg] Asking for cache data failed
[    1.636628] sd 1:0:0:6: [sdg] Assuming drive cache: write through
[    1.636906] sd 1:0:0:6: [sdg] Sector size 0 reported, assuming 512.
[    1.674375] sd 1:0:0:7: Attached scsi generic sg8 type 0
[    1.674490] sd 1:0:0:7: [sdh] Sector size 0 reported, assuming 512.
[    1.674490] sd 1:0:0:7: [sdh] 1 512-byte logical blocks: (512 B/512 B)
[    1.674490] sd 1:0:0:7: [sdh] 0-byte physical blocks
[    1.674560] sd 1:0:0:7: [sdh] Write Protect is off
[    1.674628] sd 1:0:0:7: [sdh] Asking for cache data failed
[    1.674628] sd 1:0:0:7: [sdh] Assuming drive cache: write through
[    1.674819] sd 1:0:0:7: [sdh] Sector size 0 reported, assuming 512.
[    1.693638] ldm_validate_partition_table(): Disk read failed.
[    1.696163] Dev sdb: unable to read RDB block 0
[    1.697854]  sdb: unable to read partition table
[    1.707631] sdb: partition table beyond EOD, enabling native capacity
[    1.720117] sd 1:0:0:1: [sdb] Sector size 0 reported, assuming 512.
[    1.722579] ldm_validate_partition_table(): Disk read failed.
[    1.723849] Dev sdb: unable to read RDB block 0
[    1.724711]  sdb: unable to read partition table
[    1.725754] sdb: partition table beyond EOD, truncated
[    1.726953] sd 1:0:0:1: [sdb] Sector size 0 reported, assuming 512.
[    1.728165] sd 1:0:0:1: [sdb] Attached SCSI disk
[    1.736929] random: crng init done
[   58.336050] hv_utils: KVP IC version 4.0

[-- Attachment #2: config-hyperv --]
[-- Type: application/octet-stream, Size: 123136 bytes --]

#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 4.10.0 Kernel Configuration
#
CONFIG_64BIT=y
CONFIG_X86_64=y
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
CONFIG_OUTPUT_FORMAT="elf64-x86-64"
CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig"
CONFIG_LOCKDEP_SUPPORT=y
CONFIG_STACKTRACE_SUPPORT=y
CONFIG_MMU=y
CONFIG_ARCH_MMAP_RND_BITS_MIN=28
CONFIG_ARCH_MMAP_RND_BITS_MAX=32
CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=8
CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=16
CONFIG_NEED_DMA_MAP_STATE=y
CONFIG_NEED_SG_DMA_LENGTH=y
CONFIG_GENERIC_ISA_DMA=y
CONFIG_GENERIC_BUG=y
CONFIG_GENERIC_BUG_RELATIVE_POINTERS=y
CONFIG_GENERIC_HWEIGHT=y
CONFIG_ARCH_MAY_HAVE_PC_FDC=y
CONFIG_RWSEM_XCHGADD_ALGORITHM=y
CONFIG_GENERIC_CALIBRATE_DELAY=y
CONFIG_ARCH_HAS_CPU_RELAX=y
CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y
CONFIG_HAVE_SETUP_PER_CPU_AREA=y
CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y
CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y
CONFIG_ARCH_HIBERNATION_POSSIBLE=y
CONFIG_ARCH_SUSPEND_POSSIBLE=y
CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y
CONFIG_ARCH_WANT_GENERAL_HUGETLB=y
CONFIG_ZONE_DMA32=y
CONFIG_AUDIT_ARCH=y
CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING=y
CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y
CONFIG_HAVE_INTEL_TXT=y
CONFIG_X86_64_SMP=y
CONFIG_ARCH_SUPPORTS_UPROBES=y
CONFIG_FIX_EARLYCON_MEM=y
CONFIG_PGTABLE_LEVELS=4
CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"
CONFIG_IRQ_WORK=y
CONFIG_BUILDTIME_EXTABLE_SORT=y
CONFIG_THREAD_INFO_IN_TASK=y

#
# General setup
#
CONFIG_INIT_ENV_ARG_LIMIT=32
CONFIG_CROSS_COMPILE=""
# CONFIG_COMPILE_TEST is not set
CONFIG_LOCALVERSION=""
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_HAVE_KERNEL_GZIP=y
CONFIG_HAVE_KERNEL_BZIP2=y
CONFIG_HAVE_KERNEL_LZMA=y
CONFIG_HAVE_KERNEL_XZ=y
CONFIG_HAVE_KERNEL_LZO=y
CONFIG_HAVE_KERNEL_LZ4=y
CONFIG_KERNEL_GZIP=y
# CONFIG_KERNEL_BZIP2 is not set
# CONFIG_KERNEL_LZMA is not set
# CONFIG_KERNEL_XZ is not set
# CONFIG_KERNEL_LZO is not set
# CONFIG_KERNEL_LZ4 is not set
CONFIG_DEFAULT_HOSTNAME="(none)"
CONFIG_SWAP=y
CONFIG_SYSVIPC=y
CONFIG_SYSVIPC_SYSCTL=y
CONFIG_POSIX_MQUEUE=y
CONFIG_POSIX_MQUEUE_SYSCTL=y
CONFIG_CROSS_MEMORY_ATTACH=y
CONFIG_FHANDLE=y
CONFIG_USELIB=y
CONFIG_AUDIT=y
CONFIG_HAVE_ARCH_AUDITSYSCALL=y
CONFIG_AUDITSYSCALL=y
CONFIG_AUDIT_WATCH=y
CONFIG_AUDIT_TREE=y

#
# IRQ subsystem
#
CONFIG_GENERIC_IRQ_PROBE=y
CONFIG_GENERIC_IRQ_SHOW=y
CONFIG_GENERIC_PENDING_IRQ=y
CONFIG_IRQ_DOMAIN=y
CONFIG_IRQ_DOMAIN_HIERARCHY=y
CONFIG_GENERIC_MSI_IRQ=y
CONFIG_GENERIC_MSI_IRQ_DOMAIN=y
# CONFIG_IRQ_DOMAIN_DEBUG is not set
CONFIG_IRQ_FORCED_THREADING=y
CONFIG_SPARSE_IRQ=y
CONFIG_CLOCKSOURCE_WATCHDOG=y
CONFIG_ARCH_CLOCKSOURCE_DATA=y
CONFIG_CLOCKSOURCE_VALIDATE_LAST_CYCLE=y
CONFIG_GENERIC_TIME_VSYSCALL=y
CONFIG_GENERIC_CLOCKEVENTS=y
CONFIG_GENERIC_CLOCKEVENTS_BROADCAST=y
CONFIG_GENERIC_CLOCKEVENTS_MIN_ADJUST=y
CONFIG_GENERIC_CMOS_UPDATE=y

#
# Timers subsystem
#
CONFIG_TICK_ONESHOT=y
CONFIG_NO_HZ_COMMON=y
# CONFIG_HZ_PERIODIC is not set
CONFIG_NO_HZ_IDLE=y
# CONFIG_NO_HZ_FULL is not set
CONFIG_NO_HZ=y
CONFIG_HIGH_RES_TIMERS=y

#
# CPU/Task time and stats accounting
#
CONFIG_TICK_CPU_ACCOUNTING=y
# CONFIG_VIRT_CPU_ACCOUNTING_GEN is not set
# CONFIG_IRQ_TIME_ACCOUNTING is not set
CONFIG_BSD_PROCESS_ACCT=y
CONFIG_BSD_PROCESS_ACCT_V3=y
CONFIG_TASKSTATS=y
CONFIG_TASK_DELAY_ACCT=y
CONFIG_TASK_XACCT=y
CONFIG_TASK_IO_ACCOUNTING=y

#
# RCU Subsystem
#
CONFIG_TREE_RCU=y
# CONFIG_RCU_EXPERT is not set
CONFIG_SRCU=y
# CONFIG_TASKS_RCU is not set
CONFIG_RCU_STALL_COMMON=y
# CONFIG_TREE_RCU_TRACE is not set
CONFIG_BUILD_BIN2C=y
CONFIG_IKCONFIG=m
# CONFIG_IKCONFIG_PROC is not set
CONFIG_LOG_BUF_SHIFT=18
CONFIG_LOG_CPU_MAX_BUF_SHIFT=12
CONFIG_PRINTK_SAFE_LOG_BUF_SHIFT=13
CONFIG_HAVE_UNSTABLE_SCHED_CLOCK=y
CONFIG_ARCH_SUPPORTS_NUMA_BALANCING=y
CONFIG_ARCH_WANT_BATCHED_UNMAP_TLB_FLUSH=y
CONFIG_ARCH_SUPPORTS_INT128=y
CONFIG_NUMA_BALANCING=y
CONFIG_NUMA_BALANCING_DEFAULT_ENABLED=y
CONFIG_CGROUPS=y
CONFIG_PAGE_COUNTER=y
CONFIG_MEMCG=y
CONFIG_MEMCG_SWAP=y
# CONFIG_MEMCG_SWAP_ENABLED is not set
CONFIG_BLK_CGROUP=y
# CONFIG_DEBUG_BLK_CGROUP is not set
CONFIG_CGROUP_WRITEBACK=y
CONFIG_CGROUP_SCHED=y
CONFIG_FAIR_GROUP_SCHED=y
CONFIG_CFS_BANDWIDTH=y
# CONFIG_RT_GROUP_SCHED is not set
CONFIG_CGROUP_PIDS=y
CONFIG_CGROUP_FREEZER=y
CONFIG_CGROUP_HUGETLB=y
CONFIG_CPUSETS=y
CONFIG_PROC_PID_CPUSET=y
CONFIG_CGROUP_DEVICE=y
CONFIG_CGROUP_CPUACCT=y
CONFIG_CGROUP_PERF=y
# CONFIG_CGROUP_BPF is not set
# CONFIG_CGROUP_DEBUG is not set
CONFIG_SOCK_CGROUP_DATA=y
CONFIG_CHECKPOINT_RESTORE=y
CONFIG_NAMESPACES=y
CONFIG_UTS_NS=y
CONFIG_IPC_NS=y
CONFIG_USER_NS=y
CONFIG_PID_NS=y
CONFIG_NET_NS=y
CONFIG_SCHED_AUTOGROUP=y
# CONFIG_SYSFS_DEPRECATED is not set
CONFIG_RELAY=y
CONFIG_BLK_DEV_INITRD=y
CONFIG_INITRAMFS_SOURCE=""
CONFIG_RD_GZIP=y
CONFIG_RD_BZIP2=y
CONFIG_RD_LZMA=y
CONFIG_RD_XZ=y
CONFIG_RD_LZO=y
CONFIG_RD_LZ4=y
CONFIG_INITRAMFS_COMPRESSION=".gz"
CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE=y
# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set
CONFIG_SYSCTL=y
CONFIG_ANON_INODES=y
CONFIG_HAVE_UID16=y
CONFIG_SYSCTL_EXCEPTION_TRACE=y
CONFIG_HAVE_PCSPKR_PLATFORM=y
CONFIG_BPF=y
CONFIG_EXPERT=y
CONFIG_UID16=y
CONFIG_MULTIUSER=y
CONFIG_SGETMASK_SYSCALL=y
CONFIG_SYSFS_SYSCALL=y
CONFIG_SYSCTL_SYSCALL=y
CONFIG_POSIX_TIMERS=y
CONFIG_KALLSYMS=y
CONFIG_KALLSYMS_ALL=y
CONFIG_KALLSYMS_ABSOLUTE_PERCPU=y
CONFIG_KALLSYMS_BASE_RELATIVE=y
CONFIG_PRINTK=y
CONFIG_PRINTK_NMI=y
CONFIG_BUG=y
CONFIG_ELF_CORE=y
CONFIG_PCSPKR_PLATFORM=y
CONFIG_BASE_FULL=y
CONFIG_FUTEX=y
CONFIG_EPOLL=y
CONFIG_SIGNALFD=y
CONFIG_TIMERFD=y
CONFIG_EVENTFD=y
CONFIG_BPF_SYSCALL=y
CONFIG_SHMEM=y
CONFIG_AIO=y
CONFIG_ADVISE_SYSCALLS=y
CONFIG_USERFAULTFD=y
CONFIG_PCI_QUIRKS=y
CONFIG_MEMBARRIER=y
# CONFIG_EMBEDDED is not set
CONFIG_HAVE_PERF_EVENTS=y
# CONFIG_PC104 is not set

#
# Kernel Performance Events And Counters
#
CONFIG_PERF_EVENTS=y
# CONFIG_DEBUG_PERF_USE_VMALLOC is not set
CONFIG_VM_EVENT_COUNTERS=y
CONFIG_SLUB_DEBUG=y
# CONFIG_SLUB_MEMCG_SYSFS_ON is not set
# CONFIG_COMPAT_BRK is not set
# CONFIG_SLAB is not set
CONFIG_SLUB=y
# CONFIG_SLOB is not set
CONFIG_SLAB_FREELIST_RANDOM=y
CONFIG_SLUB_CPU_PARTIAL=y
CONFIG_SYSTEM_DATA_VERIFICATION=y
CONFIG_PROFILING=y
CONFIG_TRACEPOINTS=y
CONFIG_KEXEC_CORE=y
# CONFIG_OPROFILE is not set
CONFIG_HAVE_OPROFILE=y
CONFIG_OPROFILE_NMI_TIMER=y
CONFIG_KPROBES=y
CONFIG_JUMP_LABEL=y
# CONFIG_STATIC_KEYS_SELFTEST is not set
CONFIG_OPTPROBES=y
CONFIG_KPROBES_ON_FTRACE=y
CONFIG_UPROBES=y
# CONFIG_HAVE_64BIT_ALIGNED_ACCESS is not set
CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=y
CONFIG_ARCH_USE_BUILTIN_BSWAP=y
CONFIG_KRETPROBES=y
CONFIG_HAVE_IOREMAP_PROT=y
CONFIG_HAVE_KPROBES=y
CONFIG_HAVE_KRETPROBES=y
CONFIG_HAVE_OPTPROBES=y
CONFIG_HAVE_KPROBES_ON_FTRACE=y
CONFIG_HAVE_NMI=y
CONFIG_HAVE_ARCH_TRACEHOOK=y
CONFIG_HAVE_DMA_CONTIGUOUS=y
CONFIG_GENERIC_SMP_IDLE_THREAD=y
CONFIG_ARCH_HAS_SET_MEMORY=y
CONFIG_ARCH_WANTS_DYNAMIC_TASK_STRUCT=y
CONFIG_HAVE_REGS_AND_STACK_ACCESS_API=y
CONFIG_HAVE_CLK=y
CONFIG_HAVE_DMA_API_DEBUG=y
CONFIG_HAVE_HW_BREAKPOINT=y
CONFIG_HAVE_MIXED_BREAKPOINTS_REGS=y
CONFIG_HAVE_USER_RETURN_NOTIFIER=y
CONFIG_HAVE_PERF_EVENTS_NMI=y
CONFIG_HAVE_PERF_REGS=y
CONFIG_HAVE_PERF_USER_STACK_DUMP=y
CONFIG_HAVE_ARCH_JUMP_LABEL=y
CONFIG_ARCH_HAVE_NMI_SAFE_CMPXCHG=y
CONFIG_HAVE_ALIGNED_STRUCT_PAGE=y
CONFIG_HAVE_CMPXCHG_LOCAL=y
CONFIG_HAVE_CMPXCHG_DOUBLE=y
CONFIG_ARCH_WANT_COMPAT_IPC_PARSE_VERSION=y
CONFIG_ARCH_WANT_OLD_COMPAT_IPC=y
CONFIG_HAVE_ARCH_SECCOMP_FILTER=y
CONFIG_SECCOMP_FILTER=y
CONFIG_HAVE_GCC_PLUGINS=y
# CONFIG_GCC_PLUGINS is not set
CONFIG_HAVE_CC_STACKPROTECTOR=y
CONFIG_CC_STACKPROTECTOR=y
# CONFIG_CC_STACKPROTECTOR_NONE is not set
# CONFIG_CC_STACKPROTECTOR_REGULAR is not set
CONFIG_CC_STACKPROTECTOR_STRONG=y
CONFIG_HAVE_ARCH_WITHIN_STACK_FRAMES=y
CONFIG_HAVE_CONTEXT_TRACKING=y
CONFIG_HAVE_VIRT_CPU_ACCOUNTING_GEN=y
CONFIG_HAVE_IRQ_TIME_ACCOUNTING=y
CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE=y
CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE_PUD=y
CONFIG_HAVE_ARCH_HUGE_VMAP=y
CONFIG_HAVE_ARCH_SOFT_DIRTY=y
CONFIG_MODULES_USE_ELF_RELA=y
CONFIG_HAVE_IRQ_EXIT_ON_IRQ_STACK=y
CONFIG_ARCH_HAS_ELF_RANDOMIZE=y
CONFIG_HAVE_ARCH_MMAP_RND_BITS=y
CONFIG_HAVE_EXIT_THREAD=y
CONFIG_ARCH_MMAP_RND_BITS=28
CONFIG_HAVE_ARCH_MMAP_RND_COMPAT_BITS=y
CONFIG_ARCH_MMAP_RND_COMPAT_BITS=8
CONFIG_HAVE_COPY_THREAD_TLS=y
CONFIG_HAVE_STACK_VALIDATION=y
# CONFIG_HAVE_ARCH_HASH is not set
CONFIG_ISA_BUS_API=y
CONFIG_OLD_SIGSUSPEND3=y
CONFIG_COMPAT_OLD_SIGACTION=y
# CONFIG_CPU_NO_EFFICIENT_FFS is not set
CONFIG_HAVE_ARCH_VMAP_STACK=y
CONFIG_VMAP_STACK=y
# CONFIG_ARCH_OPTIONAL_KERNEL_RWX is not set
# CONFIG_ARCH_OPTIONAL_KERNEL_RWX_DEFAULT is not set
CONFIG_ARCH_HAS_STRICT_KERNEL_RWX=y
CONFIG_STRICT_KERNEL_RWX=y
CONFIG_ARCH_HAS_STRICT_MODULE_RWX=y
CONFIG_STRICT_MODULE_RWX=y

#
# GCOV-based kernel profiling
#
# CONFIG_GCOV_KERNEL is not set
CONFIG_ARCH_HAS_GCOV_PROFILE_ALL=y
# CONFIG_HAVE_GENERIC_DMA_COHERENT is not set
CONFIG_SLABINFO=y
CONFIG_RT_MUTEXES=y
CONFIG_BASE_SMALL=0
CONFIG_MODULES=y
# CONFIG_MODULE_FORCE_LOAD is not set
CONFIG_MODULE_UNLOAD=y
# CONFIG_MODULE_FORCE_UNLOAD is not set
CONFIG_MODVERSIONS=y
CONFIG_MODULE_SRCVERSION_ALL=y
CONFIG_MODULE_SIG=y
# CONFIG_MODULE_SIG_FORCE is not set
CONFIG_MODULE_SIG_ALL=y
# CONFIG_MODULE_SIG_SHA1 is not set
# CONFIG_MODULE_SIG_SHA224 is not set
# CONFIG_MODULE_SIG_SHA256 is not set
# CONFIG_MODULE_SIG_SHA384 is not set
CONFIG_MODULE_SIG_SHA512=y
CONFIG_MODULE_SIG_HASH="sha512"
# CONFIG_MODULE_COMPRESS is not set
CONFIG_MODULES_TREE_LOOKUP=y
CONFIG_BLOCK=y
CONFIG_BLK_SCSI_REQUEST=y
CONFIG_BLK_DEV_BSG=y
CONFIG_BLK_DEV_BSGLIB=y
CONFIG_BLK_DEV_INTEGRITY=y
# CONFIG_BLK_DEV_ZONED is not set
CONFIG_BLK_DEV_THROTTLING=y
CONFIG_BLK_CMDLINE_PARSER=y
# CONFIG_BLK_WBT is not set
CONFIG_BLK_DEBUG_FS=y
# CONFIG_BLK_SED_OPAL is not set

#
# Partition Types
#
CONFIG_PARTITION_ADVANCED=y
# CONFIG_ACORN_PARTITION is not set
CONFIG_AIX_PARTITION=y
CONFIG_OSF_PARTITION=y
CONFIG_AMIGA_PARTITION=y
CONFIG_ATARI_PARTITION=y
CONFIG_MAC_PARTITION=y
CONFIG_MSDOS_PARTITION=y
CONFIG_BSD_DISKLABEL=y
CONFIG_MINIX_SUBPARTITION=y
CONFIG_SOLARIS_X86_PARTITION=y
CONFIG_UNIXWARE_DISKLABEL=y
CONFIG_LDM_PARTITION=y
# CONFIG_LDM_DEBUG is not set
CONFIG_SGI_PARTITION=y
CONFIG_ULTRIX_PARTITION=y
CONFIG_SUN_PARTITION=y
CONFIG_KARMA_PARTITION=y
CONFIG_EFI_PARTITION=y
CONFIG_SYSV68_PARTITION=y
CONFIG_CMDLINE_PARTITION=y
CONFIG_BLOCK_COMPAT=y
CONFIG_BLK_MQ_PCI=y

#
# IO Schedulers
#
CONFIG_IOSCHED_NOOP=y
CONFIG_IOSCHED_DEADLINE=y
CONFIG_IOSCHED_CFQ=y
CONFIG_CFQ_GROUP_IOSCHED=y
CONFIG_DEFAULT_DEADLINE=y
# CONFIG_DEFAULT_CFQ is not set
# CONFIG_DEFAULT_NOOP is not set
CONFIG_DEFAULT_IOSCHED="deadline"
CONFIG_MQ_IOSCHED_DEADLINE=y
CONFIG_ASN1=y
CONFIG_INLINE_SPIN_UNLOCK_IRQ=y
CONFIG_INLINE_READ_UNLOCK=y
CONFIG_INLINE_READ_UNLOCK_IRQ=y
CONFIG_INLINE_WRITE_UNLOCK=y
CONFIG_INLINE_WRITE_UNLOCK_IRQ=y
CONFIG_ARCH_SUPPORTS_ATOMIC_RMW=y
CONFIG_MUTEX_SPIN_ON_OWNER=y
CONFIG_RWSEM_SPIN_ON_OWNER=y
CONFIG_LOCK_SPIN_ON_OWNER=y
CONFIG_ARCH_USE_QUEUED_SPINLOCKS=y
CONFIG_QUEUED_SPINLOCKS=y
CONFIG_ARCH_USE_QUEUED_RWLOCKS=y
CONFIG_QUEUED_RWLOCKS=y
CONFIG_FREEZER=y

#
# Processor type and features
#
CONFIG_ZONE_DMA=y
CONFIG_SMP=y
CONFIG_X86_FEATURE_NAMES=y
CONFIG_X86_FAST_FEATURE_TESTS=y
CONFIG_X86_X2APIC=y
CONFIG_X86_MPPARSE=y
# CONFIG_GOLDFISH is not set
# CONFIG_INTEL_RDT_A is not set
CONFIG_X86_EXTENDED_PLATFORM=y
CONFIG_X86_NUMACHIP=y
# CONFIG_X86_VSMP is not set
# CONFIG_X86_UV is not set
# CONFIG_X86_GOLDFISH is not set
# CONFIG_X86_INTEL_MID is not set
CONFIG_X86_INTEL_LPSS=y
CONFIG_X86_AMD_PLATFORM_DEVICE=y
CONFIG_IOSF_MBI=y
CONFIG_IOSF_MBI_DEBUG=y
CONFIG_X86_SUPPORTS_MEMORY_FAILURE=y
CONFIG_SCHED_OMIT_FRAME_POINTER=y
CONFIG_HYPERVISOR_GUEST=y
CONFIG_PARAVIRT=y
# CONFIG_PARAVIRT_DEBUG is not set
CONFIG_PARAVIRT_SPINLOCKS=y
# CONFIG_QUEUED_LOCK_STAT is not set
# CONFIG_XEN is not set
CONFIG_KVM_GUEST=y
CONFIG_KVM_DEBUG_FS=y
# CONFIG_PARAVIRT_TIME_ACCOUNTING is not set
CONFIG_PARAVIRT_CLOCK=y
CONFIG_NO_BOOTMEM=y
# CONFIG_MK8 is not set
# CONFIG_MPSC is not set
# CONFIG_MCORE2 is not set
# CONFIG_MATOM is not set
CONFIG_GENERIC_CPU=y
CONFIG_X86_INTERNODE_CACHE_SHIFT=6
CONFIG_X86_L1_CACHE_SHIFT=6
CONFIG_X86_TSC=y
CONFIG_X86_CMPXCHG64=y
CONFIG_X86_CMOV=y
CONFIG_X86_MINIMUM_CPU_FAMILY=64
CONFIG_X86_DEBUGCTLMSR=y
CONFIG_PROCESSOR_SELECT=y
CONFIG_CPU_SUP_INTEL=y
CONFIG_CPU_SUP_AMD=y
CONFIG_CPU_SUP_CENTAUR=y
CONFIG_HPET_TIMER=y
CONFIG_HPET_EMULATE_RTC=y
CONFIG_DMI=y
CONFIG_GART_IOMMU=y
CONFIG_CALGARY_IOMMU=y
CONFIG_CALGARY_IOMMU_ENABLED_BY_DEFAULT=y
CONFIG_SWIOTLB=y
CONFIG_IOMMU_HELPER=y
# CONFIG_MAXSMP is not set
CONFIG_NR_CPUS=512
CONFIG_SCHED_SMT=y
CONFIG_SCHED_MC=y
CONFIG_SCHED_MC_PRIO=y
# CONFIG_PREEMPT_NONE is not set
CONFIG_PREEMPT_VOLUNTARY=y
# CONFIG_PREEMPT is not set
CONFIG_X86_LOCAL_APIC=y
CONFIG_X86_IO_APIC=y
CONFIG_X86_REROUTE_FOR_BROKEN_BOOT_IRQS=y
CONFIG_X86_MCE=y
CONFIG_X86_MCE_INTEL=y
CONFIG_X86_MCE_AMD=y
CONFIG_X86_MCE_THRESHOLD=y
# CONFIG_X86_MCE_INJECT is not set
CONFIG_X86_THERMAL_VECTOR=y

#
# Performance monitoring
#
CONFIG_PERF_EVENTS_INTEL_UNCORE=y
CONFIG_PERF_EVENTS_INTEL_RAPL=m
# CONFIG_PERF_EVENTS_INTEL_CSTATE is not set
# CONFIG_PERF_EVENTS_AMD_POWER is not set
# CONFIG_VM86 is not set
CONFIG_X86_16BIT=y
CONFIG_X86_ESPFIX64=y
CONFIG_X86_VSYSCALL_EMULATION=y
# CONFIG_I8K is not set
CONFIG_MICROCODE=y
CONFIG_MICROCODE_INTEL=y
CONFIG_MICROCODE_AMD=y
CONFIG_MICROCODE_OLD_INTERFACE=y
# CONFIG_X86_MSR is not set
# CONFIG_X86_CPUID is not set
CONFIG_ARCH_PHYS_ADDR_T_64BIT=y
CONFIG_ARCH_DMA_ADDR_T_64BIT=y
CONFIG_X86_DIRECT_GBPAGES=y
CONFIG_NUMA=y
CONFIG_AMD_NUMA=y
CONFIG_X86_64_ACPI_NUMA=y
CONFIG_NODES_SPAN_OTHER_NODES=y
# CONFIG_NUMA_EMU is not set
CONFIG_NODES_SHIFT=6
CONFIG_ARCH_SPARSEMEM_ENABLE=y
CONFIG_ARCH_SPARSEMEM_DEFAULT=y
CONFIG_ARCH_SELECT_MEMORY_MODEL=y
CONFIG_ARCH_MEMORY_PROBE=y
CONFIG_ARCH_PROC_KCORE_TEXT=y
CONFIG_ILLEGAL_POINTER_VALUE=0xdead000000000000
CONFIG_SELECT_MEMORY_MODEL=y
CONFIG_SPARSEMEM_MANUAL=y
CONFIG_SPARSEMEM=y
CONFIG_NEED_MULTIPLE_NODES=y
CONFIG_HAVE_MEMORY_PRESENT=y
CONFIG_SPARSEMEM_EXTREME=y
CONFIG_SPARSEMEM_VMEMMAP_ENABLE=y
CONFIG_SPARSEMEM_ALLOC_MEM_MAP_TOGETHER=y
CONFIG_SPARSEMEM_VMEMMAP=y
CONFIG_HAVE_MEMBLOCK=y
CONFIG_HAVE_MEMBLOCK_NODE_MAP=y
CONFIG_ARCH_DISCARD_MEMBLOCK=y
CONFIG_MEMORY_ISOLATION=y
CONFIG_MOVABLE_NODE=y
CONFIG_HAVE_BOOTMEM_INFO_NODE=y
CONFIG_MEMORY_HOTPLUG=y
CONFIG_MEMORY_HOTPLUG_SPARSE=y
CONFIG_MEMORY_HOTPLUG_DEFAULT_ONLINE=y
CONFIG_MEMORY_HOTREMOVE=y
CONFIG_SPLIT_PTLOCK_CPUS=4
CONFIG_ARCH_ENABLE_SPLIT_PMD_PTLOCK=y
CONFIG_MEMORY_BALLOON=y
CONFIG_BALLOON_COMPACTION=y
CONFIG_COMPACTION=y
CONFIG_MIGRATION=y
CONFIG_ARCH_ENABLE_HUGEPAGE_MIGRATION=y
CONFIG_PHYS_ADDR_T_64BIT=y
CONFIG_BOUNCE=y
CONFIG_VIRT_TO_BUS=y
CONFIG_MMU_NOTIFIER=y
CONFIG_KSM=y
CONFIG_DEFAULT_MMAP_MIN_ADDR=65536
CONFIG_ARCH_SUPPORTS_MEMORY_FAILURE=y
CONFIG_MEMORY_FAILURE=y
# CONFIG_HWPOISON_INJECT is not set
CONFIG_TRANSPARENT_HUGEPAGE=y
CONFIG_TRANSPARENT_HUGEPAGE_ALWAYS=y
# CONFIG_TRANSPARENT_HUGEPAGE_MADVISE is not set
CONFIG_TRANSPARENT_HUGE_PAGECACHE=y
CONFIG_CLEANCACHE=y
CONFIG_FRONTSWAP=y
CONFIG_CMA=y
# CONFIG_CMA_DEBUG is not set
# CONFIG_CMA_DEBUGFS is not set
CONFIG_CMA_AREAS=7
CONFIG_MEM_SOFT_DIRTY=y
CONFIG_ZSWAP=y
CONFIG_ZPOOL=y
CONFIG_ZBUD=y
# CONFIG_Z3FOLD is not set
CONFIG_ZSMALLOC=y
CONFIG_PGTABLE_MAPPING=y
# CONFIG_ZSMALLOC_STAT is not set
CONFIG_GENERIC_EARLY_IOREMAP=y
CONFIG_ARCH_SUPPORTS_DEFERRED_STRUCT_PAGE_INIT=y
# CONFIG_DEFERRED_STRUCT_PAGE_INIT is not set
CONFIG_IDLE_PAGE_TRACKING=y
CONFIG_ZONE_DEVICE=y
CONFIG_ARCH_USES_HIGH_VMA_FLAGS=y
CONFIG_ARCH_HAS_PKEYS=y
CONFIG_X86_PMEM_LEGACY_DEVICE=y
CONFIG_X86_PMEM_LEGACY=y
CONFIG_X86_CHECK_BIOS_CORRUPTION=y
CONFIG_X86_BOOTPARAM_MEMORY_CORRUPTION_CHECK=y
CONFIG_X86_RESERVE_LOW=64
CONFIG_MTRR=y
CONFIG_MTRR_SANITIZER=y
CONFIG_MTRR_SANITIZER_ENABLE_DEFAULT=1
CONFIG_MTRR_SANITIZER_SPARE_REG_NR_DEFAULT=1
CONFIG_X86_PAT=y
CONFIG_ARCH_USES_PG_UNCACHED=y
CONFIG_ARCH_RANDOM=y
CONFIG_X86_SMAP=y
CONFIG_X86_INTEL_MPX=y
CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS=y
CONFIG_EFI=y
CONFIG_EFI_STUB=y
CONFIG_EFI_MIXED=y
CONFIG_SECCOMP=y
# CONFIG_HZ_100 is not set
CONFIG_HZ_250=y
# CONFIG_HZ_300 is not set
# CONFIG_HZ_1000 is not set
CONFIG_HZ=250
CONFIG_SCHED_HRTICK=y
CONFIG_KEXEC=y
CONFIG_KEXEC_FILE=y
CONFIG_KEXEC_VERIFY_SIG=y
CONFIG_KEXEC_BZIMAGE_VERIFY_SIG=y
CONFIG_CRASH_DUMP=y
CONFIG_KEXEC_JUMP=y
CONFIG_PHYSICAL_START=0x1000000
CONFIG_RELOCATABLE=y
CONFIG_RANDOMIZE_BASE=y
CONFIG_X86_NEED_RELOCS=y
CONFIG_PHYSICAL_ALIGN=0x200000
CONFIG_RANDOMIZE_MEMORY=y
CONFIG_RANDOMIZE_MEMORY_PHYSICAL_PADDING=0xa
CONFIG_HOTPLUG_CPU=y
# CONFIG_BOOTPARAM_HOTPLUG_CPU0 is not set
# CONFIG_DEBUG_HOTPLUG_CPU0 is not set
# CONFIG_COMPAT_VDSO is not set
# CONFIG_LEGACY_VSYSCALL_NATIVE is not set
CONFIG_LEGACY_VSYSCALL_EMULATE=y
# CONFIG_LEGACY_VSYSCALL_NONE is not set
# CONFIG_CMDLINE_BOOL is not set
CONFIG_MODIFY_LDT_SYSCALL=y
CONFIG_HAVE_LIVEPATCH=y
CONFIG_LIVEPATCH=y
CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y
CONFIG_ARCH_ENABLE_MEMORY_HOTREMOVE=y
CONFIG_USE_PERCPU_NUMA_NODE_ID=y

#
# Power management and ACPI options
#
CONFIG_ARCH_HIBERNATION_HEADER=y
CONFIG_SUSPEND=y
CONFIG_SUSPEND_FREEZER=y
# CONFIG_SUSPEND_SKIP_SYNC is not set
CONFIG_HIBERNATE_CALLBACKS=y
CONFIG_HIBERNATION=y
CONFIG_PM_STD_PARTITION=""
CONFIG_PM_SLEEP=y
CONFIG_PM_SLEEP_SMP=y
# CONFIG_PM_AUTOSLEEP is not set
CONFIG_PM_WAKELOCKS=y
CONFIG_PM_WAKELOCKS_LIMIT=100
CONFIG_PM_WAKELOCKS_GC=y
CONFIG_PM=y
CONFIG_PM_DEBUG=y
CONFIG_PM_ADVANCED_DEBUG=y
# CONFIG_PM_TEST_SUSPEND is not set
CONFIG_PM_SLEEP_DEBUG=y
# CONFIG_DPM_WATCHDOG is not set
CONFIG_PM_TRACE=y
CONFIG_PM_TRACE_RTC=y
CONFIG_PM_CLK=y
CONFIG_WQ_POWER_EFFICIENT_DEFAULT=y
CONFIG_ACPI=y
CONFIG_ACPI_LEGACY_TABLES_LOOKUP=y
CONFIG_ARCH_MIGHT_HAVE_ACPI_PDC=y
CONFIG_ACPI_SYSTEM_POWER_STATES_SUPPORT=y
# CONFIG_ACPI_DEBUGGER is not set
CONFIG_ACPI_SLEEP=y
# CONFIG_ACPI_PROCFS_POWER is not set
CONFIG_ACPI_REV_OVERRIDE_POSSIBLE=y
# CONFIG_ACPI_EC_DEBUGFS is not set
CONFIG_ACPI_AC=y
CONFIG_ACPI_BATTERY=y
CONFIG_ACPI_BUTTON=y
# CONFIG_ACPI_VIDEO is not set
CONFIG_ACPI_FAN=y
CONFIG_ACPI_DOCK=y
CONFIG_ACPI_CPU_FREQ_PSS=y
CONFIG_ACPI_PROCESSOR_CSTATE=y
CONFIG_ACPI_PROCESSOR_IDLE=y
CONFIG_ACPI_CPPC_LIB=y
CONFIG_ACPI_PROCESSOR=y
CONFIG_ACPI_HOTPLUG_CPU=y
# CONFIG_ACPI_PROCESSOR_AGGREGATOR is not set
CONFIG_ACPI_THERMAL=y
CONFIG_ACPI_NUMA=y
CONFIG_ACPI_CUSTOM_DSDT_FILE=""
# CONFIG_ACPI_CUSTOM_DSDT is not set
CONFIG_ARCH_HAS_ACPI_TABLE_UPGRADE=y
CONFIG_ACPI_TABLE_UPGRADE=y
# CONFIG_ACPI_DEBUG is not set
CONFIG_ACPI_PCI_SLOT=y
CONFIG_X86_PM_TIMER=y
CONFIG_ACPI_CONTAINER=y
CONFIG_ACPI_HOTPLUG_MEMORY=y
CONFIG_ACPI_HOTPLUG_IOAPIC=y
# CONFIG_ACPI_SBS is not set
CONFIG_ACPI_HED=y
# CONFIG_ACPI_CUSTOM_METHOD is not set
CONFIG_ACPI_BGRT=y
# CONFIG_ACPI_REDUCED_HARDWARE_ONLY is not set
# CONFIG_ACPI_NFIT is not set
CONFIG_HAVE_ACPI_APEI=y
CONFIG_HAVE_ACPI_APEI_NMI=y
CONFIG_ACPI_APEI=y
CONFIG_ACPI_APEI_GHES=y
CONFIG_ACPI_APEI_PCIEAER=y
CONFIG_ACPI_APEI_MEMORY_FAILURE=y
# CONFIG_ACPI_APEI_EINJ is not set
# CONFIG_ACPI_APEI_ERST_DEBUG is not set
# CONFIG_DPTF_POWER is not set
# CONFIG_ACPI_EXTLOG is not set
# CONFIG_PMIC_OPREGION is not set
# CONFIG_ACPI_CONFIGFS is not set
CONFIG_SFI=y

#
# CPU Frequency scaling
#
CONFIG_CPU_FREQ=y
CONFIG_CPU_FREQ_GOV_ATTR_SET=y
CONFIG_CPU_FREQ_GOV_COMMON=y
CONFIG_CPU_FREQ_STAT=y
CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL is not set
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
CONFIG_CPU_FREQ_GOV_POWERSAVE=y
CONFIG_CPU_FREQ_GOV_USERSPACE=y
CONFIG_CPU_FREQ_GOV_ONDEMAND=y
CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y
# CONFIG_CPU_FREQ_GOV_SCHEDUTIL is not set

#
# CPU frequency scaling drivers
#
CONFIG_X86_INTEL_PSTATE=y
CONFIG_X86_PCC_CPUFREQ=y
CONFIG_X86_ACPI_CPUFREQ=y
CONFIG_X86_ACPI_CPUFREQ_CPB=y
CONFIG_X86_POWERNOW_K8=y
# CONFIG_X86_AMD_FREQ_SENSITIVITY is not set
CONFIG_X86_SPEEDSTEP_CENTRINO=y
# CONFIG_X86_P4_CLOCKMOD is not set

#
# shared options
#
# CONFIG_X86_SPEEDSTEP_LIB is not set

#
# CPU Idle
#
CONFIG_CPU_IDLE=y
CONFIG_CPU_IDLE_GOV_LADDER=y
CONFIG_CPU_IDLE_GOV_MENU=y
# CONFIG_ARCH_NEEDS_CPU_IDLE_COUPLED is not set
CONFIG_INTEL_IDLE=y

#
# Bus options (PCI etc.)
#
CONFIG_PCI=y
CONFIG_PCI_DIRECT=y
CONFIG_PCI_MMCONFIG=y
CONFIG_PCI_DOMAINS=y
# CONFIG_PCI_CNB20LE_QUIRK is not set
CONFIG_PCIEPORTBUS=y
CONFIG_HOTPLUG_PCI_PCIE=y
CONFIG_PCIEAER=y
# CONFIG_PCIE_ECRC is not set
# CONFIG_PCIEAER_INJECT is not set
CONFIG_PCIEASPM=y
CONFIG_PCIEASPM_DEBUG=y
CONFIG_PCIEASPM_DEFAULT=y
# CONFIG_PCIEASPM_POWERSAVE is not set
# CONFIG_PCIEASPM_POWER_SUPERSAVE is not set
# CONFIG_PCIEASPM_PERFORMANCE is not set
CONFIG_PCIE_PME=y
CONFIG_PCIE_DPC=y
# CONFIG_PCIE_PTM is not set
CONFIG_PCI_BUS_ADDR_T_64BIT=y
CONFIG_PCI_MSI=y
CONFIG_PCI_MSI_IRQ_DOMAIN=y
# CONFIG_PCI_DEBUG is not set
CONFIG_PCI_REALLOC_ENABLE_AUTO=y
# CONFIG_PCI_STUB is not set
CONFIG_HT_IRQ=y
CONFIG_PCI_ATS=y
CONFIG_PCI_IOV=y
CONFIG_PCI_PRI=y
CONFIG_PCI_PASID=y
CONFIG_PCI_LABEL=y
# CONFIG_PCI_HYPERV is not set
CONFIG_HOTPLUG_PCI=y
CONFIG_HOTPLUG_PCI_ACPI=y
# CONFIG_HOTPLUG_PCI_ACPI_IBM is not set
CONFIG_HOTPLUG_PCI_CPCI=y
# CONFIG_HOTPLUG_PCI_CPCI_ZT5550 is not set
# CONFIG_HOTPLUG_PCI_CPCI_GENERIC is not set
# CONFIG_HOTPLUG_PCI_SHPC is not set

#
# DesignWare PCI Core Support
#
CONFIG_PCIE_DW=y
CONFIG_PCIE_DW_HOST=y
CONFIG_PCIE_DW_PLAT=y

#
# PCI host controller drivers
#
# CONFIG_VMD is not set
CONFIG_ISA_BUS=y
CONFIG_ISA_DMA_API=y
CONFIG_AMD_NB=y
# CONFIG_PCCARD is not set
CONFIG_RAPIDIO=y
# CONFIG_RAPIDIO_TSI721 is not set
CONFIG_RAPIDIO_DISC_TIMEOUT=30
# CONFIG_RAPIDIO_ENABLE_RX_TX_PORTS is not set
CONFIG_RAPIDIO_DMA_ENGINE=y
# CONFIG_RAPIDIO_DEBUG is not set
# CONFIG_RAPIDIO_ENUM_BASIC is not set
# CONFIG_RAPIDIO_CHMAN is not set
# CONFIG_RAPIDIO_MPORT_CDEV is not set

#
# RapidIO Switch drivers
#
# CONFIG_RAPIDIO_TSI57X is not set
# CONFIG_RAPIDIO_CPS_XX is not set
# CONFIG_RAPIDIO_TSI568 is not set
# CONFIG_RAPIDIO_CPS_GEN2 is not set
# CONFIG_RAPIDIO_RXS_GEN3 is not set
# CONFIG_X86_SYSFB is not set

#
# Executable file formats / Emulations
#
CONFIG_BINFMT_ELF=y
CONFIG_COMPAT_BINFMT_ELF=y
CONFIG_ELFCORE=y
CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS=y
CONFIG_BINFMT_SCRIPT=y
# CONFIG_HAVE_AOUT is not set
# CONFIG_BINFMT_MISC is not set
CONFIG_COREDUMP=y
CONFIG_IA32_EMULATION=y
# CONFIG_IA32_AOUT is not set
CONFIG_X86_X32=y
CONFIG_COMPAT_32=y
CONFIG_COMPAT=y
CONFIG_COMPAT_FOR_U64_ALIGNMENT=y
CONFIG_SYSVIPC_COMPAT=y
CONFIG_KEYS_COMPAT=y
CONFIG_X86_DEV_DMA_OPS=y
CONFIG_NET=y
CONFIG_NET_INGRESS=y

#
# Networking options
#
CONFIG_PACKET=y
# CONFIG_PACKET_DIAG is not set
CONFIG_UNIX=y
# CONFIG_UNIX_DIAG is not set
# CONFIG_XFRM_USER is not set
# CONFIG_NET_KEY is not set
CONFIG_INET=y
CONFIG_IP_MULTICAST=y
CONFIG_IP_ADVANCED_ROUTER=y
CONFIG_IP_FIB_TRIE_STATS=y
CONFIG_IP_MULTIPLE_TABLES=y
CONFIG_IP_ROUTE_MULTIPATH=y
CONFIG_IP_ROUTE_VERBOSE=y
# CONFIG_IP_PNP is not set
# CONFIG_NET_IPIP is not set
# CONFIG_NET_IPGRE_DEMUX is not set
# CONFIG_NET_IP_TUNNEL is not set
CONFIG_IP_MROUTE=y
# CONFIG_IP_MROUTE_MULTIPLE_TABLES is not set
CONFIG_IP_PIMSM_V1=y
CONFIG_IP_PIMSM_V2=y
CONFIG_SYN_COOKIES=y
# CONFIG_NET_UDP_TUNNEL is not set
# CONFIG_NET_FOU is not set
# CONFIG_INET_AH is not set
# CONFIG_INET_ESP is not set
# CONFIG_INET_IPCOMP is not set
# CONFIG_INET_XFRM_TUNNEL is not set
# CONFIG_INET_TUNNEL is not set
# CONFIG_INET_XFRM_MODE_TRANSPORT is not set
# CONFIG_INET_XFRM_MODE_TUNNEL is not set
# CONFIG_INET_XFRM_MODE_BEET is not set
# CONFIG_INET_DIAG is not set
CONFIG_TCP_CONG_ADVANCED=y
# CONFIG_TCP_CONG_BIC is not set
CONFIG_TCP_CONG_CUBIC=y
# CONFIG_TCP_CONG_WESTWOOD is not set
# CONFIG_TCP_CONG_HTCP is not set
# CONFIG_TCP_CONG_HSTCP is not set
# CONFIG_TCP_CONG_HYBLA is not set
# CONFIG_TCP_CONG_VEGAS is not set
# CONFIG_TCP_CONG_NV is not set
# CONFIG_TCP_CONG_SCALABLE is not set
# CONFIG_TCP_CONG_LP is not set
# CONFIG_TCP_CONG_VENO is not set
# CONFIG_TCP_CONG_YEAH is not set
# CONFIG_TCP_CONG_ILLINOIS is not set
# CONFIG_TCP_CONG_DCTCP is not set
# CONFIG_TCP_CONG_CDG is not set
# CONFIG_TCP_CONG_BBR is not set
CONFIG_DEFAULT_CUBIC=y
# CONFIG_DEFAULT_RENO is not set
CONFIG_DEFAULT_TCP_CONG="cubic"
CONFIG_TCP_MD5SIG=y
CONFIG_IPV6=y
CONFIG_IPV6_ROUTER_PREF=y
CONFIG_IPV6_ROUTE_INFO=y
# CONFIG_IPV6_OPTIMISTIC_DAD is not set
# CONFIG_INET6_AH is not set
# CONFIG_INET6_ESP is not set
# CONFIG_INET6_IPCOMP is not set
# CONFIG_IPV6_MIP6 is not set
# CONFIG_IPV6_ILA is not set
# CONFIG_INET6_XFRM_TUNNEL is not set
# CONFIG_INET6_TUNNEL is not set
# CONFIG_INET6_XFRM_MODE_TRANSPORT is not set
# CONFIG_INET6_XFRM_MODE_TUNNEL is not set
# CONFIG_INET6_XFRM_MODE_BEET is not set
# CONFIG_INET6_XFRM_MODE_ROUTEOPTIMIZATION is not set
# CONFIG_IPV6_SIT is not set
# CONFIG_IPV6_TUNNEL is not set
# CONFIG_IPV6_FOU is not set
# CONFIG_IPV6_FOU_TUNNEL is not set
CONFIG_IPV6_MULTIPLE_TABLES=y
CONFIG_IPV6_SUBTREES=y
CONFIG_IPV6_MROUTE=y
CONFIG_IPV6_MROUTE_MULTIPLE_TABLES=y
CONFIG_IPV6_PIMSM_V2=y
# CONFIG_IPV6_SEG6_LWTUNNEL is not set
# CONFIG_IPV6_SEG6_HMAC is not set
CONFIG_NETLABEL=y
CONFIG_NETWORK_SECMARK=y
# CONFIG_NET_PTP_CLASSIFY is not set
# CONFIG_NETWORK_PHY_TIMESTAMPING is not set
CONFIG_NETFILTER=y
# CONFIG_NETFILTER_DEBUG is not set
CONFIG_NETFILTER_ADVANCED=y

#
# Core Netfilter Configuration
#
CONFIG_NETFILTER_INGRESS=y
# CONFIG_NETFILTER_NETLINK_ACCT is not set
# CONFIG_NETFILTER_NETLINK_QUEUE is not set
# CONFIG_NETFILTER_NETLINK_LOG is not set
# CONFIG_NF_CONNTRACK is not set
# CONFIG_NF_LOG_NETDEV is not set
# CONFIG_NF_TABLES is not set
CONFIG_NETFILTER_XTABLES=m

#
# Xtables combined modules
#
# CONFIG_NETFILTER_XT_MARK is not set

#
# Xtables targets
#
# CONFIG_NETFILTER_XT_TARGET_AUDIT is not set
# CONFIG_NETFILTER_XT_TARGET_CLASSIFY is not set
# CONFIG_NETFILTER_XT_TARGET_HMARK is not set
# CONFIG_NETFILTER_XT_TARGET_IDLETIMER is not set
# CONFIG_NETFILTER_XT_TARGET_LED is not set
# CONFIG_NETFILTER_XT_TARGET_LOG is not set
# CONFIG_NETFILTER_XT_TARGET_MARK is not set
# CONFIG_NETFILTER_XT_TARGET_NFLOG is not set
# CONFIG_NETFILTER_XT_TARGET_NFQUEUE is not set
# CONFIG_NETFILTER_XT_TARGET_RATEEST is not set
# CONFIG_NETFILTER_XT_TARGET_TEE is not set
# CONFIG_NETFILTER_XT_TARGET_SECMARK is not set
# CONFIG_NETFILTER_XT_TARGET_TCPMSS is not set

#
# Xtables matches
#
# CONFIG_NETFILTER_XT_MATCH_ADDRTYPE is not set
# CONFIG_NETFILTER_XT_MATCH_BPF is not set
# CONFIG_NETFILTER_XT_MATCH_CGROUP is not set
# CONFIG_NETFILTER_XT_MATCH_COMMENT is not set
# CONFIG_NETFILTER_XT_MATCH_CPU is not set
# CONFIG_NETFILTER_XT_MATCH_DCCP is not set
# CONFIG_NETFILTER_XT_MATCH_DEVGROUP is not set
# CONFIG_NETFILTER_XT_MATCH_DSCP is not set
# CONFIG_NETFILTER_XT_MATCH_ECN is not set
# CONFIG_NETFILTER_XT_MATCH_ESP is not set
# CONFIG_NETFILTER_XT_MATCH_HASHLIMIT is not set
# CONFIG_NETFILTER_XT_MATCH_HL is not set
# CONFIG_NETFILTER_XT_MATCH_IPCOMP is not set
# CONFIG_NETFILTER_XT_MATCH_IPRANGE is not set
# CONFIG_NETFILTER_XT_MATCH_L2TP is not set
# CONFIG_NETFILTER_XT_MATCH_LENGTH is not set
# CONFIG_NETFILTER_XT_MATCH_LIMIT is not set
# CONFIG_NETFILTER_XT_MATCH_MAC is not set
# CONFIG_NETFILTER_XT_MATCH_MARK is not set
# CONFIG_NETFILTER_XT_MATCH_MULTIPORT is not set
# CONFIG_NETFILTER_XT_MATCH_NFACCT is not set
# CONFIG_NETFILTER_XT_MATCH_OWNER is not set
# CONFIG_NETFILTER_XT_MATCH_PKTTYPE is not set
# CONFIG_NETFILTER_XT_MATCH_QUOTA is not set
# CONFIG_NETFILTER_XT_MATCH_RATEEST is not set
# CONFIG_NETFILTER_XT_MATCH_REALM is not set
# CONFIG_NETFILTER_XT_MATCH_RECENT is not set
# CONFIG_NETFILTER_XT_MATCH_SCTP is not set
# CONFIG_NETFILTER_XT_MATCH_STATISTIC is not set
# CONFIG_NETFILTER_XT_MATCH_STRING is not set
# CONFIG_NETFILTER_XT_MATCH_TCPMSS is not set
# CONFIG_NETFILTER_XT_MATCH_TIME is not set
# CONFIG_NETFILTER_XT_MATCH_U32 is not set
# CONFIG_IP_SET is not set
# CONFIG_IP_VS is not set

#
# IP: Netfilter Configuration
#
# CONFIG_NF_DEFRAG_IPV4 is not set
# CONFIG_NF_SOCKET_IPV4 is not set
# CONFIG_NF_DUP_IPV4 is not set
# CONFIG_NF_LOG_ARP is not set
# CONFIG_NF_LOG_IPV4 is not set
# CONFIG_NF_REJECT_IPV4 is not set
CONFIG_IP_NF_IPTABLES=m
# CONFIG_IP_NF_MATCH_AH is not set
# CONFIG_IP_NF_MATCH_ECN is not set
# CONFIG_IP_NF_MATCH_TTL is not set
# CONFIG_IP_NF_FILTER is not set
# CONFIG_IP_NF_MANGLE is not set
# CONFIG_IP_NF_RAW is not set
# CONFIG_IP_NF_SECURITY is not set
# CONFIG_IP_NF_ARPTABLES is not set

#
# IPv6: Netfilter Configuration
#
# CONFIG_NF_DEFRAG_IPV6 is not set
# CONFIG_NF_SOCKET_IPV6 is not set
# CONFIG_NF_DUP_IPV6 is not set
# CONFIG_NF_REJECT_IPV6 is not set
# CONFIG_NF_LOG_IPV6 is not set
# CONFIG_IP6_NF_IPTABLES is not set
# CONFIG_IP_DCCP is not set
# CONFIG_IP_SCTP is not set
# CONFIG_RDS is not set
# CONFIG_TIPC is not set
# CONFIG_ATM is not set
# CONFIG_L2TP is not set
# CONFIG_BRIDGE is not set
CONFIG_HAVE_NET_DSA=y
# CONFIG_NET_DSA is not set
# CONFIG_VLAN_8021Q is not set
# CONFIG_DECNET is not set
# CONFIG_LLC2 is not set
# CONFIG_IPX is not set
# CONFIG_ATALK is not set
# CONFIG_X25 is not set
# CONFIG_LAPB is not set
# CONFIG_PHONET is not set
# CONFIG_6LOWPAN is not set
# CONFIG_IEEE802154 is not set
CONFIG_NET_SCHED=y

#
# Queueing/Scheduling
#
# CONFIG_NET_SCH_CBQ is not set
# CONFIG_NET_SCH_HTB is not set
# CONFIG_NET_SCH_HFSC is not set
# CONFIG_NET_SCH_PRIO is not set
# CONFIG_NET_SCH_MULTIQ is not set
# CONFIG_NET_SCH_RED is not set
# CONFIG_NET_SCH_SFB is not set
# CONFIG_NET_SCH_SFQ is not set
# CONFIG_NET_SCH_TEQL is not set
# CONFIG_NET_SCH_TBF is not set
# CONFIG_NET_SCH_GRED is not set
# CONFIG_NET_SCH_DSMARK is not set
# CONFIG_NET_SCH_NETEM is not set
# CONFIG_NET_SCH_DRR is not set
# CONFIG_NET_SCH_MQPRIO is not set
# CONFIG_NET_SCH_CHOKE is not set
# CONFIG_NET_SCH_QFQ is not set
# CONFIG_NET_SCH_CODEL is not set
# CONFIG_NET_SCH_FQ_CODEL is not set
# CONFIG_NET_SCH_FQ is not set
# CONFIG_NET_SCH_HHF is not set
# CONFIG_NET_SCH_PIE is not set
# CONFIG_NET_SCH_INGRESS is not set
# CONFIG_NET_SCH_PLUG is not set

#
# Classification
#
CONFIG_NET_CLS=y
# CONFIG_NET_CLS_BASIC is not set
# CONFIG_NET_CLS_TCINDEX is not set
# CONFIG_NET_CLS_ROUTE4 is not set
# CONFIG_NET_CLS_FW is not set
# CONFIG_NET_CLS_U32 is not set
# CONFIG_NET_CLS_RSVP is not set
# CONFIG_NET_CLS_RSVP6 is not set
# CONFIG_NET_CLS_FLOW is not set
# CONFIG_NET_CLS_CGROUP is not set
# CONFIG_NET_CLS_BPF is not set
# CONFIG_NET_CLS_FLOWER is not set
# CONFIG_NET_CLS_MATCHALL is not set
CONFIG_NET_EMATCH=y
CONFIG_NET_EMATCH_STACK=32
# CONFIG_NET_EMATCH_CMP is not set
# CONFIG_NET_EMATCH_NBYTE is not set
# CONFIG_NET_EMATCH_U32 is not set
# CONFIG_NET_EMATCH_META is not set
# CONFIG_NET_EMATCH_TEXT is not set
CONFIG_NET_CLS_ACT=y
# CONFIG_NET_ACT_POLICE is not set
# CONFIG_NET_ACT_GACT is not set
# CONFIG_NET_ACT_MIRRED is not set
# CONFIG_NET_ACT_SAMPLE is not set
# CONFIG_NET_ACT_IPT is not set
# CONFIG_NET_ACT_NAT is not set
# CONFIG_NET_ACT_PEDIT is not set
# CONFIG_NET_ACT_SIMP is not set
# CONFIG_NET_ACT_SKBEDIT is not set
# CONFIG_NET_ACT_CSUM is not set
# CONFIG_NET_ACT_VLAN is not set
# CONFIG_NET_ACT_BPF is not set
# CONFIG_NET_ACT_SKBMOD is not set
# CONFIG_NET_ACT_IFE is not set
# CONFIG_NET_ACT_TUNNEL_KEY is not set
CONFIG_NET_SCH_FIFO=y
CONFIG_DCB=y
CONFIG_DNS_RESOLVER=y
# CONFIG_BATMAN_ADV is not set
# CONFIG_OPENVSWITCH is not set
# CONFIG_VSOCKETS is not set
# CONFIG_NETLINK_DIAG is not set
CONFIG_MPLS=y
# CONFIG_NET_MPLS_GSO is not set
# CONFIG_MPLS_ROUTING is not set
# CONFIG_HSR is not set
CONFIG_NET_SWITCHDEV=y
CONFIG_NET_L3_MASTER_DEV=y
CONFIG_NET_NCSI=y
CONFIG_RPS=y
CONFIG_RFS_ACCEL=y
CONFIG_XPS=y
CONFIG_CGROUP_NET_PRIO=y
CONFIG_CGROUP_NET_CLASSID=y
CONFIG_NET_RX_BUSY_POLL=y
CONFIG_BQL=y
CONFIG_BPF_JIT=y
CONFIG_NET_FLOW_LIMIT=y

#
# Network testing
#
# CONFIG_NET_PKTGEN is not set
# CONFIG_NET_TCPPROBE is not set
# CONFIG_NET_DROP_MONITOR is not set
# CONFIG_HAMRADIO is not set
# CONFIG_CAN is not set
# CONFIG_IRDA is not set
# CONFIG_BT is not set
# CONFIG_AF_RXRPC is not set
# CONFIG_AF_KCM is not set
# CONFIG_STREAM_PARSER is not set
CONFIG_FIB_RULES=y
CONFIG_WIRELESS=y
# CONFIG_CFG80211 is not set
# CONFIG_LIB80211 is not set

#
# CFG80211 needs to be enabled for MAC80211
#
CONFIG_MAC80211_STA_HASH_MAX_SIZE=0
# CONFIG_WIMAX is not set
# CONFIG_RFKILL is not set
# CONFIG_NET_9P is not set
# CONFIG_CAIF is not set
# CONFIG_CEPH_LIB is not set
# CONFIG_NFC is not set
# CONFIG_PSAMPLE is not set
# CONFIG_NET_IFE is not set
# CONFIG_LWTUNNEL is not set
# CONFIG_DST_CACHE is not set
# CONFIG_GRO_CELLS is not set
# CONFIG_NET_DEVLINK is not set
CONFIG_MAY_USE_DEVLINK=y
CONFIG_HAVE_EBPF_JIT=y

#
# Device Drivers
#

#
# Generic Driver Options
#
CONFIG_UEVENT_HELPER=y
CONFIG_UEVENT_HELPER_PATH=""
CONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y
# CONFIG_STANDALONE is not set
CONFIG_PREVENT_FIRMWARE_BUILD=y
CONFIG_FW_LOADER=y
CONFIG_FIRMWARE_IN_KERNEL=y
CONFIG_EXTRA_FIRMWARE=""
# CONFIG_FW_LOADER_USER_HELPER_FALLBACK is not set
CONFIG_ALLOW_DEV_COREDUMP=y
# CONFIG_DEBUG_DRIVER is not set
# CONFIG_DEBUG_DEVRES is not set
# CONFIG_DEBUG_TEST_DRIVER_REMOVE is not set
# CONFIG_TEST_ASYNC_DRIVER_PROBE is not set
# CONFIG_SYS_HYPERVISOR is not set
# CONFIG_GENERIC_CPU_DEVICES is not set
CONFIG_GENERIC_CPU_AUTOPROBE=y
CONFIG_REGMAP=y
CONFIG_REGMAP_I2C=y
CONFIG_REGMAP_SPI=y
CONFIG_REGMAP_MMIO=y
CONFIG_REGMAP_IRQ=y
CONFIG_DMA_SHARED_BUFFER=y
# CONFIG_DMA_FENCE_TRACE is not set
# CONFIG_DMA_CMA is not set

#
# Bus devices
#
CONFIG_CONNECTOR=y
CONFIG_PROC_EVENTS=y
# CONFIG_MTD is not set
# CONFIG_OF is not set
CONFIG_ARCH_MIGHT_HAVE_PC_PARPORT=y
# CONFIG_PARPORT is not set
CONFIG_PNP=y
# CONFIG_PNP_DEBUG_MESSAGES is not set

#
# Protocols
#
CONFIG_PNPACPI=y
CONFIG_BLK_DEV=y
# CONFIG_BLK_DEV_NULL_BLK is not set
# CONFIG_BLK_DEV_FD is not set
# CONFIG_BLK_DEV_PCIESSD_MTIP32XX is not set
# CONFIG_ZRAM is not set
# CONFIG_BLK_CPQ_CISS_DA is not set
# CONFIG_BLK_DEV_DAC960 is not set
# CONFIG_BLK_DEV_UMEM is not set
# CONFIG_BLK_DEV_COW_COMMON is not set
CONFIG_BLK_DEV_LOOP=y
CONFIG_BLK_DEV_LOOP_MIN_COUNT=8
# CONFIG_BLK_DEV_CRYPTOLOOP is not set
# CONFIG_BLK_DEV_DRBD is not set
# CONFIG_BLK_DEV_NBD is not set
# CONFIG_BLK_DEV_SKD is not set
# CONFIG_BLK_DEV_SX8 is not set
CONFIG_BLK_DEV_RAM=y
CONFIG_BLK_DEV_RAM_COUNT=16
CONFIG_BLK_DEV_RAM_SIZE=65536
CONFIG_BLK_DEV_RAM_DAX=y
# CONFIG_CDROM_PKTCDVD is not set
# CONFIG_ATA_OVER_ETH is not set
# CONFIG_VIRTIO_BLK is not set
# CONFIG_BLK_DEV_HD is not set
# CONFIG_BLK_DEV_RBD is not set
# CONFIG_BLK_DEV_RSXX is not set
# CONFIG_BLK_DEV_NVME is not set
# CONFIG_NVME_FC is not set
# CONFIG_NVME_TARGET is not set

#
# Misc devices
#
# CONFIG_SENSORS_LIS3LV02D is not set
# CONFIG_AD525X_DPOT is not set
# CONFIG_DUMMY_IRQ is not set
# CONFIG_IBM_ASM is not set
# CONFIG_PHANTOM is not set
# CONFIG_SGI_IOC4 is not set
# CONFIG_TIFM_CORE is not set
# CONFIG_ICS932S401 is not set
# CONFIG_ENCLOSURE_SERVICES is not set
# CONFIG_HP_ILO is not set
# CONFIG_APDS9802ALS is not set
# CONFIG_ISL29003 is not set
# CONFIG_ISL29020 is not set
# CONFIG_SENSORS_TSL2550 is not set
# CONFIG_SENSORS_BH1770 is not set
# CONFIG_SENSORS_APDS990X is not set
# CONFIG_HMC6352 is not set
# CONFIG_DS1682 is not set
# CONFIG_TI_DAC7512 is not set
# CONFIG_USB_SWITCH_FSA9480 is not set
# CONFIG_LATTICE_ECP3_CONFIG is not set
CONFIG_SRAM=y
# CONFIG_C2PORT is not set

#
# EEPROM support
#
# CONFIG_EEPROM_AT24 is not set
# CONFIG_EEPROM_AT25 is not set
# CONFIG_EEPROM_LEGACY is not set
# CONFIG_EEPROM_MAX6875 is not set
# CONFIG_EEPROM_93CX6 is not set
# CONFIG_EEPROM_93XX46 is not set
# CONFIG_EEPROM_IDT_89HPESX is not set
# CONFIG_CB710_CORE is not set

#
# Texas Instruments shared transport line discipline
#
# CONFIG_TI_ST is not set
# CONFIG_SENSORS_LIS3_I2C is not set

#
# Altera FPGA firmware download module
#
# CONFIG_ALTERA_STAPL is not set
# CONFIG_INTEL_MEI is not set
# CONFIG_INTEL_MEI_ME is not set
# CONFIG_INTEL_MEI_TXE is not set
# CONFIG_VMWARE_VMCI is not set

#
# Intel MIC Bus Driver
#
# CONFIG_INTEL_MIC_BUS is not set

#
# SCIF Bus Driver
#
# CONFIG_SCIF_BUS is not set

#
# VOP Bus Driver
#
# CONFIG_VOP_BUS is not set

#
# Intel MIC Host Driver
#

#
# Intel MIC Card Driver
#

#
# SCIF Driver
#

#
# Intel MIC Coprocessor State Management (COSM) Drivers
#

#
# VOP Driver
#
# CONFIG_GENWQE is not set
# CONFIG_ECHO is not set
# CONFIG_CXL_BASE is not set
# CONFIG_CXL_AFU_DRIVER_OPS is not set
CONFIG_HAVE_IDE=y
# CONFIG_IDE is not set

#
# SCSI device support
#
CONFIG_SCSI_MOD=y
# CONFIG_RAID_ATTRS is not set
CONFIG_SCSI=y
CONFIG_SCSI_DMA=y
CONFIG_SCSI_NETLINK=y
# CONFIG_SCSI_MQ_DEFAULT is not set
CONFIG_SCSI_PROC_FS=y

#
# SCSI support type (disk, tape, CD-ROM)
#
CONFIG_BLK_DEV_SD=y
# CONFIG_CHR_DEV_ST is not set
# CONFIG_CHR_DEV_OSST is not set
CONFIG_BLK_DEV_SR=y
# CONFIG_BLK_DEV_SR_VENDOR is not set
CONFIG_CHR_DEV_SG=y
# CONFIG_CHR_DEV_SCH is not set
CONFIG_SCSI_CONSTANTS=y
CONFIG_SCSI_LOGGING=y
CONFIG_SCSI_SCAN_ASYNC=y

#
# SCSI Transports
#
# CONFIG_SCSI_SPI_ATTRS is not set
CONFIG_SCSI_FC_ATTRS=m
CONFIG_SCSI_ISCSI_ATTRS=m
# CONFIG_SCSI_SAS_ATTRS is not set
# CONFIG_SCSI_SAS_LIBSAS is not set
# CONFIG_SCSI_SRP_ATTRS is not set
CONFIG_SCSI_LOWLEVEL=y
CONFIG_ISCSI_TCP=m
CONFIG_ISCSI_BOOT_SYSFS=m
CONFIG_SCSI_CXGB3_ISCSI=m
CONFIG_SCSI_CXGB4_ISCSI=m
CONFIG_SCSI_BNX2_ISCSI=m
CONFIG_BE2ISCSI=m
# CONFIG_BLK_DEV_3W_XXXX_RAID is not set
# CONFIG_SCSI_HPSA is not set
# CONFIG_SCSI_3W_9XXX is not set
# CONFIG_SCSI_3W_SAS is not set
# CONFIG_SCSI_ACARD is not set
# CONFIG_SCSI_AACRAID is not set
# CONFIG_SCSI_AIC7XXX is not set
# CONFIG_SCSI_AIC79XX is not set
# CONFIG_SCSI_AIC94XX is not set
# CONFIG_SCSI_MVSAS is not set
# CONFIG_SCSI_MVUMI is not set
# CONFIG_SCSI_DPT_I2O is not set
# CONFIG_SCSI_ADVANSYS is not set
# CONFIG_SCSI_ARCMSR is not set
# CONFIG_SCSI_ESAS2R is not set
CONFIG_MEGARAID_NEWGEN=y
# CONFIG_MEGARAID_MM is not set
# CONFIG_MEGARAID_LEGACY is not set
# CONFIG_MEGARAID_SAS is not set
# CONFIG_SCSI_MPT3SAS is not set
# CONFIG_SCSI_MPT2SAS is not set
# CONFIG_SCSI_SMARTPQI is not set
# CONFIG_SCSI_UFSHCD is not set
# CONFIG_SCSI_HPTIOP is not set
# CONFIG_SCSI_BUSLOGIC is not set
# CONFIG_VMWARE_PVSCSI is not set
CONFIG_HYPERV_STORAGE=m
# CONFIG_LIBFC is not set
# CONFIG_SCSI_SNIC is not set
# CONFIG_SCSI_DMX3191D is not set
# CONFIG_SCSI_EATA is not set
# CONFIG_SCSI_FUTURE_DOMAIN is not set
# CONFIG_SCSI_GDTH is not set
# CONFIG_SCSI_ISCI is not set
# CONFIG_SCSI_IPS is not set
# CONFIG_SCSI_INITIO is not set
# CONFIG_SCSI_INIA100 is not set
# CONFIG_SCSI_STEX is not set
# CONFIG_SCSI_SYM53C8XX_2 is not set
# CONFIG_SCSI_IPR is not set
# CONFIG_SCSI_QLOGIC_1280 is not set
# CONFIG_SCSI_QLA_FC is not set
CONFIG_SCSI_QLA_ISCSI=m
# CONFIG_QEDI is not set
# CONFIG_SCSI_LPFC is not set
# CONFIG_SCSI_DC395x is not set
# CONFIG_SCSI_AM53C974 is not set
# CONFIG_SCSI_WD719X is not set
# CONFIG_SCSI_DEBUG is not set
# CONFIG_SCSI_PMCRAID is not set
# CONFIG_SCSI_PM8001 is not set
# CONFIG_SCSI_BFA_FC is not set
# CONFIG_SCSI_VIRTIO is not set
# CONFIG_SCSI_CHELSIO_FCOE is not set
CONFIG_SCSI_DH=y
# CONFIG_SCSI_DH_RDAC is not set
# CONFIG_SCSI_DH_HP_SW is not set
# CONFIG_SCSI_DH_EMC is not set
# CONFIG_SCSI_DH_ALUA is not set
# CONFIG_SCSI_OSD_INITIATOR is not set
CONFIG_ATA=y
# CONFIG_ATA_NONSTANDARD is not set
CONFIG_ATA_VERBOSE_ERROR=y
CONFIG_ATA_ACPI=y
CONFIG_SATA_ZPODD=y
CONFIG_SATA_PMP=y

#
# Controllers with non-SFF native interface
#
# CONFIG_SATA_AHCI is not set
# CONFIG_SATA_AHCI_PLATFORM is not set
# CONFIG_SATA_INIC162X is not set
# CONFIG_SATA_ACARD_AHCI is not set
# CONFIG_SATA_SIL24 is not set
CONFIG_ATA_SFF=y

#
# SFF controllers with custom DMA interface
#
# CONFIG_PDC_ADMA is not set
# CONFIG_SATA_QSTOR is not set
# CONFIG_SATA_SX4 is not set
CONFIG_ATA_BMDMA=y

#
# SATA SFF controllers with BMDMA
#
CONFIG_ATA_PIIX=y
# CONFIG_SATA_DWC is not set
# CONFIG_SATA_MV is not set
# CONFIG_SATA_NV is not set
# CONFIG_SATA_PROMISE is not set
# CONFIG_SATA_SIL is not set
# CONFIG_SATA_SIS is not set
# CONFIG_SATA_SVW is not set
# CONFIG_SATA_ULI is not set
# CONFIG_SATA_VIA is not set
# CONFIG_SATA_VITESSE is not set

#
# PATA SFF controllers with BMDMA
#
# CONFIG_PATA_ALI is not set
# CONFIG_PATA_AMD is not set
# CONFIG_PATA_ARTOP is not set
# CONFIG_PATA_ATIIXP is not set
# CONFIG_PATA_ATP867X is not set
# CONFIG_PATA_CMD64X is not set
# CONFIG_PATA_CYPRESS is not set
# CONFIG_PATA_EFAR is not set
# CONFIG_PATA_HPT366 is not set
# CONFIG_PATA_HPT37X is not set
# CONFIG_PATA_HPT3X2N is not set
# CONFIG_PATA_HPT3X3 is not set
# CONFIG_PATA_IT8213 is not set
# CONFIG_PATA_IT821X is not set
# CONFIG_PATA_JMICRON is not set
# CONFIG_PATA_MARVELL is not set
# CONFIG_PATA_NETCELL is not set
# CONFIG_PATA_NINJA32 is not set
# CONFIG_PATA_NS87415 is not set
# CONFIG_PATA_OLDPIIX is not set
# CONFIG_PATA_OPTIDMA is not set
# CONFIG_PATA_PDC2027X is not set
# CONFIG_PATA_PDC_OLD is not set
# CONFIG_PATA_RADISYS is not set
# CONFIG_PATA_RDC is not set
# CONFIG_PATA_SCH is not set
# CONFIG_PATA_SERVERWORKS is not set
# CONFIG_PATA_SIL680 is not set
CONFIG_PATA_SIS=y
# CONFIG_PATA_TOSHIBA is not set
# CONFIG_PATA_TRIFLEX is not set
# CONFIG_PATA_VIA is not set
# CONFIG_PATA_WINBOND is not set

#
# PIO-only SFF controllers
#
# CONFIG_PATA_CMD640_PCI is not set
# CONFIG_PATA_MPIIX is not set
# CONFIG_PATA_NS87410 is not set
# CONFIG_PATA_OPTI is not set
# CONFIG_PATA_PLATFORM is not set
# CONFIG_PATA_RZ1000 is not set

#
# Generic fallback / legacy drivers
#
# CONFIG_PATA_ACPI is not set
CONFIG_ATA_GENERIC=y
# CONFIG_PATA_LEGACY is not set
# CONFIG_MD is not set
# CONFIG_TARGET_CORE is not set
# CONFIG_FUSION is not set

#
# IEEE 1394 (FireWire) support
#
# CONFIG_FIREWIRE is not set
# CONFIG_FIREWIRE_NOSY is not set
# CONFIG_MACINTOSH_DRIVERS is not set
CONFIG_NETDEVICES=y
CONFIG_NET_CORE=y
# CONFIG_BONDING is not set
# CONFIG_DUMMY is not set
# CONFIG_EQUALIZER is not set
# CONFIG_NET_FC is not set
# CONFIG_IFB is not set
# CONFIG_NET_TEAM is not set
# CONFIG_MACVLAN is not set
# CONFIG_IPVLAN is not set
# CONFIG_VXLAN is not set
# CONFIG_MACSEC is not set
# CONFIG_NETCONSOLE is not set
# CONFIG_NETPOLL is not set
# CONFIG_NET_POLL_CONTROLLER is not set
# CONFIG_RIONET is not set
# CONFIG_TUN is not set
# CONFIG_TUN_VNET_CROSS_LE is not set
# CONFIG_VETH is not set
# CONFIG_VIRTIO_NET is not set
# CONFIG_NLMON is not set
# CONFIG_NET_VRF is not set
# CONFIG_ARCNET is not set

#
# CAIF transport drivers
#

#
# Distributed Switch Architecture drivers
#
CONFIG_ETHERNET=y
CONFIG_MDIO=m
CONFIG_NET_VENDOR_3COM=y
# CONFIG_VORTEX is not set
# CONFIG_TYPHOON is not set
CONFIG_NET_VENDOR_ADAPTEC=y
# CONFIG_ADAPTEC_STARFIRE is not set
CONFIG_NET_VENDOR_AGERE=y
# CONFIG_ET131X is not set
CONFIG_NET_VENDOR_ALACRITECH=y
# CONFIG_SLICOSS is not set
CONFIG_NET_VENDOR_ALTEON=y
# CONFIG_ACENIC is not set
# CONFIG_ALTERA_TSE is not set
CONFIG_NET_VENDOR_AMAZON=y
# CONFIG_ENA_ETHERNET is not set
CONFIG_NET_VENDOR_AMD=y
# CONFIG_AMD8111_ETH is not set
# CONFIG_PCNET32 is not set
# CONFIG_AMD_XGBE is not set
# CONFIG_AMD_XGBE_HAVE_ECC is not set
CONFIG_NET_VENDOR_AQUANTIA=y
# CONFIG_AQTION is not set
CONFIG_NET_VENDOR_ARC=y
CONFIG_NET_VENDOR_ATHEROS=y
# CONFIG_ATL2 is not set
# CONFIG_ATL1 is not set
# CONFIG_ATL1E is not set
# CONFIG_ATL1C is not set
# CONFIG_ALX is not set
CONFIG_NET_VENDOR_AURORA=y
# CONFIG_AURORA_NB8800 is not set
CONFIG_NET_CADENCE=y
# CONFIG_MACB is not set
CONFIG_NET_VENDOR_BROADCOM=y
# CONFIG_B44 is not set
# CONFIG_BCMGENET is not set
CONFIG_BNX2=m
CONFIG_CNIC=m
# CONFIG_TIGON3 is not set
# CONFIG_BNX2X is not set
# CONFIG_BNXT is not set
CONFIG_NET_VENDOR_BROCADE=y
# CONFIG_BNA is not set
CONFIG_NET_VENDOR_CAVIUM=y
# CONFIG_THUNDER_NIC_PF is not set
# CONFIG_THUNDER_NIC_VF is not set
# CONFIG_THUNDER_NIC_BGX is not set
# CONFIG_THUNDER_NIC_RGX is not set
# CONFIG_LIQUIDIO is not set
# CONFIG_LIQUIDIO_VF is not set
CONFIG_NET_VENDOR_CHELSIO=y
# CONFIG_CHELSIO_T1 is not set
CONFIG_CHELSIO_T3=m
CONFIG_CHELSIO_T4=m
CONFIG_CHELSIO_T4_DCB=y
# CONFIG_CHELSIO_T4VF is not set
CONFIG_CHELSIO_LIB=m
CONFIG_NET_VENDOR_CISCO=y
# CONFIG_ENIC is not set
# CONFIG_CX_ECAT is not set
# CONFIG_DNET is not set
CONFIG_NET_VENDOR_DEC=y
CONFIG_NET_TULIP=y
# CONFIG_DE2104X is not set
# CONFIG_TULIP is not set
# CONFIG_DE4X5 is not set
# CONFIG_WINBOND_840 is not set
# CONFIG_DM9102 is not set
# CONFIG_ULI526X is not set
CONFIG_NET_VENDOR_DLINK=y
# CONFIG_DL2K is not set
# CONFIG_SUNDANCE is not set
CONFIG_NET_VENDOR_EMULEX=y
# CONFIG_BE2NET is not set
CONFIG_NET_VENDOR_EZCHIP=y
CONFIG_NET_VENDOR_EXAR=y
# CONFIG_S2IO is not set
# CONFIG_VXGE is not set
CONFIG_NET_VENDOR_HP=y
# CONFIG_HP100 is not set
CONFIG_NET_VENDOR_INTEL=y
# CONFIG_E100 is not set
# CONFIG_E1000 is not set
# CONFIG_E1000E is not set
# CONFIG_IGB is not set
# CONFIG_IGBVF is not set
# CONFIG_IXGB is not set
# CONFIG_IXGBE is not set
# CONFIG_IXGBEVF is not set
# CONFIG_I40E is not set
# CONFIG_I40EVF is not set
# CONFIG_FM10K is not set
CONFIG_NET_VENDOR_I825XX=y
# CONFIG_JME is not set
CONFIG_NET_VENDOR_MARVELL=y
# CONFIG_MVMDIO is not set
# CONFIG_SKGE is not set
# CONFIG_SKY2 is not set
CONFIG_NET_VENDOR_MELLANOX=y
# CONFIG_MLX4_EN is not set
# CONFIG_MLX4_CORE is not set
# CONFIG_MLX5_CORE is not set
# CONFIG_MLXSW_CORE is not set
CONFIG_NET_VENDOR_MICREL=y
# CONFIG_KS8842 is not set
# CONFIG_KS8851 is not set
# CONFIG_KS8851_MLL is not set
# CONFIG_KSZ884X_PCI is not set
CONFIG_NET_VENDOR_MICROCHIP=y
# CONFIG_ENC28J60 is not set
# CONFIG_ENCX24J600 is not set
CONFIG_NET_VENDOR_MYRI=y
# CONFIG_MYRI10GE is not set
# CONFIG_FEALNX is not set
CONFIG_NET_VENDOR_NATSEMI=y
# CONFIG_NATSEMI is not set
# CONFIG_NS83820 is not set
CONFIG_NET_VENDOR_NETRONOME=y
# CONFIG_NFP is not set
CONFIG_NET_VENDOR_8390=y
# CONFIG_NE2K_PCI is not set
CONFIG_NET_VENDOR_NVIDIA=y
# CONFIG_FORCEDETH is not set
CONFIG_NET_VENDOR_OKI=y
# CONFIG_ETHOC is not set
CONFIG_NET_PACKET_ENGINE=y
# CONFIG_HAMACHI is not set
# CONFIG_YELLOWFIN is not set
CONFIG_NET_VENDOR_QLOGIC=y
# CONFIG_QLA3XXX is not set
# CONFIG_QLCNIC is not set
# CONFIG_QLGE is not set
# CONFIG_NETXEN_NIC is not set
CONFIG_QED=m
CONFIG_QED_SRIOV=y
# CONFIG_QEDE is not set
CONFIG_NET_VENDOR_QUALCOMM=y
# CONFIG_QCOM_EMAC is not set
CONFIG_NET_VENDOR_REALTEK=y
# CONFIG_8139CP is not set
# CONFIG_8139TOO is not set
# CONFIG_R8169 is not set
CONFIG_NET_VENDOR_RENESAS=y
CONFIG_NET_VENDOR_RDC=y
# CONFIG_R6040 is not set
CONFIG_NET_VENDOR_ROCKER=y
CONFIG_NET_VENDOR_SAMSUNG=y
# CONFIG_SXGBE_ETH is not set
CONFIG_NET_VENDOR_SEEQ=y
CONFIG_NET_VENDOR_SILAN=y
# CONFIG_SC92031 is not set
CONFIG_NET_VENDOR_SIS=y
# CONFIG_SIS900 is not set
# CONFIG_SIS190 is not set
CONFIG_NET_VENDOR_SOLARFLARE=y
# CONFIG_SFC is not set
# CONFIG_SFC_FALCON is not set
CONFIG_NET_VENDOR_SMSC=y
# CONFIG_EPIC100 is not set
# CONFIG_SMSC911X is not set
# CONFIG_SMSC9420 is not set
CONFIG_NET_VENDOR_STMICRO=y
# CONFIG_STMMAC_ETH is not set
CONFIG_NET_VENDOR_SUN=y
# CONFIG_HAPPYMEAL is not set
# CONFIG_SUNGEM is not set
# CONFIG_CASSINI is not set
# CONFIG_NIU is not set
CONFIG_NET_VENDOR_TEHUTI=y
# CONFIG_TEHUTI is not set
CONFIG_NET_VENDOR_TI=y
# CONFIG_TI_CPSW_ALE is not set
# CONFIG_TLAN is not set
CONFIG_NET_VENDOR_VIA=y
# CONFIG_VIA_RHINE is not set
# CONFIG_VIA_VELOCITY is not set
CONFIG_NET_VENDOR_WIZNET=y
# CONFIG_WIZNET_W5100 is not set
# CONFIG_WIZNET_W5300 is not set
# CONFIG_FDDI is not set
# CONFIG_HIPPI is not set
# CONFIG_NET_SB1000 is not set
# CONFIG_PHYLIB is not set
# CONFIG_MICREL_KS8995MA is not set
# CONFIG_PPP is not set
# CONFIG_SLIP is not set
# CONFIG_USB_NET_DRIVERS is not set
# CONFIG_WLAN is not set

#
# Enable WiMAX (Networking options) to see the WiMAX drivers
#
# CONFIG_WAN is not set
# CONFIG_VMXNET3 is not set
# CONFIG_FUJITSU_ES is not set
CONFIG_HYPERV_NET=m
# CONFIG_ISDN is not set
CONFIG_NVM=y
# CONFIG_NVM_DEBUG is not set
# CONFIG_NVM_RRPC is not set

#
# Input device support
#
CONFIG_INPUT=y
# CONFIG_INPUT_LEDS is not set
# CONFIG_INPUT_FF_MEMLESS is not set
# CONFIG_INPUT_POLLDEV is not set
# CONFIG_INPUT_SPARSEKMAP is not set
# CONFIG_INPUT_MATRIXKMAP is not set

#
# Userland interfaces
#
CONFIG_INPUT_MOUSEDEV=y
CONFIG_INPUT_MOUSEDEV_PSAUX=y
CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
CONFIG_INPUT_JOYDEV=m
CONFIG_INPUT_EVDEV=y
# CONFIG_INPUT_EVBUG is not set

#
# Input Device Drivers
#
CONFIG_INPUT_KEYBOARD=y
# CONFIG_KEYBOARD_ADP5520 is not set
# CONFIG_KEYBOARD_ADP5588 is not set
# CONFIG_KEYBOARD_ADP5589 is not set
CONFIG_KEYBOARD_ATKBD=y
# CONFIG_KEYBOARD_QT1070 is not set
# CONFIG_KEYBOARD_QT2160 is not set
# CONFIG_KEYBOARD_LKKBD is not set
# CONFIG_KEYBOARD_GPIO is not set
# CONFIG_KEYBOARD_GPIO_POLLED is not set
# CONFIG_KEYBOARD_TCA6416 is not set
# CONFIG_KEYBOARD_TCA8418 is not set
# CONFIG_KEYBOARD_MATRIX is not set
# CONFIG_KEYBOARD_LM8323 is not set
# CONFIG_KEYBOARD_LM8333 is not set
# CONFIG_KEYBOARD_MAX7359 is not set
# CONFIG_KEYBOARD_MCS is not set
# CONFIG_KEYBOARD_MPR121 is not set
# CONFIG_KEYBOARD_NEWTON is not set
# CONFIG_KEYBOARD_OPENCORES is not set
# CONFIG_KEYBOARD_SAMSUNG is not set
# CONFIG_KEYBOARD_STOWAWAY is not set
# CONFIG_KEYBOARD_SUNKBD is not set
# CONFIG_KEYBOARD_TM2_TOUCHKEY is not set
# CONFIG_KEYBOARD_TWL4030 is not set
# CONFIG_KEYBOARD_XTKBD is not set
CONFIG_INPUT_MOUSE=y
# CONFIG_MOUSE_PS2 is not set
# CONFIG_MOUSE_SERIAL is not set
# CONFIG_MOUSE_APPLETOUCH is not set
# CONFIG_MOUSE_BCM5974 is not set
# CONFIG_MOUSE_CYAPA is not set
# CONFIG_MOUSE_ELAN_I2C is not set
# CONFIG_MOUSE_VSXXXAA is not set
# CONFIG_MOUSE_GPIO is not set
# CONFIG_MOUSE_SYNAPTICS_I2C is not set
# CONFIG_MOUSE_SYNAPTICS_USB is not set
CONFIG_INPUT_JOYSTICK=y
# CONFIG_JOYSTICK_ANALOG is not set
# CONFIG_JOYSTICK_A3D is not set
# CONFIG_JOYSTICK_ADI is not set
# CONFIG_JOYSTICK_COBRA is not set
# CONFIG_JOYSTICK_GF2K is not set
# CONFIG_JOYSTICK_GRIP is not set
# CONFIG_JOYSTICK_GRIP_MP is not set
# CONFIG_JOYSTICK_GUILLEMOT is not set
# CONFIG_JOYSTICK_INTERACT is not set
# CONFIG_JOYSTICK_SIDEWINDER is not set
# CONFIG_JOYSTICK_TMDC is not set
# CONFIG_JOYSTICK_IFORCE is not set
# CONFIG_JOYSTICK_WARRIOR is not set
# CONFIG_JOYSTICK_MAGELLAN is not set
# CONFIG_JOYSTICK_SPACEORB is not set
# CONFIG_JOYSTICK_SPACEBALL is not set
# CONFIG_JOYSTICK_STINGER is not set
# CONFIG_JOYSTICK_TWIDJOY is not set
# CONFIG_JOYSTICK_ZHENHUA is not set
# CONFIG_JOYSTICK_AS5011 is not set
# CONFIG_JOYSTICK_JOYDUMP is not set
# CONFIG_JOYSTICK_XPAD is not set
CONFIG_INPUT_TABLET=y
# CONFIG_TABLET_USB_ACECAD is not set
# CONFIG_TABLET_USB_AIPTEK is not set
# CONFIG_TABLET_USB_GTCO is not set
# CONFIG_TABLET_USB_HANWANG is not set
# CONFIG_TABLET_USB_KBTAB is not set
# CONFIG_TABLET_USB_PEGASUS is not set
# CONFIG_TABLET_SERIAL_WACOM4 is not set
CONFIG_INPUT_TOUCHSCREEN=y
CONFIG_TOUCHSCREEN_PROPERTIES=y
# CONFIG_TOUCHSCREEN_88PM860X is not set
# CONFIG_TOUCHSCREEN_ADS7846 is not set
# CONFIG_TOUCHSCREEN_AD7877 is not set
# CONFIG_TOUCHSCREEN_AD7879 is not set
# CONFIG_TOUCHSCREEN_ATMEL_MXT is not set
# CONFIG_TOUCHSCREEN_AUO_PIXCIR is not set
# CONFIG_TOUCHSCREEN_BU21013 is not set
# CONFIG_TOUCHSCREEN_CY8CTMG110 is not set
# CONFIG_TOUCHSCREEN_CYTTSP_CORE is not set
# CONFIG_TOUCHSCREEN_CYTTSP4_CORE is not set
# CONFIG_TOUCHSCREEN_DA9034 is not set
# CONFIG_TOUCHSCREEN_DA9052 is not set
# CONFIG_TOUCHSCREEN_DYNAPRO is not set
# CONFIG_TOUCHSCREEN_HAMPSHIRE is not set
# CONFIG_TOUCHSCREEN_EETI is not set
# CONFIG_TOUCHSCREEN_EGALAX_SERIAL is not set
# CONFIG_TOUCHSCREEN_FUJITSU is not set
# CONFIG_TOUCHSCREEN_GOODIX is not set
# CONFIG_TOUCHSCREEN_ILI210X is not set
# CONFIG_TOUCHSCREEN_GUNZE is not set
# CONFIG_TOUCHSCREEN_EKTF2127 is not set
CONFIG_TOUCHSCREEN_ELAN=y
# CONFIG_TOUCHSCREEN_ELO is not set
# CONFIG_TOUCHSCREEN_WACOM_W8001 is not set
# CONFIG_TOUCHSCREEN_WACOM_I2C is not set
# CONFIG_TOUCHSCREEN_MAX11801 is not set
# CONFIG_TOUCHSCREEN_MCS5000 is not set
# CONFIG_TOUCHSCREEN_MMS114 is not set
# CONFIG_TOUCHSCREEN_MELFAS_MIP4 is not set
# CONFIG_TOUCHSCREEN_MTOUCH is not set
# CONFIG_TOUCHSCREEN_INEXIO is not set
# CONFIG_TOUCHSCREEN_MK712 is not set
# CONFIG_TOUCHSCREEN_PENMOUNT is not set
# CONFIG_TOUCHSCREEN_EDT_FT5X06 is not set
# CONFIG_TOUCHSCREEN_TOUCHRIGHT is not set
# CONFIG_TOUCHSCREEN_TOUCHWIN is not set
# CONFIG_TOUCHSCREEN_PIXCIR is not set
# CONFIG_TOUCHSCREEN_WDT87XX_I2C is not set
# CONFIG_TOUCHSCREEN_WM831X is not set
# CONFIG_TOUCHSCREEN_USB_COMPOSITE is not set
# CONFIG_TOUCHSCREEN_TOUCHIT213 is not set
# CONFIG_TOUCHSCREEN_TSC_SERIO is not set
# CONFIG_TOUCHSCREEN_TSC2004 is not set
# CONFIG_TOUCHSCREEN_TSC2005 is not set
# CONFIG_TOUCHSCREEN_TSC2007 is not set
# CONFIG_TOUCHSCREEN_PCAP is not set
# CONFIG_TOUCHSCREEN_RM_TS is not set
# CONFIG_TOUCHSCREEN_SILEAD is not set
# CONFIG_TOUCHSCREEN_SIS_I2C is not set
# CONFIG_TOUCHSCREEN_ST1232 is not set
# CONFIG_TOUCHSCREEN_SURFACE3_SPI is not set
# CONFIG_TOUCHSCREEN_SX8654 is not set
# CONFIG_TOUCHSCREEN_TPS6507X is not set
# CONFIG_TOUCHSCREEN_ZET6223 is not set
# CONFIG_TOUCHSCREEN_ZFORCE is not set
# CONFIG_TOUCHSCREEN_ROHM_BU21023 is not set
CONFIG_INPUT_MISC=y
# CONFIG_INPUT_88PM860X_ONKEY is not set
# CONFIG_INPUT_AD714X is not set
# CONFIG_INPUT_BMA150 is not set
# CONFIG_INPUT_E3X0_BUTTON is not set
# CONFIG_INPUT_PCSPKR is not set
# CONFIG_INPUT_MAX77693_HAPTIC is not set
# CONFIG_INPUT_MAX8925_ONKEY is not set
# CONFIG_INPUT_MAX8997_HAPTIC is not set
# CONFIG_INPUT_MMA8450 is not set
# CONFIG_INPUT_APANEL is not set
# CONFIG_INPUT_GP2A is not set
# CONFIG_INPUT_GPIO_BEEPER is not set
# CONFIG_INPUT_GPIO_TILT_POLLED is not set
# CONFIG_INPUT_GPIO_DECODER is not set
# CONFIG_INPUT_ATLAS_BTNS is not set
# CONFIG_INPUT_ATI_REMOTE2 is not set
# CONFIG_INPUT_KEYSPAN_REMOTE is not set
# CONFIG_INPUT_KXTJ9 is not set
# CONFIG_INPUT_POWERMATE is not set
# CONFIG_INPUT_YEALINK is not set
# CONFIG_INPUT_CM109 is not set
# CONFIG_INPUT_REGULATOR_HAPTIC is not set
# CONFIG_INPUT_TWL4030_PWRBUTTON is not set
# CONFIG_INPUT_TWL4030_VIBRA is not set
# CONFIG_INPUT_TWL6040_VIBRA is not set
CONFIG_INPUT_UINPUT=y
# CONFIG_INPUT_PALMAS_PWRBUTTON is not set
# CONFIG_INPUT_PCF8574 is not set
# CONFIG_INPUT_PWM_BEEPER is not set
# CONFIG_INPUT_GPIO_ROTARY_ENCODER is not set
# CONFIG_INPUT_DA9052_ONKEY is not set
# CONFIG_INPUT_DA9055_ONKEY is not set
# CONFIG_INPUT_DA9063_ONKEY is not set
# CONFIG_INPUT_WM831X_ON is not set
# CONFIG_INPUT_PCAP is not set
# CONFIG_INPUT_ADXL34X is not set
# CONFIG_INPUT_IMS_PCU is not set
# CONFIG_INPUT_CMA3000 is not set
# CONFIG_INPUT_IDEAPAD_SLIDEBAR is not set
# CONFIG_INPUT_DRV260X_HAPTICS is not set
# CONFIG_INPUT_DRV2665_HAPTICS is not set
# CONFIG_INPUT_DRV2667_HAPTICS is not set
# CONFIG_RMI4_CORE is not set

#
# Hardware I/O ports
#
CONFIG_SERIO=y
CONFIG_ARCH_MIGHT_HAVE_PC_SERIO=y
CONFIG_SERIO_I8042=y
# CONFIG_SERIO_SERPORT is not set
# CONFIG_SERIO_CT82C710 is not set
# CONFIG_SERIO_PCIPS2 is not set
CONFIG_SERIO_LIBPS2=y
CONFIG_SERIO_RAW=m
# CONFIG_SERIO_ALTERA_PS2 is not set
# CONFIG_SERIO_PS2MULT is not set
# CONFIG_SERIO_ARC_PS2 is not set
CONFIG_HYPERV_KEYBOARD=m
# CONFIG_USERIO is not set
# CONFIG_GAMEPORT is not set

#
# Character devices
#
CONFIG_TTY=y
CONFIG_VT=y
CONFIG_CONSOLE_TRANSLATIONS=y
CONFIG_VT_CONSOLE=y
CONFIG_VT_CONSOLE_SLEEP=y
CONFIG_HW_CONSOLE=y
CONFIG_VT_HW_CONSOLE_BINDING=y
CONFIG_UNIX98_PTYS=y
CONFIG_LEGACY_PTYS=y
CONFIG_LEGACY_PTY_COUNT=0
CONFIG_SERIAL_NONSTANDARD=y
# CONFIG_ROCKETPORT is not set
# CONFIG_CYCLADES is not set
# CONFIG_MOXA_INTELLIO is not set
# CONFIG_MOXA_SMARTIO is not set
# CONFIG_SYNCLINK is not set
# CONFIG_SYNCLINKMP is not set
# CONFIG_SYNCLINK_GT is not set
# CONFIG_NOZOMI is not set
# CONFIG_ISI is not set
# CONFIG_N_HDLC is not set
# CONFIG_N_GSM is not set
# CONFIG_TRACE_SINK is not set
CONFIG_DEVMEM=y
# CONFIG_DEVKMEM is not set

#
# Serial drivers
#
CONFIG_SERIAL_EARLYCON=y
CONFIG_SERIAL_8250=y
# CONFIG_SERIAL_8250_DEPRECATED_OPTIONS is not set
CONFIG_SERIAL_8250_PNP=y
CONFIG_SERIAL_8250_FINTEK=y
CONFIG_SERIAL_8250_CONSOLE=y
CONFIG_SERIAL_8250_DMA=y
CONFIG_SERIAL_8250_PCI=y
CONFIG_SERIAL_8250_EXAR=y
CONFIG_SERIAL_8250_NR_UARTS=48
CONFIG_SERIAL_8250_RUNTIME_UARTS=32
CONFIG_SERIAL_8250_EXTENDED=y
CONFIG_SERIAL_8250_MANY_PORTS=y
CONFIG_SERIAL_8250_SHARE_IRQ=y
# CONFIG_SERIAL_8250_DETECT_IRQ is not set
CONFIG_SERIAL_8250_RSA=y
# CONFIG_SERIAL_8250_FSL is not set
# CONFIG_SERIAL_8250_DW is not set
CONFIG_SERIAL_8250_RT288X=y
CONFIG_SERIAL_8250_LPSS=y
# CONFIG_SERIAL_8250_MID is not set
# CONFIG_SERIAL_8250_MOXA is not set

#
# Non-8250 serial port support
#
CONFIG_SERIAL_KGDB_NMI=y
# CONFIG_SERIAL_MAX3100 is not set
CONFIG_SERIAL_MAX310X=y
# CONFIG_SERIAL_UARTLITE is not set
CONFIG_SERIAL_CORE=y
CONFIG_SERIAL_CORE_CONSOLE=y
CONFIG_CONSOLE_POLL=y
# CONFIG_SERIAL_JSM is not set
CONFIG_SERIAL_SCCNXP=y
CONFIG_SERIAL_SCCNXP_CONSOLE=y
# CONFIG_SERIAL_SC16IS7XX is not set
# CONFIG_SERIAL_ALTERA_JTAGUART is not set
# CONFIG_SERIAL_ALTERA_UART is not set
# CONFIG_SERIAL_IFX6X60 is not set
# CONFIG_SERIAL_ARC is not set
# CONFIG_SERIAL_RP2 is not set
# CONFIG_SERIAL_FSL_LPUART is not set
# CONFIG_SERIAL_DEV_BUS is not set
CONFIG_TTY_PRINTK=y
CONFIG_HVC_DRIVER=y
CONFIG_VIRTIO_CONSOLE=y
# CONFIG_IPMI_HANDLER is not set
CONFIG_HW_RANDOM=y
# CONFIG_HW_RANDOM_TIMERIOMEM is not set
# CONFIG_HW_RANDOM_INTEL is not set
# CONFIG_HW_RANDOM_AMD is not set
# CONFIG_HW_RANDOM_VIA is not set
# CONFIG_HW_RANDOM_VIRTIO is not set
# CONFIG_HW_RANDOM_TPM is not set
# CONFIG_NVRAM is not set
# CONFIG_R3964 is not set
# CONFIG_APPLICOM is not set
# CONFIG_MWAVE is not set
# CONFIG_RAW_DRIVER is not set
CONFIG_HPET=y
CONFIG_HPET_MMAP=y
CONFIG_HPET_MMAP_DEFAULT=y
# CONFIG_HANGCHECK_TIMER is not set
CONFIG_TCG_TPM=y
CONFIG_TCG_TIS_CORE=y
CONFIG_TCG_TIS=y
# CONFIG_TCG_TIS_SPI is not set
# CONFIG_TCG_TIS_I2C_ATMEL is not set
# CONFIG_TCG_TIS_I2C_INFINEON is not set
# CONFIG_TCG_TIS_I2C_NUVOTON is not set
# CONFIG_TCG_NSC is not set
# CONFIG_TCG_ATMEL is not set
# CONFIG_TCG_INFINEON is not set
# CONFIG_TCG_CRB is not set
# CONFIG_TCG_VTPM_PROXY is not set
# CONFIG_TCG_TIS_ST33ZP24_I2C is not set
# CONFIG_TCG_TIS_ST33ZP24_SPI is not set
# CONFIG_TELCLOCK is not set
CONFIG_DEVPORT=y
# CONFIG_XILLYBUS is not set

#
# I2C support
#
CONFIG_I2C=y
CONFIG_ACPI_I2C_OPREGION=y
CONFIG_I2C_BOARDINFO=y
CONFIG_I2C_COMPAT=y
CONFIG_I2C_CHARDEV=y
# CONFIG_I2C_MUX is not set
CONFIG_I2C_HELPER_AUTO=y

#
# I2C Hardware Bus support
#

#
# PC SMBus host controller drivers
#
# CONFIG_I2C_ALI1535 is not set
# CONFIG_I2C_ALI1563 is not set
# CONFIG_I2C_ALI15X3 is not set
# CONFIG_I2C_AMD756 is not set
# CONFIG_I2C_AMD8111 is not set
# CONFIG_I2C_I801 is not set
# CONFIG_I2C_ISCH is not set
# CONFIG_I2C_ISMT is not set
# CONFIG_I2C_PIIX4 is not set
# CONFIG_I2C_NFORCE2 is not set
# CONFIG_I2C_SIS5595 is not set
# CONFIG_I2C_SIS630 is not set
# CONFIG_I2C_SIS96X is not set
# CONFIG_I2C_VIA is not set
# CONFIG_I2C_VIAPRO is not set

#
# ACPI drivers
#
# CONFIG_I2C_SCMI is not set

#
# I2C system bus drivers (mostly embedded / system-on-chip)
#
# CONFIG_I2C_CBUS_GPIO is not set
# CONFIG_I2C_DESIGNWARE_PLATFORM is not set
# CONFIG_I2C_DESIGNWARE_PCI is not set
# CONFIG_I2C_EMEV2 is not set
# CONFIG_I2C_GPIO is not set
# CONFIG_I2C_OCORES is not set
# CONFIG_I2C_PCA_PLATFORM is not set
# CONFIG_I2C_PXA_PCI is not set
# CONFIG_I2C_SIMTEC is not set
# CONFIG_I2C_XILINX is not set

#
# External I2C/SMBus adapter drivers
#
# CONFIG_I2C_DIOLAN_U2C is not set
# CONFIG_I2C_PARPORT_LIGHT is not set
# CONFIG_I2C_ROBOTFUZZ_OSIF is not set
# CONFIG_I2C_TAOS_EVM is not set
# CONFIG_I2C_TINY_USB is not set

#
# Other I2C/SMBus bus drivers
#
# CONFIG_I2C_MLXCPLD is not set
# CONFIG_I2C_STUB is not set
CONFIG_I2C_SLAVE=y
# CONFIG_I2C_SLAVE_EEPROM is not set
# CONFIG_I2C_DEBUG_CORE is not set
# CONFIG_I2C_DEBUG_ALGO is not set
# CONFIG_I2C_DEBUG_BUS is not set
CONFIG_SPI=y
# CONFIG_SPI_DEBUG is not set
CONFIG_SPI_MASTER=y

#
# SPI Master Controller Drivers
#
# CONFIG_SPI_ALTERA is not set
# CONFIG_SPI_AXI_SPI_ENGINE is not set
# CONFIG_SPI_BITBANG is not set
# CONFIG_SPI_CADENCE is not set
# CONFIG_SPI_DESIGNWARE is not set
# CONFIG_SPI_GPIO is not set
# CONFIG_SPI_OC_TINY is not set
# CONFIG_SPI_PXA2XX is not set
# CONFIG_SPI_PXA2XX_PCI is not set
# CONFIG_SPI_ROCKCHIP is not set
# CONFIG_SPI_SC18IS602 is not set
# CONFIG_SPI_XCOMM is not set
# CONFIG_SPI_XILINX is not set
# CONFIG_SPI_ZYNQMP_GQSPI is not set

#
# SPI Protocol Masters
#
# CONFIG_SPI_SPIDEV is not set
# CONFIG_SPI_LOOPBACK_TEST is not set
# CONFIG_SPI_TLE62X0 is not set
# CONFIG_SPMI is not set
# CONFIG_HSI is not set

#
# PPS support
#
# CONFIG_PPS is not set

#
# PPS generators support
#

#
# PTP clock support
#
# CONFIG_PTP_1588_CLOCK is not set

#
# Enable PHYLIB and NETWORK_PHY_TIMESTAMPING to see the additional clocks.
#
CONFIG_PINCTRL=y

#
# Pin controllers
#
CONFIG_PINMUX=y
CONFIG_PINCONF=y
CONFIG_GENERIC_PINCONF=y
# CONFIG_DEBUG_PINCTRL is not set
CONFIG_PINCTRL_AMD=y
CONFIG_PINCTRL_SX150X=y
CONFIG_PINCTRL_BAYTRAIL=y
CONFIG_PINCTRL_CHERRYVIEW=y
# CONFIG_PINCTRL_BROXTON is not set
# CONFIG_PINCTRL_GEMINILAKE is not set
# CONFIG_PINCTRL_SUNRISEPOINT is not set
CONFIG_GPIOLIB=y
CONFIG_GPIO_ACPI=y
CONFIG_GPIOLIB_IRQCHIP=y
# CONFIG_DEBUG_GPIO is not set
CONFIG_GPIO_SYSFS=y

#
# Memory mapped GPIO drivers
#
# CONFIG_GPIO_AMDPT is not set
# CONFIG_GPIO_DWAPB is not set
# CONFIG_GPIO_EXAR is not set
# CONFIG_GPIO_GENERIC_PLATFORM is not set
# CONFIG_GPIO_ICH is not set
CONFIG_GPIO_LYNXPOINT=y
# CONFIG_GPIO_MOCKUP is not set
# CONFIG_GPIO_VX855 is not set

#
# Port-mapped I/O GPIO drivers
#
# CONFIG_GPIO_104_DIO_48E is not set
# CONFIG_GPIO_104_IDIO_16 is not set
# CONFIG_GPIO_104_IDI_48 is not set
# CONFIG_GPIO_F7188X is not set
# CONFIG_GPIO_GPIO_MM is not set
# CONFIG_GPIO_IT87 is not set
# CONFIG_GPIO_SCH is not set
# CONFIG_GPIO_SCH311X is not set
# CONFIG_GPIO_WS16C48 is not set

#
# I2C GPIO expanders
#
# CONFIG_GPIO_ADP5588 is not set
# CONFIG_GPIO_MAX7300 is not set
# CONFIG_GPIO_MAX732X is not set
# CONFIG_GPIO_PCA953X is not set
# CONFIG_GPIO_PCF857X is not set
CONFIG_GPIO_SX150X=y
# CONFIG_GPIO_TPIC2810 is not set

#
# MFD GPIO expanders
#
# CONFIG_GPIO_ADP5520 is not set
# CONFIG_GPIO_CRYSTAL_COVE is not set
# CONFIG_GPIO_DA9052 is not set
# CONFIG_GPIO_DA9055 is not set
CONFIG_GPIO_PALMAS=y
CONFIG_GPIO_RC5T583=y
CONFIG_GPIO_TPS6586X=y
CONFIG_GPIO_TPS65910=y
# CONFIG_GPIO_TPS65912 is not set
# CONFIG_GPIO_TWL4030 is not set
# CONFIG_GPIO_TWL6040 is not set
# CONFIG_GPIO_WHISKEY_COVE is not set
# CONFIG_GPIO_WM831X is not set
# CONFIG_GPIO_WM8350 is not set

#
# PCI GPIO expanders
#
# CONFIG_GPIO_AMD8111 is not set
# CONFIG_GPIO_BT8XX is not set
# CONFIG_GPIO_ML_IOH is not set
# CONFIG_GPIO_PCI_IDIO_16 is not set
# CONFIG_GPIO_RDC321X is not set

#
# SPI GPIO expanders
#
# CONFIG_GPIO_MAX7301 is not set
# CONFIG_GPIO_MC33880 is not set
# CONFIG_GPIO_PISOSR is not set

#
# SPI or I2C GPIO expanders
#

#
# USB GPIO expanders
#
# CONFIG_W1 is not set
CONFIG_POWER_AVS=y
CONFIG_POWER_RESET=y
CONFIG_POWER_RESET_RESTART=y
CONFIG_POWER_SUPPLY=y
# CONFIG_POWER_SUPPLY_DEBUG is not set
# CONFIG_PDA_POWER is not set
# CONFIG_MAX8925_POWER is not set
# CONFIG_WM831X_BACKUP is not set
# CONFIG_WM831X_POWER is not set
# CONFIG_WM8350_POWER is not set
# CONFIG_TEST_POWER is not set
# CONFIG_BATTERY_88PM860X is not set
# CONFIG_BATTERY_DS2780 is not set
# CONFIG_BATTERY_DS2781 is not set
# CONFIG_BATTERY_DS2782 is not set
# CONFIG_BATTERY_SBS is not set
# CONFIG_CHARGER_SBS is not set
# CONFIG_BATTERY_BQ27XXX is not set
# CONFIG_BATTERY_DA9030 is not set
# CONFIG_BATTERY_DA9052 is not set
# CONFIG_BATTERY_MAX17040 is not set
# CONFIG_BATTERY_MAX17042 is not set
# CONFIG_CHARGER_MAX8903 is not set
# CONFIG_CHARGER_LP8727 is not set
# CONFIG_CHARGER_GPIO is not set
CONFIG_CHARGER_MANAGER=y
# CONFIG_CHARGER_MAX14577 is not set
# CONFIG_CHARGER_MAX77693 is not set
# CONFIG_CHARGER_BQ2415X is not set
# CONFIG_CHARGER_BQ24190 is not set
# CONFIG_CHARGER_BQ24257 is not set
# CONFIG_CHARGER_BQ24735 is not set
# CONFIG_CHARGER_BQ25890 is not set
# CONFIG_CHARGER_SMB347 is not set
# CONFIG_CHARGER_TPS65090 is not set
# CONFIG_BATTERY_GAUGE_LTC2941 is not set
# CONFIG_CHARGER_RT9455 is not set
CONFIG_HWMON=y
# CONFIG_HWMON_VID is not set
# CONFIG_HWMON_DEBUG_CHIP is not set

#
# Native drivers
#
# CONFIG_SENSORS_ABITUGURU is not set
# CONFIG_SENSORS_ABITUGURU3 is not set
# CONFIG_SENSORS_AD7314 is not set
# CONFIG_SENSORS_AD7414 is not set
# CONFIG_SENSORS_AD7418 is not set
# CONFIG_SENSORS_ADM1021 is not set
# CONFIG_SENSORS_ADM1025 is not set
# CONFIG_SENSORS_ADM1026 is not set
# CONFIG_SENSORS_ADM1029 is not set
# CONFIG_SENSORS_ADM1031 is not set
# CONFIG_SENSORS_ADM9240 is not set
# CONFIG_SENSORS_ADT7310 is not set
# CONFIG_SENSORS_ADT7410 is not set
# CONFIG_SENSORS_ADT7411 is not set
# CONFIG_SENSORS_ADT7462 is not set
# CONFIG_SENSORS_ADT7470 is not set
# CONFIG_SENSORS_ADT7475 is not set
# CONFIG_SENSORS_ASC7621 is not set
# CONFIG_SENSORS_K8TEMP is not set
# CONFIG_SENSORS_K10TEMP is not set
# CONFIG_SENSORS_FAM15H_POWER is not set
# CONFIG_SENSORS_APPLESMC is not set
# CONFIG_SENSORS_ASB100 is not set
# CONFIG_SENSORS_ATXP1 is not set
# CONFIG_SENSORS_DS620 is not set
# CONFIG_SENSORS_DS1621 is not set
# CONFIG_SENSORS_DELL_SMM is not set
# CONFIG_SENSORS_DA9052_ADC is not set
# CONFIG_SENSORS_DA9055 is not set
# CONFIG_SENSORS_I5K_AMB is not set
# CONFIG_SENSORS_F71805F is not set
# CONFIG_SENSORS_F71882FG is not set
# CONFIG_SENSORS_F75375S is not set
# CONFIG_SENSORS_FSCHMD is not set
# CONFIG_SENSORS_FTSTEUTATES is not set
# CONFIG_SENSORS_GL518SM is not set
# CONFIG_SENSORS_GL520SM is not set
# CONFIG_SENSORS_G760A is not set
# CONFIG_SENSORS_G762 is not set
# CONFIG_SENSORS_GPIO_FAN is not set
# CONFIG_SENSORS_HIH6130 is not set
# CONFIG_SENSORS_I5500 is not set
# CONFIG_SENSORS_CORETEMP is not set
# CONFIG_SENSORS_IT87 is not set
# CONFIG_SENSORS_JC42 is not set
# CONFIG_SENSORS_POWR1220 is not set
# CONFIG_SENSORS_LINEAGE is not set
# CONFIG_SENSORS_LTC2945 is not set
# CONFIG_SENSORS_LTC2990 is not set
# CONFIG_SENSORS_LTC4151 is not set
# CONFIG_SENSORS_LTC4215 is not set
# CONFIG_SENSORS_LTC4222 is not set
# CONFIG_SENSORS_LTC4245 is not set
# CONFIG_SENSORS_LTC4260 is not set
# CONFIG_SENSORS_LTC4261 is not set
# CONFIG_SENSORS_MAX1111 is not set
# CONFIG_SENSORS_MAX16065 is not set
# CONFIG_SENSORS_MAX1619 is not set
# CONFIG_SENSORS_MAX1668 is not set
# CONFIG_SENSORS_MAX197 is not set
# CONFIG_SENSORS_MAX31722 is not set
# CONFIG_SENSORS_MAX6639 is not set
# CONFIG_SENSORS_MAX6642 is not set
# CONFIG_SENSORS_MAX6650 is not set
# CONFIG_SENSORS_MAX6697 is not set
# CONFIG_SENSORS_MAX31790 is not set
# CONFIG_SENSORS_MCP3021 is not set
# CONFIG_SENSORS_TC654 is not set
# CONFIG_SENSORS_ADCXX is not set
# CONFIG_SENSORS_LM63 is not set
# CONFIG_SENSORS_LM70 is not set
# CONFIG_SENSORS_LM73 is not set
# CONFIG_SENSORS_LM75 is not set
# CONFIG_SENSORS_LM77 is not set
# CONFIG_SENSORS_LM78 is not set
# CONFIG_SENSORS_LM80 is not set
# CONFIG_SENSORS_LM83 is not set
# CONFIG_SENSORS_LM85 is not set
# CONFIG_SENSORS_LM87 is not set
# CONFIG_SENSORS_LM90 is not set
# CONFIG_SENSORS_LM92 is not set
# CONFIG_SENSORS_LM93 is not set
# CONFIG_SENSORS_LM95234 is not set
# CONFIG_SENSORS_LM95241 is not set
# CONFIG_SENSORS_LM95245 is not set
# CONFIG_SENSORS_PC87360 is not set
# CONFIG_SENSORS_PC87427 is not set
# CONFIG_SENSORS_NTC_THERMISTOR is not set
# CONFIG_SENSORS_NCT6683 is not set
# CONFIG_SENSORS_NCT6775 is not set
# CONFIG_SENSORS_NCT7802 is not set
# CONFIG_SENSORS_NCT7904 is not set
# CONFIG_SENSORS_PCF8591 is not set
# CONFIG_PMBUS is not set
# CONFIG_SENSORS_SHT15 is not set
# CONFIG_SENSORS_SHT21 is not set
# CONFIG_SENSORS_SHT3x is not set
# CONFIG_SENSORS_SHTC1 is not set
# CONFIG_SENSORS_SIS5595 is not set
# CONFIG_SENSORS_DME1737 is not set
# CONFIG_SENSORS_EMC1403 is not set
# CONFIG_SENSORS_EMC2103 is not set
# CONFIG_SENSORS_EMC6W201 is not set
# CONFIG_SENSORS_SMSC47M1 is not set
# CONFIG_SENSORS_SMSC47M192 is not set
# CONFIG_SENSORS_SMSC47B397 is not set
# CONFIG_SENSORS_SCH56XX_COMMON is not set
# CONFIG_SENSORS_SCH5627 is not set
# CONFIG_SENSORS_SCH5636 is not set
# CONFIG_SENSORS_STTS751 is not set
# CONFIG_SENSORS_SMM665 is not set
# CONFIG_SENSORS_ADC128D818 is not set
# CONFIG_SENSORS_ADS1015 is not set
# CONFIG_SENSORS_ADS7828 is not set
# CONFIG_SENSORS_ADS7871 is not set
# CONFIG_SENSORS_AMC6821 is not set
# CONFIG_SENSORS_INA209 is not set
# CONFIG_SENSORS_INA2XX is not set
# CONFIG_SENSORS_INA3221 is not set
# CONFIG_SENSORS_TC74 is not set
# CONFIG_SENSORS_THMC50 is not set
# CONFIG_SENSORS_TMP102 is not set
# CONFIG_SENSORS_TMP103 is not set
# CONFIG_SENSORS_TMP108 is not set
# CONFIG_SENSORS_TMP401 is not set
# CONFIG_SENSORS_TMP421 is not set
# CONFIG_SENSORS_VIA_CPUTEMP is not set
# CONFIG_SENSORS_VIA686A is not set
# CONFIG_SENSORS_VT1211 is not set
# CONFIG_SENSORS_VT8231 is not set
# CONFIG_SENSORS_W83781D is not set
# CONFIG_SENSORS_W83791D is not set
# CONFIG_SENSORS_W83792D is not set
# CONFIG_SENSORS_W83793 is not set
# CONFIG_SENSORS_W83795 is not set
# CONFIG_SENSORS_W83L785TS is not set
# CONFIG_SENSORS_W83L786NG is not set
# CONFIG_SENSORS_W83627HF is not set
# CONFIG_SENSORS_W83627EHF is not set
# CONFIG_SENSORS_WM831X is not set
# CONFIG_SENSORS_WM8350 is not set
# CONFIG_SENSORS_XGENE is not set

#
# ACPI drivers
#
# CONFIG_SENSORS_ACPI_POWER is not set
# CONFIG_SENSORS_ATK0110 is not set
CONFIG_THERMAL=y
CONFIG_THERMAL_HWMON=y
CONFIG_THERMAL_WRITABLE_TRIPS=y
CONFIG_THERMAL_DEFAULT_GOV_STEP_WISE=y
# CONFIG_THERMAL_DEFAULT_GOV_FAIR_SHARE is not set
# CONFIG_THERMAL_DEFAULT_GOV_USER_SPACE is not set
# CONFIG_THERMAL_DEFAULT_GOV_POWER_ALLOCATOR is not set
CONFIG_THERMAL_GOV_FAIR_SHARE=y
CONFIG_THERMAL_GOV_STEP_WISE=y
CONFIG_THERMAL_GOV_BANG_BANG=y
CONFIG_THERMAL_GOV_USER_SPACE=y
CONFIG_THERMAL_GOV_POWER_ALLOCATOR=y
CONFIG_THERMAL_EMULATION=y
# CONFIG_INTEL_POWERCLAMP is not set
# CONFIG_X86_PKG_TEMP_THERMAL is not set
# CONFIG_INTEL_SOC_DTS_THERMAL is not set

#
# ACPI INT340X thermal drivers
#
# CONFIG_INT340X_THERMAL is not set
# CONFIG_INTEL_BXT_PMIC_THERMAL is not set
# CONFIG_INTEL_PCH_THERMAL is not set
CONFIG_WATCHDOG=y
CONFIG_WATCHDOG_CORE=y
# CONFIG_WATCHDOG_NOWAYOUT is not set
CONFIG_WATCHDOG_SYSFS=y

#
# Watchdog Device Drivers
#
# CONFIG_SOFT_WATCHDOG is not set
# CONFIG_DA9052_WATCHDOG is not set
# CONFIG_DA9055_WATCHDOG is not set
# CONFIG_DA9063_WATCHDOG is not set
# CONFIG_WDAT_WDT is not set
# CONFIG_WM831X_WATCHDOG is not set
# CONFIG_WM8350_WATCHDOG is not set
# CONFIG_XILINX_WATCHDOG is not set
# CONFIG_ZIIRAVE_WATCHDOG is not set
# CONFIG_CADENCE_WATCHDOG is not set
# CONFIG_DW_WATCHDOG is not set
# CONFIG_TWL4030_WATCHDOG is not set
# CONFIG_MAX63XX_WATCHDOG is not set
# CONFIG_ACQUIRE_WDT is not set
# CONFIG_ADVANTECH_WDT is not set
# CONFIG_ALIM1535_WDT is not set
# CONFIG_ALIM7101_WDT is not set
# CONFIG_EBC_C384_WDT is not set
# CONFIG_F71808E_WDT is not set
# CONFIG_SP5100_TCO is not set
# CONFIG_SBC_FITPC2_WATCHDOG is not set
# CONFIG_EUROTECH_WDT is not set
# CONFIG_IB700_WDT is not set
# CONFIG_IBMASR is not set
# CONFIG_WAFER_WDT is not set
# CONFIG_I6300ESB_WDT is not set
# CONFIG_IE6XX_WDT is not set
# CONFIG_ITCO_WDT is not set
# CONFIG_IT8712F_WDT is not set
# CONFIG_IT87_WDT is not set
# CONFIG_HP_WATCHDOG is not set
# CONFIG_SC1200_WDT is not set
# CONFIG_PC87413_WDT is not set
# CONFIG_NV_TCO is not set
# CONFIG_60XX_WDT is not set
# CONFIG_CPU5_WDT is not set
# CONFIG_SMSC_SCH311X_WDT is not set
# CONFIG_SMSC37B787_WDT is not set
# CONFIG_VIA_WDT is not set
# CONFIG_W83627HF_WDT is not set
# CONFIG_W83877F_WDT is not set
# CONFIG_W83977F_WDT is not set
# CONFIG_MACHZ_WDT is not set
# CONFIG_SBC_EPX_C3_WATCHDOG is not set
# CONFIG_NI903X_WDT is not set
# CONFIG_NIC7018_WDT is not set
# CONFIG_MEN_A21_WDT is not set

#
# PCI-based Watchdog Cards
#
# CONFIG_PCIPCWATCHDOG is not set
# CONFIG_WDTPCI is not set

#
# USB-based Watchdog Cards
#
# CONFIG_USBPCWATCHDOG is not set

#
# Watchdog Pretimeout Governors
#
# CONFIG_WATCHDOG_PRETIMEOUT_GOV is not set
CONFIG_SSB_POSSIBLE=y

#
# Sonics Silicon Backplane
#
# CONFIG_SSB is not set
CONFIG_BCMA_POSSIBLE=y

#
# Broadcom specific AMBA
#
# CONFIG_BCMA is not set

#
# Multifunction device drivers
#
CONFIG_MFD_CORE=y
CONFIG_MFD_AS3711=y
CONFIG_PMIC_ADP5520=y
CONFIG_MFD_AAT2870_CORE=y
# CONFIG_MFD_BCM590XX is not set
# CONFIG_MFD_AXP20X_I2C is not set
# CONFIG_MFD_CROS_EC is not set
CONFIG_PMIC_DA903X=y
CONFIG_PMIC_DA9052=y
CONFIG_MFD_DA9052_SPI=y
CONFIG_MFD_DA9052_I2C=y
CONFIG_MFD_DA9055=y
# CONFIG_MFD_DA9062 is not set
CONFIG_MFD_DA9063=y
# CONFIG_MFD_DA9150 is not set
# CONFIG_MFD_DLN2 is not set
# CONFIG_MFD_MC13XXX_SPI is not set
# CONFIG_MFD_MC13XXX_I2C is not set
# CONFIG_HTC_PASIC3 is not set
CONFIG_HTC_I2CPLD=y
# CONFIG_MFD_INTEL_QUARK_I2C_GPIO is not set
# CONFIG_LPC_ICH is not set
# CONFIG_LPC_SCH is not set
CONFIG_INTEL_SOC_PMIC=y
# CONFIG_MFD_INTEL_LPSS_ACPI is not set
# CONFIG_MFD_INTEL_LPSS_PCI is not set
# CONFIG_MFD_JANZ_CMODIO is not set
# CONFIG_MFD_KEMPLD is not set
# CONFIG_MFD_88PM800 is not set
# CONFIG_MFD_88PM805 is not set
CONFIG_MFD_88PM860X=y
CONFIG_MFD_MAX14577=y
CONFIG_MFD_MAX77693=y
CONFIG_MFD_MAX77843=y
# CONFIG_MFD_MAX8907 is not set
CONFIG_MFD_MAX8925=y
CONFIG_MFD_MAX8997=y
CONFIG_MFD_MAX8998=y
# CONFIG_MFD_MT6397 is not set
# CONFIG_MFD_MENF21BMC is not set
CONFIG_EZX_PCAP=y
# CONFIG_MFD_VIPERBOARD is not set
# CONFIG_MFD_RETU is not set
# CONFIG_MFD_PCF50633 is not set
# CONFIG_MFD_RDC321X is not set
# CONFIG_MFD_RTSX_PCI is not set
# CONFIG_MFD_RT5033 is not set
# CONFIG_MFD_RTSX_USB is not set
CONFIG_MFD_RC5T583=y
CONFIG_MFD_SEC_CORE=y
# CONFIG_MFD_SI476X_CORE is not set
# CONFIG_MFD_SM501 is not set
# CONFIG_MFD_SKY81452 is not set
CONFIG_MFD_SMSC=y
CONFIG_ABX500_CORE=y
CONFIG_AB3100_CORE=y
# CONFIG_AB3100_OTP is not set
CONFIG_MFD_SYSCON=y
# CONFIG_MFD_TI_AM335X_TSCADC is not set
# CONFIG_MFD_LP3943 is not set
CONFIG_MFD_LP8788=y
CONFIG_MFD_PALMAS=y
# CONFIG_TPS6105X is not set
# CONFIG_TPS65010 is not set
# CONFIG_TPS6507X is not set
# CONFIG_MFD_TPS65086 is not set
CONFIG_MFD_TPS65090=y
# CONFIG_MFD_TPS65217 is not set
# CONFIG_MFD_TI_LP873X is not set
# CONFIG_MFD_TPS65218 is not set
CONFIG_MFD_TPS6586X=y
CONFIG_MFD_TPS65910=y
CONFIG_MFD_TPS65912=y
CONFIG_MFD_TPS65912_I2C=y
CONFIG_MFD_TPS65912_SPI=y
CONFIG_MFD_TPS80031=y
CONFIG_TWL4030_CORE=y
CONFIG_MFD_TWL4030_AUDIO=y
CONFIG_TWL6040_CORE=y
# CONFIG_MFD_WL1273_CORE is not set
# CONFIG_MFD_LM3533 is not set
# CONFIG_MFD_TMIO is not set
# CONFIG_MFD_VX855 is not set
# CONFIG_MFD_ARIZONA_I2C is not set
# CONFIG_MFD_ARIZONA_SPI is not set
CONFIG_MFD_WM8400=y
CONFIG_MFD_WM831X=y
CONFIG_MFD_WM831X_I2C=y
CONFIG_MFD_WM831X_SPI=y
CONFIG_MFD_WM8350=y
CONFIG_MFD_WM8350_I2C=y
# CONFIG_MFD_WM8994 is not set
CONFIG_REGULATOR=y
# CONFIG_REGULATOR_DEBUG is not set
# CONFIG_REGULATOR_FIXED_VOLTAGE is not set
# CONFIG_REGULATOR_VIRTUAL_CONSUMER is not set
# CONFIG_REGULATOR_USERSPACE_CONSUMER is not set
# CONFIG_REGULATOR_88PM8607 is not set
# CONFIG_REGULATOR_ACT8865 is not set
# CONFIG_REGULATOR_AD5398 is not set
# CONFIG_REGULATOR_ANATOP is not set
# CONFIG_REGULATOR_AAT2870 is not set
# CONFIG_REGULATOR_AB3100 is not set
# CONFIG_REGULATOR_AS3711 is not set
# CONFIG_REGULATOR_DA903X is not set
# CONFIG_REGULATOR_DA9052 is not set
# CONFIG_REGULATOR_DA9055 is not set
# CONFIG_REGULATOR_DA9063 is not set
# CONFIG_REGULATOR_DA9210 is not set
# CONFIG_REGULATOR_DA9211 is not set
# CONFIG_REGULATOR_FAN53555 is not set
# CONFIG_REGULATOR_GPIO is not set
# CONFIG_REGULATOR_ISL9305 is not set
# CONFIG_REGULATOR_ISL6271A is not set
# CONFIG_REGULATOR_LP3971 is not set
# CONFIG_REGULATOR_LP3972 is not set
# CONFIG_REGULATOR_LP872X is not set
# CONFIG_REGULATOR_LP8755 is not set
# CONFIG_REGULATOR_LP8788 is not set
# CONFIG_REGULATOR_LTC3589 is not set
# CONFIG_REGULATOR_LTC3676 is not set
# CONFIG_REGULATOR_MAX14577 is not set
# CONFIG_REGULATOR_MAX1586 is not set
# CONFIG_REGULATOR_MAX8649 is not set
# CONFIG_REGULATOR_MAX8660 is not set
# CONFIG_REGULATOR_MAX8925 is not set
# CONFIG_REGULATOR_MAX8952 is not set
# CONFIG_REGULATOR_MAX8997 is not set
# CONFIG_REGULATOR_MAX8998 is not set
# CONFIG_REGULATOR_MAX77693 is not set
# CONFIG_REGULATOR_MT6311 is not set
# CONFIG_REGULATOR_PALMAS is not set
# CONFIG_REGULATOR_PCAP is not set
# CONFIG_REGULATOR_PFUZE100 is not set
# CONFIG_REGULATOR_PV88060 is not set
# CONFIG_REGULATOR_PV88080 is not set
# CONFIG_REGULATOR_PV88090 is not set
# CONFIG_REGULATOR_PWM is not set
# CONFIG_REGULATOR_RC5T583 is not set
# CONFIG_REGULATOR_S2MPA01 is not set
# CONFIG_REGULATOR_S2MPS11 is not set
# CONFIG_REGULATOR_S5M8767 is not set
# CONFIG_REGULATOR_TPS51632 is not set
# CONFIG_REGULATOR_TPS62360 is not set
# CONFIG_REGULATOR_TPS65023 is not set
# CONFIG_REGULATOR_TPS6507X is not set
# CONFIG_REGULATOR_TPS65090 is not set
# CONFIG_REGULATOR_TPS6524X is not set
# CONFIG_REGULATOR_TPS6586X is not set
# CONFIG_REGULATOR_TPS65910 is not set
# CONFIG_REGULATOR_TPS65912 is not set
# CONFIG_REGULATOR_TPS80031 is not set
# CONFIG_REGULATOR_TWL4030 is not set
# CONFIG_REGULATOR_WM831X is not set
# CONFIG_REGULATOR_WM8350 is not set
# CONFIG_REGULATOR_WM8400 is not set
# CONFIG_MEDIA_SUPPORT is not set

#
# Graphics support
#
CONFIG_AGP=y
CONFIG_AGP_AMD64=y
CONFIG_AGP_INTEL=y
# CONFIG_AGP_SIS is not set
CONFIG_AGP_VIA=y
CONFIG_INTEL_GTT=y
CONFIG_VGA_ARB=y
CONFIG_VGA_ARB_MAX_GPUS=16
CONFIG_VGA_SWITCHEROO=y
# CONFIG_DRM is not set

#
# ACP (Audio CoProcessor) Configuration
#
# CONFIG_DRM_LIB_RANDOM is not set

#
# Frame buffer Devices
#
CONFIG_FB=y
CONFIG_FIRMWARE_EDID=y
CONFIG_FB_CMDLINE=y
CONFIG_FB_NOTIFY=y
# CONFIG_FB_DDC is not set
CONFIG_FB_BOOT_VESA_SUPPORT=y
CONFIG_FB_CFB_FILLRECT=y
CONFIG_FB_CFB_COPYAREA=y
CONFIG_FB_CFB_IMAGEBLIT=y
# CONFIG_FB_CFB_REV_PIXELS_IN_BYTE is not set
# CONFIG_FB_SYS_FILLRECT is not set
# CONFIG_FB_SYS_COPYAREA is not set
# CONFIG_FB_SYS_IMAGEBLIT is not set
# CONFIG_FB_PROVIDE_GET_FB_UNMAPPED_AREA is not set
# CONFIG_FB_FOREIGN_ENDIAN is not set
# CONFIG_FB_SYS_FOPS is not set
# CONFIG_FB_SVGALIB is not set
# CONFIG_FB_MACMODES is not set
# CONFIG_FB_BACKLIGHT is not set
CONFIG_FB_MODE_HELPERS=y
CONFIG_FB_TILEBLITTING=y

#
# Frame buffer hardware drivers
#
# CONFIG_FB_CIRRUS is not set
# CONFIG_FB_PM2 is not set
# CONFIG_FB_CYBER2000 is not set
# CONFIG_FB_ARC is not set
CONFIG_FB_ASILIANT=y
CONFIG_FB_IMSTT=y
# CONFIG_FB_VGA16 is not set
# CONFIG_FB_UVESA is not set
CONFIG_FB_VESA=y
CONFIG_FB_EFI=y
# CONFIG_FB_N411 is not set
# CONFIG_FB_HGA is not set
# CONFIG_FB_OPENCORES is not set
# CONFIG_FB_S1D13XXX is not set
# CONFIG_FB_NVIDIA is not set
# CONFIG_FB_RIVA is not set
# CONFIG_FB_I740 is not set
# CONFIG_FB_LE80578 is not set
# CONFIG_FB_INTEL is not set
# CONFIG_FB_MATROX is not set
# CONFIG_FB_RADEON is not set
# CONFIG_FB_ATY128 is not set
# CONFIG_FB_ATY is not set
# CONFIG_FB_S3 is not set
# CONFIG_FB_SAVAGE is not set
# CONFIG_FB_SIS is not set
# CONFIG_FB_VIA is not set
# CONFIG_FB_NEOMAGIC is not set
# CONFIG_FB_KYRO is not set
# CONFIG_FB_3DFX is not set
# CONFIG_FB_VOODOO1 is not set
# CONFIG_FB_VT8623 is not set
# CONFIG_FB_TRIDENT is not set
# CONFIG_FB_ARK is not set
# CONFIG_FB_PM3 is not set
# CONFIG_FB_CARMINE is not set
# CONFIG_FB_SMSCUFX is not set
# CONFIG_FB_UDL is not set
# CONFIG_FB_IBM_GXT4500 is not set
# CONFIG_FB_VIRTUAL is not set
# CONFIG_FB_METRONOME is not set
# CONFIG_FB_MB862XX is not set
# CONFIG_FB_BROADSHEET is not set
# CONFIG_FB_AUO_K190X is not set
CONFIG_FB_HYPERV=m
CONFIG_FB_SIMPLE=y
# CONFIG_FB_SM712 is not set
CONFIG_BACKLIGHT_LCD_SUPPORT=y
# CONFIG_LCD_CLASS_DEVICE is not set
CONFIG_BACKLIGHT_CLASS_DEVICE=y
# CONFIG_BACKLIGHT_GENERIC is not set
# CONFIG_BACKLIGHT_PWM is not set
# CONFIG_BACKLIGHT_DA903X is not set
# CONFIG_BACKLIGHT_DA9052 is not set
# CONFIG_BACKLIGHT_MAX8925 is not set
# CONFIG_BACKLIGHT_APPLE is not set
# CONFIG_BACKLIGHT_PM8941_WLED is not set
# CONFIG_BACKLIGHT_SAHARA is not set
# CONFIG_BACKLIGHT_WM831X is not set
# CONFIG_BACKLIGHT_ADP5520 is not set
# CONFIG_BACKLIGHT_ADP8860 is not set
# CONFIG_BACKLIGHT_ADP8870 is not set
# CONFIG_BACKLIGHT_88PM860X is not set
# CONFIG_BACKLIGHT_AAT2870 is not set
# CONFIG_BACKLIGHT_LM3630A is not set
# CONFIG_BACKLIGHT_LM3639 is not set
# CONFIG_BACKLIGHT_LP855X is not set
# CONFIG_BACKLIGHT_LP8788 is not set
# CONFIG_BACKLIGHT_PANDORA is not set
# CONFIG_BACKLIGHT_AS3711 is not set
# CONFIG_BACKLIGHT_GPIO is not set
# CONFIG_BACKLIGHT_LV5207LP is not set
# CONFIG_BACKLIGHT_BD6107 is not set
# CONFIG_VGASTATE is not set

#
# Console display driver support
#
CONFIG_VGA_CONSOLE=y
# CONFIG_VGACON_SOFT_SCROLLBACK is not set
CONFIG_DUMMY_CONSOLE=y
CONFIG_DUMMY_CONSOLE_COLUMNS=80
CONFIG_DUMMY_CONSOLE_ROWS=25
CONFIG_FRAMEBUFFER_CONSOLE=y
CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y
CONFIG_FRAMEBUFFER_CONSOLE_ROTATION=y
# CONFIG_LOGO is not set
# CONFIG_SOUND is not set

#
# HID support
#
CONFIG_HID=m
CONFIG_HID_BATTERY_STRENGTH=y
CONFIG_HIDRAW=y
# CONFIG_UHID is not set
CONFIG_HID_GENERIC=m

#
# Special HID drivers
#
# CONFIG_HID_A4TECH is not set
# CONFIG_HID_ACRUX is not set
# CONFIG_HID_APPLE is not set
# CONFIG_HID_AUREAL is not set
# CONFIG_HID_BELKIN is not set
# CONFIG_HID_CHERRY is not set
# CONFIG_HID_CHICONY is not set
# CONFIG_HID_CORSAIR is not set
# CONFIG_HID_CMEDIA is not set
# CONFIG_HID_CYPRESS is not set
# CONFIG_HID_DRAGONRISE is not set
# CONFIG_HID_EMS_FF is not set
# CONFIG_HID_ELECOM is not set
# CONFIG_HID_EZKEY is not set
# CONFIG_HID_GEMBIRD is not set
# CONFIG_HID_GFRM is not set
# CONFIG_HID_KEYTOUCH is not set
# CONFIG_HID_KYE is not set
# CONFIG_HID_WALTOP is not set
# CONFIG_HID_GYRATION is not set
# CONFIG_HID_ICADE is not set
# CONFIG_HID_TWINHAN is not set
# CONFIG_HID_KENSINGTON is not set
# CONFIG_HID_LCPOWER is not set
# CONFIG_HID_LED is not set
# CONFIG_HID_LENOVO is not set
# CONFIG_HID_LOGITECH is not set
# CONFIG_HID_MAGICMOUSE is not set
# CONFIG_HID_MAYFLASH is not set
# CONFIG_HID_MICROSOFT is not set
# CONFIG_HID_MONTEREY is not set
# CONFIG_HID_MULTITOUCH is not set
# CONFIG_HID_ORTEK is not set
# CONFIG_HID_PANTHERLORD is not set
# CONFIG_HID_PETALYNX is not set
# CONFIG_HID_PICOLCD is not set
# CONFIG_HID_PLANTRONICS is not set
# CONFIG_HID_PRIMAX is not set
# CONFIG_HID_SAITEK is not set
# CONFIG_HID_SAMSUNG is not set
# CONFIG_HID_SPEEDLINK is not set
# CONFIG_HID_STEELSERIES is not set
# CONFIG_HID_SUNPLUS is not set
# CONFIG_HID_RMI is not set
# CONFIG_HID_GREENASIA is not set
CONFIG_HID_HYPERV_MOUSE=m
# CONFIG_HID_SMARTJOYPLUS is not set
# CONFIG_HID_TIVO is not set
# CONFIG_HID_TOPSEED is not set
# CONFIG_HID_THINGM is not set
# CONFIG_HID_THRUSTMASTER is not set
# CONFIG_HID_UDRAW_PS3 is not set
# CONFIG_HID_WACOM is not set
# CONFIG_HID_WIIMOTE is not set
# CONFIG_HID_XINMO is not set
# CONFIG_HID_ZEROPLUS is not set
# CONFIG_HID_ZYDACRON is not set
# CONFIG_HID_SENSOR_HUB is not set
# CONFIG_HID_ALPS is not set

#
# USB HID support
#
# CONFIG_USB_HID is not set
CONFIG_HID_PID=y

#
# USB HID Boot Protocol drivers
#
# CONFIG_USB_KBD is not set
# CONFIG_USB_MOUSE is not set

#
# I2C HID support
#
# CONFIG_I2C_HID is not set

#
# Intel ISH HID support
#
# CONFIG_INTEL_ISH_HID is not set
CONFIG_USB_OHCI_LITTLE_ENDIAN=y
CONFIG_USB_SUPPORT=y
CONFIG_USB_COMMON=y
CONFIG_USB_ARCH_HAS_HCD=y
CONFIG_USB=y
CONFIG_USB_ANNOUNCE_NEW_DEVICES=y

#
# Miscellaneous USB options
#
CONFIG_USB_DEFAULT_PERSIST=y
CONFIG_USB_DYNAMIC_MINORS=y
# CONFIG_USB_OTG is not set
# CONFIG_USB_OTG_WHITELIST is not set
# CONFIG_USB_OTG_BLACKLIST_HUB is not set
# CONFIG_USB_LEDS_TRIGGER_USBPORT is not set
# CONFIG_USB_MON is not set
# CONFIG_USB_WUSB_CBAF is not set

#
# USB Host Controller Drivers
#
# CONFIG_USB_C67X00_HCD is not set
CONFIG_USB_XHCI_HCD=y
CONFIG_USB_XHCI_PCI=y
# CONFIG_USB_XHCI_PLATFORM is not set
CONFIG_USB_EHCI_HCD=y
CONFIG_USB_EHCI_ROOT_HUB_TT=y
CONFIG_USB_EHCI_TT_NEWSCHED=y
CONFIG_USB_EHCI_PCI=y
CONFIG_USB_EHCI_HCD_PLATFORM=y
# CONFIG_USB_OXU210HP_HCD is not set
# CONFIG_USB_ISP116X_HCD is not set
# CONFIG_USB_ISP1362_HCD is not set
# CONFIG_USB_FOTG210_HCD is not set
# CONFIG_USB_MAX3421_HCD is not set
CONFIG_USB_OHCI_HCD=y
CONFIG_USB_OHCI_HCD_PCI=y
CONFIG_USB_OHCI_HCD_PLATFORM=y
CONFIG_USB_UHCI_HCD=y
# CONFIG_USB_SL811_HCD is not set
# CONFIG_USB_R8A66597_HCD is not set
# CONFIG_USB_HCD_TEST_MODE is not set

#
# USB Device Class drivers
#
# CONFIG_USB_ACM is not set
# CONFIG_USB_PRINTER is not set
# CONFIG_USB_WDM is not set
# CONFIG_USB_TMC is not set

#
# NOTE: USB_STORAGE depends on SCSI but BLK_DEV_SD may
#

#
# also be needed; see USB_STORAGE Help for more info
#
# CONFIG_USB_STORAGE is not set

#
# USB Imaging devices
#
# CONFIG_USB_MDC800 is not set
# CONFIG_USB_MICROTEK is not set
# CONFIG_USBIP_CORE is not set
# CONFIG_USB_MUSB_HDRC is not set
# CONFIG_USB_DWC3 is not set
CONFIG_USB_DWC2=y
CONFIG_USB_DWC2_HOST=y

#
# Gadget/Dual-role mode requires USB Gadget support to be enabled
#
# CONFIG_USB_DWC2_PCI is not set
# CONFIG_USB_DWC2_DEBUG is not set
# CONFIG_USB_DWC2_TRACK_MISSED_SOFS is not set
# CONFIG_USB_CHIPIDEA is not set
# CONFIG_USB_ISP1760 is not set

#
# USB port drivers
#
# CONFIG_USB_SERIAL is not set

#
# USB Miscellaneous drivers
#
# CONFIG_USB_EMI62 is not set
# CONFIG_USB_EMI26 is not set
# CONFIG_USB_ADUTUX is not set
# CONFIG_USB_SEVSEG is not set
# CONFIG_USB_RIO500 is not set
# CONFIG_USB_LEGOTOWER is not set
# CONFIG_USB_LCD is not set
# CONFIG_USB_CYPRESS_CY7C63 is not set
# CONFIG_USB_CYTHERM is not set
# CONFIG_USB_IDMOUSE is not set
# CONFIG_USB_FTDI_ELAN is not set
# CONFIG_USB_APPLEDISPLAY is not set
# CONFIG_USB_SISUSBVGA is not set
# CONFIG_USB_LD is not set
# CONFIG_USB_TRANCEVIBRATOR is not set
# CONFIG_USB_IOWARRIOR is not set
# CONFIG_USB_TEST is not set
# CONFIG_USB_EHSET_TEST_FIXTURE is not set
# CONFIG_USB_ISIGHTFW is not set
# CONFIG_USB_YUREX is not set
# CONFIG_USB_EZUSB_FX2 is not set
# CONFIG_USB_HUB_USB251XB is not set
# CONFIG_USB_HSIC_USB3503 is not set
# CONFIG_USB_HSIC_USB4604 is not set
# CONFIG_USB_LINK_LAYER_TEST is not set
# CONFIG_USB_CHAOSKEY is not set
# CONFIG_UCSI is not set

#
# USB Physical Layer drivers
#
# CONFIG_USB_PHY is not set
# CONFIG_NOP_USB_XCEIV is not set
# CONFIG_USB_GPIO_VBUS is not set
# CONFIG_USB_ISP1301 is not set
# CONFIG_USB_GADGET is not set
CONFIG_USB_LED_TRIG=y
# CONFIG_USB_ULPI_BUS is not set
# CONFIG_UWB is not set
CONFIG_MMC=y
# CONFIG_MMC_DEBUG is not set
# CONFIG_MMC_BLOCK is not set
# CONFIG_SDIO_UART is not set
# CONFIG_MMC_TEST is not set

#
# MMC/SD/SDIO Host Controller Drivers
#
# CONFIG_MMC_SDHCI is not set
# CONFIG_MMC_WBSD is not set
# CONFIG_MMC_TIFM_SD is not set
# CONFIG_MMC_SPI is not set
# CONFIG_MMC_CB710 is not set
# CONFIG_MMC_VIA_SDMMC is not set
# CONFIG_MMC_VUB300 is not set
# CONFIG_MMC_USHC is not set
# CONFIG_MMC_USDHI6ROL0 is not set
# CONFIG_MMC_TOSHIBA_PCI is not set
# CONFIG_MMC_MTK is not set
# CONFIG_MEMSTICK is not set
CONFIG_NEW_LEDS=y
CONFIG_LEDS_CLASS=y
# CONFIG_LEDS_CLASS_FLASH is not set
# CONFIG_LEDS_BRIGHTNESS_HW_CHANGED is not set

#
# LED drivers
#
# CONFIG_LEDS_88PM860X is not set
# CONFIG_LEDS_LM3530 is not set
# CONFIG_LEDS_LM3642 is not set
# CONFIG_LEDS_PCA9532 is not set
# CONFIG_LEDS_GPIO is not set
# CONFIG_LEDS_LP3944 is not set
# CONFIG_LEDS_LP3952 is not set
# CONFIG_LEDS_LP5521 is not set
# CONFIG_LEDS_LP5523 is not set
# CONFIG_LEDS_LP5562 is not set
# CONFIG_LEDS_LP8501 is not set
# CONFIG_LEDS_LP8788 is not set
# CONFIG_LEDS_LP8860 is not set
# CONFIG_LEDS_CLEVO_MAIL is not set
# CONFIG_LEDS_PCA955X is not set
# CONFIG_LEDS_PCA963X is not set
# CONFIG_LEDS_WM831X_STATUS is not set
# CONFIG_LEDS_WM8350 is not set
# CONFIG_LEDS_DA903X is not set
# CONFIG_LEDS_DA9052 is not set
# CONFIG_LEDS_DAC124S085 is not set
# CONFIG_LEDS_PWM is not set
# CONFIG_LEDS_REGULATOR is not set
# CONFIG_LEDS_BD2802 is not set
# CONFIG_LEDS_INTEL_SS4200 is not set
# CONFIG_LEDS_LT3593 is not set
# CONFIG_LEDS_ADP5520 is not set
# CONFIG_LEDS_TCA6507 is not set
# CONFIG_LEDS_TLC591XX is not set
# CONFIG_LEDS_MAX8997 is not set
# CONFIG_LEDS_LM355x is not set

#
# LED driver for blink(1) USB RGB LED is under Special HID drivers (HID_THINGM)
#
# CONFIG_LEDS_BLINKM is not set
# CONFIG_LEDS_MLXCPLD is not set
# CONFIG_LEDS_USER is not set
# CONFIG_LEDS_NIC78BX is not set

#
# LED Triggers
#
CONFIG_LEDS_TRIGGERS=y
# CONFIG_LEDS_TRIGGER_TIMER is not set
# CONFIG_LEDS_TRIGGER_ONESHOT is not set
CONFIG_LEDS_TRIGGER_DISK=y
# CONFIG_LEDS_TRIGGER_HEARTBEAT is not set
# CONFIG_LEDS_TRIGGER_BACKLIGHT is not set
CONFIG_LEDS_TRIGGER_CPU=y
# CONFIG_LEDS_TRIGGER_GPIO is not set
# CONFIG_LEDS_TRIGGER_DEFAULT_ON is not set

#
# iptables trigger is under Netfilter config (LED target)
#
# CONFIG_LEDS_TRIGGER_TRANSIENT is not set
# CONFIG_LEDS_TRIGGER_CAMERA is not set
CONFIG_LEDS_TRIGGER_PANIC=y
# CONFIG_ACCESSIBILITY is not set
# CONFIG_INFINIBAND is not set
CONFIG_EDAC_ATOMIC_SCRUB=y
CONFIG_EDAC_SUPPORT=y
CONFIG_EDAC=y
# CONFIG_EDAC_LEGACY_SYSFS is not set
# CONFIG_EDAC_DEBUG is not set
# CONFIG_EDAC_DECODE_MCE is not set
CONFIG_EDAC_MM_EDAC=m
# CONFIG_EDAC_E752X is not set
# CONFIG_EDAC_I82975X is not set
# CONFIG_EDAC_I3000 is not set
# CONFIG_EDAC_I3200 is not set
# CONFIG_EDAC_IE31200 is not set
# CONFIG_EDAC_X38 is not set
# CONFIG_EDAC_I5400 is not set
# CONFIG_EDAC_I7CORE is not set
# CONFIG_EDAC_I5000 is not set
# CONFIG_EDAC_I5100 is not set
# CONFIG_EDAC_I7300 is not set
CONFIG_EDAC_SBRIDGE=m
# CONFIG_EDAC_SKX is not set
CONFIG_RTC_LIB=y
CONFIG_RTC_MC146818_LIB=y
CONFIG_RTC_CLASS=y
CONFIG_RTC_HCTOSYS=y
CONFIG_RTC_HCTOSYS_DEVICE="rtc0"
CONFIG_RTC_SYSTOHC=y
CONFIG_RTC_SYSTOHC_DEVICE="rtc0"
# CONFIG_RTC_DEBUG is not set

#
# RTC interfaces
#
CONFIG_RTC_INTF_SYSFS=y
CONFIG_RTC_INTF_PROC=y
CONFIG_RTC_INTF_DEV=y
# CONFIG_RTC_INTF_DEV_UIE_EMUL is not set
# CONFIG_RTC_DRV_TEST is not set

#
# I2C RTC drivers
#
# CONFIG_RTC_DRV_88PM860X is not set
# CONFIG_RTC_DRV_ABB5ZES3 is not set
# CONFIG_RTC_DRV_ABX80X is not set
# CONFIG_RTC_DRV_DS1307 is not set
# CONFIG_RTC_DRV_DS1374 is not set
# CONFIG_RTC_DRV_DS1672 is not set
# CONFIG_RTC_DRV_LP8788 is not set
# CONFIG_RTC_DRV_MAX6900 is not set
# CONFIG_RTC_DRV_MAX8925 is not set
# CONFIG_RTC_DRV_MAX8998 is not set
# CONFIG_RTC_DRV_MAX8997 is not set
# CONFIG_RTC_DRV_RS5C372 is not set
# CONFIG_RTC_DRV_ISL1208 is not set
# CONFIG_RTC_DRV_ISL12022 is not set
# CONFIG_RTC_DRV_X1205 is not set
# CONFIG_RTC_DRV_PCF8523 is not set
# CONFIG_RTC_DRV_PCF85063 is not set
# CONFIG_RTC_DRV_PCF8563 is not set
# CONFIG_RTC_DRV_PCF8583 is not set
# CONFIG_RTC_DRV_M41T80 is not set
# CONFIG_RTC_DRV_BQ32K is not set
# CONFIG_RTC_DRV_PALMAS is not set
# CONFIG_RTC_DRV_TPS6586X is not set
# CONFIG_RTC_DRV_TPS65910 is not set
# CONFIG_RTC_DRV_TPS80031 is not set
# CONFIG_RTC_DRV_RC5T583 is not set
# CONFIG_RTC_DRV_S35390A is not set
# CONFIG_RTC_DRV_FM3130 is not set
# CONFIG_RTC_DRV_RX8010 is not set
# CONFIG_RTC_DRV_RX8581 is not set
# CONFIG_RTC_DRV_RX8025 is not set
# CONFIG_RTC_DRV_EM3027 is not set
# CONFIG_RTC_DRV_RV8803 is not set
# CONFIG_RTC_DRV_S5M is not set

#
# SPI RTC drivers
#
# CONFIG_RTC_DRV_M41T93 is not set
# CONFIG_RTC_DRV_M41T94 is not set
# CONFIG_RTC_DRV_DS1302 is not set
# CONFIG_RTC_DRV_DS1305 is not set
# CONFIG_RTC_DRV_DS1343 is not set
# CONFIG_RTC_DRV_DS1347 is not set
# CONFIG_RTC_DRV_DS1390 is not set
# CONFIG_RTC_DRV_MAX6916 is not set
# CONFIG_RTC_DRV_R9701 is not set
# CONFIG_RTC_DRV_RX4581 is not set
# CONFIG_RTC_DRV_RX6110 is not set
# CONFIG_RTC_DRV_RS5C348 is not set
# CONFIG_RTC_DRV_MAX6902 is not set
# CONFIG_RTC_DRV_PCF2123 is not set
# CONFIG_RTC_DRV_MCP795 is not set
CONFIG_RTC_I2C_AND_SPI=y

#
# SPI and I2C RTC drivers
#
# CONFIG_RTC_DRV_DS3232 is not set
# CONFIG_RTC_DRV_PCF2127 is not set
# CONFIG_RTC_DRV_RV3029C2 is not set

#
# Platform RTC drivers
#
CONFIG_RTC_DRV_CMOS=y
# CONFIG_RTC_DRV_DS1286 is not set
# CONFIG_RTC_DRV_DS1511 is not set
# CONFIG_RTC_DRV_DS1553 is not set
# CONFIG_RTC_DRV_DS1685_FAMILY is not set
# CONFIG_RTC_DRV_DS1742 is not set
# CONFIG_RTC_DRV_DS2404 is not set
# CONFIG_RTC_DRV_DA9052 is not set
# CONFIG_RTC_DRV_DA9055 is not set
# CONFIG_RTC_DRV_DA9063 is not set
# CONFIG_RTC_DRV_STK17TA8 is not set
# CONFIG_RTC_DRV_M48T86 is not set
# CONFIG_RTC_DRV_M48T35 is not set
# CONFIG_RTC_DRV_M48T59 is not set
# CONFIG_RTC_DRV_MSM6242 is not set
# CONFIG_RTC_DRV_BQ4802 is not set
# CONFIG_RTC_DRV_RP5C01 is not set
# CONFIG_RTC_DRV_V3020 is not set
# CONFIG_RTC_DRV_WM831X is not set
# CONFIG_RTC_DRV_WM8350 is not set
# CONFIG_RTC_DRV_AB3100 is not set

#
# on-CPU RTC drivers
#
# CONFIG_RTC_DRV_PCAP is not set

#
# HID Sensor RTC drivers
#
CONFIG_DMADEVICES=y
# CONFIG_DMADEVICES_DEBUG is not set

#
# DMA Devices
#
CONFIG_DMA_ENGINE=y
CONFIG_DMA_ACPI=y
# CONFIG_INTEL_IDMA64 is not set
# CONFIG_INTEL_IOATDMA is not set
# CONFIG_QCOM_HIDMA_MGMT is not set
# CONFIG_QCOM_HIDMA is not set
CONFIG_DW_DMAC_CORE=y
# CONFIG_DW_DMAC is not set
CONFIG_DW_DMAC_PCI=y

#
# DMA Clients
#
CONFIG_ASYNC_TX_DMA=y
# CONFIG_DMATEST is not set

#
# DMABUF options
#
CONFIG_SYNC_FILE=y
# CONFIG_SW_SYNC is not set
CONFIG_AUXDISPLAY=y
# CONFIG_IMG_ASCII_LCD is not set
CONFIG_UIO=m
# CONFIG_UIO_CIF is not set
# CONFIG_UIO_PDRV_GENIRQ is not set
# CONFIG_UIO_DMEM_GENIRQ is not set
# CONFIG_UIO_AEC is not set
# CONFIG_UIO_SERCOS3 is not set
# CONFIG_UIO_PCI_GENERIC is not set
# CONFIG_UIO_NETX is not set
# CONFIG_UIO_PRUSS is not set
# CONFIG_UIO_MF624 is not set
# CONFIG_UIO_HV_GENERIC is not set
# CONFIG_VFIO is not set
CONFIG_VIRT_DRIVERS=y
CONFIG_VIRTIO=y

#
# Virtio drivers
#
CONFIG_VIRTIO_PCI=y
CONFIG_VIRTIO_PCI_LEGACY=y
CONFIG_VIRTIO_BALLOON=y
# CONFIG_VIRTIO_INPUT is not set
CONFIG_VIRTIO_MMIO=y
CONFIG_VIRTIO_MMIO_CMDLINE_DEVICES=y

#
# Microsoft Hyper-V guest support
#
CONFIG_HYPERV=m
CONFIG_HYPERV_UTILS=m
# CONFIG_HYPERV_BALLOON is not set
CONFIG_STAGING=y
# CONFIG_COMEDI is not set
# CONFIG_RTS5208 is not set
# CONFIG_FB_SM750 is not set
# CONFIG_FB_XGI is not set

#
# Speakup console speech
#
# CONFIG_SPEAKUP is not set
CONFIG_STAGING_MEDIA=y

#
# Android
#
# CONFIG_LTE_GDM724X is not set
# CONFIG_LNET is not set
# CONFIG_DGNC is not set
# CONFIG_GS_FPGABOOT is not set
CONFIG_CRYPTO_SKEIN=y
CONFIG_UNISYSSPAR=y
# CONFIG_UNISYS_VISORBUS is not set
# CONFIG_FB_TFT is not set
# CONFIG_MOST is not set
# CONFIG_KS7010 is not set
# CONFIG_GREYBUS is not set
CONFIG_X86_PLATFORM_DEVICES=y
# CONFIG_ACERHDF is not set
# CONFIG_ASUS_LAPTOP is not set
# CONFIG_DELL_LAPTOP is not set
# CONFIG_DELL_SMO8800 is not set
# CONFIG_FUJITSU_LAPTOP is not set
# CONFIG_FUJITSU_TABLET is not set
# CONFIG_HP_ACCEL is not set
# CONFIG_HP_WIRELESS is not set
# CONFIG_PANASONIC_LAPTOP is not set
# CONFIG_THINKPAD_ACPI is not set
# CONFIG_SENSORS_HDAPS is not set
# CONFIG_INTEL_MENLOW is not set
# CONFIG_EEEPC_LAPTOP is not set
# CONFIG_ASUS_WIRELESS is not set
# CONFIG_ACPI_WMI is not set
# CONFIG_TOPSTAR_LAPTOP is not set
# CONFIG_TOSHIBA_BT_RFKILL is not set
# CONFIG_TOSHIBA_HAPS is not set
# CONFIG_ACPI_CMPC is not set
# CONFIG_INTEL_HID_EVENT is not set
# CONFIG_INTEL_VBTN is not set
# CONFIG_INTEL_IPS is not set
CONFIG_INTEL_PMC_CORE=y
# CONFIG_IBM_RTL is not set
# CONFIG_SAMSUNG_LAPTOP is not set
# CONFIG_SAMSUNG_Q10 is not set
# CONFIG_APPLE_GMUX is not set
# CONFIG_INTEL_RST is not set
# CONFIG_INTEL_SMARTCONNECT is not set
# CONFIG_PVPANIC is not set
# CONFIG_INTEL_PMC_IPC is not set
# CONFIG_SURFACE_PRO3_BUTTON is not set
# CONFIG_INTEL_PUNIT_IPC is not set
# CONFIG_MLX_PLATFORM is not set
# CONFIG_MLX_CPLD_PLATFORM is not set
# CONFIG_INTEL_TURBO_MAX_3 is not set
# CONFIG_SILEAD_DMI is not set
CONFIG_PMC_ATOM=y
CONFIG_CHROME_PLATFORMS=y
# CONFIG_CHROMEOS_LAPTOP is not set
# CONFIG_CHROMEOS_PSTORE is not set
# CONFIG_CROS_KBD_LED_BACKLIGHT is not set
CONFIG_CLKDEV_LOOKUP=y
CONFIG_HAVE_CLK_PREPARE=y
CONFIG_COMMON_CLK=y

#
# Common Clock Framework
#
# CONFIG_COMMON_CLK_WM831X is not set
# CONFIG_COMMON_CLK_SI5351 is not set
# CONFIG_COMMON_CLK_CDCE706 is not set
# CONFIG_COMMON_CLK_CS2000_CP is not set
# CONFIG_COMMON_CLK_S2MPS11 is not set
# CONFIG_CLK_TWL6040 is not set
# CONFIG_COMMON_CLK_NXP is not set
# CONFIG_COMMON_CLK_PALMAS is not set
# CONFIG_COMMON_CLK_PWM is not set
# CONFIG_COMMON_CLK_PXA is not set
# CONFIG_COMMON_CLK_PIC32 is not set

#
# Hardware Spinlock drivers
#

#
# Clock Source drivers
#
CONFIG_CLKEVT_I8253=y
CONFIG_I8253_LOCK=y
CONFIG_CLKBLD_I8253=y
# CONFIG_ATMEL_PIT is not set
# CONFIG_SH_TIMER_CMT is not set
# CONFIG_SH_TIMER_MTU2 is not set
# CONFIG_SH_TIMER_TMU is not set
# CONFIG_EM_TIMER_STI is not set
CONFIG_MAILBOX=y
CONFIG_PCC=y
# CONFIG_ALTERA_MBOX is not set
CONFIG_IOMMU_API=y
CONFIG_IOMMU_SUPPORT=y

#
# Generic IOMMU Pagetable Support
#
CONFIG_IOMMU_IOVA=y
CONFIG_AMD_IOMMU=y
# CONFIG_AMD_IOMMU_V2 is not set
CONFIG_DMAR_TABLE=y
CONFIG_INTEL_IOMMU=y
CONFIG_INTEL_IOMMU_SVM=y
# CONFIG_INTEL_IOMMU_DEFAULT_ON is not set
CONFIG_INTEL_IOMMU_FLOPPY_WA=y
CONFIG_IRQ_REMAP=y

#
# Remoteproc drivers
#
# CONFIG_REMOTEPROC is not set

#
# Rpmsg drivers
#

#
# SOC (System On Chip) specific Drivers
#

#
# Broadcom SoC drivers
#
# CONFIG_SUNXI_SRAM is not set
CONFIG_SOC_TI=y
# CONFIG_SOC_ZTE is not set
CONFIG_PM_DEVFREQ=y

#
# DEVFREQ Governors
#
CONFIG_DEVFREQ_GOV_SIMPLE_ONDEMAND=y
CONFIG_DEVFREQ_GOV_PERFORMANCE=y
CONFIG_DEVFREQ_GOV_POWERSAVE=y
CONFIG_DEVFREQ_GOV_USERSPACE=y
CONFIG_DEVFREQ_GOV_PASSIVE=y

#
# DEVFREQ Drivers
#
CONFIG_PM_DEVFREQ_EVENT=y
CONFIG_EXTCON=y

#
# Extcon Device Drivers
#
# CONFIG_EXTCON_GPIO is not set
# CONFIG_EXTCON_INTEL_INT3496 is not set
# CONFIG_EXTCON_MAX14577 is not set
# CONFIG_EXTCON_MAX3355 is not set
# CONFIG_EXTCON_MAX77693 is not set
# CONFIG_EXTCON_MAX77843 is not set
# CONFIG_EXTCON_MAX8997 is not set
# CONFIG_EXTCON_PALMAS is not set
# CONFIG_EXTCON_QCOM_SPMI_MISC is not set
# CONFIG_EXTCON_RT8973A is not set
# CONFIG_EXTCON_SM5502 is not set
# CONFIG_EXTCON_USB_GPIO is not set
CONFIG_MEMORY=y
# CONFIG_IIO is not set
# CONFIG_NTB is not set
CONFIG_VME_BUS=y

#
# VME Bridge Drivers
#
# CONFIG_VME_CA91CX42 is not set
# CONFIG_VME_TSI148 is not set
# CONFIG_VME_FAKE is not set

#
# VME Board Drivers
#
# CONFIG_VMIVME_7805 is not set

#
# VME Device Drivers
#
# CONFIG_VME_USER is not set
# CONFIG_VME_PIO2 is not set
CONFIG_PWM=y
CONFIG_PWM_SYSFS=y
CONFIG_PWM_CRC=y
# CONFIG_PWM_LPSS_PCI is not set
# CONFIG_PWM_LPSS_PLATFORM is not set
# CONFIG_PWM_PCA9685 is not set
# CONFIG_PWM_TWL is not set
# CONFIG_PWM_TWL_LED is not set
CONFIG_ARM_GIC_MAX_NR=1
# CONFIG_IPACK_BUS is not set
CONFIG_RESET_CONTROLLER=y
# CONFIG_RESET_ATH79 is not set
# CONFIG_RESET_BERLIN is not set
# CONFIG_RESET_LPC18XX is not set
# CONFIG_RESET_MESON is not set
# CONFIG_RESET_PISTACHIO is not set
# CONFIG_RESET_SOCFPGA is not set
# CONFIG_RESET_STM32 is not set
# CONFIG_RESET_SUNXI is not set
# CONFIG_TI_SYSCON_RESET is not set
# CONFIG_RESET_ZYNQ is not set
# CONFIG_RESET_TEGRA_BPMP is not set
# CONFIG_FMC is not set

#
# PHY Subsystem
#
CONFIG_GENERIC_PHY=y
# CONFIG_PHY_PXA_28NM_HSIC is not set
# CONFIG_PHY_PXA_28NM_USB2 is not set
# CONFIG_BCM_KONA_USB2_PHY is not set
# CONFIG_PHY_SAMSUNG_USB2 is not set
CONFIG_POWERCAP=y
# CONFIG_INTEL_RAPL is not set
# CONFIG_MCB is not set

#
# Performance monitor support
#
CONFIG_RAS=y
# CONFIG_MCE_AMD_INJ is not set
# CONFIG_THUNDERBOLT is not set

#
# Android
#
# CONFIG_ANDROID is not set
CONFIG_LIBNVDIMM=y
# CONFIG_BLK_DEV_PMEM is not set
# CONFIG_ND_BLK is not set
CONFIG_ND_CLAIM=y
CONFIG_BTT=y
CONFIG_NVDIMM_PFN=y
CONFIG_NVDIMM_DAX=y
# CONFIG_DEV_DAX is not set
# CONFIG_NVMEM is not set
# CONFIG_STM is not set
# CONFIG_INTEL_TH is not set

#
# FPGA Configuration Support
#
# CONFIG_FPGA is not set

#
# FSI support
#
# CONFIG_FSI is not set

#
# Firmware Drivers
#
CONFIG_EDD=y
CONFIG_EDD_OFF=y
CONFIG_FIRMWARE_MEMMAP=y
# CONFIG_DELL_RBU is not set
# CONFIG_DCDBAS is not set
CONFIG_DMIID=y
# CONFIG_DMI_SYSFS is not set
CONFIG_DMI_SCAN_MACHINE_NON_EFI_FALLBACK=y
CONFIG_ISCSI_IBFT_FIND=y
# CONFIG_ISCSI_IBFT is not set
# CONFIG_FW_CFG_SYSFS is not set
# CONFIG_GOOGLE_FIRMWARE is not set

#
# EFI (Extensible Firmware Interface) Support
#
CONFIG_EFI_VARS=y
CONFIG_EFI_ESRT=y
# CONFIG_EFI_VARS_PSTORE is not set
CONFIG_EFI_RUNTIME_MAP=y
# CONFIG_EFI_FAKE_MEMMAP is not set
CONFIG_EFI_RUNTIME_WRAPPERS=y
# CONFIG_EFI_BOOTLOADER_CONTROL is not set
# CONFIG_EFI_CAPSULE_LOADER is not set
# CONFIG_EFI_TEST is not set
CONFIG_APPLE_PROPERTIES=y
CONFIG_UEFI_CPER=y
CONFIG_EFI_DEV_PATH_PARSER=y

#
# Tegra firmware driver
#

#
# File systems
#
CONFIG_DCACHE_WORD_ACCESS=y
CONFIG_FS_IOMAP=y
# CONFIG_EXT2_FS is not set
# CONFIG_EXT3_FS is not set
CONFIG_EXT4_FS=y
CONFIG_EXT4_USE_FOR_EXT2=y
CONFIG_EXT4_FS_POSIX_ACL=y
CONFIG_EXT4_FS_SECURITY=y
CONFIG_EXT4_ENCRYPTION=y
CONFIG_EXT4_FS_ENCRYPTION=y
# CONFIG_EXT4_DEBUG is not set
CONFIG_JBD2=y
# CONFIG_JBD2_DEBUG is not set
CONFIG_FS_MBCACHE=y
# CONFIG_REISERFS_FS is not set
# CONFIG_JFS_FS is not set
# CONFIG_XFS_FS is not set
# CONFIG_GFS2_FS is not set
# CONFIG_OCFS2_FS is not set
# CONFIG_BTRFS_FS is not set
# CONFIG_NILFS2_FS is not set
# CONFIG_F2FS_FS is not set
CONFIG_FS_DAX=y
CONFIG_FS_DAX_PMD=y
CONFIG_FS_POSIX_ACL=y
CONFIG_EXPORTFS=y
CONFIG_EXPORTFS_BLOCK_OPS=y
CONFIG_FILE_LOCKING=y
CONFIG_MANDATORY_FILE_LOCKING=y
CONFIG_FS_ENCRYPTION=y
CONFIG_FSNOTIFY=y
CONFIG_DNOTIFY=y
CONFIG_INOTIFY_USER=y
CONFIG_FANOTIFY=y
CONFIG_FANOTIFY_ACCESS_PERMISSIONS=y
CONFIG_QUOTA=y
CONFIG_QUOTA_NETLINK_INTERFACE=y
# CONFIG_PRINT_QUOTA_WARNING is not set
# CONFIG_QUOTA_DEBUG is not set
# CONFIG_QFMT_V1 is not set
# CONFIG_QFMT_V2 is not set
CONFIG_QUOTACTL=y
CONFIG_QUOTACTL_COMPAT=y
CONFIG_AUTOFS4_FS=m
CONFIG_FUSE_FS=y
# CONFIG_CUSE is not set
# CONFIG_OVERLAY_FS is not set

#
# Caches
#
# CONFIG_FSCACHE is not set

#
# CD-ROM/DVD Filesystems
#
# CONFIG_ISO9660_FS is not set
# CONFIG_UDF_FS is not set

#
# DOS/FAT/NT Filesystems
#
CONFIG_FAT_FS=y
# CONFIG_MSDOS_FS is not set
CONFIG_VFAT_FS=y
CONFIG_FAT_DEFAULT_CODEPAGE=437
CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1"
# CONFIG_FAT_DEFAULT_UTF8 is not set
# CONFIG_NTFS_FS is not set

#
# Pseudo filesystems
#
CONFIG_PROC_FS=y
CONFIG_PROC_KCORE=y
CONFIG_PROC_VMCORE=y
CONFIG_PROC_SYSCTL=y
CONFIG_PROC_PAGE_MONITOR=y
CONFIG_PROC_CHILDREN=y
CONFIG_KERNFS=y
CONFIG_SYSFS=y
CONFIG_TMPFS=y
CONFIG_TMPFS_POSIX_ACL=y
CONFIG_TMPFS_XATTR=y
CONFIG_HUGETLBFS=y
CONFIG_HUGETLB_PAGE=y
CONFIG_ARCH_HAS_GIGANTIC_PAGE=y
CONFIG_CONFIGFS_FS=m
CONFIG_EFIVAR_FS=y
CONFIG_MISC_FILESYSTEMS=y
# CONFIG_ORANGEFS_FS is not set
# CONFIG_ADFS_FS is not set
# CONFIG_AFFS_FS is not set
CONFIG_ECRYPT_FS=y
CONFIG_ECRYPT_FS_MESSAGING=y
# CONFIG_HFS_FS is not set
# CONFIG_HFSPLUS_FS is not set
# CONFIG_BEFS_FS is not set
# CONFIG_BFS_FS is not set
# CONFIG_EFS_FS is not set
# CONFIG_CRAMFS is not set
CONFIG_SQUASHFS=y
# CONFIG_SQUASHFS_FILE_CACHE is not set
CONFIG_SQUASHFS_FILE_DIRECT=y
CONFIG_SQUASHFS_DECOMP_SINGLE=y
# CONFIG_SQUASHFS_DECOMP_MULTI is not set
# CONFIG_SQUASHFS_DECOMP_MULTI_PERCPU is not set
CONFIG_SQUASHFS_XATTR=y
CONFIG_SQUASHFS_ZLIB=y
CONFIG_SQUASHFS_LZ4=y
CONFIG_SQUASHFS_LZO=y
CONFIG_SQUASHFS_XZ=y
# CONFIG_SQUASHFS_4K_DEVBLK_SIZE is not set
# CONFIG_SQUASHFS_EMBEDDED is not set
CONFIG_SQUASHFS_FRAGMENT_CACHE_SIZE=3
# CONFIG_VXFS_FS is not set
# CONFIG_MINIX_FS is not set
# CONFIG_OMFS_FS is not set
# CONFIG_HPFS_FS is not set
# CONFIG_QNX4FS_FS is not set
# CONFIG_QNX6FS_FS is not set
# CONFIG_ROMFS_FS is not set
CONFIG_PSTORE=y
CONFIG_PSTORE_ZLIB_COMPRESS=y
# CONFIG_PSTORE_LZO_COMPRESS is not set
# CONFIG_PSTORE_LZ4_COMPRESS is not set
# CONFIG_PSTORE_CONSOLE is not set
# CONFIG_PSTORE_PMSG is not set
# CONFIG_PSTORE_FTRACE is not set
# CONFIG_PSTORE_RAM is not set
# CONFIG_SYSV_FS is not set
# CONFIG_UFS_FS is not set
CONFIG_NETWORK_FILESYSTEMS=y
# CONFIG_NFS_FS is not set
# CONFIG_NFSD is not set
# CONFIG_CEPH_FS is not set
# CONFIG_CIFS is not set
# CONFIG_NCP_FS is not set
# CONFIG_CODA_FS is not set
# CONFIG_AFS_FS is not set
CONFIG_NLS=y
CONFIG_NLS_DEFAULT="utf8"
CONFIG_NLS_CODEPAGE_437=y
# CONFIG_NLS_CODEPAGE_737 is not set
# CONFIG_NLS_CODEPAGE_775 is not set
# CONFIG_NLS_CODEPAGE_850 is not set
# CONFIG_NLS_CODEPAGE_852 is not set
# CONFIG_NLS_CODEPAGE_855 is not set
# CONFIG_NLS_CODEPAGE_857 is not set
# CONFIG_NLS_CODEPAGE_860 is not set
# CONFIG_NLS_CODEPAGE_861 is not set
# CONFIG_NLS_CODEPAGE_862 is not set
# CONFIG_NLS_CODEPAGE_863 is not set
# CONFIG_NLS_CODEPAGE_864 is not set
# CONFIG_NLS_CODEPAGE_865 is not set
# CONFIG_NLS_CODEPAGE_866 is not set
# CONFIG_NLS_CODEPAGE_869 is not set
# CONFIG_NLS_CODEPAGE_936 is not set
# CONFIG_NLS_CODEPAGE_950 is not set
# CONFIG_NLS_CODEPAGE_932 is not set
# CONFIG_NLS_CODEPAGE_949 is not set
# CONFIG_NLS_CODEPAGE_874 is not set
# CONFIG_NLS_ISO8859_8 is not set
# CONFIG_NLS_CODEPAGE_1250 is not set
# CONFIG_NLS_CODEPAGE_1251 is not set
# CONFIG_NLS_ASCII is not set
CONFIG_NLS_ISO8859_1=m
# CONFIG_NLS_ISO8859_2 is not set
# CONFIG_NLS_ISO8859_3 is not set
# CONFIG_NLS_ISO8859_4 is not set
# CONFIG_NLS_ISO8859_5 is not set
# CONFIG_NLS_ISO8859_6 is not set
# CONFIG_NLS_ISO8859_7 is not set
# CONFIG_NLS_ISO8859_9 is not set
# CONFIG_NLS_ISO8859_13 is not set
# CONFIG_NLS_ISO8859_14 is not set
# CONFIG_NLS_ISO8859_15 is not set
# CONFIG_NLS_KOI8_R is not set
# CONFIG_NLS_KOI8_U is not set
# CONFIG_NLS_MAC_ROMAN is not set
# CONFIG_NLS_MAC_CELTIC is not set
# CONFIG_NLS_MAC_CENTEURO is not set
# CONFIG_NLS_MAC_CROATIAN is not set
# CONFIG_NLS_MAC_CYRILLIC is not set
# CONFIG_NLS_MAC_GAELIC is not set
# CONFIG_NLS_MAC_GREEK is not set
# CONFIG_NLS_MAC_ICELAND is not set
# CONFIG_NLS_MAC_INUIT is not set
# CONFIG_NLS_MAC_ROMANIAN is not set
# CONFIG_NLS_MAC_TURKISH is not set
# CONFIG_NLS_UTF8 is not set
# CONFIG_DLM is not set

#
# Kernel hacking
#
CONFIG_TRACE_IRQFLAGS_SUPPORT=y

#
# printk and dmesg options
#
CONFIG_PRINTK_TIME=y
CONFIG_CONSOLE_LOGLEVEL_DEFAULT=7
CONFIG_MESSAGE_LOGLEVEL_DEFAULT=4
CONFIG_BOOT_PRINTK_DELAY=y
CONFIG_DYNAMIC_DEBUG=y

#
# Compile-time checks and compiler options
#
CONFIG_DEBUG_INFO=y
# CONFIG_DEBUG_INFO_REDUCED is not set
# CONFIG_DEBUG_INFO_SPLIT is not set
CONFIG_DEBUG_INFO_DWARF4=y
CONFIG_GDB_SCRIPTS=y
# CONFIG_ENABLE_WARN_DEPRECATED is not set
# CONFIG_ENABLE_MUST_CHECK is not set
CONFIG_FRAME_WARN=1024
# CONFIG_STRIP_ASM_SYMS is not set
# CONFIG_READABLE_ASM is not set
CONFIG_UNUSED_SYMBOLS=y
# CONFIG_PAGE_OWNER is not set
CONFIG_DEBUG_FS=y
# CONFIG_HEADERS_CHECK is not set
# CONFIG_DEBUG_SECTION_MISMATCH is not set
CONFIG_SECTION_MISMATCH_WARN_ONLY=y
CONFIG_ARCH_WANT_FRAME_POINTERS=y
CONFIG_FRAME_POINTER=y
# CONFIG_STACK_VALIDATION is not set
# CONFIG_DEBUG_FORCE_WEAK_PER_CPU is not set
CONFIG_MAGIC_SYSRQ=y
CONFIG_MAGIC_SYSRQ_DEFAULT_ENABLE=0x01b6
CONFIG_MAGIC_SYSRQ_SERIAL=y
CONFIG_DEBUG_KERNEL=y

#
# Memory Debugging
#
# CONFIG_PAGE_EXTENSION is not set
# CONFIG_DEBUG_PAGEALLOC is not set
# CONFIG_PAGE_POISONING is not set
# CONFIG_DEBUG_PAGE_REF is not set
# CONFIG_DEBUG_OBJECTS is not set
# CONFIG_SLUB_DEBUG_ON is not set
# CONFIG_SLUB_STATS is not set
CONFIG_HAVE_DEBUG_KMEMLEAK=y
# CONFIG_DEBUG_KMEMLEAK is not set
# CONFIG_DEBUG_STACK_USAGE is not set
# CONFIG_DEBUG_VM is not set
CONFIG_ARCH_HAS_DEBUG_VIRTUAL=y
# CONFIG_DEBUG_VIRTUAL is not set
# CONFIG_DEBUG_MEMORY_INIT is not set
# CONFIG_DEBUG_PER_CPU_MAPS is not set
CONFIG_HAVE_DEBUG_STACKOVERFLOW=y
# CONFIG_DEBUG_STACKOVERFLOW is not set
CONFIG_HAVE_ARCH_KMEMCHECK=y
CONFIG_HAVE_ARCH_KASAN=y
# CONFIG_KASAN is not set
# CONFIG_DEBUG_REFCOUNT is not set
CONFIG_ARCH_HAS_KCOV=y
# CONFIG_KCOV is not set
# CONFIG_DEBUG_SHIRQ is not set

#
# Debug Lockups and Hangs
#
CONFIG_LOCKUP_DETECTOR=y
CONFIG_HARDLOCKUP_DETECTOR=y
# CONFIG_BOOTPARAM_HARDLOCKUP_PANIC is not set
CONFIG_BOOTPARAM_HARDLOCKUP_PANIC_VALUE=0
# CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC is not set
CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC_VALUE=0
CONFIG_DETECT_HUNG_TASK=y
CONFIG_DEFAULT_HUNG_TASK_TIMEOUT=120
# CONFIG_BOOTPARAM_HUNG_TASK_PANIC is not set
CONFIG_BOOTPARAM_HUNG_TASK_PANIC_VALUE=0
# CONFIG_WQ_WATCHDOG is not set
# CONFIG_PANIC_ON_OOPS is not set
CONFIG_PANIC_ON_OOPS_VALUE=0
CONFIG_PANIC_TIMEOUT=0
CONFIG_SCHED_DEBUG=y
CONFIG_SCHED_INFO=y
CONFIG_SCHEDSTATS=y
CONFIG_SCHED_STACK_END_CHECK=y
# CONFIG_DEBUG_TIMEKEEPING is not set

#
# Lock Debugging (spinlocks, mutexes, etc...)
#
# CONFIG_DEBUG_RT_MUTEXES is not set
# CONFIG_DEBUG_SPINLOCK is not set
# CONFIG_DEBUG_MUTEXES is not set
# CONFIG_DEBUG_WW_MUTEX_SLOWPATH is not set
# CONFIG_DEBUG_LOCK_ALLOC is not set
# CONFIG_PROVE_LOCKING is not set
# CONFIG_LOCK_STAT is not set
# CONFIG_DEBUG_ATOMIC_SLEEP is not set
# CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set
# CONFIG_LOCK_TORTURE_TEST is not set
# CONFIG_WW_MUTEX_SELFTEST is not set
CONFIG_STACKTRACE=y
# CONFIG_DEBUG_KOBJECT is not set
CONFIG_DEBUG_BUGVERBOSE=y
# CONFIG_DEBUG_LIST is not set
# CONFIG_DEBUG_PI_LIST is not set
# CONFIG_DEBUG_SG is not set
# CONFIG_DEBUG_NOTIFIERS is not set
# CONFIG_DEBUG_CREDENTIALS is not set

#
# RCU Debugging
#
# CONFIG_PROVE_RCU is not set
# CONFIG_SPARSE_RCU_POINTER is not set
# CONFIG_TORTURE_TEST is not set
# CONFIG_RCU_PERF_TEST is not set
# CONFIG_RCU_TORTURE_TEST is not set
CONFIG_RCU_CPU_STALL_TIMEOUT=60
# CONFIG_RCU_TRACE is not set
# CONFIG_RCU_EQS_DEBUG is not set
# CONFIG_DEBUG_WQ_FORCE_RR_CPU is not set
# CONFIG_DEBUG_BLOCK_EXT_DEVT is not set
# CONFIG_CPU_HOTPLUG_STATE_CONTROL is not set
# CONFIG_NOTIFIER_ERROR_INJECTION is not set
# CONFIG_FAULT_INJECTION is not set
# CONFIG_LATENCYTOP is not set
CONFIG_USER_STACKTRACE_SUPPORT=y
CONFIG_NOP_TRACER=y
CONFIG_HAVE_FUNCTION_TRACER=y
CONFIG_HAVE_FUNCTION_GRAPH_TRACER=y
CONFIG_HAVE_DYNAMIC_FTRACE=y
CONFIG_HAVE_DYNAMIC_FTRACE_WITH_REGS=y
CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y
CONFIG_HAVE_SYSCALL_TRACEPOINTS=y
CONFIG_HAVE_FENTRY=y
CONFIG_HAVE_C_RECORDMCOUNT=y
CONFIG_TRACER_MAX_TRACE=y
CONFIG_TRACE_CLOCK=y
CONFIG_RING_BUFFER=y
CONFIG_EVENT_TRACING=y
CONFIG_CONTEXT_SWITCH_TRACER=y
CONFIG_TRACING=y
CONFIG_GENERIC_TRACER=y
CONFIG_TRACING_SUPPORT=y
CONFIG_FTRACE=y
CONFIG_FUNCTION_TRACER=y
CONFIG_FUNCTION_GRAPH_TRACER=y
# CONFIG_IRQSOFF_TRACER is not set
CONFIG_SCHED_TRACER=y
# CONFIG_HWLAT_TRACER is not set
CONFIG_FTRACE_SYSCALLS=y
CONFIG_TRACER_SNAPSHOT=y
# CONFIG_TRACER_SNAPSHOT_PER_CPU_SWAP is not set
CONFIG_BRANCH_PROFILE_NONE=y
# CONFIG_PROFILE_ANNOTATED_BRANCHES is not set
# CONFIG_PROFILE_ALL_BRANCHES is not set
CONFIG_STACK_TRACER=y
CONFIG_BLK_DEV_IO_TRACE=y
CONFIG_KPROBE_EVENT=y
CONFIG_UPROBE_EVENT=y
CONFIG_BPF_EVENTS=y
CONFIG_PROBE_EVENTS=y
CONFIG_DYNAMIC_FTRACE=y
CONFIG_DYNAMIC_FTRACE_WITH_REGS=y
CONFIG_FUNCTION_PROFILER=y
CONFIG_FTRACE_MCOUNT_RECORD=y
# CONFIG_FTRACE_STARTUP_TEST is not set
CONFIG_MMIOTRACE=y
CONFIG_TRACING_MAP=y
CONFIG_HIST_TRIGGERS=y
# CONFIG_MMIOTRACE_TEST is not set
# CONFIG_TRACEPOINT_BENCHMARK is not set
# CONFIG_RING_BUFFER_BENCHMARK is not set
# CONFIG_RING_BUFFER_STARTUP_TEST is not set
# CONFIG_TRACE_ENUM_MAP_FILE is not set
CONFIG_TRACING_EVENTS_GPIO=y

#
# Runtime Testing
#
# CONFIG_LKDTM is not set
# CONFIG_TEST_LIST_SORT is not set
# CONFIG_TEST_SORT is not set
# CONFIG_KPROBES_SANITY_TEST is not set
# CONFIG_BACKTRACE_SELF_TEST is not set
# CONFIG_RBTREE_TEST is not set
# CONFIG_INTERVAL_TREE_TEST is not set
# CONFIG_PERCPU_TEST is not set
# CONFIG_ATOMIC64_SELFTEST is not set
# CONFIG_TEST_HEXDUMP is not set
# CONFIG_TEST_STRING_HELPERS is not set
# CONFIG_TEST_KSTRTOX is not set
# CONFIG_TEST_PRINTF is not set
# CONFIG_TEST_BITMAP is not set
# CONFIG_TEST_UUID is not set
# CONFIG_TEST_RHASHTABLE is not set
# CONFIG_TEST_HASH is not set
# CONFIG_PROVIDE_OHCI1394_DMA_INIT is not set
# CONFIG_DMA_API_DEBUG is not set
# CONFIG_TEST_LKM is not set
# CONFIG_TEST_USER_COPY is not set
# CONFIG_TEST_BPF is not set
# CONFIG_TEST_FIRMWARE is not set
# CONFIG_TEST_UDELAY is not set
CONFIG_MEMTEST=y
# CONFIG_TEST_STATIC_KEYS is not set
# CONFIG_BUG_ON_DATA_CORRUPTION is not set
# CONFIG_SAMPLES is not set
CONFIG_HAVE_ARCH_KGDB=y
CONFIG_KGDB=y
CONFIG_KGDB_SERIAL_CONSOLE=y
# CONFIG_KGDB_TESTS is not set
CONFIG_KGDB_LOW_LEVEL_TRAP=y
CONFIG_KGDB_KDB=y
CONFIG_KDB_DEFAULT_ENABLE=0x1
CONFIG_KDB_KEYBOARD=y
CONFIG_KDB_CONTINUE_CATASTROPHIC=0
CONFIG_ARCH_HAS_UBSAN_SANITIZE_ALL=y
# CONFIG_ARCH_WANTS_UBSAN_NO_NULL is not set
# CONFIG_UBSAN is not set
CONFIG_ARCH_HAS_DEVMEM_IS_ALLOWED=y
CONFIG_STRICT_DEVMEM=y
# CONFIG_IO_STRICT_DEVMEM is not set
# CONFIG_X86_VERBOSE_BOOTUP is not set
CONFIG_EARLY_PRINTK=y
CONFIG_EARLY_PRINTK_DBGP=y
CONFIG_EARLY_PRINTK_EFI=y
CONFIG_X86_PTDUMP_CORE=y
# CONFIG_X86_PTDUMP is not set
# CONFIG_EFI_PGT_DUMP is not set
# CONFIG_DEBUG_RODATA_TEST is not set
CONFIG_DEBUG_WX=y
CONFIG_DOUBLEFAULT=y
# CONFIG_DEBUG_TLBFLUSH is not set
# CONFIG_IOMMU_DEBUG is not set
# CONFIG_IOMMU_STRESS is not set
CONFIG_HAVE_MMIOTRACE_SUPPORT=y
# CONFIG_X86_DECODER_SELFTEST is not set
CONFIG_IO_DELAY_TYPE_0X80=0
CONFIG_IO_DELAY_TYPE_0XED=1
CONFIG_IO_DELAY_TYPE_UDELAY=2
CONFIG_IO_DELAY_TYPE_NONE=3
# CONFIG_IO_DELAY_0X80 is not set
CONFIG_IO_DELAY_0XED=y
# CONFIG_IO_DELAY_UDELAY is not set
# CONFIG_IO_DELAY_NONE is not set
CONFIG_DEFAULT_IO_DELAY_TYPE=1
# CONFIG_DEBUG_BOOT_PARAMS is not set
# CONFIG_CPA_DEBUG is not set
CONFIG_OPTIMIZE_INLINING=y
# CONFIG_DEBUG_ENTRY is not set
# CONFIG_DEBUG_NMI_SELFTEST is not set
CONFIG_X86_DEBUG_FPU=y
# CONFIG_PUNIT_ATOM_DEBUG is not set

#
# Security options
#
CONFIG_KEYS=y
CONFIG_PERSISTENT_KEYRINGS=y
CONFIG_BIG_KEYS=y
CONFIG_TRUSTED_KEYS=y
CONFIG_ENCRYPTED_KEYS=y
CONFIG_KEY_DH_OPERATIONS=y
# CONFIG_SECURITY_DMESG_RESTRICT is not set
CONFIG_SECURITY=y
CONFIG_SECURITYFS=y
CONFIG_SECURITY_NETWORK=y
CONFIG_SECURITY_PATH=y
CONFIG_INTEL_TXT=y
CONFIG_LSM_MMAP_MIN_ADDR=0
CONFIG_HAVE_HARDENED_USERCOPY_ALLOCATOR=y
CONFIG_HAVE_ARCH_HARDENED_USERCOPY=y
CONFIG_HARDENED_USERCOPY=y
# CONFIG_HARDENED_USERCOPY_PAGESPAN is not set
# CONFIG_STATIC_USERMODEHELPER is not set
CONFIG_SECURITY_SELINUX=y
CONFIG_SECURITY_SELINUX_BOOTPARAM=y
CONFIG_SECURITY_SELINUX_BOOTPARAM_VALUE=0
CONFIG_SECURITY_SELINUX_DISABLE=y
CONFIG_SECURITY_SELINUX_DEVELOP=y
CONFIG_SECURITY_SELINUX_AVC_STATS=y
CONFIG_SECURITY_SELINUX_CHECKREQPROT_VALUE=1
CONFIG_SECURITY_SMACK=y
# CONFIG_SECURITY_SMACK_BRINGUP is not set
CONFIG_SECURITY_SMACK_NETFILTER=y
# CONFIG_SECURITY_SMACK_APPEND_SIGNALS is not set
CONFIG_SECURITY_TOMOYO=y
CONFIG_SECURITY_TOMOYO_MAX_ACCEPT_ENTRY=2048
CONFIG_SECURITY_TOMOYO_MAX_AUDIT_LOG=1024
# CONFIG_SECURITY_TOMOYO_OMIT_USERSPACE_LOADER is not set
CONFIG_SECURITY_TOMOYO_POLICY_LOADER="/sbin/tomoyo-init"
CONFIG_SECURITY_TOMOYO_ACTIVATION_TRIGGER="/sbin/init"
CONFIG_SECURITY_APPARMOR=y
CONFIG_SECURITY_APPARMOR_BOOTPARAM_VALUE=1
CONFIG_SECURITY_APPARMOR_HASH=y
CONFIG_SECURITY_APPARMOR_HASH_DEFAULT=y
# CONFIG_SECURITY_APPARMOR_DEBUG is not set
# CONFIG_SECURITY_LOADPIN is not set
CONFIG_SECURITY_YAMA=y
CONFIG_INTEGRITY=y
CONFIG_INTEGRITY_SIGNATURE=y
CONFIG_INTEGRITY_ASYMMETRIC_KEYS=y
CONFIG_INTEGRITY_TRUSTED_KEYRING=y
CONFIG_INTEGRITY_AUDIT=y
CONFIG_IMA=y
CONFIG_IMA_MEASURE_PCR_IDX=10
CONFIG_IMA_LSM_RULES=y
# CONFIG_IMA_TEMPLATE is not set
CONFIG_IMA_NG_TEMPLATE=y
# CONFIG_IMA_SIG_TEMPLATE is not set
CONFIG_IMA_DEFAULT_TEMPLATE="ima-ng"
CONFIG_IMA_DEFAULT_HASH_SHA1=y
# CONFIG_IMA_DEFAULT_HASH_SHA256 is not set
# CONFIG_IMA_DEFAULT_HASH_SHA512 is not set
CONFIG_IMA_DEFAULT_HASH="sha1"
CONFIG_IMA_WRITE_POLICY=y
CONFIG_IMA_READ_POLICY=y
CONFIG_IMA_APPRAISE=y
CONFIG_IMA_TRUSTED_KEYRING=y
CONFIG_IMA_KEYRINGS_PERMIT_SIGNED_BY_BUILTIN_OR_SECONDARY=y
CONFIG_IMA_BLACKLIST_KEYRING=y
# CONFIG_IMA_LOAD_X509 is not set
CONFIG_EVM=y
CONFIG_EVM_ATTR_FSUUID=y
CONFIG_EVM_EXTRA_SMACK_XATTRS=y
# CONFIG_EVM_LOAD_X509 is not set
# CONFIG_DEFAULT_SECURITY_SELINUX is not set
# CONFIG_DEFAULT_SECURITY_SMACK is not set
# CONFIG_DEFAULT_SECURITY_TOMOYO is not set
CONFIG_DEFAULT_SECURITY_APPARMOR=y
# CONFIG_DEFAULT_SECURITY_DAC is not set
CONFIG_DEFAULT_SECURITY="apparmor"
CONFIG_CRYPTO=y

#
# Crypto core or helper
#
CONFIG_CRYPTO_ALGAPI=y
CONFIG_CRYPTO_ALGAPI2=y
CONFIG_CRYPTO_AEAD=y
CONFIG_CRYPTO_AEAD2=y
CONFIG_CRYPTO_BLKCIPHER=y
CONFIG_CRYPTO_BLKCIPHER2=y
CONFIG_CRYPTO_HASH=y
CONFIG_CRYPTO_HASH2=y
CONFIG_CRYPTO_RNG=y
CONFIG_CRYPTO_RNG2=y
CONFIG_CRYPTO_RNG_DEFAULT=y
CONFIG_CRYPTO_AKCIPHER2=y
CONFIG_CRYPTO_AKCIPHER=y
CONFIG_CRYPTO_KPP2=y
CONFIG_CRYPTO_ACOMP2=y
CONFIG_CRYPTO_RSA=y
# CONFIG_CRYPTO_DH is not set
# CONFIG_CRYPTO_ECDH is not set
CONFIG_CRYPTO_MANAGER=y
CONFIG_CRYPTO_MANAGER2=y
# CONFIG_CRYPTO_USER is not set
CONFIG_CRYPTO_MANAGER_DISABLE_TESTS=y
CONFIG_CRYPTO_GF128MUL=y
CONFIG_CRYPTO_NULL=y
CONFIG_CRYPTO_NULL2=y
# CONFIG_CRYPTO_PCRYPT is not set
CONFIG_CRYPTO_WORKQUEUE=y
CONFIG_CRYPTO_CRYPTD=m
# CONFIG_CRYPTO_MCRYPTD is not set
# CONFIG_CRYPTO_AUTHENC is not set
# CONFIG_CRYPTO_TEST is not set
CONFIG_CRYPTO_ABLK_HELPER=m
CONFIG_CRYPTO_SIMD=m
CONFIG_CRYPTO_GLUE_HELPER_X86=m

#
# Authenticated Encryption with Associated Data
#
# CONFIG_CRYPTO_CCM is not set
# CONFIG_CRYPTO_GCM is not set
# CONFIG_CRYPTO_CHACHA20POLY1305 is not set
CONFIG_CRYPTO_SEQIV=y
# CONFIG_CRYPTO_ECHAINIV is not set

#
# Block modes
#
CONFIG_CRYPTO_CBC=y
CONFIG_CRYPTO_CTR=y
CONFIG_CRYPTO_CTS=y
CONFIG_CRYPTO_ECB=y
CONFIG_CRYPTO_LRW=m
# CONFIG_CRYPTO_PCBC is not set
CONFIG_CRYPTO_XTS=y
# CONFIG_CRYPTO_KEYWRAP is not set

#
# Hash modes
#
# CONFIG_CRYPTO_CMAC is not set
CONFIG_CRYPTO_HMAC=y
# CONFIG_CRYPTO_XCBC is not set
# CONFIG_CRYPTO_VMAC is not set

#
# Digest
#
CONFIG_CRYPTO_CRC32C=y
CONFIG_CRYPTO_CRC32C_INTEL=y
# CONFIG_CRYPTO_CRC32 is not set
CONFIG_CRYPTO_CRC32_PCLMUL=m
CONFIG_CRYPTO_CRCT10DIF=y
CONFIG_CRYPTO_CRCT10DIF_PCLMUL=m
# CONFIG_CRYPTO_GHASH is not set
# CONFIG_CRYPTO_POLY1305 is not set
# CONFIG_CRYPTO_POLY1305_X86_64 is not set
# CONFIG_CRYPTO_MD4 is not set
CONFIG_CRYPTO_MD5=y
# CONFIG_CRYPTO_MICHAEL_MIC is not set
# CONFIG_CRYPTO_RMD128 is not set
# CONFIG_CRYPTO_RMD160 is not set
# CONFIG_CRYPTO_RMD256 is not set
# CONFIG_CRYPTO_RMD320 is not set
CONFIG_CRYPTO_SHA1=y
# CONFIG_CRYPTO_SHA1_SSSE3 is not set
# CONFIG_CRYPTO_SHA256_SSSE3 is not set
# CONFIG_CRYPTO_SHA512_SSSE3 is not set
# CONFIG_CRYPTO_SHA1_MB is not set
# CONFIG_CRYPTO_SHA256_MB is not set
# CONFIG_CRYPTO_SHA512_MB is not set
CONFIG_CRYPTO_SHA256=y
CONFIG_CRYPTO_SHA512=y
# CONFIG_CRYPTO_SHA3 is not set
# CONFIG_CRYPTO_TGR192 is not set
# CONFIG_CRYPTO_WP512 is not set
CONFIG_CRYPTO_GHASH_CLMUL_NI_INTEL=m

#
# Ciphers
#
CONFIG_CRYPTO_AES=y
# CONFIG_CRYPTO_AES_TI is not set
CONFIG_CRYPTO_AES_X86_64=m
CONFIG_CRYPTO_AES_NI_INTEL=m
# CONFIG_CRYPTO_ANUBIS is not set
# CONFIG_CRYPTO_ARC4 is not set
# CONFIG_CRYPTO_BLOWFISH is not set
# CONFIG_CRYPTO_BLOWFISH_X86_64 is not set
# CONFIG_CRYPTO_CAMELLIA is not set
CONFIG_CRYPTO_CAMELLIA_X86_64=m
CONFIG_CRYPTO_CAMELLIA_AESNI_AVX_X86_64=m
# CONFIG_CRYPTO_CAMELLIA_AESNI_AVX2_X86_64 is not set
# CONFIG_CRYPTO_CAST5 is not set
# CONFIG_CRYPTO_CAST5_AVX_X86_64 is not set
# CONFIG_CRYPTO_CAST6 is not set
# CONFIG_CRYPTO_CAST6_AVX_X86_64 is not set
# CONFIG_CRYPTO_DES is not set
# CONFIG_CRYPTO_DES3_EDE_X86_64 is not set
# CONFIG_CRYPTO_FCRYPT is not set
# CONFIG_CRYPTO_KHAZAD is not set
# CONFIG_CRYPTO_SALSA20 is not set
# CONFIG_CRYPTO_SALSA20_X86_64 is not set
# CONFIG_CRYPTO_CHACHA20 is not set
# CONFIG_CRYPTO_CHACHA20_X86_64 is not set
# CONFIG_CRYPTO_SEED is not set
# CONFIG_CRYPTO_SERPENT is not set
# CONFIG_CRYPTO_SERPENT_SSE2_X86_64 is not set
# CONFIG_CRYPTO_SERPENT_AVX_X86_64 is not set
# CONFIG_CRYPTO_SERPENT_AVX2_X86_64 is not set
# CONFIG_CRYPTO_TEA is not set
# CONFIG_CRYPTO_TWOFISH is not set
# CONFIG_CRYPTO_TWOFISH_X86_64 is not set
# CONFIG_CRYPTO_TWOFISH_X86_64_3WAY is not set
# CONFIG_CRYPTO_TWOFISH_AVX_X86_64 is not set

#
# Compression
#
# CONFIG_CRYPTO_DEFLATE is not set
CONFIG_CRYPTO_LZO=y
# CONFIG_CRYPTO_842 is not set
# CONFIG_CRYPTO_LZ4 is not set
# CONFIG_CRYPTO_LZ4HC is not set

#
# Random Number Generation
#
# CONFIG_CRYPTO_ANSI_CPRNG is not set
CONFIG_CRYPTO_DRBG_MENU=y
CONFIG_CRYPTO_DRBG_HMAC=y
CONFIG_CRYPTO_DRBG_HASH=y
CONFIG_CRYPTO_DRBG_CTR=y
CONFIG_CRYPTO_DRBG=y
CONFIG_CRYPTO_JITTERENTROPY=y
# CONFIG_CRYPTO_USER_API_HASH is not set
# CONFIG_CRYPTO_USER_API_SKCIPHER is not set
# CONFIG_CRYPTO_USER_API_RNG is not set
# CONFIG_CRYPTO_USER_API_AEAD is not set
CONFIG_CRYPTO_HASH_INFO=y
CONFIG_CRYPTO_HW=y
CONFIG_CRYPTO_DEV_PADLOCK=y
# CONFIG_CRYPTO_DEV_PADLOCK_AES is not set
# CONFIG_CRYPTO_DEV_PADLOCK_SHA is not set
# CONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API_DESC is not set
CONFIG_CRYPTO_DEV_CCP=y
# CONFIG_CRYPTO_DEV_CCP_DD is not set
# CONFIG_CRYPTO_DEV_QAT_DH895xCC is not set
# CONFIG_CRYPTO_DEV_QAT_C3XXX is not set
# CONFIG_CRYPTO_DEV_QAT_C62X is not set
# CONFIG_CRYPTO_DEV_QAT_DH895xCCVF is not set
# CONFIG_CRYPTO_DEV_QAT_C3XXXVF is not set
# CONFIG_CRYPTO_DEV_QAT_C62XVF is not set
# CONFIG_CRYPTO_DEV_CHELSIO is not set
# CONFIG_CRYPTO_DEV_VIRTIO is not set
CONFIG_ASYMMETRIC_KEY_TYPE=y
CONFIG_ASYMMETRIC_PUBLIC_KEY_SUBTYPE=y
CONFIG_X509_CERTIFICATE_PARSER=y
CONFIG_PKCS7_MESSAGE_PARSER=y
# CONFIG_PKCS7_TEST_KEY is not set
CONFIG_SIGNED_PE_FILE_VERIFICATION=y

#
# Certificates for signature checking
#
CONFIG_MODULE_SIG_KEY="certs/signing_key.pem"
CONFIG_SYSTEM_TRUSTED_KEYRING=y
CONFIG_SYSTEM_TRUSTED_KEYS=""
CONFIG_SYSTEM_EXTRA_CERTIFICATE=y
CONFIG_SYSTEM_EXTRA_CERTIFICATE_SIZE=4096
CONFIG_SECONDARY_TRUSTED_KEYRING=y
CONFIG_HAVE_KVM=y
CONFIG_VIRTUALIZATION=y
# CONFIG_KVM is not set
# CONFIG_VHOST_NET is not set
# CONFIG_VHOST_CROSS_ENDIAN_LEGACY is not set
CONFIG_BINARY_PRINTF=y

#
# Library routines
#
CONFIG_BITREVERSE=y
# CONFIG_HAVE_ARCH_BITREVERSE is not set
CONFIG_RATIONAL=y
CONFIG_GENERIC_STRNCPY_FROM_USER=y
CONFIG_GENERIC_STRNLEN_USER=y
CONFIG_GENERIC_NET_UTILS=y
CONFIG_GENERIC_FIND_FIRST_BIT=y
CONFIG_GENERIC_PCI_IOMAP=y
CONFIG_GENERIC_IOMAP=y
CONFIG_GENERIC_IO=y
CONFIG_ARCH_USE_CMPXCHG_LOCKREF=y
CONFIG_ARCH_HAS_FAST_MULTIPLIER=y
CONFIG_CRC_CCITT=y
CONFIG_CRC16=y
CONFIG_CRC_T10DIF=y
# CONFIG_CRC_ITU_T is not set
CONFIG_CRC32=y
# CONFIG_CRC32_SELFTEST is not set
CONFIG_CRC32_SLICEBY8=y
# CONFIG_CRC32_SLICEBY4 is not set
# CONFIG_CRC32_SARWATE is not set
# CONFIG_CRC32_BIT is not set
# CONFIG_CRC7 is not set
CONFIG_LIBCRC32C=m
# CONFIG_CRC8 is not set
# CONFIG_AUDIT_ARCH_COMPAT_GENERIC is not set
# CONFIG_RANDOM32_SELFTEST is not set
CONFIG_ZLIB_INFLATE=y
CONFIG_ZLIB_DEFLATE=y
CONFIG_LZO_COMPRESS=y
CONFIG_LZO_DECOMPRESS=y
CONFIG_LZ4_DECOMPRESS=y
CONFIG_XZ_DEC=y
CONFIG_XZ_DEC_X86=y
CONFIG_XZ_DEC_POWERPC=y
CONFIG_XZ_DEC_IA64=y
CONFIG_XZ_DEC_ARM=y
CONFIG_XZ_DEC_ARMTHUMB=y
CONFIG_XZ_DEC_SPARC=y
CONFIG_XZ_DEC_BCJ=y
# CONFIG_XZ_DEC_TEST is not set
CONFIG_DECOMPRESS_GZIP=y
CONFIG_DECOMPRESS_BZIP2=y
CONFIG_DECOMPRESS_LZMA=y
CONFIG_DECOMPRESS_XZ=y
CONFIG_DECOMPRESS_LZO=y
CONFIG_DECOMPRESS_LZ4=y
CONFIG_GENERIC_ALLOCATOR=y
CONFIG_RADIX_TREE_MULTIORDER=y
CONFIG_ASSOCIATIVE_ARRAY=y
CONFIG_HAS_IOMEM=y
CONFIG_HAS_IOPORT_MAP=y
CONFIG_HAS_DMA=y
# CONFIG_DMA_NOOP_OPS is not set
# CONFIG_DMA_VIRT_OPS is not set
CONFIG_CPU_RMAP=y
CONFIG_DQL=y
CONFIG_GLOB=y
# CONFIG_GLOB_SELFTEST is not set
CONFIG_NLATTR=y
CONFIG_CLZ_TAB=y
# CONFIG_CORDIC is not set
CONFIG_DDR=y
CONFIG_IRQ_POLL=y
CONFIG_MPILIB=y
CONFIG_SIGNATURE=y
CONFIG_OID_REGISTRY=y
CONFIG_UCS2_STRING=y
CONFIG_FONT_SUPPORT=y
# CONFIG_FONTS is not set
CONFIG_FONT_8x8=y
CONFIG_FONT_8x16=y
# CONFIG_SG_SPLIT is not set
CONFIG_SG_POOL=y
CONFIG_ARCH_HAS_SG_CHAIN=y
CONFIG_ARCH_HAS_PMEM_API=y
CONFIG_ARCH_HAS_MMIO_FLUSH=y
CONFIG_SBITMAP=y

^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: SCSI regression in 4.11
  2017-02-27 23:30 SCSI regression in 4.11 Stephen Hemminger
@ 2017-02-28  1:19 ` Stephen Hemminger
  2017-02-28  2:16   ` Jens Axboe
  2017-02-28 14:08   ` Christoph Hellwig
  0 siblings, 2 replies; 49+ messages in thread
From: Stephen Hemminger @ 2017-02-28  1:19 UTC (permalink / raw)
  To: Christoph Hellwig, Linus Torvalds, James E.J. Bottomley,
	Martin K. Petersen, K. Y. Srinivasan, Dexuan Cui, Jens Axboe,
	Long Li, Josh Poulson, v-adsuho
  Cc: linux-scsi

On Mon, 27 Feb 2017 15:30:30 -0800
Stephen Hemminger <stephen@networkplumber.org> wrote:

> Something in SCSI in 4.11 broke booting on Hyper-V Generation 2 VM with 8 VCPU and 4G of memory.
> Both Linus's current tree (4.11 pre-rc1) and linux-next fail in a similar manner. It looks like some error
> in SCSI device detection because there is only a single device.
> 
> The offending commit causing the regression is:
> 
> $ git bisect bad
> e9c787e65c0c36529745be47d490d998b4b6e589 is the first bad commit
> commit e9c787e65c0c36529745be47d490d998b4b6e589
> Author: Christoph Hellwig <hch@lst.de>
> Date:   Mon Jan 2 21:55:26 2017 +0300
> 
>     scsi: allocate scsi_cmnd structures as part of struct request
>     
>     Rely on the new block layer functionality to allocate additional driver
>     specific data behind struct request instead of implementing it in SCSI
>     itѕelf.
>     
>     Signed-off-by: Christoph Hellwig <hch@lst.de>
>     Acked-by: Martin K. Petersen <martin.petersen@oracle.com>
>     Reviewed-by: Hannes Reinecke <hare@suse.com>
>     Signed-off-by: Jens Axboe <axboe@fb.com>
> 
> :040000 040000 6ff016fcdae227efeb19c1c301b17ccd7ea35da6 70d79f99d9b79ecf4dccbe067fc697219f5c78da M	drivers
> :040000 040000 a672ff52df8b2c211b3f98cae4a88d8a96ccde0b 1aaaed7de0994f597c7f8290c722a0b4a7789429 M	include
> 
> I checked and tree is current and up to date and includes 
> commit ee5242360424b9b967454e9183767323d10cf985
> Author: Christoph Hellwig <hch@lst.de>
> Date:   Tue Feb 21 10:04:55 2017 +0100
> 
>     scsi: zero per-cmd driver data before each I/O
> 
> Kernel config is attached. It started with Ubuntu config, but then did localmodconfig and pruned
> out unnecessary stuff.
> 

This problem I am seeing looks like the one addressed by:

Fixes: ee5242360424 ("scsi: zero per-cmd driver data before each I/O")

but that is already in linux-next.

Noticed another place where memset(of the data was being done not the extra bits.
Tried this, but didn't fix it either...


diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c
index ba2286652ff6..7e0463e78ff4 100644
--- a/drivers/scsi/scsi_lib.c
+++ b/drivers/scsi/scsi_lib.c
@@ -1850,7 +1850,7 @@ static int scsi_mq_prep_fn(struct request *req)
 
 	/* zero out the cmd, except for the embedded scsi_request */
 	memset((char *)cmd + sizeof(cmd->req), 0,
-		sizeof(*cmd) - sizeof(cmd->req));
+		sizeof(*cmd) - sizeof(cmd->req) + sdev->host->hostt->cmd_size);
 
 	req->special = cmd;
 

^ permalink raw reply related	[flat|nested] 49+ messages in thread

* Re: SCSI regression in 4.11
  2017-02-28  1:19 ` Stephen Hemminger
@ 2017-02-28  2:16   ` Jens Axboe
  2017-02-28 14:08   ` Christoph Hellwig
  1 sibling, 0 replies; 49+ messages in thread
From: Jens Axboe @ 2017-02-28  2:16 UTC (permalink / raw)
  To: Stephen Hemminger, Christoph Hellwig, Linus Torvalds,
	James E.J. Bottomley, Martin K. Petersen, K. Y. Srinivasan,
	Dexuan Cui, Long Li, Josh Poulson, v-adsuho
  Cc: linux-scsi

On 02/27/2017 06:19 PM, Stephen Hemminger wrote:
> On Mon, 27 Feb 2017 15:30:30 -0800
> Stephen Hemminger <stephen@networkplumber.org> wrote:
> 
>> Something in SCSI in 4.11 broke booting on Hyper-V Generation 2 VM with 8 VCPU and 4G of memory.
>> Both Linus's current tree (4.11 pre-rc1) and linux-next fail in a similar manner. It looks like some error
>> in SCSI device detection because there is only a single device.
>>
>> The offending commit causing the regression is:
>>
>> $ git bisect bad
>> e9c787e65c0c36529745be47d490d998b4b6e589 is the first bad commit
>> commit e9c787e65c0c36529745be47d490d998b4b6e589
>> Author: Christoph Hellwig <hch@lst.de>
>> Date:   Mon Jan 2 21:55:26 2017 +0300
>>
>>     scsi: allocate scsi_cmnd structures as part of struct request
>>     
>>     Rely on the new block layer functionality to allocate additional driver
>>     specific data behind struct request instead of implementing it in SCSI
>>     itѕelf.
>>     
>>     Signed-off-by: Christoph Hellwig <hch@lst.de>
>>     Acked-by: Martin K. Petersen <martin.petersen@oracle.com>
>>     Reviewed-by: Hannes Reinecke <hare@suse.com>
>>     Signed-off-by: Jens Axboe <axboe@fb.com>
>>
>> :040000 040000 6ff016fcdae227efeb19c1c301b17ccd7ea35da6 70d79f99d9b79ecf4dccbe067fc697219f5c78da M	drivers
>> :040000 040000 a672ff52df8b2c211b3f98cae4a88d8a96ccde0b 1aaaed7de0994f597c7f8290c722a0b4a7789429 M	include
>>
>> I checked and tree is current and up to date and includes 
>> commit ee5242360424b9b967454e9183767323d10cf985
>> Author: Christoph Hellwig <hch@lst.de>
>> Date:   Tue Feb 21 10:04:55 2017 +0100
>>
>>     scsi: zero per-cmd driver data before each I/O
>>
>> Kernel config is attached. It started with Ubuntu config, but then did localmodconfig and pruned
>> out unnecessary stuff.
>>
> 
> This problem I am seeing looks like the one addressed by:
> 
> Fixes: ee5242360424 ("scsi: zero per-cmd driver data before each I/O")
> 
> but that is already in linux-next.
> 
> Noticed another place where memset(of the data was being done not the extra bits.
> Tried this, but didn't fix it either...

Yeah, that fix is already in Linus's tree. But it does look like a replica of
what Dexuan reported. Out of curiosity, does it boot if you enable
CONFIG_SCSI_MQ_DEFAULT?

Christoph, looks like the previous fix wasn't complete...

-- 
Jens Axboe

^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: SCSI regression in 4.11
  2017-02-28  1:19 ` Stephen Hemminger
  2017-02-28  2:16   ` Jens Axboe
@ 2017-02-28 14:08   ` Christoph Hellwig
  2017-02-28 15:32     ` Jens Axboe
  2017-02-28 17:33     ` Stephen Hemminger
  1 sibling, 2 replies; 49+ messages in thread
From: Christoph Hellwig @ 2017-02-28 14:08 UTC (permalink / raw)
  To: Stephen Hemminger
  Cc: Christoph Hellwig, Linus Torvalds, James E.J. Bottomley,
	Martin K. Petersen, K. Y. Srinivasan, Dexuan Cui, Jens Axboe,
	Long Li, Josh Poulson, v-adsuho, linux-scsi

On Mon, Feb 27, 2017 at 05:19:31PM -0800, Stephen Hemminger wrote:
> Fixes: ee5242360424 ("scsi: zero per-cmd driver data before each I/O")
> 
> but that is already in linux-next.
> 
> Noticed another place where memset(of the data was being done not the extra bits.
> Tried this, but didn't fix it either...

Are you using blk-mq or the legacy request code?

^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: SCSI regression in 4.11
  2017-02-28 14:08   ` Christoph Hellwig
@ 2017-02-28 15:32     ` Jens Axboe
  2017-02-28 17:06       ` James Bottomley
  2017-02-28 17:33     ` Stephen Hemminger
  1 sibling, 1 reply; 49+ messages in thread
From: Jens Axboe @ 2017-02-28 15:32 UTC (permalink / raw)
  To: Christoph Hellwig, Stephen Hemminger
  Cc: Linus Torvalds, James E.J. Bottomley, Martin K. Petersen,
	K. Y. Srinivasan, Dexuan Cui, Long Li, Josh Poulson, v-adsuho,
	linux-scsi

On 02/28/2017 07:08 AM, Christoph Hellwig wrote:
> On Mon, Feb 27, 2017 at 05:19:31PM -0800, Stephen Hemminger wrote:
>> Fixes: ee5242360424 ("scsi: zero per-cmd driver data before each I/O")
>>
>> but that is already in linux-next.
>>
>> Noticed another place where memset(of the data was being done not the extra bits.
>> Tried this, but didn't fix it either...
> 
> Are you using blk-mq or the legacy request code?

Stephen doesn't have MQ set in the config he posted, I'm assuming he didn't
boot with scsi_mod.use_blk_mq=true. In a previous email, I asked if turning
on MQ makes a difference.

-- 
Jens Axboe

^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: SCSI regression in 4.11
  2017-02-28 15:32     ` Jens Axboe
@ 2017-02-28 17:06       ` James Bottomley
  2017-02-28 17:16         ` Stephen Hemminger
                           ` (2 more replies)
  0 siblings, 3 replies; 49+ messages in thread
From: James Bottomley @ 2017-02-28 17:06 UTC (permalink / raw)
  To: Jens Axboe, Christoph Hellwig, Stephen Hemminger
  Cc: Linus Torvalds, Martin K. Petersen, K. Y. Srinivasan, Dexuan Cui,
	Long Li, Josh Poulson, v-adsuho, linux-scsi

On Tue, 2017-02-28 at 08:32 -0700, Jens Axboe wrote:
> On 02/28/2017 07:08 AM, Christoph Hellwig wrote:
> > On Mon, Feb 27, 2017 at 05:19:31PM -0800, Stephen Hemminger wrote:
> > > Fixes: ee5242360424 ("scsi: zero per-cmd driver data before each
> > > I/O")
> > > 
> > > but that is already in linux-next.
> > > 
> > > Noticed another place where memset(of the data was being done not
> > > the extra bits.
> > > Tried this, but didn't fix it either...
> > 
> > Are you using blk-mq or the legacy request code?
> 
> Stephen doesn't have MQ set in the config he posted, I'm assuming he 
> didn't boot with scsi_mod.use_blk_mq=true. In a previous email, I 
> asked if turning on MQ makes a difference.

OK, since we're not making much progress, Stephen, could you insert
some debugging into the storvsc driver?  The trace clearly shows we're
getting zeros back in the buffer when we should have data from the
initial scan.  Firstly, does the vmbus think it's transferring any data
for the INQUIRY and READ_CAPACITY commands (looks like
storvsc_command_completion() data_transfer_length)?  If it does,
there's probably an issue initialising the sg list.  If it doesn't,
we're probably sending bogus commands.

James

^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: SCSI regression in 4.11
  2017-02-28 17:06       ` James Bottomley
@ 2017-02-28 17:16         ` Stephen Hemminger
  2017-02-28 17:31           ` Jens Axboe
  2017-02-28 18:41         ` Stephen Hemminger
  2017-02-28 18:57         ` Stephen Hemminger
  2 siblings, 1 reply; 49+ messages in thread
From: Stephen Hemminger @ 2017-02-28 17:16 UTC (permalink / raw)
  To: James Bottomley
  Cc: Jens Axboe, Christoph Hellwig, Linus Torvalds,
	Martin K. Petersen, K. Y. Srinivasan, Dexuan Cui, Long Li,
	Josh Poulson, v-adsuho, linux-scsi

On Tue, 28 Feb 2017 09:06:13 -0800
James Bottomley <jejb@linux.vnet.ibm.com> wrote:

> On Tue, 2017-02-28 at 08:32 -0700, Jens Axboe wrote:
> > On 02/28/2017 07:08 AM, Christoph Hellwig wrote:  
> > > On Mon, Feb 27, 2017 at 05:19:31PM -0800, Stephen Hemminger wrote:  
> > > > Fixes: ee5242360424 ("scsi: zero per-cmd driver data before each
> > > > I/O")
> > > > 
> > > > but that is already in linux-next.
> > > > 
> > > > Noticed another place where memset(of the data was being done not
> > > > the extra bits.
> > > > Tried this, but didn't fix it either...  
> > > 
> > > Are you using blk-mq or the legacy request code?  
> > 
> > Stephen doesn't have MQ set in the config he posted, I'm assuming he 
> > didn't boot with scsi_mod.use_blk_mq=true. In a previous email, I 
> > asked if turning on MQ makes a difference.  
> 
> OK, since we're not making much progress, Stephen, could you insert
> some debugging into the storvsc driver?  The trace clearly shows we're
> getting zeros back in the buffer when we should have data from the
> initial scan.  Firstly, does the vmbus think it's transferring any data
> for the INQUIRY and READ_CAPACITY commands (looks like
> storvsc_command_completion() data_transfer_length)?  If it does,
> there's probably an issue initialising the sg list.  If it doesn't,
> we're probably sending bogus commands.
> 
> James

I tried booting with scsi_mod.use_blk_mq=true and that did nothing.
Rebuilding now with 
CONFIG_SCSI_MQ_DEFAULT=y

Sure, can instrument. after that test.

^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: SCSI regression in 4.11
  2017-02-28 17:16         ` Stephen Hemminger
@ 2017-02-28 17:31           ` Jens Axboe
  0 siblings, 0 replies; 49+ messages in thread
From: Jens Axboe @ 2017-02-28 17:31 UTC (permalink / raw)
  To: Stephen Hemminger, James Bottomley
  Cc: Christoph Hellwig, Linus Torvalds, Martin K. Petersen,
	K. Y. Srinivasan, Dexuan Cui, Long Li, Josh Poulson, v-adsuho,
	linux-scsi

On 02/28/2017 10:16 AM, Stephen Hemminger wrote:
> On Tue, 28 Feb 2017 09:06:13 -0800
> James Bottomley <jejb@linux.vnet.ibm.com> wrote:
> 
>> On Tue, 2017-02-28 at 08:32 -0700, Jens Axboe wrote:
>>> On 02/28/2017 07:08 AM, Christoph Hellwig wrote:  
>>>> On Mon, Feb 27, 2017 at 05:19:31PM -0800, Stephen Hemminger wrote:  
>>>>> Fixes: ee5242360424 ("scsi: zero per-cmd driver data before each
>>>>> I/O")
>>>>>
>>>>> but that is already in linux-next.
>>>>>
>>>>> Noticed another place where memset(of the data was being done not
>>>>> the extra bits.
>>>>> Tried this, but didn't fix it either...  
>>>>
>>>> Are you using blk-mq or the legacy request code?  
>>>
>>> Stephen doesn't have MQ set in the config he posted, I'm assuming he 
>>> didn't boot with scsi_mod.use_blk_mq=true. In a previous email, I 
>>> asked if turning on MQ makes a difference.  
>>
>> OK, since we're not making much progress, Stephen, could you insert
>> some debugging into the storvsc driver?  The trace clearly shows we're
>> getting zeros back in the buffer when we should have data from the
>> initial scan.  Firstly, does the vmbus think it's transferring any data
>> for the INQUIRY and READ_CAPACITY commands (looks like
>> storvsc_command_completion() data_transfer_length)?  If it does,
>> there's probably an issue initialising the sg list.  If it doesn't,
>> we're probably sending bogus commands.
>>
>> James
> 
> I tried booting with scsi_mod.use_blk_mq=true and that did nothing.
> Rebuilding now with 
> CONFIG_SCSI_MQ_DEFAULT=y

If you already booted with scsi_mod.use_blk_mq=true and tested that,
then don't bother with the config option. They basically toggle
the same switch.

> Sure, can instrument. after that test.

That'd be great!

-- 
Jens Axboe

^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: SCSI regression in 4.11
  2017-02-28 14:08   ` Christoph Hellwig
  2017-02-28 15:32     ` Jens Axboe
@ 2017-02-28 17:33     ` Stephen Hemminger
  1 sibling, 0 replies; 49+ messages in thread
From: Stephen Hemminger @ 2017-02-28 17:33 UTC (permalink / raw)
  To: Christoph Hellwig
  Cc: Linus Torvalds, James E.J. Bottomley, Martin K. Petersen,
	K. Y. Srinivasan, Dexuan Cui, Jens Axboe, Long Li, Josh Poulson,
	v-adsuho, linux-scsi

On Tue, 28 Feb 2017 15:08:12 +0100
Christoph Hellwig <hch@lst.de> wrote:

> On Mon, Feb 27, 2017 at 05:19:31PM -0800, Stephen Hemminger wrote:
> > Fixes: ee5242360424 ("scsi: zero per-cmd driver data before each I/O")
> > 
> > but that is already in linux-next.
> > 
> > Noticed another place where memset(of the data was being done not the extra bits.
> > Tried this, but didn't fix it either...  
> 
> Are you using blk-mq or the legacy request code?

I was using legacy, but even with CONFIG_SCSI_MQ_DEFAULT=y
the same failure occurs.

^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: SCSI regression in 4.11
  2017-02-28 17:06       ` James Bottomley
  2017-02-28 17:16         ` Stephen Hemminger
@ 2017-02-28 18:41         ` Stephen Hemminger
  2017-02-28 19:10           ` James Bottomley
  2017-02-28 18:57         ` Stephen Hemminger
  2 siblings, 1 reply; 49+ messages in thread
From: Stephen Hemminger @ 2017-02-28 18:41 UTC (permalink / raw)
  To: James Bottomley
  Cc: Jens Axboe, Christoph Hellwig, Linus Torvalds,
	Martin K. Petersen, K. Y. Srinivasan, Dexuan Cui, Long Li,
	Josh Poulson, v-adsuho, linux-scsi

[-- Attachment #1: Type: text/plain, Size: 15131 bytes --]

On Tue, 28 Feb 2017 09:06:13 -0800
James Bottomley <jejb@linux.vnet.ibm.com> wrote:

> On Tue, 2017-02-28 at 08:32 -0700, Jens Axboe wrote:
> > On 02/28/2017 07:08 AM, Christoph Hellwig wrote:  
> > > On Mon, Feb 27, 2017 at 05:19:31PM -0800, Stephen Hemminger wrote:  
> > > > Fixes: ee5242360424 ("scsi: zero per-cmd driver data before each
> > > > I/O")
> > > > 
> > > > but that is already in linux-next.
> > > > 
> > > > Noticed another place where memset(of the data was being done not
> > > > the extra bits.
> > > > Tried this, but didn't fix it either...  
> > > 
> > > Are you using blk-mq or the legacy request code?  
> > 
> > Stephen doesn't have MQ set in the config he posted, I'm assuming he 
> > didn't boot with scsi_mod.use_blk_mq=true. In a previous email, I 
> > asked if turning on MQ makes a difference.  
> 
> OK, since we're not making much progress, Stephen, could you insert
> some debugging into the storvsc driver?  The trace clearly shows we're
> getting zeros back in the buffer when we should have data from the
> initial scan.  Firstly, does the vmbus think it's transferring any data
> for the INQUIRY and READ_CAPACITY commands (looks like
> storvsc_command_completion() data_transfer_length)?  If it does,
> there's probably an issue initialising the sg list.  If it doesn't,
> we're probably sending bogus commands.
> 
> James
> 

This is log of failed boot of linux-next (with blk_mq enabled).
See attached if you want to see exactly what got added.

Sorry don't speak SCSI yet.


[    1.496999] hv_utils: Registering HyperV Utility Driver
[    1.505415] hv_vmbus: registering driver hv_util
[    1.508074] input: AT Translated Set 2 keyboard as /devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0004:00/VMBUS:00/d34b2567-b9b6-42b9-8778-0a4ec0b955bf/serio0/input/input0
[    1.524314] hv_vmbus: registering driver hid_hyperv
[    1.543577] hv_storvsc f71e9b3b-aed9-4dd2-a1ff-c00218a39853: complete init request
[    1.547120] hv_storvsc f71e9b3b-aed9-4dd2-a1ff-c00218a39853: complete init request
[    1.549952] hv_storvsc f71e9b3b-aed9-4dd2-a1ff-c00218a39853: complete init request
[    1.552876] hv_storvsc f71e9b3b-aed9-4dd2-a1ff-c00218a39853: complete init request
[    1.555931] hv_storvsc f71e9b3b-aed9-4dd2-a1ff-c00218a39853: complete init request
[    1.559151] scsi host0: storvsc_host_t
[    1.590197] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    1.590765] hv_storvsc e7d171c1-a71d-400e-854e-7e0cc000ce3d: complete init request
[    1.590796] hv_storvsc e7d171c1-a71d-400e-854e-7e0cc000ce3d: complete init request
[    1.590820] hv_storvsc e7d171c1-a71d-400e-854e-7e0cc000ce3d: complete init request
[    1.590839] hv_storvsc e7d171c1-a71d-400e-854e-7e0cc000ce3d: complete init request
[    1.590942] hv_storvsc e7d171c1-a71d-400e-854e-7e0cc000ce3d: complete init request
[    1.591506] scsi host1: storvsc_host_t
[    1.600925] hv_utils: Heartbeat IC version 3.0
[    1.619450] input: Microsoft Vmbus HID-compliant Mouse as /devices/0006:045E:0621.0001/input/input1
[    1.620658] hid 0006:045E:0621.0001: input: <UNKNOWN> HID v0.01 Mouse [Microsoft Vmbus HID-compliant Mouse] on 
[    1.627185] hv_utils: Shutdown IC version 3.0
[    1.627280] hv_utils: cannot register PTP clock: 0
[    1.628081] random: fast init done
[    1.628890] hv_utils: TimeSync IC version 4.0
[    1.629407] hv_utils: VSS IC version 5.0
[    1.651620] scsi 0:0:0:0: Direct-Access     Msft     Virtual Disk     1.0  PQ: 0 ANSI: 5
[    1.651956] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    1.651977] scsi 1:0:0:0: CD-ROM            Msft     Virtual DVD-ROM  1.0  PQ: 0 ANSI: 0
[    1.652279] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x20 length 36
[    1.652297] scsi host1: scsi scan: INQUIRY result too short (5), using 36
[    1.652299] scsi 1:0:0:1: Direct-Access                                    PQ: 0 ANSI: 0
[    1.652595] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x20 length 36
[    1.652611] scsi 1:0:0:2: Direct-Access                                    PQ: 0 ANSI: 0
[    1.652892] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x20 length 36
[    1.652910] scsi 1:0:0:3: Direct-Access                                    PQ: 0 ANSI: 0
[    1.653178] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x20 length 36
[    1.653195] scsi 1:0:0:4: Direct-Access                                    PQ: 0 ANSI: 0
[    1.653445] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x20 length 36
[    1.653464] scsi 1:0:0:5: Direct-Access                                    PQ: 0 ANSI: 0
[    1.653729] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x20 length 36
[    1.653746] scsi 1:0:0:6: Direct-Access                                    PQ: 0 ANSI: 0
[    1.669879] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x20 length 36
[    1.670143] scsi 1:0:0:7: Direct-Access                                    PQ: 0 ANSI: 0
[    1.676751] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    1.743942] hv_storvsc:  IO cmd 0x12 0x1 0x0 scsi status 0x0 srb status 0x1 length 12
[    1.747036] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 4096
[    1.768853] hv_storvsc:  IO cmd 0x12 0x1 0x83 scsi status 0x0 srb status 0x1 length 52
[    1.774631] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    1.777923] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 4096
[    1.780840] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    1.783152] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 4096
[    1.786505] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    1.788084] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 16
[    1.788479] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    1.811204] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 4096
[    1.820176] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 4096
[    1.820331] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    1.826554] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 4096
[    1.830840] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    1.831215] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    1.837045] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 4096
[    1.839988] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 4096
[    1.840349] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    1.868201] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 4096
[    1.869954] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    1.876507] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 4096
[    1.876864] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    1.881562] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 4096
[    1.882989] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    1.886024] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    1.896434] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 4096
[    1.911852] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 4096
[    1.915128] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    1.915373] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    1.924119] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 4096
[    1.927047] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 4096
[    1.927308] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    1.932912] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 4096
[    1.957147] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    1.957686] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    1.961663] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 4096
[    1.964497] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 4096
[    1.964832] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    1.974266] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 4096
[    1.977079] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    1.977447] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    1.990732] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 4096
[    1.995647] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 4096
[    2.007795] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    2.007822] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    2.016152] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 4096
[    2.019489] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 4096
[    2.022557] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    2.025126] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    2.025351] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 4096
[    2.049022] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    2.054078] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 4096
[    2.054462] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 4096
[    2.059436] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    2.061848] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    2.062183] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 4096
[    2.066910] hv_storvsc:  IO cmd 0x0 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    2.070172] hv_storvsc:  IO cmd 0x9e 0x10 0x0 scsi status 0x0 srb status 0x1 length 32
[    2.070334] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 4096
[    2.075439] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    2.099383] hv_storvsc:  IO cmd 0x12 0x1 0x0 scsi status 0x0 srb status 0x1 length 8
[    2.099707] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    2.104995] hv_storvsc:  IO cmd 0x12 0x1 0xb2 scsi status 0x0 srb status 0x1 length 8
[    2.105415] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 4096
[    2.110451] hv_storvsc:  IO cmd 0x12 0x1 0x0 scsi status 0x0 srb status 0x1 length 12
[    2.110769] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    2.117049] hv_storvsc:  IO cmd 0x12 0x1 0xb0 scsi status 0x0 srb status 0x1 length 64
[    2.117367] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 4096
[    2.122357] hv_storvsc:  IO cmd 0x12 0x1 0x0 scsi status 0x0 srb status 0x1 length 12
[    2.122479] hv_storvsc:  IO cmd 0x0 0x0 0x0 scsi status 0x2 srb status 0x84 length 0
[    2.122480] hv_storvsc:  error status 0x4
[    2.122511] hv_storvsc:  IO cmd 0x1a 0x0 0x2a scsi status 0x2 srb status 0x6 length 128
[    2.122525] sr 1:0:0:0: [sr0] scsi3-mmc drive: 0x/0x caddy
[    2.122526] cdrom: Uniform CD-ROM driver Revision: 3.20
[    2.122828] sr 1:0:0:0: Attached scsi generic sg1 type 5
[    2.122934] sd 1:0:0:1: Attached scsi generic sg2 type 0
[    2.123014] sd 1:0:0:2: Attached scsi generic sg3 type 0
[    2.123086] hv_storvsc:  IO cmd 0x4a 0x1 0x0 scsi status 0x0 srb status 0x1 length 8
[    2.123124] sd 1:0:0:3: Attached scsi generic sg4 type 0
[    2.123134] hv_storvsc:  IO cmd 0x0 0x0 0x0 scsi status 0x0 srb status 0x20 length 0
[    2.123135] hv_storvsc:  error status 0x20
[    2.123221] sd 1:0:0:4: Attached scsi generic sg5 type 0
[    2.123193] hv_storvsc:  IO cmd 0x25 0x0 0x0 scsi status 0x0 srb status 0x20 length 8
[    2.123211] hv_storvsc:  IO cmd 0x0 0x0 0x0 scsi status 0x0 srb status 0x20 length 0
[    2.123195] hv_storvsc:  error status 0x20
[    2.123212] hv_storvsc:  error status 0x20
[    2.123209] hv_storvsc:  IO cmd 0x0 0x0 0x0 scsi status 0x0 srb status 0x20 length 0
[    2.123210] hv_storvsc:  error status 0x20
[    2.123248] hv_storvsc:  IO cmd 0x25 0x0 0x0 scsi status 0x0 srb status 0x20 length 8
[    2.123232] hv_storvsc:  IO cmd 0x0 0x0 0x0 scsi status 0x0 srb status 0x20 length 0
[    2.123249] hv_storvsc:  error status 0x20
[    2.123232] hv_storvsc:  error status 0x20
[    2.123246] sd 1:0:0:2: [sdc] Sector size 0 reported, assuming 512.
[    2.123248] sd 1:0:0:1: [sdb] Sector size 0 reported, assuming 512.
[    2.123249] sd 1:0:0:2: [sdc] 1 512-byte logical blocks: (512 B/512 B)
[    2.123250] sd 1:0:0:1: [sdb] 1 512-byte logical blocks: (512 B/512 B)
[    2.123250] sd 1:0:0:2: [sdc] 0-byte physical blocks
[    2.123282] sd 1:0:0:1: [sdb] 0-byte physical blocks
[    2.123291] hv_storvsc:  IO cmd 0x1a 0x0 0x3f scsi status 0x0 srb status 0x20 length 4
[    2.123274] hv_storvsc:  IO cmd 0x1a 0x0 0x3f scsi status 0x0 srb status 0x20 length 4
[    2.123288] hv_storvsc:  IO cmd 0x25 0x0 0x0 scsi status 0x0 srb status 0x20 length 8
[    2.123288] hv_storvsc:  error status 0x20
[    2.123288] hv_storvsc:  IO cmd 0x25 0x0 0x0 scsi status 0x0 srb status 0x20 length 8
[    2.123288] hv_storvsc:  error status 0x20
[    2.123284] sd 1:0:0:2: [sdc] Write Protect is off
[    2.123291] sd 1:0:0:3: [sdd] Sector size 0 reported, assuming 512.
[    2.123321] sd 1:0:0:5: Attached scsi generic sg6 type 0
[    2.123291] sd 1:0:0:3: [sdd] 1 512-byte logical blocks: (512 B/512 B)
[    2.123294] sd 1:0:0:3: [sdd] 0-byte physical blocks
[    2.123325] hv_storvsc:  IO cmd 0x1a 0x0 0x8 scsi status 0x0 srb status 0x20 length 4
[    2.123305] hv_storvsc:  IO cmd 0x0 0x0 0x0 scsi status 0x0 srb status 0x20 length 0
[    2.123305] hv_storvsc:  error status 0x20
[    2.123312] hv_storvsc:  IO cmd 0x1a 0x0 0x3f scsi status 0x0 srb status 0x20 length 4
** 8 printk messages dropped ** [    2.123331] sd 1:0:0:4: [sde] 0-byte physical blocks
** 1081 printk messages dropped ** [    2.147310] hv_storvsc:  IO cmd 0x28 0x0 0x0 scsi status 0x0 srb status 0x20 length 512
** 1272 printk messages dropped ** [    2.152802] hv_storvsc:  error status 0x20
** 953 printk messages dropped ** [    2.177996] hv_storvsc:  error status 0x20
** 1023 printk messages dropped ** [    2.183087] hv_storvsc:  IO cmd 0x28 0x0 0x0 scsi status 0x0 srb status 0x20 length 512
** 1930 printk messages dropped ** [    2.190078] hv_storvsc:  IO cmd 0x28 0x0 0x0 scsi status 0x0 srb status 0x20 length 512
** 1726 printk messages dropped ** [    2.195667] hv_storvsc:  IO cmd 0x28 0x0 0x0 scsi status 0x0 srb status 0x20 length 512

[-- Attachment #2: storvsc-instrumentation.patch --]
[-- Type: text/x-patch, Size: 2405 bytes --]

>From 216c0364bd42f2f5c57623dbfa8f20f28b4bb3b7 Mon Sep 17 00:00:00 2001
From: Stephen Hemminger <sthemmin@microsoft.com>
Date: Tue, 28 Feb 2017 09:38:57 -0800
Subject: [PATCH] storvsc instrumentation

Add some debug output to Hyper-v storvsc driver to log results
of SCSI requests.
---
 drivers/scsi/storvsc_drv.c | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/drivers/scsi/storvsc_drv.c b/drivers/scsi/storvsc_drv.c
index 638e5f427c90..dbd4c21059ff 100644
--- a/drivers/scsi/storvsc_drv.c
+++ b/drivers/scsi/storvsc_drv.c
@@ -20,6 +20,8 @@
  *   K. Y. Srinivasan <kys@microsoft.com>
  */
 
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
 #include <linux/kernel.h>
 #include <linux/wait.h>
 #include <linux/sched.h>
@@ -520,6 +522,8 @@ static void storvsc_host_scan(struct work_struct *work)
 	wrk = container_of(work, struct storvsc_scan_work, work);
 	host = wrk->host;
 
+	pr_info(" host scan initiated\n");
+
 	/*
 	 * Before scanning the host, first check to see if any of the
 	 * currrently known devices have been hot removed. We issue a
@@ -923,6 +927,9 @@ static void storvsc_handle_error(struct vmscsi_request *vm_srb,
 	void (*process_err_fn)(struct work_struct *work);
 	bool do_work = false;
 
+	pr_info(" error status %#x\n",
+		SRB_STATUS(vm_srb->srb_status));
+
 	switch (SRB_STATUS(vm_srb->srb_status)) {
 	case SRB_STATUS_ERROR:
 		/*
@@ -1060,6 +1067,12 @@ static void storvsc_on_io_completion(struct storvsc_device *stor_device,
 	 * We do this so we can distinguish truly fatal failues
 	 * (srb status == 0x4) and off-line the device in that case.
 	 */
+	pr_info(" IO cmd %#x %#x %#x scsi status %#x srb status %#x length %u\n",
+		stor_pkt->vm_srb.cdb[0], stor_pkt->vm_srb.cdb[1],
+		stor_pkt->vm_srb.cdb[2],
+		vstor_packet->vm_srb.scsi_status,
+		vstor_packet->vm_srb.srb_status,
+		vstor_packet->vm_srb.data_transfer_length);
 
 	if ((stor_pkt->vm_srb.cdb[0] == INQUIRY) ||
 	   (stor_pkt->vm_srb.cdb[0] == MODE_SENSE)) {
@@ -1178,6 +1191,9 @@ static void storvsc_on_channel_callback(void *context)
 			if ((request == &stor_device->init_request) ||
 			    (request == &stor_device->reset_request)) {
 
+				dev_info(&device->device, "complete %s request\n",
+					 request == &stor_device->init_request ? "init" : "reset");
+
 				memcpy(&request->vstor_packet, packet,
 				       (sizeof(struct vstor_packet) -
 					vmscsi_size_delta));
-- 
2.11.0


^ permalink raw reply related	[flat|nested] 49+ messages in thread

* Re: SCSI regression in 4.11
  2017-02-28 17:06       ` James Bottomley
  2017-02-28 17:16         ` Stephen Hemminger
  2017-02-28 18:41         ` Stephen Hemminger
@ 2017-02-28 18:57         ` Stephen Hemminger
  2017-02-28 23:48           ` James Bottomley
  2 siblings, 1 reply; 49+ messages in thread
From: Stephen Hemminger @ 2017-02-28 18:57 UTC (permalink / raw)
  To: James Bottomley
  Cc: Jens Axboe, Christoph Hellwig, Linus Torvalds,
	Martin K. Petersen, K. Y. Srinivasan, Dexuan Cui, Long Li,
	Josh Poulson, v-adsuho, linux-scsi, Haiyang Zhang

On Tue, 28 Feb 2017 09:06:13 -0800
James Bottomley <jejb@linux.vnet.ibm.com> wrote:

> On Tue, 2017-02-28 at 08:32 -0700, Jens Axboe wrote:
> > On 02/28/2017 07:08 AM, Christoph Hellwig wrote:  
> > > On Mon, Feb 27, 2017 at 05:19:31PM -0800, Stephen Hemminger wrote:  
> > > > Fixes: ee5242360424 ("scsi: zero per-cmd driver data before each
> > > > I/O")
> > > > 
> > > > but that is already in linux-next.
> > > > 
> > > > Noticed another place where memset(of the data was being done not
> > > > the extra bits.
> > > > Tried this, but didn't fix it either...  
> > > 
> > > Are you using blk-mq or the legacy request code?  
> > 
> > Stephen doesn't have MQ set in the config he posted, I'm assuming he 
> > didn't boot with scsi_mod.use_blk_mq=true. In a previous email, I 
> > asked if turning on MQ makes a difference.  
> 
> OK, since we're not making much progress, Stephen, could you insert
> some debugging into the storvsc driver?  The trace clearly shows we're
> getting zeros back in the buffer when we should have data from the
> initial scan.  Firstly, does the vmbus think it's transferring any data
> for the INQUIRY and READ_CAPACITY commands (looks like
> storvsc_command_completion() data_transfer_length)?  If it does,
> there's probably an issue initialising the sg list.  If it doesn't,
> we're probably sending bogus commands.
> 
> James
> 

The following code in storvsc looks suspicious

static void storvsc_on_io_completion(struct storvsc_device *stor_device,
				  struct vstor_packet *vstor_packet,
				  struct storvsc_cmd_request *request)
{
	struct vstor_packet *stor_pkt;
	struct hv_device *device = stor_device->device;

	stor_pkt = &request->vstor_packet;

	/*
	 * The current SCSI handling on the host side does
	 * not correctly handle:
	 * INQUIRY command with page code parameter set to 0x80
	 * MODE_SENSE command with cmd[2] == 0x1c
	 *
	 * Setup srb and scsi status so this won't be fatal.
	 * We do this so we can distinguish truly fatal failues
	 * (srb status == 0x4) and off-line the device in that case.
	 */

	if ((stor_pkt->vm_srb.cdb[0] == INQUIRY) ||
	   (stor_pkt->vm_srb.cdb[0] == MODE_SENSE)) {
		vstor_packet->vm_srb.scsi_status = 0;
		vstor_packet->vm_srb.srb_status = SRB_STATUS_SUCCESS;
	}

If SCSI layer is sending inquiry about devices to do scanning then wouldn't this
workaround break things?  Maybe a better to fully test for the broken command.

Original commit was:

commit 4ed51a21c0f69e1379cf858fc21a9d9022bfe0e7
Author: K. Y. Srinivasan <kys@microsoft.com>
Date:   Sat Aug 27 11:31:26 2011 -0700

    Staging: hv: storvsc: Fixup srb and scsi status for INQUIRY and MODE_SENSE
    
    The current VHD handler on the Windows Host does not correctly handle
    INQUIRY and MODE_SENSE commands with some options. Fixup srb_status
    in these cases since the failure is not fatal.
    
    Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
    Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: SCSI regression in 4.11
  2017-02-28 18:41         ` Stephen Hemminger
@ 2017-02-28 19:10           ` James Bottomley
  0 siblings, 0 replies; 49+ messages in thread
From: James Bottomley @ 2017-02-28 19:10 UTC (permalink / raw)
  To: Stephen Hemminger
  Cc: Jens Axboe, Christoph Hellwig, Linus Torvalds,
	Martin K. Petersen, K. Y. Srinivasan, Dexuan Cui, Long Li,
	Josh Poulson, v-adsuho, linux-scsi

On Tue, 2017-02-28 at 10:41 -0800, Stephen Hemminger wrote:
> [    1.652279] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb
> status 0x20 length 36
> [    1.652297] scsi host1: scsi scan: INQUIRY result too short (5),
> using 36

This is definitive.  We sent the Inquiry command, we got 36 bytes of
payload from hyperv (correct size), but when we tried to get the length
from the data buffer of the command, we found zeros where it should
have been (the length is the byte at offset 4 plus 5).  Wherever the
inquiry data went it wasn't into the command buffer ... it's like we
have some type of sg list setup error, but I can't find it.

James

^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: SCSI regression in 4.11
  2017-02-28 18:57         ` Stephen Hemminger
@ 2017-02-28 23:48           ` James Bottomley
  2017-03-01  1:25             ` Stephen Hemminger
  0 siblings, 1 reply; 49+ messages in thread
From: James Bottomley @ 2017-02-28 23:48 UTC (permalink / raw)
  To: Stephen Hemminger
  Cc: Jens Axboe, Christoph Hellwig, Linus Torvalds,
	Martin K. Petersen, K. Y. Srinivasan, Dexuan Cui, Long Li,
	Josh Poulson, v-adsuho, linux-scsi, Haiyang Zhang

On Tue, 2017-02-28 at 10:57 -0800, Stephen Hemminger wrote:
> On Tue, 28 Feb 2017 09:06:13 -0800
> James Bottomley <jejb@linux.vnet.ibm.com> wrote:
> 
> > On Tue, 2017-02-28 at 08:32 -0700, Jens Axboe wrote:
> > > On 02/28/2017 07:08 AM, Christoph Hellwig wrote:  
> > > > On Mon, Feb 27, 2017 at 05:19:31PM -0800, Stephen Hemminger
> > > > wrote:  
> > > > > Fixes: ee5242360424 ("scsi: zero per-cmd driver data before
> > > > > each
> > > > > I/O")
> > > > > 
> > > > > but that is already in linux-next.
> > > > > 
> > > > > Noticed another place where memset(of the data was being done
> > > > > not
> > > > > the extra bits.
> > > > > Tried this, but didn't fix it either...  
> > > > 
> > > > Are you using blk-mq or the legacy request code?  
> > > 
> > > Stephen doesn't have MQ set in the config he posted, I'm assuming
> > > he 
> > > didn't boot with scsi_mod.use_blk_mq=true. In a previous email, I
> > > asked if turning on MQ makes a difference.  
> > 
> > OK, since we're not making much progress, Stephen, could you insert
> > some debugging into the storvsc driver?  The trace clearly shows
> > we're
> > getting zeros back in the buffer when we should have data from the
> > initial scan.  Firstly, does the vmbus think it's transferring any
> > data
> > for the INQUIRY and READ_CAPACITY commands (looks like
> > storvsc_command_completion() data_transfer_length)?  If it does,
> > there's probably an issue initialising the sg list.  If it doesn't,
> > we're probably sending bogus commands.
> > 
> > James
> > 
> 
> The following code in storvsc looks suspicious
> 
> static void storvsc_on_io_completion(struct storvsc_device
> *stor_device,
> 				  struct vstor_packet *vstor_packet,
> 				  struct storvsc_cmd_request *request)
> {
> 	struct vstor_packet *stor_pkt;
> 	struct hv_device *device = stor_device->device;
> 
> 	stor_pkt = &request->vstor_packet;
> 
> 	/*
> 	 * The current SCSI handling on the host side does
> 	 * not correctly handle:
> 	 * INQUIRY command with page code parameter set to 0x80
> 	 * MODE_SENSE command with cmd[2] == 0x1c
> 	 *
> 	 * Setup srb and scsi status so this won't be fatal.
> 	 * We do this so we can distinguish truly fatal failues
> 	 * (srb status == 0x4) and off-line the device in that case.
> 	 */
> 
> 	if ((stor_pkt->vm_srb.cdb[0] == INQUIRY) ||
> 	   (stor_pkt->vm_srb.cdb[0] == MODE_SENSE)) {
> 		vstor_packet->vm_srb.scsi_status = 0;
> 		vstor_packet->vm_srb.srb_status = SRB_STATUS_SUCCESS;
> 	}
> 
> If SCSI layer is sending inquiry about devices to do scanning then 
> wouldn't this workaround break things?  Maybe a better to fully test 
> for the broken command.

Let's concentrate on INQUIRY since that's the first command in the
probe sequence.  I think it's completing successfully because your
hyperv layer says it has 36 bytes of transfer and that's the size of a
successful initial INQUIRY, so the fact that the code above would break
stuff if the INQUIRY failed is orthogonal to the the current problem.

can you print out some of the DMA buffer in storvsc_on_io_completion()?

I think just the stor_pkt->vm_srb.cdb[0] (to identify the command
completing) and byte 5 of the buffer will tell us what we need to know.
 It's going to be complex to get byte 5, you'll need to do a
kmap_atomic_pfn on request->payload->range.pfn_array[0] and then look
at byte 5.  If that's zero it means there's some problem with hyperv
writing to the pfn if it's 0x24 (expected value for an initial inquiry)
we've got a problem somewhere in bio completion not copying the value
back.

James

^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: SCSI regression in 4.11
  2017-02-28 23:48           ` James Bottomley
@ 2017-03-01  1:25             ` Stephen Hemminger
  2017-03-01  6:20               ` James Bottomley
  0 siblings, 1 reply; 49+ messages in thread
From: Stephen Hemminger @ 2017-03-01  1:25 UTC (permalink / raw)
  To: James Bottomley
  Cc: Jens Axboe, Christoph Hellwig, Linus Torvalds,
	Martin K. Petersen, K. Y. Srinivasan, Dexuan Cui, Long Li,
	Josh Poulson, v-adsuho, linux-scsi, Haiyang Zhang


> Let's concentrate on INQUIRY since that's the first command in the
> probe sequence.  I think it's completing successfully because your
> hyperv layer says it has 36 bytes of transfer and that's the size of a
> successful initial INQUIRY, so the fact that the code above would break
> stuff if the INQUIRY failed is orthogonal to the the current problem.

Right, that bodge only breaks some minor things likes scsiinfo commands.

> can you print out some of the DMA buffer in storvsc_on_io_completion()?
> 
> I think just the stor_pkt->vm_srb.cdb[0] (to identify the command
> completing) and byte 5 of the buffer will tell us what we need to know.
>  It's going to be complex to get byte 5, you'll need to do a
> kmap_atomic_pfn on request->payload->range.pfn_array[0] and then look
> at byte 5.  If that's zero it means there's some problem with hyperv
> writing to the pfn if it's 0x24 (expected value for an initial inquiry)
> we've got a problem somewhere in bio completion not copying the value
> back.

Here is another boot, this time went dumpster diving as you suggested
to get the request data.



diff --git a/drivers/scsi/storvsc_drv.c b/drivers/scsi/storvsc_drv.c
index 2af63a80c7fa..a51d8eba6e04 100644
--- a/drivers/scsi/storvsc_drv.c
+++ b/drivers/scsi/storvsc_drv.c
@@ -1059,6 +1059,21 @@ static void storvsc_on_io_completion(struct storvsc_device *stor_device,
 		vstor_packet->vm_srb.srb_status,
 		vstor_packet->vm_srb.data_transfer_length);
 
+	if (stor_pkt->vm_srb.cdb[0] == INQUIRY)	{
+		struct scsi_cmnd *cmd = request->cmd;
+		struct scatterlist *sg = scsi_sglist(cmd);
+		struct page *page = sg_page(sg);
+		void *vaddr = kmap_atomic(page);
+		
+		print_hex_dump(KERN_INFO,
+			       "inquiry data: ", DUMP_PREFIX_OFFSET,
+			       16, 1,
+			       vaddr, vstor_packet->vm_srb.data_transfer_length,
+			       false);
+
+		kunmap_atomic(page);
+	}
+
 	/*
 	 * The current SCSI handling on the host side does
 	 * not correctly handle:

Which results in:
...

[    1.225501] scsi host0: storvsc_host_t
[    1.234707] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    1.235517] scsi host1: storvsc_host_t
[    1.238037] inquiry data: 00000000: 00 23 34 f1 5c 98 ff ff f0 64 02 89 ff ff ff ff
[    1.256800] inquiry data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    1.259430] inquiry data: 00000020: 00 00 00 00
[    1.261431] scsi 0:0:0:0: Direct-Access     Msft     Virtual Disk     1.0  PQ: 0 ANSI: 5
[    1.264080] hv_storvsc:  IO cmd 0x12 0x1 0x0 scsi status 0x0 srb status 0x1 length 12
[    1.267420] inquiry data: 00000000: 00 00 00 08 00 83 8f b0 b1 b2 ce cf
[    1.270759] hv_storvsc:  IO cmd 0x12 0x1 0x83 scsi status 0x0 srb status 0x1 length 52
[    1.275007] inquiry data: 00000000: 00 83 00 30 01 01 00 18 4d 53 46 54 20 20 20 20
[    1.277988] inquiry data: 00000010: 43 77 cc 85 5f 19 c2 46 ac 48 c7 33 b9 dd 2d 2a
[    1.281096] inquiry data: 00000020: 01 03 00 10 60 02 24 80 43 77 cc 85 5f 19 c7 33
[    1.284246] inquiry data: 00000030: b9 dd 2d 2a
[    1.306538] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    1.310621] inquiry data: 00000000: 00 92 be f1 5c 98 ff ff f0 64 02 89 ff ff ff ff
[    1.316244] inquiry data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    1.328151] random: fast init done
[    1.340184] inquiry data: 00000020: 00 00 00 00
[    1.342710] scsi 1:0:0:0: CD-ROM            Msft     Virtual DVD-ROM  1.0  PQ: 0 ANSI: 0
[    1.346023] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x20 length 36
[    1.352913] inquiry data: 00000000: 00 aa be f1 5c 98 ff ff f0 64 02 89 ff ff ff ff
[    1.356543] inquiry data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    1.359996] inquiry data: 00000020: 00 00 00 00
[    1.361835] scsi host1: scsi scan: INQUIRY result too short (5), using 36
[    1.361888] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 16
[    1.362307] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    1.362308] inquiry data: 00000000: 00 23 34 f1 5c 98 ff ff f0 64 02 89 ff ff ff ff
[    1.362309] inquiry data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    1.362309] inquiry data: 00000020: 00 00 00 00
[    1.377423] scsi 1:0:0:1: Direct-Access                                    PQ: 0 ANSI: 0
[    1.399208] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x20 length 36
[    1.402836] inquiry data: 00000000: 00 a3 be f1 5c 98 ff ff 00 00 00 00 00 00 00 00
[    1.406466] inquiry data: 00000010: 00 00 00 00 00 00 00 00 c0 30 66 f9 5c 98 ff ff
[    1.409766] inquiry data: 00000020: 00 00 00 00
[    1.412366] scsi 1:0:0:2: Direct-Access                                    PQ: 0 ANSI: 0
[    1.412456] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 4096
[    1.418750] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x20 length 36
[    1.421624] inquiry data: 00000000: 00 92 be f1 5c 98 ff ff f0 64 02 89 ff ff ff ff
[    1.424629] inquiry data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    1.432565] inquiry data: 00000020: 00 00 00 00
[    1.433690] scsi 1:0:0:3: Direct-Access                                    PQ: 0 ANSI: 0
[    1.433751] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    1.433753] inquiry data: 00000000: 00 2d 34 f1 5c 98 ff ff f0 64 02 89 ff ff ff ff
[    1.433753] inquiry data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    1.433753] inquiry data: 00000020: 00 00 00 00
[    1.465775] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x20 length 36
[    1.468640] inquiry data: 00000000: 00 92 be f1 5c 98 ff ff f0 64 02 89 ff ff ff ff
[    1.471717] inquiry data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    1.474466] inquiry data: 00000020: 00 00 00 00
[    1.476624] scsi 1:0:0:4: Direct-Access                                    PQ: 0 ANSI: 0
[    1.476777] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 4096
[    1.482802] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x20 length 36
[    1.485801] inquiry data: 00000000: 00 92 be f1 5c 98 ff ff f0 64 02 89 ff ff ff ff
[    1.493743] inquiry data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    1.495724] inquiry data: 00000020: 00 00 00 00
[    1.497451] scsi 1:0:0:5: Direct-Access                                    PQ: 0 ANSI: 0
[    1.497557] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    1.497558] inquiry data: 00000000: 00 2d 34 f1 5c 98 ff ff f0 64 02 89 ff ff ff ff
[    1.497559] inquiry data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    1.497559] inquiry data: 00000020: 00 00 00 00
[    1.529199] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x20 length 36
[    1.532055] inquiry data: 00000000: 00 a3 be f1 5c 98 ff ff 00 00 00 00 00 00 00 00
[    1.535076] inquiry data: 00000010: 00 00 00 00 00 00 00 00 c0 30 66 f9 5c 98 ff ff
[    1.537601] inquiry data: 00000020: 00 00 00 00
[    1.539463] scsi 1:0:0:6: Direct-Access                                    PQ: 0 ANSI: 0
[    1.539523] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 4096
[    1.545625] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x20 length 36
[    1.549238] inquiry data: 00000000: 00 00 00 00 00 00 00 00 f0 64 02 89 ff ff ff ff
[    1.558838] inquiry data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    1.561775] inquiry data: 00000020: 00 00 00 00
[    1.564193] scsi 1:0:0:7: Direct-Access                                    PQ: 0 ANSI: 0
[    1.564286] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    1.564287] inquiry data: 00000000: 00 2d 34 f1 5c 98 ff ff f0 64 02 89 ff ff ff ff
[    1.564288] inquiry data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    1.564288] inquiry data: 00000020: 00 00 00 00
[    1.591962] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    1.594803] inquiry data: 00000000: 00 b3 be f1 5c 98 ff ff f0 64 02 89 ff ff ff ff
[    1.597613] inquiry data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    1.600483] inquiry data: 00000020: 00 00 00 00
[    1.602473] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 4096
[    1.602979] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 4096
[    1.605686] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    1.608562] inquiry data: 00000000: 00 b3 be f1 5c 98 ff ff f0 64 02 89 ff ff ff ff
[    1.612031] inquiry data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    1.621398] inquiry data: 00000020: 00 00 00 00
[    1.623612] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    1.624081] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 4096
[    1.627608] inquiry data: 00000000: 00 2d 34 f1 5c 98 ff ff f0 64 02 89 ff ff ff ff
[    1.627608] inquiry data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    1.627608] inquiry data: 00000020: 00 00 00 00
[    1.656428] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    1.659541] inquiry data: 00000000: 00 b3 be f1 5c 98 ff ff f0 64 02 89 ff ff ff ff
[    1.662333] inquiry data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    1.665187] inquiry data: 00000020: 00 00 00 00
[    1.666998] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 4096
[    1.670735] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 4096
[    1.673517] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    1.677515] inquiry data: 00000000: 00 2d 34 f1 5c 98 ff ff f0 64 02 89 ff ff ff ff
[    1.677515] inquiry data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    1.677515] inquiry data: 00000020: 00 00 00 00
[    1.690656] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    1.694467] inquiry data: 00000000: 00 b3 be f1 5c 98 ff ff f0 64 02 89 ff ff ff ff
[    1.697643] inquiry data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    1.700563] inquiry data: 00000020: 00 00 00 00
[    1.702595] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 4096
[    1.702962] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 4096
[    1.726145] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    1.729919] inquiry data: 00000000: 00 b3 be f1 5c 98 ff ff f0 64 02 89 ff ff ff ff
[    1.733720] inquiry data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    1.736863] inquiry data: 00000020: 00 00 00 00
[    1.740093] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    1.740194] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 4096
[    1.744076] inquiry data: 00000000: 00 2d 34 f1 5c 98 ff ff f0 64 02 89 ff ff ff ff
[    1.744076] inquiry data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    1.744076] inquiry data: 00000020: 00 00 00 00
[    1.772956] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    1.776953] inquiry data: 00000000: 00 b3 be f1 5c 98 ff ff f0 64 02 89 ff ff ff ff
[    1.779680] inquiry data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    1.782218] inquiry data: 00000020: 00 00 00 00
[    1.784394] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 4096
[    1.784626] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 4096
[    1.792094] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    1.795247] inquiry data: 00000000: 00 b3 be f1 5c 98 ff ff f0 64 02 89 ff ff ff ff
[    1.797827] inquiry data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    1.802734] inquiry data: 00000020: 00 00 00 00
[    1.819848] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    1.820240] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 4096
[    1.823843] inquiry data: 00000000: 00 2d 34 f1 5c 98 ff ff f0 64 02 89 ff ff ff ff
[    1.823843] inquiry data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    1.823843] inquiry data: 00000020: 00 00 00 00
[    1.834404] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    1.834447] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 4096
[    1.840676] inquiry data: 00000000: 00 b3 be f1 5c 98 ff ff f0 64 02 89 ff ff ff ff
[    1.843780] inquiry data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    1.846374] inquiry data: 00000020: 00 00 00 00
[    1.863480] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 4096
[    1.863527] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    1.863552] inquiry data: 00000000: 00 2d 34 f1 5c 98 ff ff f0 64 02 89 ff ff ff ff
[    1.863553] inquiry data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    1.863564] inquiry data: 00000020: 00 00 00 00
[    1.884017] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    1.884018] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 4096
[    1.891512] inquiry data: 00000000: 00 b3 be f1 5c 98 ff ff f0 64 02 89 ff ff ff ff
[    1.903984] inquiry data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    1.915662] inquiry data: 00000020: 00 00 00 00
[    1.917991] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    1.917998] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 4096
[    1.924404] inquiry data: 00000000: 00 2d 34 f1 5c 98 ff ff f0 64 02 89 ff ff ff ff
[    1.927723] inquiry data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    1.930174] inquiry data: 00000020: 00 00 00 00
[    1.932514] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    1.932508] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 4096
[    1.940019] inquiry data: 00000000: 00 b3 be f1 5c 98 ff ff f0 64 02 89 ff ff ff ff
[    1.956298] inquiry data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    1.962475] inquiry data: 00000020: 00 00 00 00
[    1.965476] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    1.968215] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 4096
[    1.971735] inquiry data: 00000000: 00 2d 34 f1 5c 98 ff ff f0 64 02 89 ff ff ff ff
[    1.973634] inquiry data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    1.975698] inquiry data: 00000020: 00 00 00 00
[    1.977125] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    1.979795] inquiry data: 00000000: 00 b3 be f1 5c 98 ff ff f0 64 02 89 ff ff ff ff
[    1.981025] inquiry data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    1.982616] inquiry data: 00000020: 00 00 00 00
[    1.984502] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 4096
[    1.984717] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 4096
[    2.008517] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    2.011539] inquiry data: 00000000: 00 b3 be f1 5c 98 ff ff f0 64 02 89 ff ff ff ff
[    2.013973] inquiry data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    2.016679] inquiry data: 00000020: 00 00 00 00
[    2.018610] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    2.018823] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 4096
[    2.024671] inquiry data: 00000000: 00 2d 34 f1 5c 98 ff ff f0 64 02 89 ff ff ff ff
[    2.027955] inquiry data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    2.030679] inquiry data: 00000020: 00 00 00 00
[    2.033142] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    2.042496] inquiry data: 00000000: 00 b3 be f1 5c 98 ff ff f0 64 02 89 ff ff ff ff
[    2.056213] inquiry data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    2.059225] inquiry data: 00000020: 00 00 00 00
[    2.060987] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 4096
[    2.061371] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 4096
[    2.086089] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    2.088962] inquiry data: 00000000: 00 b3 be f1 5c 98 ff ff f0 64 02 89 ff ff ff ff
[    2.091849] inquiry data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    2.094272] inquiry data: 00000020: 00 00 00 00
[    2.096274] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    2.096535] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 4096
[    2.100269] inquiry data: 00000000: 00 2d 34 f1 5c 98 ff ff f0 64 02 89 ff ff ff ff
[    2.100269] inquiry data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    2.100269] inquiry data: 00000020: 00 00 00 00
[    2.109952] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    2.112806] inquiry data: 00000000: 00 b3 be f1 5c 98 ff ff f0 64 02 89 ff ff ff ff
[    2.121465] inquiry data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    2.124358] inquiry data: 00000020: 00 00 00 00
[    2.126483] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 4096
[    2.126840] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 4096
[    2.134173] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    2.136972] inquiry data: 00000000: 00 2d 34 f1 5c 98 ff ff f0 64 02 89 ff ff ff ff
[    2.140007] inquiry data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    2.142548] inquiry data: 00000020: 00 00 00 00
[    2.152163] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 4096
[    2.165698] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    2.169146] inquiry data: 00000000: 00 2d 34 f1 5c 98 ff ff f0 64 02 89 ff ff ff ff
[    2.169694] inquiry data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    2.169694] inquiry data: 00000020: 00 00 00 00
[    2.181106] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb status 0x1 length 4096
[    2.184852] hv_storvsc:  IO cmd 0x0 0x0 0x0 scsi status 0x0 srb status 0x1 length 0
[    2.184927] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    2.185119] hv_storvsc:  IO cmd 0x0 0x0 0x0 scsi status 0x2 srb status 0x84 length 0
[    2.185170] hv_storvsc:  IO cmd 0x1a 0x0 0x2a scsi status 0x2 srb status 0x6 length 128
[    2.185189] sr 1:0:0:0: [sr0] scsi3-mmc drive: 0x/0x caddy
[    2.185190] cdrom: Uniform CD-ROM driver Revision: 3.20
[    2.185427] hv_storvsc:  IO cmd 0x4a 0x1 0x0 scsi status 0x0 srb status 0x1 length 8
[    2.185471] sr 1:0:0:0: Attached scsi generic sg1 type 5
[    2.185622] hv_storvsc:  IO cmd 0x4a 0x1 0x0 scsi status 0x0 srb status 0x1 length 8
[    2.185666] hv_storvsc:  IO cmd 0x0 0x0 0x0 scsi status 0x0 srb status 0x20 length 8
[    2.185673] sd 1:0:0:1: Attached scsi generic sg2 type 0
[    2.185722] hv_storvsc:  IO cmd 0x25 0x0 0x0 scsi status 0x0 srb status 0x20 length 8
[    2.185816] hv_storvsc:  IO cmd 0x0 0x0 0x0 scsi status 0x2 srb status 0x84 length 0
[    2.185851] sd 1:0:0:1: [sdb] Sector size 0 reported, assuming 512.
[    2.185853] sd 1:0:0:1: [sdb] 1 512-byte logical blocks: (512 B/512 B)
[    2.185854] sd 1:0:0:1: [sdb] 0-byte physical blocks
[    2.185860] hv_storvsc:  IO cmd 0x1a 0x0 0x3f scsi status 0x0 srb status 0x20 length 4
[    2.185865] sd 1:0:0:2: Attached scsi generic sg3 type 0
[    2.185979] sd 1:0:0:1: [sdb] Write Protect is off
[    2.186030] hv_storvsc:  IO cmd 0x0 0x0 0x0 scsi status 0x2 srb status 0x84 length 0
[    2.186038] hv_storvsc:  IO cmd 0x1a 0x0 0x8 scsi status 0x0 srb status 0x20 length 4
[    2.186247] sd 1:0:0:1: [sdb] Asking for cache data failed
[    2.186247] sd 1:0:0:1: [sdb] Assuming drive cache: write through
[    2.186603] hv_storvsc:  IO cmd 0x0 0x0 0x0 scsi status 0x0 srb status 0x20 length 4
[    2.186637] hv_storvsc:  IO cmd 0x25 0x0 0x0 scsi status 0x0 srb status 0x20 length 8
[    2.186686] sd 1:0:0:1: [sdb] Sector size 0 reported, assuming 512.
[    2.186665] hv_storvsc:  IO cmd 0x1a 0x0 0x3f scsi status 0x0 srb status 0x20 length 4
[    2.186685] hv_storvsc:  IO cmd 0x1a 0x0 0x8 scsi status 0x0 srb status 0x20 length 4
[    2.186771] sd 1:0:0:3: Attached scsi generic sg4 type 0
[    2.186849] hv_storvsc:  IO cmd 0x0 0x0 0x0 scsi status 0x0 srb status 0x20 length 8
[    2.186861] hv_storvsc:  IO cmd 0x25 0x0 0x0 scsi status 0x0 srb status 0x20 length 8
[    2.186965] hv_storvsc:  IO cmd 0x0 0x0 0x0 scsi status 0x0 srb status 0x20 length 0
[    2.187002] hv_storvsc:  IO cmd 0x25 0x0 0x0 scsi status 0x0 srb status 0x20 length 8
[    2.186990] hv_storvsc:  IO cmd 0x28 0x0 0x0 scsi status 0x0 srb status 0x20 length 512
[    2.186999] sd 1:0:0:4: Attached scsi generic sg5 type 0
[    2.187023] sd 1:0:0:3: [sdd] Sector size 0 reported, assuming 512.
[    2.187025] sd 1:0:0:3: [sdd] 1 512-byte logical blocks: (512 B/512 B)
[    2.187026] sd 1:0:0:3: [sdd] 0-byte physical blocks
[    2.187073] hv_storvsc:  IO cmd 0x1a 0x0 0x3f scsi status 0x0 srb status 0x20 length 4
[    2.187054] sd 1:0:0:3: [sdd] Write Protect is off
[    2.187106] hv_storvsc:  IO cmd 0x1a 0x0 0x8 scsi status 0x0 srb status 0x20 length 4
[    2.187225] sd 1:0:0:3: [sdd] Asking for cache data failed
[    2.187226] sd 1:0:0:3: [sdd] Assuming drive cache: write through
[    2.187267] sd 1:0:0:5: Attached scsi generic sg6 type 0
[    2.187579] hv_storvsc:  IO cmd 0x4a 0x1 0x0 scsi status 0x0 srb status 0x1 length 8
[    2.187613] hv_storvsc:  IO cmd 0x0 0x0 0x0 scsi status 0x2 srb status 0x84 length 0
[    2.187644] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    2.187645] inquiry data: 00000000: 05 80 00 02 1f 00 00 00 4d 73 66 74 20 20 20 20
[    2.187646] inquiry data: 00000010: 56 69 72 74 75 61 6c 20 44 56 44 2d 52 4f 4d 20
[    2.187646] inquiry data: 00000020: 31 2e 30 20
[    2.187751] sd 1:0:0:2: [sdc] Sector size 0 reported, assuming 512.
[    2.187695] sd 1:0:0:6: Attached scsi generic sg7 type 0
[    2.187754] sd 1:0:0:2: [sdc] 1 512-byte logical blocks: (512 B/512 B)
[    2.187762] sd 1:0:0:2: [sdc] 0-byte physical blocks
[    2.187786] hv_storvsc:  IO cmd 0x4a 0x1 0x0 scsi status 0x0 srb status 0x1 length 8
[    2.187786] hv_storvsc:  IO cmd 0x0 0x0 0x0 scsi status 0x0 srb status 0x20 length 4
[    2.187746] hv_storvsc:  IO cmd 0x1a 0x0 0x3f scsi status 0x0 srb status 0x20 length 4
[    2.187790] hv_storvsc:  IO cmd 0x0 0x0 0x0 scsi status 0x2 srb status 0x84 length 0
[    2.187841] sd 1:0:0:2: [sdc] Write Protect is off
[    2.187796] hv_storvsc:  IO cmd 0x1a 0x0 0x8 scsi status 0x0 srb status 0x20 length 4
[    2.187799] hv_storvsc:  IO cmd 0x12 0x1 0x0 scsi status 0x0 srb status 0x1 length 6
[    2.187800] inquiry data: 00000000: 05 00 00 02 00 83
[    2.187893] sd 1:0:0:2: [sdc] Asking for cache data failed
[    2.187894] sd 1:0:0:2: [sdc] Assuming drive cache: write through
[    2.188016] hv_storvsc:  IO cmd 0x25 0x0 0x0 scsi status 0x0 srb status 0x20 length 8
** 812 printk messages dropped ** [    2.211818] hv_storvsc:  IO cmd 0x28 0x0 0x0 scsi status 0x0 srb status 0x20 length 512
** 881 printk messages dropped ** [    2.217316] hv_storvsc:  IO cmd 0x28 0x0 0x0 scsi status 0x0 srb status 0x20 length 512
** 671 printk messages dropped ** [    2.222495] hv_storvsc:  IO cmd 0x28 0x0 0x0 scsi status 0x0 srb status 0x20 length 512
** 136 printk messages dropped ** [    2.223813] hv_storvsc:  IO cmd 0x28 0x0 0x0 scsi status 0x0 srb status 0x20 length 512
** 477 printk messages dropped ** [    2.227906] hv_storvsc:  IO cmd 0x28 0x0 0x0 scsi status 0x0 srb status 0x20 length 512
** 768 printk messages dropped ** [    2.232439] hv_storvsc:  IO cmd 0x28 0x0 0x0 scsi status 0x0 srb status 0x20 length 512
** 389 printk messages dropped ** [    2.234770] hv_storvsc:  IO cmd 0x28 0x0 0x0 scsi status 0x0 srb status 0x20 lengt

^ permalink raw reply related	[flat|nested] 49+ messages in thread

* Re: SCSI regression in 4.11
  2017-03-01  1:25             ` Stephen Hemminger
@ 2017-03-01  6:20               ` James Bottomley
  2017-03-01  6:48                 ` Stephen Hemminger
  2017-03-01 18:48                 ` Stephen Hemminger
  0 siblings, 2 replies; 49+ messages in thread
From: James Bottomley @ 2017-03-01  6:20 UTC (permalink / raw)
  To: Stephen Hemminger
  Cc: Jens Axboe, Christoph Hellwig, Linus Torvalds,
	Martin K. Petersen, K. Y. Srinivasan, Dexuan Cui, Long Li,
	Josh Poulson, v-adsuho, linux-scsi, Haiyang Zhang

On Tue, 2017-02-28 at 17:25 -0800, Stephen Hemminger wrote:
> [    1.346023] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb
> status 0x20 length 36
> [    1.352913] inquiry data: 00000000: 00 aa be f1 5c 98 ff ff f0 64
> 02 89 ff ff ff ff
> [    1.356543] inquiry data: 00000010: 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00
> [    1.359996] inquiry data: 00000020: 00 00 00 00
> [    1.361835] scsi host1: scsi scan: INQUIRY result too short (5),
> using 36
> [    1.361888] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb
> status 0x1 length 16
> [    1.362307] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb
> status 0x1 length 36
> [    1.362308] inquiry data: 00000000: 00 23 34 f1 5c 98 ff ff f0 64
> 02 89 ff ff ff ff
> [    1.362309] inquiry data: 00000010: 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00
> [    1.362309] inquiry data: 00000020: 00 00 00 00
> [    1.377423] scsi 1:0:0:1: Direct-Access                           
>          PQ: 0 ANSI: 0

Well, this pinpoints the fault to the block uncopy, I think.  The
Inquiry data is clearly correct in the page frame, so it's not getting
copied to the scsi_execute() buffer for some reason.

James

^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: SCSI regression in 4.11
  2017-03-01  6:20               ` James Bottomley
@ 2017-03-01  6:48                 ` Stephen Hemminger
  2017-03-01 15:50                   ` Christoph Hellwig
  2017-03-01 18:48                 ` Stephen Hemminger
  1 sibling, 1 reply; 49+ messages in thread
From: Stephen Hemminger @ 2017-03-01  6:48 UTC (permalink / raw)
  To: James Bottomley
  Cc: Jens Axboe, Christoph Hellwig, Linus Torvalds,
	Martin K. Petersen, K. Y. Srinivasan, Dexuan Cui, Long Li,
	Josh Poulson, v-adsuho, linux-scsi, Haiyang Zhang

On Tue, 28 Feb 2017 22:20:58 -0800
James Bottomley <jejb@linux.vnet.ibm.com> wrote:

> On Tue, 2017-02-28 at 17:25 -0800, Stephen Hemminger wrote:
> > [    1.346023] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb
> > status 0x20 length 36
> > [    1.352913] inquiry data: 00000000: 00 aa be f1 5c 98 ff ff f0 64
> > 02 89 ff ff ff ff
> > [    1.356543] inquiry data: 00000010: 00 00 00 00 00 00 00 00 00 00
> > 00 00 00 00 00 00
> > [    1.359996] inquiry data: 00000020: 00 00 00 00
> > [    1.361835] scsi host1: scsi scan: INQUIRY result too short (5),
> > using 36
> > [    1.361888] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb
> > status 0x1 length 16
> > [    1.362307] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb
> > status 0x1 length 36
> > [    1.362308] inquiry data: 00000000: 00 23 34 f1 5c 98 ff ff f0 64
> > 02 89 ff ff ff ff
> > [    1.362309] inquiry data: 00000010: 00 00 00 00 00 00 00 00 00 00
> > 00 00 00 00 00 00
> > [    1.362309] inquiry data: 00000020: 00 00 00 00
> > [    1.377423] scsi 1:0:0:1: Direct-Access                           
> >          PQ: 0 ANSI: 0  
> 
> Well, this pinpoints the fault to the block uncopy, I think.  The
> Inquiry data is clearly correct in the page frame, so it's not getting
> copied to the scsi_execute() buffer for some reason.
> 
> James
> 

Let me know, I can run another test and dump more data.

^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: SCSI regression in 4.11
  2017-03-01  6:48                 ` Stephen Hemminger
@ 2017-03-01 15:50                   ` Christoph Hellwig
  2017-03-01 15:54                     ` Stephen Hemminger
  2017-03-01 16:13                     ` Stephen Hemminger
  0 siblings, 2 replies; 49+ messages in thread
From: Christoph Hellwig @ 2017-03-01 15:50 UTC (permalink / raw)
  To: Stephen Hemminger
  Cc: James Bottomley, Jens Axboe, Christoph Hellwig, Linus Torvalds,
	Martin K. Petersen, K. Y. Srinivasan, Dexuan Cui, Long Li,
	Josh Poulson, v-adsuho, linux-scsi, Haiyang Zhang

On Tue, Feb 28, 2017 at 10:48:45PM -0800, Stephen Hemminger wrote:
> Let me know, I can run another test and dump more data.

Could it be that we keep the old sense buffer values around because
my commit change the way how sense buffers are handled.  A while ago
I suggested this patch to fix it, so maybe you can try it:

	http://git.infradead.org/users/hch/block.git/commitdiff/148cff67b401e2229c076c0ea418712654be77e4

^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: SCSI regression in 4.11
  2017-03-01 15:50                   ` Christoph Hellwig
@ 2017-03-01 15:54                     ` Stephen Hemminger
  2017-03-02  0:01                       ` Christoph Hellwig
  2017-03-01 16:13                     ` Stephen Hemminger
  1 sibling, 1 reply; 49+ messages in thread
From: Stephen Hemminger @ 2017-03-01 15:54 UTC (permalink / raw)
  To: Christoph Hellwig
  Cc: James Bottomley, Jens Axboe, Linus Torvalds, Martin K. Petersen,
	K. Y. Srinivasan, Dexuan Cui, Long Li, Josh Poulson, v-adsuho,
	linux-scsi, Haiyang Zhang

On Wed, 1 Mar 2017 16:50:57 +0100
Christoph Hellwig <hch@lst.de> wrote:

> On Tue, Feb 28, 2017 at 10:48:45PM -0800, Stephen Hemminger wrote:
> > Let me know, I can run another test and dump more data.  
> 
> Could it be that we keep the old sense buffer values around because
> my commit change the way how sense buffers are handled.  A while ago
> I suggested this patch to fix it, so maybe you can try it:
> 
> 	http://git.infradead.org/users/hch/block.git/commitdiff/148cff67b401e2229c076c0ea418712654be77e4

It appears that is already in the code I am testing in linux-next...

bool scsi_normalize_sense(const u8 *sense_buffer, int sb_len,
			  struct scsi_sense_hdr *sshdr)
{
	memset(sshdr, 0, sizeof(struct scsi_sense_hdr));

	if (!sense_buffer || !sb_len)
		return false;

	sshdr->response_code = (sense_buffer[0] & 0x7f);

	if (!scsi_sense_valid(sshdr))

^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: SCSI regression in 4.11
  2017-03-01 15:50                   ` Christoph Hellwig
  2017-03-01 15:54                     ` Stephen Hemminger
@ 2017-03-01 16:13                     ` Stephen Hemminger
  1 sibling, 0 replies; 49+ messages in thread
From: Stephen Hemminger @ 2017-03-01 16:13 UTC (permalink / raw)
  To: Christoph Hellwig
  Cc: James Bottomley, Jens Axboe, Linus Torvalds, Martin K. Petersen,
	K. Y. Srinivasan, Dexuan Cui, Long Li, Josh Poulson, v-adsuho,
	linux-scsi, Haiyang Zhang

Dexuan has reproduced the same problem and discovered that is related to whether virtual DVD is
attached to the VM.  My VM had empty virtual DVD (offline) from the installation of the ISO.
If the DVD device is removed then the VM boots.

This makes the problem less of a catastrophic but we still need to get to root cause.

^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: SCSI regression in 4.11
  2017-03-01  6:20               ` James Bottomley
  2017-03-01  6:48                 ` Stephen Hemminger
@ 2017-03-01 18:48                 ` Stephen Hemminger
  2017-03-01 18:57                   ` James Bottomley
  2017-03-01 19:00                   ` Linus Torvalds
  1 sibling, 2 replies; 49+ messages in thread
From: Stephen Hemminger @ 2017-03-01 18:48 UTC (permalink / raw)
  To: James Bottomley
  Cc: Jens Axboe, Christoph Hellwig, Linus Torvalds,
	Martin K. Petersen, K. Y. Srinivasan, Dexuan Cui, Long Li,
	Josh Poulson, v-adsuho, linux-scsi, Haiyang Zhang

On Tue, 28 Feb 2017 22:20:58 -0800
James Bottomley <jejb@linux.vnet.ibm.com> wrote:

> On Tue, 2017-02-28 at 17:25 -0800, Stephen Hemminger wrote:
> > [    1.346023] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb
> > status 0x20 length 36
> > [    1.352913] inquiry data: 00000000: 00 aa be f1 5c 98 ff ff f0 64
> > 02 89 ff ff ff ff
> > [    1.356543] inquiry data: 00000010: 00 00 00 00 00 00 00 00 00 00
> > 00 00 00 00 00 00
> > [    1.359996] inquiry data: 00000020: 00 00 00 00
> > [    1.361835] scsi host1: scsi scan: INQUIRY result too short (5),
> > using 36
> > [    1.361888] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0 srb
> > status 0x1 length 16
> > [    1.362307] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0 srb
> > status 0x1 length 36
> > [    1.362308] inquiry data: 00000000: 00 23 34 f1 5c 98 ff ff f0 64
> > 02 89 ff ff ff ff
> > [    1.362309] inquiry data: 00000010: 00 00 00 00 00 00 00 00 00 00
> > 00 00 00 00 00 00
> > [    1.362309] inquiry data: 00000020: 00 00 00 00
> > [    1.377423] scsi 1:0:0:1: Direct-Access                           
> >          PQ: 0 ANSI: 0  
> 
> Well, this pinpoints the fault to the block uncopy, I think.  The
> Inquiry data is clearly correct in the page frame, so it's not getting
> copied to the scsi_execute() buffer for some reason.
> 
> James
> 

Why do I see different sense data on good (4.10) versus bad (4.11)

Good 4.10 initial INQUIRY buffer
[    1.012413] data: 00000000: 00 2e 64 71 db 97 ff ff f0 94 62 96 ff ff ff ff
[    1.012413] data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    1.012414] data: 00000020: 00 00 00 00

Bad 4.11 initial INQUIRY buffer  
[    1.218159] data: 00000000: 00 00 05 02 1f 00 00 02 4d 73 66 74 20 20 20 20
[    1.225654] data: 00000010: 56 69 72 74 75 61 6c 20 44 69 73 6b 20 20 20 20
[    1.242930] data: 00000020: 31 2e 30 20

Is the kmap_atomic looking at the right place?

^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: SCSI regression in 4.11
  2017-03-01 18:48                 ` Stephen Hemminger
@ 2017-03-01 18:57                   ` James Bottomley
  2017-03-01 19:20                     ` James Bottomley
  2017-03-01 19:00                   ` Linus Torvalds
  1 sibling, 1 reply; 49+ messages in thread
From: James Bottomley @ 2017-03-01 18:57 UTC (permalink / raw)
  To: Stephen Hemminger
  Cc: Jens Axboe, Christoph Hellwig, Linus Torvalds,
	Martin K. Petersen, K. Y. Srinivasan, Dexuan Cui, Long Li,
	Josh Poulson, v-adsuho, linux-scsi, Haiyang Zhang

On Wed, 2017-03-01 at 10:48 -0800, Stephen Hemminger wrote:
> On Tue, 28 Feb 2017 22:20:58 -0800
> James Bottomley <jejb@linux.vnet.ibm.com> wrote:
> 
> > On Tue, 2017-02-28 at 17:25 -0800, Stephen Hemminger wrote:
> > > [    1.346023] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0
> > > srb
> > > status 0x20 length 36
> > > [    1.352913] inquiry data: 00000000: 00 aa be f1 5c 98 ff ff f0
> > > 64
> > > 02 89 ff ff ff ff
> > > [    1.356543] inquiry data: 00000010: 00 00 00 00 00 00 00 00 00
> > > 00
> > > 00 00 00 00 00 00
> > > [    1.359996] inquiry data: 00000020: 00 00 00 00
> > > [    1.361835] scsi host1: scsi scan: INQUIRY result too short
> > > (5),
> > > using 36
> > > [    1.361888] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0
> > > srb
> > > status 0x1 length 16
> > > [    1.362307] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0
> > > srb
> > > status 0x1 length 36
> > > [    1.362308] inquiry data: 00000000: 00 23 34 f1 5c 98 ff ff f0
> > > 64
> > > 02 89 ff ff ff ff
> > > [    1.362309] inquiry data: 00000010: 00 00 00 00 00 00 00 00 00
> > > 00
> > > 00 00 00 00 00 00
> > > [    1.362309] inquiry data: 00000020: 00 00 00 00
> > > [    1.377423] scsi 1:0:0:1: Direct-Access                       
> > >     
> > >          PQ: 0 ANSI: 0  
> > 
> > Well, this pinpoints the fault to the block uncopy, I think.  The
> > Inquiry data is clearly correct in the page frame, so it's not
> > getting
> > copied to the scsi_execute() buffer for some reason.
> > 
> > James
> > 
> 
> Why do I see different sense data on good (4.10) versus bad (4.11)
> 
> Good 4.10 initial INQUIRY buffer
> [    1.012413] data: 00000000: 00 2e 64 71 db 97 ff ff f0 94 62 96 ff
> ff ff ff
> [    1.012413] data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00
> [    1.012414] data: 00000020: 00 00 00 00
> 
> Bad 4.11 initial INQUIRY buffer  
> [    1.218159] data: 00000000: 00 00 05 02 1f 00 00 02 4d 73 66 74 20
> 20 20 20
> [    1.225654] data: 00000010: 56 69 72 74 75 61 6c 20 44 69 73 6b 20
> 20 20 20
> [    1.242930] data: 00000020: 31 2e 30 20
> 
> Is the kmap_atomic looking at the right place?

Actually, the 4.11 data looks good.  You can tell from the string at
byte 8.  It's rubbish in the 4.10 one and 'Msft ' in the 4.11 one (I
assume you just reversed the cut and paste).

These should be the page physical addresses you sent down to the
hypervisor, so kmap should work.  Perhaps print out the physical page
address so we see what we're getting.

James

^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: SCSI regression in 4.11
  2017-03-01 18:48                 ` Stephen Hemminger
  2017-03-01 18:57                   ` James Bottomley
@ 2017-03-01 19:00                   ` Linus Torvalds
  1 sibling, 0 replies; 49+ messages in thread
From: Linus Torvalds @ 2017-03-01 19:00 UTC (permalink / raw)
  To: Stephen Hemminger
  Cc: James Bottomley, Jens Axboe, Christoph Hellwig,
	Martin K. Petersen, K. Y. Srinivasan, Dexuan Cui, Long Li,
	Josh Poulson, v-adsuho, Linux SCSI List, Haiyang Zhang

On Wed, Mar 1, 2017 at 10:48 AM, Stephen Hemminger
<stephen@networkplumber.org> wrote:
>
> Bad 4.11 initial INQUIRY buffer
> [    1.218159] data: 00000000: 00 00 05 02 1f 00 00 02 4d 73 66 74 20 20 20 20
> [    1.225654] data: 00000010: 56 69 72 74 75 61 6c 20 44 69 73 6b 20 20 20 20
> [    1.242930] data: 00000020: 31 2e 30 20

 "........Msft    Virtual Disk    1.0 ."

in case anybody wondered about what the ascii data was, like I did.

              Linus

^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: SCSI regression in 4.11
  2017-03-01 18:57                   ` James Bottomley
@ 2017-03-01 19:20                     ` James Bottomley
  2017-03-01 19:39                       ` Stephen Hemminger
  2017-03-01 21:27                       ` Stephen Hemminger
  0 siblings, 2 replies; 49+ messages in thread
From: James Bottomley @ 2017-03-01 19:20 UTC (permalink / raw)
  To: Stephen Hemminger
  Cc: Jens Axboe, Christoph Hellwig, Linus Torvalds,
	Martin K. Petersen, K. Y. Srinivasan, Dexuan Cui, Long Li,
	Josh Poulson, v-adsuho, linux-scsi, Haiyang Zhang

On Wed, 2017-03-01 at 10:57 -0800, James Bottomley wrote:
> On Wed, 2017-03-01 at 10:48 -0800, Stephen Hemminger wrote:
> > On Tue, 28 Feb 2017 22:20:58 -0800
> > James Bottomley <jejb@linux.vnet.ibm.com> wrote:
> > 
> > > On Tue, 2017-02-28 at 17:25 -0800, Stephen Hemminger wrote:
> > > > [    1.346023] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0
> > > > srb
> > > > status 0x20 length 36
> > > > [    1.352913] inquiry data: 00000000: 00 aa be f1 5c 98 ff ff
> > > > f0
> > > > 64
> > > > 02 89 ff ff ff ff
> > > > [    1.356543] inquiry data: 00000010: 00 00 00 00 00 00 00 00
> > > > 00
> > > > 00
> > > > 00 00 00 00 00 00
> > > > [    1.359996] inquiry data: 00000020: 00 00 00 00
> > > > [    1.361835] scsi host1: scsi scan: INQUIRY result too short
> > > > (5),
> > > > using 36
> > > > [    1.361888] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0
> > > > srb
> > > > status 0x1 length 16
> > > > [    1.362307] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0
> > > > srb
> > > > status 0x1 length 36
> > > > [    1.362308] inquiry data: 00000000: 00 23 34 f1 5c 98 ff ff
> > > > f0
> > > > 64
> > > > 02 89 ff ff ff ff
> > > > [    1.362309] inquiry data: 00000010: 00 00 00 00 00 00 00 00
> > > > 00
> > > > 00
> > > > 00 00 00 00 00 00
> > > > [    1.362309] inquiry data: 00000020: 00 00 00 00
> > > > [    1.377423] scsi 1:0:0:1: Direct-Access                     
> > > >   
> > > >     
> > > >          PQ: 0 ANSI: 0  
> > > 
> > > Well, this pinpoints the fault to the block uncopy, I think.  The
> > > Inquiry data is clearly correct in the page frame, so it's not
> > > getting
> > > copied to the scsi_execute() buffer for some reason.
> > > 
> > > James
> > > 
> > 
> > Why do I see different sense data on good (4.10) versus bad (4.11)
> > 
> > Good 4.10 initial INQUIRY buffer
> > [    1.012413] data: 00000000: 00 2e 64 71 db 97 ff ff f0 94 62 96
> > ff
> > ff ff ff
> > [    1.012413] data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00
> > 00
> > 00 00 00
> > [    1.012414] data: 00000020: 00 00 00 00
> > 
> > Bad 4.11 initial INQUIRY buffer  
> > [    1.218159] data: 00000000: 00 00 05 02 1f 00 00 02 4d 73 66 74
> > 20
> > 20 20 20
> > [    1.225654] data: 00000010: 56 69 72 74 75 61 6c 20 44 69 73 6b
> > 20
> > 20 20 20
> > [    1.242930] data: 00000020: 31 2e 30 20
> > 
> > Is the kmap_atomic looking at the right place?
> 
> Actually, the 4.11 data looks good.  You can tell from the string at
> byte 8.  It's rubbish in the 4.10 one and 'Msft ' in the 4.11 one (I
> assume you just reversed the cut and paste).
> 
> These should be the page physical addresses you sent down to the
> hypervisor, so kmap should work.  Perhaps print out the physical page
> address so we see what we're getting.

Another possible explanation is non zero sg->offset, in which case you
might not see the INQUIRY data because you start at the beginning of
the page.  This shouldn't happen because you specify no alignment
override in the driver, so we should start the INQUIRY buffer on a new
page and copy the data back to the real buffer, but perhaps that's what
changed.

James

^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: SCSI regression in 4.11
  2017-03-01 19:20                     ` James Bottomley
@ 2017-03-01 19:39                       ` Stephen Hemminger
  2017-03-01 21:27                       ` Stephen Hemminger
  1 sibling, 0 replies; 49+ messages in thread
From: Stephen Hemminger @ 2017-03-01 19:39 UTC (permalink / raw)
  To: James Bottomley
  Cc: Jens Axboe, Christoph Hellwig, Linus Torvalds,
	Martin K. Petersen, K. Y. Srinivasan, Dexuan Cui, Long Li,
	Josh Poulson, v-adsuho, linux-scsi, Haiyang Zhang

On Wed, 01 Mar 2017 11:20:22 -0800
James Bottomley <James.Bottomley@HansenPartnership.com> wrote:

> On Wed, 2017-03-01 at 10:57 -0800, James Bottomley wrote:
> > On Wed, 2017-03-01 at 10:48 -0800, Stephen Hemminger wrote:  
> > > On Tue, 28 Feb 2017 22:20:58 -0800
> > > James Bottomley <jejb@linux.vnet.ibm.com> wrote:
> > >   
> > > > On Tue, 2017-02-28 at 17:25 -0800, Stephen Hemminger wrote:  
> > > > > [    1.346023] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0
> > > > > srb
> > > > > status 0x20 length 36
> > > > > [    1.352913] inquiry data: 00000000: 00 aa be f1 5c 98 ff ff
> > > > > f0
> > > > > 64
> > > > > 02 89 ff ff ff ff
> > > > > [    1.356543] inquiry data: 00000010: 00 00 00 00 00 00 00 00
> > > > > 00
> > > > > 00
> > > > > 00 00 00 00 00 00
> > > > > [    1.359996] inquiry data: 00000020: 00 00 00 00
> > > > > [    1.361835] scsi host1: scsi scan: INQUIRY result too short
> > > > > (5),
> > > > > using 36
> > > > > [    1.361888] hv_storvsc:  IO cmd 0xa0 0x0 0x0 scsi status 0x0
> > > > > srb
> > > > > status 0x1 length 16
> > > > > [    1.362307] hv_storvsc:  IO cmd 0x12 0x0 0x0 scsi status 0x0
> > > > > srb
> > > > > status 0x1 length 36
> > > > > [    1.362308] inquiry data: 00000000: 00 23 34 f1 5c 98 ff ff
> > > > > f0
> > > > > 64
> > > > > 02 89 ff ff ff ff
> > > > > [    1.362309] inquiry data: 00000010: 00 00 00 00 00 00 00 00
> > > > > 00
> > > > > 00
> > > > > 00 00 00 00 00 00
> > > > > [    1.362309] inquiry data: 00000020: 00 00 00 00
> > > > > [    1.377423] scsi 1:0:0:1: Direct-Access                     
> > > > >   
> > > > >     
> > > > >          PQ: 0 ANSI: 0    
> > > > 
> > > > Well, this pinpoints the fault to the block uncopy, I think.  The
> > > > Inquiry data is clearly correct in the page frame, so it's not
> > > > getting
> > > > copied to the scsi_execute() buffer for some reason.
> > > > 
> > > > James
> > > >   
> > > 
> > > Why do I see different sense data on good (4.10) versus bad (4.11)
> > > 
> > > Good 4.10 initial INQUIRY buffer
> > > [    1.012413] data: 00000000: 00 2e 64 71 db 97 ff ff f0 94 62 96
> > > ff
> > > ff ff ff
> > > [    1.012413] data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00
> > > 00
> > > 00 00 00
> > > [    1.012414] data: 00000020: 00 00 00 00
> > > 
> > > Bad 4.11 initial INQUIRY buffer  
> > > [    1.218159] data: 00000000: 00 00 05 02 1f 00 00 02 4d 73 66 74
> > > 20
> > > 20 20 20
> > > [    1.225654] data: 00000010: 56 69 72 74 75 61 6c 20 44 69 73 6b
> > > 20
> > > 20 20 20
> > > [    1.242930] data: 00000020: 31 2e 30 20
> > > 
> > > Is the kmap_atomic looking at the right place?  
> > 
> > Actually, the 4.11 data looks good.  You can tell from the string at
> > byte 8.  It's rubbish in the 4.10 one and 'Msft ' in the 4.11 one (I
> > assume you just reversed the cut and paste).
> > 
> > These should be the page physical addresses you sent down to the
> > hypervisor, so kmap should work.  Perhaps print out the physical page
> > address so we see what we're getting.  
> 
> Another possible explanation is non zero sg->offset, in which case you
> might not see the INQUIRY data because you start at the beginning of
> the page.  This shouldn't happen because you specify no alignment
> override in the driver, so we should start the INQUIRY buffer on a new
> page and copy the data back to the real buffer, but perhaps that's what
> changed.

Dumping more data from 4.9, 4.10 and 4.11

^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: SCSI regression in 4.11
  2017-03-01 19:20                     ` James Bottomley
  2017-03-01 19:39                       ` Stephen Hemminger
@ 2017-03-01 21:27                       ` Stephen Hemminger
  2017-03-01 23:09                         ` James Bottomley
  1 sibling, 1 reply; 49+ messages in thread
From: Stephen Hemminger @ 2017-03-01 21:27 UTC (permalink / raw)
  To: James Bottomley
  Cc: Jens Axboe, Christoph Hellwig, Linus Torvalds,
	Martin K. Petersen, K. Y. Srinivasan, Dexuan Cui, Long Li,
	Josh Poulson, v-adsuho, linux-scsi, Haiyang Zhang

Ok here is much better data, wasn't accounting for the offset in the payload


Working 4.10
[    1.020041] scsi host0: storvsc_host_t
[    1.024998] hv_storvsc: INQUIRY cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    1.027452] hv_storvsc:  payload size 288 count 1 offset 3072 len 36 pfn 0x1f15d0
[    1.029385] hv_storvsc:  sg 0: phys 0x1f15d0000 virt ffff9270b15d0000 offset 0xc00 length 36
[    1.031720] data: 00000000: 00 00 05 02 1f 00 00 02 4d 73 66 74 20 20 20 20  ........Msft    
[    1.033846] data: 00000010: 56 69 72 74 75 61 6c 20 44 69 73 6b 20 20 20 20  Virtual Disk    
[    1.036080] data: 00000020: 31 2e 30 20                                      1.0 
[    1.038249] scsi 0:0:0:0: Direct-Access     Msft     Virtual Disk     1.0  PQ: 0 ANSI: 5
[    1.040394] hv_storvsc: INQUIRY cmd 0x12 0x1 0x0 scsi status 0x0 srb status 0x1 length 12
[    1.041494] scsi host1: storvsc_host_t
[    1.044683] hv_storvsc:  payload size 288 count 1 offset 0 len 255 pfn 0x1f0faf
[    1.046940] hv_storvsc:  sg 0: phys 0x1f0faf000 virt ffff9270b0faf000 offset 0x0 length 255
[    1.048555] hv_storvsc: INQUIRY cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    1.048556] hv_storvsc:  payload size 288 count 1 offset 2816 len 36 pfn 0x1f15d6
[    1.048557] hv_storvsc:  sg 0: phys 0x1f15d6000 virt ffff9270b15d6000 offset 0xb00 length 36
[    1.048559] data: 00000000: 05 80 00 02 1f 00 00 00 4d 73 66 74 20 20 20 20  ........Msft    
[    1.048560] data: 00000010: 56 69 72 74 75 61 6c 20 44 56 44 2d 52 4f 4d 20  Virtual DVD-ROM 
[    1.048560] data: 00000020: 31 2e 30 20                                      1.0 
[    1.048590] scsi 1:0:0:0: CD-ROM            Msft     Virtual DVD-ROM  1.0  PQ: 0 ANSI: 0
[    1.048920] hv_storvsc: INQUIRY cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x20 length 36
[    1.048920] hv_storvsc:  payload size 288 count 1 offset 1024 len 36 pfn 0x1f15d7
[    1.048921] hv_storvsc:  sg 0: phys 0x1f15d7000 virt ffff9270b15d7000 offset 0x400 length 36
[    1.048922] data: 00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    1.048923] data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    1.048923] data: 00000020: 00 00 00 00                                      ....
[    1.048942] scsi host1: scsi scan: INQUIRY result too short (5), using 36


Broken 4.11

[    1.487930] scsi host0: storvsc_host_t
[    1.541254] hv_storvsc: INQUIRY cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    1.545242] hv_storvsc:  payload size 288 count 1 offset 768 len 36 pfn 0x1f1196
[    1.545242] hv_storvsc:  sg 0: phys 0x1f1196000 virt ffff9a42f1196000 offset 0x300 length 36
[    1.545242] data: 00000000: 00 00 05 02 1f 00 00 02 4d 73 66 74 20 20 20 20  ........Msft    
[    1.545242] data: 00000010: 56 69 72 74 75 61 6c 20 44 69 73 6b 20 20 20 20  Virtual Disk    
[    1.545242] data: 00000020: 31 2e 30 20                                      1.0 
[    1.570136] scsi 0:0:0:0: Direct-Access     Msft     Virtual Disk     1.0  PQ: 0 ANSI: 5
[    1.571001] scsi host1: storvsc_host_t
[    1.608793] hv_storvsc: INQUIRY cmd 0x12 0x1 0x0 scsi status 0x0 srb status 0x1 length 12
[    1.610316] hv_storvsc:  payload size 288 count 1 offset 0 len 255 pfn 0x1f0577
[    1.611749] hv_storvsc:  sg 0: phys 0x1f0577000 virt ffff9a42f0577000 offset 0x0 length 255
[    1.612788] data: 00000000: 00 00 00 08 00 83 8f b0 b1 b2 ce cf 72 65 61 74  ............reat
[    1.612788] data: 00000010: 65 5f 66 69 6c 65 00 5f 5f 63 72 63 5f 68 69 64  e_file.__crc_hid
[    1.612788] data: 00000020: 5f 72 65 70 6f 72 74 5f 72 61 77 5f 65 76 65 6e  _report_raw_even
[    1.612788] data: 00000030: 74 00 76 66 72 65 65 00 75 6e 72 65 67 69 73 74  t.vfree.unregist
[    1.612788] data: 00000040: 65 72 5f 63 68 72 64 65 76 5f 72 65 67 69 6f 6e  er_chrdev_region
[    1.612788] data: 00000050: 00 6d 75 74 65 78 5f 75 6e 6c 6f 63 6b 00 68 69  .mutex_unlock.hi
[    1.612788] data: 00000060: 64 5f 64 65 62 75 67 5f 65 78 69 74 00 6b 6d 65  d_debug_exit.kme
[    1.612788] data: 00000070: 6d 64 75 70 00 68 69 64 72 61 77 5f 65 78 69 74  mdup.hidraw_exit
[    1.612788] data: 00000080: 00 5f 5f 67 65 74 5f 75 73 65 72 5f 34 00 70 6f  .__get_user_4.po
[    1.612788] data: 00000090: 77 65 72 5f 73 75 70 70 6c 79 5f 70 6f 77 65 72  wer_supply_power
[    1.612788] data: 000000a0: 73 00 64 65 76 69 63 65 5f 64 65 73 74 72 6f 79  s.device_destroy
[    1.612788] data: 000000b0: 00 5f 5f 63 72 63 5f 68 69 64 5f 73 6e 74 6f 33  .__crc_hid_snto3
[    1.612788] data: 000000c0: 32 00 63 61 6e 63 65 6c 5f 77 6f 72 6b 5f 73 79  2.cancel_work_sy
[    1.612788] data: 000000d0: 6e 63 00 73 65 71 5f 70 72 69 6e 74 66 00 64 6f  nc.seq_printf.do
[    1.612788] data: 000000e0: 77 6e 5f 69 6e 74 65 72 72 75 70 74 69 62 6c 65  wn_interruptible
[    1.612788] data: 000000f0: 00 5f 5f 63 72 63 5f 68 69 64 5f 70 61 72 73     .__crc_hid_pars
[    1.649097] hv_storvsc: INQUIRY cmd 0x12 0x1 0x83 scsi status 0x0 srb status 0x1 length 52
[    1.649097] random: fast init done
[    1.649097] hv_storvsc:  payload size 288 count 1 offset 0 len 255 pfn 0x1f0576
[    1.649097] hv_storvsc:  sg 0: phys 0x1f0576000 virt ffff9a42f0576000 offset 0x0 length 255
[    1.649097] data: 00000000: 00 83 00 30 01 01 00 18 4d 53 46 54 20 20 20 20  ...0....MSFT    
[    1.649097] data: 00000010: 43 77 cc 85 5f 19 c2 46 ac 48 c7 33 b9 dd 2d 2a  Cw.._..F.H.3..-*
[    1.649097] data: 00000020: 01 03 00 10 60 02 24 80 43 77 cc 85 5f 19 c7 33  ....`.$.Cw.._..3
[    1.649097] data: 00000030: b9 dd 2d 2a 5f 55 4e 49 51 55 45 5f 49 44 5f 69  ..-*_UNIQUE_ID_i
[    1.649097] data: 00000040: 67 6e 6f 72 65 5f 73 70 65 63 69 61 6c 5f 64 72  gnore_special_dr
[    1.649097] data: 00000050: 69 76 65 72 73 74 79 70 65 31 34 00 5f 5f 70 61  iverstype14.__pa
[    1.649097] data: 00000060: 72 61 6d 5f 69 67 6e 6f 72 65 5f 73 70 65 63 69  ram_ignore_speci
[    1.649097] data: 00000070: 61 6c 5f 64 72 69 76 65 72 73 00 5f 5f 70 61 72  al_drivers.__par
[    1.649097] data: 00000080: 61 6d 5f 73 74 72 5f 69 67 6e 6f 72 65 5f 73 70  am_str_ignore_sp
[    1.649097] data: 00000090: 65 63 69 61 6c 5f 64 72 69 76 65 72 73 00 5f 5f  ecial_drivers.__
[    1.649097] data: 000000a0: 6b 73 79 6d 74 61 62 5f 68 69 64 5f 64 65 62 75  ksymtab_hid_debu
[    1.649097] data: 000000b0: 67 00 5f 5f 6b 73 74 72 74 61 62 5f 68 69 64 5f  g.__kstrtab_hid_
[    1.649097] data: 000000c0: 64 65 62 75 67 00 5f 5f 55 4e 49 51 55 45 5f 49  debug.__UNIQUE_I
[    1.649097] data: 000000d0: 44 5f 64 65 62 75 67 31 33 00 5f 5f 55 4e 49 51  D_debug13.__UNIQ
[    1.649097] data: 000000e0: 55 45 5f 49 44 5f 64 65 62 75 67 74 79 70 65 31  UE_ID_debugtype1
[    1.649097] data: 000000f0: 32 00 5f 5f 70 61 72 61 6d 5f 64 65 62 75 67     2.__param_debug
[    1.805271] input: Microsoft Vmbus HID-compliant Mouse as /devices/0006:045E:0621.0001/input/input1
[    1.805350] hv_storvsc: INQUIRY cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    1.805351] hv_storvsc:  payload size 288 count 1 offset 2304 len 36 pfn 0x1f1988
[    1.805352] hv_storvsc:  sg 0: phys 0x1f1988000 virt ffff9a42f1988000 offset 0x900 length 36
[    1.805353] data: 00000000: 05 80 00 02 1f 00 00 00 4d 73 66 74 20 20 20 20  ........Msft    
[    1.805353] data: 00000010: 56 69 72 74 75 61 6c 20 44 56 44 2d 52 4f 4d 20  Virtual DVD-ROM 
[    1.805354] data: 00000020: 31 2e 30 20                                      1.0 
[    1.805379] scsi 1:0:0:0: CD-ROM            Msft     Virtual DVD-ROM  1.0  PQ: 0 ANSI: 0
[    1.812926] hv_storvsc: INQUIRY cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x20 length 36
[    1.812927] hv_storvsc:  payload size 288 count 1 offset 2816 len 36 pfn 0x1f198b
[    1.812928] hv_storvsc:  sg 0: phys 0x1f198b000 virt ffff9a42f198b000 offset 0xb00 length 36
[    1.812953] data: 00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    1.812953] data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    1.812954] data: 00000020: 00 00 00 00                                      ....
[    1.813258] scsi host1: scsi scan: INQUIRY result too short (5), using 36
[    1.813271] scsi 1:0:0:1: Direct-Access                                    PQ: 0 ANSI: 0
[    1.817903] hv_storvsc: INQUIRY cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x20 length 36
[    1.817921] hv_storvsc:  payload size 288 count 1 offset 2048 len 36 pfn 0x1f198a
[    1.817932] hv_storvsc:  sg 0: phys 0x1f198a000 virt ffff9a42f198a000 offset 0x800 length 36
[    1.817940] data: 00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    1.817941] data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    1.817941] data: 00000020: 00 00 00 00                                      ....



The response from offline DVD device is shorter and contains stale data.

^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: SCSI regression in 4.11
  2017-03-01 21:27                       ` Stephen Hemminger
@ 2017-03-01 23:09                         ` James Bottomley
  2017-03-01 23:39                           ` Stephen Hemminger
  0 siblings, 1 reply; 49+ messages in thread
From: James Bottomley @ 2017-03-01 23:09 UTC (permalink / raw)
  To: Stephen Hemminger
  Cc: Jens Axboe, Christoph Hellwig, Linus Torvalds,
	Martin K. Petersen, K. Y. Srinivasan, Dexuan Cui, Long Li,
	Josh Poulson, v-adsuho, linux-scsi, Haiyang Zhang

On Wed, 2017-03-01 at 13:27 -0800, Stephen Hemminger wrote:
> Ok here is much better data, wasn't accounting for the offset in the
> payload

But now both responses are the same:

> Working 4.10
[...]
> [    1.048920] hv_storvsc: INQUIRY cmd 0x12 0x0 0x0 scsi status 0x0
> srb status 0x20 length 36
> [    1.048920] hv_storvsc:  payload size 288 count 1 offset 1024 len
> 36 pfn 0x1f15d7
> [    1.048921] hv_storvsc:  sg 0: phys 0x1f15d7000 virt
> ffff9270b15d7000 offset 0x400 length 36
> [    1.048922] data: 00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00  ................
> [    1.048923] data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00  ................
> [    1.048923] data: 00000020: 00 00 00 00                           
>            ....
> [    1.048942] scsi host1: scsi scan: INQUIRY result too short (5),
> using 36
> 
> 
> Broken 4.11
[...]
> [    1.812926] hv_storvsc: INQUIRY cmd 0x12 0x0 0x0 scsi status 0x0
> srb status 0x20 length 36
> [    1.812927] hv_storvsc:  payload size 288 count 1 offset 2816 len
> 36 pfn 0x1f198b
> [    1.812928] hv_storvsc:  sg 0: phys 0x1f198b000 virt
> ffff9a42f198b000 offset 0xb00 length 36
> [    1.812953] data: 00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00  ................
> [    1.812953] data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00  ................
> [    1.812954] data: 00000020: 00 00 00 00                           
>            ....
> [    1.813258] scsi host1: scsi scan: INQUIRY result too short (5),
> using 36

Hyper-v is returning a buffer of zeros for INQUIRY to the offline
device in both cases ... that means the problem isn't where I thought
it was.

James

^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: SCSI regression in 4.11
  2017-03-01 23:09                         ` James Bottomley
@ 2017-03-01 23:39                           ` Stephen Hemminger
  0 siblings, 0 replies; 49+ messages in thread
From: Stephen Hemminger @ 2017-03-01 23:39 UTC (permalink / raw)
  To: James Bottomley
  Cc: Jens Axboe, Christoph Hellwig, Linus Torvalds,
	Martin K. Petersen, K. Y. Srinivasan, Dexuan Cui, Long Li,
	Josh Poulson, v-adsuho, linux-scsi, Haiyang Zhang

On Wed, 01 Mar 2017 15:09:44 -0800
James Bottomley <James.Bottomley@HansenPartnership.com> wrote:

> On Wed, 2017-03-01 at 13:27 -0800, Stephen Hemminger wrote:
> > Ok here is much better data, wasn't accounting for the offset in the
> > payload  
> 
> But now both responses are the same:
> 
> > Working 4.10  
> [...]
> > [    1.048920] hv_storvsc: INQUIRY cmd 0x12 0x0 0x0 scsi status 0x0
> > srb status 0x20 length 36
> > [    1.048920] hv_storvsc:  payload size 288 count 1 offset 1024 len
> > 36 pfn 0x1f15d7
> > [    1.048921] hv_storvsc:  sg 0: phys 0x1f15d7000 virt
> > ffff9270b15d7000 offset 0x400 length 36
> > [    1.048922] data: 00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00
> > 00 00 00  ................
> > [    1.048923] data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00
> > 00 00 00  ................
> > [    1.048923] data: 00000020: 00 00 00 00                           
> >            ....
> > [    1.048942] scsi host1: scsi scan: INQUIRY result too short (5),
> > using 36
> > 
> > 
> > Broken 4.11  
> [...]
> > [    1.812926] hv_storvsc: INQUIRY cmd 0x12 0x0 0x0 scsi status 0x0
> > srb status 0x20 length 36
> > [    1.812927] hv_storvsc:  payload size 288 count 1 offset 2816 len
> > 36 pfn 0x1f198b
> > [    1.812928] hv_storvsc:  sg 0: phys 0x1f198b000 virt
> > ffff9a42f198b000 offset 0xb00 length 36
> > [    1.812953] data: 00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00
> > 00 00 00  ................
> > [    1.812953] data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00
> > 00 00 00  ................
> > [    1.812954] data: 00000020: 00 00 00 00                           
> >            ....
> > [    1.813258] scsi host1: scsi scan: INQUIRY result too short (5),
> > using 36  
> 
> Hyper-v is returning a buffer of zeros for INQUIRY to the offline
> device in both cases ... that means the problem isn't where I thought
> it was.
> 
> James

Yes. Earlier output wasn't accounting for offsets, new dump code is.

^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: SCSI regression in 4.11
  2017-03-01 15:54                     ` Stephen Hemminger
@ 2017-03-02  0:01                       ` Christoph Hellwig
  2017-03-02  0:56                         ` Christoph Hellwig
  2017-03-02  0:57                         ` SCSI regression in 4.11 Stephen Hemminger
  0 siblings, 2 replies; 49+ messages in thread
From: Christoph Hellwig @ 2017-03-02  0:01 UTC (permalink / raw)
  To: Stephen Hemminger
  Cc: Christoph Hellwig, James Bottomley, Jens Axboe, Linus Torvalds,
	Martin K. Petersen, K. Y. Srinivasan, Dexuan Cui, Long Li,
	Josh Poulson, v-adsuho, linux-scsi, Haiyang Zhang

On Wed, Mar 01, 2017 at 07:54:12AM -0800, Stephen Hemminger wrote:
> > 	http://git.infradead.org/users/hch/block.git/commitdiff/148cff67b401e2229c076c0ea418712654be77e4
> 
> It appears that is already in the code I am testing in linux-next...

It's in -next now, but it wasn't at the time you reported the bug.

And it would sortof explain the bug if the INQUIRY data is correct
in the scatterlist, but we ignore it, given that scsi_probe_lun
ignores the result based on sense data.

Can you check what happens with the horrible hack below:

diff --git a/drivers/scsi/scsi_scan.c b/drivers/scsi/scsi_scan.c
index 6f7128f49c30..2f384ddb001a 100644
--- a/drivers/scsi/scsi_scan.c
+++ b/drivers/scsi/scsi_scan.c
@@ -603,7 +603,7 @@ static int scsi_probe_lun(struct scsi_device *sdev, unsigned char *inq_result,
 		SCSI_LOG_SCAN_BUS(3, sdev_printk(KERN_INFO, sdev,
 				"scsi scan: INQUIRY %s with code 0x%x\n",
 				result ? "failed" : "successful", result));
-
+#if 0
 		if (result) {
 			/*
 			 * not-ready to ready transition [asc/ascq=0x28/0x0]
@@ -628,6 +628,12 @@ static int scsi_probe_lun(struct scsi_device *sdev, unsigned char *inq_result,
 			if (resid == try_inquiry_len)
 				continue;
 		}
+#else
+		if (result) {
+			printk_ratelimited("got result %d:\n", result);
+			result = 0;
+		}
+#endif
 		break;
 	}
 

^ permalink raw reply related	[flat|nested] 49+ messages in thread

* Re: SCSI regression in 4.11
  2017-03-02  0:01                       ` Christoph Hellwig
@ 2017-03-02  0:56                         ` Christoph Hellwig
  2017-03-02  1:40                           ` Stephen Hemminger
  2017-03-02  0:57                         ` SCSI regression in 4.11 Stephen Hemminger
  1 sibling, 1 reply; 49+ messages in thread
From: Christoph Hellwig @ 2017-03-02  0:56 UTC (permalink / raw)
  To: Stephen Hemminger
  Cc: Christoph Hellwig, James Bottomley, Jens Axboe, Linus Torvalds,
	Martin K. Petersen, K. Y. Srinivasan, Dexuan Cui, Long Li,
	Josh Poulson, v-adsuho, linux-scsi, Haiyang Zhang

On Thu, Mar 02, 2017 at 01:01:35AM +0100, Christoph Hellwig wrote:
> On Wed, Mar 01, 2017 at 07:54:12AM -0800, Stephen Hemminger wrote:
> > > 	http://git.infradead.org/users/hch/block.git/commitdiff/148cff67b401e2229c076c0ea418712654be77e4
> > 
> > It appears that is already in the code I am testing in linux-next...
> 
> It's in -next now, but it wasn't at the time you reported the bug.
> 
> And it would sortof explain the bug if the INQUIRY data is correct
> in the scatterlist, but we ignore it, given that scsi_probe_lun
> ignores the result based on sense data.
> 
> Can you check what happens with the horrible hack below:

Strike that - we're checking result later, so this can't be the case.

Now the other interesting thing is the memset in __scsi_exectute,
which looks very suspicious.  Try the following please:

diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c
index 3e32dc954c3c..22f4fb550561 100644
--- a/drivers/scsi/scsi_lib.c
+++ b/drivers/scsi/scsi_lib.c
@@ -253,7 +253,8 @@ static int __scsi_execute(struct scsi_device *sdev, const unsigned char *cmd,
 	 * and prevent security leaks by zeroing out the excess data.
 	 */
 	if (unlikely(rq->resid_len > 0 && rq->resid_len <= bufflen))
-		memset(buffer + (bufflen - rq->resid_len), 0, rq->resid_len);
+//		memset(buffer + (bufflen - rq->resid_len), 0, rq->resid_len);
+		printk_ratelimited("%s: got resid %d\n", __func__, rq->resid_len);
 
 	if (resid)
 		*resid = rq->resid_len;

^ permalink raw reply related	[flat|nested] 49+ messages in thread

* Re: SCSI regression in 4.11
  2017-03-02  0:01                       ` Christoph Hellwig
  2017-03-02  0:56                         ` Christoph Hellwig
@ 2017-03-02  0:57                         ` Stephen Hemminger
  1 sibling, 0 replies; 49+ messages in thread
From: Stephen Hemminger @ 2017-03-02  0:57 UTC (permalink / raw)
  To: Christoph Hellwig
  Cc: James Bottomley, Jens Axboe, Linus Torvalds, Martin K. Petersen,
	K. Y. Srinivasan, Dexuan Cui, Long Li, Josh Poulson, v-adsuho,
	linux-scsi, Haiyang Zhang

On Thu, 2 Mar 2017 01:01:35 +0100
Christoph Hellwig <hch@lst.de> wrote:

> On Wed, Mar 01, 2017 at 07:54:12AM -0800, Stephen Hemminger wrote:
> > > 	http://git.infradead.org/users/hch/block.git/commitdiff/148cff67b401e2229c076c0ea418712654be77e4  
> > 
> > It appears that is already in the code I am testing in linux-next...  
> 
> It's in -next now, but it wasn't at the time you reported the bug.
> 
> And it would sortof explain the bug if the INQUIRY data is correct
> in the scatterlist, but we ignore it, given that scsi_probe_lun
> ignores the result based on sense data.
> 
> Can you check what happens with the horrible hack below:
> 
> diff --git a/drivers/scsi/scsi_scan.c b/drivers/scsi/scsi_scan.c
> index 6f7128f49c30..2f384ddb001a 100644
> --- a/drivers/scsi/scsi_scan.c
> +++ b/drivers/scsi/scsi_scan.c
> @@ -603,7 +603,7 @@ static int scsi_probe_lun(struct scsi_device *sdev, unsigned char *inq_result,
>  		SCSI_LOG_SCAN_BUS(3, sdev_printk(KERN_INFO, sdev,
>  				"scsi scan: INQUIRY %s with code 0x%x\n",
>  				result ? "failed" : "successful", result));
> -
> +#if 0
>  		if (result) {
>  			/*
>  			 * not-ready to ready transition [asc/ascq=0x28/0x0]
> @@ -628,6 +628,12 @@ static int scsi_probe_lun(struct scsi_device *sdev, unsigned char *inq_result,
>  			if (resid == try_inquiry_len)
>  				continue;
>  		}
> +#else
> +		if (result) {
> +			printk_ratelimited("got result %d:\n", result);
> +			result = 0;
> +		}
> +#endif
>  		break;
>  	}
>  

I tried that hack and the printk never hit. Could be related to error being masked
by storvsc driver workaround/hack.

Also let the system continue after going off in the weeds during SCSI scan.
After a long time we get stuck threads then EOM.


[  182.444084] hv_storvsc: INQUIRY cmd 0x12 0x1 0x83 scsi status 0x0 srb status 0x1 length 52
[  182.448080] hv_storvsc:  payload size 288 count 1 offset 0 len 254 pfn 0x1e3683
[  182.448080] hv_storvsc:  sg 0: phys 0x1e3683000 virt ffff885b63683000 offset 0x0 length 254
[  182.448080] data: 00000000: 00 83 00 30 01 01 00 18 4d 53 46 54 20 20 20 20  ...0....MSFT    
[  182.448080] data: 00000010: 43 77 cc 85 5f 19 c2 46 ac 48 c7 33 b9 dd 2d 2a  Cw.._..F.H.3..-*
[  182.448080] data: 00000020: 01 03 00 10 60 02 24 80 43 77 cc 85 5f 19 c7 33  ....`.$.Cw.._..3
[  182.448080] data: 00000030: b9 dd 2d 2a 00 00 00 00 00 00 00 00 00 00 00 00  ..-*............
[  182.448080] data: 00000040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[  182.448080] data: 00000050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[  182.448080] data: 00000060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[  182.448080] data: 00000070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[  182.448080] data: 00000080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[  182.448080] data: 00000090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[  182.448080] data: 000000a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[  182.448080] data: 000000b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[  182.448080] data: 000000c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[  182.448080] data: 000000d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[  182.448080] data: 000000e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[  182.448080] data: 000000f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00        ..............
[  242.652032] INFO: task kworker/u480:0:5 blocked for more than 120 seconds.
[  242.655042]       Not tainted 4.10.0-next-20170228-next+ #4
[  242.656647] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[  242.659539] kworker/u480:0  D    0     5      2 0x00000000
[  242.661100] Workqueue: events_unbound async_run_entry_fn
[  242.663105] Call Trace:
[  242.664209]  __schedule+0x27a/0x890
[  242.665179]  schedule+0x36/0x80
[  242.666520]  io_schedule+0x16/0x40
[  242.667933]  do_read_cache_page+0x400/0x550
[  242.669153]  ? blkdev_writepages+0x40/0x40
[  242.670775]  ? page_cache_tree_insert+0x120/0x120
[  242.672717]  read_cache_page+0x12/0x20
[  242.674592]  read_dev_sector+0x7d/0xe0
[  242.676457]  ? get_page_from_freelist+0x891/0xad0
[  242.679027]  read_lba+0x193/0x270
[  242.680421]  ? kmem_cache_alloc_trace+0x181/0x190
[  242.682573]  efi_partition+0xf6/0x840
[  242.684111]  ? string+0x59/0x80
[  242.685066]  ? snprintf+0x49/0x60
[  242.685904]  ? compare_gpts+0x280/0x280
[  242.688018]  check_partition+0x13d/0x210
[  242.689747]  rescan_partitions+0xb8/0x370
[  242.691810]  ? get_device+0x17/0x20
[  242.693415]  ? down_write+0x12/0x40
[  242.695383]  __blkdev_get+0x31f/0x440
[  242.697039]  blkdev_get+0x12a/0x330
[  242.698949]  ? unlock_new_inode+0x49/0x80
[  242.700687]  ? refcount_dec_and_test+0x11/0x20
[  242.703084]  ? kobject_put+0x1f/0x60
[  242.704304]  device_add_disk+0x415/0x4a0
[  242.704851]  ? update_autosuspend+0x51/0x60
[  242.705884]  ? __pm_runtime_use_autosuspend+0x54/0x70
[  242.707036]  sd_probe_async+0x10d/0x1c0
[  242.707943]  async_run_entry_fn+0x37/0x150
[  242.708510]  process_one_work+0x1fc/0x490
[  242.709388]  worker_thread+0x4b/0x500
[  242.710197]  kthread+0x101/0x140
[  242.710943]  ? process_one_work+0x490/0x490
[  242.711836]  ? kthread_create_on_node+0x60/0x60
[  242.712355]  ret_from_fork+0x2c/0x40
[  242.713177] INFO: task kworker/3:0:29 blocked for more than 120 seconds.
[  242.714447]       Not tainted 4.10.0-next-20170228-next+ #4
[  242.715562] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[  242.716589] kworker/3:0     D    0    29      2 0x00000000
[  242.733696] Workqueue: events storvsc_remove_lun [hv_storvsc]
[  242.741567] Call Trace:
[  242.742437]  __schedule+0x27a/0x890
[  242.743475]  schedule+0x36/0x80
[  242.744602]  schedule_preempt_disabled+0xe/0x10
[  242.748609]  __mutex_lock.isra.5+0x25f/0x4e0
[  242.764302]  ? ttwu_do_wakeup+0x1e/0x150
[  242.767479]  ? refcount_inc+0x9/0x30
[  242.768992]  __mutex_lock_slowpath+0x13/0x20
[  242.770882]  mutex_lock+0x2f/0x40
[  242.772056]  scsi_remove_device+0x1e/0x40
[  242.773876]  storvsc_remove_lun+0x40/0x60 [hv_storvsc]
[  242.776040]  process_one_work+0x1fc/0x490
[  242.777362]  worker_thread+0x4b/0x500
[  242.779144]  kthread+0x101/0x140
[  242.784784]  ? process_one_work+0x490/0x490
[  242.804486]  ? kthread_create_on_node+0x60/0x60
[  242.806958]  ret_from_fork+0x2c/0x40
[  242.808224] INFO: task kworker/u480:1:59 blocked for more than 120 seconds.
[  242.810817]       Not tainted 4.10.0-next-20170228-next+ #4
[  242.829584] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[  242.836883] kworker/u480:1  D    0    59      2 0x00000000
[  242.839253] Workqueue: events_unbound async_run_entry_fn
[  242.840995] Call Trace:
[  242.842259]  __schedule+0x27a/0x890
[  242.861480]  schedule+0x36/0x80
[  242.866611]  io_schedule+0x16/0x40
[  242.868177]  do_read_cache_page+0x400/0x550
[  242.870012]  ? blkdev_writepages+0x40/0x40
[  242.871621]  ? page_cache_tree_insert+0x120/0x120
[  242.872978]  read_cache_page+0x12/0x20
[  242.882635]  read_dev_sector+0x7d/0xe0
[  242.893398]  ? get_page_from_freelist+0x891/0xad0
[  242.895202]  read_lba+0x193/0x270
[  242.896256]  ? kmem_cache_alloc_trace+0x181/0x190
[  242.897996]  efi_partition+0xf6/0x840
[  242.899471]  ? string+0x59/0x80
[  242.900413]  ? snprintf+0x49/0x60
[  242.901831]  ? compare_gpts+0x280/0x280
[  242.903385]  check_partition+0x13d/0x210
[  242.904510]  rescan_partitions+0xb8/0x370
[  242.921040]  ? get_device+0x17/0x20
[  242.931024]  ? down_write+0x12/0x40
[  242.932395]  __blkdev_get+0x31f/0x440
[  242.933973]  blkdev_get+0x12a/0x330
[  242.935457]  ? unlock_new_inode+0x49/0x80
[  242.936613]  ? refcount_dec_and_test+0x11/0x20
[  242.938422]  ? kobject_put+0x1f/0x60
[  242.939910]  device_add_disk+0x415/0x4a0
[  242.941030]  ? update_autosuspend+0x51/0x60
[  242.942698]  ? __pm_runtime_use_autosuspend+0x54/0x70
[  242.944290]  sd_probe_async+0x10d/0x1c0
[  242.945856]  async_run_entry_fn+0x37/0x150
[  242.947503]  process_one_work+0x1fc/0x490
[  242.948645]  worker_thread+0x4b/0x500
[  242.950155]  kthread+0x101/0x140
[  242.951494]  ? process_one_work+0x490/0x490
[  242.959746]  ? kthread_create_on_node+0x60/0x60
[  242.971264]  ret_from_fork+0x2c/0x40
[  242.972731] INFO: task kworker/3:1:147 blocked for more than 120 seconds.
[  242.975571]       Not tainted 4.10.0-next-20170228-next+ #4
[  242.977499] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[  242.980459] kworker/3:1     D    0   147      2 0x00000000
[  242.982852] Workqueue: events storvsc_remove_lun [hv_storvsc]
[  243.007498] Call Trace:
[  243.008589]  __schedule+0x27a/0x890
[  243.010330]  ? sched_clock_local+0x17/0x90
[  243.012217]  schedule+0x36/0x80
[  243.013227]  schedule_preempt_disabled+0xe/0x10
[  243.022267]  __mutex_lock.isra.5+0x25f/0x4e0
[  243.034018]  ? refcount_inc+0x9/0x30
[  243.035848]  __mutex_lock_slowpath+0x13/0x20
[  243.037509]  mutex_lock+0x2f/0x40
[  243.039161]  scsi_remove_device+0x1e/0x40
[  243.040721]  storvsc_remove_lun+0x40/0x60 [hv_storvsc]
[  243.043025]  process_one_work+0x1fc/0x490
[  243.044450]  worker_thread+0x4b/0x500
[  243.049993]  kthread+0x101/0x140
[  243.068204]  ? process_one_work+0x490/0x490
[  243.070474]  ? kthread_create_on_node+0x60/0x60
[  243.072247]  ret_from_fork+0x2c/0x40
[  243.073796] INFO: task systemd-udevd:211 blocked for more than 120 seconds.
[  243.076235]       Not tainted 4.10.0-next-20170228-next+ #4
[  243.088238] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[  243.095559] systemd-udevd   D    0   211    183 0x00000004
[  243.096795] Call Trace:
[  243.097542]  __schedule+0x27a/0x890
[  243.098444]  ? kobject_uevent+0xb/0x10
[  243.099366]  ? mutex_lock+0x12/0x40
[  243.100459]  schedule+0x36/0x80
[  243.101817]  async_synchronize_cookie_domain+0xb5/0x150
[  243.103808]  ? wake_atomic_t_function+0x60/0x60
[  243.105077]  async_synchronize_full+0x17/0x20
[  243.106912]  do_init_module+0xc1/0x200
[  243.109350]  load_module+0x270f/0x2b20
[  243.130805]  ? __symbol_put+0x60/0x60
[  243.132612]  ? security_kernel_post_read_file+0x6b/0x80
[  243.135096]  SYSC_finit_module+0xdf/0x110
[  243.136353]  SyS_finit_module+0xe/0x10
[  243.137895]  entry_SYSCALL_64_fastpath+0x1e/0xad
[  243.139742] RIP: 0033:0x7f85a7efad29
[  243.157585] RSP: 002b:00007fff1b33bd58 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[  243.160930] RAX: ffffffffffffffda RBX: 0000564043826230 RCX: 00007f85a7efad29
[  243.163618] RDX: 0000000000000000 RSI: 00007f85a881ce23 RDI: 000000000000000c
[  243.165849] RBP: 00007f85a881ce23 R08: 0000000000000000 R09: 00007fff1b33c2d0
[  243.168367] R10: 000000000000000c R11: 0000000000000246 R12: 0000000000000000
[  243.182797] R13: 00005640438264b0 R14: 0000000000020000 R15: 00005640420a476c
[  243.197192] INFO: task kworker/3:2:330 blocked for more than 120 seconds.
[  243.200767]       Not tainted 4.10.0-next-20170228-next+ #4
[  243.211557] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[  243.225018] kworker/3:2     D    0   330      2 0x00000000
[  243.227486] Workqueue: events storvsc_remove_lun [hv_storvsc]
[  243.229536] Call Trace:
[  243.230946]  __schedule+0x27a/0x890
[  243.232441]  schedule+0x36/0x80
[  243.242007]  schedule_preempt_disabled+0xe/0x10
[  243.256986]  __mutex_lock.isra.5+0x25f/0x4e0
[  243.259067]  ? ttwu_do_wakeup+0x1e/0x150
[  243.260506]  ? refcount_inc+0x9/0x30
[  243.262139]  __mutex_lock_slowpath+0x13/0x20
[  243.263996]  mutex_lock+0x2f/0x40
[  243.274173]  scsi_remove_device+0x1e/0x40
[  243.292525]  storvsc_remove_lun+0x40/0x60 [hv_storvsc]
[  243.294935]  process_one_work+0x1fc/0x490
[  243.307186]  worker_thread+0x4b/0x500
[  243.315333]  kthread+0x101/0x140
[  243.316704]  ? process_one_work+0x490/0x490
[  243.318487]  ? kthread_create_on_node+0x60/0x60
[  243.320348]  ret_from_fork+0x2c/0x40
[  243.321392] INFO: task kworker/3:3:332 blocked for more than 120 seconds.
[  243.324037]       Not tainted 4.10.0-next-20170228-next+ #4
[  243.325888] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[  243.351220] kworker/3:3     D    0   332      2 0x00000000
[  243.352493] Workqueue: events storvsc_remove_lun [hv_storvsc]
[  243.354732] Call Trace:
[  243.356026]  __schedule+0x27a/0x890
[  243.357162]  ? set_next_entity+0xd9/0x220
[  243.367740]  schedule+0x36/0x80
[  243.377625]  schedule_preempt_disabled+0xe/0x10
[  243.378711]  __mutex_lock.isra.5+0x25f/0x4e0
[  243.379762]  ? __schedule+0x282/0x890
[  243.380418]  ? refcount_inc+0x9/0x30
[  243.382245]  __mutex_lock_slowpath+0x13/0x20
[  243.384329]  mutex_lock+0x2f/0x40
[  243.385475]  scsi_remove_device+0x1e/0x40
[  243.387391]  storvsc_remove_lun+0x40/0x60 [hv_storvsc]
[  243.389327]  process_one_work+0x1fc/0x490
[  243.401523]  worker_thread+0x4b/0x500
[  243.413317]  kthread+0x101/0x140
[  243.415295]  ? process_one_work+0x490/0x490
[  243.416763]  ? kthread_create_on_node+0x60/0x60
[  243.418599]  ret_from_fork+0x2c/0x40
[  243.420251] INFO: task kworker/3:4:333 blocked for more than 120 seconds.
[  243.443223]       Not tainted 4.10.0-next-20170228-next+ #4
[  243.445606] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[  243.448643] kworker/3:4     D    0   333      2 0x00000000
[  243.451139] Workqueue: events storvsc_remove_lun [hv_storvsc]
[  243.474469] Call Trace:
[  243.478194]  __schedule+0x27a/0x890
[  243.479075]  schedule+0x36/0x80
[  243.479887]  schedule_preempt_disabled+0xe/0x10
[  243.480615]  __mutex_lock.isra.5+0x25f/0x4e0
[  243.481664]  ? ttwu_do_wakeup+0x1e/0x150
[  243.484694]  ? refcount_inc+0x9/0x30
[  243.501458]  __mutex_lock_slowpath+0x13/0x20
[  243.504011]  mutex_lock+0x2f/0x40
[  243.505043]  scsi_remove_device+0x1e/0x40
[  243.506673]  storvsc_remove_lun+0x40/0x60 [hv_storvsc]
[  243.508303]  process_one_work+0x1fc/0x490
[  243.510060]  worker_thread+0x4b/0x500
[  243.511644]  kthread+0x101/0x140
[  243.512602]  ? process_one_work+0x490/0x490
[  243.514385]  ? kthread_create_on_node+0x60/0x60
[  243.537616]  ret_from_fork+0x2c/0x40
[  243.539497] INFO: task kworker/u480:5:334 blocked for more than 120 seconds.
[  243.541721]       Not tainted 4.10.0-next-20170228-next+ #4
[  243.543885] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[  243.563120] kworker/u480:5  D    0   334      2 0x00000000
[  243.565760] Workqueue: events_unbound async_run_entry_fn
[  243.568060] Call Trace:
[  243.568945]  __schedule+0x27a/0x890
[  243.570481]  schedule+0x36/0x80
[  243.571918]  io_schedule+0x16/0x40
[  243.573066]  do_read_cache_page+0x400/0x550
[  243.574919]  ? blkdev_writepages+0x40/0x40
[  243.576377]  ? page_cache_tree_insert+0x120/0x120
[  243.578329]  read_cache_page+0x12/0x20
[  243.579980]  read_dev_sector+0x7d/0xe0
[  243.581102]  ? get_page_from_freelist+0x891/0xad0
[  243.592370]  read_lba+0x193/0x270
[  243.605604]  ? kmem_cache_alloc_trace+0x181/0x190
[  243.608277]  efi_partition+0xf6/0x840
[  243.609370]  ? string+0x59/0x80
[  243.610686]  ? snprintf+0x49/0x60
[  243.612146]  ? compare_gpts+0x280/0x280
[  243.613318]  check_partition+0x13d/0x210
[  243.628468]  rescan_partitions+0xb8/0x370
[  243.634925]  ? get_device+0x17/0x20
[  243.636661]  ? down_write+0x12/0x40
[  243.638127]  __blkdev_get+0x31f/0x440
[  243.639533]  blkdev_get+0x12a/0x330
[  243.640455]  ? unlock_new_inode+0x49/0x80
[  243.642030]  ? refcount_dec_and_test+0x11/0x20
[  243.643734]  ? kobject_put+0x1f/0x60
[  243.644684]  device_add_disk+0x415/0x4a0
[  243.658639]  ? update_autosuspend+0x51/0x60
[  243.668143]  ? __pm_runtime_use_autosuspend+0x54/0x70
[  243.670071]  sd_probe_async+0x10d/0x1c0
[  243.671633]  async_run_entry_fn+0x37/0x150
[  243.672712]  process_one_work+0x1fc/0x490
[  243.674370]  worker_thread+0x4b/0x500
[  243.675961]  kthread+0x101/0x140
[  243.699980]  ? process_one_work+0x490/0x490
[  243.701822]  ? kthread_create_on_node+0x60/0x60
[  243.704162]  ret_from_fork+0x2c/0x40
[  243.706396] INFO: task kworker/3:5:335 blocked for more than 120 seconds.
[  243.725149]       Not tainted 4.10.0-next-20170228-next+ #4
[  243.729465] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[  243.732155] kworker/3:5     D    0   335      2 0x00000000
[  243.734540] Workqueue: events storvsc_remove_lun [hv_storvsc]
[  243.736424] Call Trace:
[  243.737727]  __schedule+0x27a/0x890
[  243.739946]  schedule+0x36/0x80
[  243.762753]  schedule_preempt_disabled+0xe/0x10
[  243.764775]  __mutex_lock.isra.5+0x25f/0x4e0
[  243.766623]  ? ttwu_do_wakeup+0x1e/0x150
[  243.768224]  ? refcount_inc+0x9/0x30
[  243.769242]  __mutex_lock_slowpath+0x13/0x20
[  243.780479]  mutex_lock+0x2f/0x40
[  243.794561]  scsi_remove_device+0x1e/0x40
[  243.797476]  storvsc_remove_lun+0x40/0x60 [hv_storvsc]
[  243.799623]  process_one_work+0x1fc/0x490
[  243.815894]  worker_thread+0x4b/0x500
[  243.824624]  kthread+0x101/0x140
[  243.826247]  ? process_one_work+0x490/0x490
[  243.828039]  ? kthread_create_on_node+0x60/0x60
[  243.829398]  ret_from_fork+0x2c/0x40
Begin: Loading essential drivers ... done.

^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: SCSI regression in 4.11
  2017-03-02  0:56                         ` Christoph Hellwig
@ 2017-03-02  1:40                           ` Stephen Hemminger
  2017-03-02 13:25                             ` Hannes Reinecke
  0 siblings, 1 reply; 49+ messages in thread
From: Stephen Hemminger @ 2017-03-02  1:40 UTC (permalink / raw)
  To: Christoph Hellwig
  Cc: James Bottomley, Jens Axboe, Linus Torvalds, Martin K. Petersen,
	K. Y. Srinivasan, Dexuan Cui, Long Li, Josh Poulson, v-adsuho,
	linux-scsi, Haiyang Zhang

On Thu, 2 Mar 2017 01:56:15 +0100
Christoph Hellwig <hch@lst.de> wrote:

> On Thu, Mar 02, 2017 at 01:01:35AM +0100, Christoph Hellwig wrote:
> > On Wed, Mar 01, 2017 at 07:54:12AM -0800, Stephen Hemminger wrote:  
> > > > 	http://git.infradead.org/users/hch/block.git/commitdiff/148cff67b401e2229c076c0ea418712654be77e4  
> > > 
> > > It appears that is already in the code I am testing in linux-next...  
> > 
> > It's in -next now, but it wasn't at the time you reported the bug.
> > 
> > And it would sortof explain the bug if the INQUIRY data is correct
> > in the scatterlist, but we ignore it, given that scsi_probe_lun
> > ignores the result based on sense data.
> > 
> > Can you check what happens with the horrible hack below:  
> 
> Strike that - we're checking result later, so this can't be the case.
> 
> Now the other interesting thing is the memset in __scsi_exectute,
> which looks very suspicious.  Try the following please:
> 
> diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c
> index 3e32dc954c3c..22f4fb550561 100644
> --- a/drivers/scsi/scsi_lib.c
> +++ b/drivers/scsi/scsi_lib.c
> @@ -253,7 +253,8 @@ static int __scsi_execute(struct scsi_device *sdev, const unsigned char *cmd,
>  	 * and prevent security leaks by zeroing out the excess data.
>  	 */
>  	if (unlikely(rq->resid_len > 0 && rq->resid_len <= bufflen))
> -		memset(buffer + (bufflen - rq->resid_len), 0, rq->resid_len);
> +//		memset(buffer + (bufflen - rq->resid_len), 0, rq->resid_len);
> +		printk_ratelimited("%s: got resid %d\n", __func__, rq->resid_len);
>  
>  	if (resid)
>  		*resid = rq->resid_len;


Still fails but does print resid on some of the later INQUIRY commands (not the initial one).

[    1.222728] scsi host0: storvsc_host_t
[    1.230120] hv_storvsc: INQUIRY cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    1.235358] scsi host1: storvsc_host_t
[    1.238629] hv_storvsc:  payload size 288 count 1 offset 3840 len 36 pfn 0x1f1ef2
[    1.241127] hv_storvsc:  sg 0: phys 0x1f1ef2000 virt ffff905db1ef2000 offset 0xf00 length 36
[    1.242422] hv_storvsc: INQUIRY cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    1.242423] hv_storvsc:  payload size 288 count 1 offset 3328 len 36 pfn 0x1f112b
[    1.242425] hv_storvsc:  sg 0: phys 0x1f112b000 virt ffff905db112b000 offset 0xd00 length 36
[    1.242427] data: 00000000: 05 80 00 02 1f 00 00 00 4d 73 66 74 20 20 20 20  ........Msft    
[    1.242427] data: 00000010: 56 69 72 74 75 61 6c 20 44 56 44 2d 52 4f 4d 20  Virtual DVD-ROM 
[    1.242428] data: 00000020: 31 2e 30 20                                      1.0 
[    1.242456] scsi 1:0:0:0: CD-ROM            Msft     Virtual DVD-ROM  1.0  PQ: 0 ANSI: 0
[    1.242705] hv_storvsc: INQUIRY cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x20 length 36
[    1.242706] hv_storvsc:  payload size 288 count 1 offset 2816 len 36 pfn 0x1f112b
[    1.242707] hv_storvsc:  sg 0: phys 0x1f112b000 virt ffff905db112b000 offset 0xb00 length 36
[    1.242708] data: 00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    1.242709] data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    1.242709] data: 00000020: 00 00 00 00                                      ....
[    1.242730] scsi host1: scsi scan: INQUIRY result too short (5), using 36
[    1.242732] scsi 1:0:0:1: Direct-Access                                    PQ: 0 ANSI: 0
[    1.242982] hv_storvsc: INQUIRY cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x20 length 36
[    1.242983] hv_storvsc:  payload size 288 count 1 offset 768 len 36 pfn 0x1f1129
[    1.242984] hv_storvsc:  sg 0: phys 0x1f1129000 virt ffff905db1129000 offset 0x300 length 36
[    1.242985] data: 00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    1.242986] data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    1.242986] data: 00000020: 00 00 00 00                                      ....
[    1.243003] scsi 1:0:0:2: Direct-Access                                    PQ: 0 ANSI: 0
[    1.244180] hv_storvsc: INQUIRY cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x20 length 36
[    1.244181] hv_storvsc:  payload size 288 count 1 offset 2048 len 36 pfn 0x1f1128
[    1.244181] hv_storvsc:  sg 0: phys 0x1f1128000 virt ffff905db1128000 offset 0x800 length 36
[    1.244182] data: 00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    1.244183] data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    1.244183] data: 00000020: 00 00 00 00                                      ....
[    1.244202] scsi 1:0:0:3: Direct-Access                                    PQ: 0 ANSI: 0
[    1.244463] hv_storvsc: INQUIRY cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x20 length 36
[    1.244463] hv_storvsc:  payload size 288 count 1 offset 2560 len 36 pfn 0x1f1129
[    1.244464] hv_storvsc:  sg 0: phys 0x1f1129000 virt ffff905db1129000 offset 0xa00 length 36
[    1.244465] data: 00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    1.244465] data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    1.244466] data: 00000020: 00 00 00 00                                      ....
[    1.244481] scsi 1:0:0:4: Direct-Access                                    PQ: 0 ANSI: 0
[    1.247017] hv_storvsc: INQUIRY cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x20 length 36
[    1.247018] hv_storvsc:  payload size 288 count 1 offset 256 len 36 pfn 0x1f112b
[    1.247019] hv_storvsc:  sg 0: phys 0x1f112b000 virt ffff905db112b000 offset 0x100 length 36
[    1.247021] data: 00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    1.247021] data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    1.247021] data: 00000020: 00 00 00 00                                      ....
[    1.247051] scsi 1:0:0:5: Direct-Access                                    PQ: 0 ANSI: 0
[    1.247359] hv_storvsc: INQUIRY cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x20 length 36
[    1.247372] hv_storvsc:  payload size 288 count 1 offset 768 len 36 pfn 0x1f112a
[    1.247379] hv_storvsc:  sg 0: phys 0x1f112a000 virt ffff905db112a000 offset 0x300 length 36
[    1.247391] data: 00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    1.247395] data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    1.247402] data: 00000020: 00 00 00 00                                      ....
[    1.247429] scsi 1:0:0:6: Direct-Access                                    PQ: 0 ANSI: 0
[    1.247758] hv_storvsc: INQUIRY cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x20 length 36
[    1.247758] hv_storvsc:  payload size 288 count 1 offset 1792 len 36 pfn 0x1f1129
[    1.247768] hv_storvsc:  sg 0: phys 0x1f1129000 virt ffff905db1129000 offset 0x700 length 36
[    1.247780] data: 00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    1.247781] data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    1.247785] data: 00000020: 00 00 00 00                                      ....
[    1.247816] scsi 1:0:0:7: Direct-Access                                    PQ: 0 ANSI: 0
[    1.248097] hv_storvsc: INQUIRY cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    1.248107] hv_storvsc:  payload size 288 count 1 offset 2048 len 36 pfn 0x1f112a
[    1.248107] hv_storvsc:  sg 0: phys 0x1f112a000 virt ffff905db112a000 offset 0x800 length 36
[    1.248120] data: 00000000: 7f 00 05 02 1f 00 00 00 4d 73 66 74 20 20 20 20  ........Msft    
[    1.248120] data: 00000010: 56 69 72 74 75 61 6c 20 44 69 73 6b 20 20 20 20  Virtual Disk    
[    1.248130] data: 00000020: 31 2e 30 20                                      1.0 
[    1.284189] random: fast init done
[    1.594553] data: 00000000: 00 00 05 02 1f 00 00 02 4d 73 66 74 20 20 20 20  ........Msft    
[    1.598356] data: 00000010: 56 69 72 74 75 61 6c 20 44 69 73 6b 20 20 20 20  Virtual Disk    
[    1.602223] data: 00000020: 31 2e 30 20                                      1.0 
[    1.605926] scsi 0:0:0:0: Direct-Access     Msft     Virtual Disk     1.0  PQ: 0 ANSI: 5
[    1.609761] hv_storvsc: INQUIRY cmd 0x12 0x1 0x0 scsi status 0x0 srb status 0x1 length 12
[    1.610084] hv_storvsc: INQUIRY cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    1.610085] hv_storvsc:  payload size 288 count 1 offset 2816 len 36 pfn 0x1f1277
[    1.610086] hv_storvsc:  sg 0: phys 0x1f1277000 virt ffff905db1277000 offset 0xb00 length 36
[    1.610088] data: 00000000: 7f 00 05 02 1f 00 00 00 4d 73 66 74 20 20 20 20  ........Msft    
[    1.610088] data: 00000010: 56 69 72 74 75 61 6c 20 44 69 73 6b 20 20 20 20  Virtual Disk    
[    1.610089] data: 00000020: 31 2e 30 20                                      1.0 
[    1.661738] hv_storvsc:  payload size 288 count 1 offset 0 len 255 pfn 0x1e3ba3
[    1.665438] hv_storvsc:  sg 0: phys 0x1e3ba3000 virt ffff905da3ba3000 offset 0x0 length 255
[    1.682175] data: 00000000: 00 00 00 08 00 83 8f b0 b1 b2 ce cf 00 00 00 00  ................
[    1.683345] data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    1.684363] data: 00000020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    1.692286] data: 00000030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    1.700453] data: 00000040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    1.708273] data: 00000050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    1.722436] data: 00000060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    1.739042] data: 00000070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    1.743325] data: 00000080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    1.747207] data: 00000090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    1.749977] data: 000000a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    1.754361] data: 000000b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    1.758723] data: 000000c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    1.776717] data: 000000d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    1.779593] data: 000000e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    1.783032] data: 000000f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00     ...............
[    1.787586] scsi_execute got resid 243
[    1.790063] hv_storvsc: INQUIRY cmd 0x12 0x1 0x83 scsi status 0x0 srb status 0x1 length 52
[    1.790333] hv_storvsc: INQUIRY cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    1.790334] hv_storvsc:  payload size 288 count 1 offset 2816 len 36 pfn 0x1f1277
[    1.790336] hv_storvsc:  sg 0: phys 0x1f1277000 virt ffff905db1277000 offset 0xb00 length 36
[    1.790337] data: 00000000: 7f 00 05 02 1f 00 00 00 4d 73 66 74 20 20 20 20  ........Msft    
[    1.790338] data: 00000010: 56 69 72 74 75 61 6c 20 44 69 73 6b 20 20 20 20  Virtual Disk    
[    1.790338] data: 00000020: 31 2e 30 20                                      1.0 
[    1.841715] hv_storvsc:  payload size 288 count 1 offset 0 len 255 pfn 0x1e3ba4
[    1.845524] hv_storvsc:  sg 0: phys 0x1e3ba4000 virt ffff905da3ba4000 offset 0x0 length 255
[    1.849966] data: 00000000: 00 83 00 30 01 01 00 18 4d 53 46 54 20 20 20 20  ...0....MSFT    
[    1.854428] data: 00000010: 43 77 cc 85 5f 19 c2 46 ac 48 c7 33 b9 dd 2d 2a  Cw.._..F.H.3..-*
[    1.857536] data: 00000020: 01 03 00 10 60 02 24 80 43 77 cc 85 5f 19 c7 33  ....`.$.Cw.._..3
[    1.861291] data: 00000030: b9 dd 2d 2a 00 00 00 00 00 00 00 00 00 00 00 00  ..-*............
[    1.865966] data: 00000040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    1.870546] data: 00000050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    1.901408] data: 00000060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    1.905671] data: 00000070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    1.910371] data: 00000080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    1.915072] data: 00000090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    1.935337] data: 000000a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    1.937999] data: 000000b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    1.941651] data: 000000c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    1.946651] data: 000000d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    1.951226] data: 000000e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    1.956304] data: 000000f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00     ...............
[    1.961435] scsi_execute got resid 203
[    1.964343] hv_storvsc: INQUIRY cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    1.981642] hv_storvsc:  payload size 288 count 1 offset 3840 len 36 pfn 0x1f1275
[    1.986109] hv_storvsc:  sg 0: phys 0x1f1275000 virt ffff905db1275000 offset 0xf00 length 36
[    1.991274] data: 00000000: 7f 00 05 02 1f 00 00 00 4d 73 66 74 20 20 20 20  ........Msft    
[    1.999081] data: 00000010: 56 69 72 74 75 61 6c 20 44 69 73 6b 20 20 20 20  Virtual Disk    
[    2.004044] data: 00000020: 31 2e 30 20                                      1.0 
[    2.009208] hv_storvsc: INQUIRY cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    2.024655] hv_storvsc:  payload size 288 count 1 offset 3840 len 36 pfn 0x1f1275
[    2.028036] hv_storvsc:  sg 0: phys 0x1f1275000 virt ffff905db1275000 offset 0xf00 length 36
[    2.043219] data: 00000000: 7f 00 05 02 1f 00 00 00 4d 73 66 74 20 20 20 20  ........Msft    
[    2.049037] data: 00000010: 56 69 72 74 75 61 6c 20 44 69 73 6b 20 20 20 20  Virtual Disk    
[    2.054207] data: 00000020: 31 2e 30 20                                      1.0 
[    2.065676] scsi_execute got resid 4080
[    2.069949] hv_storvsc: INQUIRY cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    2.069959] hv_storvsc:  payload size 288 count 1 offset 3840 len 36 pfn 0x1f1275
[    2.069982] hv_storvsc:  sg 0: phys 0x1f1275000 virt ffff905db1275000 offset 0xf00 length 36
[    2.069983] data: 00000000: 7f 00 05 02 1f 00 00 00 4d 73 66 74 20 20 20 20  ........Msft    
[    2.069983] data: 00000010: 56 69 72 74 75 61 6c 20 44 69 73 6b 20 20 20 20  Virtual Disk    
[    2.069988] data: 00000020: 31 2e 30 20                                      1.0 
[    2.102616] hv_storvsc: INQUIRY cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    2.106612] hv_storvsc:  payload size 288 count 1 offset 2560 len 36 pfn 0x1f1ef2
[    2.106612] hv_storvsc:  sg 0: phys 0x1f1ef2000 virt ffff905db1ef2000 offset 0xa00 length 36
[    2.106612] data: 00000000: 7f 00 05 02 1f 00 00 00 4d 73 66 74 20 20 20 20  ........Msft    
[    2.106612] data: 00000010: 56 69 72 74 75 61 6c 20 44 69 73 6b 20 20 20 20  Virtual Disk    
[    2.106612] data: 00000020: 31 2e 30 20                                      1.0 
[    2.141413] hv_storvsc: INQUIRY cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    2.146437] hv_storvsc:  payload size 288 count 1 offset 3840 len 36 pfn 0x1f1275
[    2.151053] hv_storvsc:  sg 0: phys 0x1f1275000 virt ffff905db1275000 offset 0xf00 length 36
[    2.167892] data: 00000000: 7f 00 05 02 1f 00 00 00 4d 73 66 74 20 20 20 20  ........Msft    
[    2.172929] data: 00000010: 56 69 72 74 75 61 6c 20 44 69 73 6b 20 20 20 20  Virtual Disk    
[    2.178172] data: 00000020: 31 2e 30 20                                      1.0 
[    2.183231] hv_storvsc: INQUIRY cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    2.187227] hv_storvsc:  payload size 288 count 1 offset 2560 len 36 pfn 0x1f1ef2
[    2.187227] hv_storvsc:  sg 0: phys 0x1f1ef2000 virt ffff905db1ef2000 offset 0xa00 length 36
[    2.187227] data: 00000000: 7f 00 05 02 1f 00 00 00 4d 73 66 74 20 20 20 20  ........Msft    
[    2.187227] data: 00000010: 56 69 72 74 75 61 6c 20 44 69 73 6b 20 20 20 20  Virtual Disk    
[    2.187227] data: 00000020: 31 2e 30 20                                      1.0 
[    2.225692] hv_storvsc: INQUIRY cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    2.230942] hv_storvsc:  payload size 288 count 1 offset 3840 len 36 pfn 0x1f1275
[    2.251916] hv_storvsc:  sg 0: phys 0x1f1275000 virt ffff905db1275000 offset 0xf00 length 36
[    2.257345] data: 00000000: 7f 00 05 02 1f 00 00 00 4d 73 66 74 20 20 20 20  ........Msft    
[    2.262948] data: 00000010: 56 69 72 74 75 61 6c 20 44 69 73 6b 20 20 20 20  Virtual Disk    
[    2.265758] data: 00000020: 31 2e 30 20                                      1.0 
[    2.271111] hv_storvsc: INQUIRY cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    2.276522] hv_storvsc:  payload size 288 count 1 offset 2560 len 36 pfn 0x1f1ef2
[    2.307899] hv_storvsc:  sg 0: phys 0x1f1ef2000 virt ffff905db1ef2000 offset 0xa00 length 36
[    2.312390] data: 00000000: 7f 00 05 02 1f 00 00 00 4d 73 66 74 20 20 20 20  ........Msft    
[    2.318075] data: 00000010: 56 69 72 74 75 61 6c 20 44 69 73 6b 20 20 20 20  Virtual Disk    
[    2.323732] data: 00000020: 31 2e 30 20                                      1.0 
[    2.341677] hv_storvsc: INQUIRY cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    2.344063] hv_storvsc:  payload size 288 count 1 offset 3840 len 36 pfn 0x1f1275
[    2.348636] hv_storvsc:  sg 0: phys 0x1f1275000 virt ffff905db1275000 offset 0xf00 length 36
[    2.354366] data: 00000000: 7f 00 05 02 1f 00 00 00 4d 73 66 74 20 20 20 20  ........Msft    
[    2.360141] data: 00000010: 56 69 72 74 75 61 6c 20 44 69 73 6b 20 20 20 20  Virtual Disk    
[    2.365879] data: 00000020: 31 2e 30 20                                      1.0 
[    2.371340] hv_storvsc: INQUIRY cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    2.388088] hv_storvsc:  payload size 288 count 1 offset 2560 len 36 pfn 0x1f1ef2
[    2.393104] hv_storvsc:  sg 0: phys 0x1f1ef2000 virt ffff905db1ef2000 offset 0xa00 length 36
[    2.398875] data: 00000000: 7f 00 05 02 1f 00 00 00 4d 73 66 74 20 20 20 20  ........Msft    
[    2.405109] data: 00000010: 56 69 72 74 75 61 6c 20 44 69 73 6b 20 20 20 20  Virtual Disk    
[    2.410898] data: 00000020: 31 2e 30 20                                      1.0 
[    2.416483] hv_storvsc: INQUIRY cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    2.433832] hv_storvsc:  payload size 288 count 1 offset 3840 len 36 pfn 0x1f1275
[    2.441820] hv_storvsc:  sg 0: phys 0x1f1275000 virt ffff905db1275000 offset 0xf00 length 36
[    2.447883] data: 00000000: 7f 00 05 02 1f 00 00 00 4d 73 66 74 20 20 20 20  ........Msft    
[    2.454422] data: 00000010: 56 69 72 74 75 61 6c 20 44 69 73 6b 20 20 20 20  Virtual Disk    
[    2.460592] data: 00000020: 31 2e 30 20                                      1.0 
[    2.469609] hv_storvsc: INQUIRY cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    2.475498] hv_storvsc:  payload size 288 count 1 offset 2560 len 36 pfn 0x1f1ef2
[    2.480879] hv_storvsc:  sg 0: phys 0x1f1ef2000 virt ffff905db1ef2000 offset 0xa00 length 36
[    2.511232] data: 00000000: 7f 00 05 02 1f 00 00 00 4d 73 66 74 20 20 20 20  ........Msft    
[    2.512355] data: 00000010: 56 69 72 74 75 61 6c 20 44 69 73 6b 20 20 20 20  Virtual Disk    
[    2.516218] data: 00000020: 31 2e 30 20                                      1.0 
[    2.522068] hv_storvsc: INQUIRY cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    2.533055] hv_storvsc:  payload size 288 count 1 offset 3840 len 36 pfn 0x1f1275
[    2.547864] hv_storvsc:  sg 0: phys 0x1f1275000 virt ffff905db1275000 offset 0xf00 length 36
[    2.548934] data: 00000000: 7f 00 05 02 1f 00 00 00 4d 73 66 74 20 20 20 20  ........Msft    
[    2.550104] data: 00000010: 56 69 72 74 75 61 6c 20 44 69 73 6b 20 20 20 20  Virtual Disk    
[    2.554974] data: 00000020: 31 2e 30 20                                      1.0 
[    2.561050] hv_storvsc: INQUIRY cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    2.567070] hv_storvsc:  payload size 288 count 1 offset 2560 len 36 pfn 0x1f1ef2
[    2.572454] hv_storvsc:  sg 0: phys 0x1f1ef2000 virt ffff905db1ef2000 offset 0xa00 length 36
[    2.576416] data: 00000000: 7f 00 05 02 1f 00 00 00 4d 73 66 74 20 20 20 20  ........Msft    
[    2.580698] data: 00000010: 56 69 72 74 75 61 6c 20 44 69 73 6b 20 20 20 20  Virtual Disk    
[    2.586924] data: 00000020: 31 2e 30 20                                      1.0 
[    2.610426] hv_storvsc: INQUIRY cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    2.616682] hv_storvsc:  payload size 288 count 1 offset 3840 len 36 pfn 0x1f1275
[    2.622430] hv_storvsc:  sg 0: phys 0x1f1275000 virt ffff905db1275000 offset 0xf00 length 36
[    2.628825] data: 00000000: 7f 00 05 02 1f 00 00 00 4d 73 66 74 20 20 20 20  ........Msft    
[    2.635315] data: 00000010: 56 69 72 74 75 61 6c 20 44 69 73 6b 20 20 20 20  Virtual Disk    
[    2.652806] data: 00000020: 31 2e 30 20                                      1.0 
[    2.670313] hv_storvsc: INQUIRY cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    2.676530] hv_storvsc:  payload size 288 count 1 offset 2560 len 36 pfn 0x1f1ef2
[    2.682350] hv_storvsc:  sg 0: phys 0x1f1ef2000 virt ffff905db1ef2000 offset 0xa00 length 36
[    2.700658] data: 00000000: 7f 00 05 02 1f 00 00 00 4d 73 66 74 20 20 20 20  ........Msft    
[    2.708184] data: 00000010: 56 69 72 74 75 61 6c 20 44 69 73 6b 20 20 20 20  Virtual Disk    
[    2.713235] data: 00000020: 31 2e 30 20                                      1.0 
[    2.718336] hv_storvsc: INQUIRY cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    2.724701] hv_storvsc:  payload size 288 count 1 offset 3840 len 36 pfn 0x1f1275
[    2.730493] hv_storvsc:  sg 0: phys 0x1f1275000 virt ffff905db1275000 offset 0xf00 length 36
[    2.746543] data: 00000000: 7f 00 05 02 1f 00 00 00 4d 73 66 74 20 20 20 20  ........Msft    
[    2.751031] data: 00000010: 56 69 72 74 75 61 6c 20 44 69 73 6b 20 20 20 20  Virtual Disk    
[    2.757802] data: 00000020: 31 2e 30 20                                      1.0 
[    2.764585] hv_storvsc: INQUIRY cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    2.764859] hv_storvsc: INQUIRY cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    2.764860] hv_storvsc:  payload size 288 count 1 offset 3840 len 36 pfn 0x1f1275
[    2.764861] hv_storvsc:  sg 0: phys 0x1f1275000 virt ffff905db1275000 offset 0xf00 length 36
[    2.764863] data: 00000000: 7f 00 05 02 1f 00 00 00 4d 73 66 74 20 20 20 20  ........Msft    
[    2.764863] data: 00000010: 56 69 72 74 75 61 6c 20 44 69 73 6b 20 20 20 20  Virtual Disk    
[    2.764864] data: 00000020: 31 2e 30 20                                      1.0 
[    2.816336] hv_storvsc:  payload size 288 count 1 offset 2560 len 36 pfn 0x1f1ef2
[    2.822130] hv_storvsc:  sg 0: phys 0x1f1ef2000 virt ffff905db1ef2000 offset 0xa00 length 36
[    2.839623] data: 00000000: 7f 00 05 02 1f 00 00 00 4d 73 66 74 20 20 20 20  ........Msft    
[    2.850323] data: 00000010: 56 69 72 74 75 61 6c 20 44 69 73 6b 20 20 20 20  Virtual Disk    
[    2.857409] data: 00000020: 31 2e 30 20                                      1.0 
[    2.864086] hv_storvsc: INQUIRY cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    2.864232] hv_storvsc: INQUIRY cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    2.864233] hv_storvsc:  payload size 288 count 1 offset 2560 len 36 pfn 0x1f1ef2
[    2.864235] hv_storvsc:  sg 0: phys 0x1f1ef2000 virt ffff905db1ef2000 offset 0xa00 length 36
[    2.864236] data: 00000000: 7f 00 05 02 1f 00 00 00 4d 73 66 74 20 20 20 20  ........Msft    
[    2.864237] data: 00000010: 56 69 72 74 75 61 6c 20 44 69 73 6b 20 20 20 20  Virtual Disk    
[    2.864237] data: 00000020: 31 2e 30 20                                      1.0 
[    2.916881] hv_storvsc:  payload size 288 count 1 offset 3840 len 36 pfn 0x1f1275
[    2.937138] hv_storvsc:  sg 0: phys 0x1f1275000 virt ffff905db1275000 offset 0xf00 length 36
[    2.944036] data: 00000000: 7f 00 05 02 1f 00 00 00 4d 73 66 74 20 20 20 20  ........Msft    
[    2.964796] data: 00000010: 56 69 72 74 75 61 6c 20 44 69 73 6b 20 20 20 20  Virtual Disk    
[    2.974043] data: 00000020: 31 2e 30 20                                      1.0 
[    2.979489] hv_storvsc: INQUIRY cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    2.986125] hv_storvsc:  payload size 288 count 1 offset 2560 len 36 pfn 0x1f1ef2
[    2.992116] hv_storvsc:  sg 0: phys 0x1f1ef2000 virt ffff905db1ef2000 offset 0xa00 length 36
[    3.002950] data: 00000000: 7f 00 05 02 1f 00 00 00 4d 73 66 74 20 20 20 20  ........Msft    
[    3.011839] data: 00000010: 56 69 72 74 75 61 6c 20 44 69 73 6b 20 20 20 20  Virtual Disk    
[    3.017573] data: 00000020: 31 2e 30 20                                      1.0 
[    3.024620] hv_storvsc: INQUIRY cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    3.032025] hv_storvsc:  payload size 288 count 1 offset 2560 len 36 pfn 0x1f1ef2
[    3.038325] hv_storvsc:  sg 0: phys 0x1f1ef2000 virt ffff905db1ef2000 offset 0xa00 length 36
[    3.055645] data: 00000000: 7f 00 05 02 1f 00 00 00 4d 73 66 74 20 20 20 20  ........Msft    
[    3.062027] data: 00000010: 56 69 72 74 75 61 6c 20 44 69 73 6b 20 20 20 20  Virtual Disk    
[    3.069190] data: 00000020: 31 2e 30 20                                      1.0 
[    3.088776] hv_storvsc: INQUIRY cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    3.093542] hv_storvsc:  payload size 288 count 1 offset 2560 len 36 pfn 0x1f1ef2
[    3.099750] hv_storvsc:  sg 0: phys 0x1f1ef2000 virt ffff905db1ef2000 offset 0xa00 length 36
[    3.107258] data: 00000000: 7f 00 05 02 1f 00 00 00 4d 73 66 74 20 20 20 20  ........Msft    
[    3.114461] data: 00000010: 56 69 72 74 75 61 6c 20 44 69 73 6b 20 20 20 20  Virtual Disk    
[    3.130818] data: 00000020: 31 2e 30 20                                      1.0 
[    3.139847] hv_storvsc: INQUIRY cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    3.146845] hv_storvsc:  payload size 288 count 1 offset 2560 len 36 pfn 0x1f1ef2
[    3.166667] hv_storvsc:  sg 0: phys 0x1f1ef2000 virt ffff905db1ef2000 offset 0xa00 length 36
[    3.173167] data: 00000000: 7f 00 05 02 1f 00 00 00 4d 73 66 74 20 20 20 20  ........Msft    
[    3.178052] data: 00000010: 56 69 72 74 75 61 6c 20 44 69 73 6b 20 20 20 20  Virtual Disk    
[    3.185482] data: 00000020: 31 2e 30 20                                      1.0 
[    3.192503] hv_storvsc: INQUIRY cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    3.202257] hv_storvsc:  payload size 288 count 1 offset 2560 len 36 pfn 0x1f1ef2
[    3.213984] hv_storvsc:  sg 0: phys 0x1f1ef2000 virt ffff905db1ef2000 offset 0xa00 length 36
[    3.222230] data: 00000000: 7f 00 05 02 1f 00 00 00 4d 73 66 74 20 20 20 20  ........Msft    
[    3.231055] data: 00000010: 56 69 72 74 75 61 6c 20 44 69 73 6b 20 20 20 20  Virtual Disk    
[    3.232606] data: 00000020: 31 2e 30 20                                      1.0 
[    3.234584] hv_storvsc: INQUIRY cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    3.243386] hv_storvsc:  payload size 288 count 1 offset 2560 len 36 pfn 0x1f1ef2
[    3.275807] hv_storvsc:  sg 0: phys 0x1f1ef2000 virt ffff905db1ef2000 offset 0xa00 length 36
[    3.280650] data: 00000000: 7f 00 05 02 1f 00 00 00 4d 73 66 74 20 20 20 20  ........Msft    
[    3.288369] data: 00000010: 56 69 72 74 75 61 6c 20 44 69 73 6b 20 20 20 20  Virtual Disk    
[    3.311133] data: 00000020: 31 2e 30 20                                      1.0 
[    3.313946] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    3.314755] hv_storvsc: INQUIRY cmd 0x12 0x1 0x0 scsi status 0x0 srb status 0x1 length 8
[    3.314940] sr 1:0:0:0: [sr0] scsi3-mmc drive: 0x/0x caddy
[    3.314941] cdrom: Uniform CD-ROM driver Revision: 3.20
[    3.323114] hv_storvsc:  payload size 288 count 1 offset 1584 len 8 pfn 0x1f2687
[    3.327097] hv_storvsc:  sg 0: phys 0x1f2687000 virt ffff905db2687000 offset 0x630 length 8
[    3.337525] data: 00000000: 00 00 00 08 00 83 8f b0                          ........
[    3.341499] hv_storvsc: INQUIRY cmd 0x12 0x1 0xb2 scsi status 0x0 srb status 0x1 length 8
[    3.342988] hv_storvsc: INQUIRY cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    3.342989] hv_storvsc:  payload size 288 count 1 offset 0 len 254 pfn 0x1e3c1e
[    3.342990] hv_storvsc:  sg 0: phys 0x1e3c1e000 virt ffff905da3c1e000 offset 0x0 length 254
[    3.342992] data: 00000000: 05 80 00 02 1f 00 00 00 4d 73 66 74 20 20 20 20  ........Msft    
[    3.342993] data: 00000010: 56 69 72 74 75 61 6c 20 44 56 44 2d 52 4f 4d 20  Virtual DVD-ROM 
[    3.342993] data: 00000020: 31 2e 30 20 00 00 00 00 00 00 00 00 00 00 00 00  1.0 ............
[    3.342994] data: 00000030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.342994] data: 00000040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.342995] data: 00000050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.342995] data: 00000060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.342996] data: 00000070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.342996] data: 00000080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.342997] data: 00000090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.342997] data: 000000a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.342998] data: 000000b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.342999] data: 000000c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.342999] data: 000000d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.343000] data: 000000e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.343000] data: 000000f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00        ..............
[    3.343180] hv_storvsc: INQUIRY cmd 0x12 0x1 0x0 scsi status 0x0 srb status 0x1 length 6
[    3.343181] hv_storvsc:  payload size 288 count 1 offset 0 len 254 pfn 0x1e3c1f
[    3.343181] hv_storvsc:  sg 0: phys 0x1e3c1f000 virt ffff905da3c1f000 offset 0x0 length 254
[    3.343182] data: 00000000: 05 00 00 02 00 83 00 00 00 00 00 00 00 00 00 00  ................
[    3.343182] data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.343183] data: 00000020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.343183] data: 00000030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.343183] data: 00000040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.343184] data: 00000050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.343184] data: 00000060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.343184] data: 00000070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.343185] data: 00000080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.343185] data: 00000090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.343186] data: 000000a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.343186] data: 000000b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.343186] data: 000000c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.343187] data: 000000d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.343187] data: 000000e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.343188] data: 000000f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00        ..............
[    3.343225] hv_storvsc: INQUIRY cmd 0x12 0x1 0x80 scsi status 0x2 srb status 0x84 length 0
[    3.343225] hv_storvsc:  payload size 288 count 1 offset 0 len 254 pfn 0x1e3c1f
[    3.343226] hv_storvsc:  sg 0: phys 0x1e3c1f000 virt ffff905da3c1f000 offset 0x0 length 254
[    3.343226] data: 00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.343227] data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.343227] data: 00000020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.343228] data: 00000030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.343228] data: 00000040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.343228] data: 00000050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.343229] data: 00000060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.343229] data: 00000070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.343229] data: 00000080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.343230] data: 00000090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.343230] data: 000000a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.343231] data: 000000b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.343231] data: 000000c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.343231] data: 000000d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.343232] data: 000000e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.343232] data: 000000f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00        ..............
[    3.343263] hv_storvsc: INQUIRY cmd 0x12 0x1 0x83 scsi status 0x0 srb status 0x1 length 32
[    3.343264] hv_storvsc:  payload size 288 count 1 offset 0 len 254 pfn 0x1e3c1f
[    3.343264] hv_storvsc:  sg 0: phys 0x1e3c1f000 virt ffff905da3c1f000 offset 0x0 length 254
[    3.343265] data: 00000000: 05 83 00 1c 01 01 00 18 4d 53 46 54 20 20 20 20  ........MSFT    
[    3.343265] data: 00000010: 73 05 e3 43 77 03 54 46 94 95 7d 7c ed 62 4a 7d  s..Cw.TF..}|.bJ}
[    3.343265] data: 00000020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.343266] data: 00000030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.343266] data: 00000040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.343266] data: 00000050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.343267] data: 00000060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.343267] data: 00000070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.343268] data: 00000080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.343268] data: 00000090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.343268] data: 000000a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.343269] data: 000000b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.343269] data: 000000c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.343270] data: 000000d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.343270] data: 000000e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.343270] data: 000000f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00        ..............
[    3.344623] hv_storvsc: INQUIRY cmd 0x12 0x0 0x0 scsi status 0x0 srb status 0x1 length 36
[    3.344624] hv_storvsc:  payload size 288 count 1 offset 0 len 254 pfn 0x1f064f
[    3.344625] hv_storvsc:  sg 0: phys 0x1f064f000 virt ffff905db064f000 offset 0x0 length 254
[    3.344626] data: 00000000: 05 80 00 02 1f 00 00 00 4d 73 66 74 20 20 20 20  ........Msft    
[    3.344627] data: 00000010: 56 69 72 74 75 61 6c 20 44 56 44 2d 52 4f 4d 20  Virtual DVD-ROM 
[    3.344627] data: 00000020: 31 2e 30 20 00 00 00 00 00 00 00 00 00 00 00 00  1.0 ............
[    3.344628] data: 00000030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.344628] data: 00000040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.344628] data: 00000050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.344629] data: 00000060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.344629] data: 00000070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.344629] data: 00000080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.344630] data: 00000090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.344630] data: 000000a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.344631] data: 000000b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.344631] data: 000000c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.344631] data: 000000d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.344632] data: 000000e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.344632] data: 000000f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00        ..............
[    3.344807] hv_storvsc: INQUIRY cmd 0x12 0x1 0x0 scsi status 0x0 srb status 0x1 length 6
[    3.344808] hv_storvsc:  payload size 288 count 1 offset 0 len 254 pfn 0x1f064e
[    3.344809] hv_storvsc:  sg 0: phys 0x1f064e000 virt ffff905db064e000 offset 0x0 length 254
[    3.344810] data: 00000000: 05 00 00 02 00 83 00 00 00 00 00 00 00 00 00 00  ................
[    3.344810] data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.344811] data: 00000020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.344811] data: 00000030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.344812] data: 00000040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.344812] data: 00000050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.344812] data: 00000060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.344813] data: 00000070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.344814] data: 00000080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.344814] data: 00000090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.344815] data: 000000a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.344816] data: 000000b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.344816] data: 000000c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.344817] data: 000000d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.344817] data: 000000e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.344818] data: 000000f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00        ..............
[    3.344848] hv_storvsc: INQUIRY cmd 0x12 0x1 0x80 scsi status 0x2 srb status 0x84 length 0
[    3.344849] hv_storvsc:  payload size 288 count 1 offset 0 len 254 pfn 0x1f064e
[    3.344849] hv_storvsc:  sg 0: phys 0x1f064e000 virt ffff905db064e000 offset 0x0 length 254
[    3.344850] data: 00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.344850] data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.344851] data: 00000020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.344851] data: 00000030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.344851] data: 00000040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.344852] data: 00000050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.344852] data: 00000060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.344853] data: 00000070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.344853] data: 00000080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.344853] data: 00000090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.344854] data: 000000a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.344854] data: 000000b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.344855] data: 000000c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.344855] data: 000000d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.344855] data: 000000e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.344856] data: 000000f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00        ..............
[    3.344886] hv_storvsc: INQUIRY cmd 0x12 0x1 0x83 scsi status 0x0 srb status 0x1 length 32
[    3.344886] hv_storvsc:  payload size 288 count 1 offset 0 len 254 pfn 0x1f064e
[    3.344887] hv_storvsc:  sg 0: phys 0x1f064e000 virt ffff905db064e000 offset 0x0 length 254
[    3.344887] data: 00000000: 05 83 00 1c 01 01 00 18 4d 53 46 54 20 20 20 20  ........MSFT    
[    3.344888] data: 00000010: 73 05 e3 43 77 03 54 46 94 95 7d 7c ed 62 4a 7d  s..Cw.TF..}|.bJ}
[    3.344888] data: 00000020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.344889] data: 00000030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.344890] data: 00000040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.344890] data: 00000050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.344891] data: 00000060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.344891] data: 00000070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.344892] data: 00000080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.344893] data: 00000090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.344893] data: 000000a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.344894] data: 000000b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.344894] data: 000000c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.344895] data: 000000d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.344896] data: 000000e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    3.344896] data: 000000f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00        ..............
[    3.356067] sr 1:0:0:0: Attached scsi generic sg1 type 5
[    3.356223] sd 1:0:0:1: Attached scsi generic sg2 type 0
[    3.356263] scsi_execute got resid 8
[    3.356265] sd 1:0:0:1: [sdb] Sector size 0 reported, assuming 512.
[    3.356268] sd 1:0:0:1: [sdb] 1 512-byte logical blocks: (512 B/512 B)
[    3.356269] sd 1:0:0:1: [sdb] 0-byte physical blocks
[    3.356294] sd 1:0:0:1: [sdb] Write Protect is off
[    3.356317] sd 1:0:0:2: Attached scsi generic sg3 type 0
[    3.356325] sd 1:0:0:1: [sdb] Asking for cache data failed
[    3.356326] sd 1:0:0:1: [sdb] Assuming drive cache: write through
[    3.356755] scsi_execute got resid 8
[    3.356757] sd 1:0:0:1: [sdb] Sector size 0 reported, assuming 512.
[    3.357078] sd 1:0:0:3: Attached scsi generic sg4 type 0
[    3.357729] sd 1:0:0:4: Attached scsi generic sg5 type 0
[    3.357968] sd 1:0:0:5: Attached scsi generic sg6 type 0
[    3.358146] sd 1:0:0:6: Attached scsi generic sg7 type 0
[    3.358470] sd 1:0:0:7: Attached scsi generic sg8 type 0
[    3.358405] blk_update_request: I/O error, dev sdb, sector 0
[    3.358407] Buffer I/O error on dev sdb, logical block 0, async page read
[    3.358416] blk_update_request: I/O error, dev sdb, sector 0
[    3.358416] Buffer I/O error on dev sdb, logical block 0, async page read
[    3.358420] blk_update_request: I/O error, dev sdb, sector 0
[    3.358421] Buffer I/O error on dev sdb, logical block 0, async page read
[    3.358422] ldm_validate_partition_table(): Disk read failed.
[    3.358440] blk_update_request: I/O error, dev sdb, sector 0
[    3.358441] Buffer I/O error on dev sdb, logical block 0, async page read
[    3.358444] blk_update_request: I/O error, dev sdb, sector 0
[    3.358445] Buffer I/O error on dev sdb, logical block 0, async page read
[    3.358448] blk_update_request: I/O error, dev sdb, sector 0
[    3.358448] Buffer I/O error on dev sdb, logical block 0, async page read
[    3.358451] blk_update_request: I/O error, dev sdb, sector 0
[    3.358452] Buffer I/O error on dev sdb, logical block 0, async page read
[    3.358453] Dev sdb: unable to read RDB block 0
[    3.358455] blk_update_request: I/O error, dev sdb, sector 0
[    3.358456] Buffer I/O error on dev sdb, logical block 0, async page read
[    3.358459] blk_update_request: I/O error, dev sdb, sector 0
[    3.358459] Buffer I/O error on dev sdb, logical block 0, async page read
[    3.358463] blk_update_request: I/O error, dev sdb, sector 0
[    3.358463] Buffer I/O error on dev sdb, logical block 0, async page read
[    3.358467]  sdb: unable to read partition table
[    3.358470] sdb: partition table beyond EOD, enabling native capacity
[    3.358668] scsi_execute got resid 8
[    3.358668] sd 1:0:0:2: [sdc] Sector size 0 reported, assuming 512.
[    3.358668] sd 1:0:0:2: [sdc] 1 512-byte logical blocks: (512 B/512 B)
[    3.358668] sd 1:0:0:2: [sdc] 0-byte physical blocks
[    3.358668] sd 1:0:0:2: [sdc] Write Protect is off
[    3.358668] sd 1:0:0:2: [sdc] Asking for cache data failed
[    3.358668] sd 1:0:0:2: [sdc] Assuming drive cache: write through
[    3.358737] scsi_execute got resid 8
[    3.358738] sd 1:0:0:2: [sdc] Sector size 0 reported, assuming 512.
[    3.359714] scsi_execute got resid 8
[    3.359717] sd 1:0:0:1: [sdb] Sector size 0 reported, assuming 512.
[    3.359898] ldm_validate_partition_table(): Disk read failed.
[    3.359906] Dev sdb: unable to read RDB block 0
[    3.359913]  sdb: unable to read partition table
[    3.359915] sdb: partition table beyond EOD, truncated
[    3.360297] scsi_execute got resid 8
[    3.360300] sd 1:0:0:1: [sdb] Sector size 0 reported, assuming 512.
[    3.360368] sd 1:0:0:1: [sdb] Attached SCSI disk
[    3.360454] scsi_execute got resid 8
[    3.360456] sd 1:0:0:3: [sdd] Sector size 0 reported, assuming 512.
[    3.360458] sd 1:0:0:3: [sdd] 1 512-byte logical blocks: (512 B/512 B)
[    3.360459] sd 1:0:0:3: [sdd] 0-byte physical blocks
[    3.360509] sd 1:0:0:3: [sdd] Write Protect is off
[    3.360542] sd 1:0:0:3: [sdd] Asking for cache data failed
[    3.360550] sd 1:0:0:3: [sdd] Assuming drive cache: write through
[    3.360759] sd 1:0:0:3: [sdd] Sector size 0 reported, assuming 512.
[    3.447345] random: crng init done
[    4.116192] sd 1:0:0:4: [sde] Sector size 0 reported, assuming 512.
[    4.116195] sd 1:0:0:4: [sde] 1 512-byte logical blocks: (512 B/512 B)
[    4.116197] sd 1:0:0:4: [sde] 0-byte physical blocks
[    4.116234] sd 1:0:0:4: [sde] Write Protect is off
[    4.116293] sd 1:0:0:4: [sde] Asking for cache data failed
[    4.116294] sd 1:0:0:4: [sde] Assuming drive cache: write through
[    4.116298] sd 1:0:0:5: [sdf] Sector size 0 reported, assuming 512.
[    4.116301] sd 1:0:0:5: [sdf] 1 512-byte logical blocks: (512 B/512 B)
[    4.116302] sd 1:0:0:5: [sdf] 0-byte physical blocks
[    4.116330] sd 1:0:0:6: [sdg] Sector size 0 reported, assuming 512.
[    4.116332] sd 1:0:0:6: [sdg] 1 512-byte logical blocks: (512 B/512 B)
[    4.116332] sd 1:0:0:6: [sdg] 0-byte physical blocks
[    4.116339] sd 1:0:0:5: [sdf] Write Protect is off
[    4.116378] sd 1:0:0:5: [sdf] Asking for cache data failed
[    4.116379] sd 1:0:0:5: [sdf] Assuming drive cache: write through
[    4.116433] sd 1:0:0:7: [sdh] Sector size 0 reported, assuming 512.
[    4.116435] sd 1:0:0:7: [sdh] 1 512-byte logical blocks: (512 B/512 B)
[    4.116436] sd 1:0:0:7: [sdh] 0-byte physical blocks
[    4.116467] sd 1:0:0:4: [sde] Sector size 0 reported, assuming 512.
[    4.116564] sd 1:0:0:7: [sdh] Write Protect is off
[    4.116609] sd 1:0:0:5: [sdf] Sector size 0 reported, assuming 512.
[    4.116636] sd 1:0:0:6: [sdg] Write Protect is off
[    4.116630] sd 1:0:0:7: [sdh] Asking for cache data failed
[    4.116631] sd 1:0:0:7: [sdh] Assuming drive cache: write through
[    4.116701] sd 1:0:0:6: [sdg] Asking for cache data failed
[    4.116702] sd 1:0:0:6: [sdg] Assuming drive cache: write through
[    4.116887] sd 1:0:0:7: [sdh] Sector size 0 reported, assuming 512.
[    4.116949] sd 1:0:0:6: [sdg] Sector size 0 reported, assuming 512.
[    5.304128] hv_storvsc:  payload size 288 count 1 offset 1584 len 8 pfn 0x1f2687
[    5.306669] hv_storvsc:  sg 0: phys 0x1f2687000 virt ffff905db2687000 offset 0x630 length 8
[    5.309498] data: 00000000: 00 b2 00 04 01 80 02 00                          ........
[    5.312871] hv_storvsc: INQUIRY cmd 0x12 0x1 0x0 scsi status 0x0 srb status 0x1 length 12
[    5.315883] hv_storvsc:  payload size 288 count 1 offset 2496 len 64 pfn 0x1f98c9
[    5.318004] hv_storvsc:  sg 0: phys 0x1f98c9000 virt ffff905db98c9000 offset 0x9c0 length 64
[    5.320694] data: 00000000: 00 00 00 08 00 83 8f b0 b1 b2 ce cf 00 00 ad de  ................
[    5.323745] data: 00000010: 00 02 00 00 00 00 ad de 01 00 00 00 00 00 00 00  ................
[    5.341373] data: 00000020: 00 00 00 00 00 00 00 00 02 00 00 00 00 00 00 00  ................
[    5.344177] data: 00000030: 00 00 00 00 00 00 00 00 d5 0b 50 b2 ff ff ff ff  ..........P.....
[    5.347673] hv_storvsc: INQUIRY cmd 0x12 0x1 0xb0 scsi status 0x0 srb status 0x1 length 64
[    5.350101] hv_storvsc:  payload size 288 count 1 offset 2496 len 64 pfn 0x1f98c9
[    5.352539] hv_storvsc:  sg 0: phys 0x1f98c9000 virt ffff905db98c9000 offset 0x9c0 length 64
[    5.355472] data: 00000000: 00 b0 00 3c 00 01 00 00 00 00 00 00 00 00 00 00  ...<............
[    5.358303] data: 00000010: 00 00 00 00 ff ff ff ff 00 00 10 00 00 01 00 00  ................
[    5.361471] data: 00000020: 80 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00  ..........@.....
[    5.364390] data: 00000030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    5.367553] hv_storvsc: INQUIRY cmd 0x12 0x1 0x0 scsi status 0x0 srb status 0x1 length 12
[    5.369817] hv_storvsc:  payload size 288 count 1 offset 2496 len 64 pfn 0x1f98c9
[    5.375006] hv_storvsc:  sg 0: phys 0x1f98c9000 virt ffff905db98c9000 offset 0x9c0 length 64
[    5.377634] data: 00000000: 00 00 00 08 00 83 8f b0 b1 b2 ce cf 00 00 00 00  ................
[    5.380280] data: 00000010: 00 00 00 00 ff ff ff ff 00 00 10 00 00 01 00 00  ................
[    5.383063] data: 00000020: 80 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00  ..........@.....
[    5.385518] data: 00000030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    5.397950] hv_storvsc: INQUIRY cmd 0x12 0x1 0xb1 scsi status 0x0 srb status 0x1 length 64
[    5.421755] hv_storvsc:  payload size 288 count 1 offset 2496 len 64 pfn 0x1f98c9
[    5.424121] hv_storvsc:  sg 0: phys 0x1f98c9000 virt ffff905db98c9000 offset 0x9c0 length 64
[    5.427212] data: 00000000: 00 b1 00 3c 00 00 00 00 00 00 00 00 00 00 00 00  ...<............
[    5.429834] data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    5.432738] data: 00000020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    5.449282] data: 00000030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    5.461140] sd 0:0:0:0: [sda] 266338304 512-byte logical blocks: (136 GB/127 GiB)
[    5.464335] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    5.467012] sd 0:0:0:0: [sda] Write Protect is off
[    5.468759] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA

^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: SCSI regression in 4.11
  2017-03-02  1:40                           ` Stephen Hemminger
@ 2017-03-02 13:25                             ` Hannes Reinecke
  2017-03-02 17:48                               ` Stephen Hemminger
  2017-03-02 18:23                               ` Stephen Hemminger
  0 siblings, 2 replies; 49+ messages in thread
From: Hannes Reinecke @ 2017-03-02 13:25 UTC (permalink / raw)
  To: Stephen Hemminger, Christoph Hellwig
  Cc: James Bottomley, Jens Axboe, Linus Torvalds, Martin K. Petersen,
	K. Y. Srinivasan, Dexuan Cui, Long Li, Josh Poulson, v-adsuho,
	linux-scsi, Haiyang Zhang

On 03/02/2017 02:40 AM, Stephen Hemminger wrote:
> On Thu, 2 Mar 2017 01:56:15 +0100
> Christoph Hellwig <hch@lst.de> wrote:
>
>> On Thu, Mar 02, 2017 at 01:01:35AM +0100, Christoph Hellwig wrote:
>>> On Wed, Mar 01, 2017 at 07:54:12AM -0800, Stephen Hemminger wrote:
>>>>> 	http://git.infradead.org/users/hch/block.git/commitdiff/148cff67b401e2229c076c0ea418712654be77e4
>>>>
>>>> It appears that is already in the code I am testing in linux-next...
>>>
>>> It's in -next now, but it wasn't at the time you reported the bug.
>>>
>>> And it would sortof explain the bug if the INQUIRY data is correct
>>> in the scatterlist, but we ignore it, given that scsi_probe_lun
>>> ignores the result based on sense data.
>>>
>>> Can you check what happens with the horrible hack below:
>>
>> Strike that - we're checking result later, so this can't be the case.
>>
>> Now the other interesting thing is the memset in __scsi_exectute,
>> which looks very suspicious.  Try the following please:
>>
>> diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c
>> index 3e32dc954c3c..22f4fb550561 100644
>> --- a/drivers/scsi/scsi_lib.c
>> +++ b/drivers/scsi/scsi_lib.c
>> @@ -253,7 +253,8 @@ static int __scsi_execute(struct scsi_device *sdev, const unsigned char *cmd,
>>  	 * and prevent security leaks by zeroing out the excess data.
>>  	 */
>>  	if (unlikely(rq->resid_len > 0 && rq->resid_len <= bufflen))
>> -		memset(buffer + (bufflen - rq->resid_len), 0, rq->resid_len);
>> +//		memset(buffer + (bufflen - rq->resid_len), 0, rq->resid_len);
>> +		printk_ratelimited("%s: got resid %d\n", __func__, rq->resid_len);
>>
>>  	if (resid)
>>  		*resid = rq->resid_len;
>
>
> Still fails but does print resid on some of the later INQUIRY commands (not the initial one).
>
Can you test what happens if you blank out the storvsc_drv workaround:

diff --git a/drivers/scsi/storvsc_drv.c b/drivers/scsi/storvsc_drv.c
index 585e54f..c36f42d 100644
--- a/drivers/scsi/storvsc_drv.c
+++ b/drivers/scsi/storvsc_drv.c
@@ -1060,13 +1060,13 @@ static void storvsc_on_io_completion(struct 
storvsc_device *stor_device,
          * We do this so we can distinguish truly fatal failues
          * (srb status == 0x4) and off-line the device in that case.
          */
-
+#if 0
         if ((stor_pkt->vm_srb.cdb[0] == INQUIRY) ||
            (stor_pkt->vm_srb.cdb[0] == MODE_SENSE)) {
                 vstor_packet->vm_srb.scsi_status = 0;
                 vstor_packet->vm_srb.srb_status = SRB_STATUS_SUCCESS;
         }
-
+#endif

         /* Copy over the status...etc */
         stor_pkt->vm_srb.scsi_status = vstor_packet->vm_srb.scsi_status;

It might thappen that we're fail to interpret the 'Device not present' 
status correctly (which will happen for non-connected DVDs) causing the 
SCSI stack to make incorrect decisions later on.

Cheers,

Hannes
-- 
Dr. Hannes Reinecke		      zSeries & Storage
hare@suse.de			      +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)

^ permalink raw reply related	[flat|nested] 49+ messages in thread

* Re: SCSI regression in 4.11
  2017-03-02 13:25                             ` Hannes Reinecke
@ 2017-03-02 17:48                               ` Stephen Hemminger
  2017-03-02 18:23                               ` Stephen Hemminger
  1 sibling, 0 replies; 49+ messages in thread
From: Stephen Hemminger @ 2017-03-02 17:48 UTC (permalink / raw)
  To: Hannes Reinecke
  Cc: Christoph Hellwig, James Bottomley, Jens Axboe, Linus Torvalds,
	Martin K. Petersen, K. Y. Srinivasan, Dexuan Cui, Long Li,
	Josh Poulson, v-adsuho, linux-scsi, Haiyang Zhang

On Thu, 2 Mar 2017 14:25:14 +0100
Hannes Reinecke <hare@suse.de> wrote:

> On 03/02/2017 02:40 AM, Stephen Hemminger wrote:
> > On Thu, 2 Mar 2017 01:56:15 +0100
> > Christoph Hellwig <hch@lst.de> wrote:
> >  
> >> On Thu, Mar 02, 2017 at 01:01:35AM +0100, Christoph Hellwig wrote:  
> >>> On Wed, Mar 01, 2017 at 07:54:12AM -0800, Stephen Hemminger wrote:  
> >>>>> 	http://git.infradead.org/users/hch/block.git/commitdiff/148cff67b401e2229c076c0ea418712654be77e4  
> >>>>
> >>>> It appears that is already in the code I am testing in linux-next...  
> >>>
> >>> It's in -next now, but it wasn't at the time you reported the bug.
> >>>
> >>> And it would sortof explain the bug if the INQUIRY data is correct
> >>> in the scatterlist, but we ignore it, given that scsi_probe_lun
> >>> ignores the result based on sense data.
> >>>
> >>> Can you check what happens with the horrible hack below:  
> >>
> >> Strike that - we're checking result later, so this can't be the case.
> >>
> >> Now the other interesting thing is the memset in __scsi_exectute,
> >> which looks very suspicious.  Try the following please:
> >>
> >> diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c
> >> index 3e32dc954c3c..22f4fb550561 100644
> >> --- a/drivers/scsi/scsi_lib.c
> >> +++ b/drivers/scsi/scsi_lib.c
> >> @@ -253,7 +253,8 @@ static int __scsi_execute(struct scsi_device *sdev, const unsigned char *cmd,
> >>  	 * and prevent security leaks by zeroing out the excess data.
> >>  	 */
> >>  	if (unlikely(rq->resid_len > 0 && rq->resid_len <= bufflen))
> >> -		memset(buffer + (bufflen - rq->resid_len), 0, rq->resid_len);
> >> +//		memset(buffer + (bufflen - rq->resid_len), 0, rq->resid_len);
> >> +		printk_ratelimited("%s: got resid %d\n", __func__, rq->resid_len);
> >>
> >>  	if (resid)
> >>  		*resid = rq->resid_len;  
> >
> >
> > Still fails but does print resid on some of the later INQUIRY commands (not the initial one).
> >  
> Can you test what happens if you blank out the storvsc_drv workaround:
> 
> diff --git a/drivers/scsi/storvsc_drv.c b/drivers/scsi/storvsc_drv.c
> index 585e54f..c36f42d 100644
> --- a/drivers/scsi/storvsc_drv.c
> +++ b/drivers/scsi/storvsc_drv.c
> @@ -1060,13 +1060,13 @@ static void storvsc_on_io_completion(struct 
> storvsc_device *stor_device,
>           * We do this so we can distinguish truly fatal failues
>           * (srb status == 0x4) and off-line the device in that case.
>           */
> -
> +#if 0
>          if ((stor_pkt->vm_srb.cdb[0] == INQUIRY) ||
>             (stor_pkt->vm_srb.cdb[0] == MODE_SENSE)) {
>                  vstor_packet->vm_srb.scsi_status = 0;
>                  vstor_packet->vm_srb.srb_status = SRB_STATUS_SUCCESS;
>          }
> -
> +#endif
> 
>          /* Copy over the status...etc */
>          stor_pkt->vm_srb.scsi_status = vstor_packet->vm_srb.scsi_status;
> 
> It might thappen that we're fail to interpret the 'Device not present' 
> status correctly (which will happen for non-connected DVDs) causing the 
> SCSI stack to make incorrect decisions later on.
> 
> Cheers,
> 
> Hannes

Makes no difference, that was one of the first things I tried (and just tried again).

^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: SCSI regression in 4.11
  2017-03-02 13:25                             ` Hannes Reinecke
  2017-03-02 17:48                               ` Stephen Hemminger
@ 2017-03-02 18:23                               ` Stephen Hemminger
  2017-03-02 18:36                                 ` James Bottomley
  1 sibling, 1 reply; 49+ messages in thread
From: Stephen Hemminger @ 2017-03-02 18:23 UTC (permalink / raw)
  To: Hannes Reinecke
  Cc: Christoph Hellwig, James Bottomley, Jens Axboe, Linus Torvalds,
	Martin K. Petersen, K. Y. Srinivasan, Dexuan Cui, Long Li,
	Josh Poulson, v-adsuho, linux-scsi, Haiyang Zhang

On Thu, 2 Mar 2017 14:25:14 +0100
Hannes Reinecke <hare@suse.de> wrote:

> On 03/02/2017 02:40 AM, Stephen Hemminger wrote:
> > On Thu, 2 Mar 2017 01:56:15 +0100
> > Christoph Hellwig <hch@lst.de> wrote:
> >  
> >> On Thu, Mar 02, 2017 at 01:01:35AM +0100, Christoph Hellwig wrote:  
> >>> On Wed, Mar 01, 2017 at 07:54:12AM -0800, Stephen Hemminger wrote:  
> >>>>> 	http://git.infradead.org/users/hch/block.git/commitdiff/148cff67b401e2229c076c0ea418712654be77e4  
> >>>>
> >>>> It appears that is already in the code I am testing in linux-next...  
> >>>
> >>> It's in -next now, but it wasn't at the time you reported the bug.
> >>>
> >>> And it would sortof explain the bug if the INQUIRY data is correct
> >>> in the scatterlist, but we ignore it, given that scsi_probe_lun
> >>> ignores the result based on sense data.
> >>>
> >>> Can you check what happens with the horrible hack below:  
> >>
> >> Strike that - we're checking result later, so this can't be the case.
> >>
> >> Now the other interesting thing is the memset in __scsi_exectute,
> >> which looks very suspicious.  Try the following please:
> >>
> >> diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c
> >> index 3e32dc954c3c..22f4fb550561 100644
> >> --- a/drivers/scsi/scsi_lib.c
> >> +++ b/drivers/scsi/scsi_lib.c
> >> @@ -253,7 +253,8 @@ static int __scsi_execute(struct scsi_device *sdev, const unsigned char *cmd,
> >>  	 * and prevent security leaks by zeroing out the excess data.
> >>  	 */
> >>  	if (unlikely(rq->resid_len > 0 && rq->resid_len <= bufflen))
> >> -		memset(buffer + (bufflen - rq->resid_len), 0, rq->resid_len);
> >> +//		memset(buffer + (bufflen - rq->resid_len), 0, rq->resid_len);
> >> +		printk_ratelimited("%s: got resid %d\n", __func__, rq->resid_len);
> >>
> >>  	if (resid)
> >>  		*resid = rq->resid_len;  
> >
> >
> > Still fails but does print resid on some of the later INQUIRY commands (not the initial one).
> >  
> Can you test what happens if you blank out the storvsc_drv workaround:
> 
> diff --git a/drivers/scsi/storvsc_drv.c b/drivers/scsi/storvsc_drv.c
> index 585e54f..c36f42d 100644
> --- a/drivers/scsi/storvsc_drv.c
> +++ b/drivers/scsi/storvsc_drv.c
> @@ -1060,13 +1060,13 @@ static void storvsc_on_io_completion(struct 
> storvsc_device *stor_device,
>           * We do this so we can distinguish truly fatal failues
>           * (srb status == 0x4) and off-line the device in that case.
>           */
> -
> +#if 0
>          if ((stor_pkt->vm_srb.cdb[0] == INQUIRY) ||
>             (stor_pkt->vm_srb.cdb[0] == MODE_SENSE)) {
>                  vstor_packet->vm_srb.scsi_status = 0;
>                  vstor_packet->vm_srb.srb_status = SRB_STATUS_SUCCESS;
>          }
> -
> +#endif
> 
>          /* Copy over the status...etc */
>          stor_pkt->vm_srb.scsi_status = vstor_packet->vm_srb.scsi_status;
> 
> It might thappen that we're fail to interpret the 'Device not present' 
> status correctly (which will happen for non-connected DVDs) causing the 
> SCSI stack to make incorrect decisions later on.
> 
> Cheers,
> 
> Hannes

There are several oddities about the host SCSI interface that I see:
  1. The host bus seems to report up to 6 devices even though only 2 are
     present (Disk and CDROM).
  2. The CDROM emulation doesn't report the same status as a real device.
  3. The host emulation of SCSI doesn't support all the page codes which
     is why there is the hack.

But as James said, these don't appear to be related to the failure because
the code worked before and only in post 4.11 merege is there a problem.

^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: SCSI regression in 4.11
  2017-03-02 18:23                               ` Stephen Hemminger
@ 2017-03-02 18:36                                 ` James Bottomley
  2017-03-02 19:05                                   ` Stephen Hemminger
  0 siblings, 1 reply; 49+ messages in thread
From: James Bottomley @ 2017-03-02 18:36 UTC (permalink / raw)
  To: Stephen Hemminger, Hannes Reinecke
  Cc: Christoph Hellwig, James Bottomley, Jens Axboe, Linus Torvalds,
	Martin K. Petersen, K. Y. Srinivasan, Dexuan Cui, Long Li,
	Josh Poulson, v-adsuho, linux-scsi, Haiyang Zhang

On March 2, 2017 10:23:24 AM PST, Stephen Hemminger <stephen@networkplumber.org> wrote:
>On Thu, 2 Mar 2017 14:25:14 +0100
>Hannes Reinecke <hare@suse.de> wrote:
>
>> On 03/02/2017 02:40 AM, Stephen Hemminger wrote:
>> > On Thu, 2 Mar 2017 01:56:15 +0100
>> > Christoph Hellwig <hch@lst.de> wrote:
>> >  
>> >> On Thu, Mar 02, 2017 at 01:01:35AM +0100, Christoph Hellwig wrote:
> 
>> >>> On Wed, Mar 01, 2017 at 07:54:12AM -0800, Stephen Hemminger
>wrote:  
>> >>>>>
>	http://git.infradead.org/users/hch/block.git/commitdiff/148cff67b401e2229c076c0ea418712654be77e4
> 
>> >>>>
>> >>>> It appears that is already in the code I am testing in
>linux-next...  
>> >>>
>> >>> It's in -next now, but it wasn't at the time you reported the
>bug.
>> >>>
>> >>> And it would sortof explain the bug if the INQUIRY data is
>correct
>> >>> in the scatterlist, but we ignore it, given that scsi_probe_lun
>> >>> ignores the result based on sense data.
>> >>>
>> >>> Can you check what happens with the horrible hack below:  
>> >>
>> >> Strike that - we're checking result later, so this can't be the
>case.
>> >>
>> >> Now the other interesting thing is the memset in __scsi_exectute,
>> >> which looks very suspicious.  Try the following please:
>> >>
>> >> diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c
>> >> index 3e32dc954c3c..22f4fb550561 100644
>> >> --- a/drivers/scsi/scsi_lib.c
>> >> +++ b/drivers/scsi/scsi_lib.c
>> >> @@ -253,7 +253,8 @@ static int __scsi_execute(struct scsi_device
>*sdev, const unsigned char *cmd,
>> >>  	 * and prevent security leaks by zeroing out the excess data.
>> >>  	 */
>> >>  	if (unlikely(rq->resid_len > 0 && rq->resid_len <= bufflen))
>> >> -		memset(buffer + (bufflen - rq->resid_len), 0, rq->resid_len);
>> >> +//		memset(buffer + (bufflen - rq->resid_len), 0, rq->resid_len);
>> >> +		printk_ratelimited("%s: got resid %d\n", __func__,
>rq->resid_len);
>> >>
>> >>  	if (resid)
>> >>  		*resid = rq->resid_len;  
>> >
>> >
>> > Still fails but does print resid on some of the later INQUIRY
>commands (not the initial one).
>> >  
>> Can you test what happens if you blank out the storvsc_drv
>workaround:
>> 
>> diff --git a/drivers/scsi/storvsc_drv.c b/drivers/scsi/storvsc_drv.c
>> index 585e54f..c36f42d 100644
>> --- a/drivers/scsi/storvsc_drv.c
>> +++ b/drivers/scsi/storvsc_drv.c
>> @@ -1060,13 +1060,13 @@ static void storvsc_on_io_completion(struct 
>> storvsc_device *stor_device,
>>           * We do this so we can distinguish truly fatal failues
>>           * (srb status == 0x4) and off-line the device in that case.
>>           */
>> -
>> +#if 0
>>          if ((stor_pkt->vm_srb.cdb[0] == INQUIRY) ||
>>             (stor_pkt->vm_srb.cdb[0] == MODE_SENSE)) {
>>                  vstor_packet->vm_srb.scsi_status = 0;
>>                  vstor_packet->vm_srb.srb_status =
>SRB_STATUS_SUCCESS;
>>          }
>> -
>> +#endif
>> 
>>          /* Copy over the status...etc */
>>          stor_pkt->vm_srb.scsi_status =
>vstor_packet->vm_srb.scsi_status;
>> 
>> It might thappen that we're fail to interpret the 'Device not
>present' 
>> status correctly (which will happen for non-connected DVDs) causing
>the 
>> SCSI stack to make incorrect decisions later on.
>> 
>> Cheers,
>> 
>> Hannes
>
>There are several oddities about the host SCSI interface that I see:
> 1. The host bus seems to report up to 6 devices even though only 2 are
>     present (Disk and CDROM).
>2. The CDROM emulation doesn't report the same status as a real device.
> 3. The host emulation of SCSI doesn't support all the page codes which
>     is why there is the hack.
>
>But as James said, these don't appear to be related to the failure
>because
>the code worked before and only in post 4.11 merege is there a problem.

Your wait for the hang trace is the most suggestive.   It says we're waiting for a partition read to the spurious device.  Previously this would have failed or timed out, so this seems to be the root cause.

James


-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: SCSI regression in 4.11
  2017-03-02 18:36                                 ` James Bottomley
@ 2017-03-02 19:05                                   ` Stephen Hemminger
  2017-03-02 19:18                                     ` James Bottomley
  0 siblings, 1 reply; 49+ messages in thread
From: Stephen Hemminger @ 2017-03-02 19:05 UTC (permalink / raw)
  To: James Bottomley
  Cc: Hannes Reinecke, Christoph Hellwig, James Bottomley, Jens Axboe,
	Linus Torvalds, Martin K. Petersen, K. Y. Srinivasan, Dexuan Cui,
	Long Li, Josh Poulson, v-adsuho, linux-scsi, Haiyang Zhang

On Thu, 02 Mar 2017 10:36:17 -0800
James Bottomley <James.Bottomley@Hansenpartnership.com> wrote:

> On March 2, 2017 10:23:24 AM PST, Stephen Hemminger <stephen@networkplumber.org> wrote:
> >On Thu, 2 Mar 2017 14:25:14 +0100
> >Hannes Reinecke <hare@suse.de> wrote:
> >  
> >> On 03/02/2017 02:40 AM, Stephen Hemminger wrote:  
> >> > On Thu, 2 Mar 2017 01:56:15 +0100
> >> > Christoph Hellwig <hch@lst.de> wrote:
> >> >    
> >> >> On Thu, Mar 02, 2017 at 01:01:35AM +0100, Christoph Hellwig wrote:  
> >   
> >> >>> On Wed, Mar 01, 2017 at 07:54:12AM -0800, Stephen Hemminger  
> >wrote:    
> >> >>>>>  
> >	http://git.infradead.org/users/hch/block.git/commitdiff/148cff67b401e2229c076c0ea418712654be77e4
> >   
> >> >>>>
> >> >>>> It appears that is already in the code I am testing in  
> >linux-next...    
> >> >>>
> >> >>> It's in -next now, but it wasn't at the time you reported the  
> >bug.  
> >> >>>
> >> >>> And it would sortof explain the bug if the INQUIRY data is  
> >correct  
> >> >>> in the scatterlist, but we ignore it, given that scsi_probe_lun
> >> >>> ignores the result based on sense data.
> >> >>>
> >> >>> Can you check what happens with the horrible hack below:    
> >> >>
> >> >> Strike that - we're checking result later, so this can't be the  
> >case.  
> >> >>
> >> >> Now the other interesting thing is the memset in __scsi_exectute,
> >> >> which looks very suspicious.  Try the following please:
> >> >>
> >> >> diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c
> >> >> index 3e32dc954c3c..22f4fb550561 100644
> >> >> --- a/drivers/scsi/scsi_lib.c
> >> >> +++ b/drivers/scsi/scsi_lib.c
> >> >> @@ -253,7 +253,8 @@ static int __scsi_execute(struct scsi_device  
> >*sdev, const unsigned char *cmd,  
> >> >>  	 * and prevent security leaks by zeroing out the excess data.
> >> >>  	 */
> >> >>  	if (unlikely(rq->resid_len > 0 && rq->resid_len <= bufflen))
> >> >> -		memset(buffer + (bufflen - rq->resid_len), 0, rq->resid_len);
> >> >> +//		memset(buffer + (bufflen - rq->resid_len), 0, rq->resid_len);
> >> >> +		printk_ratelimited("%s: got resid %d\n", __func__,  
> >rq->resid_len);  
> >> >>
> >> >>  	if (resid)
> >> >>  		*resid = rq->resid_len;    
> >> >
> >> >
> >> > Still fails but does print resid on some of the later INQUIRY  
> >commands (not the initial one).  
> >> >    
> >> Can you test what happens if you blank out the storvsc_drv  
> >workaround:  
> >> 
> >> diff --git a/drivers/scsi/storvsc_drv.c b/drivers/scsi/storvsc_drv.c
> >> index 585e54f..c36f42d 100644
> >> --- a/drivers/scsi/storvsc_drv.c
> >> +++ b/drivers/scsi/storvsc_drv.c
> >> @@ -1060,13 +1060,13 @@ static void storvsc_on_io_completion(struct 
> >> storvsc_device *stor_device,
> >>           * We do this so we can distinguish truly fatal failues
> >>           * (srb status == 0x4) and off-line the device in that case.
> >>           */
> >> -
> >> +#if 0
> >>          if ((stor_pkt->vm_srb.cdb[0] == INQUIRY) ||
> >>             (stor_pkt->vm_srb.cdb[0] == MODE_SENSE)) {
> >>                  vstor_packet->vm_srb.scsi_status = 0;
> >>                  vstor_packet->vm_srb.srb_status =  
> >SRB_STATUS_SUCCESS;  
> >>          }
> >> -
> >> +#endif
> >> 
> >>          /* Copy over the status...etc */
> >>          stor_pkt->vm_srb.scsi_status =  
> >vstor_packet->vm_srb.scsi_status;  
> >> 
> >> It might thappen that we're fail to interpret the 'Device not  
> >present'   
> >> status correctly (which will happen for non-connected DVDs) causing  
> >the   
> >> SCSI stack to make incorrect decisions later on.
> >> 
> >> Cheers,
> >> 
> >> Hannes  
> >
> >There are several oddities about the host SCSI interface that I see:
> > 1. The host bus seems to report up to 6 devices even though only 2 are
> >     present (Disk and CDROM).
> >2. The CDROM emulation doesn't report the same status as a real device.
> > 3. The host emulation of SCSI doesn't support all the page codes which
> >     is why there is the hack.
> >
> >But as James said, these don't appear to be related to the failure
> >because
> >the code worked before and only in post 4.11 merege is there a problem.  
> 
> Your wait for the hang trace is the most suggestive.   It says we're waiting for a partition read to the spurious device.  Previously this would have failed or timed out, so this seems to be the root cause.
> 
> James
> 
> 

Where is the number of valid LUN's determined during the scan process?

^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: SCSI regression in 4.11
  2017-03-02 19:05                                   ` Stephen Hemminger
@ 2017-03-02 19:18                                     ` James Bottomley
  2017-03-03 22:29                                       ` Stephen Hemminger
  2017-03-04  0:50                                       ` [RFC] hv_storvsc: error handling Stephen Hemminger
  0 siblings, 2 replies; 49+ messages in thread
From: James Bottomley @ 2017-03-02 19:18 UTC (permalink / raw)
  To: Stephen Hemminger
  Cc: Hannes Reinecke, Christoph Hellwig, James Bottomley, Jens Axboe,
	Linus Torvalds, Martin K. Petersen, K. Y. Srinivasan, Dexuan Cui,
	Long Li, Josh Poulson, v-adsuho, linux-scsi, Haiyang Zhang

On March 2, 2017 11:05:05 AM PST, Stephen Hemminger <stephen@networkplumber.org> wrote:
>On Thu, 02 Mar 2017 10:36:17 -0800
>James Bottomley <James.Bottomley@Hansenpartnership.com> wrote:
>
>> On March 2, 2017 10:23:24 AM PST, Stephen Hemminger
><stephen@networkplumber.org> wrote:
>> >On Thu, 2 Mar 2017 14:25:14 +0100
>> >Hannes Reinecke <hare@suse.de> wrote:
>> >  
>> >> On 03/02/2017 02:40 AM, Stephen Hemminger wrote:  
>> >> > On Thu, 2 Mar 2017 01:56:15 +0100
>> >> > Christoph Hellwig <hch@lst.de> wrote:
>> >> >    
>> >> >> On Thu, Mar 02, 2017 at 01:01:35AM +0100, Christoph Hellwig
>wrote:  
>> >   
>> >> >>> On Wed, Mar 01, 2017 at 07:54:12AM -0800, Stephen Hemminger  
>> >wrote:    
>> >> >>>>>  
>>
>>	http://git.infradead.org/users/hch/block.git/commitdiff/148cff67b401e2229c076c0ea418712654be77e4
>> >   
>> >> >>>>
>> >> >>>> It appears that is already in the code I am testing in  
>> >linux-next...    
>> >> >>>
>> >> >>> It's in -next now, but it wasn't at the time you reported the 
>
>> >bug.  
>> >> >>>
>> >> >>> And it would sortof explain the bug if the INQUIRY data is  
>> >correct  
>> >> >>> in the scatterlist, but we ignore it, given that
>scsi_probe_lun
>> >> >>> ignores the result based on sense data.
>> >> >>>
>> >> >>> Can you check what happens with the horrible hack below:    
>> >> >>
>> >> >> Strike that - we're checking result later, so this can't be the
> 
>> >case.  
>> >> >>
>> >> >> Now the other interesting thing is the memset in
>__scsi_exectute,
>> >> >> which looks very suspicious.  Try the following please:
>> >> >>
>> >> >> diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c
>> >> >> index 3e32dc954c3c..22f4fb550561 100644
>> >> >> --- a/drivers/scsi/scsi_lib.c
>> >> >> +++ b/drivers/scsi/scsi_lib.c
>> >> >> @@ -253,7 +253,8 @@ static int __scsi_execute(struct
>scsi_device  
>> >*sdev, const unsigned char *cmd,  
>> >> >>  	 * and prevent security leaks by zeroing out the excess data.
>> >> >>  	 */
>> >> >>  	if (unlikely(rq->resid_len > 0 && rq->resid_len <= bufflen))
>> >> >> -		memset(buffer + (bufflen - rq->resid_len), 0,
>rq->resid_len);
>> >> >> +//		memset(buffer + (bufflen - rq->resid_len), 0,
>rq->resid_len);
>> >> >> +		printk_ratelimited("%s: got resid %d\n", __func__,  
>> >rq->resid_len);  
>> >> >>
>> >> >>  	if (resid)
>> >> >>  		*resid = rq->resid_len;    
>> >> >
>> >> >
>> >> > Still fails but does print resid on some of the later INQUIRY  
>> >commands (not the initial one).  
>> >> >    
>> >> Can you test what happens if you blank out the storvsc_drv  
>> >workaround:  
>> >> 
>> >> diff --git a/drivers/scsi/storvsc_drv.c
>b/drivers/scsi/storvsc_drv.c
>> >> index 585e54f..c36f42d 100644
>> >> --- a/drivers/scsi/storvsc_drv.c
>> >> +++ b/drivers/scsi/storvsc_drv.c
>> >> @@ -1060,13 +1060,13 @@ static void
>storvsc_on_io_completion(struct 
>> >> storvsc_device *stor_device,
>> >>           * We do this so we can distinguish truly fatal failues
>> >>           * (srb status == 0x4) and off-line the device in that
>case.
>> >>           */
>> >> -
>> >> +#if 0
>> >>          if ((stor_pkt->vm_srb.cdb[0] == INQUIRY) ||
>> >>             (stor_pkt->vm_srb.cdb[0] == MODE_SENSE)) {
>> >>                  vstor_packet->vm_srb.scsi_status = 0;
>> >>                  vstor_packet->vm_srb.srb_status =  
>> >SRB_STATUS_SUCCESS;  
>> >>          }
>> >> -
>> >> +#endif
>> >> 
>> >>          /* Copy over the status...etc */
>> >>          stor_pkt->vm_srb.scsi_status =  
>> >vstor_packet->vm_srb.scsi_status;  
>> >> 
>> >> It might thappen that we're fail to interpret the 'Device not  
>> >present'   
>> >> status correctly (which will happen for non-connected DVDs)
>causing  
>> >the   
>> >> SCSI stack to make incorrect decisions later on.
>> >> 
>> >> Cheers,
>> >> 
>> >> Hannes  
>> >
>> >There are several oddities about the host SCSI interface that I see:
>> > 1. The host bus seems to report up to 6 devices even though only 2
>are
>> >     present (Disk and CDROM).
>> >2. The CDROM emulation doesn't report the same status as a real
>device.
>> > 3. The host emulation of SCSI doesn't support all the page codes
>which
>> >     is why there is the hack.
>> >
>> >But as James said, these don't appear to be related to the failure
>> >because
>> >the code worked before and only in post 4.11 merege is there a
>problem.  
>> 
>> Your wait for the hang trace is the most suggestive.   It says we're
>waiting for a partition read to the spurious device.  Previously this
>would have failed or timed out, so this seems to be the root cause.
>> 
>> James
>> 
>> 
>
>Where is the number of valid LUN's determined during the scan process?

Depends.  If you can do a report lun scan then that's definitive.  You seem to be probing (SCSI_probe_and_add_lun)  and you make us think there's something there by responding wrongly to the initial inquiry.

James




-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: SCSI regression in 4.11
  2017-03-02 19:18                                     ` James Bottomley
@ 2017-03-03 22:29                                       ` Stephen Hemminger
  2017-03-04  0:50                                       ` [RFC] hv_storvsc: error handling Stephen Hemminger
  1 sibling, 0 replies; 49+ messages in thread
From: Stephen Hemminger @ 2017-03-03 22:29 UTC (permalink / raw)
  To: James Bottomley
  Cc: Hannes Reinecke, Christoph Hellwig, James Bottomley, Jens Axboe,
	Linus Torvalds, Martin K. Petersen, K. Y. Srinivasan, Dexuan Cui,
	Long Li, Josh Poulson, v-adsuho, linux-scsi, Haiyang Zhang

On Thu, 02 Mar 2017 11:18:23 -0800
James Bottomley <James.Bottomley@Hansenpartnership.com> wrote:

> On March 2, 2017 11:05:05 AM PST, Stephen Hemminger <stephen@networkplumber.org> wrote:
> >On Thu, 02 Mar 2017 10:36:17 -0800
> >James Bottomley <James.Bottomley@Hansenpartnership.com> wrote:
> >  
> >> On March 2, 2017 10:23:24 AM PST, Stephen Hemminger  
> ><stephen@networkplumber.org> wrote:  
> >> >On Thu, 2 Mar 2017 14:25:14 +0100
> >> >Hannes Reinecke <hare@suse.de> wrote:
> >> >    
> >> >> On 03/02/2017 02:40 AM, Stephen Hemminger wrote:    
> >> >> > On Thu, 2 Mar 2017 01:56:15 +0100
> >> >> > Christoph Hellwig <hch@lst.de> wrote:
> >> >> >      
> >> >> >> On Thu, Mar 02, 2017 at 01:01:35AM +0100, Christoph Hellwig  
> >wrote:    
> >> >     
> >> >> >>> On Wed, Mar 01, 2017 at 07:54:12AM -0800, Stephen Hemminger    
> >> >wrote:      
> >> >> >>>>>    
> >>
> >>	http://git.infradead.org/users/hch/block.git/commitdiff/148cff67b401e2229c076c0ea418712654be77e4  
> >> >     
> >> >> >>>>
> >> >> >>>> It appears that is already in the code I am testing in    
> >> >linux-next...      
> >> >> >>>
> >> >> >>> It's in -next now, but it wasn't at the time you reported the   
> >  
> >> >bug.    
> >> >> >>>
> >> >> >>> And it would sortof explain the bug if the INQUIRY data is    
> >> >correct    
> >> >> >>> in the scatterlist, but we ignore it, given that  
> >scsi_probe_lun  
> >> >> >>> ignores the result based on sense data.
> >> >> >>>
> >> >> >>> Can you check what happens with the horrible hack below:      
> >> >> >>
> >> >> >> Strike that - we're checking result later, so this can't be the  
> >   
> >> >case.    
> >> >> >>
> >> >> >> Now the other interesting thing is the memset in  
> >__scsi_exectute,  
> >> >> >> which looks very suspicious.  Try the following please:
> >> >> >>
> >> >> >> diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c
> >> >> >> index 3e32dc954c3c..22f4fb550561 100644
> >> >> >> --- a/drivers/scsi/scsi_lib.c
> >> >> >> +++ b/drivers/scsi/scsi_lib.c
> >> >> >> @@ -253,7 +253,8 @@ static int __scsi_execute(struct  
> >scsi_device    
> >> >*sdev, const unsigned char *cmd,    
> >> >> >>  	 * and prevent security leaks by zeroing out the excess data.
> >> >> >>  	 */
> >> >> >>  	if (unlikely(rq->resid_len > 0 && rq->resid_len <= bufflen))
> >> >> >> -		memset(buffer + (bufflen - rq->resid_len), 0,  
> >rq->resid_len);  
> >> >> >> +//		memset(buffer + (bufflen - rq->resid_len), 0,  
> >rq->resid_len);  
> >> >> >> +		printk_ratelimited("%s: got resid %d\n", __func__,    
> >> >rq->resid_len);    
> >> >> >>
> >> >> >>  	if (resid)
> >> >> >>  		*resid = rq->resid_len;      
> >> >> >
> >> >> >
> >> >> > Still fails but does print resid on some of the later INQUIRY    
> >> >commands (not the initial one).    
> >> >> >      
> >> >> Can you test what happens if you blank out the storvsc_drv    
> >> >workaround:    
> >> >> 
> >> >> diff --git a/drivers/scsi/storvsc_drv.c  
> >b/drivers/scsi/storvsc_drv.c  
> >> >> index 585e54f..c36f42d 100644
> >> >> --- a/drivers/scsi/storvsc_drv.c
> >> >> +++ b/drivers/scsi/storvsc_drv.c
> >> >> @@ -1060,13 +1060,13 @@ static void  
> >storvsc_on_io_completion(struct   
> >> >> storvsc_device *stor_device,
> >> >>           * We do this so we can distinguish truly fatal failues
> >> >>           * (srb status == 0x4) and off-line the device in that  
> >case.  
> >> >>           */
> >> >> -
> >> >> +#if 0
> >> >>          if ((stor_pkt->vm_srb.cdb[0] == INQUIRY) ||
> >> >>             (stor_pkt->vm_srb.cdb[0] == MODE_SENSE)) {
> >> >>                  vstor_packet->vm_srb.scsi_status = 0;
> >> >>                  vstor_packet->vm_srb.srb_status =    
> >> >SRB_STATUS_SUCCESS;    
> >> >>          }
> >> >> -
> >> >> +#endif
> >> >> 
> >> >>          /* Copy over the status...etc */
> >> >>          stor_pkt->vm_srb.scsi_status =    
> >> >vstor_packet->vm_srb.scsi_status;    
> >> >> 
> >> >> It might thappen that we're fail to interpret the 'Device not    
> >> >present'     
> >> >> status correctly (which will happen for non-connected DVDs)  
> >causing    
> >> >the     
> >> >> SCSI stack to make incorrect decisions later on.
> >> >> 
> >> >> Cheers,
> >> >> 
> >> >> Hannes    
> >> >
> >> >There are several oddities about the host SCSI interface that I see:
> >> > 1. The host bus seems to report up to 6 devices even though only 2  
> >are  
> >> >     present (Disk and CDROM).
> >> >2. The CDROM emulation doesn't report the same status as a real  
> >device.  
> >> > 3. The host emulation of SCSI doesn't support all the page codes  
> >which  
> >> >     is why there is the hack.
> >> >
> >> >But as James said, these don't appear to be related to the failure
> >> >because
> >> >the code worked before and only in post 4.11 merege is there a  
> >problem.    
> >> 
> >> Your wait for the hang trace is the most suggestive.   It says we're  
> >waiting for a partition read to the spurious device.  Previously this
> >would have failed or timed out, so this seems to be the root cause.  
> >> 
> >> James
> >> 
> >>   
> >
> >Where is the number of valid LUN's determined during the scan process?  
> 
> Depends.  If you can do a report lun scan then that's definitive.  You seem to be probing (SCSI_probe_and_add_lun)  and you make us think there's something there by responding wrongly to the initial inquiry.

Testing a fix now. There looks like 3 problems here:
1. storvsc_io_completion masks all error responses from INQUIRY
2. Error handling in storvsc does not report invalid LUN correctly.
3. Block layer has new problems when device is in bad state (not present and timing out).

The first two have been there for 4 years but did not cause problems.
Something happened that made kernel chew lots of resources and eventually die when
it hits a disconnected device that is not detected properly.

^ permalink raw reply	[flat|nested] 49+ messages in thread

* [RFC] hv_storvsc: error handling.
  2017-03-02 19:18                                     ` James Bottomley
  2017-03-03 22:29                                       ` Stephen Hemminger
@ 2017-03-04  0:50                                       ` Stephen Hemminger
  2017-03-04 11:55                                         ` Hannes Reinecke
  2017-03-04 21:03                                         ` KY Srinivasan
  1 sibling, 2 replies; 49+ messages in thread
From: Stephen Hemminger @ 2017-03-04  0:50 UTC (permalink / raw)
  To: James Bottomley
  Cc: Hannes Reinecke, Christoph Hellwig, James Bottomley, Jens Axboe,
	Linus Torvalds, Martin K. Petersen, K. Y. Srinivasan, Dexuan Cui,
	Long Li, Josh Poulson, v-adsuho, linux-scsi, Haiyang Zhang

Needs more testing but this does fix the observed problem.

From: Stephen Hemminger <sthemmin@microsoft.com>

Subject: [PATCH] hv_storvsc: fix error handling

The Hyper-V storvsc SCSI driver was hiding all errors in INQUIRY and
MODE_SENSE commands. This caused the scan process to incorrectly think
devices were present and online.  Also invalid LUN errors were not
being handled correctly.

This fixes problems booting a GEN2 VM on Hyper-V. It effectively
reverts commit 4ed51a21c0f69 ("Staging: hv: storvsc: Fixup
srb and scsi status for INQUIRY and MODE_SENSE")

Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
---
 drivers/scsi/storvsc_drv.c | 48 ++++------------------------------------------
 1 file changed, 4 insertions(+), 44 deletions(-)

diff --git a/drivers/scsi/storvsc_drv.c b/drivers/scsi/storvsc_drv.c
index 638e5f427c90..8cc241fc54b8 100644
--- a/drivers/scsi/storvsc_drv.c
+++ b/drivers/scsi/storvsc_drv.c
@@ -543,28 +543,6 @@ static void storvsc_host_scan(struct work_struct *work)
 	kfree(wrk);
 }
 
-static void storvsc_remove_lun(struct work_struct *work)
-{
-	struct storvsc_scan_work *wrk;
-	struct scsi_device *sdev;
-
-	wrk = container_of(work, struct storvsc_scan_work, work);
-	if (!scsi_host_get(wrk->host))
-		goto done;
-
-	sdev = scsi_device_lookup(wrk->host, 0, wrk->tgt_id, wrk->lun);
-
-	if (sdev) {
-		scsi_remove_device(sdev);
-		scsi_device_put(sdev);
-	}
-	scsi_host_put(wrk->host);
-
-done:
-	kfree(wrk);
-}
-
-
 /*
  * We can get incoming messages from the host that are not in response to
  * messages that we have sent out. An example of this would be messages
@@ -955,8 +933,7 @@ static void storvsc_handle_error(struct vmscsi_request *vm_srb,
 		}
 		break;
 	case SRB_STATUS_INVALID_LUN:
-		do_work = true;
-		process_err_fn = storvsc_remove_lun;
+		set_host_byte(scmnd, DID_NO_CONNECT);
 		break;
 	case SRB_STATUS_ABORTED:
 		if (vm_srb->srb_status & SRB_STATUS_AUTOSENSE_VALID &&
@@ -1050,32 +1027,15 @@ static void storvsc_on_io_completion(struct storvsc_device *stor_device,
 
 	stor_pkt = &request->vstor_packet;
 
-	/*
-	 * The current SCSI handling on the host side does
-	 * not correctly handle:
-	 * INQUIRY command with page code parameter set to 0x80
-	 * MODE_SENSE command with cmd[2] == 0x1c
-	 *
-	 * Setup srb and scsi status so this won't be fatal.
-	 * We do this so we can distinguish truly fatal failues
-	 * (srb status == 0x4) and off-line the device in that case.
-	 */
-
-	if ((stor_pkt->vm_srb.cdb[0] == INQUIRY) ||
-	   (stor_pkt->vm_srb.cdb[0] == MODE_SENSE)) {
-		vstor_packet->vm_srb.scsi_status = 0;
-		vstor_packet->vm_srb.srb_status = SRB_STATUS_SUCCESS;
-	}
-
-
 	/* Copy over the status...etc */
 	stor_pkt->vm_srb.scsi_status = vstor_packet->vm_srb.scsi_status;
 	stor_pkt->vm_srb.srb_status = vstor_packet->vm_srb.srb_status;
 	stor_pkt->vm_srb.sense_info_length =
 	vstor_packet->vm_srb.sense_info_length;
 
-	if (vstor_packet->vm_srb.scsi_status != 0 ||
-	    vstor_packet->vm_srb.srb_status != SRB_STATUS_SUCCESS)
+	if (stor_pkt->vm_srb.cdb[0] != INQUIRY &&
+	    (vstor_packet->vm_srb.scsi_status != 0 ||
+	     vstor_packet->vm_srb.srb_status != SRB_STATUS_SUCCESS))
 		storvsc_log(device, STORVSC_LOGGING_WARN,
 			"cmd 0x%x scsi status 0x%x srb status 0x%x\n",
 			stor_pkt->vm_srb.cdb[0],
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 49+ messages in thread

* Re: [RFC] hv_storvsc: error handling.
  2017-03-04  0:50                                       ` [RFC] hv_storvsc: error handling Stephen Hemminger
@ 2017-03-04 11:55                                         ` Hannes Reinecke
  2017-03-04 21:03                                         ` KY Srinivasan
  1 sibling, 0 replies; 49+ messages in thread
From: Hannes Reinecke @ 2017-03-04 11:55 UTC (permalink / raw)
  To: Stephen Hemminger, James Bottomley
  Cc: Christoph Hellwig, James Bottomley, Jens Axboe, Linus Torvalds,
	Martin K. Petersen, K. Y. Srinivasan, Dexuan Cui, Long Li,
	Josh Poulson, v-adsuho, linux-scsi, Haiyang Zhang

On 03/04/2017 01:50 AM, Stephen Hemminger wrote:
> Needs more testing but this does fix the observed problem.
>
> From: Stephen Hemminger <sthemmin@microsoft.com>
>
> Subject: [PATCH] hv_storvsc: fix error handling
>
> The Hyper-V storvsc SCSI driver was hiding all errors in INQUIRY and
> MODE_SENSE commands. This caused the scan process to incorrectly think
> devices were present and online.  Also invalid LUN errors were not
> being handled correctly.
>
> This fixes problems booting a GEN2 VM on Hyper-V. It effectively
> reverts commit 4ed51a21c0f69 ("Staging: hv: storvsc: Fixup
> srb and scsi status for INQUIRY and MODE_SENSE")
>
> Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
> ---
>  drivers/scsi/storvsc_drv.c | 48 ++++------------------------------------------
>  1 file changed, 4 insertions(+), 44 deletions(-)
>
> diff --git a/drivers/scsi/storvsc_drv.c b/drivers/scsi/storvsc_drv.c
> index 638e5f427c90..8cc241fc54b8 100644
> --- a/drivers/scsi/storvsc_drv.c
> +++ b/drivers/scsi/storvsc_drv.c
> @@ -543,28 +543,6 @@ static void storvsc_host_scan(struct work_struct *work)
>  	kfree(wrk);
>  }
>
> -static void storvsc_remove_lun(struct work_struct *work)
> -{
> -	struct storvsc_scan_work *wrk;
> -	struct scsi_device *sdev;
> -
> -	wrk = container_of(work, struct storvsc_scan_work, work);
> -	if (!scsi_host_get(wrk->host))
> -		goto done;
> -
> -	sdev = scsi_device_lookup(wrk->host, 0, wrk->tgt_id, wrk->lun);
> -
> -	if (sdev) {
> -		scsi_remove_device(sdev);
> -		scsi_device_put(sdev);
> -	}
> -	scsi_host_put(wrk->host);
> -
> -done:
> -	kfree(wrk);
> -}
> -
> -
>  /*
>   * We can get incoming messages from the host that are not in response to
>   * messages that we have sent out. An example of this would be messages
> @@ -955,8 +933,7 @@ static void storvsc_handle_error(struct vmscsi_request *vm_srb,
>  		}
>  		break;
>  	case SRB_STATUS_INVALID_LUN:
> -		do_work = true;
> -		process_err_fn = storvsc_remove_lun;
> +		set_host_byte(scmnd, DID_NO_CONNECT);
>  		break;
>  	case SRB_STATUS_ABORTED:
>  		if (vm_srb->srb_status & SRB_STATUS_AUTOSENSE_VALID &&
> @@ -1050,32 +1027,15 @@ static void storvsc_on_io_completion(struct storvsc_device *stor_device,
>
>  	stor_pkt = &request->vstor_packet;
>
> -	/*
> -	 * The current SCSI handling on the host side does
> -	 * not correctly handle:
> -	 * INQUIRY command with page code parameter set to 0x80
> -	 * MODE_SENSE command with cmd[2] == 0x1c
> -	 *
> -	 * Setup srb and scsi status so this won't be fatal.
> -	 * We do this so we can distinguish truly fatal failues
> -	 * (srb status == 0x4) and off-line the device in that case.
> -	 */
> -
> -	if ((stor_pkt->vm_srb.cdb[0] == INQUIRY) ||
> -	   (stor_pkt->vm_srb.cdb[0] == MODE_SENSE)) {
> -		vstor_packet->vm_srb.scsi_status = 0;
> -		vstor_packet->vm_srb.srb_status = SRB_STATUS_SUCCESS;
> -	}
> -
> -
>  	/* Copy over the status...etc */
>  	stor_pkt->vm_srb.scsi_status = vstor_packet->vm_srb.scsi_status;
>  	stor_pkt->vm_srb.srb_status = vstor_packet->vm_srb.srb_status;
>  	stor_pkt->vm_srb.sense_info_length =
>  	vstor_packet->vm_srb.sense_info_length;
>
> -	if (vstor_packet->vm_srb.scsi_status != 0 ||
> -	    vstor_packet->vm_srb.srb_status != SRB_STATUS_SUCCESS)
> +	if (stor_pkt->vm_srb.cdb[0] != INQUIRY &&
> +	    (vstor_packet->vm_srb.scsi_status != 0 ||
> +	     vstor_packet->vm_srb.srb_status != SRB_STATUS_SUCCESS))
>  		storvsc_log(device, STORVSC_LOGGING_WARN,
>  			"cmd 0x%x scsi status 0x%x srb status 0x%x\n",
>  			stor_pkt->vm_srb.cdb[0],
>
I really do wonder; according to the comments above the wrong error 
handling really only affects inquiry VPD page 0x80 and MODE_SENSE page 
0x1c. So why do we need to blank out _every_ inquiry?
Wouldn't it far better to check _what_ goes wrong when asking for page 
0x80, and fix up things correctly?

Cheers,

Hannes
-- 
Dr. Hannes Reinecke		      zSeries & Storage
hare@suse.de			      +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)

^ permalink raw reply	[flat|nested] 49+ messages in thread

* RE: [RFC] hv_storvsc: error handling.
  2017-03-04  0:50                                       ` [RFC] hv_storvsc: error handling Stephen Hemminger
  2017-03-04 11:55                                         ` Hannes Reinecke
@ 2017-03-04 21:03                                         ` KY Srinivasan
  2017-03-04 21:36                                           ` James Bottomley
  2017-03-06 16:36                                           ` Stephen Hemminger
  1 sibling, 2 replies; 49+ messages in thread
From: KY Srinivasan @ 2017-03-04 21:03 UTC (permalink / raw)
  To: Stephen Hemminger, James Bottomley
  Cc: Hannes Reinecke, Christoph Hellwig, James Bottomley, Jens Axboe,
	Linus Torvalds, Martin K. Petersen, Dexuan Cui, Long Li,
	Josh Poulson, Adrian Suhov (Cloudbase Solutions SRL),
	linux-scsi, Haiyang Zhang



> -----Original Message-----
> From: Stephen Hemminger [mailto:stephen@networkplumber.org]
> Sent: Friday, March 3, 2017 4:50 PM
> To: James Bottomley <James.Bottomley@Hansenpartnership.com>
> Cc: Hannes Reinecke <hare@suse.de>; Christoph Hellwig <hch@lst.de>;
> James Bottomley <jejb@linux.vnet.ibm.com>; Jens Axboe
> <axboe@kernel.dk>; Linus Torvalds <torvalds@linux-foundation.org>;
> Martin K. Petersen <martin.petersen@oracle.com>; KY Srinivasan
> <kys@microsoft.com>; Dexuan Cui <decui@microsoft.com>; Long Li
> <longli@microsoft.com>; Josh Poulson <jopoulso@microsoft.com>; Adrian
> Suhov (Cloudbase Solutions SRL) <v-adsuho@microsoft.com>; linux-
> scsi@vger.kernel.org; Haiyang Zhang <haiyangz@microsoft.com>
> Subject: [RFC] hv_storvsc: error handling.
> 
> Needs more testing but this does fix the observed problem.
> 
> From: Stephen Hemminger <sthemmin@microsoft.com>
> 
> Subject: [PATCH] hv_storvsc: fix error handling
> 
> The Hyper-V storvsc SCSI driver was hiding all errors in INQUIRY and
> MODE_SENSE commands. This caused the scan process to incorrectly think
> devices were present and online.  Also invalid LUN errors were not
> being handled correctly.
> 
> This fixes problems booting a GEN2 VM on Hyper-V. It effectively
> reverts commit 4ed51a21c0f69 ("Staging: hv: storvsc: Fixup
> srb and scsi status for INQUIRY and MODE_SENSE")
> 
> Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
> ---
>  drivers/scsi/storvsc_drv.c | 48 ++++------------------------------------------
>  1 file changed, 4 insertions(+), 44 deletions(-)
> 
> diff --git a/drivers/scsi/storvsc_drv.c b/drivers/scsi/storvsc_drv.c
> index 638e5f427c90..8cc241fc54b8 100644
> --- a/drivers/scsi/storvsc_drv.c
> +++ b/drivers/scsi/storvsc_drv.c
> @@ -543,28 +543,6 @@ static void storvsc_host_scan(struct work_struct
> *work)
>  	kfree(wrk);
>  }
> 
> -static void storvsc_remove_lun(struct work_struct *work)
> -{
> -	struct storvsc_scan_work *wrk;
> -	struct scsi_device *sdev;
> -
> -	wrk = container_of(work, struct storvsc_scan_work, work);
> -	if (!scsi_host_get(wrk->host))
> -		goto done;
> -
> -	sdev = scsi_device_lookup(wrk->host, 0, wrk->tgt_id, wrk->lun);
> -
> -	if (sdev) {
> -		scsi_remove_device(sdev);
> -		scsi_device_put(sdev);
> -	}
> -	scsi_host_put(wrk->host);
> -
> -done:
> -	kfree(wrk);
> -}
> -
> -
>  /*
>   * We can get incoming messages from the host that are not in response to
>   * messages that we have sent out. An example of this would be messages
> @@ -955,8 +933,7 @@ static void storvsc_handle_error(struct
> vmscsi_request *vm_srb,
>  		}
>  		break;
>  	case SRB_STATUS_INVALID_LUN:
> -		do_work = true;
> -		process_err_fn = storvsc_remove_lun;
> +		set_host_byte(scmnd, DID_NO_CONNECT);
>  		break;
>  	case SRB_STATUS_ABORTED:
>  		if (vm_srb->srb_status & SRB_STATUS_AUTOSENSE_VALID
> &&
> @@ -1050,32 +1027,15 @@ static void storvsc_on_io_completion(struct
> storvsc_device *stor_device,
> 
>  	stor_pkt = &request->vstor_packet;
> 
> -	/*
> -	 * The current SCSI handling on the host side does
> -	 * not correctly handle:
> -	 * INQUIRY command with page code parameter set to 0x80
> -	 * MODE_SENSE command with cmd[2] == 0x1c
> -	 *
> -	 * Setup srb and scsi status so this won't be fatal.
> -	 * We do this so we can distinguish truly fatal failues
> -	 * (srb status == 0x4) and off-line the device in that case.
> -	 */
> -
> -	if ((stor_pkt->vm_srb.cdb[0] == INQUIRY) ||
> -	   (stor_pkt->vm_srb.cdb[0] == MODE_SENSE)) {
> -		vstor_packet->vm_srb.scsi_status = 0;
> -		vstor_packet->vm_srb.srb_status = SRB_STATUS_SUCCESS;
> -	}
> -
> -
>  	/* Copy over the status...etc */
>  	stor_pkt->vm_srb.scsi_status = vstor_packet->vm_srb.scsi_status;
>  	stor_pkt->vm_srb.srb_status = vstor_packet->vm_srb.srb_status;
>  	stor_pkt->vm_srb.sense_info_length =
>  	vstor_packet->vm_srb.sense_info_length;
> 
> -	if (vstor_packet->vm_srb.scsi_status != 0 ||
> -	    vstor_packet->vm_srb.srb_status != SRB_STATUS_SUCCESS)
> +	if (stor_pkt->vm_srb.cdb[0] != INQUIRY &&
> +	    (vstor_packet->vm_srb.scsi_status != 0 ||
> +	     vstor_packet->vm_srb.srb_status != SRB_STATUS_SUCCESS))
>  		storvsc_log(device, STORVSC_LOGGING_WARN,
>  			"cmd 0x%x scsi status 0x%x srb status 0x%x\n",
>  			stor_pkt->vm_srb.cdb[0],
> --

This patch gets rid of the ability to "hot remove" LUNs. I don't think that can be part of any
solution. The INQUIRY hack I put in a long time ago was to deal with host bugs on prior versions of
Windows server. WS2016 should not be trigerring this code. Stephen, could you please test this patch -
a quick hack:

>From b97f24f224a71a6e745c42e5640045a553eb407c Mon Sep 17 00:00:00 2001
From: K. Y. Srinivasan <kys@microsoft.com>
Date: Sat, 4 Mar 2017 14:00:46 -0700
Subject: [PATCH 1/1] scsi: storvsc: Fix a bug in LUN removal code
Reply-To: kys@microsoft.com

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
---
 drivers/scsi/storvsc_drv.c |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/drivers/scsi/storvsc_drv.c b/drivers/scsi/storvsc_drv.c
index 05526b7..27eb682 100644
--- a/drivers/scsi/storvsc_drv.c
+++ b/drivers/scsi/storvsc_drv.c
@@ -885,6 +885,7 @@ static void storvsc_handle_error(struct vmscsi_request *vm_srb,
        struct storvsc_scan_work *wrk;
        void (*process_err_fn)(struct work_struct *work);
        bool do_work = false;
+       struct scsi_device *sdev;

        switch (SRB_STATUS(vm_srb->srb_status)) {
        case SRB_STATUS_ERROR:
@@ -911,6 +912,18 @@ static void storvsc_handle_error(struct vmscsi_request *vm_srb,
                }
                break;
        case SRB_STATUS_INVALID_LUN:
+               if (!scsi_host_get(host)) {
+                       set_host_byte(scmnd, DID_NO_CONNECT);
+                       break;
+               }
+
+               sdev = scsi_device_lookup(wrk->host, 0, wrk->tgt_id, wrk->lun);
+
+               if (!sdev) {
+                       set_host_byte(scmnd, DID_NO_CONNECT);
+                       break;
+               }
+
                do_work = true;
                process_err_fn = storvsc_remove_lun;
                break;
--
1.7.1


 
> 2.11.0
> 
> 

^ permalink raw reply related	[flat|nested] 49+ messages in thread

* Re: [RFC] hv_storvsc: error handling.
  2017-03-04 21:03                                         ` KY Srinivasan
@ 2017-03-04 21:36                                           ` James Bottomley
  2017-03-04 21:39                                             ` KY Srinivasan
  2017-03-06 16:36                                           ` Stephen Hemminger
  1 sibling, 1 reply; 49+ messages in thread
From: James Bottomley @ 2017-03-04 21:36 UTC (permalink / raw)
  To: KY Srinivasan, Stephen Hemminger
  Cc: Hannes Reinecke, Christoph Hellwig, Jens Axboe, Linus Torvalds,
	Martin K. Petersen, Dexuan Cui, Long Li, Josh Poulson,
	Adrian Suhov (Cloudbase Solutions SRL),
	linux-scsi, Haiyang Zhang

On Sat, 2017-03-04 at 21:03 +0000, KY Srinivasan wrote:
> 
> > -----Original Message-----
> > From: Stephen Hemminger [mailto:stephen@networkplumber.org]
> > Sent: Friday, March 3, 2017 4:50 PM
> > To: James Bottomley <James.Bottomley@Hansenpartnership.com>
> > Cc: Hannes Reinecke <hare@suse.de>; Christoph Hellwig <hch@lst.de>;
> > James Bottomley <jejb@linux.vnet.ibm.com>; Jens Axboe
> > <axboe@kernel.dk>; Linus Torvalds <torvalds@linux-foundation.org>;
> > Martin K. Petersen <martin.petersen@oracle.com>; KY Srinivasan
> > <kys@microsoft.com>; Dexuan Cui <decui@microsoft.com>; Long Li
> > <longli@microsoft.com>; Josh Poulson <jopoulso@microsoft.com>;
> > Adrian
> > Suhov (Cloudbase Solutions SRL) <v-adsuho@microsoft.com>; linux-
> > scsi@vger.kernel.org; Haiyang Zhang <haiyangz@microsoft.com>
> > Subject: [RFC] hv_storvsc: error handling.
> > 
> > Needs more testing but this does fix the observed problem.
> > 
> > From: Stephen Hemminger <sthemmin@microsoft.com>
> > 
> > Subject: [PATCH] hv_storvsc: fix error handling
> > 
> > The Hyper-V storvsc SCSI driver was hiding all errors in INQUIRY
> > and
> > MODE_SENSE commands. This caused the scan process to incorrectly
> > think
> > devices were present and online.  Also invalid LUN errors were not
> > being handled correctly.
> > 
> > This fixes problems booting a GEN2 VM on Hyper-V. It effectively
> > reverts commit 4ed51a21c0f69 ("Staging: hv: storvsc: Fixup
> > srb and scsi status for INQUIRY and MODE_SENSE")
> > 
> > Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
> > ---
> >  drivers/scsi/storvsc_drv.c | 48 ++++------------------------------
> > ------------
> >  1 file changed, 4 insertions(+), 44 deletions(-)
> > 
> > diff --git a/drivers/scsi/storvsc_drv.c
> > b/drivers/scsi/storvsc_drv.c
> > index 638e5f427c90..8cc241fc54b8 100644
> > --- a/drivers/scsi/storvsc_drv.c
> > +++ b/drivers/scsi/storvsc_drv.c
> > @@ -543,28 +543,6 @@ static void storvsc_host_scan(struct
> > work_struct
> > *work)
> >  	kfree(wrk);
> >  }
> > 
> > -static void storvsc_remove_lun(struct work_struct *work)
> > -{
> > -	struct storvsc_scan_work *wrk;
> > -	struct scsi_device *sdev;
> > -
> > -	wrk = container_of(work, struct storvsc_scan_work, work);
> > -	if (!scsi_host_get(wrk->host))
> > -		goto done;
> > -
> > -	sdev = scsi_device_lookup(wrk->host, 0, wrk->tgt_id, wrk
> > ->lun);
> > -
> > -	if (sdev) {
> > -		scsi_remove_device(sdev);
> > -		scsi_device_put(sdev);
> > -	}
> > -	scsi_host_put(wrk->host);
> > -
> > -done:
> > -	kfree(wrk);
> > -}
> > -
> > -
> >  /*
> >   * We can get incoming messages from the host that are not in
> > response to
> >   * messages that we have sent out. An example of this would be
> > messages
> > @@ -955,8 +933,7 @@ static void storvsc_handle_error(struct
> > vmscsi_request *vm_srb,
> >  		}
> >  		break;
> >  	case SRB_STATUS_INVALID_LUN:
> > -		do_work = true;
> > -		process_err_fn = storvsc_remove_lun;
> > +		set_host_byte(scmnd, DID_NO_CONNECT);
> >  		break;
> >  	case SRB_STATUS_ABORTED:
> >  		if (vm_srb->srb_status &
> > SRB_STATUS_AUTOSENSE_VALID
> > &&
> > @@ -1050,32 +1027,15 @@ static void storvsc_on_io_completion(struct
> > storvsc_device *stor_device,
> > 
> >  	stor_pkt = &request->vstor_packet;
> > 
> > -	/*
> > -	 * The current SCSI handling on the host side does
> > -	 * not correctly handle:
> > -	 * INQUIRY command with page code parameter set to 0x80
> > -	 * MODE_SENSE command with cmd[2] == 0x1c
> > -	 *
> > -	 * Setup srb and scsi status so this won't be fatal.
> > -	 * We do this so we can distinguish truly fatal failues
> > -	 * (srb status == 0x4) and off-line the device in that
> > case.
> > -	 */
> > -
> > -	if ((stor_pkt->vm_srb.cdb[0] == INQUIRY) ||
> > -	   (stor_pkt->vm_srb.cdb[0] == MODE_SENSE)) {
> > -		vstor_packet->vm_srb.scsi_status = 0;
> > -		vstor_packet->vm_srb.srb_status =
> > SRB_STATUS_SUCCESS;
> > -	}
> > -
> > -
> >  	/* Copy over the status...etc */
> >  	stor_pkt->vm_srb.scsi_status = vstor_packet
> > ->vm_srb.scsi_status;
> >  	stor_pkt->vm_srb.srb_status = vstor_packet
> > ->vm_srb.srb_status;
> >  	stor_pkt->vm_srb.sense_info_length =
> >  	vstor_packet->vm_srb.sense_info_length;
> > 
> > -	if (vstor_packet->vm_srb.scsi_status != 0 ||
> > -	    vstor_packet->vm_srb.srb_status != SRB_STATUS_SUCCESS)
> > +	if (stor_pkt->vm_srb.cdb[0] != INQUIRY &&
> > +	    (vstor_packet->vm_srb.scsi_status != 0 ||
> > +	     vstor_packet->vm_srb.srb_status !=
> > SRB_STATUS_SUCCESS))
> >  		storvsc_log(device, STORVSC_LOGGING_WARN,
> >  			"cmd 0x%x scsi status 0x%x srb status
> > 0x%x\n",
> >  			stor_pkt->vm_srb.cdb[0],
> > --
> 
> This patch gets rid of the ability to "hot remove" LUNs. I don't
> think that can be part of any
> solution. The INQUIRY hack I put in a long time ago was to deal with
> host bugs on prior versions of
> Windows server. WS2016 should not be trigerring this code. Stephen,
> could you please test this patch -
> a quick hack:
> 
> From b97f24f224a71a6e745c42e5640045a553eb407c Mon Sep 17 00:00:00
> 2001
> From: K. Y. Srinivasan <kys@microsoft.com>
> Date: Sat, 4 Mar 2017 14:00:46 -0700
> Subject: [PATCH 1/1] scsi: storvsc: Fix a bug in LUN removal code
> Reply-To: kys@microsoft.com
> 
> Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
> ---
>  drivers/scsi/storvsc_drv.c |   13 +++++++++++++
>  1 files changed, 13 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/scsi/storvsc_drv.c b/drivers/scsi/storvsc_drv.c
> index 05526b7..27eb682 100644
> --- a/drivers/scsi/storvsc_drv.c
> +++ b/drivers/scsi/storvsc_drv.c
> @@ -885,6 +885,7 @@ static void storvsc_handle_error(struct
> vmscsi_request *vm_srb,
>         struct storvsc_scan_work *wrk;
>         void (*process_err_fn)(struct work_struct *work);
>         bool do_work = false;
> +       struct scsi_device *sdev;
> 
>         switch (SRB_STATUS(vm_srb->srb_status)) {
>         case SRB_STATUS_ERROR:
> @@ -911,6 +912,18 @@ static void storvsc_handle_error(struct
> vmscsi_request *vm_srb,
>                 }
>                 break;
>         case SRB_STATUS_INVALID_LUN:
> +               if (!scsi_host_get(host)) {
> +                       set_host_byte(scmnd, DID_NO_CONNECT);
> +                       break;
> +               }
> +
> +               sdev = scsi_device_lookup(wrk->host, 0, wrk->tgt_id,
> wrk->lun);
> +
> +               if (!sdev) {
> +                       set_host_byte(scmnd, DID_NO_CONNECT);
> +                       break;
> +               }
> +

You're now getting two references (one to the host and one to the
device) that you don't put either in error handling or in
storvsc_remove_lun().

Probably you should eliminate the scsi_host_get and scsi_device_lookup
in storvsc_remove_lun() (making it basically remove device put device
put host) and add a host put in the !sdev if above.

James

^ permalink raw reply	[flat|nested] 49+ messages in thread

* RE: [RFC] hv_storvsc: error handling.
  2017-03-04 21:36                                           ` James Bottomley
@ 2017-03-04 21:39                                             ` KY Srinivasan
  2017-03-04 23:55                                               ` KY Srinivasan
  0 siblings, 1 reply; 49+ messages in thread
From: KY Srinivasan @ 2017-03-04 21:39 UTC (permalink / raw)
  To: James Bottomley, Stephen Hemminger
  Cc: Hannes Reinecke, Christoph Hellwig, Jens Axboe, Linus Torvalds,
	Martin K. Petersen, Dexuan Cui, Long Li, Josh Poulson,
	Adrian Suhov (Cloudbase Solutions SRL),
	linux-scsi, Haiyang Zhang



> -----Original Message-----
> From: James Bottomley [mailto:jejb@linux.vnet.ibm.com]
> Sent: Saturday, March 4, 2017 1:37 PM
> To: KY Srinivasan <kys@microsoft.com>; Stephen Hemminger
> <stephen@networkplumber.org>
> Cc: Hannes Reinecke <hare@suse.de>; Christoph Hellwig <hch@lst.de>; Jens
> Axboe <axboe@kernel.dk>; Linus Torvalds <torvalds@linux-
> foundation.org>; Martin K. Petersen <martin.petersen@oracle.com>;
> Dexuan Cui <decui@microsoft.com>; Long Li <longli@microsoft.com>; Josh
> Poulson <jopoulso@microsoft.com>; Adrian Suhov (Cloudbase Solutions SRL)
> <v-adsuho@microsoft.com>; linux-scsi@vger.kernel.org; Haiyang Zhang
> <haiyangz@microsoft.com>
> Subject: Re: [RFC] hv_storvsc: error handling.
> 
> On Sat, 2017-03-04 at 21:03 +0000, KY Srinivasan wrote:
> >
> > > -----Original Message-----
> > > From: Stephen Hemminger [mailto:stephen@networkplumber.org]
> > > Sent: Friday, March 3, 2017 4:50 PM
> > > To: James Bottomley <James.Bottomley@Hansenpartnership.com>
> > > Cc: Hannes Reinecke <hare@suse.de>; Christoph Hellwig <hch@lst.de>;
> > > James Bottomley <jejb@linux.vnet.ibm.com>; Jens Axboe
> > > <axboe@kernel.dk>; Linus Torvalds <torvalds@linux-foundation.org>;
> > > Martin K. Petersen <martin.petersen@oracle.com>; KY Srinivasan
> > > <kys@microsoft.com>; Dexuan Cui <decui@microsoft.com>; Long Li
> > > <longli@microsoft.com>; Josh Poulson <jopoulso@microsoft.com>;
> > > Adrian
> > > Suhov (Cloudbase Solutions SRL) <v-adsuho@microsoft.com>; linux-
> > > scsi@vger.kernel.org; Haiyang Zhang <haiyangz@microsoft.com>
> > > Subject: [RFC] hv_storvsc: error handling.
> > >
> > > Needs more testing but this does fix the observed problem.
> > >
> > > From: Stephen Hemminger <sthemmin@microsoft.com>
> > >
> > > Subject: [PATCH] hv_storvsc: fix error handling
> > >
> > > The Hyper-V storvsc SCSI driver was hiding all errors in INQUIRY
> > > and
> > > MODE_SENSE commands. This caused the scan process to incorrectly
> > > think
> > > devices were present and online.  Also invalid LUN errors were not
> > > being handled correctly.
> > >
> > > This fixes problems booting a GEN2 VM on Hyper-V. It effectively
> > > reverts commit 4ed51a21c0f69 ("Staging: hv: storvsc: Fixup
> > > srb and scsi status for INQUIRY and MODE_SENSE")
> > >
> > > Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
> > > ---
> > >  drivers/scsi/storvsc_drv.c | 48 ++++------------------------------
> > > ------------
> > >  1 file changed, 4 insertions(+), 44 deletions(-)
> > >
> > > diff --git a/drivers/scsi/storvsc_drv.c
> > > b/drivers/scsi/storvsc_drv.c
> > > index 638e5f427c90..8cc241fc54b8 100644
> > > --- a/drivers/scsi/storvsc_drv.c
> > > +++ b/drivers/scsi/storvsc_drv.c
> > > @@ -543,28 +543,6 @@ static void storvsc_host_scan(struct
> > > work_struct
> > > *work)
> > >  	kfree(wrk);
> > >  }
> > >
> > > -static void storvsc_remove_lun(struct work_struct *work)
> > > -{
> > > -	struct storvsc_scan_work *wrk;
> > > -	struct scsi_device *sdev;
> > > -
> > > -	wrk = container_of(work, struct storvsc_scan_work, work);
> > > -	if (!scsi_host_get(wrk->host))
> > > -		goto done;
> > > -
> > > -	sdev = scsi_device_lookup(wrk->host, 0, wrk->tgt_id, wrk
> > > ->lun);
> > > -
> > > -	if (sdev) {
> > > -		scsi_remove_device(sdev);
> > > -		scsi_device_put(sdev);
> > > -	}
> > > -	scsi_host_put(wrk->host);
> > > -
> > > -done:
> > > -	kfree(wrk);
> > > -}
> > > -
> > > -
> > >  /*
> > >   * We can get incoming messages from the host that are not in
> > > response to
> > >   * messages that we have sent out. An example of this would be
> > > messages
> > > @@ -955,8 +933,7 @@ static void storvsc_handle_error(struct
> > > vmscsi_request *vm_srb,
> > >  		}
> > >  		break;
> > >  	case SRB_STATUS_INVALID_LUN:
> > > -		do_work = true;
> > > -		process_err_fn = storvsc_remove_lun;
> > > +		set_host_byte(scmnd, DID_NO_CONNECT);
> > >  		break;
> > >  	case SRB_STATUS_ABORTED:
> > >  		if (vm_srb->srb_status &
> > > SRB_STATUS_AUTOSENSE_VALID
> > > &&
> > > @@ -1050,32 +1027,15 @@ static void storvsc_on_io_completion(struct
> > > storvsc_device *stor_device,
> > >
> > >  	stor_pkt = &request->vstor_packet;
> > >
> > > -	/*
> > > -	 * The current SCSI handling on the host side does
> > > -	 * not correctly handle:
> > > -	 * INQUIRY command with page code parameter set to 0x80
> > > -	 * MODE_SENSE command with cmd[2] == 0x1c
> > > -	 *
> > > -	 * Setup srb and scsi status so this won't be fatal.
> > > -	 * We do this so we can distinguish truly fatal failues
> > > -	 * (srb status == 0x4) and off-line the device in that
> > > case.
> > > -	 */
> > > -
> > > -	if ((stor_pkt->vm_srb.cdb[0] == INQUIRY) ||
> > > -	   (stor_pkt->vm_srb.cdb[0] == MODE_SENSE)) {
> > > -		vstor_packet->vm_srb.scsi_status = 0;
> > > -		vstor_packet->vm_srb.srb_status =
> > > SRB_STATUS_SUCCESS;
> > > -	}
> > > -
> > > -
> > >  	/* Copy over the status...etc */
> > >  	stor_pkt->vm_srb.scsi_status = vstor_packet
> > > ->vm_srb.scsi_status;
> > >  	stor_pkt->vm_srb.srb_status = vstor_packet
> > > ->vm_srb.srb_status;
> > >  	stor_pkt->vm_srb.sense_info_length =
> > >  	vstor_packet->vm_srb.sense_info_length;
> > >
> > > -	if (vstor_packet->vm_srb.scsi_status != 0 ||
> > > -	    vstor_packet->vm_srb.srb_status != SRB_STATUS_SUCCESS)
> > > +	if (stor_pkt->vm_srb.cdb[0] != INQUIRY &&
> > > +	    (vstor_packet->vm_srb.scsi_status != 0 ||
> > > +	     vstor_packet->vm_srb.srb_status !=
> > > SRB_STATUS_SUCCESS))
> > >  		storvsc_log(device, STORVSC_LOGGING_WARN,
> > >  			"cmd 0x%x scsi status 0x%x srb status
> > > 0x%x\n",
> > >  			stor_pkt->vm_srb.cdb[0],
> > > --
> >
> > This patch gets rid of the ability to "hot remove" LUNs. I don't
> > think that can be part of any
> > solution. The INQUIRY hack I put in a long time ago was to deal with
> > host bugs on prior versions of
> > Windows server. WS2016 should not be trigerring this code. Stephen,
> > could you please test this patch -
> > a quick hack:
> >
> > From b97f24f224a71a6e745c42e5640045a553eb407c Mon Sep 17 00:00:00
> > 2001
> > From: K. Y. Srinivasan <kys@microsoft.com>
> > Date: Sat, 4 Mar 2017 14:00:46 -0700
> > Subject: [PATCH 1/1] scsi: storvsc: Fix a bug in LUN removal code
> > Reply-To: kys@microsoft.com
> >
> > Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
> > ---
> >  drivers/scsi/storvsc_drv.c |   13 +++++++++++++
> >  1 files changed, 13 insertions(+), 0 deletions(-)
> >
> > diff --git a/drivers/scsi/storvsc_drv.c b/drivers/scsi/storvsc_drv.c
> > index 05526b7..27eb682 100644
> > --- a/drivers/scsi/storvsc_drv.c
> > +++ b/drivers/scsi/storvsc_drv.c
> > @@ -885,6 +885,7 @@ static void storvsc_handle_error(struct
> > vmscsi_request *vm_srb,
> >         struct storvsc_scan_work *wrk;
> >         void (*process_err_fn)(struct work_struct *work);
> >         bool do_work = false;
> > +       struct scsi_device *sdev;
> >
> >         switch (SRB_STATUS(vm_srb->srb_status)) {
> >         case SRB_STATUS_ERROR:
> > @@ -911,6 +912,18 @@ static void storvsc_handle_error(struct
> > vmscsi_request *vm_srb,
> >                 }
> >                 break;
> >         case SRB_STATUS_INVALID_LUN:
> > +               if (!scsi_host_get(host)) {
> > +                       set_host_byte(scmnd, DID_NO_CONNECT);
> > +                       break;
> > +               }
> > +
> > +               sdev = scsi_device_lookup(wrk->host, 0, wrk->tgt_id,
> > wrk->lun);
> > +
> > +               if (!sdev) {
> > +                       set_host_byte(scmnd, DID_NO_CONNECT);
> > +                       break;
> > +               }
> > +
> 
> You're now getting two references (one to the host and one to the
> device) that you don't put either in error handling or in
> storvsc_remove_lun().
> 
> Probably you should eliminate the scsi_host_get and scsi_device_lookup
> in storvsc_remove_lun() (making it basically remove device put device
> put host) and add a host put in the !sdev if above.

Yes; this was a quick hack to prove a theory. This should work (I hope); I will cleanup and resend once
Stephen verifies.

K. Y 
> 
> James


^ permalink raw reply	[flat|nested] 49+ messages in thread

* RE: [RFC] hv_storvsc: error handling.
  2017-03-04 21:39                                             ` KY Srinivasan
@ 2017-03-04 23:55                                               ` KY Srinivasan
  0 siblings, 0 replies; 49+ messages in thread
From: KY Srinivasan @ 2017-03-04 23:55 UTC (permalink / raw)
  To: James Bottomley, Stephen Hemminger
  Cc: Hannes Reinecke, Christoph Hellwig, Jens Axboe, Linus Torvalds,
	Martin K. Petersen, Dexuan Cui, Long Li, Josh Poulson,
	Adrian Suhov (Cloudbase Solutions SRL),
	linux-scsi, Haiyang Zhang



> -----Original Message-----
> From: KY Srinivasan
> Sent: Saturday, March 4, 2017 1:40 PM
> To: 'James Bottomley' <jejb@linux.vnet.ibm.com>; Stephen Hemminger
> <stephen@networkplumber.org>
> Cc: Hannes Reinecke <hare@suse.de>; Christoph Hellwig <hch@lst.de>; Jens
> Axboe <axboe@kernel.dk>; Linus Torvalds <torvalds@linux-
> foundation.org>; Martin K. Petersen <martin.petersen@oracle.com>;
> Dexuan Cui <decui@microsoft.com>; Long Li <longli@microsoft.com>; Josh
> Poulson <jopoulso@microsoft.com>; Adrian Suhov (Cloudbase Solutions SRL)
> <v-adsuho@microsoft.com>; linux-scsi@vger.kernel.org; Haiyang Zhang
> <haiyangz@microsoft.com>
> Subject: RE: [RFC] hv_storvsc: error handling.
> 
> 
> 
> > -----Original Message-----
> > From: James Bottomley [mailto:jejb@linux.vnet.ibm.com]
> > Sent: Saturday, March 4, 2017 1:37 PM
> > To: KY Srinivasan <kys@microsoft.com>; Stephen Hemminger
> > <stephen@networkplumber.org>
> > Cc: Hannes Reinecke <hare@suse.de>; Christoph Hellwig <hch@lst.de>;
> Jens
> > Axboe <axboe@kernel.dk>; Linus Torvalds <torvalds@linux-
> > foundation.org>; Martin K. Petersen <martin.petersen@oracle.com>;
> > Dexuan Cui <decui@microsoft.com>; Long Li <longli@microsoft.com>; Josh
> > Poulson <jopoulso@microsoft.com>; Adrian Suhov (Cloudbase Solutions
> SRL)
> > <v-adsuho@microsoft.com>; linux-scsi@vger.kernel.org; Haiyang Zhang
> > <haiyangz@microsoft.com>
> > Subject: Re: [RFC] hv_storvsc: error handling.
> >
> > On Sat, 2017-03-04 at 21:03 +0000, KY Srinivasan wrote:
> > >
> > > > -----Original Message-----
> > > > From: Stephen Hemminger [mailto:stephen@networkplumber.org]
> > > > Sent: Friday, March 3, 2017 4:50 PM
> > > > To: James Bottomley <James.Bottomley@Hansenpartnership.com>
> > > > Cc: Hannes Reinecke <hare@suse.de>; Christoph Hellwig
> <hch@lst.de>;
> > > > James Bottomley <jejb@linux.vnet.ibm.com>; Jens Axboe
> > > > <axboe@kernel.dk>; Linus Torvalds <torvalds@linux-foundation.org>;
> > > > Martin K. Petersen <martin.petersen@oracle.com>; KY Srinivasan
> > > > <kys@microsoft.com>; Dexuan Cui <decui@microsoft.com>; Long Li
> > > > <longli@microsoft.com>; Josh Poulson <jopoulso@microsoft.com>;
> > > > Adrian
> > > > Suhov (Cloudbase Solutions SRL) <v-adsuho@microsoft.com>; linux-
> > > > scsi@vger.kernel.org; Haiyang Zhang <haiyangz@microsoft.com>
> > > > Subject: [RFC] hv_storvsc: error handling.
> > > >
> > > > Needs more testing but this does fix the observed problem.
> > > >
> > > > From: Stephen Hemminger <sthemmin@microsoft.com>
> > > >
> > > > Subject: [PATCH] hv_storvsc: fix error handling
> > > >
> > > > The Hyper-V storvsc SCSI driver was hiding all errors in INQUIRY
> > > > and
> > > > MODE_SENSE commands. This caused the scan process to incorrectly
> > > > think
> > > > devices were present and online.  Also invalid LUN errors were not
> > > > being handled correctly.
> > > >
> > > > This fixes problems booting a GEN2 VM on Hyper-V. It effectively
> > > > reverts commit 4ed51a21c0f69 ("Staging: hv: storvsc: Fixup
> > > > srb and scsi status for INQUIRY and MODE_SENSE")
> > > >
> > > > Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
> > > > ---
> > > >  drivers/scsi/storvsc_drv.c | 48 ++++------------------------------
> > > > ------------
> > > >  1 file changed, 4 insertions(+), 44 deletions(-)
> > > >
> > > > diff --git a/drivers/scsi/storvsc_drv.c
> > > > b/drivers/scsi/storvsc_drv.c
> > > > index 638e5f427c90..8cc241fc54b8 100644
> > > > --- a/drivers/scsi/storvsc_drv.c
> > > > +++ b/drivers/scsi/storvsc_drv.c
> > > > @@ -543,28 +543,6 @@ static void storvsc_host_scan(struct
> > > > work_struct
> > > > *work)
> > > >  	kfree(wrk);
> > > >  }
> > > >
> > > > -static void storvsc_remove_lun(struct work_struct *work)
> > > > -{
> > > > -	struct storvsc_scan_work *wrk;
> > > > -	struct scsi_device *sdev;
> > > > -
> > > > -	wrk = container_of(work, struct storvsc_scan_work, work);
> > > > -	if (!scsi_host_get(wrk->host))
> > > > -		goto done;
> > > > -
> > > > -	sdev = scsi_device_lookup(wrk->host, 0, wrk->tgt_id, wrk
> > > > ->lun);
> > > > -
> > > > -	if (sdev) {
> > > > -		scsi_remove_device(sdev);
> > > > -		scsi_device_put(sdev);
> > > > -	}
> > > > -	scsi_host_put(wrk->host);
> > > > -
> > > > -done:
> > > > -	kfree(wrk);
> > > > -}
> > > > -
> > > > -
> > > >  /*
> > > >   * We can get incoming messages from the host that are not in
> > > > response to
> > > >   * messages that we have sent out. An example of this would be
> > > > messages
> > > > @@ -955,8 +933,7 @@ static void storvsc_handle_error(struct
> > > > vmscsi_request *vm_srb,
> > > >  		}
> > > >  		break;
> > > >  	case SRB_STATUS_INVALID_LUN:
> > > > -		do_work = true;
> > > > -		process_err_fn = storvsc_remove_lun;
> > > > +		set_host_byte(scmnd, DID_NO_CONNECT);
> > > >  		break;
> > > >  	case SRB_STATUS_ABORTED:
> > > >  		if (vm_srb->srb_status &
> > > > SRB_STATUS_AUTOSENSE_VALID
> > > > &&
> > > > @@ -1050,32 +1027,15 @@ static void storvsc_on_io_completion(struct
> > > > storvsc_device *stor_device,
> > > >
> > > >  	stor_pkt = &request->vstor_packet;
> > > >
> > > > -	/*
> > > > -	 * The current SCSI handling on the host side does
> > > > -	 * not correctly handle:
> > > > -	 * INQUIRY command with page code parameter set to 0x80
> > > > -	 * MODE_SENSE command with cmd[2] == 0x1c
> > > > -	 *
> > > > -	 * Setup srb and scsi status so this won't be fatal.
> > > > -	 * We do this so we can distinguish truly fatal failues
> > > > -	 * (srb status == 0x4) and off-line the device in that
> > > > case.
> > > > -	 */
> > > > -
> > > > -	if ((stor_pkt->vm_srb.cdb[0] == INQUIRY) ||
> > > > -	   (stor_pkt->vm_srb.cdb[0] == MODE_SENSE)) {
> > > > -		vstor_packet->vm_srb.scsi_status = 0;
> > > > -		vstor_packet->vm_srb.srb_status =
> > > > SRB_STATUS_SUCCESS;
> > > > -	}
> > > > -
> > > > -
> > > >  	/* Copy over the status...etc */
> > > >  	stor_pkt->vm_srb.scsi_status = vstor_packet
> > > > ->vm_srb.scsi_status;
> > > >  	stor_pkt->vm_srb.srb_status = vstor_packet
> > > > ->vm_srb.srb_status;
> > > >  	stor_pkt->vm_srb.sense_info_length =
> > > >  	vstor_packet->vm_srb.sense_info_length;
> > > >
> > > > -	if (vstor_packet->vm_srb.scsi_status != 0 ||
> > > > -	    vstor_packet->vm_srb.srb_status != SRB_STATUS_SUCCESS)
> > > > +	if (stor_pkt->vm_srb.cdb[0] != INQUIRY &&
> > > > +	    (vstor_packet->vm_srb.scsi_status != 0 ||
> > > > +	     vstor_packet->vm_srb.srb_status !=
> > > > SRB_STATUS_SUCCESS))
> > > >  		storvsc_log(device, STORVSC_LOGGING_WARN,
> > > >  			"cmd 0x%x scsi status 0x%x srb status
> > > > 0x%x\n",
> > > >  			stor_pkt->vm_srb.cdb[0],
> > > > --
> > >
> > > This patch gets rid of the ability to "hot remove" LUNs. I don't
> > > think that can be part of any
> > > solution. The INQUIRY hack I put in a long time ago was to deal with
> > > host bugs on prior versions of
> > > Windows server. WS2016 should not be trigerring this code. Stephen,
> > > could you please test this patch -
> > > a quick hack:
> > >
> > > From b97f24f224a71a6e745c42e5640045a553eb407c Mon Sep 17 00:00:00
> > > 2001
> > > From: K. Y. Srinivasan <kys@microsoft.com>
> > > Date: Sat, 4 Mar 2017 14:00:46 -0700
> > > Subject: [PATCH 1/1] scsi: storvsc: Fix a bug in LUN removal code
> > > Reply-To: kys@microsoft.com
> > >
> > > Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
> > > ---
> > >  drivers/scsi/storvsc_drv.c |   13 +++++++++++++
> > >  1 files changed, 13 insertions(+), 0 deletions(-)
> > >
> > > diff --git a/drivers/scsi/storvsc_drv.c b/drivers/scsi/storvsc_drv.c
> > > index 05526b7..27eb682 100644
> > > --- a/drivers/scsi/storvsc_drv.c
> > > +++ b/drivers/scsi/storvsc_drv.c
> > > @@ -885,6 +885,7 @@ static void storvsc_handle_error(struct
> > > vmscsi_request *vm_srb,
> > >         struct storvsc_scan_work *wrk;
> > >         void (*process_err_fn)(struct work_struct *work);
> > >         bool do_work = false;
> > > +       struct scsi_device *sdev;
> > >
> > >         switch (SRB_STATUS(vm_srb->srb_status)) {
> > >         case SRB_STATUS_ERROR:
> > > @@ -911,6 +912,18 @@ static void storvsc_handle_error(struct
> > > vmscsi_request *vm_srb,
> > >                 }
> > >                 break;
> > >         case SRB_STATUS_INVALID_LUN:
> > > +               if (!scsi_host_get(host)) {
> > > +                       set_host_byte(scmnd, DID_NO_CONNECT);
> > > +                       break;
> > > +               }
> > > +
> > > +               sdev = scsi_device_lookup(wrk->host, 0, wrk->tgt_id,
> > > wrk->lun);
> > > +
> > > +               if (!sdev) {
> > > +                       set_host_byte(scmnd, DID_NO_CONNECT);
> > > +                       break;
> > > +               }
> > > +
> >
> > You're now getting two references (one to the host and one to the
> > device) that you don't put either in error handling or in
> > storvsc_remove_lun().
> >
> > Probably you should eliminate the scsi_host_get and scsi_device_lookup
> > in storvsc_remove_lun() (making it basically remove device put device
> > put host) and add a host put in the !sdev if above.
> 
> Yes; this was a quick hack to prove a theory. This should work (I hope); I will
> cleanup and resend once
> Stephen verifies.

Stephen,

Please test this patch. Have addressed the ref count issue that James pointed out.

From 6d57fb68c40165e61d84b6766b2263747d5e241d Mon Sep 17 00:00:00 2001
From: K. Y. Srinivasan <kys@microsoft.com>
Date: Sat, 4 Mar 2017 15:57:26 -0700
Subject: [PATCH 1/1] scsi: storvsc: Fix a bug in LUN removal code
Reply-To: kys@microsoft.com

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
---
 drivers/scsi/storvsc_drv.c |   33 +++++++++++++++++++++++----------
 1 files changed, 23 insertions(+), 10 deletions(-)

diff --git a/drivers/scsi/storvsc_drv.c b/drivers/scsi/storvsc_drv.c
index 05526b7..2bd132d 100644
--- a/drivers/scsi/storvsc_drv.c
+++ b/drivers/scsi/storvsc_drv.c
@@ -478,6 +478,7 @@ struct hv_host_device {
 struct storvsc_scan_work {
        struct work_struct work;
        struct Scsi_Host *host;
+       struct scsi_device *sdev;
        u8 lun;
        u8 tgt_id;
 };
@@ -531,24 +532,20 @@ static void storvsc_host_scan(struct work_struct *work)
        kfree(wrk);
 }

+/*
+ * On Entry we have a reference on both the host and the device.
+ * Drop them here.
+ */
 static void storvsc_remove_lun(struct work_struct *work)
 {
        struct storvsc_scan_work *wrk;
-       struct scsi_device *sdev;

        wrk = container_of(work, struct storvsc_scan_work, work);
-       if (!scsi_host_get(wrk->host))
-               goto done;
-
-       sdev = scsi_device_lookup(wrk->host, 0, wrk->tgt_id, wrk->lun);

-       if (sdev) {
-               scsi_remove_device(sdev);
-               scsi_device_put(sdev);
-       }
+       scsi_remove_device(wrk->sdev);
+       scsi_device_put(wrk->sdev);
        scsi_host_put(wrk->host);

-done:
        kfree(wrk);
 }

@@ -885,6 +882,7 @@ static void storvsc_handle_error(struct vmscsi_request *vm_srb,
        struct storvsc_scan_work *wrk;
        void (*process_err_fn)(struct work_struct *work);
        bool do_work = false;
+       struct scsi_device *sdev;

        switch (SRB_STATUS(vm_srb->srb_status)) {
        case SRB_STATUS_ERROR:
@@ -911,9 +909,23 @@ static void storvsc_handle_error(struct vmscsi_request *vm_srb,
                }
                break;
        case SRB_STATUS_INVALID_LUN:
+               if (!scsi_host_get(host))
+                       goto host_not_known;
+
+               sdev = scsi_device_lookup(wrk->host, 0, wrk->tgt_id, wrk->lun);
+
+               if (!sdev)
+                       goto lun_not_known;
+
                do_work = true;
                process_err_fn = storvsc_remove_lun;
                break;
+
+lun_not_known:
+               scsi_host_put(host);
+host_not_known:
+               set_host_byte(scmnd, DID_NO_CONNECT);
+               break;
        case SRB_STATUS_ABORTED:
                if (vm_srb->srb_status & SRB_STATUS_AUTOSENSE_VALID &&
                    (asc == 0x2a) && (ascq == 0x9)) {
@@ -939,6 +951,7 @@ static void storvsc_handle_error(struct vmscsi_request *vm_srb,
                return;
        }

+       wrk->sdev = sdev;
        wrk->host = host;
        wrk->lun = vm_srb->lun;
        wrk->tgt_id = vm_srb->target_id;
--
1.7.1

> 
> K. Y
> >
> > James


^ permalink raw reply related	[flat|nested] 49+ messages in thread

* Re: [RFC] hv_storvsc: error handling.
  2017-03-04 21:03                                         ` KY Srinivasan
  2017-03-04 21:36                                           ` James Bottomley
@ 2017-03-06 16:36                                           ` Stephen Hemminger
  2017-03-06 17:48                                             ` KY Srinivasan
  1 sibling, 1 reply; 49+ messages in thread
From: Stephen Hemminger @ 2017-03-06 16:36 UTC (permalink / raw)
  To: KY Srinivasan
  Cc: James Bottomley, Hannes Reinecke, Christoph Hellwig,
	James Bottomley, Jens Axboe, Linus Torvalds, Martin K. Petersen,
	Dexuan Cui, Long Li, Josh Poulson,
	Adrian Suhov (Cloudbase Solutions SRL),
	linux-scsi, Haiyang Zhang

On Sat, 4 Mar 2017 21:03:41 +0000
KY Srinivasan <kys@microsoft.com> wrote:

> > -----Original Message-----
> > From: Stephen Hemminger [mailto:stephen@networkplumber.org]
> > Sent: Friday, March 3, 2017 4:50 PM
> > To: James Bottomley <James.Bottomley@Hansenpartnership.com>
> > Cc: Hannes Reinecke <hare@suse.de>; Christoph Hellwig <hch@lst.de>;
> > James Bottomley <jejb@linux.vnet.ibm.com>; Jens Axboe
> > <axboe@kernel.dk>; Linus Torvalds <torvalds@linux-foundation.org>;
> > Martin K. Petersen <martin.petersen@oracle.com>; KY Srinivasan
> > <kys@microsoft.com>; Dexuan Cui <decui@microsoft.com>; Long Li
> > <longli@microsoft.com>; Josh Poulson <jopoulso@microsoft.com>; Adrian
> > Suhov (Cloudbase Solutions SRL) <v-adsuho@microsoft.com>; linux-
> > scsi@vger.kernel.org; Haiyang Zhang <haiyangz@microsoft.com>
> > Subject: [RFC] hv_storvsc: error handling.
> > 
> > Needs more testing but this does fix the observed problem.
> > 
> > From: Stephen Hemminger <sthemmin@microsoft.com>
> > 
> > Subject: [PATCH] hv_storvsc: fix error handling
> > 
> > The Hyper-V storvsc SCSI driver was hiding all errors in INQUIRY and
> > MODE_SENSE commands. This caused the scan process to incorrectly think
> > devices were present and online.  Also invalid LUN errors were not
> > being handled correctly.
> > 
> > This fixes problems booting a GEN2 VM on Hyper-V. It effectively
> > reverts commit 4ed51a21c0f69 ("Staging: hv: storvsc: Fixup
> > srb and scsi status for INQUIRY and MODE_SENSE")
> > 
> > Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
> > ---
> >  drivers/scsi/storvsc_drv.c | 48 ++++------------------------------------------
> >  1 file changed, 4 insertions(+), 44 deletions(-)
> > 
> > diff --git a/drivers/scsi/storvsc_drv.c b/drivers/scsi/storvsc_drv.c
> > index 638e5f427c90..8cc241fc54b8 100644
> > --- a/drivers/scsi/storvsc_drv.c
> > +++ b/drivers/scsi/storvsc_drv.c
> > @@ -543,28 +543,6 @@ static void storvsc_host_scan(struct work_struct
> > *work)
> >  	kfree(wrk);
> >  }
> > 
> > -static void storvsc_remove_lun(struct work_struct *work)
> > -{
> > -	struct storvsc_scan_work *wrk;
> > -	struct scsi_device *sdev;
> > -
> > -	wrk = container_of(work, struct storvsc_scan_work, work);
> > -	if (!scsi_host_get(wrk->host))
> > -		goto done;
> > -
> > -	sdev = scsi_device_lookup(wrk->host, 0, wrk->tgt_id, wrk->lun);
> > -
> > -	if (sdev) {
> > -		scsi_remove_device(sdev);
> > -		scsi_device_put(sdev);
> > -	}
> > -	scsi_host_put(wrk->host);
> > -
> > -done:
> > -	kfree(wrk);
> > -}
> > -
> > -
> >  /*
> >   * We can get incoming messages from the host that are not in response to
> >   * messages that we have sent out. An example of this would be messages
> > @@ -955,8 +933,7 @@ static void storvsc_handle_error(struct
> > vmscsi_request *vm_srb,
> >  		}
> >  		break;
> >  	case SRB_STATUS_INVALID_LUN:
> > -		do_work = true;
> > -		process_err_fn = storvsc_remove_lun;
> > +		set_host_byte(scmnd, DID_NO_CONNECT);
> >  		break;
> >  	case SRB_STATUS_ABORTED:
> >  		if (vm_srb->srb_status & SRB_STATUS_AUTOSENSE_VALID
> > &&
> > @@ -1050,32 +1027,15 @@ static void storvsc_on_io_completion(struct
> > storvsc_device *stor_device,
> > 
> >  	stor_pkt = &request->vstor_packet;
> > 
> > -	/*
> > -	 * The current SCSI handling on the host side does
> > -	 * not correctly handle:
> > -	 * INQUIRY command with page code parameter set to 0x80
> > -	 * MODE_SENSE command with cmd[2] == 0x1c
> > -	 *
> > -	 * Setup srb and scsi status so this won't be fatal.
> > -	 * We do this so we can distinguish truly fatal failues
> > -	 * (srb status == 0x4) and off-line the device in that case.
> > -	 */
> > -
> > -	if ((stor_pkt->vm_srb.cdb[0] == INQUIRY) ||
> > -	   (stor_pkt->vm_srb.cdb[0] == MODE_SENSE)) {
> > -		vstor_packet->vm_srb.scsi_status = 0;
> > -		vstor_packet->vm_srb.srb_status = SRB_STATUS_SUCCESS;
> > -	}
> > -
> > -
> >  	/* Copy over the status...etc */
> >  	stor_pkt->vm_srb.scsi_status = vstor_packet->vm_srb.scsi_status;
> >  	stor_pkt->vm_srb.srb_status = vstor_packet->vm_srb.srb_status;
> >  	stor_pkt->vm_srb.sense_info_length =
> >  	vstor_packet->vm_srb.sense_info_length;
> > 
> > -	if (vstor_packet->vm_srb.scsi_status != 0 ||
> > -	    vstor_packet->vm_srb.srb_status != SRB_STATUS_SUCCESS)
> > +	if (stor_pkt->vm_srb.cdb[0] != INQUIRY &&
> > +	    (vstor_packet->vm_srb.scsi_status != 0 ||
> > +	     vstor_packet->vm_srb.srb_status != SRB_STATUS_SUCCESS))
> >  		storvsc_log(device, STORVSC_LOGGING_WARN,
> >  			"cmd 0x%x scsi status 0x%x srb status 0x%x\n",
> >  			stor_pkt->vm_srb.cdb[0],
> > --  
> 
> This patch gets rid of the ability to "hot remove" LUNs. I don't think that can be part of any
> solution. The INQUIRY hack I put in a long time ago was to deal with host bugs on prior versions of
> Windows server. WS2016 should not be trigerring this code. Stephen, could you please test this patch -
> a quick hack:
> 
> From b97f24f224a71a6e745c42e5640045a553eb407c Mon Sep 17 00:00:00 2001
> From: K. Y. Srinivasan <kys@microsoft.com>
> Date: Sat, 4 Mar 2017 14:00:46 -0700
> Subject: [PATCH 1/1] scsi: storvsc: Fix a bug in LUN removal code
> Reply-To: kys@microsoft.com
> 
> Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
> ---
>  drivers/scsi/storvsc_drv.c |   13 +++++++++++++
>  1 files changed, 13 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/scsi/storvsc_drv.c b/drivers/scsi/storvsc_drv.c
> index 05526b7..27eb682 100644
> --- a/drivers/scsi/storvsc_drv.c
> +++ b/drivers/scsi/storvsc_drv.c
> @@ -885,6 +885,7 @@ static void storvsc_handle_error(struct vmscsi_request *vm_srb,
>         struct storvsc_scan_work *wrk;
>         void (*process_err_fn)(struct work_struct *work);
>         bool do_work = false;
> +       struct scsi_device *sdev;
> 
>         switch (SRB_STATUS(vm_srb->srb_status)) {
>         case SRB_STATUS_ERROR:
> @@ -911,6 +912,18 @@ static void storvsc_handle_error(struct vmscsi_request *vm_srb,
>                 }
>                 break;
>         case SRB_STATUS_INVALID_LUN:
> +               if (!scsi_host_get(host)) {
> +                       set_host_byte(scmnd, DID_NO_CONNECT);
> +                       break;
> +               }
> +
> +               sdev = scsi_device_lookup(wrk->host, 0, wrk->tgt_id, wrk->lun);
> +
> +               if (!sdev) {
> +                       set_host_byte(scmnd, DID_NO_CONNECT);
> +                       break;
> +               }
> +
>                 do_work = true;
>                 process_err_fn = storvsc_remove_lun;
>                 break;

I will try it, but it can't work for two reasons.
First, the INVALID_LUN error is masked off on INQUIRY in current code.
Second, the scsi_device is instantiated already as part of scan probe process
before it gets here.

The best solution so far is:
	- remove old INQUIRY/SENSE error masking
	+ add new workaround for INQUIRY of device id on LUN 0
	  which appears to be the reason for old masking
	+ return errors on missing LUN
	+ provide better transport services for hot remove (rather
          than detecting by failed I/O).

^ permalink raw reply	[flat|nested] 49+ messages in thread

* RE: [RFC] hv_storvsc: error handling.
  2017-03-06 16:36                                           ` Stephen Hemminger
@ 2017-03-06 17:48                                             ` KY Srinivasan
  2017-03-06 17:57                                               ` Stephen Hemminger
  2017-03-07  5:06                                               ` Christoph Hellwig
  0 siblings, 2 replies; 49+ messages in thread
From: KY Srinivasan @ 2017-03-06 17:48 UTC (permalink / raw)
  To: Stephen Hemminger
  Cc: James Bottomley, Hannes Reinecke, Christoph Hellwig,
	James Bottomley, Jens Axboe, Linus Torvalds, Martin K. Petersen,
	Dexuan Cui, Long Li, Josh Poulson,
	Adrian Suhov (Cloudbase Solutions SRL),
	linux-scsi, Haiyang Zhang



> -----Original Message-----
> From: Stephen Hemminger [mailto:stephen@networkplumber.org]
> Sent: Monday, March 6, 2017 8:36 AM
> To: KY Srinivasan <kys@microsoft.com>
> Cc: James Bottomley <James.Bottomley@Hansenpartnership.com>; Hannes
> Reinecke <hare@suse.de>; Christoph Hellwig <hch@lst.de>; James
> Bottomley <jejb@linux.vnet.ibm.com>; Jens Axboe <axboe@kernel.dk>;
> Linus Torvalds <torvalds@linux-foundation.org>; Martin K. Petersen
> <martin.petersen@oracle.com>; Dexuan Cui <decui@microsoft.com>; Long
> Li <longli@microsoft.com>; Josh Poulson <jopoulso@microsoft.com>; Adrian
> Suhov (Cloudbase Solutions SRL) <v-adsuho@microsoft.com>; linux-
> scsi@vger.kernel.org; Haiyang Zhang <haiyangz@microsoft.com>
> Subject: Re: [RFC] hv_storvsc: error handling.
> 
> On Sat, 4 Mar 2017 21:03:41 +0000
> KY Srinivasan <kys@microsoft.com> wrote:
> 
> > > -----Original Message-----
> > > From: Stephen Hemminger [mailto:stephen@networkplumber.org]
> > > Sent: Friday, March 3, 2017 4:50 PM
> > > To: James Bottomley <James.Bottomley@Hansenpartnership.com>
> > > Cc: Hannes Reinecke <hare@suse.de>; Christoph Hellwig <hch@lst.de>;
> > > James Bottomley <jejb@linux.vnet.ibm.com>; Jens Axboe
> > > <axboe@kernel.dk>; Linus Torvalds <torvalds@linux-foundation.org>;
> > > Martin K. Petersen <martin.petersen@oracle.com>; KY Srinivasan
> > > <kys@microsoft.com>; Dexuan Cui <decui@microsoft.com>; Long Li
> > > <longli@microsoft.com>; Josh Poulson <jopoulso@microsoft.com>;
> Adrian
> > > Suhov (Cloudbase Solutions SRL) <v-adsuho@microsoft.com>; linux-
> > > scsi@vger.kernel.org; Haiyang Zhang <haiyangz@microsoft.com>
> > > Subject: [RFC] hv_storvsc: error handling.
> > >
> > > Needs more testing but this does fix the observed problem.
> > >
> > > From: Stephen Hemminger <sthemmin@microsoft.com>
> > >
> > > Subject: [PATCH] hv_storvsc: fix error handling
> > >
> > > The Hyper-V storvsc SCSI driver was hiding all errors in INQUIRY and
> > > MODE_SENSE commands. This caused the scan process to incorrectly
> think
> > > devices were present and online.  Also invalid LUN errors were not
> > > being handled correctly.
> > >
> > > This fixes problems booting a GEN2 VM on Hyper-V. It effectively
> > > reverts commit 4ed51a21c0f69 ("Staging: hv: storvsc: Fixup
> > > srb and scsi status for INQUIRY and MODE_SENSE")
> > >
> > > Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
> > > ---
> > >  drivers/scsi/storvsc_drv.c | 48 ++++------------------------------------------
> > >  1 file changed, 4 insertions(+), 44 deletions(-)
> > >
> > > diff --git a/drivers/scsi/storvsc_drv.c b/drivers/scsi/storvsc_drv.c
> > > index 638e5f427c90..8cc241fc54b8 100644
> > > --- a/drivers/scsi/storvsc_drv.c
> > > +++ b/drivers/scsi/storvsc_drv.c
> > > @@ -543,28 +543,6 @@ static void storvsc_host_scan(struct work_struct
> > > *work)
> > >  	kfree(wrk);
> > >  }
> > >
> > > -static void storvsc_remove_lun(struct work_struct *work)
> > > -{
> > > -	struct storvsc_scan_work *wrk;
> > > -	struct scsi_device *sdev;
> > > -
> > > -	wrk = container_of(work, struct storvsc_scan_work, work);
> > > -	if (!scsi_host_get(wrk->host))
> > > -		goto done;
> > > -
> > > -	sdev = scsi_device_lookup(wrk->host, 0, wrk->tgt_id, wrk->lun);
> > > -
> > > -	if (sdev) {
> > > -		scsi_remove_device(sdev);
> > > -		scsi_device_put(sdev);
> > > -	}
> > > -	scsi_host_put(wrk->host);
> > > -
> > > -done:
> > > -	kfree(wrk);
> > > -}
> > > -
> > > -
> > >  /*
> > >   * We can get incoming messages from the host that are not in response
> to
> > >   * messages that we have sent out. An example of this would be
> messages
> > > @@ -955,8 +933,7 @@ static void storvsc_handle_error(struct
> > > vmscsi_request *vm_srb,
> > >  		}
> > >  		break;
> > >  	case SRB_STATUS_INVALID_LUN:
> > > -		do_work = true;
> > > -		process_err_fn = storvsc_remove_lun;
> > > +		set_host_byte(scmnd, DID_NO_CONNECT);
> > >  		break;
> > >  	case SRB_STATUS_ABORTED:
> > >  		if (vm_srb->srb_status & SRB_STATUS_AUTOSENSE_VALID
> > > &&
> > > @@ -1050,32 +1027,15 @@ static void storvsc_on_io_completion(struct
> > > storvsc_device *stor_device,
> > >
> > >  	stor_pkt = &request->vstor_packet;
> > >
> > > -	/*
> > > -	 * The current SCSI handling on the host side does
> > > -	 * not correctly handle:
> > > -	 * INQUIRY command with page code parameter set to 0x80
> > > -	 * MODE_SENSE command with cmd[2] == 0x1c
> > > -	 *
> > > -	 * Setup srb and scsi status so this won't be fatal.
> > > -	 * We do this so we can distinguish truly fatal failues
> > > -	 * (srb status == 0x4) and off-line the device in that case.
> > > -	 */
> > > -
> > > -	if ((stor_pkt->vm_srb.cdb[0] == INQUIRY) ||
> > > -	   (stor_pkt->vm_srb.cdb[0] == MODE_SENSE)) {
> > > -		vstor_packet->vm_srb.scsi_status = 0;
> > > -		vstor_packet->vm_srb.srb_status = SRB_STATUS_SUCCESS;
> > > -	}
> > > -
> > > -
> > >  	/* Copy over the status...etc */
> > >  	stor_pkt->vm_srb.scsi_status = vstor_packet->vm_srb.scsi_status;
> > >  	stor_pkt->vm_srb.srb_status = vstor_packet->vm_srb.srb_status;
> > >  	stor_pkt->vm_srb.sense_info_length =
> > >  	vstor_packet->vm_srb.sense_info_length;
> > >
> > > -	if (vstor_packet->vm_srb.scsi_status != 0 ||
> > > -	    vstor_packet->vm_srb.srb_status != SRB_STATUS_SUCCESS)
> > > +	if (stor_pkt->vm_srb.cdb[0] != INQUIRY &&
> > > +	    (vstor_packet->vm_srb.scsi_status != 0 ||
> > > +	     vstor_packet->vm_srb.srb_status != SRB_STATUS_SUCCESS))
> > >  		storvsc_log(device, STORVSC_LOGGING_WARN,
> > >  			"cmd 0x%x scsi status 0x%x srb status 0x%x\n",
> > >  			stor_pkt->vm_srb.cdb[0],
> > > --
> >
> > This patch gets rid of the ability to "hot remove" LUNs. I don't think that can
> be part of any
> > solution. The INQUIRY hack I put in a long time ago was to deal with host
> bugs on prior versions of
> > Windows server. WS2016 should not be trigerring this code. Stephen, could
> you please test this patch -
> > a quick hack:
> >
> > From b97f24f224a71a6e745c42e5640045a553eb407c Mon Sep 17 00:00:00
> 2001
> > From: K. Y. Srinivasan <kys@microsoft.com>
> > Date: Sat, 4 Mar 2017 14:00:46 -0700
> > Subject: [PATCH 1/1] scsi: storvsc: Fix a bug in LUN removal code
> > Reply-To: kys@microsoft.com
> >
> > Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
> > ---
> >  drivers/scsi/storvsc_drv.c |   13 +++++++++++++
> >  1 files changed, 13 insertions(+), 0 deletions(-)
> >
> > diff --git a/drivers/scsi/storvsc_drv.c b/drivers/scsi/storvsc_drv.c
> > index 05526b7..27eb682 100644
> > --- a/drivers/scsi/storvsc_drv.c
> > +++ b/drivers/scsi/storvsc_drv.c
> > @@ -885,6 +885,7 @@ static void storvsc_handle_error(struct
> vmscsi_request *vm_srb,
> >         struct storvsc_scan_work *wrk;
> >         void (*process_err_fn)(struct work_struct *work);
> >         bool do_work = false;
> > +       struct scsi_device *sdev;
> >
> >         switch (SRB_STATUS(vm_srb->srb_status)) {
> >         case SRB_STATUS_ERROR:
> > @@ -911,6 +912,18 @@ static void storvsc_handle_error(struct
> vmscsi_request *vm_srb,
> >                 }
> >                 break;
> >         case SRB_STATUS_INVALID_LUN:
> > +               if (!scsi_host_get(host)) {
> > +                       set_host_byte(scmnd, DID_NO_CONNECT);
> > +                       break;
> > +               }
> > +
> > +               sdev = scsi_device_lookup(wrk->host, 0, wrk->tgt_id, wrk->lun);
> > +
> > +               if (!sdev) {
> > +                       set_host_byte(scmnd, DID_NO_CONNECT);
> > +                       break;
> > +               }
> > +
> >                 do_work = true;
> >                 process_err_fn = storvsc_remove_lun;
> >                 break;
> 
> I will try it, but it can't work for two reasons.
> First, the INVALID_LUN error is masked off on INQUIRY in current code.
> Second, the scsi_device is instantiated already as part of scan probe process
> before it gets here.

Was the invalid LUN in the LUN0 position. Inquiry of LUN0 support (when LUN0 is not populated)
was added only recently to address host side issue.

> 
> The best solution so far is:
> 	- remove old INQUIRY/SENSE error masking
> 	+ add new workaround for INQUIRY of device id on LUN 0
> 	  which appears to be the reason for old masking
> 	+ return errors on missing LUN
> 	+ provide better transport services for hot remove (rather
>           than detecting by failed I/O).

This the mechanism used by the host for notifying LUN removal - invalid LUN error code.

K. Y
> 

^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: [RFC] hv_storvsc: error handling.
  2017-03-06 17:48                                             ` KY Srinivasan
@ 2017-03-06 17:57                                               ` Stephen Hemminger
  2017-03-07  5:06                                               ` Christoph Hellwig
  1 sibling, 0 replies; 49+ messages in thread
From: Stephen Hemminger @ 2017-03-06 17:57 UTC (permalink / raw)
  To: KY Srinivasan
  Cc: James Bottomley, Hannes Reinecke, Christoph Hellwig,
	James Bottomley, Jens Axboe, Linus Torvalds, Martin K. Petersen,
	Dexuan Cui, Long Li, Josh Poulson,
	Adrian Suhov (Cloudbase Solutions SRL),
	linux-scsi, Haiyang Zhang


> > I will try it, but it can't work for two reasons.
> > First, the INVALID_LUN error is masked off on INQUIRY in current code.
> > Second, the scsi_device is instantiated already as part of scan probe process
> > before it gets here.  
> 
> Was the invalid LUN in the LUN0 position. Inquiry of LUN0 support (when LUN0 is not populated)
> was added only recently to address host side issue.

When probing the code probes with LUN 1, ...

There is a cause where kernel does INQUIRY on LUN0, it looks kernel is asking for
page code 80 which is optional "Unit Serial Number".  And then WS2016 is returning
an error and invalid sense data.  The old masking of errors caused kernel to
interpret sense data as Unit Serial Number which is also not good but looks harmless.

 
> > The best solution so far is:
> > 	- remove old INQUIRY/SENSE error masking
> > 	+ add new workaround for INQUIRY of device id on LUN 0
> > 	  which appears to be the reason for old masking
> > 	+ return errors on missing LUN
> > 	+ provide better transport services for hot remove (rather
> >           than detecting by failed I/O).  
> 
> This the mechanism used by the host for notifying LUN removal - invalid LUN error code.

This has a couple of problems. First, it means that hotplug doesn't occur until
an I/O is done. Second the current code was not being truthful to block layer.
If it has to handle hotplug in this manner, it should have still failed the I/O.
If application was using direct I/O it would want to know that write failed.

Perhaps the existing channel mechanism can be used as notification path.

^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: [RFC] hv_storvsc: error handling.
  2017-03-06 17:48                                             ` KY Srinivasan
  2017-03-06 17:57                                               ` Stephen Hemminger
@ 2017-03-07  5:06                                               ` Christoph Hellwig
  2017-03-07  6:08                                                 ` KY Srinivasan
  1 sibling, 1 reply; 49+ messages in thread
From: Christoph Hellwig @ 2017-03-07  5:06 UTC (permalink / raw)
  To: KY Srinivasan
  Cc: Stephen Hemminger, James Bottomley, Hannes Reinecke,
	Christoph Hellwig, James Bottomley, Jens Axboe, Linus Torvalds,
	Martin K. Petersen, Dexuan Cui, Long Li, Josh Poulson,
	Adrian Suhov (Cloudbase Solutions SRL),
	linux-scsi, Haiyang Zhang

> Was the invalid LUN in the LUN0 position. Inquiry of LUN0 support (when LUN0 is not populated)
> was added only recently to address host side issue.

How does HyperV expect device scanning to happen for a not populated LUN?

REPORT SUPPORTED LUNS but nothing else on LUN 0?  Maybe a TEST UNIT READY
thrown?  Or does it actually support the REPORT LUNS well known LU?

^ permalink raw reply	[flat|nested] 49+ messages in thread

* RE: [RFC] hv_storvsc: error handling.
  2017-03-07  5:06                                               ` Christoph Hellwig
@ 2017-03-07  6:08                                                 ` KY Srinivasan
  0 siblings, 0 replies; 49+ messages in thread
From: KY Srinivasan @ 2017-03-07  6:08 UTC (permalink / raw)
  To: Christoph Hellwig
  Cc: Stephen Hemminger, James Bottomley, Hannes Reinecke,
	James Bottomley, Jens Axboe, Linus Torvalds, Martin K. Petersen,
	Dexuan Cui, Long Li, Josh Poulson,
	Adrian Suhov (Cloudbase Solutions SRL),
	linux-scsi, Haiyang Zhang



> -----Original Message-----
> From: Christoph Hellwig [mailto:hch@lst.de]
> Sent: Monday, March 6, 2017 9:06 PM
> To: KY Srinivasan <kys@microsoft.com>
> Cc: Stephen Hemminger <stephen@networkplumber.org>; James
> Bottomley <James.Bottomley@Hansenpartnership.com>; Hannes Reinecke
> <hare@suse.de>; Christoph Hellwig <hch@lst.de>; James Bottomley
> <jejb@linux.vnet.ibm.com>; Jens Axboe <axboe@kernel.dk>; Linus Torvalds
> <torvalds@linux-foundation.org>; Martin K. Petersen
> <martin.petersen@oracle.com>; Dexuan Cui <decui@microsoft.com>; Long
> Li <longli@microsoft.com>; Josh Poulson <jopoulso@microsoft.com>; Adrian
> Suhov (Cloudbase Solutions SRL) <v-adsuho@microsoft.com>; linux-
> scsi@vger.kernel.org; Haiyang Zhang <haiyangz@microsoft.com>
> Subject: Re: [RFC] hv_storvsc: error handling.
> 
> > Was the invalid LUN in the LUN0 position. Inquiry of LUN0 support (when
> LUN0 is not populated)
> > was added only recently to address host side issue.
> 
> How does HyperV expect device scanning to happen for a not populated
> LUN?
> 
> REPORT SUPPORTED LUNS but nothing else on LUN 0?  Maybe a TEST UNIT
> READY
> thrown?  Or does it actually support the REPORT LUNS well known LU?

LUN0 on every target is supposed at least return enough data to support
report luns  scan for the target. It looks like if LUN0 on a target is empty DVD
device, the INQUIRY data that is returned from the host is bogus. Stephen can give
additional information on this.

K. Y  

^ permalink raw reply	[flat|nested] 49+ messages in thread

end of thread, other threads:[~2017-03-07 12:52 UTC | newest]

Thread overview: 49+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-27 23:30 SCSI regression in 4.11 Stephen Hemminger
2017-02-28  1:19 ` Stephen Hemminger
2017-02-28  2:16   ` Jens Axboe
2017-02-28 14:08   ` Christoph Hellwig
2017-02-28 15:32     ` Jens Axboe
2017-02-28 17:06       ` James Bottomley
2017-02-28 17:16         ` Stephen Hemminger
2017-02-28 17:31           ` Jens Axboe
2017-02-28 18:41         ` Stephen Hemminger
2017-02-28 19:10           ` James Bottomley
2017-02-28 18:57         ` Stephen Hemminger
2017-02-28 23:48           ` James Bottomley
2017-03-01  1:25             ` Stephen Hemminger
2017-03-01  6:20               ` James Bottomley
2017-03-01  6:48                 ` Stephen Hemminger
2017-03-01 15:50                   ` Christoph Hellwig
2017-03-01 15:54                     ` Stephen Hemminger
2017-03-02  0:01                       ` Christoph Hellwig
2017-03-02  0:56                         ` Christoph Hellwig
2017-03-02  1:40                           ` Stephen Hemminger
2017-03-02 13:25                             ` Hannes Reinecke
2017-03-02 17:48                               ` Stephen Hemminger
2017-03-02 18:23                               ` Stephen Hemminger
2017-03-02 18:36                                 ` James Bottomley
2017-03-02 19:05                                   ` Stephen Hemminger
2017-03-02 19:18                                     ` James Bottomley
2017-03-03 22:29                                       ` Stephen Hemminger
2017-03-04  0:50                                       ` [RFC] hv_storvsc: error handling Stephen Hemminger
2017-03-04 11:55                                         ` Hannes Reinecke
2017-03-04 21:03                                         ` KY Srinivasan
2017-03-04 21:36                                           ` James Bottomley
2017-03-04 21:39                                             ` KY Srinivasan
2017-03-04 23:55                                               ` KY Srinivasan
2017-03-06 16:36                                           ` Stephen Hemminger
2017-03-06 17:48                                             ` KY Srinivasan
2017-03-06 17:57                                               ` Stephen Hemminger
2017-03-07  5:06                                               ` Christoph Hellwig
2017-03-07  6:08                                                 ` KY Srinivasan
2017-03-02  0:57                         ` SCSI regression in 4.11 Stephen Hemminger
2017-03-01 16:13                     ` Stephen Hemminger
2017-03-01 18:48                 ` Stephen Hemminger
2017-03-01 18:57                   ` James Bottomley
2017-03-01 19:20                     ` James Bottomley
2017-03-01 19:39                       ` Stephen Hemminger
2017-03-01 21:27                       ` Stephen Hemminger
2017-03-01 23:09                         ` James Bottomley
2017-03-01 23:39                           ` Stephen Hemminger
2017-03-01 19:00                   ` Linus Torvalds
2017-02-28 17:33     ` Stephen Hemminger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.