Displaying 20 results from an estimated 174 matches for "ktime_get".
2014 Apr 16
0
Bug#744930: Failed migration from 4.3 to 4.1 crashes VM on sender
...[69204.815336] RSP <ffff88001f005d40>
[69204.815336] ---[ end trace 45b15f10b39c02ad ]---
[69204.815336] ------------[ cut here ]------------
[69204.815336] WARNING: at /build/buildd-linux-2.6_2.6.32-31-amd64-vrfdM4/linux-2.6-2.6.32/debian/build/source_amd64_xen/kernel/time/timekeeping.c:249 ktime_get+0x22/0xb7()
[69204.815336] Modules linked in: dm_snapshot dm_mirror dm_region_hash dm_log snd_pcm snd_timer snd soundcore snd_page_alloc pcspkr evdev xfs exportfs dm_mod xen_blkfront xen_netfront
[69204.815336] Pid: 0, comm: swapper Tainted: G D 2.6.32-5-xen-amd64 #1
[69204.815336] Call Tra...
2013 Jun 06
1
Problem with dahdi XPP driver?
...usb_hcd_giveback_urb+0x60/0x8e [usbcore]
Jun 3 15:03:52 kernel: [361033.894565] [<f80f867c>] ?
qh_completions+0x91/0x3e9 [ehci_hcd]
Jun 3 15:03:52 kernel: [361033.894565] [<f80fa942>] ?
ehci_work+0x93/0x780 [ehci_hcd]
Jun 3 15:03:52 kernel: [361033.894565] [<c01281cd>] ?
ktime_get_ts+0x1d/0x3f
Jun 3 15:03:52 kernel: [361033.894565] [<c01281fc>] ? ktime_get+0xd/0x2d
Jun 3 15:03:52 kernel: [361033.894565] [<c012b256>] ?
getnstimeofday+0x4d/0xca
Jun 3 15:03:52 kernel: [361033.894565] [<f80fbd1c>] ?
ehci_irq+0x147/0x197 [ehci_hcd]
Jun 3 15:03:52 kern...
2017 Nov 13
0
[PATCH RFC v3 6/6] KVM guest: introduce smart idle poll algorithm
...);
+
+ this_cpu_write(poll_duration_ns, poll_duration);
+}
+
static void kvm_idle_poll(void)
{
unsigned long poll_duration = this_cpu_read(poll_duration_ns);
+ ktime_t idle = tick_nohz_get_last_idle_length();
ktime_t start, cur, stop;
+ kvm_idle_update_poll_duration(idle);
+
start = cur = ktime_get();
stop = ktime_add_ns(ktime_get(), poll_duration);
--
1.7.1
2017 Nov 13
0
[PATCH RFC v3 6/6] KVM guest: introduce smart idle poll algorithm
...);
+
+ this_cpu_write(poll_duration_ns, poll_duration);
+}
+
static void kvm_idle_poll(void)
{
unsigned long poll_duration = this_cpu_read(poll_duration_ns);
+ ktime_t idle = tick_nohz_get_last_idle_length();
ktime_t start, cur, stop;
+ kvm_idle_update_poll_duration(idle);
+
start = cur = ktime_get();
stop = ktime_add_ns(ktime_get(), poll_duration);
--
1.7.1
2017 Dec 02
0
nouveau: refcount_t splat on 4.15-rc1 on nv50
...alloc+0x1f0/0x2d0
[ 9.941624] nvkm_memory_new+0x4b/0xc0 [nouveau]
[ 9.946461] ? nvkm_longopt+0x17/0x60 [nouveau]
[ 9.951208] gf100_fb_oneinit+0x7b/0x1c0 [nouveau]
[ 9.956218] nvkm_fb_oneinit+0x89/0x2e0 [nouveau]
[ 9.961144] nvkm_subdev_init+0x92/0x600 [nouveau]
[ 9.966085] ? ktime_get+0x64/0x110
[ 9.969815] nvkm_device_init+0x169/0x2a0 [nouveau]
[ 9.974922] nvkm_udevice_init+0x7e/0xf0 [nouveau]
[ 9.979924] nvkm_object_init+0x6a/0x2e0 [nouveau]
[ 9.984932] nvkm_ioctl_new+0x198/0x430 [nouveau]
[ 9.989846] ? nvif_vmm_init+0x340/0x340 [nouveau]
[ 9.994864] ?...
2013 Jun 19
3
[PATCH] virtio-spec: add field for scsi command size
Il 19/06/2013 10:24, Michael S. Tsirkin ha scritto:
>> > 2) We introduce VIRTIO_NET_F_ANY_LAYOUT and VIRTIO_BLK_F_ANY_LAYOUT
>> > specifically for net and block (note the new names).
So why not a transport feature? Is it just because the SCSI commands
for virtio-blk also require a config space field? Sorry if I missed
this upthread.
Paolo
>> > 3) I note the
2013 Jun 19
3
[PATCH] virtio-spec: add field for scsi command size
Il 19/06/2013 10:24, Michael S. Tsirkin ha scritto:
>> > 2) We introduce VIRTIO_NET_F_ANY_LAYOUT and VIRTIO_BLK_F_ANY_LAYOUT
>> > specifically for net and block (note the new names).
So why not a transport feature? Is it just because the SCSI commands
for virtio-blk also require a config space field? Sorry if I missed
this upthread.
Paolo
>> > 3) I note the
2024 Aug 16
1
[PATCH] nouveau/firmware: using dma non-coherent interfaces for fw loading. (v2)
...0 [nouveau]
> ga102_gsp_booter_ctor+0xb4/0x1a0 [nouveau]
> r535_gsp_oneinit+0xb3/0x15f0 [nouveau]
> ? srso_return_thunk+0x5/0x5f
> ? srso_return_thunk+0x5/0x5f
> ? nvkm_udevice_new+0x95/0x140 [nouveau]
> ? srso_return_thunk+0x5/0x5f
> ? srso_return_thunk+0x5/0x5f
> ? ktime_get+0x47/0xb0
>
> Fix this by using the non-coherent allocator instead, I think there
> might be a better answer to this, but it involve ripping up some of
> APIs using sg lists.
>
> v2: fix build warning
>
> Signed-off-by: Dave Airlie <airlied at redhat.com>
> Cc: s...
2020 Sep 15
0
[RFC PATCH 00/22] Enhance VHOST to enable SoC-to-SoC communication
...pci_epf;
+??? void __iomem *ioaddr;
+??? ktime_t timeout;
+??? bool timedout;
+??? int ret = 0;
+??? u8 status;
+
+??? pci_epf = to_virtio_pci_epf(vp_dev);
+??? ioaddr = vp_dev->ioaddr;
+
+??? mutex_lock(&pci_epf->lock);
+??? writeb(command, ioaddr + HOST_CMD);
+??? timeout = ktime_add_ms(ktime_get(), COMMAND_TIMEOUT);
+??? while (1) {
+??? ??? timedout = ktime_after(ktime_get(), timeout);
+??? ??? status = readb(ioaddr + HOST_CMD_STATUS);
+
Several questions:
- It's not clear to me how the synchronization is done between the RC
and EP. E.g how and when the value of HOST_CMD_STATUS can...
2018 Apr 13
3
[RFC v2] virtio: support packed ring
...q);
> > +
> > + BUG_ON(data == NULL);
> > + BUG_ON(ctx && vq->indirect);
> > +
> > + if (unlikely(vq->broken)) {
> > + END_USE(vq);
> > + return -EIO;
> > + }
> > +
> > +#ifdef DEBUG
> > + {
> > + ktime_t now = ktime_get();
> > +
> > + /* No kick or get, with .1 second between? Warn. */
> > + if (vq->last_add_time_valid)
> > + WARN_ON(ktime_to_ms(ktime_sub(now, vq->last_add_time))
> > + > 100);
> > + vq->last_add_time = now;
> > + vq->last_add_...
2018 Apr 13
3
[RFC v2] virtio: support packed ring
...q);
> > +
> > + BUG_ON(data == NULL);
> > + BUG_ON(ctx && vq->indirect);
> > +
> > + if (unlikely(vq->broken)) {
> > + END_USE(vq);
> > + return -EIO;
> > + }
> > +
> > +#ifdef DEBUG
> > + {
> > + ktime_t now = ktime_get();
> > +
> > + /* No kick or get, with .1 second between? Warn. */
> > + if (vq->last_add_time_valid)
> > + WARN_ON(ktime_to_ms(ktime_sub(now, vq->last_add_time))
> > + > 100);
> > + vq->last_add_time = now;
> > + vq->last_add_...
2018 Feb 13
2
4.16-rc1: UBSAN warning in nouveau/nvkm/subdev/therm/base.c + oops in nvkm_therm_clkgate_fini
...7.398979] ubsan_type_mismatch_common+0xdc/0x152
[ 7.399079] __ubsan_handle_type_mismatch+0x24/0x26
[ 7.399368] nvkm_therm_clkgate_fini+0x14d/0x174 [nouveau]
[ 7.399638] ? nvkm_device_subdev+0x1b9/0x1fa [nouveau]
[ 7.399907] nvkm_device_fini+0x113/0x3e9 [nouveau]
[ 7.400010] ? ktime_get+0x4b/0x135
[ 7.400253] ? nvkm_devinit_post+0x35/0xbf [nouveau]
[ 7.400519] nvkm_device_init+0x228/0x5b0 [nouveau]
[ 7.400626] ? kmem_cache_alloc+0xbd/0x12a
[ 7.400893] nvkm_udevice_init+0x51/0xa9 [nouveau]
[ 7.401137] nvkm_object_init+0xc8/0x442 [nouveau]
[ 7.401244] ? check...
2020 Aug 21
0
[PATCH v3 5/6] iommu/virtio: Support topology description in config space
...PCI_FIELD(length),
+ &cap->length);
+ pci_read_config_dword(dev, pos + VPCI_FIELD(offset),
+ &cap->offset);
+
+ return pos;
+ }
+ return 0;
+}
+
+static int viommu_pci_reset(struct virtio_pci_common_cfg __iomem *cfg)
+{
+ u8 status;
+ ktime_t timeout = ktime_add_ms(ktime_get(), 100);
+
+ iowrite8(0, &cfg->device_status);
+ while ((status = ioread8(&cfg->device_status)) != 0 &&
+ ktime_before(ktime_get(), timeout))
+ msleep(1);
+
+ return status ? -ETIMEDOUT : 0;
+}
+
+static void viommu_pci_parse_topology(struct pci_dev *dev)
+{
+ int ret;...
2020 Sep 04
1
[PATCH v3 5/6] iommu/virtio: Support topology description in config space
...pci_read_config_dword(dev, pos + VPCI_FIELD(offset),
> + &cap->offset);
> +
> + return pos;
> + }
> + return 0;
> +}
> +
> +static int viommu_pci_reset(struct virtio_pci_common_cfg __iomem *cfg)
> +{
> + u8 status;
> + ktime_t timeout = ktime_add_ms(ktime_get(), 100);
> +
> + iowrite8(0, &cfg->device_status);
> + while ((status = ioread8(&cfg->device_status)) != 0 &&
> + ktime_before(ktime_get(), timeout))
> + msleep(1);
> +
> + return status ? -ETIMEDOUT : 0;
> +}
> +
> +static void viommu_pci...
2020 Sep 18
0
[RFC PATCH 00/22] Enhance VHOST to enable SoC-to-SoC communication
...;>> +
>>>> +??? pci_epf = to_virtio_pci_epf(vp_dev);
>>>> +??? ioaddr = vp_dev->ioaddr;
>>>> +
>>>> +??? mutex_lock(&pci_epf->lock);
>>>> +??? writeb(command, ioaddr + HOST_CMD);
>>>> +??? timeout = ktime_add_ms(ktime_get(), COMMAND_TIMEOUT);
>>>> +??? while (1) {
>>>> +??? ??? timedout = ktime_after(ktime_get(), timeout);
>>>> +??? ??? status = readb(ioaddr + HOST_CMD_STATUS);
>>>> +
>>>>
>>>> Several questions:
>>>>
>>>>...
2024 Aug 15
2
[PATCH] nouveau/firmware: using dma non-coherent interfaces for fw loading. (v2)
...[nouveau]
nvkm_falcon_fw_ctor+0x42/0x70 [nouveau]
ga102_gsp_booter_ctor+0xb4/0x1a0 [nouveau]
r535_gsp_oneinit+0xb3/0x15f0 [nouveau]
? srso_return_thunk+0x5/0x5f
? srso_return_thunk+0x5/0x5f
? nvkm_udevice_new+0x95/0x140 [nouveau]
? srso_return_thunk+0x5/0x5f
? srso_return_thunk+0x5/0x5f
? ktime_get+0x47/0xb0
Fix this by using the non-coherent allocator instead, I think there
might be a better answer to this, but it involve ripping up some of
APIs using sg lists.
v2: fix build warning
Signed-off-by: Dave Airlie <airlied at redhat.com>
Cc: stable at vger.kernel.org
---
drivers/gpu/drm...
2013 Jun 20
0
[PATCH] virtio-spec: add field for scsi command size
...g_virtqueue *vq,
struct scatterlist sg[],
@@ -228,7 +393,10 @@ int virtqueue_add_buf(struct virtqueue *_vq,
BUG_ON(data == NULL);
-#ifdef DEBUG
+ if (!torture_replace(&sg, &out, &in, &data, gfp))
+ return -ENOMEM;
+
+#ifdef CONFIG_VIRTIO_TORTURE
{
ktime_t now = ktime_get();
@@ -261,6 +429,7 @@ int virtqueue_add_buf(struct virtqueue *_vq,
if (out)
vq->notify(&vq->vq);
END_USE(vq);
+ torture_done(data);
return -ENOSPC;
}
@@ -341,7 +510,7 @@ bool virtqueue_kick_prepare(struct virtqueue *_vq)
new = vq->vring.avail->idx;
vq->nu...
2018 Sep 07
1
[PATCH net-next v2 4/5] virtio_ring: add event idx support in packed ring
...gt; + wrap_counter = off_wrap >> 15;
> + event_idx = off_wrap & ~(1 << 15);
> + if (wrap_counter != vq->avail_wrap_counter)
> + event_idx -= vq->vring_packed.num;
> +
> #ifdef DEBUG
> if (vq->last_add_time_valid) {
> WARN_ON(ktime_to_ms(ktime_sub(ktime_get(),
> @@ -1070,7 +1080,10 @@ static bool virtqueue_kick_prepare_packed(struct virtqueue *_vq)
> vq->last_add_time_valid = false;
> #endif
>
> - needs_kick = (flags != VRING_EVENT_F_DISABLE);
> + if (flags == VRING_EVENT_F_DESC)
> + needs_kick = vring_need_event(event_id...
2020 Sep 16
0
[RFC PATCH 00/22] Enhance VHOST to enable SoC-to-SoC communication
...;> +??? int ret = 0;
>> +??? u8 status;
>> +
>> +??? pci_epf = to_virtio_pci_epf(vp_dev);
>> +??? ioaddr = vp_dev->ioaddr;
>> +
>> +??? mutex_lock(&pci_epf->lock);
>> +??? writeb(command, ioaddr + HOST_CMD);
>> +??? timeout = ktime_add_ms(ktime_get(), COMMAND_TIMEOUT);
>> +??? while (1) {
>> +??? ??? timedout = ktime_after(ktime_get(), timeout);
>> +??? ??? status = readb(ioaddr + HOST_CMD_STATUS);
>> +
>>
>> Several questions:
>>
>> - It's not clear to me how the synchronization is done bet...
2019 Mar 30
1
[PATCH 2/5] x86: Convert some slow-path static_cpu_has() callers to boot_cpu_has()
...arch/x86/kernel/cpu/aperfmperf.c
+++ b/arch/x86/kernel/cpu/aperfmperf.c
@@ -83,7 +83,7 @@ unsigned int aperfmperf_get_khz(int cpu)
if (!cpu_khz)
return 0;
- if (!static_cpu_has(X86_FEATURE_APERFMPERF))
+ if (!boot_cpu_has(X86_FEATURE_APERFMPERF))
return 0;
aperfmperf_snapshot_cpu(cpu, ktime_get(), true);
@@ -99,7 +99,7 @@ void arch_freq_prepare_all(void)
if (!cpu_khz)
return;
- if (!static_cpu_has(X86_FEATURE_APERFMPERF))
+ if (!boot_cpu_has(X86_FEATURE_APERFMPERF))
return;
for_each_online_cpu(cpu)
@@ -115,7 +115,7 @@ unsigned int arch_freq_get_on_cpu(int cpu)
if (!cpu_khz...